/* ─── Geralt Gaming · base styles ─────────────────────────────── */

:root {
  /* warm-black cinematic palette */
  --bg: oklch(0.13 0.012 35);
  --bg-2: oklch(0.16 0.014 35);
  --surface: oklch(0.185 0.015 35);
  --surface-hi: oklch(0.225 0.018 35);
  --line: oklch(0.32 0.018 35);
  --line-soft: oklch(0.24 0.014 35);
  --fg: oklch(0.965 0.006 80);
  --fg-dim: oklch(0.78 0.012 60);
  --fg-mute: oklch(0.58 0.014 50);
  --accent: oklch(0.62 0.18 28);          /* blood red */
  --accent-hi: oklch(0.7 0.19 30);
  --accent-ink: oklch(0.16 0.02 30);
  --good: oklch(0.74 0.13 150);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── tweak modes ─────────────────────────────────────────────── */
body.mood-midnight {
  --bg: oklch(0.13 0.02 255);
  --bg-2: oklch(0.16 0.025 255);
  --surface: oklch(0.185 0.028 255);
  --surface-hi: oklch(0.225 0.03 255);
  --line: oklch(0.32 0.03 255);
  --line-soft: oklch(0.24 0.025 255);
  --fg-dim: oklch(0.78 0.02 240);
}
body.mood-ash {
  --bg: oklch(0.13 0 0);
  --bg-2: oklch(0.16 0 0);
  --surface: oklch(0.185 0 0);
  --surface-hi: oklch(0.225 0 0);
  --line: oklch(0.32 0 0);
  --line-soft: oklch(0.24 0 0);
  --fg-dim: oklch(0.78 0 0);
}

body.font-sans .title,
body.font-sans .title-jp,
body.font-sans .subtitle,
body.font-sans .stat-value,
body.font-sans .caption-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
body.font-sans .subtitle { font-style: normal; font-weight: 500; }

body.no-kanji .title-jp { display: none; }

body.card-solid .panel {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.card-outline .panel {
  background: oklch(0.13 0.012 35 / 0.35);
  backdrop-filter: blur(6px);
  border-color: var(--line);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 70% -10%, oklch(0.22 0.06 28 / 0.5), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, oklch(0.2 0.05 35 / 0.45), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── layout shell ────────────────────────────────────────────── */

.shell {
  min-height: 100vh;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 28px 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.hdr, .ftr { position: relative; z-index: 2; }

/* ─── header ──────────────────────────────────────────────────── */

.hdr {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 12px 14px 12px 22px;
  position: relative;
  z-index: 3;
  background: linear-gradient(to bottom, oklch(0.16 0.014 35 / 0.85), oklch(0.16 0.014 35 / 0.6));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 0 1px oklch(0.7 0.19 30 / 0.4) inset, 0 6px 20px oklch(0.62 0.18 28 / 0.25);
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}
.brand-name b {
  font-weight: 700;
  color: var(--fg);
}
.brand-name span {
  color: var(--fg-mute);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 4px;
  justify-self: start;
}
.nav a {
  padding: 8px 14px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  border-radius: 8px;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a.active { color: var(--fg); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-left: auto;
}
.hdr-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--fg-dim);
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.hdr-icon:hover { color: var(--fg); background: var(--surface); }
.hdr-icon .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-2);
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.account:hover { border-color: var(--line); background: var(--surface-hi); }
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.5 0.12 30), oklch(0.35 0.08 50));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.account-name {
  font-size: 13px;
  font-weight: 500;
}
.account-balance {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
}

/* ─── main grid ───────────────────────────────────────────────── */

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  min-height: 70vh;
}

.game-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 9fr);
  gap: 20px;
  align-items: stretch;
}
.main.dense .game-row { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); }

.stage-spacer {
  display: block;
  position: relative;
  border-radius: 16px;
  border: 1px dashed oklch(0.5 0.02 50 / 0.35);
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.18 0.012 35 / 0.4) 0 12px,
      oklch(0.13 0.012 35 / 0.4) 12px 24px
    );
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.stage-spacer::before {
  content: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(0.13 0.012 35 / 0.7);
  backdrop-filter: blur(6px);
}

