/* ============================================================
   THE LAST STYLE STANDING — "Forged at Dusk"
   ============================================================ */

:root {
  --ink: #12161e;
  --ink-2: #0d1017;
  --navy: #243144;
  --steel: #35496b;
  --orange: #f4731f;
  --orange-soft: #ff8b3d;
  --gold: #d9a648;
  --bone: #e9e6dd;
  --bone-dim: #b7b3a8;
  --muted: #8790a1;

  --font-display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* one easing family site-wide (expo-out) */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --maxw: 1220px;
  --pad: clamp(1.15rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- typographic primitives ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: balance;
}
.label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
}
.accent { color: var(--orange); }
.gold { color: var(--gold); }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 11vh, 9rem);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.section-kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--orange);
}

/* =============================================================
   PRELOADER
   ============================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-2);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader.is-instant { transition: none; }
.pre-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 6rem);
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
  color: var(--bone);
  position: relative;
  padding-bottom: 0.3em;
}
.pre-mark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: preLetter 0.5s var(--ease) forwards;
}
.pre-mark .l2 { color: var(--orange); }
#preloader.is-instant .pre-mark span { opacity: 1; transform: none; animation: none; }
.pre-underline {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--orange);
  animation: preSweep 0.6s var(--ease) 0.55s forwards;
}
#preloader.is-instant .pre-underline { width: 100%; animation: none; }
@keyframes preLetter { to { opacity: 1; transform: translateY(0); } }
@keyframes preSweep { to { width: 100%; } }

/* =============================================================
   NAV
   ============================================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.is-scrolled {
  background: rgba(13, 16, 23, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(233, 230, 221, 0.08);
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.nav-mark b { color: var(--orange); font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none; border: 0;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
}

/* pill button */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  border: 1px solid var(--orange);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.pill::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.pill:hover { box-shadow: 0 10px 30px -8px rgba(244, 115, 31, 0.5); }
.pill:hover::before { transform: translateY(0); }
.pill.is-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(233, 230, 221, 0.28);
}
.pill.is-ghost::before { background: var(--orange); }
.pill.is-ghost:hover { color: var(--ink); border-color: var(--orange); }

/* =============================================================
   HERO
   ============================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #1c2740 0%, var(--ink) 60%, var(--ink-2) 100%);
}
/* ---- FIGHT MONTAGE: two stacked <video> layers we crossfade between ---- */
.hero-montage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink-2);
}
.hero-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* gentle static over-scale keeps letterbox edges off-frame */
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  will-change: opacity;
  background: var(--ink-2);
}
.hero-clip.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  /* no video at all — the poster attribute paints layer A as a still image */
  .hero-clip { transition: none; }
}
/* autoplay-blocked fallback: unobtrusive play button, centered */
.hero-montage-play {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(233, 230, 221, 0.5);
  background: rgba(13, 16, 23, 0.55);
  backdrop-filter: blur(6px);
  color: var(--bone);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-left: 4px; /* optical centering of the ▶ glyph */
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.hero-montage-play:hover {
  border-color: var(--orange);
  background: rgba(13, 16, 23, 0.75);
  transform: translate(-50%, -50%) scale(1.06);
}
/* Ember particle canvas — warm drifting dots over the art */
#hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* darken the lower third harder for headline legibility over the poster */
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(18, 22, 30, 0.86) 18%, rgba(18, 22, 30, 0.4) 40%, rgba(18, 22, 30, 0) 62%),
    linear-gradient(to right, rgba(18, 22, 30, 0.7) 0%, rgba(18, 22, 30, 0) 48%),
    radial-gradient(120% 120% at 50% 38%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.52) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
  padding-top: 6rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: heroFade 0.8s var(--ease) 0.4s forwards;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  /* fluid from 360px → 1440px+; ~15% smaller on desktop so the poster's
     fighters aren't fully covered (mobile keeps its own override below) */
  font-size: clamp(3.15rem, 11.5vw, 9.3rem);
  line-height: 0.82;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: block;
  transform: translateY(105%);
  animation: heroLine 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.55s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.72s; }
@keyframes heroLine { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; } }

