/* =====================================================================
   GOLDMIND GAMES — MAIN STYLESHEET
   ===================================================================== */

:root {
  --bg: #060609;
  --bg-2: #0d0d13;
  --charcoal: #15151d;
  --panel: rgba(22, 22, 32, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #eeeae2;
  --muted: #a19cab;
  --dim: #6c6878;

  --gold: #d4a24c;
  --gold-hi: #f6d58a;
  --gold-lo: #8a5f1c;
  --blue: #2fb4ff;
  --purple: #8b5cf6;
  --red: #ff3340;
  --green: #2fd36b;

  --metal: linear-gradient(180deg, #ffffff 0%, #c9c9cf 38%, #7d7d86 52%, #e4e4ea 70%, #9a9aa3 100%);
  --gold-metal: linear-gradient(180deg, #fff1c2 0%, #f0c46a 40%, #a8752a 55%, #e7b866 75%, #8a5f1c 100%);

  --font-display: "Teko", "Oswald", "Arial Narrow", sans-serif;
  --font-ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --accent-a: var(--gold);
  --accent-b: var(--blue);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #000; }

[hidden] { display: none !important; }
.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-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Background film grain + ambient glow for the whole site */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(47, 180, 255, 0.07), transparent 60%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.metal-text {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 10px 30px rgba(0,0,0,.6));
}
.gold-text { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #d6d1da; max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; padding-top: 4px; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; margin-top: -4px; flex: none; }
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, #ffe7a6 0%, #e2b25a 45%, #b47f2c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.25), 0 10px 30px -10px rgba(212,162,76,.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.25), 0 16px 40px -10px rgba(246,213,138,.85); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.btn-play {
  color: #fff;
  background: linear-gradient(180deg, #4cc7ff 0%, #1e7fe0 55%, #5a3be0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 36px -10px rgba(47,180,255,.85);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 46px -10px rgba(47,180,255,1); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .75; transform: none !important; }
.btn-locked { color: var(--muted); background: rgba(255,255,255,.03); border-color: var(--line-2); }
.btn-sm { min-height: 42px; font-size: 20px; padding: 3px 18px 0; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Badges + chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border-radius: 999px;
  font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  border: 1px solid; backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.badge-soon { color: var(--gold-hi); border-color: rgba(246,213,138,.45); background: rgba(40,28,8,.6); }
.badge-soon::before { animation: pulse 1.8s ease-in-out infinite; }
.badge-live { color: #7dffb0; border-color: rgba(125,255,176,.45); background: rgba(8,40,20,.6); }
.badge-xl { font-size: 15px; padding: 10px 18px 9px; }
@keyframes pulse { 50% { opacity: .35; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9d4e0;
  padding: 5px 11px 4px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}

.devices { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.device {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: rgba(0,0,0,.35);
}
.device svg { width: 16px; height: 16px; }
.device[data-state="supported"] { color: #9ff5c1; border-color: rgba(125,255,176,.35); }
.device[data-state="planned"] { color: #b8b3c4; border-style: dashed; }
.device[data-state="no"] { display: none; }
.devices.compact .device span { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.always-solid {
  background: rgba(6, 6, 9, 0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
/* goldmind-*.webp are see-through copies of art/ui/goldmind_games_logo.png */
.brand-emblem { width: auto; height: 44px; }
.brand-icon { border-radius: 10px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: .04em; line-height: 1; padding-top: 4px; white-space: nowrap; }
@media (max-width: 420px) { .brand { gap: 8px; } .brand-emblem { height: 32px; } .brand-word { font-size: 23px; } }
.brand-word .c { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word .g { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #cfcad6;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px;
    background: rgba(6,6,9,.97); backdrop-filter: blur(16px);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; overflow: hidden;
  transition: opacity .9s var(--ease-out), visibility .9s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-flare {
  position: absolute; left: 50%; top: 42%; width: 140vmax; height: 3px; transform: translate(-50%, -50%) scaleX(0);
  background: linear-gradient(90deg, transparent, rgba(47,180,255,.0) 20%, rgba(180,220,255,.9) 48%, #fff 50%, rgba(255,214,140,.9) 52%, transparent 80%);
  filter: blur(1px); opacity: 0;
}
.intro-flare::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46vmin; height: 46vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,230,180,.55), rgba(212,162,76,.18) 35%, transparent 65%);
}
.intro-stage { position: relative; display: grid; justify-items: center; gap: 2.4vmin; text-align: center; }
.intro-emblem-wrap { position: relative; width: min(46vmin, 360px); aspect-ratio: 1; opacity: 0; transform: scale(.82); filter: blur(14px) brightness(2.2); }
.intro-emblem-wrap::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,76,.35), rgba(139,92,246,.12) 45%, transparent 68%);
}
.intro-emblem {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%); mask-image: radial-gradient(circle, #000 64%, transparent 71%);
}
.intro-shine {
  position: absolute; inset: 4%; border-radius: 50%; overflow: hidden; mix-blend-mode: screen;
}
.intro-shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 35%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg);
}
.intro-word { width: min(78vw, 640px); opacity: 0; clip-path: inset(0 50% 0 50%); }
.intro-word img { width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.intro-tag { font-family: var(--font-display); font-size: clamp(20px, 3.4vmin, 32px); letter-spacing: .34em; color: #d6d1da; margin: 0; padding-left: .34em; }
.intro-tag span { display: inline-block; opacity: 0; transform: translateY(14px); }
.intro-tag span:nth-child(2) { color: var(--gold-hi); }
.intro-skip {
  position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 40px); z-index: 2;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  padding: 10px 18px; font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: #ddd;
}
.intro-skip:hover { border-color: var(--gold); color: var(--gold-hi); }

.intro.play .intro-flare { animation: flare 1.6s .2s var(--ease-out) forwards; }
.intro.play .intro-emblem-wrap { animation: emblemIn 1.5s .5s var(--ease-out) forwards; }
.intro.play .intro-shine::after { animation: shine 1.1s 1.7s ease-in-out forwards; }
.intro.play .intro-word { animation: wordIn 1s 1.5s var(--ease-out) forwards; }
.intro.play .intro-tag span { animation: tagIn .7s var(--ease-out) forwards; }
.intro.play .intro-tag span:nth-child(1) { animation-delay: 2.15s; }
.intro.play .intro-tag span:nth-child(2) { animation-delay: 2.35s; }
.intro.play .intro-tag span:nth-child(3) { animation-delay: 2.55s; }
.intro.outro .intro-stage { transition: transform 1s var(--ease-out), opacity .9s; transform: scale(1.18); opacity: 0; }

/* Goldmind logo: wide art on black instead of the round emblem */
.intro-emblem-wrap.gm { width: min(88vw, 92vmin * 1.5, 720px); aspect-ratio: 3 / 2; }
.intro-emblem-wrap.gm::before { inset: -10%; background: radial-gradient(ellipse, rgba(212,162,76,.32), rgba(212,162,76,.08) 45%, transparent 68%); }
.intro-emblem-wrap.gm .intro-emblem { object-fit: contain; mix-blend-mode: screen; -webkit-mask-image: none; mask-image: none; }
.intro-emblem-wrap.gm .intro-shine { display: none; }

@keyframes flare { 0% { opacity: 0; transform: translate(-50%,-50%) scaleX(0); } 35% { opacity: 1; } 100% { opacity: .0; transform: translate(-50%,-50%) scaleX(1); } }
@keyframes emblemIn { to { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); } }
@keyframes shine { to { left: 130%; } }
@keyframes wordIn { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes tagIn { to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: calc(var(--header-h) + 20px) 0 28px; isolation: isolate;
}
.hero-bg { position: absolute; inset: -40px; z-index: -3; background-size: cover; background-position: center 30%; filter: blur(34px) saturate(1.3) brightness(.45); transform: scale(1.1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6,6,9,.96) 0%, rgba(6,6,9,.78) 42%, rgba(6,6,9,.35) 75%, rgba(6,6,9,.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    linear-gradient(180deg, rgba(6,6,9,.6) 0%, transparent 25%);
}
.hero-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-beams i {
  position: absolute; top: -20%; width: 34vw; height: 140%; transform-origin: top center; mix-blend-mode: screen; opacity: .5;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}
.hero-beams i:nth-child(1) { left: 52%; animation: sweep 9s ease-in-out infinite alternate; background: linear-gradient(180deg, rgba(47,211,107,.32), transparent 70%); }
.hero-beams i:nth-child(2) { left: 66%; animation: sweep 11s -3s ease-in-out infinite alternate-reverse; background: linear-gradient(180deg, rgba(47,123,255,.34), transparent 70%); }
.hero-beams i:nth-child(3) { left: 80%; animation: sweep 13s -6s ease-in-out infinite alternate; background: linear-gradient(180deg, rgba(246,213,138,.22), transparent 70%); }
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 16px; justify-items: start; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-title { font-size: clamp(50px, 6.2vw, 100px); }
.hero-title .l2 { display: block; font-size: .62em; letter-spacing: .02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-genre { font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.hero-genre b { color: var(--text); font-weight: 700; }

.cover3d { perspective: 1200px; justify-self: center; width: min(100%, 300px); }
.cover3d-inner {
  position: relative; border-radius: var(--radius-lg); transform-style: preserve-3d; transition: transform .5s var(--ease-out);
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg));
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12), 0 0 80px -10px color-mix(in srgb, var(--accent-a) 55%, transparent);
}
.cover3d-inner img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cover3d-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.08) 100%);
  mix-blend-mode: screen;
}
.cover3d .badge { position: absolute; top: 16px; left: 16px; transform: translateZ(40px); }
.cover-reflect { height: 60px; margin-top: 10px; border-radius: 50%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-a) 40%, transparent), transparent 70%); filter: blur(16px); opacity: .7; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 20px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cover3d { width: min(78vw, 360px); }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6,6,9,.7) 50%, rgba(6,6,9,.5) 100%); }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(44px, 6vw, 84px); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 56ch; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Featured panels ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.feature {
  --accent-a: var(--gold); --accent-b: var(--blue);
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: stretch;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; min-height: 420px;
  background: var(--charcoal); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--art); background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.4) brightness(.35); transform: scale(1.3);
}
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent-a) 60%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent-a) 60%, transparent); }
.feature-art { position: relative; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature-art img { transform: scale(1.06); }
.feature-body { display: grid; align-content: center; gap: 16px; padding: clamp(20px, 3vw, 36px); }
.feature-body h3 { font-size: clamp(36px, 3.3vw, 54px); overflow-wrap: anywhere; }
.feature-body p { margin: 0; color: #cbc6d2; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid:has(> .feature:only-child) { grid-template-columns: 1fr; }
.section-logo { width: clamp(160px, 18vw, 240px); height: auto; }

/* ---------- CinemaGames (games based on movies and TV) ---------- */
.cinema { position: relative; }
.cinema::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 20%, rgba(201,201,207,.07), transparent 70%), linear-gradient(180deg, transparent, rgba(255,255,255,.02) 40%, transparent); }
.cinema-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(28px, 4vw, 52px); }
.cinema-logo { width: 100%; max-width: 440px; justify-self: center; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.cinema-copy h2 { font-size: clamp(44px, 6vw, 84px); margin: 14px 0 18px; }
.cinema-copy p { margin: 0 0 16px; color: #d2cdd8; font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; }
.cinema-copy p.big { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1; color: #fff; text-transform: uppercase; }
.cinema-copy .sign { font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; margin-top: 22px; text-transform: uppercase; }
@media (max-width: 800px) {
  .cinema-intro { grid-template-columns: 1fr; text-align: left; }
  .cinema-logo { max-width: 300px; }
  .section-logo { width: 150px; }
}
@media (max-width: 600px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-art { aspect-ratio: 16 / 11; }
  .feature-art img { object-position: center 25%; }
}

/* Cover with printed title (for art without a painted-in logo) */
.cover-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28% 8% 9%; text-align: center; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
}
.cover-title .t1 {
  display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .82;
  font-size: var(--ct-size, 64px); letter-spacing: .02em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.7));
}
.cover-title .t2 {
  display: inline-block; margin-top: .1em; font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: calc(var(--ct-size, 64px) * .5); letter-spacing: .06em; line-height: 1; color: var(--accent-a);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent-a) 70%, transparent); transform: skewX(-8deg) rotate(-3deg);
}