.panel {
  background: linear-gradient(160deg, oklch(0.185 0.015 35 / 0.86) 0%, oklch(0.16 0.014 35 / 0.86) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* ─── left: game details ──────────────────────────────────────── */

.details {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  gap: 28px;
}
.details.compact { padding: 24px 28px 24px; gap: 20px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.crumb .sep { opacity: 0.5; }
.crumb .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(0.62 0.18 28 / 0.12);
  color: var(--accent-hi);
  border: 1px solid oklch(0.62 0.18 28 / 0.3);
}
.crumb .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.62 0.18 28 / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(0.62 0.18 28 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.62 0.18 28 / 0); }
}

.title-block { display: flex; flex-direction: column; gap: 10px; }
.studio {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.title-jp {
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin: 0;
}
.title {
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.subtitle {
  font-family: "Zen Old Mincho", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--fg-dim);
  margin: 0;
  font-style: italic;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-hi);
  color: var(--fg-dim);
  border: 1px solid var(--line-soft);
}
.tag.primary {
  background: oklch(0.62 0.18 28 / 0.12);
  border-color: oklch(0.62 0.18 28 / 0.35);
  color: var(--accent-hi);
}

.lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.stat-value {
  font-family: "Zen Old Mincho", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
}
.stat-value.score { color: var(--accent); }
.stat-value small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  font-weight: 400;
  margin-left: 2px;
}

/* CTA row */
.cta-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 12px;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  position: relative;
  overflow: hidden;
  padding: 14px 26px;
  box-shadow: 0 8px 30px oklch(0.62 0.18 28 / 0.32), 0 0 0 1px oklch(0.7 0.19 30 / 0.5) inset;
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary .size {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.06em;
}
.btn-primary .progress {
  position: absolute;
  inset: 0;
  background: oklch(0.7 0.19 30);
  width: var(--p, 0%);
  z-index: 0;
  transition: width 0.4s ease;
}
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: var(--surface-hi);
  border: 1px solid var(--line-soft);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--line); background: oklch(0.25 0.02 35); }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface-hi);
  border: 1px solid var(--line-soft);
}
.btn-icon:hover { border-color: var(--line); }

/* meta strip */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--fg-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.meta b { color: var(--fg-dim); font-weight: 500; }

/* ─── full-page video stage (fixed background) ────────────────── */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.stage video,
.stage .stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder when no video src yet */
.stage-fallback {
  background:
    radial-gradient(circle at 50% 55%, oklch(0.22 0.04 30) 0%, oklch(0.1 0.02 30) 60%, #000 100%);
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  overflow: hidden;
}
.stage-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      oklch(0.4 0.02 30 / 0.06) 3px,
      oklch(0.4 0.02 30 / 0.06) 4px
    );
  pointer-events: none;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, oklch(0.13 0.012 35 / 0.85) 0%, transparent 28%, transparent 72%, oklch(0.13 0.012 35 / 0.6) 100%),
    linear-gradient(to right, oklch(0.13 0.012 35 / 0.45) 0%, transparent 18%);
}

.stage-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: oklch(0.13 0.012 35 / 0.6);
  border: 1px solid oklch(0.95 0.005 80 / 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.stage-tag .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
.stage-tag.viewers { color: var(--fg-dim); }

.stage-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}
.caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 60%;
}
.caption-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.8);
}
.caption-sub {
  font-size: 12.5px;
  color: var(--fg-dim);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.video-controls {
  display: flex;
  gap: 6px;
  background: oklch(0.13 0.012 35 / 0.55);
  border: 1px solid oklch(0.95 0.005 80 / 0.14);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(10px);
}
.video-controls button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: background 0.15s;
}
.video-controls button:hover { background: oklch(1 0 0 / 0.1); }
.video-controls button.primary { background: var(--accent); color: var(--accent-ink); }
.video-controls button.primary:hover { background: var(--accent-hi); }

/* timeline scrubber */
.scrubber {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 78px;
  height: 2px;
  background: oklch(1 0 0 / 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.scrubber > i {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* drop hint over placeholder */
.drop-hint { display: none; }

/* ─── footer ──────────────────────────────────────────────────── */

.ftr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 32px;
  padding: 46px 32px 38px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  min-height: 240px;
}
.ftr-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ftr-brand-mark {
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.ftr-brand-mark span { color: var(--accent); margin-right: 8px; }
.ftr-brand-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.7;
}
.ftr-brand-meta b { color: var(--fg-dim); font-weight: 500; }

.ftr-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ftr-links a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.15s, letter-spacing 0.15s;
}
.ftr-links a:hover {
  color: var(--fg);
  letter-spacing: 0.04em;
}

.ftr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ftr-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ftr-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.74 0.13 150);
  box-shadow: 0 0 0 3px oklch(0.74 0.13 150 / 0.18);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lang:hover { border-color: var(--line); color: var(--fg-dim); }