.hero-sub {
  max-width: 44ch;
  margin: 1.6rem 0 2.2rem;
  color: var(--bone-dim);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  opacity: 0;
  animation: heroFade 0.9s var(--ease) 1s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroFade 0.9s var(--ease) 1.15s forwards;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 0.82rem; }

.hero-badges {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2rem, 6vh, 4.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  animation: heroFade 0.9s var(--ease) 1.4s forwards;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(233, 230, 221, 0.24);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  background: rgba(13, 16, 23, 0.45);
  backdrop-filter: blur(6px);
  min-width: 190px;
}
.store-chip .glyph { font-size: 1.2rem; line-height: 1; }
.store-chip .txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-chip .small { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; }
.store-chip .big { font-size: 0.9rem; font-weight: 600; }
.store-chip .soon { margin-left: auto; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.14em; color: var(--gold); border: 1px solid rgba(217,166,72,0.4); border-radius: 5px; padding: 0.12rem 0.35rem; }

.hero-hint {
  position: absolute;
  left: var(--pad);
  bottom: 1.2rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: heroFade 1s var(--ease) 1.6s forwards;
}

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee {
  border-block: 1px solid rgba(233, 230, 221, 0.1);
  background: var(--ink-2);
  padding-block: 1.15rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { text-align: center; }
}
.marquee-track span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 230, 221, 0.55);
  padding-inline: 1.4rem;
}
.marquee-track .star { -webkit-text-stroke: 0; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* gold variant — used by the expansion teaser (styles still "coming") */
.marquee-gold .marquee-track span {
  color: var(--gold);
  -webkit-text-stroke: 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
}
.marquee-gold .marquee-track { animation-duration: 44s; }
.marquee-gold .marquee-track .star { color: var(--orange); }

/* =============================================================
   EXPANSION TEASER — "The World Keeps Coming"
   ============================================================= */
#expansion {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(217,166,72,0.08), transparent 60%),
    var(--ink-2);
  padding-bottom: clamp(2.4rem, 6vh, 4rem);
}
.expansion-inner {
  text-align: center;
  padding-top: clamp(1.8rem, 5vh, 3rem);
}
.expansion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.expansion-kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--gold);
}
.expansion-line {
  font-family: var(--font-body);
  color: var(--bone-dim);
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.35rem);
  max-width: 46ch;
  margin: 0 auto;
}

/* =============================================================
   MANIFESTO
   ============================================================= */
#manifesto { text-align: center; }
.manifesto-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.008em;
  margin: 0 auto;
  max-width: 16ch;
  padding-block: clamp(0.6rem, 2vh, 1.6rem);
  color: var(--bone);
  opacity: 0.16;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transform: translateY(20px);
}
.manifesto-line.is-in { opacity: 1; transform: none; }
.manifesto-line em { color: var(--orange); font-style: normal; }

/* =============================================================
   THE TEN
   ============================================================= */
#roster { position: relative; overflow: hidden; }
.roster-backdrop {
  position: absolute;
  top: -6%; right: -8%;
  width: min(58%, 720px);
  object-fit: contain;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom left, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom left, #000, transparent 72%);
}
#roster .section-kicker,
#roster > h2,
#roster .roster-grid { position: relative; z-index: 1; }
.roster-grid {
  display: grid;
  /* 5 across on wide desktop */
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
/* portrait gallery card: image-led, 3:4, gradient overlay carries the copy */
.fighter-card {
  --hue: var(--steel);
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(233, 230, 221, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.fc-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
/* bottom gradient scrim so the overlay text always reads */
.fighter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.94) 6%, rgba(7, 9, 13, 0.55) 34%, rgba(7, 9, 13, 0.05) 58%, transparent 78%);
  transition: opacity 0.5s var(--ease);
}
/* per-style hue rim glow, revealed on hover/focus */
.fighter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px var(--hue), inset 0 0 34px -6px var(--hue);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.fighter-card:hover,
.fighter-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--hue);
  box-shadow: 0 22px 46px -20px rgba(0, 0, 0, 0.8);
}
.fighter-card:hover .fc-portrait,
.fighter-card:focus-within .fc-portrait {
  transform: scale(1.03);
  filter: brightness(1.05) saturate(1.05);
}
.fighter-card:hover::after,
.fighter-card:focus-within::after { opacity: 1; }
.fc-overlay {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 1.3rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.fc-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.fc-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 0.92;
  margin: 0.35rem 0 0.3rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}
