/* OXXYZ Play. One stylesheet for every page.
   The portal speaks like talibkhan.com (Manrope, tight tracking, a serif italic accent, mono
   chapter labels on hairlines); each game page wears its own art (Dabba Dash: Teko and
   Rajdhani in amber, pink and cyan neon, as in its trailer). */

:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --bg-3: #12121b;
  --line: rgba(242, 239, 232, 0.1);
  --line-2: rgba(242, 239, 232, 0.18);
  --ink: #f2efe8;
  --ink-2: rgba(242, 239, 232, 0.72);
  --ink-3: rgba(242, 239, 232, 0.5);
  --amber: #ffb21e;
  --amber-hi: #ffe2a0;
  --pink: #ff3d8b;
  --pink-hi: #ffd6e6;
  --cyan: #3cf2ff;
  --cyan-hi: #c9fbff;

  --f-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --f-display: 'Teko', 'Rajdhani', 'Arial Narrow', sans-serif;
  --f-hud: 'Rajdhani', 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4.4vw, 56px);
  --max: 1360px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --cut: 14px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: #120c02; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 700; border-radius: 6px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .kicker .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; box-shadow: 0 0 2px var(--cyan); } }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

.h-xl {
  font: 600 clamp(40px, 6.4vw, 92px)/0.98 var(--f-sans);
  letter-spacing: -0.045em;
}
.h-lg {
  font: 600 clamp(32px, 4.6vw, 64px)/1.02 var(--f-sans);
  letter-spacing: -0.04em;
}
.h-md {
  font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--f-sans);
  letter-spacing: -0.03em;
}
.h-xl .serif, .h-lg .serif, .h-md .serif { font-size: 1.1em; line-height: 0.8; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.body-2 { color: var(--ink-2); }

/* A chapter rule: label left, index right, on a hairline (talibkhan.com's chapters). */
.chapter {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 14px; border-top: 1px solid var(--line);
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.chapter b { color: var(--ink); font-weight: 500; }
.chapter .ix { white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  font: 700 15px/1 var(--f-hud); letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap; isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-play {
  color: #160c00;
  background: linear-gradient(180deg, #ffd27a 0%, var(--amber) 48%, #ff9416 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: 0 0 0 1px rgba(255, 226, 160, 0.5) inset;
  filter: drop-shadow(0 0 18px rgba(255, 178, 30, 0.38));
  overflow: hidden;
}
.btn-play::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, transparent 64%);
  transform: translateX(-120%);
}
.btn-play:hover { transform: translateY(-2px); filter: drop-shadow(0 0 28px rgba(255, 178, 30, 0.6)); }
.btn-play:active { transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) {
  .btn-play:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); }
}
.btn-play .tri { width: 0; height: 0; border-left: 0.72em solid currentColor; border-block: 0.44em solid transparent; margin-right: 2px; }
.btn-xl { --h: 68px; --cut: 18px; padding: 0 40px; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: 0.24em; }
.btn-sm { --h: 38px; --cut: 9px; padding: 0 16px; font-size: 13px; letter-spacing: 0.18em; }
.btn-sm .btn-sub { display: none; }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 14px/1 var(--f-sans); letter-spacing: 0; text-transform: none; padding: 0 22px;
  background: rgba(7, 7, 11, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(242, 239, 232, 0.08); }
