/* GameDojo project page - one dark palette, one type family (Space Grotesk); mono only for figures */
:root {
  --ink-900: #07080d;
  --ink-800: #0d0f17;
  --ink-700: #161925;
  --ink-600: #232737;
  --gold-300: #ffd98a;
  --gold-500: #e7b14c;
  --gold-700: #b8862b;
  --teal-400: #3fd9c6;
  --teal-700: #1b7fa3;
  --ember-500: #ff7847;
  /* the light "paper" sections are gone: every surface is dark */
  --paper: var(--ink-800);
  --paper-2: var(--ink-700);
  --ink: #eef0f6;
  --muted: rgba(238, 240, 246, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1400px;
  --wrap-wide: 1400px;
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ink-900);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; }
sup { font-size: 0.6em; line-height: 0; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 5px; border-radius: 4px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3); font: 500 11px/1.5 var(--mono); color: rgba(255, 255, 255, 0.8);
}

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 48px, var(--wrap-wide)); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow--light { color: var(--gold-500); }
.h2 {
  margin: 0 0 12px;
  font: 700 clamp(24px, 2.7vw, 36px)/1.15 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: #fff; }
.h3 { margin: 64px 0 10px; font: 700 clamp(18px, 2.2vw, 24px)/1.2 var(--display); letter-spacing: -0.01em; }
.h3--light { color: #fff; }
.lede { margin: 0 0 30px; font-size: 17px; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h); padding: 0 24px;
  color: #fff;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.is-solid { background: rgba(10, 12, 20, 0.84); backdrop-filter: blur(12px); }
.nav__brand { font: 700 18px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.nav__game { color: var(--gold-500); }
.nav__dojo { color: var(--teal-400); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a, .nav__paper {
  font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; opacity: 0.85;
}
.nav__links a:hover, .nav__paper:hover { opacity: 1; color: var(--gold-300); }
.nav__paper { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid rgba(231, 177, 76, 0.6); border-radius: 999px; }
.sound-toggle, .opening__skip {
  min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(10, 12, 20, 0.85);
  color: #eef0f6; font: 500 12px/1 var(--mono); white-space: nowrap;
}
.sound-toggle:hover, .opening__skip:hover { border-color: var(--gold-300); color: var(--gold-300); }
.sound-toggle.is-enabled { border-color: var(--gold-500); color: var(--gold-300); }
/* scroll progress drawn as a boss health bar that drains as you read */
.nav__hp { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(231, 177, 76, 0.16); opacity: 0; transition: opacity 0.3s; }
.nav.is-solid .nav__hp { opacity: 1; }
.nav__hp i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember-500), var(--gold-500)); transform-origin: 0 50%; }

/* ---------- music control ---------- */
.music-disc {
  position: fixed; z-index: 60;
  right: max(16px, calc(env(safe-area-inset-right) + 8px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  display: grid; place-items: center; width: 58px; height: 58px; padding: 4px;
  border: 1px solid rgba(233, 238, 249, 0.35); border-radius: 50%; cursor: pointer;
  background: rgba(10, 12, 20, 0.88); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #f9f3e5;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.music-disc[hidden] { display: none; }
.opening-on .music-disc { visibility: hidden; }
.music-disc:hover { border-color: var(--gold-300); transform: translateY(-2px); }
.music-disc:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; }
.music-disc.is-playing { border-color: var(--gold-500); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 15px rgba(255, 194, 105, 0.16); }
.music-disc__face {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, #0d111a 0 25%, rgba(242, 239, 231, 0.65) 26% 28%, transparent 29% 68%, rgba(242, 239, 231, 0.68) 69% 71%, transparent 72%),
    repeating-radial-gradient(circle, transparent 0 2px, rgba(240, 245, 252, 0.18) 2.5px 3px, transparent 3.5px 4px),
    conic-gradient(from 22deg, #313544, #a1845c 38deg, #f0d7a0 58deg, #343949 83deg, #24585f 157deg, #83d7cb 187deg, #cad9ee 202deg, #3e4356 222deg, #615083 290deg, #313544);
  animation: music-disc-spin 7s linear infinite paused;
}
.music-disc.is-playing .music-disc__face { animation-play-state: running; }
@keyframes music-disc-spin { to { transform: rotate(1turn); } }
.music-disc__symbol { position: absolute; display: grid; place-items: center; inset: 0; }
.music-disc__symbol::before {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-block: 5px solid transparent; border-left: 8px solid currentColor;
}
.music-disc.is-playing .music-disc__symbol::before {
  width: 9px; height: 10px; margin-left: 0;
  border: 0; border-inline: 3px solid currentColor;
}
.music-disc__label {
  position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%);
  padding: 5px 9px; border-radius: 6px; background: #141824;
  font: 500 14px / 1.2 var(--body); white-space: nowrap; opacity: 0; pointer-events: none;
}
.music-disc:focus-visible .music-disc__label { opacity: 1; }
@media (hover: hover) { .music-disc:hover .music-disc__label { opacity: 1; } }
html.still .music-disc__face { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .music-disc__face { animation: none; }
  .music-disc { transition: none; }
  .music-disc:hover { transform: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 76px 0 0;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(231, 177, 76, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 62%, rgba(63, 217, 198, 0.08), transparent 70%),
    linear-gradient(180deg, #06070c 0%, var(--ink-900) 45%, #141729 100%);
  color: #fff;
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero__glow {
  position: absolute; left: 50%; bottom: 14%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(231, 177, 76, 0.18), rgba(231, 177, 76, 0.05) 40%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.6; transform: translateX(-50%) scale(1.08); } }

.hero__title { position: relative; z-index: 4; text-align: center; padding: 0 24px; will-change: transform; transition: opacity 0.4s; }
.hero.is-entering .hero__title, .hero.is-entering .hud, .hero.is-entering .arena__hint { opacity: 0; }
.title {
  margin: 0;
  font: 700 clamp(52px, min(10vw, 17vh), 160px)/0.95 var(--display);
  letter-spacing: -0.035em;
}
.title__type { display: inline-block; filter: drop-shadow(0 0 46px rgba(231, 177, 76, 0.3)); }
.title__game {
  background: linear-gradient(180deg, #fff1c9 0%, var(--gold-500) 55%, #c98d2f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title__dojo {
  background: linear-gradient(180deg, #d9fff9 0%, var(--teal-400) 55%, #1aa392 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title__logo {
  position: relative; display: block; width: min(62vw, 880px, 62vh); margin: -6px auto -4px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.title__logo img { width: 100%; height: auto; }
/* each character is re-drawn on top of the spot it already occupies and sways around its own bottom edge,
   so the letters underneath never show through */
.title__layer { position: absolute; transform-origin: 50% 100%; will-change: transform; pointer-events: none; }
.title__layer img { width: 100%; height: auto; }
.title__logo[hidden], .title__type[hidden] { display: none; }
.subtitle {
  margin: 10px auto 10px;
  font: 600 clamp(16px, 1.9vw, 26px)/1.25 var(--body);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
/* authors and affiliations, each squeezed onto one line under the title */
.byline { margin: 0 auto 18px; display: grid; gap: 3px; font: 500 13px/1.45 var(--body); color: rgba(255, 255, 255, 0.72); }
.byline__names, .byline__affils, .byline__notes { display: block; }
.byline__affils { font-size: 12px; color: rgba(255, 255, 255, 0.48); }
.byline__notes { font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.byline sup { font-size: 0.7em; color: var(--gold-300); }
@media (max-width: 900px) { .subtitle { white-space: normal; } }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; text-decoration: none; background: rgba(10, 12, 20, 0.45);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.links .btn { display: inline-flex; align-items: center; }
.btn__icon { display: block; flex: none; width: 18px; height: 18px; margin-right: 7px; }
.arxiv-icon {
  background-color: currentColor;
  -webkit-mask: url("../icons/arxiv.svg") center / contain no-repeat;
  mask: url("../icons/arxiv.svg") center / contain no-repeat;
}
.btn:hover { border-color: var(--gold-300); background: rgba(231, 177, 76, 0.16); transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.7; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn__status { margin-left: 4px; font-size: 9px; letter-spacing: 0.04em; opacity: 0.75; }

/* the living Figure 1 */
.arena { position: relative; z-index: 2; width: min(100%, 1720px, 145vh); margin-top: max(-1.6vw, -28px); }
.arena__pan { width: 100%; }
.arena__zoom { width: 100%; transition: transform 0.5s cubic-bezier(0.5, 0, 0.2, 1); }
.arena__zoom.is-zoom { transform: scale(2.1); transition-duration: 0.42s; transition-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
.arena__stage { position: relative; width: 100%; aspect-ratio: 2172 / 724; will-change: transform; }
.arena__img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.arena__videos, .arena__halos, .arena__labels, .arena__beam { position: absolute; inset: 0; }
.arena__halos, .arena__labels, .arena__beam { pointer-events: none; }
.arena__videos {
  -webkit-mask: url(../img/portal-mask.webp) 0 0 / 100% 100% no-repeat;
  mask: url(../img/portal-mask.webp) 0 0 / 100% 100% no-repeat;
}
.arena__beam { width: 100%; height: 100%; overflow: visible; }

.portal {
  position: absolute; padding: 0; border: 0; margin: 0; background: transparent; cursor: pointer;
  outline: none;                       /* the lit frame, label and beam are the focus indicator */
}
.portal video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.portal.is-on.is-ready video { opacity: 1; }
.debug-portals .portal { background: rgba(63, 217, 198, 0.55); }

.halo {
  position: absolute; border-radius: 50%; opacity: 0; transition: opacity 0.45s ease;
  background: radial-gradient(closest-side, rgba(255, 226, 160, 0) 52%, rgba(255, 214, 130, 0.55) 78%, rgba(231, 177, 76, 0.22) 90%, transparent 100%);
  mix-blend-mode: screen;
}
.halo.is-on { opacity: 1; }
.halo.is-user { opacity: 1; animation: halo 2.2s ease-in-out infinite; }
.halo.is-flash { animation: flash 0.75s ease-out both; }
@keyframes halo { 50% { opacity: 0.72; } }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

#beamPath {
  fill: none; stroke: url(#beamGrad); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 5px rgba(63, 217, 198, 0.9));
}
#beamPath.is-on { opacity: 0.95; stroke-dashoffset: 0; transition: stroke-dashoffset 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.15s; }
#beamSpark { fill: #eafffb; opacity: 0; filter: drop-shadow(0 0 8px rgba(63, 217, 198, 1)); }
#beamSpark.is-on { opacity: 1; transition: opacity 0.2s 0.34s; animation: spark 1.4s ease-in-out 0.5s infinite; }
@keyframes spark { 50% { opacity: 0.45; } }

.plabel {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  padding: 7px 11px 6px; border-radius: 6px;
  background: rgba(10, 12, 20, 0.9); border: 1px solid rgba(231, 177, 76, 0.55);
  font: 400 11px/1.35 var(--mono); color: rgba(255, 255, 255, 0.74); letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s; z-index: 3;
}
.plabel b { display: block; font: 600 13px/1.3 var(--body); color: var(--gold-300); letter-spacing: 0.01em; }
.plabel.is-on { opacity: 1; }
.arena__labels { z-index: 1; }      /* below .hero__title (z-index 4) */
.plabel[data-edge="l"] { transform: translate(-22%, calc(-100% - 12px)); }
.plabel[data-edge="r"] { transform: translate(-78%, calc(-100% - 12px)); }

.arena__hint {
  margin: 4px 0 0; text-align: center; font: 400 12px/1.7 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); transition: opacity 0.4s;
}
.arena__toggle {
  margin-left: 14px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.26); background: transparent;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: rgba(255, 255, 255, 0.7);
}
.arena__toggle:hover { border-color: var(--gold-300); color: var(--gold-300); }
.hint--coarse { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint--fine { display: none; }
  .hint--coarse { display: inline; }
}

.hud {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 48px;
  width: 100%; margin: 10px 0 0; padding: 18px 24px 22px; list-style: none;
  border-top: 1px solid rgba(231, 177, 76, 0.28);
  background: linear-gradient(180deg, rgba(20, 23, 41, 0) 0%, rgba(20, 23, 41, 0.9) 100%);
  transition: opacity 0.4s;
}
.hud li { display: flex; align-items: baseline; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.hud b { font: 700 26px/1 var(--display); color: var(--gold-300); letter-spacing: -0.02em; }

/* page-load sequence (only while <html class="intro">) */
.intro .hero__title > * { opacity: 0; transform: translateY(14px); }
.intro .arena__stage { opacity: 0; transform: translateY(26px) scale(0.985); }
.intro .hud, .intro .arena__hint { opacity: 0; }
.hero__title > * { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero__title > *:nth-child(2) { transition-delay: 0.08s; }
.hero__title > *:nth-child(3) { transition-delay: 0.2s; }
.hero__title > *:nth-child(4) { transition-delay: 0.3s; }
.arena__stage { transition: opacity 0.9s ease 0.1s; }

/* ---------- authors ---------- */
.authors { background: var(--paper-2); padding: 44px 24px 36px; text-align: center; scroll-margin-top: var(--nav-h); }
.authors__names { margin: 0 auto 10px; max-width: 900px; font-size: 16px; font-weight: 500; color: var(--ink); }
.authors__affils { margin: 0 auto 26px; max-width: 900px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.authors__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 38px; }
.authors__logos img { height: 46px; width: auto; max-width: 210px; object-fit: contain; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding-top: 24px; }
.section--paper { background: var(--ink-800); color: var(--ink); }
.section--arena { background: var(--ink-900); color: #fff; }
/* section labels above headings were removed from the page; keep any stray one invisible */
.eyebrow { display: none; }
.fight__body .eyebrow { display: block; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.facts { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__k { font: 600 13px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.facts__v { color: var(--ink); max-width: 70ch; }

.figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 40px -24px rgba(18, 21, 31, 0.35); }
.figure img { width: 100%; height: auto; border-radius: 6px; }
.figure figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.figure figcaption b { color: var(--ink); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ---------- boss wall ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 24px; }
.filters__gap { width: 1px; margin: 4px 6px; background: rgba(255, 255, 255, 0.18); }
.chip {
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent;
  font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--gold-300); color: #fff; }
.chip.is-on { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); }
.wall__count { margin: 0 0 18px; font: 400 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.wall__note { margin: 0 0 22px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.wall { display: grid; gap: 12px; }
/* cover cell | 6 bosses; the cover sits in its own gold frame so it reads as the game, not a seventh boss */
.game-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(6, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.game-row[hidden] { display: none; }
.game-cover { position: relative; display: block; overflow: hidden; border-radius: 10px; margin-right: 8px;
  outline: 2px solid rgba(231, 177, 76, 0.55); outline-offset: 3px; background: var(--ink-700); color: #fff; text-decoration: none; }
.game-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center var(--cover-focus, 50%); transition: filter 0.3s ease, transform 0.4s ease; }
.game-row[data-game="minecraft"] { --cover-focus: top; }
.game-row[data-game="battle-city"] { --cover-focus: 72%; }
.game-cover__over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px; text-align: center; background: rgba(7, 8, 13, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.game-cover__over b { font: 700 clamp(13px, 1.15vw, 17px)/1.15 var(--display); letter-spacing: -0.01em; }
.game-cover__over span { font: 500 11px/1.3 var(--body); color: rgba(255, 255, 255, 0.72); }
.game-cover__play { margin-top: 6px; padding: 5px 12px; border-radius: 999px; font: 700 12px/1 var(--body); font-style: normal;
  background: var(--teal-400); color: var(--ink-900); }
.game-cover__badge { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 10px; background: var(--teal-400); color: var(--ink-900); transition: opacity 0.2s; }
.game-cover:hover img, .game-cover:focus-visible img { filter: blur(6px) brightness(0.7); transform: scale(1.06); }
.game-cover:hover .game-cover__over, .game-cover:focus-visible .game-cover__over { opacity: 1; }
.game-cover:hover .game-cover__badge, .game-cover:focus-visible .game-cover__badge { opacity: 0; }
.game-cover.is-playable { cursor: pointer; }
.game-cover.is-playable:hover { outline-color: var(--teal-400); }
.boss, .fightcard, .tri {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px;
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--ink-700); cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.boss img, .boss video, .fightcard img, .fightcard video, .tri img, .tri video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boss video, .fightcard video, .tri video { opacity: 0; transition: opacity 0.4s; }
.is-playing > video { opacity: 1; }
.boss__name {
  position: absolute; inset: auto 0 0 0; padding: 22px 9px 7px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 20, 0.9));
  font: 500 12px/1.25 var(--body); color: #fff; letter-spacing: 0.01em;
}
.boss:hover, .boss:focus-visible, .fightcard:hover, .fightcard:focus-visible { transform: translateY(-2px); border-color: var(--gold-300); box-shadow: 0 10px 30px -10px rgba(231, 177, 76, 0.45); }

/* ---------- charts ---------- */
.chart-card { background: var(--ink-700); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 16px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-card__head h3 { margin: 0; font: 600 15px/1.4 var(--body); color: var(--ink); }
.chart-card__foot { margin: 12px 0 0; display: flex; justify-content: flex-end; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.seg button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 600 12.5px/1 var(--body); color: var(--muted); }
.seg button.is-on { background: var(--teal-400); color: var(--ink-900); box-shadow: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend__swatch { display: inline-block; width: 14px; height: 8px; border-radius: 3px; background: #e7b14c; }
.legend__swatch--real { background: #3fa7d6; }
.legend__swatch--ref { background: transparent; border-top: 2px dashed #8a8f9c; height: 0; }
.chart { position: relative; width: 100%; }
.chart--tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; }
.chart--tiers.is-stacked { grid-template-columns: 1fr; }
.chart__panel { min-width: 0; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--mono); overflow: visible; }
.chart .bar { transform-box: fill-box; transform-origin: 0 50%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chart .val { transition: opacity 0.4s; }
.chart.is-pending .bar { transform: scaleX(0); }
.chart.is-pending .val { opacity: 0; }
.chart .bar-hit { fill: transparent; }
.chart .label { font-size: 12.5px; fill: var(--ink); font-family: var(--body); }
.chart .label--muted { fill: var(--muted); }
.chart .label--ours { font-weight: 700; fill: var(--teal-400); }
.chart .rank { font-size: 10.5px; fill: #9a9ea9; }
.chart .val { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .ref { stroke: #8a8f9c; stroke-dasharray: 3 3; stroke-width: 1.5; }
.chart .ref-label { font-size: 10.5px; fill: #6d7280; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-size: 10.5px; fill: var(--muted); }
.chart .group-title { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: var(--body); }
.tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 8px 10px; border-radius: 6px; background: var(--ink-900); color: #fff;
  font: 400 12px/1.5 var(--mono); white-space: nowrap; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.15s; transform: translate(-50%, calc(-100% - 12px));
}
.tip.is-on { opacity: 1; }
.tip b { color: var(--gold-300); font-weight: 600; }

.disclose { margin-top: 12px; border-top: 1px solid var(--line); }
.disclose summary { padding: 10px 0 4px; cursor: pointer; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.disclose summary:hover { color: var(--ink); }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.ptable { width: 100%; border-collapse: collapse; font: 400 12.5px/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable th, .ptable td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.ptable th { font-weight: 600; color: var(--ink); }
.ptable th:first-child, .ptable td:first-child { text-align: left; font-family: var(--body); font-size: 13px; }
.ptable thead tr:first-child th { text-align: center; border-bottom: 0; padding-bottom: 0; color: var(--muted); font-weight: 500; }
.ptable .grp td { padding-top: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ptable .ours td { background: rgba(231, 177, 76, 0.14); }
.ptable .split { border-left: 1px solid var(--line); }

.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.callout { padding: 20px 22px; border-top: 2px solid var(--gold-500); background: var(--paper-2); border-radius: 0 0 12px 12px; }
.callout__num { margin: 0 0 8px; font: 700 clamp(24px, 2.7vw, 36px)/1 var(--display); color: var(--gold-700); letter-spacing: -0.02em; white-space: nowrap; }
.callout__num .to { display: inline-block; width: 0.62em; height: 0.12em; margin: 0 0.18em 0.28em; background: currentColor; position: relative; opacity: 0.75; }
.callout__num .to::after { content: ""; position: absolute; right: -0.02em; top: 50%; width: 0.3em; height: 0.3em; border-top: 0.12em solid currentColor; border-right: 0.12em solid currentColor; transform: translateY(-50%) rotate(45deg); }
.callout__num .sep { margin: 0 0.16em; opacity: 0.5; }
.callout__txt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- fights ---------- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tri { cursor: default; border-radius: 10px; }
.tri__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap;
  padding: 26px 12px 9px; background: linear-gradient(180deg, transparent, rgba(10, 12, 20, 0.92));
  font: 400 clamp(9.5px, 0.92vw, 11px)/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
.tri__cap b { flex: none; font: 700 clamp(13px, 1.25vw, 15px)/1 var(--display); letter-spacing: 0; text-transform: none; }
.tri[data-tier="e"] b { color: var(--teal-400); }
.tri[data-tier="m"] b { color: var(--gold-300); }
.tri[data-tier="h"] b { color: var(--ember-500); }
.featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fightcard { border-radius: 10px; }
.fightcard__name { position: absolute; left: 10px; bottom: 9px; right: 10px; text-align: left; font: 500 13px/1.3 var(--body); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.fightcard__name small { display: block; font: 400 11px/1.4 var(--mono); color: var(--gold-300); letter-spacing: 0.06em; text-transform: uppercase; }
.fightcard::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(10, 12, 20, 0.75)); pointer-events: none; }
.fightcard__name { z-index: 1; }

/* ---------- play it yourself ---------- */
.section--joined { padding-top: 0; }
.playgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.playcard { min-width: 0; }
.playcard__stage {
  position: relative; aspect-ratio: 854 / 480; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid rgba(231, 177, 76, 0.4); box-shadow: 0 0 70px -34px rgba(231, 177, 76, 0.55);
}
.playcard__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.playcard__gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.playcard__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.playcard__stage iframe[hidden] { display: none; }
.playcard.is-loaded .playcard__poster, .playcard.is-loaded .playcard__gate { display: none; }
.playcard.is-touch .seg, .playcard.is-touch .playcard__full, .playcard.is-touch .playcard__keys { display: none; }
.playcard__bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.playcard__name { margin: 0 auto 0 0; font: 400 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.playcard__name b { display: block; font: 700 18px/1.25 var(--display); letter-spacing: -0.01em; text-transform: none; color: #fff; }
.seg--dark { background: rgba(255, 255, 255, 0.08); }
.seg--dark button { color: rgba(255, 255, 255, 0.72); }
.seg--dark button.is-on { background: var(--gold-500); color: var(--ink-900); box-shadow: none; }
.playcard__full { width: 36px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.playcard__full:hover { border-color: var(--gold-300); color: var(--gold-300); }
.playcard__keys { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.playcard__keys kbd { margin-right: 3px; }
.playcard__score { margin-top: 14px; padding: 14px 16px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.playcard__score[hidden] { display: none; }
.playcard__headline { margin: 0 0 10px; font: 600 15px/1.4 var(--body); color: #fff; }
.scorerow { display: grid; grid-template-columns: 104px 1fr 52px; align-items: center; gap: 10px; padding: 3px 0; font: 400 12px/1.3 var(--mono); color: rgba(255, 255, 255, 0.7); }
.scorerow__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.scorerow__bar i { display: block; height: 100%; border-radius: 999px; background: #8f95a3; }
.scorerow.is-you { color: #fff; font-weight: 600; }
.scorerow.is-you .scorerow__bar i { background: linear-gradient(90deg, #1aa392, var(--teal-400)); }
.scorerow span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.playcard__fine { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.48); }
.boss__tag { position: absolute; top: 7px; left: 7px; padding: 3px 7px; border-radius: 4px; background: var(--gold-500); color: var(--ink-900); font: 600 10px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.fight__play { margin-top: 14px; padding: 11px 14px; border-radius: 8px; border: 0; cursor: pointer; background: var(--gold-500); color: var(--ink-900); font: 600 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.fight__play:hover { background: var(--gold-300); }
.fight__play[hidden] { display: none; }
@media (max-width: 1000px) { .playgrid { grid-template-columns: 1fr; } }

/* ---------- opening sequence ---------- */
.sound-choice {
  width: min(calc(100% - 40px), 440px);
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid rgba(231, 177, 76, 0.38);
  border-radius: 16px;
  background: var(--ink-800);
  color: var(--ink);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.55);
}
.sound-choice::backdrop { background: rgba(7, 8, 13, 0.88); backdrop-filter: blur(6px); }
html:has(.sound-choice[open]) { overflow: hidden; }
.sound-choice h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--display); }
.sound-choice p { margin: 0 0 22px; color: #c3c5cf; font-size: 16px; }
.sound-choice__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; }
.sound-choice__actions button { min-height: 44px; }
.opening { position: fixed; inset: 0; z-index: 200; background: #06070c; }
.opening[data-state="idle"] { display: none; }
.opening video {
  display: block; width: 100%; height: 100%; object-fit: scale-down;
  background: #06070c;
}
.opening[data-state="landing"] {
  background: #fff;
  animation: opening-dissolve var(--opening-landing-duration) ease-in-out both;
}
.opening[data-state="landing"] video {
  opacity: 0;
  transition: opacity 150ms ease-out;
}
.opening[data-state="landing"] .opening__controls { visibility: hidden; }
@keyframes opening-dissolve {
  /* The video clears first, leaving the whole viewport white before the reveal. */
  0%, 32% { opacity: 1; }
  100% { opacity: 0; }
}
.opening__controls {
  position: absolute; right: 22px; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.opening__controls button { min-height: 44px; padding-inline: 16px; }
html.opening-on { overflow: hidden; }
html.opening-on:not(.opening-landing) body > *:not(.opening) { visibility: hidden; }

/* ---------- same fight, three models ---------- */
.vs { margin-top: 26px; }
/* label column | GameDojo-4B | GPT | Claude - the same four columns for every row */
.vs__head, .vs__row { display: grid; grid-template-columns: minmax(150px, 0.55fr) repeat(3, 1fr); gap: 12px 16px; }
.vs__head { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.vs__col { font: 600 14px/1.2 var(--body); color: #fff; display: flex; align-items: center; gap: 8px; }
.model-icon { display: block; width: 18px; height: 18px; flex: none; }
.vs__col em { font: 500 11px/1 var(--body); font-style: normal; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.45); }
.vs__col--a { color: var(--teal-400); }
.vs__col--b { color: #9ec5ff; }
.vs__col--c { color: #f0b48b; }
.vs__rows { display: grid; gap: 14px; }
/* cells align by their top edge, so the three videos line up even when one caption has an extra line */
.vs__row { align-items: start; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.vs__label { align-self: center; }
.vs__row:first-child { border-top: 0; padding-top: 14px; }

.vs__game { font: 500 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.vs__label h3 { margin: 7px 0 7px; font: 700 clamp(16px, 1.45vw, 20px)/1.15 var(--display); color: #fff; }
.vs__cond { font: 500 12px/1 var(--body); color: rgba(255, 255, 255, 0.55); }

.vs__cell { margin: 0; min-width: 0; }
.vs__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1); }
.vs__frame img, .vs__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vs__frame video { opacity: 0; transition: opacity 0.35s; }
.vs__row.is-playing .vs__frame video { opacity: 1; }
.vs__cell.is-win .vs__frame { border-color: rgba(63, 217, 198, 0.55); box-shadow: 0 0 0 1px rgba(63, 217, 198, 0.22), 0 14px 40px -18px rgba(63, 217, 198, 0.55); }
/* a model whose recording is not in yet: a quiet dashed slot, never a fake frame */
.vs__cell.is-empty .vs__frame { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(255, 255, 255, 0.16); }
.vs__slot { font: 500 12px/1.45 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.32); text-align: center; }
.vs__cell figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font: 500 12.5px/1.35 var(--body); color: rgba(255, 255, 255, 0.55); }
.vs__cell figcaption b { font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.vs__cell.is-win figcaption b { color: var(--teal-400); }
.vs__cell.is-empty figcaption b { color: rgba(255, 255, 255, 0.3); }
/* the 4B's eventual result, past the shared 60 s window */
.vs__cell figcaption { flex-wrap: wrap; }
.vs__after { flex-basis: 100%; font: 500 12px/1.3 var(--body); color: var(--teal-400); opacity: 0.85; }
.vs__after::before { content: "→ "; }
.vs__who { display: none; }

@media (max-width: 860px) {
  .vs__head { display: none; }
  .vs__row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .vs__label { grid-column: 1 / -1; }
  .vs__who { display: flex; align-items: center; gap: 4px; font: 600 10px/1.15 var(--body); letter-spacing: 0.04em; color: var(--teal-400); }
  .vs__who .model-icon { width: 13px; height: 13px; }
  .vs__cell--b .vs__who { color: #9ec5ff; }
  .vs__cell--c .vs__who { color: #f0b48b; }
  .vs__cell figcaption { flex-direction: column; gap: 4px; font-size: 11px; }
  .vs__slot { font-size: 9.5px; }
}

/* ---------- citation / footer ---------- */
.bibtex { position: relative; background: var(--ink-800); border-radius: 12px; padding: 20px 22px; color: #e9ebf2; overflow: auto; }
.bibtex pre { margin: 0; font: 400 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.bibtex__copy { position: absolute; top: 12px; right: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(231, 177, 76, 0.6); background: var(--ink-800); color: var(--gold-300); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.bibtex__copy:hover { background: rgba(231, 177, 76, 0.16); }
.release { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.72); padding: 56px 0 60px; font-size: 17px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 36px; justify-items: center; text-align: center; }
.footer__logos {
  --logo-height: clamp(50px, 4.45vw, 66px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px clamp(12px, 1.6vw, 24px);
  width: 100%;
  padding: 18px clamp(12px, 3vw, 32px);
  border-radius: 12px;
  background: #fff;
}
.footer__logos img { flex: 0 0 auto; width: auto; height: var(--logo-height); object-fit: contain; }
@media (max-width: 1140px) {
  .footer__logos { max-width: 790px; }
}
@media (max-width: 640px) {
  .footer__logos { --logo-height: clamp(32px, 10vw, 50px); max-width: 520px; }
}
.footer__legal { max-width: 900px; }
.footer p { margin: 0 0 12px; line-height: 1.65; }
.footer p b { color: #fff; }
.footer__small { font: 500 14px/1.5 var(--body); color: rgba(255, 255, 255, 0.5); }

/* ---------- fight card (dialog) ---------- */
.fight {
  width: min(100% - 28px, 1060px); max-width: none; max-height: calc(100% - 28px);
  padding: 0; border: 0; background: transparent; color: #fff; overflow: visible;
}
.fight::backdrop { background: rgba(6, 7, 12, 0.86); backdrop-filter: blur(6px); }
.fight[open] { animation: fight-in 0.3s ease both; }
.fight[open]::backdrop { animation: fade-in 0.3s ease both; }
@keyframes fight-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes fade-in { from { opacity: 0; } }
.fight__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  background: var(--ink-800); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(231, 177, 76, 0.38); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 60px -20px rgba(231, 177, 76, 0.35);
}
.fight__media { position: relative; background: #000; aspect-ratio: 16 / 9; align-self: center; }
.fight__media video { width: 100%; height: 100%; object-fit: contain; }
.fight__body { display: flex; flex-direction: column; padding: 24px 24px 18px; min-width: 0; }
.fight__body .eyebrow { margin-right: 34px; letter-spacing: 0.1em; font-size: 11px; }
.fight__body h3 { margin: 0 0 18px; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -0.01em; }
.fight__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.fight__close:hover { background: rgba(255, 255, 255, 0.18); }
.tiers { display: grid; gap: 8px; }
.tier {
  display: grid; grid-template-columns: 62px 1fr 50px; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; cursor: pointer; text-align: left;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s, background 0.2s;
}
.tier:hover { border-color: rgba(255, 217, 138, 0.6); }
.tier.is-on { border-color: var(--gold-500); background: rgba(231, 177, 76, 0.12); color: #fff; }
.tier__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.tier__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-700), var(--gold-300)); }
.tier[data-tier="e"] .tier__bar i { background: linear-gradient(90deg, #1aa392, var(--teal-400)); }
.tier[data-tier="h"] .tier__bar i { background: linear-gradient(90deg, #b8441f, var(--ember-500)); }
.tier__sec { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.fight__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.fight__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.fight__nav button { width: 38px; height: 32px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; cursor: pointer; font-size: 16px; }
.fight__nav button:hover { border-color: var(--gold-300); color: var(--gold-300); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Motion is part of the showcase, so it is not tied to the OS reduce-motion setting; html.still (from ?still)
   turns it off on request. */
html.still { scroll-behavior: auto; }
html.still .reveal { opacity: 1; transform: none; transition: none; }
html.still .hero__glow, html.still .halo.is-user, html.still #beamSpark.is-on { animation: none; }
html.still .portal video, html.still .boss video, html.still .arena__zoom, html.still .chart .bar, html.still .chart .val,
html.still #beamPath.is-on, html.still .hero__title > *, html.still .arena__stage { transition: none; }
html.still .fight[open], html.still .fight[open]::backdrop { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .game-row { grid-template-columns: 1fr 1fr 1fr; }
  /* narrow: the cover becomes a banner across the row, with its name always visible */
  .game-cover { grid-column: 1 / -1; aspect-ratio: 460 / 120; margin: 10px 0 4px; }
  .game-row[data-game="battle-city"] { --cover-focus: 53%; }
  .game-row[data-game="super-mario-64"] { --cover-focus: 26%; }
  .game-row[data-game="genshin"] { --cover-focus: 72%; }
  .game-row[data-game="doom"] { --cover-focus: top; }
  .game-row[data-game="kirby"] { --cover-focus: 23%; }
  .game-cover__over { opacity: 1; background: linear-gradient(90deg, rgba(7, 8, 13, 0.85), rgba(7, 8, 13, 0.1)); align-items: flex-start; padding-left: 14px; }
  .game-cover__badge { display: none; }
  .featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__paper { margin-left: auto; }
  .duo { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; }
  .triptych { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 72px 0; }
  .fight { max-height: calc(100% - 20px); overflow-y: auto; }
  .fight__card { grid-template-columns: 1fr; }
  .footer__inner { gap: 18px; }
}
@media (max-width: 760px) {
  /* the arena becomes a panorama you drag sideways */
  .hero { min-height: auto; justify-content: flex-start; padding-top: 96px; }
  .hero__glow { bottom: 30%; }
  .arena { width: 100%; margin-top: 10px; }
  .arena__pan { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .arena__pan::-webkit-scrollbar { display: none; }
  .arena__zoom { width: max(100%, min(235vw, 190vh)); }
  .hud { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 10px; padding: 16px 18px 20px; }
  .hud li { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 10px; letter-spacing: 0.08em; }
  .hud b { font-size: 20px; }
  .plabel { font-size: 10px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 10px; padding-inline: 12px; }
  .music-disc { width: 52px; height: 52px; }
  .game-row { grid-template-columns: 1fr 1fr; }
  .chart-card { padding: 18px 14px 12px; }
  .wrap, .wrap--wide { width: min(100% - 32px, var(--wrap-wide)); }
}