.fc-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.fc-tag .origin { color: var(--bone-dim); }
/* signature move: hidden below, slides up on hover/focus */
.fc-sig {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(233, 230, 221, 0.16);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.fighter-card:hover .fc-sig,
.fighter-card:focus-within .fc-sig { opacity: 1; transform: none; }
.fc-sig .lbl { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.fc-sig .val { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; color: var(--hue); filter: brightness(1.55); letter-spacing: 0.03em; }
@media (prefers-reduced-motion: reduce) {
  .fc-sig { opacity: 1; transform: none; }
}
/* roster grid: 5 → 2 across on tablet */
@media (max-width: 1024px) {
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   ARENAS
   ============================================================= */
#arenas { overflow: hidden; }
.arena-track {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
  -webkit-overflow-scrolling: touch;
}
.arena-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.arena-track::-webkit-scrollbar { height: 6px; }
.arena-track::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
.arena-card {
  position: relative;
  flex: 0 0 clamp(240px, 72vw, 340px);
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(233, 230, 221, 0.1);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.arena-card .scene {
  position: absolute;
  inset: 0;
  z-index: -2; /* above the .scene-grad fallback (-3), below the scrim (-1) */
  transition: transform 0.9s var(--ease);
}
.arena-card:hover .scene { transform: scale(1.06); }
.arena-card img.scene { object-fit: cover; width: 100%; height: 100%; }
.arena-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9, 11, 16, 0.92) 8%, rgba(9,11,16,0.15) 55%, rgba(9,11,16,0.35));
}
.arena-body { padding: 1.5rem; }
.arena-num { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--gold); }
.arena-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.7rem;
  line-height: 0.95;
  margin: 0.4rem 0 0.5rem;
}
.arena-desc { font-size: 0.85rem; color: var(--bone-dim); line-height: 1.45; margin: 0; }
.drag-hint { margin-top: 1rem; }

/* =============================================================
   STEP INTO THE RING (gameplay screenshot gallery)
   ============================================================= */
