/* =========================================================
   MikSoftware — shared styles (corporate site + games sub-site)
   Đổi màu thương hiệu: sửa --accent bên dưới.
   ========================================================= */
:root {
  --accent: #ff5a1f;
  --accent-2: #ffb21f;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --ink: #161616;
  --ink-2: #212529;
  --muted: #8e8e8e;
  --line: #dcdcd8;
  --paper: #f3f3f1;
  --card: #ffffff;
  --dark: #121212;
  --dark-2: #1c1c1c;

  --font: "Be Vietnam Pro", "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Be Vietnam Pro", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }

/* speech bubble badge (dùng cho số đếm & "...") */
.bubble {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; height: 1.6em; padding: 0 0.6em;
  border-radius: 1em;
  background: var(--accent); color: #fff;
  font-size: 0.32em; font-weight: 800; letter-spacing: 0; line-height: 1;
  position: relative; vertical-align: top;
  transform: translateY(-0.4em);
}
.bubble::after {
  content: ""; position: absolute; left: 22%; bottom: -0.32em;
  border: 0.22em solid transparent; border-top-color: var(--accent); border-left-color: var(--accent);
}
.bubble.is-soft { background: rgba(255, 90, 31, 0.85); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.4s var(--ease), box-shadow 0.35s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; max-width: none; }
.site-header.is-solid { background: rgba(243, 243, 241, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-dark-solid { background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.site-header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo small { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; align-self: flex-start; margin-top: 2px; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav a svg { width: 13px; height: 13px; opacity: 0.85; }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--header-h) var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 38px) 38px);
  transition: clip-path 0.6s var(--ease);
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 38px); }
body.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; }
.mobile-menu a { font-size: clamp(40px, 12vw, 64px); font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu p { margin-top: 32px; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Buttons / links ---------- */
.plus-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.plus-link::before { content: "+"; font-size: 15px; transition: transform 0.3s var(--ease); }
.plus-link:hover::before { transform: rotate(90deg); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn svg { width: 16px; height: 16px; }
.btn.is-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfcfcf; padding: clamp(80px, 12vw, 160px) 0 40px; overflow: hidden; }
.footer-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-bottom: clamp(60px, 8vw, 110px); border-bottom: 1px solid #2c2c2c; }
.footer-cta h2 { color: #fff; font-size: clamp(44px, 7.4vw, 112px); }
.footer-cta h2 .dim { color: #4a4a4a; }
.footer-hello { font-size: clamp(18px, 2vw, 24px); font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 28px; }
.footer-hello span { color: var(--accent); }
.contact-list { display: grid; gap: 4px; }
.contact-list a {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #2c2c2c;
  font-size: 15px; transition: color 0.2s, padding 0.35s var(--ease);
}
.contact-list a b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.contact-list a i { font-style: normal; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: 0.3s var(--ease); }
.contact-list a:hover { color: #fff; padding-left: 10px; }
.contact-list a:hover i { opacity: 1; transform: none; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; font-size: 13px; color: #8a8a8a; }
.footer-bottom .logo { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-info p { line-height: 1.9; }
.footer-links { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .footer-cta { grid-template-columns: 1fr; }
  .contact-list a { grid-template-columns: 90px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Language switcher ---------- */
.site-header .container { gap: 12px; }
.site-header .nav { margin-left: auto; margin-right: clamp(12px, 2vw, 28px); }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1.5px solid currentColor; border-radius: 999px; opacity: 0.9;
  font-family: inherit; font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: 0.08em; color: inherit; cursor: pointer;
  transition: color 0.2s, opacity 0.2s, border-color 0.2s;
}
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn:hover, .lang.is-open .lang-btn { color: var(--accent); opacity: 1; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: #151515; color: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: block; width: 100%; padding: 10px 12px; border-radius: 9px; text-align: left;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; color: inherit; cursor: pointer;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.lang-menu button.is-active { color: var(--accent); }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lang-row button {
  padding: 9px 16px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; color: #fff; cursor: pointer;
}
.lang-row button.is-active { background: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) {
  .lang { display: none; }
  .site-header .nav { margin: 0; }
}
.legal-lang-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 90, 31, 0.12); color: var(--accent); font-size: 14px; font-weight: 700; }

/* ---------- Lenis smooth scroll (https://github.com/darkroomengineering/lenis, MIT) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
