/* Sun Game Studio — site styles (October 2026 redesign).
   Night palette: deep navy ink with sun gold. Fonts are self-hosted (SIL OFL, see /fonts/). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #070c16;
  --bg-2: #0a1120;
  --surface: #0e182a;
  --surface-2: #132037;
  --line: rgba(255, 206, 120, .12);
  --line-2: rgba(255, 206, 120, .26);
  --line-3: rgba(255, 206, 120, .5);
  --fg: #f6f1e7;
  --fg-2: #d9d4c9;
  --muted: #a6b0c2;
  --gold: #ffc65a;
  --gold-2: #ffdd8f;
  --amber: #f59e0b;
  --ember: #ee7d18;
  --sun: linear-gradient(135deg, #ffe597 0%, #ffbf47 42%, #f08b1d 100%);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -32px rgba(0, 0, 0, .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; }
a { color: var(--gold); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
strong { color: var(--fg); font-weight: 600; }
::selection { background: rgba(255, 190, 70, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1c1204; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 12, 22, .74);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--fg); font: 700 18px/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 36px; height: 36px; filter: drop-shadow(0 4px 14px rgba(245, 158, 11, .4)); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--fg); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), background-color .2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.is-open .menu-icon { background: transparent; }
.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 719px) {
  .js .menu-btn { display: grid; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--gutter) 18px; background: rgba(7, 12, 22, .97); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .8);
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  html:not(.js) .bar { flex-wrap: wrap; padding: 12px 0 8px; gap: 8px; }
  html:not(.js) .site-nav { width: 100%; justify-content: space-between; }
  html:not(.js) .site-nav a { padding: 6px 4px; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--fg); text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; }
h3 { font-weight: 650; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--gold); font: 600 12.5px/1.3 var(--font-text); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 12px rgba(255, 190, 70, .85);
}
.sun-word { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 34em; margin: 0 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1.2 var(--font-text); text-align: center; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn:hover { text-decoration: none; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn-primary {
  background: var(--sun); color: #1c1204;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 30px -12px rgba(245, 150, 30, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 38px -14px rgba(245, 150, 30, .9); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255, 206, 120, .07); }
.btn-soon { background: rgba(255, 255, 255, .02); color: var(--fg-2); border: 1px dashed var(--line-3); cursor: default; }
.btn-soon::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 90, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 198, 90, 0); } }
.text-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; color: var(--fg-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-3); }
.text-link:hover { color: var(--gold); }
.cta-row, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
/* Glows reach past the page edge: clip them sideways only (overflow: hidden also cut the intro glow in Chrome). */
.hero, .game-hero, .doc, .not-found { overflow: hidden; }
@supports (overflow-x: clip) { .hero, .game-hero, .doc, .not-found { overflow: visible; overflow-x: clip; } }
.hero { position: relative; isolation: isolate; padding: clamp(36px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -30%; right: -25%;
  width: min(1100px, 150vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 178, 50, .26), rgba(240, 120, 20, .09) 48%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: -20%; bottom: -40%;
  width: min(900px, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(40, 90, 170, .2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; margin: 0 0 24px; }
.hero-media { position: relative; display: grid; place-items: center; order: -1; }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; width: 150%; aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 196, 90, .09) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 72%);
  mask: radial-gradient(closest-side, #000 30%, transparent 72%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.intro {
  position: relative; width: min(440px, 80vw); aspect-ratio: 1 / 1; border-radius: 30px; overflow: hidden; background: #0b2031;
  box-shadow: 0 0 0 1px rgba(255, 206, 120, .24), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 140px -30px rgba(245, 158, 11, .45);
}
.intro::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.intro video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro .sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7, 12, 22, .72); color: var(--fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 13px/1 var(--font-text); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.intro .sound:hover { border-color: var(--line-3); background: rgba(7, 12, 22, .85); }
.intro .sound::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.intro .sound[aria-pressed="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
}
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero-media { order: 0; }
  .intro { width: min(460px, 100%); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 92%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.section-head { max-width: 760px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); margin: 0; }
.subhead { margin: clamp(56px, 7vw, 88px) 0 22px; }
.subhead h3 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.025em; }
.subhead p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 28px); }
@media (min-width: 880px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 70px -34px rgba(0, 0, 0, .95), 0 0 80px -40px rgba(245, 158, 11, .35); }
.game-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050910; }
.game-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.game-card:hover .game-media img { transform: scale(1.04); }
.game-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 42, 0) 45%, rgba(14, 24, 42, .75) 80%, var(--surface) 99%); }
.status {
  position: absolute; z-index: 1; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(7, 12, 22, .78); border: 1px solid var(--line-2); color: var(--fg);
  font: 600 12.5px/1 var(--font-text); letter-spacing: .02em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .8); }