.btn-ghost .ic { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.2s, gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
/* The O of OXXYZ is the mark: a ring in the letters' weight with a play button inside. */
.brand-o { display: inline-block; width: 0.78em; height: 0.78em; margin-right: -0.035em; vertical-align: -0.02em; color: currentColor; }
.brand-o .mk-play { fill: var(--amber); }
.brand-word { font: 800 19px/1 var(--f-sans); letter-spacing: -0.04em; }
.brand-play {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 7px 4px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2);
}
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a { position: relative; padding-block: 6px; transition: color 0.2s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
[data-page='dabba-dash'] .nav [data-nav='dabba-dash'],
[data-page='hub'] .nav [data-nav='games'] { color: var(--ink); }
[data-page='dabba-dash'] .nav [data-nav='dabba-dash']::after { transform: scaleX(1); }
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .header-in .btn-sm { margin-left: auto; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 28px; background: var(--bg); }
.foot-top { display: grid; gap: 22px; }
.brand-lg .brand-word { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.055em; }
.brand-lg .brand-play { font-size: 12px; align-self: flex-start; margin-top: 0.5em; }
.foot-line { color: var(--ink-2); max-width: 32em; font-size: 17px; }
.foot-line em { font-family: var(--f-serif); font-size: 1.18em; color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-weight: 600; font-size: 15px; }
.foot-nav a { color: var(--ink-2); transition: color 0.2s; }
.foot-nav a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-3);
}
.foot-bottom a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.foot-bottom a:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section-head { display: grid; gap: clamp(20px, 3vw, 36px); margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h-lg { max-width: 15em; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
}

/* Reveal on scroll: only with JS and motion allowed; everything is visible otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js [data-reveal-stagger].in > * { opacity: 1; transform: none; }
  .js [data-reveal-stagger].in > *:nth-child(2) { transition-delay: 0.07s; }
  .js [data-reveal-stagger].in > *:nth-child(3) { transition-delay: 0.14s; }
  .js [data-reveal-stagger].in > *:nth-child(4) { transition-delay: 0.21s; }
  .js [data-reveal-stagger].in > *:nth-child(5) { transition-delay: 0.28s; }
  .js [data-reveal-stagger].in > *:nth-child(6) { transition-delay: 0.35s; }
  .js [data-reveal-stagger].in > *:nth-child(n + 7) { transition-delay: 0.42s; }
}

/* ---------- Rain (a hero's monsoon, transforms only) ---------- */

.rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; opacity: 0.5; }
.rain::before,
.rain::after {
  content: ''; position: absolute; inset: -100% -20% 0; height: 300%;
  background-image: repeating-linear-gradient(100deg, transparent 0 46px, rgba(200, 230, 255, 0.11) 46px 47px, transparent 47px 91px);
  background-size: 100% 220px;
  transform: translate3d(0, 0, 0);
}
.rain::after { background-image: repeating-linear-gradient(100deg, transparent 0 71px, rgba(200, 230, 255, 0.07) 71px 72px, transparent 72px 133px); background-size: 100% 340px; }
@media (prefers-reduced-motion: no-preference) {
  .rain::before { animation: rain 0.55s linear infinite; }
  .rain::after { animation: rain 0.9s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .rain { display: none; } }
@keyframes rain { to { transform: translate3d(-38px, 220px, 0); } }
.paused .rain::before, .paused .rain::after { animation-play-state: paused; }

/* =========================================================
   HUB
   ========================================================= */

.hub-hero {
  position: relative; min-height: 100svh; min-height: max(100svh, 620px);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding-bottom: clamp(36px, 6vw, 72px);
}
.hub-hero .art { position: absolute; inset: 0; z-index: -2; }
.hub-hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hub-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.55) 0%, rgba(7, 7, 11, 0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 11, 0.88) 18%, rgba(7, 7, 11, 0.2) 52%, rgba(7, 7, 11, 0) 70%),
    radial-gradient(120% 90% at 0% 100%, rgba(7, 7, 11, 0.85) 0%, rgba(7, 7, 11, 0) 60%);
}
.hub-hero .rain { z-index: -1; opacity: 0.35; }
.hub-hero-in { display: grid; gap: 22px; }
.hub-hero .tagline { font: 600 clamp(36px, 5.6vw, 80px)/0.98 var(--f-sans); letter-spacing: -0.045em; max-width: 11em; }
.hub-hero .tagline .serif { font-size: 1.12em; color: var(--amber-hi); }
.hub-hero .lede { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.hub-hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row span + span::before { content: ''; width: 4px; height: 4px; background: var(--ink-3); border-radius: 50%; margin-right: 14px; }
@media (min-width: 1000px) {
  .hub-hero-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hub-hero .side { justify-self: end; text-align: right; }
}
.hub-hero .side { display: none; }
@media (min-width: 1000px) { .hub-hero .side { display: grid; gap: 10px; } }
.side .stat { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.side .stat b { display: block; font: 600 28px/1 var(--f-display); letter-spacing: 0.06em; color: var(--ink); margin-bottom: 2px; }

/* Portrait phones: the vertical key art carries the title at the top, the copy sits low. */
@media (max-aspect-ratio: 4/5) {
  .hub-hero .art img { object-position: 50% 20%; }
  .hub-hero::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 11, 0.5) 0%, rgba(7, 7, 11, 0) 16%),
      linear-gradient(0deg, var(--bg) 2%, rgba(7, 7, 11, 0.92) 30%, rgba(7, 7, 11, 0.1) 58%, rgba(7, 7, 11, 0) 70%);
  }
}