#ring { position: relative; }
.ring-gallery {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
/* gallery card: same image-led + bottom-scrim language as .fighter-card / .arena-card */
.ring-card {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(233, 230, 221, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.ring-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.ring-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.3) 44%, transparent 70%);
}
.ring-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 115, 31, 0.4);
}
.ring-card:hover img { transform: scale(1.03); filter: brightness(1.05) saturate(1.05); }
.ring-card figcaption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.ring-caption {
  margin: 1.6rem auto 0;
  max-width: 60ch;
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ring-caption a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.ring-caption a:hover { color: var(--orange-soft); }
@media (max-width: 600px) {
  .ring-gallery { grid-template-columns: 1fr; }
}

/* =============================================================
   TOURNAMENT
   ============================================================= */
.ladder {
  margin: 3rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rung {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid rgba(233, 230, 221, 0.12);
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  background: rgba(13, 16, 23, 0.4);
  opacity: 0.35;
  transform: translateX(-16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.7s var(--ease), background 0.7s var(--ease);
}
.rung:nth-child(even) { transform: translateX(16px); }
.rung.is-lit {
  opacity: 1;
  transform: none;
  border-color: rgba(244, 115, 31, 0.4);
  background: linear-gradient(90deg, rgba(244,115,31,0.1), rgba(13,16,23,0.4) 60%);
}
.rung .step { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--orange); min-width: 3ch; }
.rung .rname { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 0.95; }
.rung .rnote { margin-left: auto; font-size: 0.78rem; color: var(--muted); text-align: right; }

.grandmaster {
  margin: 3.5rem auto 0;
  max-width: 960px;
  border: 1px solid rgba(217, 166, 72, 0.35);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(217,166,72,0.14), transparent 60%),
    #05070b;
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
}
/* portrait: gold rim glow + edges blended into the black panel */
.gm-portrait {
  position: relative;
  flex: 0 0 clamp(200px, 34%, 300px);
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(217, 166, 72, 0.45),
    0 0 44px rgba(217, 166, 72, 0.28);
  animation: gmPulse 5.5s var(--ease) infinite;
}
.gm-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.96) contrast(1.02);
}
/* dark vignette so the portrait's edges melt into the panel */
.gm-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 52%, rgba(5,7,11,0.9) 100%),
    linear-gradient(to bottom, rgba(5,7,11,0.35), transparent 22% 78%, rgba(5,7,11,0.55));
}
@keyframes gmPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(217,166,72,0.40), 0 0 34px rgba(217,166,72,0.22); }
  50%      { box-shadow: 0 0 0 1px rgba(217,166,72,0.60), 0 0 56px rgba(217,166,72,0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .gm-portrait { animation: none; }
}
.gm-copy { flex: 1 1 auto; text-align: left; }
.grandmaster .beat {
  font-family: var(--font-body);
  color: var(--bone-dim);
  font-style: italic;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.grandmaster h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.008em;
  margin: 0 0 0.8rem;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(217, 166, 72, 0.3);
}
.grandmaster p { color: var(--bone-dim); margin: 0; max-width: 44ch; }
/* mobile: stack portrait above copy, cap portrait height */
@media (max-width: 640px) {
  .grandmaster { flex-direction: column; text-align: center; }
  .gm-portrait { flex-basis: auto; width: min(240px, 70%); max-height: 320px; }
  .gm-copy { text-align: center; }
  .grandmaster p { margin-inline: auto; }
}

/* =============================================================
   PROMISES
   ============================================================= */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.promise {
  border: 1px solid rgba(233, 230, 221, 0.12);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  background: linear-gradient(160deg, rgba(36,49,68,0.28), rgba(13,16,23,0.4));
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.promise:hover { transform: translateY(-5px); border-color: rgba(244,115,31,0.4); }
.promise h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 0.9;
  margin: 0 0 0.8rem;
}
.promise h3 em { color: var(--orange); font-style: normal; }
.promise p { color: var(--bone-dim); font-size: 0.92rem; margin: 0; }

/* =============================================================
   MATS (Flow Academy)
   ============================================================= */
#mats { position: relative; }
.mats-inner {
  max-width: 760px;
  border-left: 3px solid var(--orange);
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}
.mats-inner h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.92;
  margin: 0 0 1.3rem;
}
.mats-inner p { color: var(--bone-dim); font-size: 1.08rem; line-height: 1.65; }
.mats-inner a.inline { color: var(--orange); border-bottom: 1px solid currentColor; transition: color 0.2s; }
.mats-inner a.inline:hover { color: var(--orange-soft); }

/* =============================================================
   GET THE GAME
   ============================================================= */
#get {
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(244,115,31,0.14), transparent 55%),
    var(--ink-2);
}
.get-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.8rem, 12vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.012em;
  margin: 0 auto 1.4rem;
  max-width: 14ch;
  text-wrap: balance;
}
.get-title em { color: var(--orange); font-style: normal; }
.get-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.get-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.notify {
  max-width: 460px;
  margin-inline: auto;
}
.notify .label { display: block; margin-bottom: 0.8rem; }
.notify-form {
  display: flex;
  gap: 0.6rem;
  border: 1px solid rgba(233, 230, 221, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  background: rgba(13, 16, 23, 0.6);
  transition: border-color 0.3s;
}
.notify-form:focus-within { border-color: var(--orange); }
.notify-form input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 0;
}
.notify-form input:focus { outline: none; }
.notify-form input::placeholder { color: var(--muted); }
.notify-form.is-sent { border-color: var(--gold); }
.notify-msg {
  margin-top: 1rem;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* =============================================================
   FOOTER
   ============================================================= */
#footer {
  border-top: 1px solid rgba(233, 230, 221, 0.1);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-mark { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; }
.footer-mark b { color: var(--orange); font-weight: 400; }
.footer-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--bone-dim); text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* =============================================================
   SHARED REVEAL
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .nav-links,
  .nav-right .pill { display: none; }
  .nav-toggle { display: block; }
  #nav.is-open {
    background: rgba(13, 16, 23, 0.96);
    backdrop-filter: blur(14px);
    flex-wrap: wrap;
  }
  #nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
    padding: 1.4rem 0 0.6rem;
    align-items: flex-start;
  }
  .hero-badges { position: static; margin-top: 2rem; flex-direction: row; flex-wrap: wrap; animation: none; opacity: 1; }
  .hero-inner { padding-bottom: 3rem; }
  .hero-hint { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .store-chip { min-width: 0; flex: 1 1 100%; }
  .rung .rnote { display: none; }
}

