/* WARGEN — single dark look, committed on purpose (the brand lives on a steel-and-void ground).
 * Layout: "hangar bays" — full-bleed cinematic panels separated by steel rails; text rides a
 * 1280px column; chamfered corners echo the cut blades of the wolf mark. */
:root {
  /* ground */
  --void: #020306;
  --deep: #05070b;
  --base: #080c12;
  --navy: #0c1018;
  --panel: #0d131c;
  /* steel */
  --steel-50: #eff9fc;
  --steel-100: #dee8ee;
  --steel-300: #c3cbd1;
  --steel-500: #8a949d;
  --steel-700: #525c64;
  --line: rgba(195, 203, 209, 0.12);
  --line-strong: rgba(195, 203, 209, 0.26);
  /* ice light */
  --ice: #7dd0ff;
  --ice-core: #a9eaff;
  --rim: #3a92d1;
  --electric: #0f8bff;
  --glow: rgba(15, 139, 255, 0.42);
  /* per-game accent, overridden on each bay and dossier */
  --accent: var(--ice);
  --accent-2: var(--rim);
  --on-accent: #05070b;

  /* type */
  --f-display: 'Michroma', 'Eurostile Extended', 'Arial Black', system-ui, sans-serif;
  --f-ui: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --t-2xl: clamp(1.75rem, 1.05rem + 2.7vw, 3.1rem);
  --t-hero: clamp(1.55rem, 0.95rem + 2.9vw, 3.3rem);

  /* space */
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --section: clamp(88px, 12vw, 168px);
  --cut: 12px;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));

  color-scheme: dark;
}

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

html {
  background: var(--void);
  color: var(--steel-300);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--steel-300);
  font: 400 var(--t-base)/1.65 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(125, 208, 255, 0.32); color: var(--steel-50); }

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

.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-link {
  position: fixed; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 100;
  padding: 10px 16px; background: var(--steel-100); color: var(--void);
  font: 600 var(--t-sm)/1 var(--f-ui); letter-spacing: 0.08em; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--steel-100); text-wrap: balance; }
h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.16;
}
h2 { font-size: var(--t-2xl); }
h3 { font: 600 var(--t-lg)/1.3 var(--f-ui); letter-spacing: 0.02em; }
p { margin: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.25rem;
  font: 600 var(--t-xs)/1.3 var(--f-ui);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; flex: none;
  background: currentColor; box-shadow: 0 0 10px currentColor;
}

.lede { max-width: 60ch; margin-top: 1.25rem; color: var(--steel-500); font-size: 1.125rem; line-height: 1.7; }
.section-head { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 52px; padding: 0 1.6rem;
  border: 0; background: none; cursor: pointer;
  font: 600 var(--t-sm)/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: color 0.25s, filter 0.25s, transform 0.25s;
}
.btn::before, .btn::after { content: ''; position: absolute; z-index: -1; clip-path: var(--chamfer); transition: background 0.25s, opacity 0.25s; }
.btn::before { inset: 0; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: var(--t-xs); --cut: 9px; }

