/* ==========================================================================
   SharkNinja Demo Arena — main.css
   Deep navy arena, teal contrast, vivid orange hits, heavy athletic type.
   ========================================================================== */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-900i.woff2') format('woff2');
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #050c18;
  --navy: #0a1830;
  --navy-2: #0f2242;
  --navy-3: #13294e;
  --teal: #11b8ae;
  --teal-deep: #0a7c76;
  --orange: #ff5a1f;
  --orange-hi: #ffb03a;
  --paper: #f6f2e9;
  --line: rgba(255, 255, 255, 0.14);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --cut: clamp(28px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translateY(-2px) skewX(-2deg); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-orange { background: var(--orange); color: #140a04; }
.btn-orange:hover { background: var(--orange-hi); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--ink); }
.btn-big { font-size: 1.25rem; padding: 0.9em 2em; }
.btn-mini { font-size: 0.8rem; padding: 0.5em 1.1em; }
.hidden { display: none !important; }

kbd {
  font-family: var(--display);
  font-weight: 800;
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  font-size: 0.85em;
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.96), rgba(5, 12, 24, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.brand-tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--orange);
  padding: 0.25em 0.6em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.topnav { display: flex; gap: 0.2rem; margin-left: auto; }
.topnav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.75);
  text-decoration: none;
  padding: 0.4em 0.8em;
  transition: color 0.12s, background 0.12s;
}
.topnav a:hover { color: var(--ink); background: var(--teal); }
.topbar-right { display: flex; align-items: center; gap: 0.9rem; }
.arena-clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.clock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 82% 30%, rgba(17, 184, 174, 0.16), transparent 60%),
    radial-gradient(900px 700px at 12% 85%, rgba(255, 90, 31, 0.13), transparent 60%),
    var(--ink);
  padding: clamp(90px, 12vh, 140px) clamp(16px, 5vw, 72px) calc(var(--cut) + 40px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-slash { position: absolute; transform: rotate(-14deg); }
.slash-a { width: 130vw; height: 120px; top: 12%; left: -15vw; background: linear-gradient(90deg, transparent, rgba(255, 90, 31, 0.22), transparent); }
.slash-b { width: 130vw; height: 46px; top: 58%; left: -15vw; background: linear-gradient(90deg, transparent, rgba(17, 184, 174, 0.28), transparent); }
.slash-c { width: 130vw; height: 14px; top: 74%; left: -15vw; background: linear-gradient(90deg, transparent, rgba(255, 176, 58, 0.3), transparent); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--orange); }
.hero-title .dot { color: var(--orange); }
.hero-sub { max-width: 34rem; margin: 1.6rem 0 2rem; font-size: 1.08rem; color: rgba(246, 242, 233, 0.85); }
.hero-sub strong { color: var(--orange-hi); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3.5vw, 3rem); margin-top: 3rem; }
.hstat-num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.hstat-label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.3rem;
}
.hero-products { position: absolute; right: -4vw; bottom: 0; width: min(46vw, 640px); z-index: 1; pointer-events: none; }
.hero-prod { position: absolute; bottom: 0; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); will-change: transform; }
.hp-a { width: 58%; right: 4%; transform: rotate(4deg); animation: bob 5.2s ease-in-out infinite; }
.hp-b { width: 44%; right: 58%; transform: rotate(-5deg); animation: bob 4.4s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -16px; } }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cut) * 0.4);
  width: 30px; height: 48px;
  border: 2px solid rgba(246, 242, 233, 0.5);
  border-radius: 16px;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 5px; height: 10px; margin-left: -2.5px;
  background: var(--orange); border-radius: 3px;
  animation: scrollhint 1.6s ease-in-out infinite;
}
@keyframes scrollhint { 60% { transform: translateY(18px); opacity: 0; } 100% { transform: translateY(18px); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) skewY(1.2deg); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 1.4, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.13s; } .d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.42s; } .d6 { transition-delay: 0.52s; }

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 4;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: calc(var(--cut) * -0.55);
  border-block: 3px solid var(--ink);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  padding: 0.55rem 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  animation: tick 26s linear infinite;
}
.ticker-track i { font-style: normal; font-size: 0.7em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- diagonal slices ---------- */
.slice { position: relative; padding: calc(var(--cut) + 64px) clamp(16px, 5vw, 72px) calc(var(--cut) + 72px); }
.slice-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 90%); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: calc(var(--cut) * -1); }
.slice-deep { background: linear-gradient(200deg, var(--navy-2), var(--ink) 75%); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); margin-top: calc(var(--cut) * -1); }
.slice-teal { background: linear-gradient(150deg, var(--teal-deep), #053d3a 80%); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: calc(var(--cut) * -1); }
.slice-orange { background: linear-gradient(160deg, var(--orange), #e04310 70%); color: var(--ink); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); }

.section-head { max-width: 1080px; margin: 0 auto 3rem; }
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange-hi);
  margin-bottom: 0.7rem;
}
.kicker.light { color: rgba(5, 12, 24, 0.75); }
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-sub { max-width: 40rem; margin-top: 1.2rem; color: rgba(246, 242, 233, 0.8); font-size: 1.05rem; }
.section-sub.light { color: rgba(5, 12, 24, 0.8); }
.slice-orange .section-title { color: var(--ink); }

/* ---------- game: challenge ---------- */
.game-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.4rem;
  max-width: 1240px;
  margin: 0 auto;
}
.game-hud {
  grid-column: 1 / -1;
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hud-cell { flex: 1; background: var(--ink); padding: 0.7rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.hud-score { background: var(--navy-2); }
.hud-label { font-family: var(--display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.22em; color: var(--teal); }
.hud-value { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-score .hud-value { color: var(--orange-hi); }
.combo-wrap { display: flex; align-items: center; gap: 0.7rem; }
.combo-bar { flex: 1; height: 8px; background: var(--navy-3); overflow: hidden; }
.combo-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); transition: width 0.15s; }
.game-stage { position: relative; border: 1px solid var(--line); background: var(--ink); }
#challengeCanvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(5, 12, 24, 0.88);
  backdrop-filter: blur(4px);
  z-index: 5;
}
#chStartOverlay { background: rgba(5, 12, 24, 0.6); backdrop-filter: none; }
.ov-kicker { font-family: var(--display); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal); font-size: 0.85rem; }
.ov-title { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 0.9; text-transform: uppercase; }
.ov-title-sm { font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: var(--orange-hi); }
.ov-controls { color: rgba(246, 242, 233, 0.85); }
.ov-score { font-family: var(--display); font-weight: 900; font-size: 3rem; color: var(--orange-hi); }
.ov-score span { font-variant-numeric: tabular-nums; }
.ov-detail { max-width: 30rem; color: rgba(246, 242, 233, 0.8); }
.ov-fine { font-size: 0.82rem; color: rgba(246, 242, 233, 0.55); }
.ov-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.game-side { border: 1px solid var(--line); background: var(--navy); padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.side-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.12em; color: var(--orange-hi); }
.side-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; }
.side-list li { display: flex; align-items: center; gap: 0.6rem; }
.side-list b { margin-left: auto; font-family: var(--display); font-weight: 800; color: var(--teal); }
.chip { width: 14px; height: 14px; flex: none; border-radius: 3px; }
.chip-crumb { background: #d9a066; }
.chip-cereal { background: #ffb03a; border-radius: 50%; }
.chip-hair { background: #8b93b8; border-radius: 50% 50% 0 50%; }
.chip-mega { background: var(--orange); transform: rotate(45deg); }
.chip-boost { background: var(--teal); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.side-note { font-size: 0.82rem; color: rgba(246, 242, 233, 0.6); }
.side-versus { border-top: 1px solid var(--line); padding-top: 1rem; }
.sv-row { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.sv-row.dim { color: rgba(246, 242, 233, 0.45); }
.sv-bar { flex: 1; height: 10px; background: var(--ink); overflow: hidden; }
.sv-bar div { height: 100%; width: 0%; background: var(--orange); transition: width 0.2s; }
.sv-row.dim .sv-bar div { background: #5a6480; width: 100%; }
.sv-caption { font-size: 0.75rem; color: rgba(246, 242, 233, 0.5); margin-top: 0.4rem; }

/* ---------- showdown ---------- */
.showdown-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  max-width: 1240px;
  margin: 0 auto 2.2rem;
  align-items: stretch;
}
.versus-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--navy);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  overflow: hidden;
}
.versus-rival { background: #101623; clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
.versus-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.rival-logo {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  color: rgba(246, 242, 233, 0.4);
  border: 2px dashed rgba(246, 242, 233, 0.3);
  border-radius: 50%;
}
.versus-prod { width: min(78%, 340px); margin: 1.2rem auto 0.6rem; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.3, 1); }
.versus-card:hover .versus-prod { transform: translateY(-8px) rotate(-2deg); }
.rival-silhouette {
  width: min(62%, 260px);
  aspect-ratio: 0.9;
  margin: 1.2rem auto 0.6rem;
  background: linear-gradient(180deg, #232c3f, #141a29);
  clip-path: polygon(28% 0, 72% 0, 78% 12%, 78% 46%, 88% 52%, 88% 92%, 72% 100%, 28% 100%, 12% 92%, 12% 52%, 22% 46%, 22% 12%);
  opacity: 0.85;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
.versus-name { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; text-transform: uppercase; margin-top: auto; }
.versus-tag { font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--teal); margin-top: 0.4rem; }
.versus-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; min-width: 250px; }
.vs-burst {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1;
  color: var(--ink);
  background: var(--orange);
  padding: 0.08em 0.28em;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transform: rotate(-4deg);
  animation: vsPulse 2s ease-in-out infinite;
}
@keyframes vsPulse { 50% { transform: rotate(-4deg) scale(1.06); } }
.metric-tabs { display: flex; flex-direction: column; gap: 0.45rem; }
.mtab {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  padding: 0.55em 1.2em;
  background: transparent;
  color: rgba(246, 242, 233, 0.6);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.mtab:hover { color: var(--paper); border-color: rgba(246, 242, 233, 0.4); }
.mtab.active { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.vs-verdict { font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; color: var(--orange-hi); text-align: center; max-width: 240px; }

.metrics { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.metric {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 1.1rem 1.3rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.metric-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.8rem; }
.metric-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-nums { display: flex; gap: 1rem; font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; }
.metric-nums .sn { color: var(--orange-hi); font-size: 1.5rem; }
.metric-nums .rv { color: rgba(246, 242, 233, 0.45); font-size: 1.5rem; }
.metric-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.mbar-row { display: flex; align-items: center; gap: 0.6rem; }
.mbar-tag { font-family: var(--display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; width: 58px; flex: none; color: var(--teal); }
.mbar-tag.rv { color: rgba(246, 242, 233, 0.4); }
.mbar { flex: 1; height: 14px; background: var(--navy-3); }
.mbar div { height: 100%; width: 0%; transition: width 0.9s cubic-bezier(0.15, 0.9, 0.2, 1); }
.mbar .sn-fill { background: linear-gradient(90deg, var(--orange), var(--orange-hi)); }
.mbar .rv-fill { background: #4a5878; }
.ko-stamp {
  position: absolute;
  right: 12px; top: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  background: var(--orange);
  padding: 0.05em 0.4em;
  transform: rotate(8deg) scale(0);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: transform 0.3s cubic-bezier(0.2, 2.2, 0.4, 1);
}
.ko-stamp.on { transform: rotate(8deg) scale(1); }

/* ---------- mess lab ---------- */
.messlab-shell { max-width: 1240px; margin: 0 auto; }
.messlab-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.clean-meter { display: flex; align-items: baseline; gap: 0.8rem; }
.clean-meter .hud-value { color: #fff; }
.clean-track { flex: 1; min-width: 140px; height: 14px; background: rgba(5, 12, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.2); }
.clean-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #fff, var(--orange-hi)); transition: width 0.25s; }
.messlab-stage { position: relative; border: 1px solid rgba(255, 255, 255, 0.25); }
#messCanvas { display: block; width: 100%; height: auto; cursor: none; touch-action: none; }
.messlab-hint {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 3px 18px rgba(5, 12, 24, 0.8);
  pointer-events: none;
  transition: opacity 0.4s;
}
.messlab-hint.off { opacity: 0; }
.messlab-caption { margin-top: 1rem; color: rgba(246, 242, 233, 0.85); max-width: 44rem; }

/* ---------- rosters ---------- */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
  max-width: 1240px;
  margin: 0 auto;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--navy-2), var(--ink));
  padding: 1.3rem;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 1.3, 0.3, 1), border-color 0.2s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 176, 58, 0.5); }
.card-badge {
  position: absolute;
  top: 12px; right: -34px;
  transform: rotate(38deg);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.2em 2.6em;
}
.card-img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.3, 1); }
.card:hover .card-img { transform: scale(1.05) rotate(-1.5deg); }
.card-name { font-family: var(--display); font-weight: 900; font-size: 1.45rem; line-height: 1; text-transform: uppercase; margin-top: 0.6rem; }
.card-sub { font-size: 0.86rem; color: rgba(246, 242, 233, 0.65); margin: 0.35rem 0 0.8rem; }
.card-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(17, 184, 174, 0.4);
  padding: 0.25em 0.6em;
}
.card-chip.hot { color: var(--orange-hi); border-color: rgba(255, 176, 58, 0.45); }

/* ---------- field footage band ---------- */
.field-band {
  max-width: 1240px;
  margin: 2.6rem auto 0;
  position: relative;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
  overflow: hidden;
}
.field-band img { width: 100%; max-height: 420px; object-fit: cover; }
.field-band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(0deg, rgba(5, 12, 24, 0.88), transparent);
  font-size: 0.95rem;
  color: rgba(246, 242, 233, 0.9);
}
.field-band figcaption span {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--orange-hi);
  margin-right: 0.8rem;
}