/* =============================================================
   JURY POLISH — micro-details, motion, seams, mobile
   ============================================================= */

/* ---- focus-visible: orange ring, offset, never on mouse ---- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}
.pill:focus-visible,
.arena-card:focus-visible,
.fighter-card:focus-visible { outline-offset: 4px; }

/* ---- hero cinema grain (CSS-only, cheap, GPU-friendly) ---- */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { #hero::after { opacity: 0.32; } }

/* ---- section seam smoothing: soft transition into the dark GET block ---- */
#promises { position: relative; }
#get { position: relative; }
#get::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  pointer-events: none;
}

/* ---- PLAY NOW pill: pulse ONLY when hero CTA is out of view ---- */
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 115, 31, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(244, 115, 31, 0.18); }
}
.nav-right .pill.is-cta-hidden {
  animation: pillPulse 2.4s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav-right .pill.is-cta-hidden { animation: none; }
}

/* ---- arena cards: scene brightens + name underline sweep on hover/focus ---- */
.arena-card .scene,
.arena-card .scene-grad {
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.arena-card:hover .scene,
.arena-card:hover .scene-grad,
.arena-card:focus-within .scene,
.arena-card:focus-within .scene-grad {
  filter: brightness(1.14) saturate(1.08);
}
.arena-name {
  display: inline-block;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.5s var(--ease);
}
.arena-card:hover .arena-name,
.arena-card:focus-within .arena-name { background-size: 100% 2px; }

/* make arena cards keyboard-reachable for the focus states above */
.arena-card { scroll-margin-inline: var(--pad); }

/* ---- notify: proper success-state animation ---- */
@keyframes notifyPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}
.notify-form.is-sent {
  border-color: var(--gold);
  animation: notifyPop 0.5s var(--ease);
}
.notify-form.is-sent::after {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--gold);
  align-self: center;
  padding-right: 0.4rem;
  animation: notifyFade 0.5s var(--ease) 0.1s both;
}
.notify-msg {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.notify-msg.is-shown { opacity: 1; transform: none; }
@keyframes notifyFade { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* ---- roster card staggered reveal (authored, not templated) ---- */
.roster-grid [data-reveal].is-in { transition-delay: calc(var(--i, 0) * 45ms); }

/* =============================================================
   MOBILE PASS (375–430px)
   ============================================================= */
@media (max-width: 600px) {
  /* roster: full-width snap column so each fighter gets the stage */
  .roster-grid {
    grid-template-columns: 1fr;
    scroll-snap-type: y proximity;
  }
  .fighter-card { scroll-snap-align: start; }
  /* on mobile the sig move is always visible (no hover) */
  .fighter-card .fc-sig { opacity: 1; transform: none; }

  /* arena gallery: show a sliver of the next card as a swipe affordance */
  .arena-card { flex-basis: 82vw; height: 360px; }

  /* condensed sticky nav */
  #nav { padding-block: 0.6rem; }
  .nav-mark { font-size: 1.15rem; }

  /* tap targets ≥ 44px */
  .nav-toggle { min-height: 44px; min-width: 44px; }
  .footer-links a { padding-block: 0.35rem; }

  /* marquee legibility on small screens */
  .marquee-track span { font-size: clamp(1.3rem, 6vw, 1.8rem); padding-inline: 1rem; }
}

@media (max-width: 430px) {
  .hero-title { font-size: clamp(2.9rem, 13.2vw, 4.4rem); }
  .hero-sub { font-size: 1.02rem; }
  .btn-lg { padding: 0.85rem 1.4rem; }
  .hero-ctas { gap: 0.7rem; }
  .hero-ctas .pill { flex: 1 1 auto; justify-content: center; }
}