/* ---------- Library ---------- */
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer;
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #cfcad6; transition: all .2s;
}
.filter:hover { border-color: var(--gold); color: #fff; }
.filter[aria-pressed="true"] { background: linear-gradient(180deg, #ffe7a6, #c99440); border-color: transparent; color: #1a1206; }
.rail-nav { display: flex; gap: 8px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 22px var(--gutter) 34px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: #2b2b36 transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #2b2b36; border-radius: 8px; }
.rail > * { scroll-snap-align: start; }
.rail-empty { padding: 40px 0; color: var(--muted); }

.card {
  --accent-a: var(--gold);
  position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.card:hover, .card:focus-within { transform: translateY(-8px) scale(1.02); border-color: color-mix(in srgb, var(--accent-a) 65%, transparent);
  box-shadow: 0 26px 60px -20px rgba(0,0,0,.9), 0 0 40px -12px color-mix(in srgb, var(--accent-a) 70%, transparent); }
.card-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a0f; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card-art img { transform: scale(1.07); }
.card-art .badge { position: absolute; top: 12px; left: 12px; font-size: 11px; }
.card-art .cover-title { --ct-size: 52px; }
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease-out);
}
.card:hover .card-art::after { transform: translateX(100%); }
.card-body { display: grid; align-content: start; gap: 8px; padding: 16px 16px 18px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: .9; text-transform: uppercase; margin: 0; padding-top: 3px; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-genre { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-a); }
.card-desc { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card-cta { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }

.card-vault {
  display: grid; place-items: center; text-align: center; padding: 28px; aspect-ratio: auto; min-height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 35%, rgba(139,92,246,.25), transparent 60%), var(--bg-2);
  border-style: dashed; border-color: var(--line-2);
}
.card-vault:hover { transform: none; box-shadow: none; }
.card-vault .lock { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--purple); filter: drop-shadow(0 0 16px rgba(139,92,246,.6)); }
.card-vault h3 { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: .95; text-transform: uppercase; margin: 0 0 8px; }
.card-vault p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Coming soon list ---------- */
.upcoming { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.up-item {
  --accent-a: var(--gold);
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 14px 18px 14px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.up-item:hover { border-color: color-mix(in srgb, var(--accent-a) 55%, transparent); transform: translateX(4px); }
.up-thumb { width: 88px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; position: relative; background: #000; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb .cover-title { --ct-size: 20px; padding: 30% 4% 8%; }
.up-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: .9; text-transform: uppercase; margin: 0 0 4px; padding-top: 4px; }
.up-item h3 a::after { content: ""; position: absolute; inset: 0; }
.up-item p { margin: 0; color: var(--muted); font-size: 15px; }
.up-side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.up-side small { color: var(--dim); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
@media (max-width: 640px) {
  .up-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .up-thumb { width: 72px; }
  .up-side { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-copy p { margin: 0 0 18px; color: #d2cdd8; font-size: clamp(17px, 1.4vw, 19px); }
.about-copy p.big { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.about-copy .sign { font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; margin-top: 26px; text-transform: uppercase; }
.pillars { display: grid; gap: 14px; }
.pillar {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border: 1px solid var(--line); overflow: hidden;
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pc); box-shadow: 0 0 20px var(--pc); }
.pillar-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: var(--pc);
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); }
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: .9; text-transform: uppercase; padding-top: 4px; }
.pillar p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-card {
  padding: clamp(20px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: var(--text);
  font: 500 17px/1.4 var(--font-ui); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,76,.18); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; min-height: 1.4em; }
.form-note.ok { color: #9ff5c1; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: #d2cdd8; }
.contact-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(212,162,76,.04)); padding: 56px 0 28px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 40ch; margin: 14px 0 0; font-size: 15px; }
.footer-slogan { font-family: var(--font-display); font-size: 26px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px !important; color: var(--gold-hi) !important; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #cfcad6; font-size: 16px; }
.footer-col a:hover { color: var(--gold-hi); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #ddd; transition: all .2s; }
.social svg { width: 20px; height: 20px; }
a.social:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.social.is-soon { opacity: .4; cursor: default; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Game detail ---------- */
.detail-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 56px; }
.detail-hero .hero-bg { filter: blur(40px) saturate(1.4) brightness(.4); }
.detail-hero .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6,6,9,.55) 45%, rgba(6,6,9,.7) 100%); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--gold-hi); }
.detail-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.detail-poster { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.12), 0 0 70px -10px color-mix(in srgb, var(--accent-a) 50%, transparent); }
.detail-poster img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.detail-poster .cover-title { --ct-size: 76px; }
.detail-info { display: grid; gap: 18px; justify-items: start; }
.detail-info h1 { font-size: clamp(58px, 8vw, 120px); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.detail-actions small { color: var(--muted); font-size: 14px; max-width: 34ch; }
@media (max-width: 820px) {
  .detail-top { grid-template-columns: 1fr; }
  .detail-poster { width: min(72vw, 320px); }
}

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail-body h2 { font-size: clamp(38px, 4vw, 54px); margin-bottom: 16px; }
.prose p { margin: 0 0 16px; color: #d2cdd8; }
.block { margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 1000px) { .detail-body { grid-template-columns: 1fr; } }

.media-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-a) 18%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px), #0b0b11;
  display: grid; place-items: center; text-align: center;
}
.media-frame iframe, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-frame .ph { display: grid; justify-items: center; gap: 10px; color: var(--muted); padding: 20px; }
.media-frame .ph svg { width: 54px; height: 54px; color: var(--accent-a); opacity: .85; }
.media-frame .ph strong { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: #fff; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots .media-frame .ph strong { font-size: 20px; }
.shots .media-frame .ph svg { width: 30px; height: 30px; }
.shots button.media-frame { cursor: zoom-in; padding: 0; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr 1fr; } }

