/* =========================================================
   ZAPSTER GAMES — styles
   Dark by default, light via [data-theme="light"]
   ========================================================= */
:root {
  --bg: #0a0c17;
  --bg-2: #0f1224;
  --card: #141831;
  --card-2: #1a1f3d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1ff;
  --muted: #98a1c6;
  --dim: #646d96;
  --yellow: #ffd21e;
  --yellow-d: #c99300;
  --orange: #ff8a1f;
  --cyan: #27c4ff;
  --cyan-d: #0a7fc2;
  --green: #3bd16f;
  --red: #ff4d5e;
  --ink: #1a1300;
  --stud: rgba(255, 255, 255, .045);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --radius: 20px;
  --radius-s: 12px;
  --max: 1180px;
  --display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #eceff8;
  --card: #ffffff;
  --card-2: #f3f5fc;
  --line: rgba(14, 18, 48, .09);
  --line-2: rgba(14, 18, 48, .16);
  --text: #0e1230;
  --muted: #545c80;
  --dim: #8a91b0;
  --stud: rgba(14, 18, 48, .05);
  --shadow: 0 20px 50px -24px rgba(20, 30, 80, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stud background */
.studs {
  background-image: radial-gradient(var(--stud) 2.2px, transparent 2.6px);
  background-size: 28px 28px;
}

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .3px;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--body); letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
[data-theme="light"] .eyebrow { color: #b97d00; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; box-shadow: 14px 0 0 var(--cyan); margin-right: 14px; }
.hl-y { color: var(--yellow); }
.hl-c { color: var(--cyan); }
[data-theme="light"] .hl-y { color: #e0a800; -webkit-text-stroke: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head .lead { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--yellow); --bd: var(--yellow-d); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border: 0; border-radius: 14px;
  background: var(--b); color: var(--t);
  font: 800 16px/1 var(--body);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--bd), 0 12px 24px -10px var(--b);
  transform: translateY(0);
  transition: transform .12s, box-shadow .12s, filter .2s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 7px 0 var(--bd), 0 16px 30px -10px var(--b); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--bd); }
