/* Hesperia Interactive — site styles. Dusk palette; game pages override --accent/--accent2/--deep. */
:root {
  --bg: #0a0b1a;
  --bg-2: #10122a;
  --surface: #15183a;
  --surface-2: #1c2048;
  --line: rgba(255, 255, 255, .09);
  --text: #f6f1e7;
  --muted: #b0acc6;
  --sun-1: #ffd27a;
  --sun-2: #ff8a5b;
  --sun-3: #e5487f;
  --accent: #ffb547;
  --accent2: #e5487f;
  --deep: #1b1442;
  --ink: #fff5de;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--sun-1); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-1); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun-1); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #e2dcef; }
.eyebrow { font: 600 .82rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.center .eyebrow { justify-content: center; }
.grad { background: linear-gradient(100deg, var(--sun-1), var(--sun-2) 45%, var(--sun-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { flex: none; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--sun-1), var(--sun-2)); color: #1a0f1f; box-shadow: 0 12px 30px -10px rgba(255, 138, 91, .65); }
.page-game .btn-primary { background: linear-gradient(100deg, #ffe08a, var(--accent)); color: #241400; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { color: #1a0f1f; box-shadow: 0 18px 40px -10px rgba(255, 138, 91, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--text); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-glow { background: rgba(255, 210, 122, .1); border-color: rgba(255, 210, 122, .45); color: var(--sun-1); }
.btn-glow:hover { background: rgba(255, 210, 122, .2); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--font-display); color: var(--accent); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 .7rem/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: var(--text); }
.badge-coming-soon { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.badge-out-now { background: rgba(80, 220, 140, .18); color: #7ff0b0; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(10, 11, 26, .78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand .mark { width: 42px; height: 42px; }
.brand-name { font: 800 1.15rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; gap: 4px; }
.brand-name span { font-weight: 500; font-size: .6rem; letter-spacing: .42em; color: #ffb27a; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font: 500 .98rem var(--font-display); transition: background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: 76px 0 auto 0; background: rgba(10, 11, 26, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; margin: 0; }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; padding: 12px var(--gutter) 24px; }
  .site-nav a { padding: 14px 16px; font-size: 1.1rem; }
}

/* ---------- home hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 100px) 0 clamp(70px, 9vw, 130px); margin-top: -76px; padding-top: calc(76px + clamp(30px, 6vw, 80px)); }
.home-backdrop { position: absolute; inset: 0; background: var(--deep); }
.home-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.home-backdrop::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7, 13, 18, .45), transparent 55%, var(--bg)),
  linear-gradient(90deg, rgba(7, 13, 18, .75), rgba(7, 13, 18, .25)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-copy h1 { margin: -10px 0 6px -14px; line-height: 0; }
.hero-logo { width: min(520px, 100%); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.hero-copy .tagline { margin-bottom: 10px; }
.hero-copy .store-row, .hero-copy .stores { margin-top: 22px; }
.hero-copy .lead { max-width: 36ch; }
.hero-feature { position: relative; justify-self: center; width: min(360px, 80vw); }
.hero-feature-tag { position: absolute; left: -40px; bottom: 40px; display: flex; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(16, 18, 42, .82); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-feature-tag img { border-radius: 14px; }
.hero-feature-tag strong { display: block; font: 700 1.05rem var(--font-display); }
.hero-feature-tag span { color: var(--muted); font-size: .88rem; }

/* ---------- phone frame */
.phone { position: relative; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #2a2d52, #0c0d20 60%); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 80px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 24%; height: 16px; transform: translateX(-50%); background: #05060f; border-radius: 999px; z-index: 2; }
.phone-screen { border-radius: 33px; overflow: hidden; aspect-ratio: 9 / 16; background: #000; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections */
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 46ch; margin: 0; }

.featured { overflow: hidden; background: var(--deep); isolation: isolate; }
.featured-bg { position: absolute; inset: 0; z-index: -1; }
.featured-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.15); }
.featured-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 15%, color-mix(in srgb, var(--deep) 70%, transparent) 55%, transparent), linear-gradient(0deg, var(--bg), transparent 30%, transparent 75%, var(--bg)); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.featured-logo { width: min(520px, 100%); height: auto; margin: -10px 0 4px -14px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.tagline { font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.3 var(--font-display); color: var(--accent); }
.featured-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured-shots li { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(-2deg); }
.featured-shots li:nth-child(2) { transform: translateY(-30px) rotate(1.5deg); }
.featured-shots li:nth-child(3) { transform: rotate(3deg); }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; min-width: 190px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); text-decoration: none; transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: #fff; color: #fff; }
.store span { display: flex; flex-direction: column; font: 700 1.2rem/1.1 var(--font-display); }
.store small { font: 500 .7rem/1.2 var(--font-body); opacity: .8; letter-spacing: .02em; }
.store.is-soon { opacity: .9; cursor: default; position: relative; }
.stores-big .store { min-width: 210px; padding: 12px 22px 12px 18px; }

/* pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pillar { padding: 32px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
.pillar .icon { color: var(--sun-2); margin-bottom: 18px; width: 34px; height: 34px; }
.pillar p { color: var(--muted); margin: 0; }

/* game cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.game-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.game-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.game-card-link:hover { color: inherit; }
.game-card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.game-card-art > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .6s; }
.game-card:hover .game-card-art > img:first-child { transform: scale(1.05); }
.game-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), transparent 55%); }
.game-card-logo { position: absolute; z-index: 1; left: 50%; bottom: 4%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.game-card-body { padding: 22px 26px 28px; }
.game-card-body p:not(.eyebrow) { color: var(--muted); }
.game-card-next { display: grid; place-items: center; min-height: 320px; padding: 36px; text-align: center; border-style: dashed; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--surface) 14px 28px); }
.game-card-next .eyebrow { justify-content: center; color: var(--muted); }
.game-card-next p:last-child { color: var(--muted); }
.game-card-next:hover { transform: none; box-shadow: none; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.news-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
.news-card a:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); color: inherit; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card a > div { padding: 22px 24px 26px; }
.news-card .eyebrow { color: var(--muted); letter-spacing: .08em; }
.news-card p:last-child { color: var(--muted); margin: 0; }

/* newsletter */
.newsletter { padding-top: 0; }
.nl-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: radial-gradient(600px 300px at 90% 120%, rgba(229, 72, 127, .35), transparent 60%), radial-gradient(500px 260px at 0% -20%, rgba(255, 210, 122, .22), transparent 60%), var(--surface);
  border: 1px solid var(--line); }
.page-game .nl-card { background: radial-gradient(600px 300px at 90% 120%, color-mix(in srgb, var(--accent2) 40%, transparent), transparent 60%), radial-gradient(500px 260px at 0% -20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--deep); }
.nl-card h2 { margin-bottom: 10px; }
.nl-card p { color: #ddd6ea; margin: 0; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-form input { flex: 1 1 220px; }
input, select, textarea { width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 6, 18, .55); color: var(--text); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun-1); box-shadow: 0 0 0 4px rgba(255, 210, 122, .18); }
.nl-form input { border-radius: 999px; }
.form-status { flex-basis: 100%; min-height: 1.4em; font-size: .92rem; color: var(--sun-1); }
.hp { position: absolute; left: -9999px; }

/* ---------- page heads & prose */
.page-head { padding: clamp(50px, 8vw, 100px) 0 clamp(20px, 3vw, 40px); background: radial-gradient(800px 300px at 50% -40%, rgba(255, 138, 91, .25), transparent 70%); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.page-head.center h1, .not-found h1 { margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 24px; border-left: 4px solid var(--sun-2); color: #e7e0f2; font-size: 1.15rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 210, 122, .1); border: 1px solid rgba(255, 210, 122, .35); color: var(--sun-1); }
.post-hero { border-radius: var(--radius); margin-bottom: 30px; width: 100%; }
.video-embed { margin: 1.5em 0; }
.video-embed video { width: 100%; max-width: 360px; border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow); }

/* factsheet / two-column info pages */
.about-grid, .press-grid, .support-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.press-grid { grid-template-columns: 340px 1fr; }
.factsheet, .contact-card { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.factsheet h2, .contact-card h2 { font-size: 1.3rem; }
.factsheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.factsheet dt { color: var(--muted); font-size: .9rem; }
.factsheet dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-card .btn { width: 100%; margin: 6px 0 14px; overflow-wrap: anywhere; }
.downloads { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.downloads a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.downloads a:hover { border-color: var(--accent); }
.press-games { list-style: none; padding: 0 !important; }
.press-games li { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.press-games img { border-radius: 16px; }
.press-games h3, .press-games p { margin: 0 0 4px; }
.logo-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px; border-radius: var(--radius); background: repeating-conic-gradient(#1a1d3d 0 25%, #14173a 0 50%) 0 0/24px 24px; }
.logo-row img { max-width: 360px; height: auto; }
.logo-row .press-icon { width: 140px; border-radius: 30px; }
.studio-logo img { width: 420px; }
.press-video video { width: 100%; max-width: 360px; border-radius: var(--radius); }

/* faq */
.faq-list { display: grid; gap: 12px; margin: 26px 0; }
details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 600 1.08rem var(--font-display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 20px; margin: 0; color: #d6d0e4; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.contact-routes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-routes li { padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-routes h2 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-routes p { color: var(--muted); margin-bottom: 6px; font-size: .95rem; }
.contact-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-content: start; }
.field label { display: block; font: 600 .92rem var(--font-display); margin-bottom: 8px; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); background: #07081a; padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 16px; }
.site-footer h2 { font: 700 .82rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--sun-1); }
.socials { display: flex !important; flex-wrap: wrap; gap: 14px !important; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; color: var(--muted); font-size: .86rem; }
.footer-base p { margin: 0; }

/* =================================================================== game page */
.page-game { --surface: color-mix(in srgb, var(--deep) 70%, #15183a); }
.page-game .eyebrow { color: var(--accent); }
.game-hero { position: relative; overflow: hidden; margin-top: -76px; padding: calc(76px + clamp(30px, 5vw, 70px)) 0 clamp(60px, 8vw, 110px); isolation: isolate; background: var(--deep); }
.game-hero-bg { position: absolute; inset: 0; z-index: -1; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); }
.game-hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--deep) 94%, transparent) 0%, color-mix(in srgb, var(--deep) 75%, transparent) 45%, color-mix(in srgb, var(--deep) 20%, transparent) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.game-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.game-hero h1 { margin: -10px 0 0 -16px; }
.game-logo { width: min(560px, 100%); height: auto; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .55)); }
.game-hero .phone { width: min(340px, 78vw); justify-self: center; margin: 0 auto; }
.support-grid h2[id], .prose h3[id] { scroll-margin-top: 6rem; }
.fine { color: #d9d2e8; font-size: .9rem; margin-top: 18px; }

.about-game .narrow p { margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.step { position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); overflow: hidden; }
.step .icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; right: 18px; top: -10px; font: 800 6rem/1 var(--font-display); color: rgba(255, 255, 255, .05); }

.features { display: grid; gap: clamp(70px, 10vw, 130px); }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; display: grid; place-items: center; }
.feature-media::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); filter: blur(20px); }
.feature-media .phone { width: min(320px, 76vw); }
.feature-copy h2 { max-width: 16ch; }

.hand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; counter-reset: hand; }
.hand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); counter-increment: hand; }
.hand-name::before { content: counter(hand, decimal-leading-zero); color: var(--muted); font: 600 .8rem var(--font-display); margin-right: 12px; }
.hand-name { font: 600 1.02rem var(--font-display); }
.hand-mult { font: 800 1.3rem var(--font-display); color: var(--accent); }
.hand.is-hidden { border-style: dashed; background: transparent; }
.hand .badge { margin-left: 6px; vertical-align: 2px; }