/* Studio statement */
.statement { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.statement .big { font: 500 clamp(28px, 4vw, 56px)/1.12 var(--f-sans); letter-spacing: -0.04em; max-width: 20em; margin-top: clamp(28px, 4vw, 48px); }
.statement .big .serif { font-size: 1.12em; }
.statement .big .dim { color: var(--ink-3); }
.pillars { display: grid; gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: var(--line); border-block: 1px solid var(--line); }
.pillars > div { background: var(--bg); padding: 26px 0 28px; display: grid; gap: 8px; }
.pillars .n { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.pillars h3 { font-size: 19px; letter-spacing: -0.02em; }
.pillars p { color: var(--ink-2); font-size: 15px; max-width: 26em; }
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars > div { padding: 28px 32px 32px 0; }
  .pillars > div + div { padding-left: 32px; }
}

/* Games grid */
.games-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 900px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .game-card.featured { grid-column: span 3; }
}
@media (min-width: 1200px) {
  .games-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .game-card.featured { grid-column: 1; grid-row: span 2; }
}
.game-card {
  position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2);
  border: 1px solid var(--line); isolation: isolate; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.game-card .card-art { position: absolute; inset: 0; z-index: -2; }
.game-card .card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game-card.featured { min-height: clamp(460px, 62vw, 640px); }
.game-card.featured::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7, 7, 11, 0.96) 0%, rgba(7, 7, 11, 0.7) 32%, rgba(7, 7, 11, 0) 64%);
}
@media (prefers-reduced-motion: no-preference) {
  .game-card.featured:hover .card-art img { transform: scale(1.035); }
}
.card-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.card-title { font: 600 clamp(56px, 8vw, 104px)/0.8 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; }
.card-title .a { color: var(--amber-hi); text-shadow: 0 0 10px rgba(255, 178, 30, 0.75), 0 0 34px rgba(255, 140, 30, 0.35); }
.card-title .p { color: var(--pink-hi); text-shadow: 0 0 10px rgba(255, 61, 139, 0.75), 0 0 34px rgba(255, 61, 139, 0.35); }
.card-sub { font: 600 clamp(17px, 1.5vw, 21px)/1.3 var(--f-hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.card-desc { color: var(--ink-2); max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  padding: 7px 10px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 7, 11, 0.4);
}
.tag.live { color: var(--cyan-hi); border-color: rgba(60, 242, 255, 0.45); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 6px; }
.card-label { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; }

/* Coming-soon slots: no art yet, so a quiet signal: a hue, a grid, a codename. */
.game-card.soon { min-height: 280px; background: var(--bg-2); }
.soon .glow {
  position: absolute; inset: -30%; z-index: -2;
  background: radial-gradient(40% 50% at var(--gx, 70%) var(--gy, 30%), var(--hue, rgba(60, 242, 255, 0.22)), transparent 70%);
  filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) {
  .soon .glow { animation: drift 14s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: translate3d(-8%, 6%, 0) scale(1.08); } }
.soon .grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%);
}
.soon .code { font: 600 clamp(38px, 4vw, 54px)/0.9 var(--f-sans); letter-spacing: -0.05em; color: var(--ink); }
.soon .code .serif { color: var(--ink-2); }
.soon p { color: var(--ink-3); font-size: 15px; max-width: 24em; }
.soon .bars { display: flex; gap: 6px; }
.soon .bars i { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); }
.soon .bars i.on { background: var(--ink-2); }

/* =========================================================
   GAME PAGE: DABBA DASH
   ========================================================= */

