/* ==========================================================================
   82-0 Web Edition — Game styles
   Shares the marketing site's tokens (Outfit/Inter, #ff5500 orange, gold, cyan)
   with an arcade-style TEAM + ERA slot machine for the draft spin.
   ========================================================================== */

:root {
  --bg: #080b11;
  --bg-2: #0c1119;
  --surface: #101720;
  --card: #141c27;
  --card-2: #1a2432;
  --card-3: #222e3f;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f5f7fa;
  --text-2: #9aa7ba;
  --text-3: #6b7a90;

  --orange: #ff5500;
  --orange-2: #ff7a2e;
  --orange-glow: rgba(255, 85, 0, 0.45);
  --gold: #ffc726;
  --cyan: #00d2ff;
  --magenta: #e056fd;
  --violet: #8b5cf6;
  --win: #34d399;
  --loss: #f87171;

  --paper: #f4eedf;
  --paper-2: #e6dbc4;
  --ink: #2a251d;
  --ink-2: #6d6354;
  --folder: #262420;
  --folder-2: #312e28;
  --folder-line: #45413a;

  --pg: #3b82f6;
  --sg: #8b5cf6;
  --sf: #10b981;
  --pf: #f59e0b;
  --c: #ef4444;
  --six: #ffc726;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 17px;
  --r-xl: 24px;
  --topbar-h: 60px;
  --tabbar-h: 68px;
  --sidebar-w: 232px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #070a0f, var(--bg) 45%, #090e16);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }

/* Ambient arena backdrop ------------------------------------------------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(255, 85, 0, 0.12), transparent 62%),
    radial-gradient(circle at 92% 32%, rgba(0, 210, 255, 0.045), transparent 38%),
    radial-gradient(circle at 8% 85%, rgba(255, 199, 38, 0.035), transparent 38%),
    linear-gradient(180deg, #05070b 0%, var(--bg) 45%, #0a0f17 100%);
}
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: 0.035;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* Splash ------------------------------------------------------------------ */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity 0.45s var(--ease), visibility 0.45s;
}
#splash.hide { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; gap: 18px; }
.splash-mark { font-family: var(--font-display); font-weight: 900; font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.splash-mark span { color: var(--orange); }
.splash-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.splash-bar::after { content: ''; display: block; height: 100%; width: 40%; background: var(--orange); border-radius: 3px; animation: splash-load 1s var(--ease) infinite; }
@keyframes splash-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.splash-error { color: var(--text-2); max-width: 320px; text-align: center; font-size: 14px; }

/* Game library sidebar ---------------------------------------------------- */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(var(--sidebar-w), calc(100vw - 42px));
  display: flex; flex-direction: column; padding: 18px 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 85, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #101620 0%, #090d14 100%);
  border-right: 1px solid var(--line-2); box-shadow: 22px 0 60px rgba(0, 0, 0, 0.38);
  transform: translateX(-105%); transition: transform 0.32s var(--ease);
}
.sidebar-open .app-sidebar { transform: translateX(0); }
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 55; visibility: hidden; opacity: 0;
  background: rgba(2, 4, 7, 0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.25s, visibility 0.25s;
}
.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
.sidebar-open { overflow: hidden; }
.app-sidebar-head { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 10px; padding: 2px 2px 18px; border-bottom: 1px solid var(--line); }
.studio-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(145deg, #ff7a2e, #ff4400); color: #fff;
  font-family: var(--font-display); font-size: 24px; font-weight: 900; box-shadow: 0 10px 26px -10px var(--orange-glow);
}
.app-sidebar-head > div:nth-child(2) { display: grid; line-height: 1.1; }
.app-sidebar-head b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.05em; }
.app-sidebar-head span { margin-top: 5px; color: var(--text-3); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.sidebar-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--text-2); }
.sidebar-close:hover { color: var(--text); background: var(--card-2); }
.sidebar-close svg { width: 18px; height: 18px; }
.app-sidebar-label { padding: 20px 8px 9px; color: var(--text-3); font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em; }
.app-list { display: grid; gap: 7px; }
.app-option {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px;
  width: 100%; min-height: 62px; padding: 8px 9px; border: 1px solid transparent; border-radius: 15px;
  color: var(--text-2); text-align: left; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.app-option:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); transform: translateX(2px); }
.app-option.active { color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--game-accent) 16%, transparent), rgba(255, 255, 255, 0.025)); border-color: color-mix(in srgb, var(--game-accent) 34%, transparent); }
.app-option-mark {
  display: block; width: 46px; height: 46px; border-radius: 13px; overflow: hidden;
  background: color-mix(in srgb, var(--game-accent) 13%, var(--card-2));
  border: 1px solid color-mix(in srgb, var(--game-accent) 34%, transparent);
  box-shadow: 0 8px 20px -14px var(--game-accent);
}
.app-option-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-option-copy { display: grid; min-width: 0; }
.app-option-copy b { color: currentColor; font-family: var(--font-display); font-size: 15px; line-height: 1.1; }
.app-option-copy small { margin-top: 4px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.app-option-status { padding: 3px 7px; border-radius: 999px; background: var(--card-2); color: var(--text-3); font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.app-option-status.live { background: rgba(52, 211, 153, 0.12); color: var(--win); }
.app-sidebar-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 16px 8px 4px; color: var(--text-3); font-size: 10.5px; border-top: 1px solid var(--line); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange-glow); }
.sidebar-toggle { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.sidebar-toggle:hover { color: var(--text); border-color: var(--line-2); }
.sidebar-toggle svg { width: 19px; height: 19px; }

/* Top bar ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 13px; padding: 0 16px;
  background: rgba(8, 11, 17, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -12px var(--orange-glow); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -0.03em; }
.brand-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; color: var(--orange); margin-top: 3px; }
.top-tabs { display: none; margin-inline: auto; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.top-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.top-tab svg { width: 16px; height: 16px; }
.top-tab:hover { color: var(--text); }
.top-tab[aria-current='page'] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-tab[aria-current='page'] svg { color: var(--orange); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: #fff; color: #000; font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.app-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); }
.app-pill svg { width: 15px; height: 15px; }
.site-link { display: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 8px 10px; }
.site-link:hover { color: var(--text); }

/* Bottom tab bar (mobile) ------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(9, 13, 19, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current='page'] { color: var(--orange); }
body.in-flow .tabbar { display: none; }
.app-pill[hidden] { display: none !important; }

/* Main view ---------------------------------------------------------------- */
#view { display: block; outline: none; padding: 18px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: 1140px; margin: 0 auto; }
body.in-flow #view { padding-bottom: 40px; }
.view-enter { animation: view-in 0.45s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Other games ------------------------------------------------------------- */
.game-preview {
  position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center;
  min-height: calc(100dvh - var(--topbar-h) - 56px); overflow: hidden; padding: 64px 24px;
  text-align: center; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(20, 28, 41, 0.85), rgba(10, 15, 23, 0.94));
  box-shadow: var(--shadow);
}
.preview-glow { position: absolute; z-index: -1; top: -35%; width: 560px; height: 560px; border-radius: 50%; background: var(--game-accent); opacity: 0.13; filter: blur(80px); }
.preview-record { display: flex; align-items: center; color: var(--text); font-family: var(--font-display); font-size: clamp(64px, 12vw, 132px); font-weight: 900; line-height: 0.9; letter-spacing: -0.07em; }
.preview-record i { margin: 0 0.08em; color: var(--game-accent); font-style: normal; }
.preview-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 30px; padding: 6px 11px; border-radius: 999px; color: var(--game-accent); background: color-mix(in srgb, var(--game-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--game-accent) 28%, transparent); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.game-preview h1 { margin-top: 18px; font-family: var(--font-display); font-size: clamp(32px, 6vw, 56px); font-weight: 900; letter-spacing: -0.04em; }
.game-preview p { max-width: 540px; margin: 10px 0 26px; color: var(--text-2); font-size: 16px; line-height: 1.7; }

/* Shared atoms -------------------------------------------------------------- */
.kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.kicker.muted { color: var(--text-3); }
.h-display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.card {
  background: linear-gradient(180deg, rgba(25, 35, 49, 0.82), rgba(16, 23, 32, 0.9));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 17px;
  box-shadow: 0 16px 36px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--card-3); color: var(--text-2); border: 1px solid var(--line);
}
.chip.orange { background: rgba(255, 85, 0, 0.12); color: var(--orange-2); border-color: rgba(255, 85, 0, 0.3); }
.chip.win { background: rgba(52, 211, 153, 0.12); color: var(--win); border-color: rgba(52, 211, 153, 0.3); }
.chip.loss { background: rgba(248, 113, 113, 0.12); color: var(--loss); border-color: rgba(248, 113, 113, 0.3); }
.chip.gold { background: rgba(255, 199, 38, 0.12); color: var(--gold); border-color: rgba(255, 199, 38, 0.3); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live .dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.015em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #ff6a1a 0%, #ff4400 100%); color: #fff;
  box-shadow: 0 12px 32px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 16px 34px -10px rgba(255, 85, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:not(:disabled):active { transform: translateY(0) scale(0.98); }
.btn-secondary { background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-secondary:not(:disabled):hover { background: var(--card-3); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--text-2); border: 1px dashed var(--line-2); }
.btn-ghost:not(:disabled):hover { color: var(--text); border-color: var(--text-3); }
.btn-gold { background: rgba(255, 199, 38, 0.1); color: var(--gold); border: 1px solid rgba(255, 199, 38, 0.35); }
.btn-gold:not(:disabled):hover { background: rgba(255, 199, 38, 0.16); }
.btn-xl { min-height: 54px; font-size: 16px; border-radius: 14px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn .badge-count { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); background: var(--card-2); }
.icon-btn svg { width: 18px; height: 18px; }
kbd {
  font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 5px;
  background: var(--card-3); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text-2);
}
.kbd-hint { display: none; font-size: 12px; color: var(--text-3); gap: 12px; flex-wrap: wrap; }
.kbd-hint span { display: inline-flex; align-items: center; gap: 6px; }

/* Position + rating atoms --------------------------------------------------- */
.pos { --pc: var(--text-3); display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--pc); background: color-mix(in srgb, var(--pc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent); }
.pos.PG, .tok.PG { --pc: var(--pg); }
.pos.SG, .tok.SG { --pc: var(--sg); }
.pos.SF, .tok.SF { --pc: var(--sf); }
.pos.PF, .tok.PF { --pc: var(--pf); }
.pos.C, .tok.C { --pc: var(--c); }
.pos.SIX, .tok.SIX { --pc: var(--six); }
.pos.sec { opacity: 0.6; }

.hex {
  --hc: var(--cyan); --size: 64px;
  position: relative; width: var(--size); height: calc(var(--size) * 1.1); flex-shrink: 0;
  display: grid; place-content: center; text-align: center; line-height: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 100%, #fff 20%), color-mix(in srgb, var(--hc) 70%, #000 30%));
  color: #06121a;
}
.hex b { font-family: var(--font-display); font-weight: 900; font-size: calc(var(--size) * 0.42); letter-spacing: -0.02em; }
.hex small { font-size: calc(var(--size) * 0.15); font-weight: 800; letter-spacing: 0.08em; opacity: 0.8; margin-top: 1px; }
.hex.sm { --size: 40px; }
.hex.sm small { display: none; }
.hex.t-gold { --hc: var(--gold); }
.hex.t-orange { --hc: var(--orange-2); color: #1a0800; }
.hex.t-cyan { --hc: var(--cyan); }
.hex.t-slate { --hc: #8aa0bd; }

.team-badge {
  --tc: #333; --tc2: #fff;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 100%, #fff 12%), color-mix(in srgb, var(--tc) 80%, #000 20%));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc2) 55%, transparent), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.team-badge.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 21px; }

.avatar {
  --pc: var(--text-3);
  display: grid; place-items: center; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pc) 55%, #1b2333), #0e131c 75%);
  box-shadow: 0 0 0 2px var(--pc), 0 0 22px -4px color-mix(in srgb, var(--pc) 70%, transparent);
  font-family: var(--font-display); font-weight: 800; color: #fff; letter-spacing: 0.02em;
}

/* ==========================================================================
   HOME
   ========================================================================== */
.home-hero { position: relative; text-align: center; padding: 18px 0 6px; overflow: hidden; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em;
  font-size: clamp(72px, 15vw, 126px);
  background: linear-gradient(180deg, #ffffff 24%, #aeb9c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(255, 85, 0, 0.25));
}
.hero-kicker { margin-top: 11px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.24em; color: var(--orange-2); }
.hero-sub { margin-top: 5px; color: var(--text-2); font-size: 14px; }

.ball-stage { position: relative; height: 140px; display: grid; place-items: center; margin: 6px 0 2px; }
.ball-float { width: 72px; height: 72px; animation: ball-bob 3.8s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(255, 106, 26, 0.48)); }
.ball-ring {
  position: absolute; bottom: 24px; width: 120px; height: 20px; border-radius: 50%;
  border: 2px solid var(--orange-2); box-shadow: 0 0 20px rgba(255, 85, 0, 0.38), inset 0 0 12px rgba(255, 85, 0, 0.34);
  animation: ring-glow 3.2s ease-in-out infinite;
}
.ball-floor {
  position: absolute; left: 50%; bottom: -76px; width: 760px; height: 190px; transform: translateX(-50%) perspective(260px) rotateX(58deg);
  background-image: linear-gradient(rgba(255, 122, 46, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 122, 46, 0.18) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); pointer-events: none;
}
@keyframes ball-bob { 0%, 100% { transform: translateY(-14px) rotate(-8deg); } 50% { transform: translateY(8px) rotate(8deg); } }
@keyframes ring-glow { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }

.hero-cta { display: grid; gap: 9px; width: min(100%, 400px); margin: 2px auto 0; }
.hero-cta .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-cta .btn { min-width: 0; padding-inline: 14px; }
.hero-cta .resume-note { font-size: 12.5px; color: var(--text-3); }

.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: min(100%, 580px); margin: 20px auto 0; }
.stat-tile { min-width: 0; padding: 12px 7px; border-radius: var(--r-md); background: rgba(20, 28, 39, 0.72); border: 1px solid var(--line); text-align: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02); }
.stat-tile b { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.1; }
.stat-tile span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.stat-tile.gold b { color: var(--gold); }

.home-grid { display: grid; gap: 14px; margin-top: 22px; }
.home-grid > * { min-width: 0; }
.loop-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.loop-step { min-width: 0; text-align: center; padding: 12px 5px; border-radius: var(--r-md); background: rgba(14, 21, 30, 0.75); border: 1px solid var(--line); }
.loop-step i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: rgba(255, 85, 0, 0.14); color: var(--orange-2); font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: 14px; }
.loop-step b { display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; }
.loop-step span { font-size: 11.5px; color: var(--text-3); }

