/* ─────────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────────── */
:root {
  /* Brand-level tokens (--bg, --primary, sport accents, fonts) live in
     tokens.css, linked before this file. Homepage-only tokens below. */

  /* tray geometry */
  --rowH: 102px;
  --gap: 13px;
  --cols: 4;
  --headroom: 28px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg);
  /* character-select is a fixed 100dvh screen — no page scroll or rubber-banding, ever */
  overflow: hidden; overscroll-behavior: none;
}
::selection { background: rgba(91,140,255,.32); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes scanSweep { 0% { transform: translateY(-130%); } 100% { transform: translateY(130%); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* ─────────────────────────────────────────────────────
   BOOT SCREEN
───────────────────────────────────────────────────── */
@keyframes bootSweep { 0% { transform: translateY(-12vh); } 100% { transform: translateY(102vh); } }
@keyframes bootBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.boot {
  position: fixed; inset: 0; z-index: 500; overflow: hidden;
  background: #06080c; color: #f3f6f9;
  font-family: var(--disp); cursor: default;
  transition: opacity 0.5s ease;
}
.boot.ready { cursor: pointer; } /* input only dismisses once PRESS START shows */
.boot.dismissed { opacity: 0; pointer-events: none; }

.boot-field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}

.boot-corner {
  position: absolute; width: 18px; height: 18px; z-index: 4;
  border-style: solid; border-color: rgba(var(--primary),0.7); border-width: 0;
}
.boot-tl { top: 22px; left: 22px; border-top-width: 1.5px; border-left-width: 1.5px; }
.boot-tr { top: 22px; right: 22px; border-top-width: 1.5px; border-right-width: 1.5px; }
.boot-bl { bottom: 22px; left: 22px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.boot-br { bottom: 22px; right: 22px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.boot-layout {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; height: 100%; height: 100dvh;
  padding: 38px 48px 40px;
}

.boot-topbar { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.boot-brand { display: flex; align-items: center; gap: 11px; }
.boot-brand-mark {
  width: 11px; height: 11px; background: rgb(var(--primary)); display: inline-block;
  clip-path: polygon(0 0,100% 0,100% 100%); box-shadow: 0 0 14px rgba(var(--primary),0.6);
}
.boot-brand-text {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; color: rgba(243,246,249,0.62);
}
.boot-version { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: rgba(243,246,249,0.34); }

.boot-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.boot-ball { width: 84px; height: 84px; margin-bottom: 26px; display: block; }
.boot-wordmark { margin: 0; line-height: 0.86; letter-spacing: -0.03em; opacity: 0; transform: translateY(14px); }
.boot-wm-top {
  display: block; font-size: clamp(26px,3.6vw,46px); font-weight: 600;
  color: #f3f6f9; letter-spacing: 0.02em;
}
.boot-wm-field {
  display: block; font-size: clamp(92px,15vw,210px); font-weight: 700;
  color: rgb(var(--primary)); text-shadow: 0 0 48px rgba(var(--primary),0.4);
}
.boot-sub {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.4em; color: rgba(243,246,249,0.5); margin-top: 26px; opacity: 0;
}

.boot-bottom { flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.boot-lines { display: flex; flex-direction: column; gap: 9px; min-height: 128px; justify-content: flex-end; }
.boot-line {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px;
  color: rgba(243,246,249,0.52); display: flex; justify-content: space-between;
  align-items: center; gap: 24px; white-space: nowrap; overflow: hidden;
  opacity: 0; transform: translateX(-10px);
}
.boot-line-left { display: flex; align-items: center; gap: 12px; }
.boot-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  padding: 2px 6px; border-radius: 2px; border: 1px solid; flex-shrink: 0;
}
.boot-badge.sys { color: rgba(243,246,249,0.5); border-color: rgba(243,246,249,0.22); }
.boot-badge.nfl { color: rgb(var(--football));   border-color: rgba(var(--football),0.45); }
.boot-badge.mlb { color: rgb(var(--baseball));   border-color: rgba(var(--baseball),0.45); }
.boot-badge.nhl { color: rgb(var(--hockey));     border-color: rgba(var(--hockey),0.45); }
.boot-badge.nba { color: rgb(var(--basketball)); border-color: rgba(var(--basketball),0.45); }
.boot-ok { margin-left: 12px; font-weight: 600; color: rgba(243,246,249,0.6); flex-shrink: 0; }
.boot-ok.nfl { color: rgb(var(--football)); }
.boot-ok.mlb { color: rgb(var(--baseball)); }
.boot-ok.nhl { color: rgb(var(--hockey)); }
.boot-ok.nba { color: rgb(var(--basketball)); }

.boot-progress-row { display: flex; align-items: center; gap: 18px; }
.boot-bar-track {
  flex: 1; height: 5px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(to right, rgba(255,255,255,0.1) 0 1px, transparent 1px 38px);
}
.boot-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: rgb(var(--primary)); box-shadow: 0 0 12px rgba(var(--primary),0.7);
}
.boot-pct {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; color: rgb(var(--primary)); min-width: 42px; text-align: right;
}
.boot-press-row { height: 20px; text-align: center; }
.boot-press {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.34em; color: rgb(var(--primary)); opacity: 0;
}
.boot-press.blinking { animation: bootBlink 1s steps(1) infinite; opacity: 1; }

.boot-fx-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay; opacity: 0.6;
}
.boot-fx-sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 22vh; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(var(--primary),0.04), transparent);
  animation: bootSweep 6s linear infinite;
}
.boot-fx-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: radial-gradient(125% 80% at 50% 45%, transparent 50%, rgba(0,0,0,0.62) 100%);
}