.dd-hero {
  position: relative; min-height: 100svh; min-height: max(100svh, 640px);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + 24px);
}
.dd-hero .bg { position: absolute; inset: 0; z-index: -3; background: #0a0710; }
.dd-hero .bg img, .dd-hero .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dd-hero .bg video { opacity: 0; transition: opacity 1.2s var(--ease); }
.dd-hero .bg video.on { opacity: 1; }
.dd-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.6) 0%, rgba(7, 7, 11, 0) 24%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 11, 0.7) 24%, rgba(7, 7, 11, 0) 56%),
    linear-gradient(90deg, rgba(7, 7, 11, 0.78) 0%, rgba(7, 7, 11, 0.35) 46%, rgba(7, 7, 11, 0) 72%);
}
.dd-hero .rain { z-index: -1; }
.dd-hero-in { display: grid; gap: clamp(14px, 2vw, 22px); padding-bottom: clamp(28px, 4vw, 48px); }
.dd-title {
  font: 600 clamp(92px, 17vw, 260px)/0.74 var(--f-display); letter-spacing: 0.015em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; column-gap: 0.18em; margin-left: -0.04em;
}
.dd-title .a { color: var(--amber-hi); text-shadow: 0 0 12px var(--amber), 0 0 42px rgba(255, 140, 30, 0.55), 0 0 110px rgba(255, 140, 30, 0.3); }
.dd-title .p { color: var(--pink-hi); text-shadow: 0 0 12px var(--pink), 0 0 42px rgba(255, 61, 139, 0.55), 0 0 110px rgba(255, 61, 139, 0.3); }
@media (prefers-reduced-motion: no-preference) {
  .dd-title .p { animation: flicker 7s steps(1) infinite 2.5s; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  91% { opacity: 1; } 91.6% { opacity: 0.55; } 92.2% { opacity: 1; } 93% { opacity: 0.7; } 93.6% { opacity: 1; }
}
.dd-tagline {
  font: 500 clamp(30px, 5.2vw, 76px)/0.92 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase;
  color: #f4fbff; text-shadow: 0 0 10px rgba(142, 248, 255, 0.55), 0 0 34px rgba(60, 242, 255, 0.3);
  max-width: 15em;
}
.dd-tagline span { display: block; }
.dd-hero .cta-row { margin-top: clamp(6px, 1vw, 14px); }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  border-top: 1px solid var(--line); padding-block: 16px 22px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.hero-foot .facts { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hero-foot .facts b { color: var(--ink); font-weight: 500; }
.motion-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 7px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(7, 7, 11, 0.4);
}
.motion-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.motion-btn svg { width: 12px; height: 12px; }
.motion-btn[hidden] { display: none; }

/* Trailer */
.trailer { padding-top: clamp(56px, 8vw, 110px); }
/* Gameplay / Trailer: two tabs over one player slot. */
.vid-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.vid-tabs button {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 16px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 600 14px/1 var(--f-sans); letter-spacing: -0.01em; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.vid-tabs button span { font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3, var(--ink-2)); }
.vid-tabs button:hover { color: var(--ink); border-color: var(--ink-2); }
.vid-tabs button[aria-selected='true'] { color: #160c00; background: var(--amber); border-color: var(--amber); }
.vid-tabs button[aria-selected='true'] span { color: rgba(22, 12, 0, 0.7); }
.vid-tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.player[hidden] { display: none; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgba(255, 61, 139, 0.25), 0 30px 80px -30px rgba(60, 242, 255, 0.18);
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .play-cover {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(0deg, rgba(7, 7, 11, 0.55), rgba(7, 7, 11, 0.05) 60%);
  transition: opacity 0.4s;
}
.player .play-cover picture, .player .play-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.player.playing .play-cover { opacity: 0; pointer-events: none; }
.play-ring {
  width: clamp(76px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7, 7, 11, 0.45); border: 1.5px solid rgba(255, 226, 160, 0.8);
  box-shadow: 0 0 0 10px rgba(255, 178, 30, 0.08), 0 0 50px rgba(255, 178, 30, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.play-ring::before { content: ''; border-left: 26px solid var(--amber-hi); border-block: 16px solid transparent; margin-left: 7px; filter: drop-shadow(0 0 8px var(--amber)); }
.play-cover:hover .play-ring { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 178, 30, 0.1), 0 0 70px rgba(255, 178, 30, 0.5); }
.play-cover .pc-label {
  position: absolute; left: 20px; bottom: 18px; right: 20px; display: flex; justify-content: space-between;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.under-player { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* Story */
.story-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.05fr 1fr; } }
.neon-quote {
  font: 500 clamp(54px, 8.4vw, 128px)/0.84 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; color: #f4fbff;
  text-shadow: 0 0 10px rgba(142, 248, 255, 0.6), 0 0 36px rgba(60, 242, 255, 0.3);
}
.neon-quote .a { display: block; color: var(--amber-hi); text-shadow: 0 0 10px var(--amber), 0 0 40px rgba(255, 140, 30, 0.45); }
.story-copy { display: grid; gap: 18px; }
.story-copy p { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); }
.story-copy p strong { color: var(--ink); font-weight: 600; }
.story-copy .lead { color: var(--ink); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -0.015em; }
.framed { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed figcaption, .cap {
  font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px;
}
.story-media { display: grid; gap: 0; }
.story-media .framed { aspect-ratio: 16 / 10; }

/* Features: a bento of what you do */
.bento { display: grid; gap: clamp(12px, 1.4vw, 18px); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .f { grid-column: span 2; }
  .bento .f.wide { grid-column: span 3; }
  .bento .f.hero { grid-column: span 4; }
}
.f {
  position: relative; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); isolation: isolate;
  transition: border-color 0.3s;
}
.f:hover { border-color: var(--line-2); }
.f .f-art { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.f .f-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .f:hover .f-art img { transform: scale(1.04); } }
.f .f-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 0%, transparent 40%); }
.f .f-body { padding: 4px clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 30px); display: grid; gap: 10px; align-content: start; }
.f .f-n { font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.f h3 {
  font: 600 clamp(30px, 2.8vw, 40px)/0.9 var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; color: #f4fbff;
}
.f h3 .hl { color: var(--amber-hi); }
.f h3 .hp { color: var(--pink-hi); }
.f h3 .hc { color: var(--cyan-hi); }
.f p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.f .tags { margin-top: 4px; }
.f .tag { background: transparent; }
@media (min-width: 1100px) {
  .f.hero { flex-direction: row; }
  .f.hero .f-art { aspect-ratio: auto; flex: 1.35; min-height: 100%; }
  .f.hero .f-art::after { background: linear-gradient(270deg, var(--bg-2) 0%, transparent 40%); }
  .f.hero .f-body { flex: 1; padding: clamp(24px, 2.4vw, 36px); align-content: center; }
}

/* The city and its ragas */
.city { background: linear-gradient(180deg, var(--bg) 0%, #0b0811 30%, #0b0811 70%, var(--bg) 100%); }
.city-media { display: grid; gap: clamp(12px, 1.4vw, 18px); margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 800px) { .city-media { grid-template-columns: 1.4fr 1fr 1fr; } }
.city-media .framed { aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .city-media .framed:first-child { aspect-ratio: auto; } }
.city-media figure { margin: 0; }
.districts { border-top: 1px solid var(--line); }
.district {
  display: grid; gap: 4px 24px; padding-block: 18px 20px; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
}
.district .name { font: 600 clamp(30px, 3.4vw, 46px)/0.9 var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; }
.district .raga { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-hi); align-self: center; text-align: right; }
.district .feel { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) {
  .district { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(150px, 0.7fr); align-items: baseline; }
  .district .feel { grid-column: auto; grid-row: 1; grid-column: 2; }
  .district .raga { grid-column: 3; }
}
.district:hover .name { color: var(--amber-hi); }
.score-note { display: grid; gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .score-note { grid-template-columns: 1fr 1fr; gap: 64px; } }
.score-note p { color: var(--ink-2); }

/* Garage: four rides */
.rides { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
@media (min-width: 700px) { .rides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .rides { grid-template-columns: repeat(4, 1fr); } }
.ride { background: var(--bg-2); padding: clamp(22px, 2.2vw, 30px); display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.ride::before {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 90%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, var(--rc, rgba(255, 178, 30, 0.14)), transparent 70%);
  opacity: 0.8; transition: opacity 0.4s;
}
.ride:hover::before { opacity: 1.4; }
.ride > * { position: relative; }
.ride .rn { font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); display: flex; justify-content: space-between; }
.ride h3 { font: 600 clamp(34px, 3vw, 44px)/0.86 var(--f-display); letter-spacing: 0.03em; color: #f4fbff; }
.ride .rtag { font: 700 13px/1 var(--f-hud); letter-spacing: 0.2em; text-transform: uppercase; color: var(--rt, var(--amber-hi)); }
.ride p { color: var(--ink-2); font-size: 15px; }
.ride .meter { display: grid; gap: 8px; margin-top: 6px; }
.ride .meter div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--ink-3); }
.ride .meter i { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rt, var(--amber)) var(--v, 50%), var(--line) var(--v, 50%)); }

