/* =========================================================================
   Exponential Games — site styles
   Studio pages use the fire palette from the EX emblem; each game page
   overrides --bg/--surface/--accent/--accent-2/--display (see _data/games.yml).
   ========================================================================= */

:root {
  --bg: #07080c;
  --surface: #11131b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #a3a9b8;
  --accent: #ff7a1a;
  --accent-2: #ffc247;
  --on-accent: #1a0d02;
  --fire: linear-gradient(100deg, #ff4d1a 0%, #ff8a1f 45%, #ffd36b 100%);
  --display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  margin-bottom: .45em;
  text-wrap: balance;
}
.game-same-day-tycoon .display { text-transform: none; font-weight: 700; letter-spacing: 0; }
.game-vector-rider .display { font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: .03em; }
.display--xl { font-size: clamp(2.6rem, 6.6vw, 5.4rem); }
.eyebrow {
  font: 700 .8rem/1.2 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #cfd3de; max-width: 60ch; }
.fire-text { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { color: #d5d9e3; }
.prose p { max-width: 70ch; }
.prose h2 { font: 800 1.7rem/1.1 var(--display); text-transform: uppercase; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }

/* ---------- Buttons, pills, chips ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--body); letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: .85rem; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -8px var(--accent); }
.btn--accent:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--accent); }
.btn--fire { background: var(--fire); color: #1a0b02; box-shadow: 0 10px 34px -10px #ff6a1a; }
.btn--fire:hover { color: #1a0b02; transform: translateY(-2px); box-shadow: 0 16px 44px -10px #ff6a1a; }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { color: #fff; border-color: var(--accent); background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn.is-static { cursor: default; transform: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 6px 12px; border-radius: 999px;
  font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill--out::before { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.pill--soon::before { animation: blink 1.8s infinite; }

.chips { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: #fff;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.site-nav.is-solid {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-nav__inner { max-width: 1400px; margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.site-nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 1.15rem/1 'Barlow Condensed', 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.site-nav__brand:hover { color: #fff; }
.site-nav__brand img { width: 44px; height: auto; filter: drop-shadow(0 0 12px rgba(255,110,30,.45)); transition: transform .5s var(--ease); }
.site-nav__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.site-nav__brand b { font-weight: 500; color: var(--muted); margin-left: .3em; }
.site-nav__menu { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav__menu ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav__menu ul a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  color: #dfe2ea; font-weight: 600; font-size: .92rem;
}
.site-nav__menu ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__menu ul a:hover, .site-nav__menu ul a[aria-current] { color: #fff; }
.site-nav__menu ul a:hover::after, .site-nav__menu ul a[aria-current]::after { transform: scaleX(1); }
.site-nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.site-nav__toggle span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.site-nav__toggle span:nth-child(2) { top: 15px; }
.site-nav__toggle span:nth-child(3) { top: 21px; }
.site-nav__toggle span:nth-child(4) { top: 27px; }
.nav-open .site-nav__toggle span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .site-nav__toggle span:nth-child(3) { opacity: 0; }
.nav-open .site-nav__toggle span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .site-nav__toggle { display: block; }
  .site-nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav-open .site-nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-nav { background: var(--bg); }
  .site-nav__menu ul { flex-direction: column; }
  .site-nav__menu ul a { font-size: 1.15rem; padding: 12px 4px; }
  .site-nav__menu ul a::after { left: 4px; right: auto; width: 40px; }
}

/* ---------- Home hero carousel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; background: #000; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,5,9,.92) 0%, rgba(4,5,9,.65) 38%, rgba(4,5,9,.05) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(4,5,9,0) 32%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); padding-bottom: 150px; }
.hero__meta { display: flex; align-items: center; gap: 14px; color: #d8dbe4; font-weight: 600; font-size: .9rem; letter-spacing: .04em; margin-bottom: 22px; }
.hero__logo { margin: 0 0 18px; }
.hero__logo img { width: min(560px, 82vw); max-height: 34vh; object-fit: contain; object-position: left center; filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); }
.hero__tagline { font: 700 clamp(1.4rem, 2.8vw, 2.3rem)/1.1 var(--display); color: #fff; margin-bottom: 30px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.game-vector-rider .hero__tagline, .hero__slide[style*="Orbitron"] .hero__tagline { letter-spacing: .02em; font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.hero__slide .hero__meta, .hero__slide .hero__logo, .hero__slide .hero__tagline, .hero__slide .btn-row { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__meta { opacity: 1; transform: none; transition-delay: .25s; }
.hero__slide.is-active .hero__logo { opacity: 1; transform: none; transition-delay: .4s; }
.hero__slide.is-active .hero__tagline { opacity: 1; transform: none; transition-delay: .55s; }
.hero__slide.is-active .btn-row { opacity: 1; transform: none; transition-delay: .7s; }

.hero__tabs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hero__tab { text-align: left; background: none; border: 0; padding: 0 0 6px; cursor: pointer; color: #b9bdc9; transition: color .3s; }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab-bar { display: block; height: 3px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.hero__tab-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__tab.is-active .hero__tab-bar i { animation: tab-progress var(--slide-ms, 8000ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__tab-bar i { animation-play-state: paused; }
.hero__tab-name { display: block; font: 700 1.05rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.hero__tab-status { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) {
  .hero__tabs { grid-template-columns: repeat(4, 1fr); gap: 8px; bottom: 20px; }
  .hero__tab-name { font-size: .8rem; }
  .hero__tab-status { display: none; }
  .hero__content { padding-bottom: 110px; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(4,5,9,.75) 45%, rgba(4,5,9,.35) 100%); }
}

/* Ken Burns for still heroes */
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 50%; }

/* ---------- Intro strip ---------- */
.intro-strip { position: relative; padding: clamp(70px, 10vw, 140px) 0; overflow: hidden; }
.intro-strip::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: -260px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,106,26,.18), transparent 62%); pointer-events: none;
}
.intro-strip__inner { position: relative; display: grid; grid-template-columns: minmax(180px, 340px) 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.intro-strip__mark { width: 100%; filter: drop-shadow(0 0 60px rgba(255,100,30,.35)); animation: float 7s ease-in-out infinite; }
@media (max-width: 760px) { .intro-strip__inner { grid-template-columns: 1fr; } .intro-strip__mark { width: 180px; } }

/* ---------- Showcase (home) ---------- */
.showcase { padding: clamp(40px, 6vw, 80px) 0 40px; }
.showcase__item { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.showcase__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at var(--glow-x, 25%) 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--tint) 85%, transparent) 30%, color-mix(in srgb, var(--tint) 85%, transparent) 70%, transparent);
}
.showcase__item--flip { --glow-x: 75%; }
.showcase__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.showcase__item--flip .showcase__media { order: 2; }
.showcase__media {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 0 70px -20px var(--accent);
  transform: perspective(1200px) rotateY(var(--tilt, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.showcase__media:hover { transform: perspective(1200px) rotateY(0) scale(1.015); box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.14), 0 0 90px -10px var(--accent); }
.showcase__media img, .showcase__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.showcase__media video { opacity: 0; }
.showcase__media.is-playing video { opacity: 1; }
.showcase__media:hover img { transform: scale(1.06); }
.showcase__index { position: absolute; right: 18px; bottom: 6px; font: 800 4.5rem/1 var(--display); color: rgba(255,255,255,.85); text-shadow: 0 4px 30px rgba(0,0,0,.6); -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.showcase__logo { width: min(380px, 100%); max-height: 150px; object-fit: contain; object-position: left center; margin: 18px 0 12px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.showcase__tagline { font: 700 1.45rem/1.2 var(--display); text-transform: uppercase; color: var(--accent); letter-spacing: .03em; margin-bottom: .6em; }
.showcase__text > p { color: #cdd1dc; }
@media (max-width: 860px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__item--flip .showcase__media { order: 0; }
}

/* ---------- Studio section (home) ---------- */
.studio { position: relative; padding: clamp(70px, 9vw, 130px) 0; background: radial-gradient(70% 60% at 85% 20%, rgba(255,110,30,.12), transparent 70%), #0a0b10; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.studio__pillars { display: grid; gap: 14px; }
.pillar { padding: 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), background .3s; }
.pillar:hover { border-color: rgba(255,122,26,.5); transform: translateX(6px); background: rgba(255,122,26,.06); }
.pillar span { font: 800 .9rem/1 var(--display); color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font: 800 1.45rem/1.1 var(--display); text-transform: uppercase; margin: 8px 0 6px; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
.studio__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 70px); }
.studio__facts div { padding: 22px 24px; border-left: 2px solid var(--accent); }
.studio__facts strong { display: block; font: 800 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--display); text-transform: uppercase; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio__facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .studio__grid { grid-template-columns: 1fr; } .studio__facts { grid-template-columns: 1fr; } }

/* ---------- Press band ---------- */
.press-band { padding: clamp(60px, 8vw, 110px) 0; }
.press-band__inner {
  display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,77,26,.16), rgba(255,194,71,.05) 60%), #0f1016;
  border: 1px solid rgba(255,122,26,.3);
}
.press-band__inner > div:first-child p:last-child { color: #cfd3dd; margin: 0; max-width: 58ch; }
.press-band .btn-row { flex-direction: column; align-items: stretch; }
@media (max-width: 860px) { .press-band__inner { grid-template-columns: 1fr; } .press-band .btn-row { flex-direction: row; } }

/* ---------- Game page hero ---------- */
.game-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.game-hero__media, .game-hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.game-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, rgba(0,0,0,0) 65%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, rgba(0,0,0,0) 60%);
}
.game-hero__content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(70px, 10vh, 120px); }
.game-hero__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #e3e6ee; font-weight: 600; font-size: .92rem; }
.game-hero__logo { margin: 0 0 14px; animation: rise 1s var(--ease) .1s both; }
.game-hero__logo img { width: min(620px, 86vw); max-height: 38vh; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 14px 44px rgba(0,0,0,.65)); }
.game-hero__tagline { font: 700 clamp(1.4rem, 3vw, 2.4rem)/1.1 var(--display); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.7); margin-bottom: 28px; animation: rise 1s var(--ease) .25s both; }
.game-same-day-tycoon .game-hero__tagline { text-transform: none; }
.game-vector-rider .game-hero__tagline { text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.9rem); letter-spacing: .04em; text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 20px #000; }
.game-hero .btn-row { animation: rise 1s var(--ease) .4s both; }
.platforms { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px; animation: rise 1s var(--ease) .55s both; }
.platforms li { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #cfd3dd; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s infinite; }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- Game page sections ---------- */
.game-intro { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(30px, 4vw, 50px); text-align: center; }
.game-intro .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.game-intro .display { max-width: 18ch; margin-inline: auto; }
.game-intro__body { margin-inline: auto; max-width: 760px; font-size: 1.12rem; }
.game-intro__body p { margin-inline: auto; }
.game-intro .chips { justify-content: center; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px -25px var(--accent); }
.feature__media > * { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.feature__num { display: block; font: 800 3.2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 10px; opacity: .9; }
.feature__text h2 { font: 800 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; }
.game-same-day-tycoon .feature__text h2 { text-transform: none; font-weight: 700; }
.game-vector-rider .feature__text h2 { font-size: clamp(1.3rem, 2.3vw, 1.9rem); letter-spacing: .03em; }
.feature__text p { color: #cfd3dd; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #e3e6ee; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid var(--accent);
}
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 4px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__media { order: 0; } }

.game-extra { padding-block: 20px 40px; }
.game-extra img { border-radius: var(--radius); }

/* Gallery */
.gallery-section { padding: clamp(60px, 8vw, 110px) 0; background: linear-gradient(180deg, transparent, var(--surface) 20%, var(--surface) 80%, transparent); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery__item:first-child { grid-column: 1 / -1; }
.gallery__item.is-extra { display: none; }
.gallery__more { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); font: 800 2.6rem/1 var(--display); color: #fff; }
.gallery__more small { display: block; font: 700 .75rem/1.6 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gallery__item { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .3s; }
.gallery__item:hover img { transform: scale(1.07); filter: brightness(1.08); }
.gallery__item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery__item:first-child { grid-column: span 2; grid-row: span 2; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 150px) 0; isolation: isolate; }
.cta-band__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(6px) saturate(1.15); transform: scale(1.08); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 10%, color-mix(in srgb, var(--bg) 75%, transparent) 60%, color-mix(in srgb, var(--bg) 55%, transparent)); }
.cta-band__inner { display: grid; grid-template-columns: minmax(200px, 400px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.cta-band__logo { width: 100%; filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); }
.cta-band p { color: #d7dae3; max-width: 52ch; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__logo { width: 240px; } }

/* More games */
.more-games { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.more-games__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .more-games__grid { grid-template-columns: 1fr; } }

/* Game card */
.game-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; color: #fff;
  background: var(--card-bg, var(--surface)); border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.game-card:hover { color: #fff; transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 50px -15px var(--accent); }
.game-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-card__media img, .game-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.game-card__media video { opacity: 0; }
.game-card.is-playing video { opacity: 1; }
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card-bg, #000) 0%, transparent 55%); }
.game-card__body { position: relative; padding: 0 20px 20px; margin-top: -46px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.game-card__logo { max-width: 220px; max-height: 76px; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.game-card__body p { color: #c9cdd8; font-size: .92rem; margin: 0; }
.game-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--accent); }
.game-card__go .icon { transition: transform .3s var(--ease); }
.game-card:hover .game-card__go .icon { transform: translateX(5px); }

/* Sticky CTA */
.sticky-cta {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8), 0 0 40px -18px var(--accent);
  transition: transform .5s var(--ease);
  max-width: calc(100vw - 24px);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta img { height: 36px; width: auto; max-width: 90px; object-fit: contain; }
.sticky-cta span { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.sticky-cta small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
@media (max-width: 520px) { .sticky-cta span { display: none; } }

/* ---------- Generic page ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 15% 0%, rgba(255,106,26,.2), transparent 65%), radial-gradient(40% 60% at 90% 30%, rgba(255,194,71,.08), transparent 70%); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .35; filter: saturate(1.1); }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg), rgba(7,8,12,.4)); }
.page-body { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(70px, 9vw, 120px); }
.page-body--narrow { max-width: 860px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; margin-bottom: clamp(50px, 7vw, 90px); }
.about-grid__img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line); position: sticky; top: calc(var(--nav-h) + 20px); }
.about-grid__img img { width: 100%; }
.about-grid__img figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); background: var(--surface); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid__img { position: static; } }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 30px 0 clamp(50px, 7vw, 90px); }

/* Press */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0 50px; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.press-game { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 44px); padding: clamp(22px, 3vw, 34px); margin-bottom: 18px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); scroll-margin-top: calc(var(--nav-h) + 20px); }
.press-game__art { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; position: relative; }
.press-game__art img { width: 100%; height: 100%; object-fit: cover; }
.press-game__art .logo { position: absolute; left: 14px; bottom: 12px; width: 55%; height: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,.8)); }
.press-game h3 { font: 800 1.8rem/1.05 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.press-game dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 14px 0 18px; font-size: .92rem; }
.press-game dt { color: var(--muted); }
.press-game dd { margin: 0; }
@media (max-width: 860px) { .press-game { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #05060a; padding-top: clamp(50px, 7vw, 80px); font-size: .93rem; }
.game-page .site-footer { background: color-mix(in srgb, var(--bg) 70%, #000); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer__brand img { width: 84px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 0 20px rgba(255,110,30,.35)); }
.site-footer__brand p { color: var(--muted); max-width: 34ch; }
.site-footer__mail { font-weight: 600; }
.site-footer h3 { font: 700 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: #dfe2ea; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer__social a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__social .icon { width: 20px; height: 20px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 50px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: #7d8394; font-size: .8rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,4,7,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 70px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox__stage { width: 100%; max-width: 1600px; display: grid; place-items: center; }
.lightbox__stage img { max-height: calc(100vh - 120px); width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: zoom-in .35s var(--ease); }
.lightbox__stage .video-frame { width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: zoom-in .35s var(--ease); }
.lightbox__stage .video-frame > * { width: 100%; height: 100%; border: 0; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--on-accent); }
.lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 2.2rem; line-height: 1; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox.is-video .lightbox__nav, .lightbox.is-video .lightbox__count { display: none; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 700px) { .lightbox { padding: 60px 8px; } .lightbox__nav { top: auto; bottom: 10px; margin: 0; } }

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

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter) 40px; }
.not-found__code { font: 800 clamp(7rem, 24vw, 16rem)/.9 var(--display); background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255,100,30,.35)); }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }

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

/* ---------- Page extras ---------- */
.more-games__grid--four { grid-template-columns: repeat(2, 1fr); margin-bottom: clamp(50px, 7vw, 90px); }
@media (max-width: 760px) { .more-games__grid--four { grid-template-columns: 1fr; } }
.about-grid--text { grid-template-columns: 1fr 1fr; }
.press-band--inline { padding: 0; }
.game-extra img { margin-inline: auto; max-width: 900px; width: 100%; height: auto; }
.page-body > .display { margin-top: 1.6em; }
.cta-band__url { margin: 18px 0 0; color: var(--muted); font-size: .95rem; letter-spacing: .02em; }
.cta-band__url strong { color: var(--accent); font-weight: 700; letter-spacing: .03em; }
.btn--discord:hover { border-color: #5865f2; background: rgba(88,101,242,.22); }