.status-panel { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 0; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.status-panel header { padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-a) 14%, transparent), transparent); }
.status-panel header h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: .9; text-transform: uppercase; padding-top: 4px; }
.status-panel dl { margin: 0; padding: 8px 22px 16px; display: grid; }
.status-panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.status-panel dl div:last-child { border-bottom: 0; }
.status-panel dt { color: var(--muted); font-weight: 600; }
.status-panel dd { margin: 0; text-align: right; font-weight: 700; }
.status-panel .future { padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.status-panel .future h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.status-panel .future ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.status-panel .future li { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; border: 1px dashed var(--line-2); color: var(--dim); }

.controls-table { width: 100%; border-collapse: collapse; font-size: 15px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.controls-table th, .controls-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.controls-table thead th { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,.03); }
.controls-table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.controls-table td:first-child { color: #fff; font-weight: 700; }
.controls-table kbd { font: 700 13px var(--font-ui); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px;
  background: rgba(47,180,255,.07); border: 1px solid rgba(47,180,255,.25); color: #cfe6f7;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }

.lightbox:not([open]) { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(0,0,0,.92); padding: 24px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; }

/* ---------- Player ---------- */
body.player-page { background: #000; }
.player-shell { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; background: #000; }
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(10px, 2vw, 20px);
  background: linear-gradient(180deg, #0c0c12, #07070a); border-bottom: 1px solid var(--line); z-index: 5;
}
.player-bar .left, .player-bar .right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; text-transform: uppercase; line-height: 1; padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pad-indicator svg { width: 20px; height: 20px; }
.pad-indicator.on { color: #9ff5c1; }
.player-stage { position: relative; overflow: hidden; background: #000; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-shell.is-immersive { z-index: 300; }
.player-shell.is-immersive .player-bar { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.6); }
.player-shell.is-immersive .player-bar:hover, .player-shell.is-immersive .player-bar:focus-within { opacity: 1; }
.player-shell.is-immersive { grid-template-rows: 1fr; }
.player-shell.is-immersive .player-stage { grid-row: 1; }
.exit-immersive { position: absolute; top: 10px; right: 10px; z-index: 6; display: none; }
.player-shell.is-immersive .exit-immersive { display: inline-grid; opacity: .55; }

.prelaunch { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow: hidden; isolation: isolate; }
.prelaunch > :not(.hero-bg):not(.hero-shade) { max-height: 100%; overflow-y: auto; }
.prelaunch .hero-bg { inset: -60px; }
.prelaunch .hero-shade { background: radial-gradient(circle at 50% 50%, rgba(6,6,9,.4), rgba(6,6,9,.92)); }
.prelaunch-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 820px; }
.prelaunch-card .detail-poster { width: 200px; }
.prelaunch-card .detail-poster .cover-title { --ct-size: 44px; }
.prelaunch-card h1 { font-size: clamp(44px, 6vw, 80px); margin: 10px 0 12px; }
.prelaunch-card p { color: #cfcad6; margin: 0 0 18px; }
.prelaunch-tips { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px), (max-height: 520px) {
  .prelaunch-card { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .prelaunch-card .detail-poster { width: 120px; }
}

.loading { position: absolute; inset: 0; display: grid; place-items: center; gap: 16px; background: #000; z-index: 2; transition: opacity .5s; }
.loading.is-gone { opacity: 0; pointer-events: none; }
.loading-inner { display: grid; justify-items: center; gap: 16px; }
.loading img { width: 96px; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%); mask-image: radial-gradient(circle, #000 64%, transparent 71%); animation: breathe 1.6s ease-in-out infinite; }
.loading p { margin: 0; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
@keyframes breathe { 50% { opacity: .5; transform: scale(.94); } }

.rotate-hint { position: absolute; inset: 0; z-index: 8; display: none; place-items: center; text-align: center; padding: 24px; background: rgba(0,0,0,.94); }
.rotate-hint svg { width: 72px; height: 72px; margin: 0 auto 16px; color: var(--gold); animation: rot 2.2s ease-in-out infinite; }
.rotate-hint strong { display: block; font-family: var(--font-display); font-size: 36px; line-height: 1; text-transform: uppercase; }
.rotate-hint p { color: var(--muted); margin: 8px 0 16px; }
@keyframes rot { 0%, 20% { transform: rotate(0); } 50%, 70% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (orientation: portrait) and (pointer: coarse) {
  .player-shell[data-orientation="landscape"].is-running .rotate-hint:not(.is-dismissed) { display: grid; }
}

/* Experimental on-screen controls (touchControls: "overlay") */
.touchpad { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.touchpad.on { display: block; }
.tp-dpad, .tp-buttons { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-dpad { left: max(18px, env(safe-area-inset-left)); width: 150px; height: 150px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.tp-buttons { right: max(18px, env(safe-area-inset-right)); width: 160px; height: 150px; display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 10px; }
.tp-btn { border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.tp-btn.is-down { background: rgba(212,162,76,.55); border-color: var(--gold-hi); }
.tp-dpad .tp-btn[data-pos="up"] { grid-area: 1 / 2; }
.tp-dpad .tp-btn[data-pos="left"] { grid-area: 2 / 1; }
.tp-dpad .tp-btn[data-pos="right"] { grid-area: 2 / 3; }
.tp-dpad .tp-btn[data-pos="down"] { grid-area: 3 / 2; }
.tp-buttons .tp-btn { border-radius: 50%; }

.locked-panel { max-width: 640px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.locked-panel h1 { font-size: clamp(48px, 8vw, 96px); }
.locked-panel p { color: #cfcad6; margin: 0; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 40px; }
.notfound h1 { font-size: clamp(90px, 18vw, 220px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-beams, .hero-embers { display: none; }
}

/* Library tools on phones: one swipeable row of filters, swipe the rail instead of arrows */
@media (max-width: 640px) {
  .lib-tools { flex-wrap: nowrap; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .rail-nav { display: none; }
}

/* Player on narrow screens */
.prelaunch-card { width: 100%; }
.prelaunch > :not(.hero-bg):not(.hero-shade) { overflow-x: hidden; }
@media (max-width: 640px) {
  .pad-indicator span { display: none; }
  .player-title { font-size: 22px; }
  .player-bar .icon-btn { width: 40px; height: 40px; }
}

/* Hero banner: keep the description short so the game row stays on the first screen */
.hero .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.cover-reflect { height: 30px; }

/* "All Games" row directly under the featured banner */
.hero-games { margin-top: clamp(18px, 2.5vw, 30px); }
.hero-games-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero-games-head a { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.tile-art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0a0f;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art .badge { position: absolute; left: 8px; bottom: 8px; font-size: 9px; padding: 5px 8px 4px; letter-spacing: .14em; }
.tile-art .badge::before { width: 5px; height: 5px; }
.tile:hover .tile-art, .tile:focus-visible .tile-art { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-a) 70%, transparent);
  box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent-a) 80%, transparent); }
.tile-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: .95; text-transform: uppercase; padding-top: 2px; }

@media (max-width: 900px) {
  .hero-art { display: none; }
  .hero-bg { inset: 0; filter: saturate(1.15) brightness(.7); background-position: center 22%; transform: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,6,9,.55) 0%, rgba(6,6,9,.25) 22%, rgba(6,6,9,.78) 48%, var(--bg) 82%); }
  .hero-actions .btn-ghost { display: none; }
  .hero .lead, .hero-genre, .hero-copy .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9); }
  .hero-title { font-size: clamp(44px, 12vw, 64px); }
  .hero .lead { font-size: 16px; }
  .hero .devices { display: none; }
  .hero-actions .btn { min-height: 46px; font-size: 21px; padding: 3px 18px 0; }
  .tiles { grid-auto-columns: 38vw; }
}

/* Intro "Press to Enter" gate (the tap that lets the browser play sound) */
.intro-gate { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity .45s, visibility .45s; }
.intro.play .intro-gate { opacity: 0; visibility: hidden; pointer-events: none; }
.intro:not(.play) .intro-stage, .intro:not(.play) .intro-skip { visibility: hidden; }
.gate-enter {
  position: relative; cursor: pointer; padding: 18px 40px 14px; border-radius: 999px; border: 1px solid rgba(246,213,138,.55);
  background: rgba(20,14,4,.6); color: var(--gold-hi); font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 0 40px -6px rgba(212,162,76,.55), inset 0 0 20px rgba(212,162,76,.15); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.gate-enter span { display: inline-block; animation: gatePulse 1.8s ease-in-out infinite; }
.gate-enter:hover, .gate-enter:focus-visible { transform: scale(1.04); box-shadow: 0 0 60px -4px rgba(246,213,138,.8), inset 0 0 24px rgba(212,162,76,.25); }
.gate-quiet { background: none; border: 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; }
.gate-quiet:hover { color: #fff; }
@keyframes gatePulse { 50% { opacity: .55; } }

.sound-toggle { margin-left: auto; margin-right: 10px; }
.sound-toggle[aria-pressed="true"] { color: var(--gold-hi); border-color: rgba(246,213,138,.4); }
@media (min-width: 961px) { .sound-toggle { order: 3; margin: 0 0 0 8px; } .site-header .nav { margin-left: auto; } }