.btn-primary { color: var(--void); }
.btn-primary::before { background: linear-gradient(180deg, var(--steel-50) 0%, #b8c5cf 55%, #93a3b0 100%); }
.btn-primary:hover { filter: drop-shadow(0 0 16px var(--glow)); }
.btn-primary:hover::before { background: linear-gradient(180deg, #fff 0%, var(--ice-core) 60%, var(--ice) 100%); }

.btn-ghost { color: var(--steel-100); }
.btn-ghost::before { background: var(--line-strong); }
.btn-ghost::after { inset: 1px; background: rgba(5, 7, 11, 0.72); --cut: 11px; }
.btn-ghost:hover { color: var(--steel-50); }
.btn-ghost:hover::before { background: var(--ice); }
.btn-ghost:hover::after { background: rgba(12, 22, 34, 0.9); }

.btn-accent { color: var(--on-accent); }
.btn-accent::before { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 100%); }
.btn-accent:hover { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 60%, transparent)); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 0;
  background: rgba(5, 7, 11, 0.6); backdrop-filter: blur(8px);
  color: var(--steel-100); cursor: pointer;
  font: 600 var(--t-xs)/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip-btn:hover { border-color: var(--ice); color: var(--steel-50); }
.chip-btn.is-on { border-color: var(--ice); color: var(--ice-core); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.is-open {
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-bar {
  display: flex; align-items: center; gap: 2rem;
  height: var(--nav-h);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.nav-mark { height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(15, 139, 255, 0.35)); }
.nav-word { height: 13px; width: auto; }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: 0.6rem 0.85rem;
  font: 500 var(--t-xs)/1 var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-300); text-decoration: none; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 1px;
  background: var(--ice); box-shadow: 0 0 8px var(--ice);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links a:hover { color: var(--steel-50); }
.nav-links a[aria-current='true'] { color: var(--steel-50); }
.nav-links a[aria-current='true']::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 0.75rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); }
.lang-switch button {
  min-width: 40px; min-height: 34px; padding: 0 0.6rem; border: 0; background: none; cursor: pointer;
  font: 600 var(--t-xs)/1 var(--f-ui); letter-spacing: 0.14em; color: var(--steel-500);
  transition: color 0.2s, background 0.2s;
}
.lang-switch button + button { border-left: 1px solid var(--line-strong); }
.lang-switch button:hover { color: var(--steel-50); }
.lang-switch button[aria-pressed='true'] { color: var(--void); background: var(--steel-100); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: none; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--steel-100);
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle-bars { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; left: 0; right: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: block; }
  .nav-tools { margin-left: auto; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0; margin: 0;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 6, 10, 0.97); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
    overflow-y: auto;
  }
  .nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s; }
  .nav-links a {
    padding: 1.15rem 0; border-bottom: 1px solid var(--line);
    font: 400 1.15rem/1.2 var(--f-display); letter-spacing: 0.06em;
  }
  .nav-links a::after { display: none; }
}
@media (max-width: 420px) {
  .nav-word { display: none; }
}

/* ---------- hero ---------- */
.hero {
  --stage-w: min(165vw, max(480px, (100svh - 600px) * 3.2), 1480px);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: max(640px, min(100svh, 1040px));
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 34%, #0d1622 0%, var(--base) 48%, var(--void) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 50% 34%, #0d1622 0%, var(--base) 48%, var(--void) 100%);
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 28%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--deep));
}

.stage {
  position: absolute; left: calc(50% - var(--stage-w) / 2);
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2svh - var(--stage-w) * 0.1211);
  width: var(--stage-w); aspect-ratio: 16 / 9;
}
.stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  opacity: 0; transition: opacity 0.6s;
  mix-blend-mode: lighten;
}
.stage-video.is-playing { opacity: 1; }
.stage-video.is-fading { opacity: 0; transition: opacity 1.4s ease; }

/* live logo — positioned exactly where the intro draws it (left 30.19%, top 21.52%, width 39.71% of the 16:9 frame) */
.logo-live {
  --px: 0; --py: 0;
  position: absolute; left: 30.19%; top: 21.52%; width: 39.71%; aspect-ratio: 953 / 749;
  opacity: 0; transition: opacity 0.5s ease;
}
.logo-live.is-live { opacity: 1; }
.ll-mark { position: absolute; left: 6.506%; top: 0; width: 87.828%; aspect-ratio: 837 / 589; }
.ll-mark > img { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.ll-word { position: absolute; left: -0.7%; top: 82.04%; width: 101.4%; max-width: none; height: auto; }
.ll-blade-l, .ll-blade-r { translate: calc(var(--px) * -8px) calc(var(--py) * -6px); transition: translate 0.6s cubic-bezier(.2, .7, .2, 1); }
.ll-head, .ll-eyes, .ll-eye-glow { translate: calc(var(--px) * 6px) calc(var(--py) * 4px); transition: translate 0.6s cubic-bezier(.2, .7, .2, 1); }
.logo-live.is-live .ll-eyes { animation: eyes-breathe 1.54s ease-in-out infinite; }
.hero.is-off .logo-live, .hero.is-off .logo-live * { animation-play-state: paused !important; }

.ll-eye-glow {
  position: absolute; width: 15%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169, 234, 255, 0.85), rgba(15, 139, 255, 0.45) 45%, transparent);
  mix-blend-mode: screen; filter: blur(6px); opacity: 0; pointer-events: none;
  margin: -2.11% 0 0 -7.5%; /* centre on the eye: half of 15% width and of 6% height (height expressed in width units) */
}
.ll-eye-glow-l { left: 40.27%; top: 54.4%; rotate: 45deg; }
.ll-eye-glow-r { left: 59.81%; top: 54.33%; rotate: -45deg; }
.logo-live.is-live .ll-eye-glow { animation: eye-glow 1.54s ease-in-out infinite; }
.ll-glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url('../img/brand/logo-mark.webp') center / 100% 100% no-repeat;
  mask: url('../img/brand/logo-mark.webp') center / 100% 100% no-repeat;
  background: linear-gradient(102deg, transparent 42%, rgba(230, 246, 255, 0.55) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat;
}
.logo-live.is-live .ll-glint { animation: glint 7s 1.2s ease-in-out infinite; }