@media (max-width: 759px) {
  .boot-layout { padding: 24px 20px 28px; }
  .boot-brand-text { font-size: 9px; letter-spacing: 0.14em; }
  .boot-version { display: none; }
  .boot-line { font-size: 10px; }
}

/* sport → accent variable */
.baseball   { --accent: var(--baseball); }
.football   { --accent: var(--football); }
.hockey     { --accent: var(--hockey); }
.basketball { --accent: var(--basketball); }

/* ─────────────────────────────────────────────────────
   SHELL
───────────────────────────────────────────────────── */
.app {
  position: relative;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: #f3f6f9;
  font-family: var(--disp);
  display: flex;
  flex-direction: column;
}

.fx-scanlines {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0px, rgba(255,255,255,.022) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay; opacity: .7;
}
.fx-sweep {
  position: fixed; left: 0; right: 0; top: 0; height: 140px; z-index: 151; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(120,160,255,.045), transparent);
  animation: scanSweep 7.5s linear infinite;
}
.fx-vignette {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  background: radial-gradient(125% 80% at 50% -10%, transparent 48%, rgba(0,0,0,.55) 100%);
}

/* ─────────────────────────────────────────────────────
   HUD
───────────────────────────────────────────────────── */
.hud {
  position: relative; z-index: 100; flex-shrink: 0;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(14px, 2.5vw, 34px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6,8,12,.72);
  backdrop-filter: blur(8px);
}
.hud-left { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 9px; height: 9px; background: rgb(var(--primary)); display: inline-block; clip-path: polygon(0 0,100% 0,100% 100%); }
.brand-name { font-family: var(--mono); font-size: clamp(10px, .9vw, 12px); font-weight: 600; letter-spacing: clamp(1px, .14vw, 2.2px); color: #f3f6f9; white-space: nowrap; }
.brand-green { color: rgb(var(--primary)); }
.hud-sub { font-family: var(--mono); font-size: clamp(9px, .8vw, 10px); letter-spacing: clamp(1px, .16vw, 2px); color: rgba(243,246,249,.38); white-space: nowrap; }

.hud-nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.nav-link {
  font-family: var(--mono); font-size: clamp(9px, .85vw, 11px); font-weight: 600; letter-spacing: clamp(.4px, .1vw, 1.5px);
  text-decoration: none; white-space: nowrap; padding: 4px 1px;
  color: rgba(243,246,249,.4); border-bottom: 1.5px solid transparent;
}
.nav-link.active { color: #f3f6f9; border-bottom-color: rgb(var(--primary)); }
.hud-online {
  display: flex; align-items: center; gap: 7px; padding-left: clamp(4px, .5vw, 8px);
  border-left: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: clamp(8px, .76vw, 10px); letter-spacing: clamp(.8px, .14vw, 2px); color: rgba(243,246,249,.45);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; animation: blink 2.4s ease-in-out infinite; }

/* ─────────────────────────────────────────────────────
   STAGE / HERO
───────────────────────────────────────────────────── */
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }

.hero {
  flex: 1; min-height: 0; min-width: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(28px, 7vh, 64px) 64px clamp(16px, 5vh, 48px);
}
.hero-motif {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  width: min(54vh, 580px); height: min(54vh, 580px);
  color: rgba(var(--accent), .13); z-index: 1; pointer-events: none;
}
.hero-motif svg { width: 100%; height: 100%; }
.hero-ball {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(60vh, 620px); height: min(60vh, 620px);
  display: block; z-index: 2;
  cursor: grab; touch-action: none; /* drag to spin (app.js trackball) */
}
.hero-ball:active { cursor: grabbing; }
.hero-watermark {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--disp); font-size: clamp(180px, 36vh, 470px); font-weight: 700;
  color: rgba(255,255,255,.022); line-height: 1; z-index: 1; pointer-events: none; letter-spacing: -.04em;
}
.hero-content { position: relative; z-index: 3; max-width: 620px; }