.status.soon::before { background: var(--gold); box-shadow: 0 0 10px rgba(255, 198, 90, .8); }
.game-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px); }
.game-body > p { margin: 0; color: var(--muted); }
.game-head { display: flex; align-items: flex-end; gap: 16px; margin-top: -44px; }
.game-icon {
  display: block; flex: none; width: 88px; height: 88px; border-radius: 22px; background: #fff; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 206, 120, .35), 0 0 0 5px rgba(14, 24, 42, .9), 0 16px 30px -8px rgba(0, 0, 0, .8);
}
.game-head h3 { font-size: clamp(25px, 2.6vw, 30px); letter-spacing: -.025em; padding-bottom: 6px; }
.actions { margin-top: auto; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag {
  display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 206, 120, .06); color: var(--fg-2);
  font: 600 12.5px/1 var(--font-text); letter-spacing: .01em;
}
.tag.age { background: #c62828; border-color: #e0463f; color: #fff; }
.more-card {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 26px clamp(20px, 3vw, 32px);
  border-radius: 26px; border: 1px dashed var(--line-2);
  background: radial-gradient(120% 160% at 0% 50%, rgba(255, 190, 70, .09), transparent 55%), rgba(255, 255, 255, .015);
}
.more-card img { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 6px 18px rgba(245, 158, 11, .35)); }
.more-card h3 { margin-bottom: 4px; }
.more-card p { margin: 0; color: var(--muted); }

/* ---------- Video and screenshots ---------- */
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.video-frame {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 120px -60px rgba(245, 158, 11, .5);
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video-grid .video-frame { border-radius: 18px; border-color: var(--line); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 18px); }
.gallery .feature-shot { grid-column: span 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot a {
  position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.shot a::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(7, 12, 22, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc65a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.shot a:hover, .shot a:focus-visible { border-color: var(--line-3); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9); }
.shot a:hover img, .shot a:focus-visible img { transform: scale(1.04); }
.shot a:hover::after, .shot a:focus-visible::after { opacity: 1; transform: none; }

/* Phone screenshots (Brain Train) */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 28px); }
@media (min-width: 720px) { .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .phones { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.phone a, .phone-frame {
  display: block; position: relative; overflow: hidden; border-radius: 24px; background: #0c1a14;
  border: 1px solid rgba(255, 206, 120, .28);
  box-shadow: 0 0 0 5px #0b111c, 0 0 0 6px rgba(255, 206, 120, .14), 0 30px 60px -30px rgba(0, 0, 0, .95);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.phone { padding: 6px; }
.phone img, .phone-frame img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.phone a:hover, .phone a:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 5px #0b111c, 0 0 0 6px rgba(255, 206, 120, .3), 0 40px 70px -30px rgba(0, 0, 0, .95); }
.phone figcaption { text-align: center; margin-top: 16px; }

/* Lightbox (site.js) */
.lightbox { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 6, 12, .92); }
.lightbox figure { margin: 0; padding: 72px 16px 80px; max-width: min(1400px, 100vw); text-align: center; }
.lightbox img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox figcaption { color: var(--fg-2); font-size: 15px; margin-top: 14px; }
.lb-btn {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(14, 24, 42, .85); color: var(--fg); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { border-color: var(--line-3); background: rgba(19, 32, 55, .95); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.about-copy p:not(.eyebrow) { color: var(--fg-2); font-size: 17px; margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.pillars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--surface);
}
.ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 190, 70, .1); color: var(--gold); border: 1px solid var(--line); }
.ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 18px; margin: 2px 0 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface);
  box-shadow: var(--card-shadow);
}
.contact-card .ico { margin-bottom: 6px; }
.contact-card h3 { font-size: 19px; }
.contact-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.address { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Game detail pages ---------- */
.game-hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.game-hero::before {
  content: ""; position: absolute; z-index: -1; top: -35%; right: -20%; width: min(1000px, 140vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 178, 50, .22), rgba(240, 120, 20, .07) 50%, transparent 72%);
}
.game-hero.emerald::before { background: radial-gradient(closest-side, rgba(40, 150, 100, .30), rgba(29, 107, 75, .1) 50%, transparent 72%); }
.game-hero.emerald::after {
  content: ""; position: absolute; z-index: -1; left: -25%; bottom: -45%; width: min(900px, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 178, 50, .12), transparent 70%);
}
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .game-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.title-row .game-icon { width: 84px; height: 84px; box-shadow: 0 0 0 1px rgba(255, 206, 120, .35), 0 16px 30px -8px rgba(0, 0, 0, .8); }
.game-hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; margin: 0; }
.game-hero .tags { margin-bottom: 22px; }
.game-hero .lead { margin-bottom: 28px; }
.phone-pair { position: relative; display: flex; justify-content: center; padding: 10px 0 0; }
.phone-pair .phone-frame { width: min(270px, 52vw); }
.phone-pair .phone-frame.front { z-index: 1; transform: translateX(20%) rotate(3deg); }
.phone-pair .phone-frame.back { position: absolute; top: 34px; left: 50%; width: min(240px, 46vw); transform: translateX(-90%) rotate(-6deg); opacity: .9; }