/* ---------- speedrun ---------- */
.speedrun-shell { max-width: 1080px; margin: 0 auto; text-align: center; }
.sr-clock { display: inline-flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.6rem; }
.sr-time {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1;
  color: var(--orange-hi);
  font-variant-numeric: tabular-nums;
}
.sr-stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.sr-station {
  border: 1px solid var(--line);
  background: var(--navy);
  padding: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sr-station.active { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange), 0 14px 40px rgba(255, 90, 31, 0.25); transform: translateY(-4px); }
.sr-station.done { border-color: var(--teal); }
.sr-station img { width: 62%; margin: 0 auto 0.5rem; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45)); }
.sr-station-name { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.sr-bar { position: relative; height: 20px; background: var(--ink); overflow: hidden; }
.sr-zone { position: absolute; top: 0; bottom: 0; left: 41%; width: 18%; background: rgba(17, 184, 174, 0.35); border-inline: 2px solid var(--teal); }
.sr-marker { position: absolute; top: -2px; bottom: -2px; width: 6px; left: 0; background: var(--orange-hi); box-shadow: 0 0 12px var(--orange); }
.sr-result { min-height: 1.4em; margin-top: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; }
.sr-result.perfect { color: var(--teal); }
.sr-result.good { color: var(--orange-hi); }
.sr-result.miss { color: #ff7d6b; }
.sr-controls { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.sr-summary { margin-top: 2rem; border: 1px solid var(--line); background: var(--ink); padding: 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }

/* ---------- record board ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1240px;
  margin: 0 auto 2.4rem;
}
.bstat { background: var(--ink); padding: 1.6rem 1.3rem; }
.bstat-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.bstat-unit { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0.16em; color: var(--orange); margin-left: 0.4rem; }
.bstat p { margin-top: 0.6rem; font-size: 0.88rem; color: rgba(246, 242, 233, 0.65); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 1240px; margin: 0 auto; }
.chart-card { border: 1px solid var(--line); background: var(--navy); padding: 1.4rem; }
.chart-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--paper); }
.chart { width: 100%; height: auto; }
.chart-note { font-size: 0.78rem; color: rgba(246, 242, 233, 0.55); margin-top: 0.6rem; }
.chart .bar-sn { fill: var(--orange); }
.chart .bar-rv { fill: #4a5878; }
.chart text { font-family: var(--display); font-weight: 600; fill: rgba(246, 242, 233, 0.8); }
.chart .tick { stroke: rgba(255, 255, 255, 0.08); }
.chart .grow { transform-origin: left center; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.15, 0.9, 0.2, 1); }
.chart .grow.on { transform: scaleX(1); }

/* ---------- leaderboard + final CTA ---------- */
.ranks-shell { max-width: 760px; margin: 0 auto 4rem; }
.rank-tabs { display: flex; gap: 0.5rem; margin-bottom: 0; }
.rtab {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.6em 1.2em;
  background: rgba(5, 12, 24, 0.25);
  color: rgba(5, 12, 24, 0.65);
  border: 2px solid rgba(5, 12, 24, 0.4);
  border-bottom: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.rtab.active { background: var(--ink); color: var(--orange-hi); border-color: var(--ink); }
.rank-list {
  list-style: none;
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.6rem 0;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li.you { background: rgba(255, 90, 31, 0.14); }
.rank-pos { width: 2.2rem; font-weight: 900; color: var(--orange-hi); font-size: 1.3rem; }
.rank-name { flex: 1; letter-spacing: 0.06em; }
.rank-score { font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-list li.you .rank-name::after { content: ' · YOU'; color: var(--orange-hi); font-size: 0.8em; }
.rank-empty { padding: 1.4rem; text-align: center; color: rgba(246, 242, 233, 0.55); font-family: var(--display); letter-spacing: 0.08em; }
.cta-final { text-align: center; max-width: 900px; margin: 0 auto; }
.cta-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.9; color: var(--ink); text-transform: uppercase; }
.cta-sub { margin: 1rem 0 1.8rem; color: rgba(5, 12, 24, 0.8); font-size: 1.08rem; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: 3.4rem clamp(16px, 5vw, 72px) 2.6rem; border-top: 1px solid var(--line); }
.footer-brands { display: flex; gap: 2.2rem; align-items: center; margin-bottom: 1.4rem; }
.footer-logo { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-line { max-width: 56rem; font-size: 0.88rem; color: rgba(246, 242, 233, 0.6); }
.footer-fine { margin-top: 0.7rem; font-size: 0.78rem; color: rgba(246, 242, 233, 0.38); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .game-shell { grid-template-columns: 1fr; }
  .game-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .side-list { flex: 1 1 220px; }
  .side-versus { flex: 1 1 100%; }
  .showdown-shell { grid-template-columns: 1fr 1fr; }
  .versus-mid { grid-column: 1 / -1; grid-row: 1; }
  .metrics { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .hero { padding-top: 96px; }
  .hero-products { position: relative; width: 100%; right: auto; height: 240px; margin-top: 1.6rem; }
  .hp-a { right: 6%; width: 42%; }
  .hp-b { right: 52%; width: 34%; }
  .hero-scroll { display: none; }
  .showdown-shell { grid-template-columns: 1fr; }
  .sr-stations { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .game-hud { flex-wrap: wrap; }
  .hud-cell { flex: 1 1 45%; }
  .arena-clock { display: none; }
  .hud-value { font-size: 1.6rem; }
  .metric-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .vs-burst { font-size: 3rem; }
  .rank-tabs { flex-wrap: wrap; }
}