/* Key art and screenshots */
.keyart-row { display: grid; gap: clamp(12px, 1.4vw, 18px); }
@media (min-width: 800px) { .keyart-row { grid-template-columns: 2.62fr 1fr; align-items: stretch; } }
.keyart-row .framed { height: 100%; }
.keyart-row .framed.land { aspect-ratio: 16 / 9; }
.keyart-row .framed.port { aspect-ratio: 9 / 16; }
@media (min-width: 800px) { .keyart-row .framed.port { aspect-ratio: auto; } }
.shots { display: grid; gap: clamp(8px, 1vw, 14px); margin-top: clamp(12px, 1.4vw, 18px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in; display: block; width: 100%; text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.4s; }
.shot .sc {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  font: 500 10.5px/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(0deg, rgba(7, 7, 11, 0.85), transparent); opacity: 0; transition: opacity 0.3s;
}
.shot:hover .sc, .shot:focus-visible .sc { opacity: 1; }
@media (hover: none) { .shot .sc { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .shot:hover img { transform: scale(1.05); } }
.shot.big { grid-column: span 2; grid-row: span 2; }
.contact-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; color: var(--ink-3); font-size: 14px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: rgba(4, 4, 7, 0.94); color: var(--ink);
}
.lightbox::backdrop { background: rgba(4, 4, 7, 0.7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  background: rgba(7, 7, 11, 0.6); color: var(--ink); transition: border-color 0.2s, background-color 0.2s;
}
.lb-btn:hover { border-color: var(--ink-2); background: rgba(242, 239, 232, 0.08); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-nav { display: flex; gap: 10px; }

/* Keep coming back */
.loop-grid { display: grid; gap: clamp(12px, 1.4vw, 18px); }
@media (min-width: 900px) { .loop-grid { grid-template-columns: repeat(3, 1fr); } }
.panel {
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); padding: clamp(22px, 2.4vw, 32px);
  display: grid; gap: 14px; align-content: start;
}
.panel .hud-label { font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-hi); display: flex; align-items: center; gap: 8px; }
.panel h3 { font: 600 clamp(32px, 3vw, 42px)/0.88 var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; }
.panel p { color: var(--ink-2); font-size: 15.5px; }
.board { display: grid; gap: 0; font: 500 12.5px/1 var(--f-mono); letter-spacing: 0.06em; margin-top: 4px; }
.board div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px dashed var(--line-2); color: var(--ink-2); }
.board div:first-child { color: var(--amber-hi); }
.board .you { color: var(--cyan-hi); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font: 700 12px/1 var(--f-hud); letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 11px 8px;
  border: 1px solid rgba(255, 226, 160, 0.35); color: var(--amber-hi); border-radius: 3px; background: rgba(255, 178, 30, 0.06);
}
.badge.p { border-color: rgba(255, 61, 139, 0.4); color: var(--pink-hi); background: rgba(255, 61, 139, 0.06); }
.badge.c { border-color: rgba(60, 242, 255, 0.35); color: var(--cyan-hi); background: rgba(60, 242, 255, 0.05); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 4px; }
.eq i { flex: 1; background: linear-gradient(0deg, var(--pink), var(--amber)); border-radius: 1px; height: var(--h); opacity: 0.85; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .eq.in i { animation: eq 1.1s ease-in-out infinite alternate; animation-delay: var(--d); }
}
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* How to play */
.howto-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .howto-grid { grid-template-columns: 0.9fr 1.1fr; } }
.facts-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font: 500 11.5px/1.6 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts-list dd { margin: 0; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.facts-list dd span { display: block; font-weight: 400; color: var(--ink-2); font-size: 14.5px; margin-top: 2px; letter-spacing: 0; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 600 34px/0.9 var(--f-display); color: var(--amber-hi); text-shadow: 0 0 14px rgba(255, 178, 30, 0.4); grid-row: span 2;
}
.step h3 { font: 700 15px/1.2 var(--f-hud); letter-spacing: 0.2em; text-transform: uppercase; }
.step p { color: var(--ink-2); font-size: 15.5px; }
kbd {
  display: inline-block; min-width: 1.9em; padding: 2px 6px 1px; margin: 0 1px; text-align: center;
  font: 500 12px/1.5 var(--f-mono); color: var(--ink); background: var(--bg-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px;
}

/* Final call */
.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding-block: clamp(110px, 16vw, 220px); border-top: 1px solid var(--line);
}
.final .bg { position: absolute; inset: 0; z-index: -2; }
.final .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.final::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 70% at 50% 50%, rgba(7, 7, 11, 0.55), rgba(7, 7, 11, 0.94) 100%), linear-gradient(0deg, var(--bg), transparent 30%, transparent 70%, var(--bg));
}
.final-in { display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 28px); }
.final .neon-quote { font-size: clamp(56px, 10vw, 150px); }
.final .lede { text-align: center; }
.final .small { font: 500 11.5px/1.6 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.nf .code { font: 600 clamp(120px, 26vw, 300px)/0.8 var(--f-display); color: var(--pink-hi); text-shadow: 0 0 14px var(--pink), 0 0 60px rgba(255, 61, 139, 0.45); }

@media (max-width: 520px) {
  .btn-xl { --h: 62px; padding: 0 30px; width: 100%; }
  .cta-row .btn-ghost { width: 100%; }
  .hero-foot .facts { gap: 8px 18px; }
}
@media print { .site-header, .rain, video { display: none !important; } }

/* Bento between two and six columns: the wide cards and the last one take the row. */
@media (min-width: 720px) and (max-width: 1099px) {
  .bento .f.hero, .bento .f:last-child { grid-column: 1 / -1; }
  .bento .f.hero .f-art, .bento .f:last-child .f-art { aspect-ratio: 21 / 9; }
}

/* ---- Hub hero, round 2 ---- */
.hub-hero-copy { display: grid; gap: 20px; }
.hub-hero .tagline .l { display: block; }
.hub-hero .tagline { max-width: none; }
/* Wide screens: slide the key art right so the copy sits beside the auto, not on it. */
@media (min-width: 1000px) and (min-aspect-ratio: 4/5) {
  .hub-hero .art { left: 17%; }
  .hub-hero .art::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: 1;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 7, 11, 0.6) 45%, rgba(7, 7, 11, 0) 100%);
  }
  .hub-hero .hub-hero-copy { max-width: 600px; }
  .hub-hero .tagline { font-size: clamp(44px, 4.6vw, 70px); }
  .hub-hero .lede { max-width: 30em; font-size: 18px; }
}
/* Portrait: the art fills the top, the copy sits on the dark below it. */
@media (max-aspect-ratio: 4/5) {
  .hub-hero { padding-top: 0; }
  .hub-hero .art { bottom: auto; height: 78%; }
  .hub-hero .art img { object-position: 50% 0%; }
  .hub-hero::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 11, 0.55) 0%, rgba(7, 7, 11, 0) 12%),
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 26%, rgba(7, 7, 11, 0.85) 40%, rgba(7, 7, 11, 0) 62%);
  }
  .hub-hero .tagline { font-size: clamp(34px, 9.6vw, 56px); }
  .hub-hero .lede { font-size: 16px; }
}
.statement { padding-top: clamp(56px, 7vw, 110px); }
.brand-lg .brand-play { align-self: center; margin-top: 0; }