.characters { overflow: hidden; }
.carousel-btns { display: flex; gap: 10px; }
.char-track { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scroll-padding-inline: var(--edge); list-style: none; margin: 0 0 20px; padding: 10px var(--edge) 26px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.char-card { flex: 0 0 auto; width: clamp(180px, 22vw, 230px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #ece8e3; position: relative; transition: transform .25s; box-shadow: 0 20px 40px -24px #000; }
.char-card:hover { transform: translateY(-6px) rotate(-1deg); }
.char-card img { width: 100%; height: auto; aspect-ratio: 420 / 690; object-fit: cover; }
.char-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 14px; font: 700 1rem var(--font-display); color: #fff; text-align: center; background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 92%, transparent), transparent); }

.world-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.4; background: var(--surface); }
.world img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.world:hover img { transform: scale(1.06); }
.world div { position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; background: linear-gradient(0deg, rgba(6, 7, 20, .95), transparent); }
.world h3 { margin: 0 0 4px; font-size: 1.15rem; }
.world p { margin: 0; color: #d7d0e6; font-size: .9rem; line-height: 1.45; }

.shot-grid { list-style: none; margin: 36px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot-grid.compact { grid-template-columns: repeat(4, 1fr); }
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #000; transition: transform .25s, border-color .25s; }
.shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot img, .shot-grid a img { width: 100%; height: auto; aspect-ratio: 576 / 996; object-fit: cover; }
.shot-grid a img { border-radius: 14px; }

/* ---------- modals */
.modal { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--text); }
.modal::backdrop { background: rgba(4, 5, 14, .9); backdrop-filter: blur(6px); }
.modal[open] { display: grid; place-items: center; }
.modal-body { margin: 0; max-width: min(92vw, 520px); }
.modal video { width: 100%; max-height: 86vh; border-radius: 20px; background: #000; }
.lightbox .modal-body { max-width: min(92vw, 560px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 18px; }
.lightbox figcaption { margin-top: 12px; color: var(--muted); }
.modal-close { position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid, .shot-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .featured-grid, .game-hero-grid, .feature, .nl-card, .about-grid, .press-grid, .support-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .hero-feature-tag { left: 50%; transform: translateX(-50%); bottom: -24px; white-space: nowrap; }
  .pillar-grid, .steps { grid-template-columns: 1fr; }
  .featured-shots li:nth-child(2) { transform: translateY(-14px) rotate(1.5deg); }
  .factsheet, .contact-card { position: static; }
  .game-hero h1, .featured-logo { margin-left: -8px; }
  .game-hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--deep) 85%, transparent) 50%, color-mix(in srgb, var(--deep) 60%, transparent) 100%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .shot-grid, .shot-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .world-grid { gap: 10px; }
  .world p { display: none; }
  .store { min-width: 0; flex: 1 1 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* article/press spacing */
.post + .newsletter { padding-top: clamp(40px, 6vw, 72px); }
.prose .shot-grid, .prose .downloads { padding-left: 0; }

/* ---------- playable demo (game page hero phone) */
.phone-demo .phone-screen { position: relative; }
.phone-demo video, .demo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-canvas { display: block; opacity: 0; transition: opacity .5s ease; touch-action: none; outline: none; background: #000; }
.phone-demo.is-ready .demo-canvas { opacity: 1; }
.phone-demo.is-ready video { opacity: 0; transition: opacity .5s ease; }
.demo-status { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 1; display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px;
  background: rgba(8, 9, 24, .78); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); transition: opacity .4s ease; }
.phone-demo.is-ready .demo-status { opacity: 0; pointer-events: none; }
.demo-label { font: 600 .85rem/1.3 var(--font-display); color: #fff; }
.demo-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffe08a, var(--accent)); transition: width .25s ease; }
.phone-demo.is-failed .demo-bar { display: none; }
.demo-expand { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  color: #fff; background: rgba(8, 9, 24, .6); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.demo-expand:hover { background: rgba(8, 9, 24, .85); }
.demo-expand .demo-expand-close, .is-expanded .demo-expand .demo-expand-open { display: none; }
.is-expanded .demo-expand .demo-expand-close { display: inline; }
.demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font: 600 .9rem var(--font-display); color: var(--accent); }
.phone-demo.is-expanded { position: fixed; inset: 0; z-index: 1000; padding: 0; border-radius: 0; background: #000; display: grid; place-items: center; box-shadow: none; }
.phone-demo.is-expanded::before { display: none; }
.phone-demo.is-expanded .phone-screen { height: 100%; max-height: 100dvh; width: auto; max-width: 100vw; aspect-ratio: 9 / 16; border-radius: 0; }
.demo-open, .demo-open body { overflow: hidden; }
.phone-demo.is-expanded { width: 100vw; height: 100dvh; margin: 0; }
.demo-open .site-header { visibility: hidden; }
.demo-expand[hidden] { display: none; }
.phone-demo { scroll-margin: 90px 0 20px; }
.phone-demo.is-called { animation: demo-call 1.1s ease 3; }
@keyframes demo-call { 50% { box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 90px 10px color-mix(in srgb, var(--accent) 60%, transparent); } }
@media (prefers-reduced-motion: reduce) { .phone-demo.is-called { animation: none; } }