.run-list { display: grid; gap: 8px; }
.run-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.run-row:hover { border-color: var(--line-2); background: var(--card); }
.run-rec { font-family: var(--font-display); font-weight: 900; font-size: 22px; min-width: 70px; }
.run-meta { min-width: 0; }
.run-meta b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-meta span { font-size: 12px; color: var(--text-3); }
.run-side { display: grid; justify-items: end; gap: 4px; }
.tier-chip { --tier: var(--text-3); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); white-space: nowrap; }
.empty { text-align: center; padding: 26px 12px; color: var(--text-3); font-size: 14px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }

.promo {
  position: relative; overflow: hidden; display: grid; gap: 14px; align-items: center;
  padding: 22px; border-radius: var(--r-xl); margin-top: 16px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 85, 0, 0.25), transparent 55%), linear-gradient(135deg, #161e2c, #0e141d);
  border: 1px solid rgba(255, 85, 0, 0.25);
}
.promo img.promo-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(255, 85, 0, 0.6); }
.promo h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.promo p { color: var(--text-2); font-size: 14px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 13px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; width: fit-content;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.app-badge:hover { transform: translateY(-2px); border-color: #fff; }
.app-badge svg { width: 24px; height: 24px; }
.app-badge small { display: block; font-size: 10.5px; line-height: 1; opacity: 0.85; }
.app-badge b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.1; font-weight: 700; }

/* ==========================================================================
   DRAFT
   ========================================================================== */
.flow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; padding: 10px 12px; border-radius: 15px; background: rgba(16, 23, 32, 0.62); border: 1px solid var(--line); }
.flow-title { flex: 1; min-width: 0; }
.flow-title h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; line-height: 1.1; }
.pips { display: flex; gap: 5px; }
.pip { width: 22px; height: 6px; border-radius: 3px; background: var(--card-3); transition: background 0.3s; }
.pip.done { background: var(--orange); }
.pip.now { background: var(--orange); opacity: 0.45; animation: pulse-op 1.4s ease-in-out infinite; }
.pip.six.done { background: var(--gold); }
@keyframes pulse-op { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }

.stages { display: flex; align-items: center; list-style: none; margin: 0 0 14px; max-width: 430px; padding: 0 4px; }
.stage { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.stage i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; border: 2px solid var(--card-3); background: var(--surface); }
.stage i svg { width: 12px; height: 12px; }
.stage.on { color: var(--text); }
.stage.on i { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 12px -2px var(--orange-glow); }
.stage.done { color: var(--text-2); }
.stage.done i { background: var(--orange); border-color: var(--orange); color: #fff; }
.stage-line { flex: 1; height: 2px; margin: 0 10px; background: var(--card-3); min-width: 16px; }
.stage-line.done { background: var(--orange); }

.draft-grid { display: grid; gap: 14px; }
.draft-main { min-width: 0; }
.draft-aside { display: none; }
.phase-head { margin: 0 auto 12px; max-width: 620px; text-align: center; }
.phase-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.phase-head p { color: var(--text-2); font-size: 13.5px; margin: 4px auto 0; max-width: 540px; }

/* Lineup strip (mobile) */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.strip-slot {
  --pc: var(--text-3);
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 7px 2px 6px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.strip-slot .avatar { width: 30px; height: 30px; font-size: 11px; }
.strip-slot .s-pos { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--pc); }
.strip-slot .s-empty { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--pc) 55%, transparent); display: grid; place-items: center; color: var(--pc); font-size: 16px; font-weight: 700; }
.strip-slot.now { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 0 18px -6px var(--orange-glow); }
.strip-slot.now .s-empty { border-color: var(--orange); color: var(--orange); animation: pulse-op 1.4s ease-in-out infinite; }
.strip-slot.pickable { cursor: pointer; }
.strip-slot.pickable:hover { border-color: var(--line-2); }
.strip-slot.PG { --pc: var(--pg); } .strip-slot.SG { --pc: var(--sg); } .strip-slot.SF { --pc: var(--sf); }
.strip-slot.PF { --pc: var(--pf); } .strip-slot.C { --pc: var(--c); } .strip-slot.SIX { --pc: var(--six); }

