/* ==========================================================================
   KOF '98 — The SNESFest · fan port site
   ========================================================================== */

:root {
  --bg: #08090e;
  --bg-deep: #05060a;
  --bg-soft: #0b0d14;
  --panel: #10121b;
  --panel-2: #151824;
  --ink: #f5f1e6;
  --muted: #a9adbc;
  --muted-2: #7d8294;
  --line: rgba(245, 241, 230, 0.12);
  --line-strong: rgba(245, 241, 230, 0.22);
  --gold: #ffc247;
  --gold-deep: #e5a01c;
  --red: #e63946;
  --red-deep: #a81322;
  --blue: #4b7bec;
  --purple: #8a6cff;
  --green: #38d67c;
  --cyan: #35d3d0;
  --wrap: 1180px;
  --radius: 8px;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 82% 4%, rgba(230, 57, 70, 0.1), transparent 65%),
    radial-gradient(900px 620px at 8% 45%, rgba(75, 123, 236, 0.09), transparent 65%),
    var(--bg);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
code, kbd, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
::selection { background: var(--gold); color: #0a0a0a; }
body.has-lightbox { overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  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;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #08090e;
  font-weight: 800;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.pixel-font { font-family: var(--font-pixel); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg { flex: none; }

.btn-gold {
  --btn-bg: var(--gold);
  --btn-ink: #0a0a0a;
  border-color: #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}
.btn-gold:hover {
  --btn-bg: #ffd06a;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65);
}
.btn-gold:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.65);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(255, 194, 71, 0.07);
}

.btn-dark {
  --btn-bg: #0a0a0c;
  --btn-ink: var(--ink);
  border-color: #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}
.btn-dark:hover {
  --btn-bg: #1a1a20;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
}

.btn-sm { padding: 0.62rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.text-link:hover { border-color: var(--gold); gap: 0.7rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(160deg, #ffd35e, var(--gold) 45%, var(--gold-deep));
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--red-deep);
  transform: skewX(-6deg);
}
.brand-mark::after { content: ""; position: absolute; }

.brand-text { display: flex; flex-direction: column; gap: 0.25rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.brand-dot { color: var(--gold); }
.brand-sub {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #0a0a0a;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-glow-red {
  width: 620px; height: 620px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.55), transparent 68%);
}
.hero-glow-blue {
  width: 560px; height: 560px;
  bottom: -260px; left: -180px;
  background: radial-gradient(circle, rgba(75, 123, 236, 0.45), transparent 68%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 241, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 230, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}

.pixel {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold);
  opacity: 0.7;
  animation: blink 3.2s steps(2, end) infinite;
}
.pixel-1 { top: 22%; left: 4%; }
.pixel-2 { top: 68%; left: 46%; animation-delay: 0.8s; background: var(--red); }
.pixel-3 { top: 14%; right: 7%; animation-delay: 1.6s; }
.pixel-4 { bottom: 18%; right: 12%; animation-delay: 2.3s; background: var(--blue); }

@keyframes blink {
  0%, 55% { opacity: 0.75; }
  56%, 100% { opacity: 0.1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.8;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow-dark { color: #3a2600; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6);
  animation: pulse 2s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.hero-title {
  margin: 1.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.84;
}
.hero-title-top {
  display: block;
  font-size: clamp(1.55rem, 3.7vw, 2.9rem);
  letter-spacing: 0.14em;
  color: #ded9cd;
  margin-left: 0.2rem;
}
.hero-title-main {
  display: block;
  font-size: clamp(4.2rem, 9.4vw, 7.6rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0.1rem;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero-year {
  display: inline-block;
  font-style: normal;
  background: linear-gradient(165deg, #ffefb5 2%, #ffd35e 34%, #ffb420 68%, #ef9d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(138, 19, 34, 0.55));
  transform: skewX(-6deg);
  margin-left: 0.05em;
}

.hero-subtitle {
  margin-top: 0.9rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 1.3vw, 0.8rem);
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-lede {
  max-width: 54ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; align-items: baseline; gap: 0.4rem; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.hero-facts span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

/* Hero art */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  perspective: 1000px;
}

.cart-halo {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(230, 57, 70, 0.34) 0%, rgba(230, 57, 70, 0.08) 45%, transparent 70%);
  filter: blur(24px);
}
.cart-halo::before,
.cart-halo::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 194, 71, 0.22);
  border-radius: 50%;
}
.cart-halo::after { inset: 30%; border-style: solid; border-color: rgba(255, 194, 71, 0.12); }

.cart-img {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  height: auto;
  transform: rotate(-3.5deg);
  filter: drop-shadow(0 38px 34px rgba(0, 0, 0, 0.65));
  animation: cart-float 7s ease-in-out infinite;
}
@keyframes cart-float {
  0%, 100% { transform: rotate(-3.5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}

.cart-base {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 68%);
  filter: blur(6px);
  z-index: 1;
}

.cart-sticker {
  position: absolute;
  z-index: 3;
  top: 3%;
  right: -2%;
  transform: rotate(6deg);
  padding: 0.55rem 0.75rem;
  background: var(--red);
  color: #fff;
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
}

.cart-caption {
  position: absolute;
  z-index: 3;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cart-caption .pixel-font { font-size: 0.5rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, #ffd66f 70%, var(--gold));
  color: #0a0a0a;
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  flex: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-right: 1.2rem;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stat-band {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 1.6rem 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 1.5rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.stat strong small { font-size: 0.45em; color: var(--muted-2); }
.stat span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(4rem, 7.5vw, 7rem) 0;
  scroll-margin-top: 84px;
}
.section-alt {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.section-title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 1.1rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose {
  margin-top: 1.15rem;
  color: #bcc0cd;
  font-size: 1.02rem;
  line-height: 1.8;
}
.prose strong { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.quote {
  margin-top: 2rem;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 3px solid var(--red);
}
.quote p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.about-poster {
  position: sticky;
  top: 104px;
}
.poster-frame {
  padding: 10px;
  background: #161923;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transform: rotate(1.6deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 10px 10px 0 rgba(230, 57, 70, 0.16);
  transition: transform 0.4s ease;
}
.about-poster:hover .poster-frame { transform: rotate(0deg); }
.poster-frame img { width: 100%; height: auto; border-radius: 2px; }

.poster-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0 0.2rem;
}
.poster-meta > span:last-child {
  font-size: 0.72rem;
  color: var(--muted-2);
  text-align: right;
  max-width: 22ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.badge-red { border-color: rgba(230, 57, 70, 0.55); color: #ff8a92; background: rgba(230, 57, 70, 0.1); }
.badge-gold { border-color: rgba(255, 194, 71, 0.6); color: var(--gold); background: rgba(255, 194, 71, 0.1); }

.poster-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.poster-stats div { display: flex; flex-direction: column; }
.poster-stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.poster-stats span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  padding: 1.7rem;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 194, 71, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 194, 71, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-gold { color: var(--gold); }
.icon-red { color: #ff6b76; }
.icon-blue { color: #7d9dff; }
.icon-purple { color: #b49bff; }
.icon-green { color: #63e59a; }
.icon-cyan { color: #5fe5e2; }

.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Roster
   -------------------------------------------------------------------------- */
.roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}
.search-field svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.65rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.search-field input::placeholder { color: var(--muted-2); }
.search-field input:focus {
  border-color: var(--gold);
  background: rgba(20, 22, 32, 0.9);
}
.search-field input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filter-chip {
  padding: 0.52rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--muted-2); }
.filter-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}

.roster-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.9rem;
}
#roster-count {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.roster-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.roster-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot-gold { background: var(--gold); }
.dot-blue { background: #6f95ff; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 0.45rem;
}
.fighter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.84rem;
  white-space: nowrap;
  font-weight: 700;
  color: #d9dce5;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  cursor: default;
}
.fighter:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 194, 71, 0.5);
  color: var(--ink);
  background: rgba(255, 194, 71, 0.06);
}
.fighter .f-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.fighter.is-hidden .f-dot { background: var(--gold); box-shadow: 0 0 8px rgba(255, 194, 71, 0.6); }
.fighter.is-msu .f-dot { background: #6f95ff; box-shadow: 0 0 8px rgba(111, 149, 255, 0.6); }
.fighter.is-hidden.is-msu .f-dot {
  background: linear-gradient(90deg, var(--gold) 50%, #6f95ff 50%);
  box-shadow: none;
}

.roster-noscript {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.empty-state {
  margin: 2rem 0;
  color: var(--muted-2);
  text-align: center;
}

.hidden-forms {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(230, 57, 70, 0.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hidden-forms h3 { font-size: 1.15rem; font-weight: 800; }
.check-list { margin-top: 0.9rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}
.check-list strong { color: var(--ink); }
.check-list kbd {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.08rem 0.3rem;
  background: #1b1e2b;
  border: 1px solid #363a4d;
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.hidden-note {
  align-self: end;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Modes
   -------------------------------------------------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mode-card {
  position: relative;
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mode-card:hover { border-color: rgba(255, 194, 71, 0.42); transform: translateY(-3px); }
.mode-num {
  position: absolute;
  top: -0.4rem;
  right: 0.6rem;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(245, 241, 230, 0.055);
  pointer-events: none;
}
.mode-card h3 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
}
.mode-card p {
  position: relative;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.shot { grid-column: span 4; min-width: 0; }
.shot-wide { grid-column: span 6; }

.shot-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s ease;
}
.shot-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 224;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: filter 0.2s ease;
}
.shot-btn:hover { border-color: var(--gold); }
.shot-btn:hover img { filter: brightness(1.1) saturate(1.05); }
.shot-btn:focus-visible { outline-offset: 3px; }

.shot-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(8, 9, 14, 0.78);
  border: 1px solid rgba(255, 194, 71, 0.6);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.shot-zoom svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
}
.shot-btn:hover .shot-zoom,
.shot-btn:focus-visible .shot-zoom { opacity: 1; transform: translateY(0); }

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Trailer
   -------------------------------------------------------------------------- */
.video-frame {
  max-width: 1000px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(230, 57, 70, 0.4), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.video-caption .text-link { font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   MSU-1
   -------------------------------------------------------------------------- */
.msu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.msu-card {
  padding: 1.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.msu-card-full {
  border-color: rgba(255, 194, 71, 0.45);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(255, 194, 71, 0.12), transparent 70%),
    linear-gradient(170deg, #1a1a1e, #111219);
  box-shadow: inset 0 1px 0 rgba(255, 194, 71, 0.2);
}
.msu-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.msu-card-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.msu-card .check-list { margin-top: 1.2rem; }
.msu-card .check-list li { color: #b8bcc9; font-size: 0.92rem; margin-top: 0.7rem; }
.msu-card-full .check-list li::before { color: var(--gold); }
.check-muted li::before { color: var(--muted-2) !important; }

.warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 194, 71, 0.055);
  border: 1px solid rgba(255, 194, 71, 0.32);
  border-radius: var(--radius);
}
.warning svg {
  flex: none;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.warning h3 { font-size: 0.98rem; font-weight: 800; color: var(--gold); }
.warning p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}
.warning strong { color: var(--ink); }
.warning code,
.download-files code {
  white-space: nowrap;
  display: inline;
  padding: 0.08rem 0.32rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.82em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */
.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.controller-wrap { min-width: 0; }
.controller {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}
.controller-note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 44ch;
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.controls-table th {
  padding: 0 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.controls-table td {
  padding: 0.62rem 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: #bdc1ce;
  vertical-align: top;
  line-height: 1.55;
}
.controls-table tr:last-child td { border-bottom: 0; }
.controls-table td:first-child {
  width: 1%;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}
.controls-table kbd {
  display: inline-block;
  min-width: 1.65rem;
  padding: 0.16rem 0.4rem;
  background: #1b1e2b;
  border: 1px solid #383c4f;
  border-bottom-width: 3px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Build
   -------------------------------------------------------------------------- */
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.code-card {
  background: #06070b;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: #0d0f16;
  border-bottom: 1px solid var(--line);
}
.code-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b3f4e;
}
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.code-card pre {
  margin: 0;
  padding: 1.35rem 1.4rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #d4d8e4;
  tab-size: 2;
}
.code-card code { font-family: inherit; }
.code-card .c { color: #6b7285; }
.code-card .k { color: var(--gold); font-weight: 700; }
.code-card .s { color: #7ee0a5; }
.code-note {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.6;
}

.tech-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}
.tech-list li:first-child { padding-top: 0.2rem; }
.tech-list li:last-child { border-bottom: 0; }
.tech-list code {
  font-size: 0.8rem;
  color: var(--gold);
}
.tech-list .tech-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.tech-list .amp { color: var(--muted-2); }
.tech-list span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Credits
   -------------------------------------------------------------------------- */
.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}
.credits-card {
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.credits-label { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); }
.credits-names {
  margin-top: 1.1rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 0.9vw, 0.66rem);
  line-height: 2.15;
  color: #ded9cc;
  word-spacing: 0.2em;
}
.credits-thanks {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}
.credits-forgot {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  font-style: italic;
}

.apology-card {
  position: relative;
  padding: 2rem;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(230, 57, 70, 0.22), transparent 70%),
    linear-gradient(170deg, #1a1114, #110d11);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
}
.apology-mark {
  position: absolute;
  top: -1.4rem;
  right: 0.6rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(230, 57, 70, 0.13);
  pointer-events: none;
}
.apology-card h3 {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 20ch;
}
.apology-card p {
  position: relative;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}
.apology-card .text-link { margin-top: 1.3rem; }

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 84px;
}
.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  background:
    radial-gradient(700px 380px at 110% 10%, #ffe089, transparent 60%),
    linear-gradient(130deg, #f3a812, var(--gold) 55%, #ffe08a);
  border: 1px solid #000;
  border-radius: 10px;
  color: #0a0a0a;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(230, 57, 70, 0.85);
}
.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}

.download-copy { position: relative; z-index: 1; }
.download-title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.download-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.82);
}
.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.download-files {
  font-size: 0.76rem;
  color: rgba(10, 10, 10, 0.7);
  font-weight: 700;
}
.download-files code {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.16);
  color: #2a1a00;
}
.download-note {
  margin-top: 1.5rem !important;
  font-size: 0.7rem !important;
  line-height: 1.6 !important;
  color: rgba(0, 0, 0, 0.6) !important;
  max-width: 60ch !important;
}

.download-art {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.5rem 1.5rem 0;
}
.download-label {
  transform: rotate(3.5deg);
  transition: transform 0.4s ease;
}
.download-panel:hover .download-label { transform: rotate(1.5deg); }
.download-label img {
  width: 100%;
  height: auto;
  border: 9px solid #0b0b0d;
  border-radius: 5px;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.22);
}
.download-badge {
  position: absolute;
  right: -0.3rem;
  bottom: 0.2rem;
  display: inline-block;
  padding: 0.6rem 0.8rem;
  background: #0b0b0d;
  color: var(--gold);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  border: 2px solid #0b0b0d;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.6fr);
  gap: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p {
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted-2);
}
.footer-col h3 {
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  font-size: 0.7rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.footer-bottom p:last-child { text-align: right; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 5, 8, 0.96);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(4, 5, 8, 0.96); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox-figure {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.lightbox-counter {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(16, 18, 27, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-nav svg, .lightbox-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav { gap: 1rem; }
  .header-inner { gap: 1.2rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
  .hero-title-main { font-size: clamp(3.6rem, 8.6vw, 6.2rem); }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-poster { position: static; max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .msu-grid { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .controller-wrap { max-width: 480px; margin-inline: auto; text-align: center; }
  .controller-note { margin-inline: auto; }
  .build-grid { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .credits-card, .apology-card { max-width: 720px; }
  .download-panel { grid-template-columns: 1fr; }
  .download-art { max-width: 440px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 0.6fr 0.6fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1.2rem;
    background: rgba(8, 9, 14, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav a { width: 100%; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { max-width: 640px; }
  .hero-art { min-height: 0; padding: 1.5rem 0 2.5rem; }
  .cart-img { width: min(520px, 90%); }
  .cart-sticker { right: 4%; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .hero-title-main { font-size: clamp(4.4rem, 14vw, 7rem); }
}

@media (max-width: 720px) {
  .header-download { display: none; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.3rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.34rem; }
  .hero { padding-top: 2.5rem; }
  .hero-facts { gap: 1rem 1.4rem; }
  .section-title { font-size: clamp(2.1rem, 8vw, 3rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot, .shot-wide { grid-column: 1 / -1; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .fighter { font-size: 0.8rem; }
  .hidden-forms { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .hidden-note { align-self: auto; }
  .roster-toolbar { align-items: stretch; }
  .search-field { max-width: none; }
  .filter-chips { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom p:last-child { text-align: left; }
  .download-panel { box-shadow: 6px 6px 0 rgba(230, 57, 70, 0.85); }
  .download-note { max-width: 100% !important; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.6rem, var(--wrap)); }
  .lang-switch button { padding: 0.32rem 0.42rem; }
  .eyebrow { font-size: 0.5rem; letter-spacing: 0.1em; }
  .eyebrow::before { width: 18px; }
  .hero-title-top { letter-spacing: 0.1em; }
  .hero-title-main { font-size: clamp(3.6rem, 17vw, 5rem); }
  .hero-lede { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.4rem;
  }
  .hero-art { padding-top: 2rem; }
  .cart-sticker { top: 0; right: 0; font-size: 0.42rem; }
  .cart-caption { font-size: 0.52rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--line); padding-left: 1.15rem; }
  .stat:nth-child(5) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
  .poster-meta { flex-direction: column; align-items: flex-start; }
  .poster-meta > span:last-child { text-align: left; }
  .roster-meta { flex-direction: column; align-items: flex-start; }
  .controls-table td { font-size: 0.8rem; padding: 0.55rem 0.4rem; }
  .controls-table th { padding-left: 0.4rem; padding-right: 0.4rem; }
  .controls-table kbd { font-size: 0.64rem; }
  .credits-card, .apology-card { padding: 1.5rem; }
  .credits-names { font-size: 0.5rem; line-height: 2; }
  .download-title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .download-actions { flex-direction: column; align-items: flex-start; }
  .download-actions .btn { width: 100%; }
  .download-art { padding-bottom: 1rem; }
  .download-badge { right: 0; bottom: 0; font-size: 0.42rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .lightbox-nav { width: 40px; height: 40px; top: auto; bottom: 1.1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 54px); }
  .lightbox-next { right: calc(50% - 54px); }
  .lightbox-figure figcaption { margin-top: 0.8rem; padding-bottom: 2.6rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@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;
  }
  .ticker-track { animation: none; }
  .hero-grid, .cart-img { animation: none; }
}

/* ==========================================================================
   Bug list
   ========================================================================== */

.bugs-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: start;
}

.bug-form,
.bug-list-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.bug-form-title,
.bug-list-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field { margin-bottom: 1.1rem; }

.field > label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font: inherit;
  resize: vertical;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 194, 71, 0.25);
}

.field input[type="text"]:disabled {
  opacity: 0.45;
}

.nickname-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nickname-row input[type="text"] { flex: 1 1 200px; }

.anon-check {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.anon-check input { accent-color: var(--gold); }

.form-status {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }

/* vertical carousel */
.bug-carousel {
  position: relative;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.bug-carousel.has-items { border-top: 1px solid var(--line); }

.bug-list {
  list-style: none;
  margin: 0;
  padding: 0;
  scroll-snap-type: y mandatory;
}

.bug-card {
  scroll-snap-align: start;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.bug-card.is-solved { opacity: 0.75; }

.bug-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.bug-author {
  font-weight: 800;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bug-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
}

.bug-badge--ok {
  color: var(--green);
  border-color: var(--green);
  background: rgba(56, 214, 124, 0.08);
}

.bug-badge--open {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.08);
}

.bug-badge-icon { font-size: 0.7rem; line-height: 1; }

.bug-text {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.bug-admin {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.bug-admin-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.bug-admin-btn:hover { color: var(--ink); border-color: var(--ink); }
.bug-admin-btn--danger:hover { color: var(--red); border-color: var(--red); }

/* auto-scroll loop */
.bug-list.is-looping { animation: bugscroll 30s linear infinite; }
.bug-carousel:hover .bug-list.is-looping { animation-play-state: paused; }

@keyframes bugscroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bug-list.is-looping { animation: none; }
}

@media (max-width: 860px) {
  .bugs-grid { grid-template-columns: 1fr; }
}