@keyframes eyes-breathe { 0%, 100% { filter: brightness(0.92); } 50% { filter: brightness(1.18); } }
@keyframes eye-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }
@keyframes glint { 0% { background-position: 160% 0; } 22%, 100% { background-position: -60% 0; } }

/* assembly sequence (used when the intro film is skipped): eyes open, blades lock, head drops, letters unfold */
.logo-live.assemble { opacity: 1; transition: none; }
.logo-live.assemble .ll-eyes, .logo-live.assemble .ll-eye-glow { animation: a-eyes 0.32s 0.05s cubic-bezier(.3, 1.6, .5, 1) both, eyes-breathe 1.54s 1.6s ease-in-out infinite; transform-origin: 50% 54%; }
.logo-live.assemble .ll-eye-glow { animation: a-eyes 0.32s 0.05s cubic-bezier(.3, 1.6, .5, 1) both, eye-glow 1.54s 1.6s ease-in-out infinite; }
.logo-live.assemble .ll-blade-l { animation: a-blade-l 0.42s 0.3s cubic-bezier(.2, .9, .25, 1.15) both; }
.logo-live.assemble .ll-blade-r { animation: a-blade-r 0.42s 0.42s cubic-bezier(.2, .9, .25, 1.15) both; }
.logo-live.assemble .ll-head { animation: a-head 0.38s 0.7s cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: 50% 50%; }
.logo-live.assemble .ll-word { animation: a-word 0.6s 1.05s cubic-bezier(.2, .8, .2, 1) both; }
.logo-live.assemble .ll-glint { animation: glint 7s 1.6s ease-in-out infinite; }
@keyframes a-eyes { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-blade-l { from { transform: translate(-14%, -32%) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-blade-r { from { transform: translate(14%, -32%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-head { from { transform: translateY(-10%) scale(1.6) rotate(5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-word { from { clip-path: inset(48% 50% 48% 50%); } to { clip-path: inset(-20% -2% -20% -2%); } }

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2svh + var(--stage-w) * 0.3121 + clamp(20px, 3.5svh, 44px));
  padding-bottom: clamp(28px, 5svh, 56px);
}
.hero-title { font-size: var(--t-hero); color: var(--steel-50); text-shadow: 0 2px 24px rgba(2, 3, 6, 0.9); }
.hero-lede { max-width: 58ch; margin-top: 1.25rem; color: var(--steel-300); font-size: 1.1rem; text-shadow: 0 1px 12px rgba(2, 3, 6, 0.95); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2rem; }

.intro-ctrl {
  position: absolute; z-index: 30; right: var(--gutter);
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
  display: flex; gap: 0.5rem;
}
.intro-ctrl.is-away { visibility: hidden; }

.hero-roster {
  position: relative; z-index: 1; margin-top: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.roster-chip {
  --accent: var(--ice);
  display: flex; align-items: center; gap: 0.9rem; min-width: 0;
  padding: 1.1rem 1.25rem 1.2rem 0;
  text-decoration: none; color: var(--steel-300);
  transition: color 0.2s;
}
.roster-chip + .roster-chip { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.roster-chip img { width: 64px; height: 36px; object-fit: cover; flex: none; border: 1px solid var(--line-strong); }
.roster-chip img.is-pixel { image-rendering: pixelated; }
.roster-chip-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.roster-chip-name { font: 600 var(--t-sm)/1.2 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-100); }
.roster-chip-status { display: flex; align-items: center; gap: 0.45rem; font: 500 var(--t-xs)/1.3 var(--f-ui); letter-spacing: 0.06em; color: var(--steel-500); }
.roster-chip-status::before { content: ''; width: 6px; height: 6px; flex: none; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.roster-chip:hover .roster-chip-name { color: var(--steel-50); }
.roster-chip:hover img { border-color: var(--accent); }

@media (max-width: 760px) {
  .hero { --stage-w: min(172vw, 132svh, 1480px); }
  .hero-roster { grid-template-columns: minmax(0, 1fr); }
  .roster-chip, .roster-chip + .roster-chip { padding: 0.85rem 0; border-left: 0; }
  .roster-chip + .roster-chip { border-top: 1px solid var(--line); }
  .intro-ctrl {
    position: fixed; z-index: 40; top: auto; left: 0; right: 0; bottom: 0; justify-content: center;
    padding: 28px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(rgba(2, 3, 6, 0), rgba(2, 3, 6, 0.9) 45%);
  }
  .hero-lede { font-size: 1rem; }
}

/* ---------- games ---------- */
.games { padding-top: var(--section); background: var(--deep); }
.games > .wrap { margin-bottom: clamp(48px, 7vw, 88px); }
.bays { display: flex; flex-direction: column; }

.bay {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(600px, 94svh, 940px);
  border-top: 1px solid var(--line);
  background: var(--void);
}
.bay::before {
  /* steel rail with tick marks */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 7px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--accent) 0 120px, transparent 120px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 48px) top / 100% 7px no-repeat;
  opacity: 0.9;
}
.bay-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bay-media img {
  position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.bay-media .is-pixel { image-rendering: pixelated; }
.bay-media .bay-layer { pointer-events: none; }
.bay-media .bay-img-next { opacity: 0; }
.bay-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(2, 3, 6, 0.94) 0%, rgba(2, 3, 6, 0.78) 34%, rgba(2, 3, 6, 0.18) 66%, rgba(2, 3, 6, 0) 100%),
    linear-gradient(0deg, rgba(2, 3, 6, 0.9) 0%, rgba(2, 3, 6, 0) 38%);
}
.bay-inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 2.5rem; align-items: end;
  padding-block: clamp(120px, 18svh, 200px) clamp(48px, 8svh, 88px);
}
.bay-copy { min-width: 0; }
.bay-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 1.4rem;
  font: 500 var(--t-xs)/1.3 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.bay-meta span + span::before { content: '/'; margin-right: 1rem; color: color-mix(in srgb, var(--accent) 55%, var(--steel-500)); }
.bay-meta, .bay-pitch { text-shadow: 0 1px 10px rgba(2, 3, 6, 0.9); }
.bay-title { margin: 0; font: inherit; text-transform: none; letter-spacing: normal; }
.bay-tagline { margin-top: 1.4rem; font: 600 var(--t-xl)/1.3 var(--f-body); color: var(--steel-50); text-wrap: balance; }
.bay-pitch { margin-top: 0.9rem; max-width: 56ch; color: var(--steel-300); }
.bay-highlights {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin: 1.6rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--line-strong);
}
.bay-highlights li {
  display: flex; align-items: center; gap: 0.6rem;
  font: 600 var(--t-sm)/1.35 var(--f-ui); letter-spacing: 0.06em; color: var(--steel-100);
}
.bay-highlights li::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--accent); rotate: 45deg; box-shadow: 0 0 10px var(--accent); }
.bay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.2rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 600 var(--t-xs)/1.2 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-100);
}
.status::before {
  content: ''; width: 8px; height: 8px; flex: none; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 12px var(--accent);
}
.status { position: relative; }
.status[data-kind='soon']::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; pointer-events: none;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 18px var(--accent);
  opacity: 0; animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 1; } }