.hint { margin-top: 14px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.hint svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Slot machine — TEAM + ERA reels */
.slot {
  --item-h: 74px; --win-h: 124px; --label-h: 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 610px; margin: 6px auto 0;
}
.reel-cab {
  --c1: #ffb553; --c2: #f37b1d; --c3: #a94a08; --ink: #3d1700; --glow: rgba(255, 122, 46, 0.55); --rail: #ff9a3c;
  position: relative; padding: 0 8px 9px; border-radius: 19px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(180deg, var(--c1) 0%, var(--c2) 46%, var(--c3) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 20px 40px -24px var(--glow), 0 2px 0 rgba(0, 0, 0, 0.45);
}
.reel-cab.era { --c1: #c391ff; --c2: #8c4af2; --c3: #4c18a6; --ink: #210748; --glow: rgba(139, 92, 246, 0.6); --rail: #b57cff; }
.reel-cab::after {
  content: ''; position: absolute; inset: -3px; border-radius: 22px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--c1), 0 0 42px 6px var(--glow);
}
.reel-cab.won::after { animation: cab-glow 1.6s ease-out; }
@keyframes cab-glow { 12% { opacity: 1; } 100% { opacity: 0; } }

.reel-label {
  height: var(--label-h); display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: 0.16em; color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.leds { display: flex; gap: 4px; }
.led { width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.25); }
.reel-cab.spinning .led { animation: led-chase 0.42s steps(1) infinite; animation-delay: calc(var(--i) * 0.14s); }
@keyframes led-chase { 0%, 49% { background: #fff7d1; box-shadow: 0 0 9px #fff1a8, 0 0 2px #fff; } 50%, 100% { background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.45); } }
.reel-cab.won .led { background: #fff7d1; box-shadow: 0 0 9px #fff1a8; animation: led-blink 0.3s steps(1) 5; }
@keyframes led-blink { 50% { background: rgba(0, 0, 0, 0.3); box-shadow: none; } }

.reel-bezel {
  padding: 3px; border-radius: 14px;
  background: linear-gradient(180deg, #f4f7fb 0%, #a3aec0 26%, #4a5466 52%, #9ba6b7 76%, #eef2f7 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.reel-window {
  position: relative; height: var(--win-h); border-radius: 11px; overflow: hidden;
  background: linear-gradient(180deg, #05070c 0%, #1e2738 24%, #2f3b54 50%, #1e2738 76%, #05070c 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85);
}
.reel-strip { position: absolute; left: 0; right: 0; top: 50%; will-change: transform; }
.ri { height: var(--item-h); display: grid; place-content: center; justify-items: center; gap: 4px; padding: 0 22px; text-align: center; }
.ri-q {
  font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1;
  background: linear-gradient(180deg, #ffffff 8%, #c6cedb 52%, #7b8596 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.65));
  animation: q-bob 2.6s ease-in-out infinite;
}
@keyframes q-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.ri .team-badge { width: 34px; height: 34px; font-size: 10.5px; border-radius: 10px; }
.ri-name {
  font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.15; color: #fff; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ri-era { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.ri-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-2); }
.reel-cab.won .ri.target { animation: ri-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
.reel-cab.won .ri.target .ri-era, .reel-cab.won .ri.target .ri-name { text-shadow: 0 0 18px var(--glow); }
@keyframes ri-pop { from { transform: scale(0.82); } to { transform: scale(1); } }

.rail { position: absolute; top: -14%; bottom: -14%; width: 34px; border: 2px solid transparent; border-radius: 50%; pointer-events: none; z-index: 2; }
.rail.l { left: 6px; border-left-color: var(--rail); filter: drop-shadow(0 0 5px var(--glow)); }
.rail.r { right: 6px; border-right-color: var(--rail); filter: drop-shadow(0 0 5px var(--glow)); }
.rail::after { content: ''; position: absolute; inset: 0 0 0 0; border: 2px solid transparent; border-radius: 50%; }
.rail.l::after { left: -9px; border-left-color: rgba(226, 233, 243, 0.6); }
.rail.r::after { right: -9px; border-right-color: rgba(226, 233, 243, 0.6); }
.reel-cab.spinning .rail { animation: rail-pulse 0.5s ease-in-out infinite alternate; }
@keyframes rail-pulse { to { filter: drop-shadow(0 0 12px var(--glow)) brightness(1.3); } }
.reel-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 14% at 50% 18%, rgba(255, 255, 255, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(3, 5, 9, 0.98) 0%, rgba(3, 5, 9, 0.78) 18%, rgba(3, 5, 9, 0.25) 32%, transparent 40%, transparent 60%, rgba(3, 5, 9, 0.25) 68%, rgba(3, 5, 9, 0.78) 82%, rgba(3, 5, 9, 0.98) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.45));
}
.payline {
  position: absolute; z-index: 3; top: calc(var(--label-h) + 4px + var(--win-h) / 2); transform: translateY(-50%);
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}
.payline.l { left: 1px; border-left: 7px solid #fff; }
.payline.r { right: 1px; border-right: 7px solid #fff; }

.spin-actions { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.spin-btn {
  width: min(360px, 100%); min-height: 54px; border-radius: 14px; font-size: 17px; font-weight: 900; letter-spacing: 0.14em;
}
.spin-btn svg { width: 20px; height: 20px; }
.spin-btn:not(:disabled) { animation: none; }
.spin-btn:not(:disabled):hover { box-shadow: 0 16px 36px -10px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 4px rgba(255, 85, 0, 0.12); }
.spin-btn.spinning { opacity: 1 !important; filter: saturate(0.8) brightness(0.9); }
.spin-btn.spinning svg { animation: rot 0.55s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes spin-invite {
  0%, 100% { box-shadow: 0 12px 32px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(255, 85, 0, 0.4); }
  60% { box-shadow: 0 12px 32px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 14px rgba(255, 85, 0, 0); }
}
.spin-actions .hint { margin-top: 0; }

.spin-result {
  max-width: 650px; margin: 16px auto 0; padding: 16px; border-radius: 18px; display: grid; gap: 14px;
  background: linear-gradient(180deg, rgba(25, 34, 51, 0.8), rgba(19, 27, 39, 0.9)); border: 1px solid var(--line-2);
  animation: view-in 0.5s var(--ease) 0.15s both;
}
.sr-top { display: flex; align-items: center; gap: 16px; }
.sr-text { min-width: 0; flex: 1; }
.sr-text b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; margin-top: 2px; }
.sr-text > span { font-size: 14px; color: var(--text-2); }
.sr-count { text-align: center; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sr-count b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; }
.sr-count span { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.sr-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.compare-head .btn-sm { margin-left: auto; flex-shrink: 0; }

/* Compare */
.compare-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.compare-head .t { min-width: 0; }
.compare-head .t b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.compare-head .t span { font-size: 13px; color: var(--text-2); }
.compare-grid { display: grid; gap: 14px; }
.plist { display: grid; gap: 8px; align-content: start; }
.prow {
  --pc: var(--text-3);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  animation: view-in 0.4s var(--ease) both;
}
.prow:hover { border-color: var(--line-2); }
.prow[aria-selected='true'] { border-color: var(--orange); background: linear-gradient(90deg, rgba(255, 85, 0, 0.1), var(--card)); box-shadow: 0 0 0 1px var(--orange); }
.prow-main { min-width: 0; }
.prow-name { display: block; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.prow-sub .pos { height: 18px; min-width: 26px; font-size: 10px; padding: 0 5px; flex-shrink: 0; }
.prow-sub .arch { overflow: hidden; text-overflow: ellipsis; }
.mini-bars { display: grid; gap: 4px; width: 84px; }
.mini-bar { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; color: var(--text-3); letter-spacing: 0.04em; }
.mini-bar i { display: block; height: 4px; border-radius: 2px; background: var(--card-3); overflow: hidden; }
.mini-bar i::after { content: ''; display: block; height: 100%; width: var(--v); background: var(--bc, var(--orange-2)); border-radius: 2px; }

.pcard {
  position: relative; padding: 20px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.12), transparent 60%), linear-gradient(180deg, #121c29, #0e1520);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.08), 0 20px 50px -20px rgba(0, 210, 255, 0.25);
}
.pcard.swap { animation: card-swap 0.35s var(--ease); }
@keyframes card-swap { from { opacity: 0.4; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard-pos { display: grid; justify-items: end; gap: 4px; }
.pcard-pos .pos { height: 28px; min-width: 42px; font-size: 13px; border-radius: 999px; }
.pcard-pos small { font-size: 11px; font-weight: 800; color: var(--text-3); letter-spacing: 0.08em; }
.pcard-id { display: grid; justify-items: center; text-align: center; margin-top: -18px; }
.pcard-id .avatar { width: 92px; height: 92px; font-size: 30px; }
.pcard-name { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.era-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--magenta); }
.era-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pcard-arch { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin-top: 18px; }
.ring { display: flex; align-items: center; gap: 9px; }
.ring svg { width: 44px; height: 44px; flex-shrink: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--card-3); }
.ring .val { stroke: var(--rc); stroke-linecap: round; transition: stroke-dashoffset 0.7s var(--ease); }
.ring-num { position: relative; }
.ring-num b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.ring span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-2); }
.pcard-notes { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; }
.pcard-notes div { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--text-2); }
.pcard-notes .plus { color: var(--win); font-weight: 800; }
.pcard-notes .minus { color: var(--loss); font-weight: 800; }
.fit-line svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); }
.fit-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.fit { font-weight: 800; }
.fit.f100 { color: var(--win); } .fit.f95 { color: #fbbf24; } .fit.f85 { color: #fb923c; }

.impact { margin-top: 14px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.impact-cell { padding: 12px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.impact-cell b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.impact-cell span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.delta { display: block; font-size: 11.5px; font-weight: 800; margin-top: 2px; }
.delta.up { color: var(--win); } .delta.down { color: var(--loss); } .delta.flat { color: var(--text-3); }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 10; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 10, 15, 0.92) 30%);
}

/* Court lineup (desktop aside + locked view) */
.court-wrap { position: relative; }
.court { position: relative; aspect-ratio: 300 / 300; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 100%, rgba(255, 122, 46, 0.12), transparent 60%), linear-gradient(180deg, #17120f, #110d0b); border: 1px solid rgba(245, 166, 35, 0.18); }
.court svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(245, 166, 35, 0.28); }
.tok { --pc: var(--text-3); position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 5px; width: 92px; }
.tok .avatar { width: 50px; height: 50px; font-size: 16px; }
.tok-rate { position: absolute; top: -6px; right: 10px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; background: #0b0f16; color: var(--pc); border: 1px solid var(--pc); white-space: nowrap; }
.tok-name { max-width: 92px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(10, 14, 20, 0.85); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-empty { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--pc) 60%, transparent); color: var(--pc); font-weight: 800; font-size: 13px; background: rgba(10, 14, 20, 0.55); transition: transform 0.2s var(--ease); }
button.tok:hover .tok-empty { transform: scale(1.08); border-style: solid; }
.tok.now .tok-empty { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 22px -4px var(--orange-glow); animation: pulse-op 1.4s ease-in-out infinite; }
.tok.now .tok-name { border-color: var(--orange); color: var(--orange-2); }
.tok.fresh .avatar { animation: tok-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tok-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tok.PG { left: 50%; top: 17%; } .tok.SG { left: 18%; top: 45%; } .tok.SF { left: 82%; top: 45%; }
.tok.PF { left: 26%; top: 79%; } .tok.C { left: 74%; top: 79%; }
.bench { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px dashed rgba(255, 199, 38, 0.3); }
.bench .avatar { width: 38px; height: 38px; font-size: 13px; }
.bench .b-empty { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255, 199, 38, 0.45); color: var(--gold); font-size: 11px; font-weight: 800; }
.bench.now { border-style: solid; border-color: var(--orange); }
.bench.now .b-empty { border-color: var(--orange); color: var(--orange); animation: pulse-op 1.4s infinite; }
.bench .b-meta b { display: block; font-size: 13px; font-weight: 700; }
.bench .b-meta span { font-size: 11.5px; color: var(--text-3); }

.metrics { display: grid; gap: 12px; }
.metric-top { display: flex; align-items: center; gap: 16px; }
.ovr-ring { position: relative; width: 82px; height: 82px; flex-shrink: 0; }
.ovr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ovr-ring circle { fill: none; stroke-width: 6; }
.ovr-ring .track { stroke: var(--card-3); }
.ovr-ring .val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); filter: drop-shadow(0 0 6px rgba(255, 199, 38, 0.6)); }
.ovr-ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--font-display); font-size: 28px; font-weight: 900; line-height: 1; }
.ovr-ring b small { display: block; font-size: 9px; letter-spacing: 0.14em; color: var(--text-3); margin-top: 3px; }
.chem { flex: 1; min-width: 0; }
.chem-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-2); }
.chem-head b { color: var(--win); font-size: 14px; }
.bar { height: 8px; margin-top: 8px; border-radius: 4px; background: var(--card-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--win)); transition: width 0.8s var(--ease); }
.chem-note { margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric-cell { padding: 10px 6px; text-align: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.metric-cell b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.metric-cell span { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.outlook { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.outlook small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.outlook b { font-family: var(--font-display); font-size: 16px; }

/* Locked lineup */
.locked { display: grid; gap: 18px; }
.locked-hero { text-align: center; padding: 6px 0 4px; }
.locked-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.03em; }
.locked-hero p { color: var(--text-2); margin-top: 4px; }
.locked-grid { display: grid; gap: 16px; }
.chem-list { display: grid; gap: 6px; font-size: 13px; }
.chem-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); }
.chem-list .plus b { color: var(--win); } .chem-list .minus b { color: var(--loss); }

/* ==========================================================================
   SEASON
   ========================================================================== */
.season-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.season-head .flow-title { min-width: 160px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed='true'] { background: var(--card-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.season-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.season-layout { display: grid; gap: 16px; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }

.scoreboard {
  position: relative; overflow: hidden; padding: 22px 20px 20px; border-radius: 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 85, 0, 0.14), transparent 60%), linear-gradient(160deg, #1a2231, #10161f);
  border: 1px solid var(--line-2);
}
.scoreboard svg.lines { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); color: rgba(255, 255, 255, 0.05); pointer-events: none; }
.record { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 5vw, 40px); margin-top: 10px; }
.record-col { display: grid; justify-items: center; }
.record-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 16vw, 108px); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.record-num.w { color: var(--win); text-shadow: 0 0 40px rgba(52, 211, 153, 0.35); }
.record-num.l { color: var(--loss); text-shadow: 0 0 40px rgba(248, 113, 113, 0.3); }
.record-num.l.zero { color: var(--orange-2); text-shadow: 0 0 40px rgba(255, 85, 0, 0.4); }
.record-label { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--text-3); margin-top: 4px; }
.record-dash { font-family: var(--font-display); font-size: clamp(40px, 9vw, 64px); color: var(--text-3); line-height: 1.4; }
.sb-status { position: relative; display: inline-flex; margin-top: 14px; }
.route { position: relative; margin-top: 18px; text-align: left; }
.route-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 8px; }
.route-head b { color: var(--text); }
.route-track { position: relative; height: 10px; border-radius: 5px; background: var(--card-3); }
.route-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 5px; background: linear-gradient(90deg, #ff4400, var(--orange-2), var(--gold)); box-shadow: 0 0 14px var(--orange-glow); transition: width 0.2s linear; }
.route-mark { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--bg); border: 2px solid var(--text-3); }
.route-mark.done { border-color: var(--gold); background: var(--gold); }
.route-mark span { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; color: var(--text-3); white-space: nowrap; }