.sport-row { display: flex; align-items: center; gap: 13px; margin-bottom: clamp(8px, 2vh, 20px); }
.tick { width: 28px; height: 2px; background: rgb(var(--accent)); display: inline-block; }
.hero-sport { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .24em; color: rgb(var(--accent)); }

.hero-title {
  font-family: var(--disp); font-size: clamp(32px, min(6vw, 8.5vh), 88px); font-weight: 600;
  line-height: .97; letter-spacing: -.03em; color: #f3f6f9; margin: 0 0 clamp(10px, 2.5vh, 22px); text-wrap: balance;
}
.hero-desc {
  font-family: var(--disp); font-size: clamp(13px, min(1.15vw, 2.1vh), 18px); line-height: 1.6;
  color: rgba(243,246,249,.6); max-width: 460px; margin: 0 0 clamp(12px, 3vh, 26px);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(14px, 3.5vh, 30px); }
.hero-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em;
  color: rgba(243,246,249,.6); border: 1px solid rgba(255,255,255,.13); padding: 6px 11px; border-radius: 2px;
}
.hero-view {
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; color: rgb(var(--accent)); background: transparent; border: none; cursor: pointer; padding: 0;
}
.hero-soon {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: rgba(243,246,249,.5); border: 1px solid rgba(var(--accent), .55); padding: 9px 15px; border-radius: 2px; display: inline-block;
}

/* ─────────────────────────────────────────────────────
   SELECTOR / TRAY
───────────────────────────────────────────────────── */
.selector {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.012);
  padding: 20px 48px 24px;
  display: flex; flex-direction: column;
}
.selector-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-shrink: 0; gap: 12px; }
.selector-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb-back {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em;
  color: rgba(243,246,249,.72); background: transparent; border: 1px solid rgba(255,255,255,.18);
  padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.crumb-back:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.crumb-back.hidden { display: none; }
.select-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .2em;
  color: rgba(243,246,249,.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pager { display: flex; align-items: center; gap: 10px; }
.pager.hidden { display: none; }
.nav-btn {
  font-family: var(--mono); font-size: 13px; width: 27px; height: 23px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); color: rgba(243,246,249,.72);
  background: transparent; cursor: pointer; border-radius: 2px;
}
.page-ind { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(243,246,249,.34); white-space: nowrap; }

.tray {
  display: flex; flex-direction: row;
  /* hidden, not auto: pages move only via the pager buttons / arrow keys
     (programmatic scrollTo) — no wheel, trackpad, or touch dragging */
  overflow-x: hidden; overflow-y: hidden;
  height: calc(var(--rowH) * 2 + var(--gap) + var(--headroom));
  padding-top: var(--headroom);
  margin-top: -15px;
  scroll-behavior: smooth;
  transition: height .3s ease;
}
.tray.one-row { height: calc(var(--rowH) + var(--headroom)); }
.tray-scroll::-webkit-scrollbar { display: none; }
.tray-scroll { scrollbar-width: none; -ms-overflow-style: none; }

.page {
  flex: 0 0 100%; width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: var(--rowH);
  gap: var(--gap);
  align-content: end;
}

/* ── CARD (exact character-select spec) ───────────────── */
.card {
  position: relative; overflow: hidden; user-select: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  height: 100%; padding: 13px 16px 12px;
  border-style: solid; border-width: 2px 1px 1px 1px;
  border-top-color: transparent;
  border-right-color: rgba(255,255,255,.08);
  border-bottom-color: rgba(255,255,255,.08);
  border-left-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: background .2s, border-color .25s, transform .2s, box-shadow .25s;
}
.card:hover {
  background: rgba(255,255,255,.06);
  border-right-color: rgba(255,255,255,.16);
  border-bottom-color: rgba(255,255,255,.16);
  border-left-color: rgba(255,255,255,.16);
  transform: translateY(-3px);
}
.card.active {
  background: rgba(var(--accent), .05);
  border-color: rgb(var(--accent));
  box-shadow: 0 0 18px 1px rgba(var(--accent), .1), 0 -4px 24px rgba(var(--accent), .1);
  transform: translateY(-5px);
}

.cb { position: absolute; width: 8px; height: 8px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cb.tl { top: 5px; left: 5px; border-top: 1.5px solid rgb(var(--accent)); border-left: 1.5px solid rgb(var(--accent)); }
.cb.br { bottom: 5px; right: 5px; border-bottom: 1.5px solid rgb(var(--accent)); border-right: 1.5px solid rgb(var(--accent)); }
.card.active .cb { opacity: 1; }

.scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.014) 3px, rgba(255,255,255,.014) 4px);
}
.card.active .scan { opacity: 1; }