.btn.cyan { --b: var(--cyan); --bd: var(--cyan-d); --t: #001626; }
.btn.ghost {
  --b: transparent; --bd: var(--line-2); --t: var(--text);
  border: 2px solid var(--line-2); box-shadow: 0 5px 0 var(--line-2);
}
.btn.ghost:hover { border-color: var(--text); }
.btn.sm { padding: 11px 16px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; color: var(--cyan); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { gap: 10px; }
.link-arrow, .link-arrow:hover { transition: gap .2s; }

/* ---------- event bar ---------- */
.eventbar {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  color: var(--ink);
  font-size: 14px; font-weight: 700;
  text-align: center;
  padding: 9px 44px;
}
.eventbar a { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; white-space: nowrap; }
.eventbar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--ink); opacity: .7; padding: 4px 8px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: transform .25s; }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.brand .brand-icon { display: none; width: 54px; height: 54px; }
@media (max-width: 520px) {
  .brand .brand-word { display: none; }
  .brand .brand-icon { display: block; }
}
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  padding: 9px 13px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--muted);
  transition: color .2s, background .2s;
}
.menu a:hover { color: var(--text); background: var(--line); }
.menu a.active { color: var(--text); background: var(--line); }
.menu a.hot::after { content: "NEW"; font-size: 9px; font-weight: 800; letter-spacing: .5px; background: var(--cyan); color: #001626; padding: 2px 5px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--card);
  cursor: pointer; transition: transform .2s, border-color .2s;
}
.icon-btn:hover { transform: rotate(-8deg); border-color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.burger { display: none; }

@media (max-width: 980px) {
  .menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 2px;
    padding: 14px 16px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .menu a { font-size: 18px; padding: 14px; }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .burger { display: grid; }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; isolation: isolate; }
.hero .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -1; pointer-events: none; }
.hero .g1 { width: 520px; height: 520px; background: var(--yellow); top: -160px; left: -120px; opacity: .22; }
.hero .g2 { width: 560px; height: 560px; background: var(--cyan); bottom: -260px; right: -140px; opacity: .25; }
[data-theme="light"] .hero .glow { opacity: .28; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 .line { display: block; }
.hero .lead { margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { position: relative; }
.hero-logo img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; cursor: pointer; }
[data-theme="light"] .hero-logo img { filter: drop-shadow(0 26px 30px rgba(30, 40, 90, .25)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.badge-city {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.badge-city .flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-block; background: linear-gradient(#e70011 50%, #fff 50%); box-shadow: 0 0 0 1px var(--line-2); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  position: relative; overflow: hidden;
}
.stat .num { font: 400 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: .5px; }
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.stat:nth-child(1) .num { color: var(--yellow); }
.stat:nth-child(2) .num { color: var(--green); }
.stat:nth-child(3) .num { color: var(--cyan); }
[data-theme="light"] .stat:nth-child(1) .num { color: #d39b00; }
[data-theme="light"] .stat:nth-child(2) .num { color: #13a04a; }
[data-theme="light"] .stat:nth-child(3) .num { color: #0897d6; }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 14px;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 1.8s infinite; }
.live.off i { background: var(--dim); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 209, 111, .6); } 100% { box-shadow: 0 0 0 10px rgba(59, 209, 111, 0); } }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: min(300px, 78vw); }
  .hero-grid { gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 400 26px/1 var(--display); color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 42px; }
.marquee span::after { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--yellow); display: inline-block; transform: rotate(45deg); }
.marquee span:nth-child(even)::after { background: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card.hover:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

.ico {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line-2);
  margin-bottom: 20px;
  box-shadow: none;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: 18px; }

/* door cards (work with us) */
.door { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 280px; }
.door::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -60px;
  border-radius: 40px; transform: rotate(20deg);
  background: var(--accent, var(--yellow)); opacity: .08; transition: transform .4s, opacity .4s;
}
.door:hover::after { transform: rotate(45deg) scale(1.2); opacity: .16; }
.door .link-arrow { margin-top: auto; padding-top: 18px; }

/* ---------- games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .games-grid { grid-template-columns: 1fr; } }
.game {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.game:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--line-2); }
.game .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--card-2); }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game:hover .thumb img { transform: scale(1.06); }
.game .pill-row { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 6px; justify-content: space-between; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 9px;
  font-size: 12px; font-weight: 800; line-height: 1;
  background: rgba(10, 12, 23, .78); color: #fff;
  backdrop-filter: blur(6px);
}
.pill.y { background: var(--yellow); color: var(--ink); }
.pill.c { background: var(--cyan); color: #001626; }
.pill.o { background: var(--orange); color: #241000; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.game .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 22px; }
.game .by { font-size: 13px; color: var(--dim); font-weight: 600; }
.game p { color: var(--muted); font-size: 15px; }
.game .meta { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.game .meta b { color: var(--text); font-weight: 800; }
.game .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.game .actions { display: flex; gap: 10px; margin-top: 6px; }
.game .actions .btn { flex: 1; }
.mystery {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 77, 94, .55), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255, 210, 30, .45), transparent 55%),
    #1a1030;
  font: 400 64px/1 var(--display); color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
.game-sort { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.game-sort select { min-height: 44px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; }
.game-sort select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.game-sort option { background: var(--card); color: var(--text); }
@media (max-width: 520px) { .game-sort { width: 100%; } .game-sort select { flex: 1; min-width: 0; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 16px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line-2);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:hover { border-color: var(--text); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .55; margin-left: 4px; }

/* groups */
.group-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .group-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .group-row { grid-template-columns: 1fr; } }
.group > div:last-child { min-width: 0; }
.group { display: flex; gap: 14px; align-items: center; padding: 18px; }
.group .av { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font: 400 22px/1 var(--display); color: var(--ink); background: var(--yellow); flex-shrink: 0; }
.group:nth-child(2) .av { background: var(--cyan); }
.group:nth-child(3) .av { background: var(--orange); }
.group:nth-child(4) .av { background: var(--green); }
.group b { display: block; font-size: 15px; line-height: 1.3; }
.group span { font-size: 13px; color: var(--muted); }

/* noob mascot */
.noob { width: 120px; height: 170px; position: relative; margin: 0 auto; animation: bob 2.4s ease-in-out infinite; }
.noob > div { position: absolute; border-radius: 6px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.noob .head { width: 46px; height: 42px; left: 37px; top: 0; background: #ffd21e; border-radius: 12px; }
.noob .head::before, .noob .head::after { content: ""; position: absolute; width: 6px; height: 9px; background: #111; border-radius: 3px; top: 14px; }
.noob .head::before { left: 13px; } .noob .head::after { right: 13px; }
.noob .face { position: absolute; width: 16px; height: 7px; left: 52px; top: 28px; border: 3px solid #111; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: none !important; z-index: 2; }
.noob .torso { width: 58px; height: 56px; left: 31px; top: 44px; background: #1e6bff; }
.noob .arm { width: 24px; height: 56px; top: 44px; background: #ffd21e; }
.noob .arm.l { left: 5px; transform-origin: top center; animation: wave 1.2s ease-in-out infinite; }
.noob .arm.r { right: 5px; }
.noob .leg { width: 28px; height: 58px; top: 102px; background: #3bd16f; }
.noob .leg.l { left: 31px; } .noob .leg.r { left: 61px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wave { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(150deg); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(100px); opacity: .22; z-index: -1; top: -200px; right: -100px; background: var(--cyan); }
.page-hero .glow.y { background: var(--yellow); left: -140px; right: auto; }
.page-hero .lead { margin-top: 18px; }

/* ---------- split / lists ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: var(--green); color: #052611; margin-top: 1px;
}
.checks.x li::before { content: "✕"; background: var(--red); color: #fff; }
.checks b { color: var(--text); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card.win { border: 2px solid var(--yellow); background: linear-gradient(180deg, rgba(255, 210, 30, .08), transparent 50%), var(--card); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 24px; left: 28px;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font: 400 20px/1 var(--display);
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 4px 0 var(--yellow-d);
}
.step:nth-child(even)::before { background: var(--cyan); box-shadow: 0 4px 0 var(--cyan-d); color: #001626; }
.step h3 { font-size: 21px; }

/* anchor offer blocks */
.offer { scroll-margin-top: 100px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
.mini { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.mini b { display: block; font-size: 15px; margin-bottom: 4px; }
.mini span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }

.visual-box {
  border-radius: 24px; padding: 28px; min-height: 320px;
  background: var(--card); border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.metric-list { width: 100%; display: grid; gap: 12px; }
.metric { display: grid; grid-template-columns: 120px 1fr 52px; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; }
.metric .bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.metric .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--orange)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.metric:nth-child(even) .bar i { background: linear-gradient(90deg, var(--cyan), #6f7bff); }
.in .metric .bar i { width: var(--w); }
.metric span:last-child { text-align: right; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--muted); }
.field label i { color: var(--orange); font-style: normal; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 12px;
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(39, 196, 255, .15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a1c6' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--card); color: var(--text); }
.phone { display: flex; gap: 8px; }
.phone select { width: 112px; flex-shrink: 0; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { cursor: pointer; display: inline-block; margin: 0; position: relative; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--line-2);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: all .15s;
}
.chips-select input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 3px 0 var(--yellow-d); }
.chips-select input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--dim); }
.form-status { display: none; padding: 16px; border-radius: 12px; font-weight: 700; }
.form-status.ok { display: block; background: rgba(59, 209, 111, .12); color: var(--green); border: 1px solid rgba(59, 209, 111, .35); }
.form-status.err { display: block; background: rgba(255, 77, 94, .1); color: var(--red); border: 1px solid rgba(255, 77, 94, .35); }
.hp { display: none !important; }

/* contact side */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.side-list { display: grid; gap: 12px; }
.side-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.side-item .ico { margin: 0; width: 44px; height: 44px; font-size: 20px; border-radius: 12px; flex-shrink: 0; }
/* Consistent vector icons for contact cards. */
.side-item .ico svg { width: 24px; height: 24px; display: block; }
.side-item .ico { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.side-item b { display: block; font-size: 15px; }
.side-item span { font-size: 13px; color: var(--muted); word-break: break-word; }
a.side-item:hover { border-color: var(--line-2); transform: translateX(4px); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--card-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.9); }

/* ---------- careers ---------- */
.job {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.job[open] { border-color: var(--line-2); }
.job summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 22px 24px;
}
.job summary::-webkit-details-marker { display: none; }
.job .ico { margin: 0; }
.job h3 { font-size: 24px; }
.job .sub { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.job .plus { width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 22px; transition: transform .25s, background .2s; }
.job[open] .plus { transform: rotate(45deg); background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.job .content { padding: 0 24px 26px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: end; }
.job h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dim); }
.job .checks { margin-top: 10px; }
@media (max-width: 760px) { .job .content { grid-template-columns: 1fr; } .job summary { grid-template-columns: auto 1fr auto; gap: 12px; padding: 18px; } .job h3 { font-size: 20px; } }
.warn {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255, 138, 31, .08); border: 1px solid rgba(255, 138, 31, .35);
}
.warn b { color: var(--orange); }

/* ---------- about ---------- */
.timeline { position: relative; display: grid; gap: 16px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--yellow), var(--cyan)); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -32px; top: 26px; width: 17px; height: 17px; border-radius: 5px; background: var(--bg); border: 3px solid var(--yellow); transform: rotate(45deg); }
.tl:nth-child(even)::before { border-color: var(--cyan); }
.tl .when { font: 800 12px/1 var(--body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); }
[data-theme="light"] .tl .when { color: #b97d00; }
.tl h3 { margin: 8px 0 6px; font-size: 22px; }
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }
.founder .pic { aspect-ratio: 1; border-radius: 22px; background: linear-gradient(135deg, var(--yellow), var(--orange)); display: grid; place-items: center; overflow: hidden; }
.founder .pic .noob { transform: scale(.9); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 72px 40px; text-align: center;
  background: linear-gradient(135deg, #ffd21e 0%, #ff9c1f 55%, #ff7a1f 100%);
  color: var(--ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: radial-gradient(rgba(0, 0, 0, .35) 2.4px, transparent 2.8px); background-size: 26px 26px;
}
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); }
.cta-band p { font-size: 18px; font-weight: 600; max-width: 560px; margin: 16px auto 30px; opacity: .8; }
.cta-band .btn { --b: #0e1230; --bd: #000; --t: #fff; }
.cta-band .btn.ghost { --b: transparent; --t: var(--ink); border-color: rgba(0, 0, 0, .35); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 52px 22px; border-radius: 24px; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--yellow); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding-bottom: 20px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; margin-top: 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid img { height: 64px; width: auto; margin-bottom: 16px; }
.foot-grid h4 { margin: 4px 0 14px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.foot-grid a { display: block; color: var(--muted); padding: 5px 0; font-weight: 500; font-size: 15px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { color: var(--muted); font-size: 15px; max-width: 300px; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; padding: 0; }
.socials a:hover { border-color: var(--text); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in, .game.reveal.in { transition: opacity .7s, transform .25s, border-color .25s, box-shadow .25s; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* stud burst particles */
.stud-p { position: fixed; width: 14px; height: 14px; border-radius: 4px; pointer-events: none; z-index: 999; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 1000; transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Investor cards: matching, high-contrast vector icons. */
.investor-icon svg { width: 28px; height: 28px; display: block; }

/* Careers: matching role icons with contrast on bright wells. */
.job-icon svg { width: 28px; height: 28px; display: block; }

/* About values: consistent vector icons on bright accent wells. */
.value-icon svg { width: 28px; height: 28px; display: block; }

/* Searchable country dial codes: real local flags, keyboard support and theme contrast. */
.phone > input { flex: 1; min-width: 0; }
.country-picker { position: relative; flex: 0 0 128px; min-width: 0; }
.country-toggle { width: 100%; min-height: 50px; padding: 12px 10px; display: flex; gap: 8px; align-items: center; background: var(--bg); color: var(--text); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; }
.country-toggle span { flex: 1; text-align: left; white-space: nowrap; }
.country-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.country-toggle:focus-visible, .country-toggle[aria-expanded="true"] { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(39, 196, 255, .15); }
.country-picker img { display: block; width: 24px; height: 18px; object-fit: cover; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line-2); }
.country-popup { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: min(340px, calc(100vw - 80px)); padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.country-popup[hidden], .country-picker select[hidden] { display: none; }
.field .country-popup input { padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
.country-options { max-height: min(280px, 40vh); overflow-y: auto; overscroll-behavior: contain; }
.country-option { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font-size: 14px; cursor: pointer; }
.country-option span { flex: 1; min-width: 0; }
.country-option b { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.country-option:hover, .country-option.is-active { background: var(--card-2); }
.country-option[aria-selected="true"] { background: var(--text); color: var(--bg); }
.country-option[aria-selected="true"] b { color: inherit; }
.country-popup .country-empty { margin: 0; padding: 16px 10px; color: var(--muted); font-size: 14px; }

/* Founder portrait and real creator-community photos. */
.founder:has(.founder-photo) { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 36px; }
.founder .founder-photo { aspect-ratio: 3 / 4; background: var(--card-2); border: 1px solid var(--line-2); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left 75%; }
.community-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.community-photo { margin: 0; padding: 0; overflow: hidden; background: var(--card-2); }
.community-photo a { display: block; }
.community-photo a:focus-visible { outline: 3px solid var(--cyan); outline-offset: -4px; }
.community-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .founder:has(.founder-photo) { grid-template-columns: 1fr; gap: 24px; }
  .founder .founder-photo { width: min(100%, 320px); justify-self: center; }
  .community-photos { grid-template-columns: 1fr; gap: 18px; }
}

/* Regional studio map, with theme-aware outlines and a city-level Jakarta marker. */
.studio-location { display: grid; grid-template-columns: 1fr 1.12fr; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--card); }
.studio-location-copy { padding: clamp(28px, 4vw, 52px); align-self: center; }
.studio-location-copy h2 { font-size: clamp(34px, 3.8vw, 52px); }
.studio-location-copy .lead { font-size: 16px; line-height: 1.75; }
.studio-map { position: relative; isolation: isolate; min-height: 420px; overflow: hidden; display: block; color: var(--text); border-left: 1px solid var(--line-2); background: radial-gradient(ellipse at 46% 45%, var(--card-2), var(--bg) 90%); }
.studio-map-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s ease; }
.studio-map:hover .studio-map-art { transform: scale(1.035); }
.studio-map:focus-visible { outline: 3px solid var(--cyan); outline-offset: -4px; }
.jakarta-map-label { font: 600 15px var(--body); fill: currentColor; stroke: var(--card); stroke-width: 3px; paint-order: stroke; }
.jakarta-pulse { transform-box: fill-box; transform-origin: center; animation: jakarta-pulse 3s ease-out infinite; }
@keyframes jakarta-pulse { from { transform: scale(.7); opacity: .65; } to { transform: scale(2); opacity: 0; } }
.studio-map-location { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; }
.studio-map-location > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.studio-map-arrow { opacity: .6; }
@media (max-width: 760px) {
  .studio-location { grid-template-columns: 1fr; }
  .studio-map { min-height: 340px; border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { .jakarta-pulse { animation: none; } .studio-map:hover .studio-map-art { transform: none; } }