.notice {
  position: relative; margin: 0; padding: clamp(22px, 3vw, 32px); border-radius: 22px;
  border: 1px solid rgba(255, 190, 70, .45);
  background: linear-gradient(180deg, rgba(255, 190, 70, .08), rgba(255, 190, 70, .03)), var(--surface);
  box-shadow: var(--card-shadow);
}
.notice h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 16px; }
.notice ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.notice li { position: relative; padding-left: 26px; color: var(--fg-2); }
.notice li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255, 198, 90, .6); }
.notice .muted { margin: 18px 0 0; font-size: 14.5px; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-grid > li {
  padding: 24px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface);
}
.feature-grid > li strong { color: var(--fg); }
.feature-grid .ico { margin-bottom: 16px; }
.feature-grid h3 { font-size: 19px; margin: 0 0 6px; }
.feature-grid p { margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step; position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: var(--sun); color: #1c1204; font: 700 17px/1 var(--font-display);
  box-shadow: 0 8px 20px -8px rgba(245, 150, 30, .8);
}
.steps h3 { font-size: 19px; margin: 0 0 6px; }
.steps p { margin: 0; }

.facts-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { width: 36%; color: var(--muted); font-weight: 500; font-size: 15px; }
.facts-table td { color: var(--fg); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(24px, 4vw, 40px); border-radius: 26px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 200% at 100% 0%, rgba(255, 178, 50, .18), transparent 55%), var(--surface);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.prose-inline p { color: var(--fg-2); }

/* ---------- Legal and document pages ---------- */
.doc { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc::before {
  content: ""; position: absolute; z-index: -1; top: -420px; right: -260px; width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 178, 50, .14), transparent 70%);
}
.doc-head, .prose { max-width: 800px; margin-left: auto; margin-right: auto; }
.doc-head { margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.02; margin: 0 0 14px; }
.doc-head p:not(.eyebrow) { margin: 0; }
.doc-head .muted, .doc-head .meta { color: var(--muted); font-size: 15px; }
.prose { font-size: 16.5px; }
.prose p, .prose li { color: var(--fg-2); }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--gold); }
.prose h2 { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.25; letter-spacing: -.015em; margin: 52px 0 14px; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--sun); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(255, 198, 90, .45); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: .9em; }
.prose .card {
  margin: 0 0 8px; padding: 20px 24px; border-radius: 18px; border: 1px solid rgba(255, 190, 70, .4);
  background: linear-gradient(180deg, rgba(255, 190, 70, .08), rgba(255, 190, 70, .03)), var(--surface);
}
.prose .card p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
.doc-foot { max-width: 800px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.not-found { position: relative; isolation: isolate; text-align: center; padding: clamp(72px, 14vw, 160px) 0; }
.not-found::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 178, 50, .16), transparent 70%);
}
.not-found .big { margin: 0 0 6px; font: 800 clamp(96px, 22vw, 200px)/1 var(--font-display); letter-spacing: -.05em; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; }
.not-found p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #04070d); color: var(--muted); font-size: 14.5px; padding: clamp(48px, 7vw, 80px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .footer-brand, .footer-col:last-child { grid-column: auto; } }
.footer-brand p { max-width: 30em; margin: 16px 0 0; }
.footer-title { margin: 0 0 16px; color: var(--fg); font: 600 12.5px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }
.footer-bottom a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-3); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; }
  .rise.d2 { animation-delay: .16s; }
  .rise.d3 { animation-delay: .24s; }
  .rise.d4 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-media::before, .btn-soon::before { animation: none; }
}

/* Founders */
.team { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .team { grid-template-columns: 1fr 1fr; } }
.member {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--surface);
}
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; font-size: 15px; letter-spacing: .02em; background: rgba(255, 190, 70, .1); color: var(--gold); border: 1px solid var(--line); }
.member h3 { font-size: 17px; margin: 2px 0 2px; }
.member p { margin: 0 0 6px !important; color: var(--muted) !important; font-size: 14px !important; }
.team-link { font-size: 14px; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.team-link:hover { border-bottom-color: var(--gold); }