/* Featured card on narrow screens: art on top, copy below on solid ground. */
@media (max-width: 899px) {
  .game-card.featured { min-height: 0; display: block; }
  .game-card.featured .card-art { position: relative; aspect-ratio: 16 / 10; }
  .game-card.featured::after { display: none; }
  .game-card.featured .card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 0%, transparent 45%); }
  .game-card.featured .card-body { margin-top: -54px; position: relative; }
  .card-title { font-size: clamp(56px, 17vw, 84px); }
}
.game-card.featured .card-art img { object-position: 50% 30%; }

/* ---- Round 2 fixes ---- */
.f-art picture, .framed picture, .final .bg picture, .bg picture { height: 100%; }
.framed picture img, .f-art picture img { height: 100%; }
.nw { white-space: nowrap; }
.section { padding-block: clamp(64px, 8.5vw, 124px); }
.neon-quote { font-size: clamp(52px, 6.6vw, 104px); }
.story-grid { align-items: start; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1fr 1fr; } }
.foot-line { max-width: 38em; }

/* City pictures: one row of equal height. */
@media (min-width: 800px) {
  .city-media .framed, .city-media .framed:first-child { aspect-ratio: auto; height: clamp(220px, 22vw, 330px); }
}
.district { grid-template-columns: 1fr auto; }
@media (min-width: 900px) {
  .district { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr) minmax(220px, 0.85fr); }
}