/* HUD draw-in when the tray switches level (sport ⇄ project select):
   staggered left-to-right wipe — each card materializes tinted in its
   sport accent, holds the glow, then flickers and settles back to its
   normal look. The accent props are absent from the 100% frame so every
   card eases back to its own underlying style (active card included);
   no transform, so it never fights the hover/active transforms. */
@keyframes cardIn {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0);
         background: rgba(var(--accent), .3); border-color: rgb(var(--accent));
         box-shadow: 0 0 20px rgba(var(--accent), .3); }
  55%  { opacity: 1; clip-path: inset(0 0 0 0);
         background: rgba(var(--accent), .3); border-color: rgb(var(--accent));
         box-shadow: 0 0 20px rgba(var(--accent), .3); }
  68%  { opacity: .5; }
  78%  { opacity: 1;
         background: rgba(var(--accent), .12); border-color: rgba(var(--accent), .5); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
.card.deal { animation: cardIn .5s cubic-bezier(.25,.6,.3,1) both; }

@keyframes hudIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero-content.hud-in { animation: hudIn .38s ease-out both; }

.c-num { position: relative; z-index: 1; font-family: var(--spg); font-size: 11px; letter-spacing: 2px; color: rgba(242,242,239,.34); display: block; margin-bottom: 6px; transition: color .25s; }
.card.active .c-num { color: rgba(242,242,239,.58); }
.c-sport { position: relative; z-index: 1; font-family: var(--spg); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 4px; opacity: .55; color: rgb(var(--accent)); transition: opacity .25s; }
.card.active .c-sport { opacity: 1; }
.c-name { position: relative; z-index: 1; font-family: var(--spg); font-size: 14px; letter-spacing: 1px; line-height: 1.1; color: rgba(242,242,239,.58); display: block; white-space: normal; transition: color .25s; }
.card.active .c-name { color: #fff; }
.c-soon {
  position: absolute; top: 12px; right: 10px;
  font-family: var(--spg); font-size: 7px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 2px 5px; border: 1px solid rgb(var(--accent)); color: rgb(var(--accent)); opacity: .65; line-height: 1; pointer-events: none;
}
.c-count { /* project-file count on the sport-select cards */
  position: absolute; top: 12px; right: 10px;
  font-family: var(--spg); font-size: 7px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 2px 5px; border: 1px solid rgba(255,255,255,.2); color: rgba(242,242,239,.48); line-height: 1; pointer-events: none;
  transition: color .25s, border-color .25s;
}
.card.active .c-count { color: rgb(var(--accent)); border-color: rgba(var(--accent), .7); }

/* ─────────────────────────────────────────────────────
   DETAIL OVERLAY
───────────────────────────────────────────────────── */
.detail {
  position: fixed; inset: 0; z-index: 200; background: #070910; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.detail.open { opacity: 1; pointer-events: auto; }
.detail-inner { max-width: 1140px; margin: 0 auto; padding: 34px 48px 90px; }

.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 50px; }
.detail-back {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .16em;
  color: rgba(243,246,249,.75); background: transparent; border: 1px solid rgba(255,255,255,.16);
  padding: 9px 16px; border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.detail-file { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(243,246,249,.32); }

.detail-inner .sport-row { margin-bottom: 18px; }
.detail-title {
  font-family: var(--disp); font-size: clamp(40px, 5.5vw, 76px); font-weight: 600;
  line-height: .98; letter-spacing: -.03em; margin: 0 0 20px; color: #fff; text-wrap: balance;
}
.detail-desc {
  font-family: var(--disp); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.5;
  color: rgba(243,246,249,.62); max-width: 620px; margin: 0 0 26px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; }
.divider { height: 1px; background: linear-gradient(to right, rgba(255,255,255,.16), transparent); margin-bottom: 48px; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.section-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: rgb(var(--accent)); margin-bottom: 18px; }
.overview { font-family: var(--disp); font-size: 17px; line-height: 1.7; color: rgba(243,246,249,.78); margin: 0 0 48px; }
.approach { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 18px; align-items: baseline; }
.step-num { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgb(var(--accent)); flex-shrink: 0; padding-top: 2px; }
.step-text { font-family: var(--disp); font-size: 16px; line-height: 1.55; color: rgba(243,246,249,.78); }

.metrics { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); margin-bottom: 42px; }
.metric-row { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 20px; background: var(--bg); }
.metric-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: rgba(243,246,249,.45); }
.metric-val { font-family: var(--disp); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: #fff; }

.links { display: flex; flex-direction: column; gap: 10px; }
.link { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: rgb(var(--accent)); text-decoration: none; border: 1px solid rgba(255,255,255,.12); padding: 12px 16px; border-radius: 2px; display: block; }

.viz {
  margin-top: 56px; height: 340px; border: 1px dashed rgba(255,255,255,.14);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0px, rgba(255,255,255,.018) 10px, transparent 10px, transparent 20px);
  display: flex; align-items: center; justify-content: center;
}
.viz-text { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: rgba(243,246,249,.34); text-align: center; padding: 0 16px; }

/* ─────────────────────────────────────────────────────
   NARROW (< 960px wide) — hide secondary HUD text
───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hud-sub { display: none; }
}

/* ─────────────────────────────────────────────────────
   SHORT VIEWPORT  (< 640px tall)
───────────────────────────────────────────────────── */
@media (max-height: 640px) {
  .hero-tags { display: none; }
}

/* ─────────────────────────────────────────────────────
   MOBILE  (< 760px)
───────────────────────────────────────────────────── */
@media (max-width: 759px) {
  :root { --rowH: 94px; --gap: 10px; --cols: 2; }

  .hud { height: 46px; padding: 0 15px; }
  .hud-sub, .hud-online { display: none; }
  .nav-link { font-size: 10px; letter-spacing: .1em; }

  .hero { flex: 1 1 auto; padding: 34px 20px 14px; }
  .hero-content { max-width: none; }
  .sport-row { margin-bottom: 12px; }
  .hero-sport { font-size: 11px; }
  .hero-title { font-size: clamp(30px, 8.5vw, 44px); margin: 0 0 14px; }
  .hero-desc {
    font-size: 14px; line-height: 1.5; max-width: none; margin: 0 0 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-tags { display: none; }
  .hero-motif { right: -16%; top: 42%; width: min(78vw, 420px); height: min(78vw, 420px); }
  .hero-ball { right: -18%; top: 44%; width: min(82vw, 440px); height: min(82vw, 440px); }
  .hero-watermark { right: 2%; top: 46%; font-size: clamp(150px, 42vw, 280px); }

  .selector { padding: 14px 16px 18px; }
  .select-label { font-size: 9.5px; letter-spacing: .14em; }

  .detail-inner { padding: 22px 20px 60px; }
  .detail-head { margin-bottom: 34px; }
  .detail-title { font-size: clamp(30px, 8.5vw, 44px); }
  .detail-desc { font-size: 15px; }
  .detail-tags { margin-bottom: 34px; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .viz { margin-top: 40px; height: 200px; }
}