.season-map .stretch { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.season-map .stretch:first-of-type { border-top: 0; padding-top: 0; }
.stretch-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-3); }
.stretch-head em { font-style: normal; color: var(--gold); letter-spacing: 0.02em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cells { display: grid; grid-template-columns: repeat(21, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border-radius: 4px; background: var(--card-3); opacity: 0.55; transition: background 0.2s, opacity 0.2s, transform 0.2s; }
.cell.W { background: var(--win); opacity: 1; }
.cell.L { background: var(--loss); opacity: 1; }
.cell.last { transform: scale(1.25); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }
.map-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 2px; }

.spotlight { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255, 85, 0, 0.28); }
.spotlight.loss { border-color: rgba(248, 113, 113, 0.32); }
.spot-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 85, 0, 0.13); color: var(--orange-2); }
.spotlight.loss .spot-icon { background: rgba(248, 113, 113, 0.13); color: var(--loss); }
.spot-icon svg { width: 24px; height: 24px; }
.spot-text { min-width: 0; }
.spot-text small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--text-3); }
.spot-text b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.spot-text span { display: block; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-score { text-align: right; }
.spot-score b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spot-score span { font-size: 12.5px; font-weight: 800; }

.notebook { display: grid; gap: 6px; }
.nb-row { display: grid; grid-template-columns: 34px 1fr auto 36px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.nb-row.new { animation: nb-in 0.3s var(--ease); }
@keyframes nb-in { from { background: rgba(255, 122, 46, 0.16); border-color: rgba(255, 122, 46, 0.45); } to { background: var(--surface); border-color: var(--line); } }
.nb-num { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; background: var(--folder-2); color: var(--paper-2); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.nb-main { min-width: 0; }
.nb-main b { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.nb-main span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-row.W .nb-main b { color: var(--win); } .nb-row.L .nb-main b { color: var(--loss); }
.nb-score { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.nb-margin { text-align: right; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nb-row.W .nb-margin { color: var(--win); } .nb-row.L .nb-margin { color: var(--loss); }

.decisions { display: grid; gap: 8px; }
.decision { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.decision i { display: grid; place-items: center; height: 30px; border-radius: 8px; font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--card-3); color: var(--text-2); }
.decision.made i { background: rgba(255, 199, 38, 0.14); color: var(--gold); }
.decision b { display: block; font-size: 13.5px; }
.decision span { display: block; font-size: 12px; color: var(--text-3); }

.team-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.six-line { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px dashed rgba(255, 199, 38, 0.3); font-size: 12.5px; color: var(--text-2); }
.six-line b { color: var(--gold); font-size: 11px; letter-spacing: 0.12em; display: block; }

/* Final panel */
.final {
  --tier: var(--gold);
  position: relative; overflow: hidden; padding: 26px 20px; border-radius: 26px; text-align: center; margin-bottom: 16px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--tier) 26%, transparent), transparent 65%), linear-gradient(170deg, #1a2231, #0e141d);
  border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--tier) 50%, transparent);
  animation: final-in 0.7s var(--ease) both;
}
@keyframes final-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.final-tier { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 900; font-size: 12.5px; letter-spacing: 0.18em; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 50%, transparent); }
.final-tier svg { width: 16px; height: 16px; }
.final-record { font-family: var(--font-display); font-weight: 900; font-size: clamp(72px, 18vw, 130px); line-height: 1; letter-spacing: -0.05em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.final-record.perfect { background: linear-gradient(180deg, #fff3c4, var(--gold) 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 199, 38, 0.5)); }
.final-line { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.final-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px auto 0; max-width: 640px; }
.final-stats div { padding: 12px 8px; border-radius: 14px; background: rgba(7, 10, 15, 0.45); border: 1px solid var(--line); }
.final-stats b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.final-stats span { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.final-calls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.final-actions { display: grid; gap: 10px; max-width: 640px; margin: 22px auto 0; }
.final-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.final-promo { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.final-promo a { color: var(--orange-2); font-weight: 700; }
.final-promo a:hover { text-decoration: underline; }

/* Coaching dialog */
dialog.sheet {
  margin: auto; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 1px solid var(--line-2); border-radius: 26px; color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 199, 38, 0.1), transparent 55%), linear-gradient(180deg, #172030, #0f151f);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
dialog.sheet[open] { animation: sheet-in 0.45s var(--ease); }
dialog.sheet::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }

/* App Store QR dialog ----------------------------------------------------- */
dialog.app-download-dialog {
  margin: auto; width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 1px solid var(--line-2); border-radius: 26px; color: var(--text);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 42%), linear-gradient(180deg, #17202e, #0c1119);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.92);
}
dialog.app-download-dialog[open] { animation: sheet-in 0.38s var(--ease); }
dialog.app-download-dialog::backdrop { background: rgba(3, 5, 8, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.app-download-card { position: relative; padding: 26px; text-align: center; }
.app-download-close { position: absolute; top: 14px; right: 14px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.app-download-brand { display: inline-flex; align-items: center; gap: 11px; margin: 0 auto 22px; text-align: left; }
.app-download-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--game-accent) 44%, transparent); box-shadow: 0 12px 28px -16px var(--game-accent); }
.app-download-brand div { display: grid; line-height: 1.05; }
.app-download-brand b { font-family: var(--font-display); font-size: 21px; font-weight: 900; }
.app-download-brand span { margin-top: 6px; color: var(--game-accent); font-size: 9px; font-weight: 900; letter-spacing: 0.15em; }
.app-download-kicker { display: block; color: var(--game-accent); font-size: 9px; font-weight: 900; letter-spacing: 0.18em; }
.app-download-card h2 { margin-top: 7px; font-family: var(--font-display); font-size: 31px; font-weight: 900; letter-spacing: -0.03em; }
.app-download-card > p { max-width: 330px; margin: 8px auto 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.app-qr-frame { width: min(270px, 100%); margin: 20px auto 16px; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 20px 48px -22px var(--game-accent), 0 0 0 1px color-mix(in srgb, var(--game-accent) 36%, transparent); }
.app-qr-frame img { display: block; width: 100%; height: auto; border-radius: 14px; image-rendering: pixelated; }
.app-download-link { width: 100%; justify-content: center; }
.app-download-link svg { width: 15px; height: 15px; }
.app-download-card > small { display: block; margin-top: 12px; color: var(--text-3); font-size: 10.5px; }

.sheet-body { padding: 24px 20px 20px; }
.sheet-body h2 { font-family: var(--font-display); font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; }
.sheet-body > p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.sheet-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.sheet-metrics div { padding: 10px; border-radius: 12px; background: rgba(7, 10, 15, 0.5); border: 1px solid var(--line); text-align: center; }
.sheet-metrics b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.sheet-metrics span { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2);
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.option:hover { border-color: var(--orange); transform: translateY(-2px); background: var(--card-2); }
.option-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 85, 0, 0.12); color: var(--orange-2); }
.option-icon svg { width: 22px; height: 22px; }
.option-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.option .chip { white-space: nowrap; }
.option-top b { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.option p { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.option kbd { display: none; }
.locked-call { text-align: center; padding: 8px 0 4px; }
.locked-call .seal { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 199, 38, 0.14); color: var(--gold); animation: tok-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.locked-call .seal svg { width: 30px; height: 30px; }
.locked-call h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.locked-call p { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.sheet-actions { display: grid; gap: 10px; margin-top: 18px; }

/* ==========================================================================
   HISTORY / TROPHIES / SETTINGS
   ========================================================================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.03em; line-height: 1.05; }
.page-head p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.filters { display: inline-flex; gap: 6px; }
.filters button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.filters button[aria-pressed='true'] { color: #fff; background: var(--orange); border-color: var(--orange); }

.trophy-summary { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(255, 199, 38, 0.1), var(--card)); border: 1px solid rgba(255, 199, 38, 0.25); }
.trophy-summary b { font-family: var(--font-display); font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1; }
.trophy-summary span { color: var(--text-2); font-size: 14px; }
.trophy-summary .bar { flex: 1; margin-top: 0; }
.trophy-summary .bar i { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.trophies { display: grid; gap: 10px; }
.trophy { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.trophy-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--text-3); border: 1px solid var(--line); }
.trophy-icon svg { width: 26px; height: 26px; }
.trophy.on { border-color: rgba(255, 199, 38, 0.3); background: linear-gradient(135deg, rgba(255, 199, 38, 0.07), var(--card)); }
.trophy.on .trophy-icon { background: linear-gradient(145deg, var(--gold), #f59e0b); color: #1a1000; border: 0; box-shadow: 0 10px 24px -8px rgba(255, 199, 38, 0.6); }
.trophy b { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.trophy p { font-size: 13px; color: var(--text-2); }
.trophy .t-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.trophy .t-prog .bar { flex: 1; height: 5px; margin: 0; }
.trophy .t-prog .bar i { background: var(--orange-2); }

.settings { display: grid; gap: 14px; max-width: 720px; }
.set-group { padding: 6px 0; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.set-group h2 { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--text-3); padding: 12px 18px 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row b { display: block; font-size: 14.5px; font-weight: 600; }
.set-row span { display: block; font-size: 12.5px; color: var(--text-3); }
a.set-row:hover b { color: var(--orange-2); }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--card-3); border: 1px solid var(--line-2); transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.switch[aria-checked='true'] { background: var(--orange); border-color: var(--orange); }
.switch[aria-checked='true']::after { transform: translateX(20px); }
.danger { color: var(--loss) !important; }
.set-row .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.set-row > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); }
a.set-row:hover > svg { color: var(--orange-2); }
.set-row > .chip { flex-shrink: 0; }

/* Run detail dialog */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-rec { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -0.04em; margin-top: 10px; }
.mini-map { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; margin-top: 14px; }
.mini-map i { aspect-ratio: 1; border-radius: 2px; background: var(--card-3); }
.mini-map i.W { background: var(--win); } .mini-map i.L { background: var(--loss); }
.roster-list { display: grid; gap: 6px; margin-top: 14px; }
.roster-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.roster-item b { font-size: 14px; font-weight: 600; }
.roster-item > div > span { display: block; font-size: 12px; color: var(--text-3); }
.roster-item .r { font-family: var(--font-display); font-weight: 800; }
.roster-item .avatar { width: 38px; height: 38px; font-size: 13px; }
.roster-item .rr { display: flex; align-items: center; gap: 8px; }

/* Crawlable "about" copy under the game (home tab only) */
.seo-about {
  max-width: 1180px; margin: 0 auto; padding: 0 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
  color: var(--text-2); font-size: 14.5px; line-height: 1.7;
}
.seo-about h1 { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.seo-about h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); margin: 18px 0 8px; }
.seo-about ol { padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 14px; }
.seo-about h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--text); margin: 24px 0 8px; }
.seo-about ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 14px; }
.seo-about p { margin-bottom: 10px; }
.seo-about .more-games { margin-top: 18px; }
.seo-about strong { color: var(--text); }
.seo-about a { color: var(--orange-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body[data-route]:not([data-route="home"]) .seo-about { display: none; }
body[data-route="home"] #view { padding-bottom: 28px; }
@media (min-width: 760px) { .seo-about { padding: 8px 24px 56px; } }
@media (min-width: 960px) { .seo-about { padding-bottom: 64px; } }

/* ==========================================================================
   17-0 FOOTBALL — same system as 82-0, emerald accent from the 17-0 iOS palette
   ========================================================================== */
body[data-game='17-0'] {
  --orange: #12b886;
  --orange-2: #34d399;
  --orange-glow: rgba(25, 201, 138, 0.42);
  --fb-qb: #34d399;
  --fb-rb: #f59e0b;
  --fb-wr: #38bdf8;
  --fb-te: #a78bfa;
  --fb-def: #f87171;
  background: linear-gradient(180deg, #060a10, #0a101c 45%, #08101a);
}
body[data-game='17-0'] .ambient {
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(25, 201, 138, 0.13), transparent 62%),
    radial-gradient(circle at 92% 32%, rgba(59, 130, 246, 0.05), transparent 38%),
    radial-gradient(circle at 8% 85%, rgba(246, 196, 83, 0.035), transparent 38%),
    linear-gradient(180deg, #050a10 0%, #0a101c 45%, #09111b 100%);
}
body[data-game='17-0'] .btn-primary {
  background: linear-gradient(135deg, #3ee0a1 0%, #12a874 100%); color: #03140d;
  box-shadow: 0 12px 32px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body[data-game='17-0'] .btn-primary:not(:disabled):hover { box-shadow: 0 16px 34px -10px rgba(25, 201, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
body[data-game='17-0'] .spin-btn:not(:disabled):hover { box-shadow: 0 16px 36px -10px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 4px rgba(25, 201, 138, 0.14); }
body[data-game='17-0'] .chip.orange { background: rgba(25, 201, 138, 0.12); color: var(--orange-2); border-color: rgba(25, 201, 138, 0.32); }
body[data-game='17-0'] .loop-step i { background: rgba(25, 201, 138, 0.14); }
body[data-game='17-0'] .stage.done i { color: #03140d; }
body[data-game='17-0'] .filters button[aria-pressed='true'] { color: #03140d; }
body[data-game='17-0'] .prow[aria-selected='true'] { background: linear-gradient(90deg, rgba(25, 201, 138, 0.12), var(--card)); }
body[data-game='17-0'] .option-icon, body[data-game='17-0'] .spot-icon { background: rgba(25, 201, 138, 0.13); color: var(--orange-2); }
body[data-game='17-0'] .nb-row.new { animation-name: nb-in-fb; }
@keyframes nb-in-fb { from { background: rgba(25, 201, 138, 0.16); border-color: rgba(25, 201, 138, 0.45); } to { background: var(--surface); border-color: var(--line); } }
body[data-game='17-0'] .reel-cab.team { --c1: #86f3c6; --c2: #1fc98c; --c3: #0a6544; --ink: #02261a; --glow: rgba(25, 201, 138, 0.55); --rail: #3ee0a1; }
body[data-game='17-0'] .scoreboard { background: radial-gradient(ellipse at 50% 0%, rgba(25, 201, 138, 0.16), transparent 60%), linear-gradient(160deg, #142231, #0d151f); }
body[data-game='17-0'] .route-fill { background: linear-gradient(90deg, #0f9f6e, var(--orange-2), var(--gold)); }
body[data-game='17-0'] .record-num.l.zero { color: var(--orange-2); text-shadow: 0 0 40px rgba(25, 201, 138, 0.4); }
.record-num.t { color: var(--gold); text-shadow: 0 0 40px rgba(255, 199, 38, 0.3); }

.team-badge.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.team-badge.you { --tc: #12b886; --tc2: #b9f5dc; color: #03140d; text-shadow: none; }

/* Home */
.fb-hero .wordmark { filter: drop-shadow(0 10px 40px rgba(25, 201, 138, 0.3)); }
.fb-stage { position: relative; height: 150px; display: grid; place-items: center; margin: 8px 0 4px; }
.fb-float { position: relative; z-index: 1; width: 112px; animation: fb-bob 4s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(25, 201, 138, 0.22)); }
.fb-float svg { width: 100%; height: auto; }
@keyframes fb-bob { 0%, 100% { transform: translateY(-12px) rotate(-24deg); } 50% { transform: translateY(8px) rotate(-12deg); } }
.fb-tee {
  position: absolute; bottom: 24px; width: 130px; height: 22px; border-radius: 50%;
  border: 2px solid var(--orange-2); box-shadow: 0 0 20px rgba(25, 201, 138, 0.35), inset 0 0 12px rgba(25, 201, 138, 0.3);
  animation: ring-glow 3.2s ease-in-out infinite;
}
.fb-turf {
  position: absolute; left: 50%; bottom: -80px; width: 820px; height: 210px; pointer-events: none;
  transform: translateX(-50%) perspective(260px) rotateX(58deg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px),
    repeating-linear-gradient(180deg, rgba(25, 201, 138, 0.16) 0 42px, rgba(25, 201, 138, 0.05) 42px 84px);
  background-size: 100% 42px, 100% 100%;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.mode-pick {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(100%, 400px); margin: 6px auto 0;
  padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.mode-pick button { display: grid; gap: 1px; min-width: 0; padding: 8px 4px; border-radius: 10px; color: var(--text-2); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.mode-pick button b { font-family: var(--font-display); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.mode-pick button span { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.mode-pick button:hover { color: var(--text); }
.mode-pick button[aria-checked='true'] { background: var(--card-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(25, 201, 138, 0.5); }
.mode-pick button[aria-checked='true'] span { color: var(--orange-2); }
.mode-blurb { max-width: 400px; margin: 8px auto 12px; font-size: 12.5px; color: var(--text-3); }

.fb-legends { margin-top: 14px; }
.legend-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(208px, 1fr); gap: 8px;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.legend { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; }
.legend > div { min-width: 0; }
.legend b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend span { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.legend .pos, .fb-roster-line .pos, .roster-item .pos { height: 18px; min-width: 26px; padding: 0 5px; font-size: 10px; }
.fb-legends .hint { margin-top: 10px; }

/* Draft: field formation */
.fb-strip { grid-template-columns: repeat(5, 1fr); }
.field-wrap { position: relative; }
.field {
  position: relative; aspect-ratio: 300 / 380; border-radius: 16px; overflow: hidden; background: #0e3f2c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -40px 60px rgba(0, 0, 0, 0.25);
}
.field-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-lines text { font-family: var(--font-display); font-weight: 800; font-size: 13px; fill: rgba(255, 255, 255, 0.22); text-anchor: middle; }
.field-lines text.ez { font-size: 22px; font-weight: 900; letter-spacing: 6px; fill: rgba(255, 255, 255, 0.24); }
.field-lines .los { stroke: #4aa3ff; stroke-width: 2.4; opacity: 0.85; }
.field-lines .fd { stroke: #ffd60a; stroke-width: 2.4; opacity: 0.8; }
.field .ol, .field .dl { position: absolute; top: 48.6%; width: 10px; height: 10px; margin-left: -5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); }
.field .dl { top: 40.6%; border-radius: 50%; background: rgba(248, 113, 113, 0.2); border-color: rgba(248, 113, 113, 0.45); }
.ftok { --pc: var(--text-3); position: absolute; z-index: 1; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 86px; }
.ftok .avatar { width: 46px; height: 46px; font-size: 15px; }
.ftok .tok-rate { right: 8px; }
.ftok .tok-name { max-width: 86px; font-size: 11px; }
.ftok .tok-empty { width: 46px; height: 46px; font-size: 11px; background: rgba(6, 22, 15, 0.6); }
.ftok.now .tok-empty { border-color: var(--orange-2); color: var(--orange-2); box-shadow: 0 0 22px -4px var(--orange-glow); animation: pulse-op 1.4s ease-in-out infinite; }
.ftok.now .tok-name { border-color: var(--orange-2); color: var(--orange-2); }
.ftok.fresh .avatar { animation: tok-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.field-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.field-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Draft: player card + impact */
.fb-pcard {
  --tc: #12b886;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tc) 32%, transparent), transparent 62%), linear-gradient(180deg, #121c29, #0e1520);
  border-color: color-mix(in srgb, var(--tc) 55%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 16%, transparent), 0 20px 50px -20px color-mix(in srgb, var(--tc) 45%, transparent);
}
.fb-rings { grid-template-columns: repeat(2, 1fr); }
.impact-cell b.odds { font-size: 14px; line-height: 1.95; white-space: nowrap; }
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.unit { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 6px; padding: 8px 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.unit b { font-family: var(--font-display); font-size: 16px; color: var(--text); letter-spacing: 0; }
.unit .delta { display: inline; margin: 0; letter-spacing: 0; }
.iq-note { display: flex; align-items: flex-start; gap: 12px; }
.iq-note > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }
.iq-note b { font-family: var(--font-display); font-size: 16px; }
.iq-note p { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.odds-hint { font-size: 11px; font-weight: 700; color: var(--text-3); }
.metrics .chem-note svg { display: inline; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.scout-report { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scout-report div { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scout-report small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.scout-report b { font-family: var(--font-display); font-size: 16px; }
.scout-report .plus b { color: var(--win); }
.scout-report .minus b { color: var(--loss); }

/* Season: gamecast */
:is(.gamecast, .linescore) {
  --gc: var(--orange-2);
  position: relative; overflow: hidden; padding: 14px 16px 12px; border-radius: 20px;
  background: linear-gradient(180deg, #111a26, #0c121b); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s;
}
:is(.gamecast, .linescore)::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--gc), transparent); }
:is(.gamecast, .linescore).W { --gc: var(--win); border-color: rgba(52, 211, 153, 0.38); }
:is(.gamecast, .linescore).L { --gc: var(--loss); border-color: rgba(248, 113, 113, 0.38); }
:is(.gamecast, .linescore).T { --gc: var(--gold); border-color: rgba(255, 199, 38, 0.38); }
:is(.gamecast, .linescore).live { --gc: #4aa3ff; border-color: rgba(74, 163, 255, 0.35); }
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 40px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--text-3); }
:is(.gamecast, .linescore).idle .gc-head { padding-right: 0; }
.gc-state { padding: 3px 9px; border-radius: 999px; background: var(--card-3); color: var(--text); letter-spacing: 0.1em; white-space: nowrap; }
:is(.gamecast, .linescore).live .gc-state { background: rgba(74, 163, 255, 0.16); color: #9bd0ff; }
.gc-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 30px) 46px; align-items: center; gap: 7px 4px; margin-top: 10px; }
.gc-ql { text-align: center; font-size: 10px; font-weight: 800; color: var(--text-3); }
.gc-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gc-team b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-team.you b { color: var(--orange-2); }
.q { min-height: 20px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.q.in { color: var(--text); animation: q-in 0.35s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gc-tot { text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gc-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.gc-foot b { color: var(--text); }
.gc-stamp {
  position: absolute; top: 9px; right: 12px; display: none; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-family: var(--font-display); font-size: 16px; font-weight: 900; color: #04140d; background: var(--gc); box-shadow: 0 0 18px -2px var(--gc);
}
:is(.gamecast, .linescore).W .gc-stamp, :is(.gamecast, .linescore).L .gc-stamp, :is(.gamecast, .linescore).T .gc-stamp { display: grid; }
:is(.gamecast, .linescore).L .gc-stamp { color: #fff; }
:is(.gamecast, .linescore).stamped .gc-stamp { animation: tok-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.gc-pre { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.gc-pre .spot-icon { flex-shrink: 0; }
.gc-pre b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.gc-pre span:not(.spot-icon) { display: block; font-size: 12.5px; color: var(--text-2); }

/* Season: schedule */
.fb-map .stretch { display: grid; gap: 7px; padding: 10px 0; border-top: 1px solid var(--line); }
.fb-map .stretch:first-child { border-top: 0; padding-top: 0; }
.stretch-head em.muted { color: var(--text-3); font-weight: 600; }
.weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wk { display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 7px 2px 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.wk small { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-3); }
.wk b { font-family: var(--font-display); font-size: 13px; font-weight: 800; white-space: nowrap; }
.wk i { font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk.W { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); }
.wk.W i { color: var(--win); }
.wk.L { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); }
.wk.L i { color: var(--loss); }
.wk.T { background: rgba(255, 199, 38, 0.1); border-color: rgba(255, 199, 38, 0.4); }
.wk.T i { color: var(--gold); }
.wk.last { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--text), 0 10px 20px -12px rgba(0, 0, 0, 0.8); }
.nb-row.T .nb-main b, .nb-row.T .nb-margin { color: var(--gold); }
.fb-roster-line { display: flex; flex-wrap: wrap; gap: 6px 12px; border-style: solid; border-color: var(--line); }
.fb-roster-line span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }

/* Coaching dialog: next opponents */
.upcoming { margin: 0 0 16px; }
.up-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.up-game { display: grid; justify-items: center; min-width: 0; padding: 8px 4px; border-radius: 11px; background: rgba(7, 10, 15, 0.5); border: 1px solid var(--line); }
.up-game small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-3); }
.up-game b { font-family: var(--font-display); font-size: 13px; white-space: nowrap; }
.up-game i { font-size: 11px; font-style: normal; font-weight: 800; color: var(--text-2); }
.up-game.tough { border-color: rgba(248, 113, 113, 0.4); }
.up-game.tough i { color: var(--loss); }

/* Final + history */
.fb-mini { grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 4px; max-width: 520px; margin: 16px auto 0; }
.fb-mini i { border-radius: 3px; }
.mini-map i.T { background: var(--gold); }
.final-stats b small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.fine-print { padding: 0 4px; font-size: 12px; color: var(--text-3); }
.fb-loading { display: grid; justify-items: center; gap: 14px; padding: 90px 0; color: var(--text-3); font-size: 14px; }

@media (min-width: 560px) {
  .fb-rings { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .legend-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
}
@media (max-width: 759px) {
  .gc-grid { grid-template-columns: minmax(0, 1fr) repeat(4, 24px) 38px; gap: 7px 3px; }
  .gc-tot { font-size: 21px; }
  .gc-team { gap: 8px; }
  .gc-team b { font-size: 13px; }
}
@media (max-width: 400px) {
  .scout-report { grid-template-columns: 1fr; }
  .up-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weeks { gap: 4px; }
  .wk b { font-size: 12px; }
  .wk i { font-size: 9.5px; }
  .units { grid-template-columns: 1fr; }
  .mode-pick button b { font-size: 12.5px; }
}

/* ==========================================================================
   162-0 BASEBALL — navy, amber and teal from the 162-0 iOS palette
   ========================================================================== */
body[data-game='162-0'] {
  --orange: #d9a441;
  --orange-2: #f0c46a;
  --orange-glow: rgba(217, 164, 65, 0.42);
  --win: #38d68b;
  --loss: #ff5f57;
  --bb-p: #3b82f6;
  --bb-c: #ef4444;
  --bb-if: #10b981;
  --bb-of: #f59e0b;
  --bb-teal: #38d6e8;
  background: linear-gradient(180deg, #04080e, #050b12 45%, #071019);
}
body[data-game='162-0'] .ambient {
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(217, 164, 65, 0.12), transparent 62%),
    radial-gradient(circle at 92% 32%, rgba(56, 214, 232, 0.06), transparent 38%),
    radial-gradient(circle at 8% 85%, rgba(16, 185, 129, 0.04), transparent 38%),
    linear-gradient(180deg, #04080e 0%, #050b12 45%, #08121c 100%);
}
body[data-game='162-0'] .btn-primary {
  background: linear-gradient(135deg, #ffdc92 0%, #d39a32 100%); color: #1d1405;
  box-shadow: 0 12px 32px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body[data-game='162-0'] .btn-primary:not(:disabled):hover { box-shadow: 0 16px 34px -10px rgba(217, 164, 65, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
body[data-game='162-0'] .spin-btn:not(:disabled):hover { box-shadow: 0 16px 36px -10px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 4px rgba(217, 164, 65, 0.14); }
body[data-game='162-0'] .chip.orange { background: rgba(217, 164, 65, 0.12); color: var(--orange-2); border-color: rgba(217, 164, 65, 0.34); }
body[data-game='162-0'] .loop-step i { background: rgba(217, 164, 65, 0.14); }
body[data-game='162-0'] .stage.done i, body[data-game='162-0'] .filters button[aria-pressed='true'] { color: #1d1405; }
body[data-game='162-0'] .prow[aria-selected='true'] { background: linear-gradient(90deg, rgba(217, 164, 65, 0.12), var(--card)); }
body[data-game='162-0'] .option-icon, body[data-game='162-0'] .spot-icon { background: rgba(217, 164, 65, 0.13); color: var(--orange-2); }
body[data-game='162-0'] .nb-row.new { animation-name: nb-in-bb; }
@keyframes nb-in-bb { from { background: rgba(217, 164, 65, 0.16); border-color: rgba(217, 164, 65, 0.45); } to { background: var(--surface); border-color: var(--line); } }
body[data-game='162-0'] .reel-cab.team { --c1: #ffe7ad; --c2: #d9a441; --c3: #84590f; --ink: #2b1a02; --glow: rgba(217, 164, 65, 0.55); --rail: #ffd27a; }
body[data-game='162-0'] .reel-cab.era { --c1: #a4f2fb; --c2: #22b5c9; --c3: #0b5762; --ink: #03292f; --glow: rgba(56, 214, 232, 0.55); --rail: #74e8f5; }
body[data-game='162-0'] .scoreboard { background: radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, 0.14), transparent 60%), linear-gradient(160deg, #10202d, #0a1520); }
body[data-game='162-0'] .route-fill { background: linear-gradient(90deg, #a8731a, var(--orange-2), #fff0c7); }
body[data-game='162-0'] .record-num.l.zero { color: var(--orange-2); text-shadow: 0 0 40px rgba(217, 164, 65, 0.4); }
body[data-game='162-0'] .team-badge.you { --tc: #d9a441; --tc2: #ffe7ad; color: #1d1405; text-shadow: none; }
body[data-game='162-0'] .chip.sb-status.loss { background: rgba(255, 95, 87, 0.12); color: var(--loss); border-color: rgba(255, 95, 87, 0.3); }
.ri-era.long { font-size: 21px; line-height: 1.05; letter-spacing: -0.01em; }

/* Home */
.bb-hero .wordmark { font-size: clamp(64px, 13vw, 116px); filter: drop-shadow(0 10px 40px rgba(217, 164, 65, 0.28)); }
.bb-stage { position: relative; height: 150px; display: grid; place-items: center; margin: 8px 0 4px; }
.bb-float { position: relative; z-index: 1; width: 82px; animation: ball-bob 3.8s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(217, 164, 65, 0.25)); }
.bb-float svg { width: 100%; height: auto; animation: bb-rot 14s linear infinite; }
@keyframes bb-rot { to { transform: rotate(360deg); } }
.bb-tee {
  position: absolute; bottom: 24px; width: 124px; height: 22px; border-radius: 50%;
  border: 2px solid var(--orange-2); box-shadow: 0 0 20px rgba(217, 164, 65, 0.35), inset 0 0 12px rgba(217, 164, 65, 0.3);
  animation: ring-glow 3.2s ease-in-out infinite;
}
.bb-turf {
  position: absolute; left: 50%; bottom: -80px; width: 820px; height: 210px; pointer-events: none;
  transform: translateX(-50%) perspective(260px) rotateX(58deg);
  background:
    radial-gradient(ellipse 20% 58% at 50% 0%, rgba(126, 92, 58, 0.55) 0 62%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0 46px, rgba(16, 185, 129, 0.04) 46px 92px);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.bb-eras { margin-top: 14px; }
.era-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.era-tile { display: grid; gap: 3px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.era-tile small { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--bb-teal); }
.era-tile b { font-family: var(--font-display); font-size: 16px; }
.era-tile span { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.era-tile em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--gold); }
.era-tile .pos, .roster-item .pos, .prow-sub .pos { flex-shrink: 0; }
.bb-eras .hint { margin-top: 10px; }

/* Draft: strip, diamond, placement */
.bb-strip { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.bb-strip .strip-slot { padding: 6px 1px 5px; border-radius: 9px; }
.bb-strip .avatar, .bb-strip .s-empty { width: 24px; height: 24px; font-size: 9px; }
.bb-strip .s-empty { font-size: 13px; }
.bb-strip .s-pos { font-size: 9px; }
.bb-pips .pip { width: 12px; }
.diamond-wrap { position: relative; }
.diamond { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.diamond-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.dtok { --pc: var(--text-3); position: absolute; z-index: 1; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 78px; }
.dtok .avatar { width: 38px; height: 38px; font-size: 13px; }
.dtok .tok-rate { top: -7px; right: 6px; padding: 0 5px; font-size: 9.5px; }
.dtok .tok-rate.off { --fc: #fbbf24; border-color: var(--fc); color: var(--fc); }
.dtok .tok-name { max-width: 78px; padding: 1px 7px; font-size: 10.5px; }
.dtok .tok-empty { width: 38px; height: 38px; font-size: 11px; background: rgba(5, 11, 18, 0.62); }
button.dtok { cursor: pointer; }
.dtok.open .tok-empty { border-style: solid; }
.dtok.open:hover .tok-empty { transform: scale(1.08); }
.dtok.open.f100, .tok-rate.f100 { --pc: #34d399; --fc: #34d399; }
.dtok.open.f95, .tok-rate.f95 { --pc: #a3e635; --fc: #a3e635; }
.dtok.open.f85, .tok-rate.f85 { --pc: #fbbf24; --fc: #fbbf24; }
.dtok.open.f65, .tok-rate.f65 { --pc: #fb923c; --fc: #fb923c; }
.dtok.chosen .tok-empty { color: #fff; background: color-mix(in srgb, var(--pc) 38%, #0b1a26); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 35%, transparent), 0 0 22px -2px var(--pc); animation: pulse-op 1.4s ease-in-out infinite; }
.dtok.chosen .tok-name { color: var(--pc); border-color: var(--pc); }
.dtok.blocked { opacity: 0.42; }
.dtok.fresh .avatar { animation: tok-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }

.fit-tag { --fc: #34d399; display: inline-flex; flex-shrink: 0; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 40%, transparent); }
.fit-tag.f95, .place-chip.f95 { --fc: #a3e635; }
.fit-tag.f85, .place-chip.f85 { --fc: #fbbf24; }
.fit-tag.f65, .place-chip.f65 { --fc: #fb923c; }
.bb-pcard .fit.f95 { color: #a3e635; }
.bb-pcard .fit.f85 { color: #fbbf24; }
.bb-pcard .fit.f65 { color: #fb923c; }
.prow-sub .fit-tag { margin-left: 2px; }
.roster-item .fit-tag { font-size: 9.5px; }

.bb-pcard {
  --tc: #d9a441;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 62%), linear-gradient(180deg, #10202d, #0b1620);
  border-color: color-mix(in srgb, var(--tc) 55%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 16%, transparent), 0 20px 50px -20px color-mix(in srgb, var(--tc) 45%, transparent);
}
.bb-pcard .era-chip { color: var(--bb-teal); }
.place { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.place-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.place-head b { font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.place-chip {
  --fc: #34d399; display: inline-grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 11px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--fc) 35%, var(--line));
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.place-chip b { font-family: var(--font-display); font-size: 14px; line-height: 1.2; }
.place-chip span { font-size: 10.5px; font-weight: 800; color: var(--fc); }
.place-chip:hover { border-color: var(--fc); transform: translateY(-1px); }
.place-chip[aria-pressed='true'] { background: color-mix(in srgb, var(--fc) 18%, var(--card)); border-color: var(--fc); box-shadow: 0 0 0 1px var(--fc); }

/* Season: line score, calendar, standings */
.ls-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(9, 22px) 34px; align-items: center; gap: 7px 3px; margin-top: 10px; }
.linescore.extra .ls-grid { grid-template-columns: minmax(0, 1fr) repeat(9, 22px) 30px 34px; }
.linescore .q { font-size: 13px; }
.linescore .q.in { animation-fill-mode: both; }
.linescore .gc-tot { font-size: 22px; }
.ls-note { color: var(--gold); }
.bb-map .month { display: grid; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); }
.bb-map .card-head + .month { border-top: 0; padding-top: 0; }
.mcells { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 2px; }
.bb-map .cell { border-radius: 2px; }
.st-table { display: grid; gap: 4px; }
.st-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 28px 28px 40px 32px; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.st-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-head { padding: 0 10px 2px; background: none; border: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.st-head span:nth-child(n + 3) { text-align: right; }
.st-rank { font-weight: 800; color: var(--text-3); }
.st-club { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-club b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-club .team-badge { width: 24px; height: 24px; border-radius: 7px; font-size: 8.5px; }
.st-row.you { border-color: rgba(217, 164, 65, 0.5); background: linear-gradient(90deg, rgba(217, 164, 65, 0.12), var(--surface)); }
.st-row.you b { color: var(--orange-2); }
.st-all { margin-top: 10px; }
.st-all summary { cursor: pointer; padding: 6px 2px; font-size: 12.5px; font-weight: 700; color: var(--orange-2); }
.st-all .st-table { margin-top: 6px; max-height: 380px; overflow: auto; scrollbar-width: thin; }
.bb-strengths { margin-top: -6px; }

/* Final */
.final-standing { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 10, 15, 0.45); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--text); }
.final-standing svg { width: 15px; height: 15px; color: var(--gold); }
.final-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 640px; margin: 16px auto 0; }
.final-months div { display: grid; gap: 3px; padding: 8px 6px; border-radius: 12px; background: rgba(7, 10, 15, 0.45); border: 1px solid var(--line); text-align: center; }
.final-months small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-3); }
.final-months b { font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }
.final-months i { height: 4px; overflow: hidden; border-radius: 2px; background: var(--card-3); }
.final-months i::after { content: ''; display: block; width: var(--v); height: 100%; background: linear-gradient(90deg, var(--bb-teal), var(--win)); }
.final-months.compact { max-width: none; margin: 14px 0 0; }
.final-extra { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.final-extra small { color: var(--text-3); font-size: 11px; }

@media (min-width: 560px) {
  .final-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .era-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .ri-era.long { font-size: 16px; }
  .ls-grid { grid-template-columns: minmax(0, 1fr) repeat(9, 17px) 28px; gap: 6px 2px; }
  .linescore.extra .ls-grid { grid-template-columns: minmax(0, 1fr) repeat(9, 16px) 24px 28px; }
  .linescore .q { font-size: 12px; }
  .linescore .gc-tot { font-size: 19px; }
  .linescore .gc-team { gap: 7px; }
  .linescore .gc-team b { font-size: 12.5px; }
  .linescore .gc-team .team-badge { width: 26px; height: 26px; font-size: 8.5px; }
}
@media (max-width: 400px) {
  .bb-hero .wordmark { font-size: 60px; }
  .dtok { width: 70px; }
  .dtok .tok-name { max-width: 70px; }
}

/* Toast + confetti */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: #fff; color: #000; font-weight: 700; font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); transition: opacity 0.3s, transform 0.3s var(--ease); max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .final-stats { grid-template-columns: repeat(4, 1fr); }
  .promo { grid-template-columns: auto 1fr auto; }
  .sheet-body { padding: 28px 28px 24px; }
}

@media (min-width: 760px) {
  #view { padding: 22px 24px 44px; }
  .topbar { padding: 0 24px; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .season-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .locked-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .trophies { grid-template-columns: 1fr 1fr; }
  .kbd-hint { display: flex; }
  .option kbd { display: inline-block; }
  .site-link { display: inline-flex; }
}

@media (min-width: 960px) {
  .top-tabs { display: flex; }
  .top-actions { margin-left: 0; }
  .tabbar { display: none; }
  #toast { bottom: 32px; }
  .draft-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .draft-aside { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 16px); }
  .strip { display: none; }
  .compare-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .plist { max-height: calc(100vh - 260px); overflow: auto; padding: 2px; scrollbar-width: thin; }
  .sticky-cta { margin: 16px 0 0; padding: 0; background: none; position: static; }
}

@media (min-width: 1100px) {
  body { padding-left: var(--sidebar-w); }
  body.sidebar-open { overflow-x: hidden; overflow-y: auto; }
  .app-sidebar { transform: none; box-shadow: none; }
  .sidebar-backdrop, .sidebar-toggle, .sidebar-close { display: none; }
}

@media (max-width: 959px) {
  #pdetail { order: -1; }
}

@media (max-width: 759px) {
  .slot { --item-h: 66px; --win-h: 108px; --label-h: 30px; gap: 8px; }
  .reel-cab { padding: 0 6px 7px; border-radius: 16px; }
  .reel-cab::after { border-radius: 19px; }
  .reel-bezel { border-radius: 12px; padding: 2px; }
  .reel-window { border-radius: 9px; }
  .reel-label { font-size: 12.5px; gap: 6px; letter-spacing: 0.13em; }
  .led { width: 4px; height: 4px; }
  .led:nth-child(3) { display: none; }
  .ri { padding: 0 10px; gap: 3px; }
  .ri .team-badge { width: 28px; height: 28px; font-size: 9px; border-radius: 8px; }
  .ri-name { font-size: 11px; }
  .ri-era { font-size: 25px; }
  .ri-sub { font-size: 9px; }
  .ri-q { font-size: 44px; }
  .rail { width: 25px; }
  .rail.l { left: 3px; } .rail.r { right: 3px; }
  .rail.l::after { left: -6px; } .rail.r::after { right: -6px; }
  .payline.l { left: 0; border-left-width: 6px; } .payline.r { right: 0; border-right-width: 6px; }
  .spin-btn { min-height: 52px; font-size: 16px; }
  .sr-top .team-badge.lg { width: 56px; height: 56px; font-size: 16px; border-radius: 15px; }
  .sr-text b { font-size: 18px; }
  .sr-actions { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .wordmark { font-size: 68px; }
  .ball-stage { height: 120px; }
  .ball-float { width: 62px; height: 62px; }
  .stat-tile span { font-size: 9px; letter-spacing: 0.08em; }
  .rings { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-bars { display: none; }
  .pips { display: none; }
  .app-pill span { display: none; }
  .app-pill { width: 38px; padding: 0; justify-content: center; }
  .team-stats { grid-template-columns: repeat(2, 1fr); }
  .final-actions .row, .hero-cta .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