.bay-reel { display: flex; justify-content: flex-end; align-items: flex-start; gap: 0.75rem; align-self: end; }
.reel-btn {
  position: relative; width: clamp(96px, 9vw, 150px); padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left;
}
.reel-btn img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line-strong); opacity: 0.62;
  transition: opacity 0.25s, border-color 0.25s;
}
.reel-btn .is-pixel { image-rendering: pixelated; }
.reel-btn span {
  display: block; margin-top: 0.5rem; font: 500 0.6875rem/1.3 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-500); transition: color 0.25s;
}
.reel-btn:hover img, .reel-btn[aria-pressed='true'] img { opacity: 1; border-color: var(--accent); }
.reel-btn[aria-pressed='true'] span { color: var(--steel-100); }
.reel-btn[aria-pressed='true']::after {
  content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px;
  border-left: 1px solid var(--accent); border-top: 1px solid var(--accent);
}

/* game title treatments */
.lk-logo { width: clamp(250px, 30vw, 430px); image-rendering: pixelated; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.lk-logo-tr { width: clamp(220px, 26vw, 360px); }

.pc-title { display: flex; align-items: center; gap: 1rem; }
.pc-coin { width: clamp(58px, 6vw, 84px); height: auto; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55)); }
.pc-words { display: flex; flex-direction: column; align-items: flex-start; }
.pc-name {
  font: 800 clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem)/0.95 var(--f-body); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff2c4 0%, #ffcb6b 45%, #e0902c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #5b3313) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}