/* ─── hamburger + mobile nav ──────────────────────────────────── */

.hdr-hamburger { display: none; }

.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .hdr-hamburger { display: grid; }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: oklch(0.08 0.01 35 / 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fade-in 0.18s ease;
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: linear-gradient(170deg, oklch(0.18 0.016 35) 0%, oklch(0.14 0.013 35) 100%);
    border-left: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    padding: 0 0 32px;
    animation: slide-in 0.22s cubic-bezier(0.3, 0.7, 0.4, 1);
    overflow-y: auto;
  }
  @keyframes slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 20px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 8px;
  }
  .mobile-nav-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-mute);
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg-dim);
    border-bottom: 1px solid var(--line-soft);
    transition: color 0.15s, background 0.15s;
    animation: link-in 0.22s ease both;
    animation-delay: calc(var(--i) * 40ms + 60ms);
  }
  @keyframes link-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .mobile-nav-link:hover { color: var(--fg); background: var(--surface); }
  .mobile-nav-link.active { color: var(--fg); }
  .mobile-nav-link.active > span { border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

  .mobile-nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
    margin-top: auto;
  }
}

/* ─── responsive ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .nav { display: none; }
  /* drop the empty nav column once nav is hidden */
  .hdr { grid-template-columns: auto 1fr; gap: 16px; }
  .main, .main.dense { display: flex; flex-direction: column; }
  .game-row, .main.dense .game-row { grid-template-columns: 1fr; }
  .stage-spacer { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 768px) {
  .shell { padding: 14px 16px 0; }
  .details { padding: 28px 24px 26px; gap: 20px; }
  .subtitle { font-size: 18px; }
  .ftr { padding: 36px 24px 30px; min-height: auto; }

  /* video shows as background — make panel glass-transparent */
  .panel {
    background: linear-gradient(160deg, oklch(0.15 0.014 35 / 0.55) 0%, oklch(0.13 0.012 35 / 0.5) 100%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
  /* ensure video overlay is dark enough for text legibility */
  .stage-overlay {
    background:
      linear-gradient(to top, oklch(0.1 0.01 35 / 0.7) 0%, oklch(0.1 0.01 35 / 0.35) 50%, oklch(0.1 0.01 35 / 0.55) 100%),
      linear-gradient(to right, oklch(0.1 0.01 35 / 0.3) 0%, transparent 50%);
  }
}

@media (max-width: 640px) {
  .shell { padding: 10px 12px 0; }

  /* header — slim down, hide account text */
  .hdr { padding: 8px 8px 8px 14px; gap: 10px; }
  .account-name,
  .account-balance { display: none; }
  .account { padding: 4px; border-radius: 50%; }
  .hdr-icon { width: 32px; height: 32px; }
  .hdr-right { gap: 4px; }

  /* game details */
  .details { padding: 22px 18px 20px; gap: 16px; }
  .title { font-size: clamp(32px, 9vw, 48px); }
  .subtitle { font-size: 16px; }
  .lede { font-size: 14px; }

  /* stats — 2×2 grid */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  /* CTA — download spans full width, wishlist+share share row 2 */
  .cta-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .btn-primary { grid-column: 1 / -1; }

  /* meta strip */
  .meta { gap: 10px; font-size: 11px; }

  /* footer */
  .ftr { grid-template-columns: 1fr; text-align: center; padding: 32px 20px 28px; min-height: auto; }
  .ftr-brand { align-items: center; }
  .ftr-links { justify-self: stretch; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ftr-right { align-items: center; white-space: normal; }
}

@media (max-width: 400px) {
  /* hide bell + cart on very small screens, keep search + account */
  .hdr-icon:nth-child(2),
  .hdr-icon:nth-child(3) { display: none; }
  .tag { font-size: 10.5px; padding: 4px 8px; }
  .stat-value { font-size: 17px; }
}