/* Key art: columns sized so the 16:9 and the 9:16 come out the same height. */
@media (min-width: 800px) {
  .keyart-row { grid-template-columns: 3.16fr 1fr; }
  .keyart-row .framed.port { aspect-ratio: 9 / 16; }
}

.howto-grid { align-items: start; }
.facts-list { align-content: start; }

/* Garage banner over the four rides. */
.garage-banner { margin: 0 0 clamp(12px, 1.4vw, 18px); }
.garage-banner .framed { aspect-ratio: 21 / 8; }
.garage-banner img { object-position: 50% 62%; }
@media (max-width: 700px) { .garage-banner .framed { aspect-ratio: 16 / 10; } }
.ride { padding-top: clamp(26px, 2.6vw, 34px); min-height: 250px; }
.ride::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--rt, var(--amber)), transparent 80%); opacity: 0.85;
}
.rack { display: flex; gap: 5px; margin-top: auto; padding-top: 6px; }
.rack i { width: 14px; height: 10px; border-radius: 2px; border: 1px solid var(--rt, var(--amber)); opacity: 0.9; }
.rack i.e { opacity: 0.18; }

/* Final call: let the art breathe a little more. */
.final::before {
  background: radial-gradient(75% 75% at 50% 50%, rgba(7, 7, 11, 0.35), rgba(7, 7, 11, 0.9) 100%), linear-gradient(0deg, var(--bg), transparent 26%, transparent 74%, var(--bg));
}
@media (max-width: 520px) { .hide-sm { display: none; } }
.kicker { line-height: 1.4; }

/* Game hero on portrait phones: title up top, the auto in the middle, the buttons at the thumb. */
@media (max-aspect-ratio: 4/5) {
  .dd-hero { justify-content: stretch; }
  .dd-hero .bg { bottom: 22%; }
  .dd-hero .bg img { object-position: 50% 100%; }
  .dd-hero::before {
    background:
      linear-gradient(180deg, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.55) 30%, rgba(7, 7, 11, 0) 48%),
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 22%, rgba(7, 7, 11, 0.6) 34%, rgba(7, 7, 11, 0) 50%);
  }
  .dd-hero-in { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
  .dd-hero-in .cta-row { margin-top: auto; }
  .dd-title { font-size: clamp(84px, 25vw, 150px); }
  .dd-tagline { font-size: clamp(28px, 8.4vw, 44px); }
}
@media (max-width: 520px) {
  .final .neon-quote { font-size: clamp(40px, 10.6vw, 64px); }
  .facts-list div { grid-template-columns: 92px 1fr; }
}
@media (max-width: 520px) { .card-sub { letter-spacing: 0.1em; font-size: 16px; } }