.pc-ribbon {
  margin-top: 0.55rem; padding: 0.3rem 0.9rem 0.28rem;
  background: linear-gradient(180deg, #d94436, #a8261e); color: #fff6e4;
  font: 700 var(--t-sm)/1 var(--f-ui); letter-spacing: 0.42em; text-indent: 0.42em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}

.ol-title { display: flex; align-items: center; gap: 1.1rem; }
.ol-helmet { width: clamp(52px, 5vw, 72px); height: auto; flex: none; }
.ol-words { display: flex; flex-direction: column; }
.ol-name {
  font: 400 clamp(1.6rem, 0.9rem + 2.8vw, 3rem)/1 var(--f-display);
  letter-spacing: 0.38em; margin-right: -0.38em; color: #f4f1ea; text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 179, 71, 0.25);
}
.ol-rule { height: 3px; margin-top: 0.85rem; width: 62%; background: linear-gradient(90deg, #ffb347, rgba(255, 179, 71, 0)); position: relative; }
.ol-rule::after { content: ''; position: absolute; left: 0; top: -5px; width: 2px; height: 13px; background: #35e0ff; box-shadow: 0 0 8px #35e0ff; }
@media (max-width: 480px) {
  .ol-title { gap: 0.75rem; }
  .ol-helmet { width: 44px; }
  .ol-words { min-width: 0; }
  .ol-name { font-size: min(1.3rem, 5.4vw); letter-spacing: 0.26em; margin-right: -0.26em; }
}

@media (max-width: 960px) {
  .bay-inner { grid-template-columns: minmax(0, 1fr); }
  .bay-reel { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .bay { display: block; min-height: 0; }
  .bay-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .bay-media img { inset: 0; height: 100%; }
  .bay-scrim { inset: 0 0 auto; aspect-ratio: 16 / 10; background: linear-gradient(0deg, var(--void) 0%, rgba(2, 3, 6, 0) 45%); }
  .bay-inner { padding-block: 0 56px; margin-top: -2.5rem; position: relative; }
  .bay-highlights { flex-direction: column; gap: 0.55rem; }
  .reel-btn { width: calc((100% - 1.5rem) / 3); }
}

/* ---------- studio ---------- */
.studio {
  position: relative; padding-block: var(--section);
  background:
    linear-gradient(var(--deep), rgba(5, 7, 11, 0) 30%),
    repeating-linear-gradient(0deg, rgba(125, 208, 255, 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(125, 208, 255, 0.035) 0 1px, transparent 1px 64px),
    var(--base);
  border-top: 1px solid var(--line);
}
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.pillar { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); min-width: 0; }
.pillar::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.pillar-ico { width: 34px; height: 34px; color: var(--ice); margin-bottom: 1rem; }
.pillar h3 { color: var(--steel-50); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--t-base); }
.pillar p { margin-top: 0.6rem; color: var(--steel-500); }


@media (max-width: 960px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--section);
  background: radial-gradient(70% 90% at 85% 50%, #0d1826 0%, var(--base) 45%, var(--void) 100%);
  border-top: 1px solid var(--line);
}
.contact-mark {
  position: absolute; z-index: -1; right: -6%; top: 50%; width: min(760px, 70vw); translate: 0 -50%;
  opacity: 0.12; filter: saturate(0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.contact-inner { position: relative; }
.contact-email {
  margin-top: clamp(32px, 4vw, 48px);
  font: 400 clamp(1.05rem, 0.6rem + 2.2vw, 2.35rem)/1.3 var(--f-display);
  letter-spacing: 0.02em; color: var(--steel-50); overflow-wrap: anywhere;
}
.contact-email span { user-select: all; -webkit-user-select: all; text-shadow: 0 0 28px rgba(15, 139, 255, 0.35); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.socials a { font: 600 var(--t-sm)/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-300); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.35rem; }
.socials a:hover { color: var(--steel-50); border-color: var(--ice); }

/* ---------- footer ---------- */
.footer { background: var(--void); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-block: 2.75rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.footer-brand img:first-child { height: 30px; width: auto; }
.footer-brand img:last-child { height: 12px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a, .footer-top { font: 500 var(--t-xs)/1 var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-500); text-decoration: none; padding-block: 0.6rem; }
.footer-links a:hover, .footer-top:hover { color: var(--steel-50); }
.footer-side { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.footer-top { display: inline-flex; align-items: center; gap: 0.5rem; }
.ico-up { rotate: 180deg; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); font: 500 var(--t-xs)/1.5 var(--f-ui); letter-spacing: 0.04em; color: var(--steel-700); }
.footer-base p:first-child { color: var(--steel-500); }
.footer-legal { max-width: 70ch; color: var(--steel-500); }
.footer-privacy { color: var(--steel-500); text-underline-offset: 3px; }
.footer-privacy:hover { color: var(--steel-50); }
@media (max-width: 760px) { .footer-side { margin-left: 0; width: 100%; justify-content: space-between; } }

/* ---------- dossier (game file) ---------- */
.dossier {
  --accent: var(--ice);
  width: min(1180px, calc(100vw - 32px)); max-width: none;
  height: calc(100svh - 32px); max-height: none;
  margin: auto; padding: 0;
  border: 1px solid var(--line-strong); background: var(--deep); color: var(--steel-300);
  overflow: hidden; overscroll-behavior: contain;
}
.dossier[open] { display: flex; flex-direction: column; animation: dossier-in 0.35s cubic-bezier(.2, .8, .2, 1); }
.dossier::backdrop { background: rgba(2, 3, 6, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes dossier-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.ds-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--steel-700) transparent; }
.ds-close {
  position: absolute; z-index: 5; right: 16px; top: 16px;
  display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(8px); color: var(--steel-50);
}
.ds-close:hover { border-color: var(--accent); }
.ds-hero { position: relative; aspect-ratio: 21 / 9; min-height: 300px; display: flex; align-items: flex-end; }
#dossier-title:focus { outline: none; }
.ds-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ds-hero > img.is-pixel { image-rendering: pixelated; }
.ds-hero { isolation: isolate; }
.ds-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--deep) 0%, rgba(5, 7, 11, 0.55) 45%, rgba(5, 7, 11, 0.1) 100%), linear-gradient(90deg, rgba(5, 7, 11, 0.7), transparent 60%); }
.ds-hero-inner { padding: 2rem clamp(20px, 4vw, 56px) 1.5rem; width: 100%; }
.ds-hero-inner .bay-tagline { margin-top: 1rem; }
.ds-hero-inner .status { margin-top: 1.25rem; }
.ds-body { padding: 1rem clamp(20px, 4vw, 56px) 3rem; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.ds-section h3 {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem;
  font: 600 var(--t-xs)/1.3 var(--f-ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.ds-section h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ds-about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ds-pitch { color: var(--steel-100); font-size: 1.125rem; }
.ds-lore { color: var(--steel-500); padding-left: 1.25rem; border-left: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.ds-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.ds-features li { padding: 1.4rem 1.5rem 1.5rem; background: var(--deep); min-width: 0; }
.ds-features h4 { font: 600 var(--t-base)/1.3 var(--f-ui); letter-spacing: 0.04em; color: var(--steel-50); }
.ds-features h4::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 0.7rem; vertical-align: 0.15em; background: var(--accent); rotate: 45deg; }
.ds-features p { margin-top: 0.55rem; color: var(--steel-500); font-size: 0.98rem; }
.ds-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.ds-gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.ds-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); transition: border-color 0.2s, filter 0.2s; filter: saturate(0.9); }
.ds-gallery img.is-pixel { image-rendering: pixelated; }
.ds-gallery button:hover img { border-color: var(--accent); filter: none; }
.ds-loops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.ds-loops figure { margin: 0; }
.ds-loops video { width: 100%; aspect-ratio: 64 / 27; object-fit: cover; border: 1px solid var(--line); background: #000; image-rendering: pixelated; }
.ds-loops figcaption { margin-top: 0.5rem; font: 500 var(--t-xs)/1.3 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-500); }
.ds-roster { display: flex; flex-direction: column; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.ds-roster figure { margin: 0; padding: 1.5rem 1rem 1rem; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--void); }
.ds-roster img { image-rendering: pixelated; margin-inline: auto; height: auto; max-width: 100%; }
.ds-roster figcaption { margin-top: 1rem; font: 500 var(--t-xs)/1.4 var(--f-ui); letter-spacing: 0.08em; color: var(--steel-500); text-align: center; }
.ds-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(20px, 4vw, 56px) 2.5rem; border-top: 1px solid var(--line); }
.ds-nav { display: flex; gap: 0.6rem; }
.ds-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.ds-trailer { margin: 0; }
.ds-trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; image-rendering: pixelated; }
.ds-cta-soon { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 var(--t-xs)/1.2 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-500); }

@media (max-width: 860px) {
  .ds-about { grid-template-columns: minmax(0, 1fr); }
  .ds-features { grid-template-columns: minmax(0, 1fr); }
  .ds-loops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dossier { width: 100vw; height: 100svh; height: 100dvh; border: 0; }
  .ds-hero { aspect-ratio: auto; min-height: 380px; }
  .ds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .ds-gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .ds-loops { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(2, 3, 6, 0.96); color: var(--steel-300); overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(2, 3, 6, 0.9); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: calc(100vw - 32px); }
.lb-img { max-width: min(1600px, calc(100vw - 140px)); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border: 1px solid var(--line); background: #000; }
.lb-img.is-pixel { image-rendering: pixelated; }
.lb-cap { display: flex; gap: 1.25rem; align-items: baseline; font: 500 var(--t-sm)/1.4 var(--f-ui); letter-spacing: 0.04em; color: var(--steel-300); text-align: center; padding-inline: 16px; }
.lb-count { color: var(--steel-500); font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: rgba(5, 7, 11, 0.7); color: var(--steel-50); cursor: pointer; }
.lb-btn:hover { border-color: var(--ice); }
.lb-close { right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lb-img { max-width: calc(100vw - 32px); }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: none; }
  .lb-figure { margin-bottom: 70px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  translate: -50% 16px; opacity: 0; pointer-events: none;
  padding: 0.8rem 1.2rem; border: 1px solid var(--ice); background: rgba(5, 7, 11, 0.92); color: var(--steel-50);
  font: 600 var(--t-xs)/1.3 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.25s, translate 0.25s; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast { width: max-content; }
.toast-detail { text-transform: none; letter-spacing: 0.04em; }

/* ---------- reveal (content is visible at rest; only a short lift plays) ---------- */
.reveal { transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-pending { transform: translateY(22px); }

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

/* ---------- QA fixes: layout at in-between sizes ---------- */
.i18n-wait [data-i18n] { visibility: hidden; }
.lightbox { touch-action: pan-y pinch-zoom; overscroll-behavior: contain; height: 100svh; height: 100dvh; }
.reel-btn span { color: var(--steel-300); }
.roster-chip:focus-visible { outline-offset: -2px; }

/* motion switch, bottom-right of the hero */
.hero-roster { padding-right: calc(var(--gutter) + 52px); }
.hero-roster:empty { min-height: 75px; }
.motion-btn {
  position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(5, 7, 11, 0.6); color: var(--steel-300);
}
.motion-btn:hover { border-color: var(--ice); color: var(--steel-50); }
.motion-btn[aria-pressed='true'] { border-color: var(--ice); color: var(--ice-core); }

/* the user's pause-motion switch stops every looping animation */
.motion-off .logo-live, .motion-off .logo-live *, .motion-off .status::after { animation: none !important; }
.motion-off .reveal.is-pending { transform: none; }

/* one-column bay layout over bright art (small tablets, landscape phones) needs a heavier scrim */
@media (min-width: 761px) and (max-width: 1140px) {
  .bay-scrim {
    background:
      radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
      linear-gradient(90deg, rgba(2, 3, 6, 0.94) 0%, rgba(2, 3, 6, 0.88) 55%, rgba(2, 3, 6, 0.55) 80%, rgba(2, 3, 6, 0.3) 100%),
      linear-gradient(0deg, rgba(2, 3, 6, 0.92) 0%, rgba(2, 3, 6, 0) 50%);
  }
  .ds-hero::after {
    background:
      linear-gradient(0deg, var(--deep) 0%, rgba(5, 7, 11, 0.6) 45%, rgba(5, 7, 11, 0.15) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.85), rgba(5, 7, 11, 0.45) 55%, transparent 80%);
  }
}
/* portrait tablets: intro controls move to the bottom so they never cover the logo */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .intro-ctrl { position: fixed; z-index: 40; top: auto; right: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(50%); }
}
@media (max-width: 760px) {
  .ds-hero { aspect-ratio: auto; min-height: 340px; }
  /* thumbnails sit right under the image they switch */
  .bay-inner { display: flex; flex-direction: column; margin-top: 0; padding-top: 12px; }
  .bay-reel { order: -1; margin-bottom: 1.75rem; }
  .bay-meta { flex-direction: column; gap: 0.35rem; }
  .bay-meta span + span::before { content: none; }
}
@media (max-width: 420px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; padding-inline: 1rem; letter-spacing: 0.1em; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .lb-img { max-height: calc(100svh - 64px); max-width: calc(100vw - 144px); }
  .lb-figure { gap: 0.4rem; }
}
@media (pointer: coarse) {
  .lang-switch button { min-width: 44px; min-height: 44px; }
  .footer-links { gap: 0 1.5rem; }
  .footer-links a, .footer-top { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .btn-sm, .chip-btn, .motion-btn { min-height: 44px; }
  .motion-btn { width: 44px; height: 44px; }
}

/* ---------- QA fixes, round 3 ---------- */
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* short laptop screens: tighten the hero so the game strip still fits */
@media (min-width: 761px) and (max-height: 700px) {
  .hero-title { font-size: min(var(--t-hero), 7svh); }
  .hero-lede { margin-top: 0.75rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-content { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2svh + var(--stage-w) * 0.3121 + 12px); padding-bottom: 16px; }
}

/* the bar's empty area lets taps through to the page; only the chips catch them */
.intro-ctrl { pointer-events: none; }
.intro-ctrl .chip-btn { pointer-events: auto; }
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .intro-ctrl {
    left: 0; right: 0; bottom: 0; transform: none; justify-content: center;
    padding: 28px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(rgba(2, 3, 6, 0), rgba(2, 3, 6, 0.97) 35%);
  }
}
/* landscape phones: the bottom bar would sit on the heading, so keep the chips top-right */
@media (max-width: 760px) and (orientation: landscape) {
  .intro-ctrl {
    position: absolute; z-index: 30; left: auto; right: var(--gutter); bottom: auto;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
    padding: 0; background: none; justify-content: flex-start;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  html:has(#intro-ctrl:not([hidden]):not(.is-away)) { scroll-padding-bottom: 100px; }
  .hero-roster:empty { min-height: 196px; }
}

/* phones: darker dossier hero behind the genre line */
@media (max-width: 760px) {
  .ds-hero::after {
    background:
      linear-gradient(0deg, var(--deep) 0%, rgba(5, 7, 11, 0.6) 45%, rgba(5, 7, 11, 0.72) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.5), transparent 80%);
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .lb-figure { margin-bottom: 0; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
}

/* bays: thumbnails come first in the markup (reading order) but sit in the right column on wide screens */
@media (min-width: 961px) {
  .bay-reel { grid-column: 2; grid-row: 1; }
  .bay-copy { grid-column: 1; grid-row: 1; }
}
.bay.is-off .status::after { animation-play-state: paused; }

/* dossier clips: one switch to pause them, next to the section title */
.ds-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.ds-section-head h3 { flex: 1; margin-bottom: 0; }
.ds-loops:has(> li:only-child) { grid-template-columns: minmax(0, 760px); }

/* galleries: a 6-track grid so a short last row is filled by wider tiles */
.ds-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ds-gallery li { grid-column: span 2; }
.ds-gallery li:last-child:nth-child(3n + 2), .ds-gallery li:nth-last-child(2):nth-child(3n + 1) { grid-column: span 3; }
.ds-gallery li:last-child:nth-child(3n + 1) { grid-column: span 6; }
.ds-gallery li:last-child:nth-child(3n + 1) img { aspect-ratio: 21 / 9; }
@media (max-width: 600px) {
  .ds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-gallery li, .ds-gallery li:last-child:nth-child(3n + 2), .ds-gallery li:nth-last-child(2):nth-child(3n + 1), .ds-gallery li:last-child:nth-child(3n + 1) { grid-column: span 1; }
  .ds-gallery li:last-child:nth-child(3n + 1) img { aspect-ratio: 16 / 9; }
  .ds-gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
