/* ============================================================
   COURTSIDE GM · visual system
   ============================================================ */
:root {
  --bg: #08090b;
  --bg-soft: #0d0f12;
  --panel: #111419;
  --panel-2: #161a20;
  --panel-3: #1c2129;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2efe7;
  --muted: #9299a3;
  --dim: #59606a;
  --lime: #d6ff4b;
  --lime-dim: rgba(214, 255, 75, 0.12);
  --orange: #ff7247;
  --blue: #74a9ff;
  --red: #ff5b62;
  --green: #79e6a4;
  --gold: #f5c96b;
  --team1: #552583;
  --team2: #fdb927;
  --team-ink: #fff5d6;
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Bahnschrift", "Bahnschrift SemiCondensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { Background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 800px at 80% -10%, color-mix(in srgb, var(--team1) 20%, transparent), transparent 60%),
    radial-gradient(900px 700px at -10% 100%, rgba(116, 169, 255, 0.045), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: calc(14px + 1px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: #08090b; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- utility ---------- */
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: calc(10px + 2px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.lime { color: var(--lime); }
.red { color: var(--red); }
.green { color: var(--green); }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.spacer { flex: 1; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--lime);
  color: #0a0b0d;
  font-family: var(--font-display);
  font-size: calc(13px + 1px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: #e4ff80; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); background: var(--lime-dim); }
.btn.dark { background: rgba(255,255,255,.06); color: var(--text); }
.btn.dark:hover { background: rgba(255,255,255,.11); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(255,91,98,.32); }
.btn.danger:hover { background: rgba(255,91,98,.08); border-color: var(--red); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: calc(11px + 2px); border-radius: 7px; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: calc(15px + 0px); border-radius: 11px; }
.btn .arr { font-size: calc(18px + 0px); line-height: 1; transform: translateY(-1px); }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  transition: .2s;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.ghost-link {
  color: var(--lime); font-size: calc(12px + 2px); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.ghost-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- tags & pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: calc(9px + 2px); font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.lime { color: var(--lime); border-color: rgba(214,255,75,.24); background: var(--lime-dim); }
.tag.red { color: var(--red); border-color: rgba(255,91,98,.24); background: rgba(255,91,98,.08); }
.tag.blue { color: var(--blue); border-color: rgba(116,169,255,.24); background: rgba(116,169,255,.08); }
.tag.gold { color: var(--gold); border-color: rgba(245,201,107,.24); background: rgba(245,201,107,.08); }
.tag.plain { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: calc(10px + 2px); }
.conf-tag { font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .14em; color: var(--dim); }
.pos-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 20px; padding: 0 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-family: var(--font-mono); font-size: calc(9px + 2px); font-weight: 700;
  letter-spacing: .04em;
}
.pos-tag.PG { color: #86d9ff; background: rgba(96,196,255,.12); }
.pos-tag.SG { color: #ffb37b; background: rgba(255,142,80,.12); }
.pos-tag.SF { color: #c5ff86; background: rgba(166,255,75,.1); }
.pos-tag.PF { color: #d7a8ff; background: rgba(186,120,255,.12); }
.pos-tag.C { color: #ffd277; background: rgba(255,193,75,.12); }

/* ---------- team badge ---------- */
.team-badge {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 46px;
  flex: 0 0 auto;
  clip-path: polygon(50% 0, 93% 15%, 100% 54%, 82% 88%, 50% 100%, 18% 88%, 0 54%, 7% 15%);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--tb1) 78%, #000) 0%, var(--tb1) 48%, color-mix(in srgb, var(--tb2) 70%, #000) 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.32);
  overflow: hidden;
}
.team-badge::before {
  content: "";
  position: absolute; inset: 2px;
  clip-path: inherit;
  border: 1px solid rgba(255,255,255,.28);
  opacity: .55;
}
.team-badge::after {
  content: "";
  position: absolute;
  left: -30%; top: -50%; width: 40%; height: 200%;
  background: rgba(255,255,255,.14);
  transform: rotate(24deg);
}
.team-badge b {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: calc(11px + 2px); font-weight: 900;
  letter-spacing: .03em;
  color: var(--tbink, #fff);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.team-badge.lg { width: 66px; height: 72px; }
.team-badge.lg b { font-size: calc(17px + 0px); }
.team-badge.sm { width: 28px; height: 31px; }
.team-badge.sm b { font-size: calc(8px + 2px); }
.team-badge.xl { width: 96px; height: 106px; }
.team-badge.xl b { font-size: calc(26px + 0px); }
.team-badge.has-logo {
  clip-path: none; background: transparent; box-shadow: none; overflow: visible;
}
.team-badge.has-logo::before, .team-badge.has-logo::after { display: none; }
.team-badge.has-logo img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.team-badge.has-logo b { display: none; }

/* ---------- panel / card ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.027), rgba(255,255,255,0) 45%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  right: 12px; top: 10px;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.18);
  box-shadow: -8px 0 0 rgba(255,255,255,.08), 0 8px 0 rgba(255,255,255,.08);
  pointer-events: none;
}
.panel.flush::after { display: none; }
.panel.pad { padding: 20px; }
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px 0;
}
.panel-head h3 {
  font-family: var(--font-display);
  font-size: calc(16px + 0px); font-weight: 800; letter-spacing: .01em;
  margin-top: 5px;
}
.panel-head .sub { color: var(--muted); font-size: calc(11px + 2px); margin-top: 3px; }
.panel-body { padding: 16px 20px 20px; }
.panel-topline { border-top: 1px solid var(--line); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- app shell ---------- */
#app { min-height: 100vh; }
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team1) 9%, transparent), transparent 26%),
    rgba(8,9,11,.72);
  backdrop-filter: blur(16px);
  z-index: 30;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 0 8px;
  margin-bottom: 26px;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--lime);
  color: #08090b;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: calc(15px + 0px);
  letter-spacing: -.04em;
  border-radius: 9px 9px 9px 2px;
  box-shadow: 0 0 26px rgba(214,255,75,.14);
}
.brand-copy b {
  display: block;
  font-family: var(--font-display);
  font-size: calc(14px + 1px); font-weight: 900;
  letter-spacing: .075em;
  line-height: 1.1;
}
.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(7.5px + 2px);
  letter-spacing: .18em;
}
.side-season {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 7px 13px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: calc(9px + 2px);
  letter-spacing: .08em;
}
.side-season .live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s infinite;
}
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  margin: 16px 10px 7px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(8px + 2px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: calc(12px + 2px); font-weight: 600;
  transition: .18s;
  text-align: left;
  width: 100%;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(214,255,75,.11), rgba(214,255,75,.025));
}
.nav-item.active::before {
  content: "";
  position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 2px; border-radius: 4px; background: var(--lime);
  box-shadow: 0 0 12px rgba(214,255,75,.4);
}
.nav-ic {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  color: currentColor; opacity: .9;
  flex: 0 0 auto;
}
.nav-ic svg { width: 17px; height: 17px; }
.nav-item em {
  margin-left: auto;
  color: var(--dim);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: calc(8px + 2px);
  letter-spacing: .08em;
}
.nav-item.active em { color: var(--lime); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-ai {
  padding: 12px;
  border: 1px solid rgba(214,255,75,.14);
  border-radius: 10px;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(214,255,75,.08), transparent 70%),
    rgba(214,255,75,.025);
}
.side-ai-head { display: flex; align-items: center; gap: 7px; color: var(--lime); font-family: var(--font-mono); font-size: calc(8px + 2px); font-weight: 700; letter-spacing: .12em; }
.side-ai-head .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.side-ai p { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.6; margin-top: 7px; }
.side-ai button { margin-top: 9px; color: var(--text); font-size: calc(10px + 2px); font-weight: 700; padding: 0; }
.side-ai button:hover { color: var(--lime); }
.side-team {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.side-team-copy { min-width: 0; }
.side-team-copy b { display: block; font-size: calc(11px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-team-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .06em; margin-top: 2px; }

.main-wrap { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 74px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,9,11,.78);
  backdrop-filter: blur(18px);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-title .eyebrow { font-size: calc(8px + 2px); }
.topbar-title h2 {
  font-family: var(--font-display);
  font-size: calc(20px + 0px); font-weight: 800; letter-spacing: -.01em;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.topbar-status {
  display: flex; align-items: center; gap: 12px;
  padding-right: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: calc(9px + 2px);
  letter-spacing: .05em;
}
.topbar-status b { color: var(--text); font-family: var(--font-display); font-size: calc(14px + 1px); letter-spacing: 0; }
.topbar-status .divider { width: 1px; height: 18px; background: var(--line); }

.page { padding: 26px 30px 48px; max-width: 1580px; width: 100%; margin: 0 auto; animation: pageIn .45s var(--ease); }
.page-head .lead { display: none !important; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.035em;
  margin-top: 8px;
}
.page-head h1 span { color: var(--muted); font-weight: 400; }
.page-head .lead { color: var(--muted); font-size: calc(12px + 2px); max-width: 560px; margin-top: 8px; line-height: 1.65; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orb { to { transform: rotate(360deg); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- dashboard grid ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 338px;
  padding: 25px 26px;
  background:
    radial-gradient(600px 300px at 88% -5%, color-mix(in srgb, var(--team2) 28%, transparent), transparent 65%),
    linear-gradient(135deg, color-mix(in srgb, var(--team1) 55%, #08090b) 0%, #0d1014 58%, #0b0d11 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  opacity: .35;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -110px; top: -100px;
  width: 440px; height: 440px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255,255,255,.025), 0 0 0 118px rgba(255,255,255,.015);
  z-index: -1;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-team { display: flex; align-items: center; gap: 14px; }
.hero-team-copy .eyebrow { color: rgba(255,255,255,.52); }
.hero-team-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.025em;
  margin-top: 6px;
}
.hero-team-copy p { color: rgba(255,255,255,.48); font-size: calc(10px + 2px); margin-top: 6px; letter-spacing: .04em; }
.hero-record-wrap { margin-top: 30px; display: flex; align-items: flex-end; gap: 20px; }
.hero-record {
  display: flex; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .74;
}
.hero-record b { font-size: clamp(72px, 8.2vw, 124px); }
.hero-record .dash { color: rgba(255,255,255,.22); font-size: clamp(38px, 4.5vw, 64px); margin: 0 9px; font-weight: 300; }
.hero-record .l { color: rgba(255,255,255,.38); }
.hero-record-meta { padding-bottom: 9px; }
.hero-record-meta b { display: block; color: var(--team2); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .17em; }
.hero-record-meta span { display: block; color: rgba(255,255,255,.55); font-size: calc(10px + 2px); margin-top: 5px; }
.hero-bottom { margin-top: auto; padding-top: 27px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero-kpis { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-kpi b { display: block; font-family: var(--font-display); font-size: calc(17px + 0px); letter-spacing: -.01em; }
.hero-kpi small { display: block; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .12em; margin-top: 3px; }
.hero-next {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.hero-next .hn-copy small { display: block; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .12em; }
.hero-next .hn-copy b { display: block; font-size: calc(11px + 2px); margin-top: 3px; }
.hero-next .btn { min-height: 34px; padding: 0 12px; font-size: calc(10px + 2px); }

/* ---------- AI brief ---------- */
.ai-brief { min-height: 338px; display: flex; flex-direction: column; }
.ai-brief .panel-head { align-items: center; }
.ai-badge {
  display: flex; align-items: center; gap: 9px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: calc(8px + 2px); font-weight: 700; letter-spacing: .14em;
}
.ai-orb {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--lime), transparent 40%, var(--lime), transparent 80%);
  -webkit-mask: radial-gradient(circle, transparent 37%, #000 39%);
  mask: radial-gradient(circle, transparent 37%, #000 39%);
  animation: orb 7s linear infinite;
}
.ai-orb::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  animation: pulse 2.4s infinite;
}
.ai-text {
  padding: 14px 20px 0;
  color: var(--text);
  font-size: calc(13px + 1px);
  line-height: 1.78;
}
.ai-text em { color: var(--lime); font-style: normal; font-weight: 700; }
.ai-priorities { display: flex; flex-direction: column; gap: 1px; padding: 17px 20px 0; }
.ai-priority {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ai-priority .num {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 1px solid rgba(214,255,75,.28);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: calc(8px + 2px);
}
.ai-priority b { display: block; font-size: calc(11px + 2px); font-weight: 700; }
.ai-priority p { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.55; margin-top: 3px; }
.ai-footer { margin-top: auto; padding: 14px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-footer .ai-tag { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .07em; }

/* ---------- next game / matchup ---------- */
.next-panel .panel-body { padding-top: 14px; }
.matchup { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 78px; text-align: center; }
.match-team b { font-size: calc(11px + 2px); }
.match-team small { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.match-vs { text-align: center; }
.match-vs b { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .16em; }
.match-vs span { display: block; color: var(--text); font-family: var(--font-display); font-size: calc(11px + 2px); margin-top: 4px; }
.chance-block { margin-top: 17px; }
.chance-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: calc(9px + 2px); margin-bottom: 7px; }
.chance-labels b { color: var(--text); }
.chance-bar { position: relative; display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); }
.chance-bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.chance-bar em { display: block; height: 100%; background: rgba(255,255,255,.18); }
.match-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.match-foot .date { color: var(--dim); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .05em; }

/* ---------- standings ---------- */
.standings-tabs { display: flex; gap: 4px; }
.mini-tab {
  height: 24px; padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--dim);
  font-family: var(--font-mono); font-size: calc(8px + 2px); font-weight: 700;
  letter-spacing: .07em;
}
.mini-tab:hover { color: var(--text); }
.mini-tab.active { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.stand-table { width: 100%; border-collapse: collapse; }
.stand-table th {
  padding: 9px 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: calc(8px + 2px); font-weight: 600;
  letter-spacing: .09em;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.stand-table th:first-child { text-align: left; padding-left: 8px; }
.stand-table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  font-size: calc(10px + 2px);
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stand-table td:first-child { text-align: left; padding-left: 8px; }
.stand-table tr:last-child td { border-bottom: 0; }
.stand-table tr.me td { background: rgba(214,255,75,.035); }
.stand-table tr.me td:first-child { box-shadow: inset 2px 0 0 var(--lime); }
.stand-team { display: flex; align-items: center; gap: 8px; }
.stand-team b { color: var(--text); font-size: calc(10px + 2px); font-weight: 600; }
.stand-rank { display: inline-block; width: 13px; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.stand-table .wl b { color: var(--text); font-size: calc(11px + 2px); }
.stand-table .diff.plus { color: var(--green); }
.stand-table .diff.minus { color: var(--red); }
.playoff-line td { border-bottom: 1px dashed rgba(214,255,75,.22) !important; }
.playin-line td { border-bottom: 1px dashed rgba(245,201,107,.22) !important; }

/* ---------- roster snapshot ---------- */
.roster-strip { display: flex; flex-direction: column; gap: 1px; }
.roster-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: .18s;
}
.roster-row:last-child { border-bottom: 0; }
.roster-row:hover { padding-left: 4px; }
.roster-row .rr-copy { min-width: 0; flex: 1; }
.roster-row .rr-copy b { display: block; font-size: calc(11px + 2px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-row .rr-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 2px; }
.roster-row .rr-ovr { font-family: var(--font-display); font-size: calc(18px + 0px); font-weight: 900; color: var(--text); }
.roster-row .rr-ovr.high { color: var(--lime); }
.roster-row .rr-salary { color: var(--muted); font-family: var(--font-mono); font-size: calc(9px + 2px); width: 53px; text-align: right; }
.roster-row .rr-pos { flex: 0 0 auto; }
.player-dot {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pd2) 55%, transparent), transparent 50%),
    linear-gradient(145deg, var(--pd1), #12151a);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pd-ink, #fff);
  font-family: var(--font-display); font-size: calc(7px + 2px); font-weight: 800;
  letter-spacing: -.02em;
  overflow: hidden;
}
.player-dot b { font-size: calc(11px + 2px); }
.player-dot.sm { width: 27px; height: 27px; }
.player-dot.lg { width: 46px; height: 46px; }
.player-dot.has-photo { position: relative; overflow: visible; padding: 0; }
.player-dot.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 50%; display: block; }
.player-dot .pd-num {
  position: absolute; right: -4px; bottom: -3px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 4px; background: var(--lime); color: #0b0d10; border: 1px solid #0b0d10;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: calc(7px + 2px); font-weight: 800;
  line-height: 1; letter-spacing: 0;
}
.player-dot.sm .pd-num { min-width: 12px; height: 12px; font-size: calc(6px + 2px); right: -3px; bottom: -3px; }
.player-dot.lg .pd-num { min-width: 17px; height: 17px; font-size: calc(8px + 2px); }

/* ---------- contract options ---------- */
.option-panel { margin-bottom: 10px; border-color: rgba(255,193,75,.28); }
.option-lead { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.7; margin: 0 0 6px; }
.option-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.option-player { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; }
.option-player b { display: block; font-size: calc(12px + 2px); }
.option-player small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 2px; }
.option-money { text-align: right; min-width: 120px; }
.option-money small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.option-money b { display: block; font-family: var(--font-display); font-size: calc(18px + 0px); margin: 2px 0; }
.option-money span { font-family: var(--font-mono); font-size: calc(7px + 2px); }
.option-money .good { color: var(--lime); }
.option-money .bad { color: var(--red); }
.option-actions { display: flex; gap: 5px; flex: 0 0 auto; }

/* ---------- cap ---------- */
.cap-figure { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cap-figure .big { font-family: var(--font-display); font-size: calc(33px + 0px); font-weight: 900; letter-spacing: -.04em; }
.cap-figure .big small { font-family: var(--font-mono); font-size: calc(9px + 2px); color: var(--dim); letter-spacing: .1em; margin-left: 5px; }
.cap-bar-wrap { margin-top: 18px; }
.cap-track { position: relative; height: 8px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--team1), var(--team2)); }
.cap-mark { position: absolute; top: -4px; bottom: -4px; width: 1px; background: rgba(255,255,255,.35); }
.cap-mark span { position: absolute; top: 15px; left: 0; transform: translateX(-50%); color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); white-space: nowrap; }
.cap-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.cap-legend div b { display: block; font-size: calc(11px + 2px); }
.cap-legend div small { display: block; color: var(--dim); font-size: calc(8px + 2px); font-family: var(--font-mono); margin-top: 3px; letter-spacing: .04em; }
.cap-note { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.6; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- news ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: .18s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover .news-title { color: var(--lime); }
.news-date { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); padding-top: 2px; }
.news-title { font-size: calc(11px + 2px); font-weight: 600; line-height: 1.5; transition: color .18s; }
.news-body { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tag { align-self: flex-start; }

/* ---------- ticker ---------- */
.ticker {
  display: flex; align-items: center; gap: 16px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  height: 100%;
  display: flex; align-items: center;
  padding: 0 14px;
  background: var(--lime);
  color: #08090b;
  font-family: var(--font-mono);
  font-size: calc(8px + 2px); font-weight: 800;
  letter-spacing: .14em;
}
.ticker-track { white-space: nowrap; overflow: hidden; flex: 1; }
.ticker-inner { display: inline-flex; gap: 48px; animation: ticker 32s linear infinite; }
.ticker-inner span { color: var(--muted); font-size: calc(10px + 2px); }
.ticker-inner b { color: var(--text); font-weight: 600; }
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* ---------- roster page ---------- */
.roster-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.metric {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.017);
}
.metric small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .11em; text-transform: uppercase; }
.metric b { display: block; font-family: var(--font-display); font-size: calc(24px + 0px); letter-spacing: -.03em; margin-top: 4px; }
.metric b span { font-family: var(--font-body); font-size: calc(10px + 2px); color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
.metric .tiny { color: var(--muted); font-size: calc(9px + 2px); margin-top: 2px; }

.court-panel {
  position: relative;
  padding: 22px;
  min-height: 390px;
  background:
    linear-gradient(180deg, rgba(214,255,75,.014), transparent 40%),
    #101318;
  overflow: hidden;
}
.court-bg {
  position: absolute; inset: 20px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  opacity: .9;
  pointer-events: none;
}
.court-bg::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.075);
}
.court-bg::after {
  content: "";
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.court-key {
  position: absolute; left: 50%; top: 0; width: 150px; height: 114px;
  border: 1px solid rgba(255,255,255,.075); border-top: 0;
  transform: translateX(-50%);
}
.court-key::after { content:""; position:absolute; left:50%; bottom:-44px; width:76px; height:76px; border:1px solid rgba(255,255,255,.075); border-radius:50%; transform:translateX(-50%); }
.court-key.bottom { top: auto; bottom: 0; border-top: 1px solid rgba(255,255,255,.075); border-bottom: 0; }
.court-key.bottom::after { bottom: auto; top: -44px; }
.lineup-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.lineup-card {
  position: relative;
  min-height: 300px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.005)), var(--panel-2);
  overflow: hidden;
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s;
}
.lineup-card:hover { transform: translateY(-4px); border-color: rgba(214,255,75,.4); }
.lineup-art {
  position: relative;
  height: 176px;
  background:
    radial-gradient(120px 100px at 50% 20%, color-mix(in srgb, var(--pl2) 35%, transparent), transparent 70%),
    linear-gradient(155deg, color-mix(in srgb, var(--pl1) 55%, #0c0f13), #0c0f13 75%);
  overflow: hidden;
}
.lineup-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.07) 50%, transparent 50.5%);
  background-size: 36px 100%;
  opacity: .6;
}
.lineup-art .silhouette {
  position: absolute; left: 50%; bottom: -2px; width: 150px; height: 178px;
  transform: translateX(-50%);
  color: color-mix(in srgb, var(--pl2) 22%, #05070a);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.55));
  opacity: .7;
}
.lineup-art .lineup-photo {
  position: absolute; left: 50%; bottom: 0; height: 168px; width: auto; max-width: none;
  transform: translateX(-50%); object-fit: contain; z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.55));
}
.lineup-art.has-photo .silhouette { display: none; }
.lineup-art.has-photo .jnum { z-index: 1; }
.lineup-avatar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; }
.lineup-avatar .prospect-avatar { width: 148px; height: 148px; }
.lineup-art::after {
  content: "";
  position: absolute; left: 50%; bottom: -30px;
  width: 150px; height: 70px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--pl2) 20%, transparent), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.lineup-art .jnum {
  position: absolute; right: 10px; bottom: 3px;
  color: rgba(255,255,255,.12);
  font-family: var(--font-display); font-size: calc(70px + 0px); font-weight: 900; line-height: 1;
  letter-spacing: -.08em;
}
.lineup-art .ovr-big {
  position: absolute; left: 11px; top: 9px;
  font-family: var(--font-display); font-size: calc(25px + 0px); font-weight: 900; letter-spacing: -.04em;
  color: var(--text);
}
.lineup-art .ovr-big small { display: block; color: rgba(255,255,255,.4); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; margin-top: 1px; }
.lineup-art .pos-abs { position: absolute; right: 10px; top: 10px; }
.lineup-info { padding: 13px 12px 14px; }
.lineup-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.lineup-ovr { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--lime); color: #0b0d10; font-family: var(--font-mono); font-size: 10px; font-weight: 900; letter-spacing: .02em; }
.lineup-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 22px; padding: 0 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: rgba(0,0,0,.32); color: var(--text); font-family: var(--font-mono); font-size: 9px; font-weight: 800; }
.lineup-art .ovr-big, .lineup-art .pos-abs { z-index: 5; }
.lineup-art .ovr-big { padding: 5px 7px; border-radius: 5px; background: rgba(5,7,10,.72); backdrop-filter: blur(4px); }
.lineup-art .pos-abs { background: rgba(5,7,10,.72); backdrop-filter: blur(4px); }
.lineup-info b { display: block; font-size: calc(12px + 2px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineup-info small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 4px; letter-spacing: .03em; }
.lineup-info .mini-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 11px; }
.mini-bar span { display: block; height: 2px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.mini-bar span i { display: block; height: 100%; background: var(--lime); }
.mini-bar em { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); font-style: normal; letter-spacing: .05em; }
.empty-slot {
  min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 11px;
  color: var(--dim);
  font-size: calc(10px + 2px);
}
.empty-slot b { font-family: var(--font-display); font-size: calc(20px + 0px); color: var(--muted); }

.bench-head { display: flex; align-items: center; justify-content: space-between; margin: 21px 0 9px; }
.bench-head h3 { font-family: var(--font-display); font-size: calc(15px + 0px); font-weight: 800; }
.bench-table { width: 100%; border-collapse: collapse; }
.bench-table th {
  text-align: left; padding: 9px 10px;
  color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); font-weight: 600; letter-spacing: .09em;
  border-bottom: 1px solid var(--line);
}
.bench-table th.r, .bench-table td.r { text-align: right; }
.bench-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: calc(10px + 2px); color: var(--muted); }
.bench-table tr { cursor: pointer; transition: .16s; }
.bench-table tr:hover td { background: rgba(255,255,255,.025); color: var(--text); }
.bench-player { display: flex; align-items: center; gap: 9px; }
.bench-player b { color: var(--text); font-size: calc(11px + 2px); font-weight: 600; }
.bench-player small { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); display: block; margin-top: 1px; }
.bench-table .ovr-cell { color: var(--text); font-family: var(--font-display); font-size: calc(15px + 0px); font-weight: 800; }
.morale-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin-right: 4px; background: var(--green); }
.morale-dot.mid { background: var(--gold); }
.morale-dot.low { background: var(--red); }

.side-col { display: flex; flex-direction: column; gap: 14px; }
.tactics-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.tactics-row:last-child { border-bottom: 0; }
.tactics-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tactics-label b { font-size: calc(11px + 2px); }
.tactics-label small { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.seg { display: flex; gap: 4px; }
.seg button {
  flex: 1; height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: calc(9px + 2px); font-weight: 600;
  background: rgba(255,255,255,.015);
  transition: .16s;
}
.seg button:hover { color: var(--text); }
.seg button.active { color: #08090b; background: var(--lime); border-color: var(--lime); font-weight: 800; }
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--lime); height: 3px; }
.range-wrap .val { color: var(--lime); font-family: var(--font-mono); font-size: calc(9px + 2px); width: 30px; text-align: right; }
.rating-preview { display: flex; gap: 15px; padding: 13px 0 0; }
.rating-preview div { flex: 1; }
.rating-preview b { display: block; font-family: var(--font-display); font-size: calc(19px + 0px); }
.rating-preview small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .08em; }

/* ---------- trade page ---------- */
.strategy-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.strategy-card { padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.strategy-card.opponent { border-color: rgba(245,201,107,.18); }
.strategy-card > small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.strategy-line { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.strategy-line b { font-size: calc(10px + 2px); font-weight: 500; color: var(--muted); }
.strategy-meta { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 6px; }
.strategy-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: calc(8px + 2px); font-weight: 700; white-space: nowrap;
}
.strategy-pill.mini { padding: 1px 4px; font-size: calc(6px + 2px); margin-right: 3px; vertical-align: 1px; }
.strategy-pill.contend { color: var(--gold); border-color: rgba(245,201,107,.35); background: rgba(245,201,107,.10); }
.strategy-pill.buy { color: var(--lime); border-color: rgba(214,255,75,.30); background: rgba(214,255,75,.08); }
.strategy-pill.sell { color: var(--orange); border-color: rgba(255,114,71,.35); background: rgba(255,114,71,.09); }
.strategy-pill.rebuild { color: var(--blue); border-color: rgba(116,169,255,.30); background: rgba(116,169,255,.08); }
.trade-partners { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.partner-chip {
  display: flex; align-items: center; gap: 8px;
  min-width: max-content;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  transition: .18s;
}
.partner-chip:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.partner-chip.active { border-color: var(--lime); background: var(--lime-dim); }
.partner-chip b { font-size: calc(10px + 2px); font-weight: 600; }
.partner-chip small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .06em; }
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 246px minmax(0, 1fr); gap: 12px; align-items: start; }
.trade-side { min-height: 540px; }
.trade-side-head {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.trade-side-head .team-badge { width: 32px; height: 35px; }
.trade-side-head .tsh-copy b { display: block; font-size: calc(11px + 2px); }
.trade-side-head .tsh-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 2px; }
.asset-list { max-height: 486px; overflow-y: auto; padding: 5px 7px 9px; }
.asset-row {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 8px 7px;
  border-radius: 6px;
  text-align: left;
  transition: .15s;
}
.asset-row:hover { background: rgba(255,255,255,.035); }
.asset-row.selected { background: rgba(214,255,75,.08); box-shadow: inset 2px 0 0 var(--lime); }
.asset-row.pick-row { border: 1px dashed rgba(255,255,255,.07); margin: 3px 0; }
.asset-row .ar-copy { min-width: 0; flex: 1; }
.asset-row .ar-copy b { display: block; font-size: calc(10px + 2px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-row .ar-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7.5px + 2px); margin-top: 2px; }
.asset-row .ar-ovr { font-family: var(--font-display); font-size: calc(15px + 0px); font-weight: 900; }
.asset-row .ar-sal { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); width: 46px; text-align: right; }
.asset-row .check {
  width: 16px; height: 16px; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 4px;
  display: grid; place-items: center;
  color: transparent; font-size: calc(10px + 2px); font-weight: 900;
}
.asset-row.selected .check { background: var(--lime); border-color: var(--lime); color: #08090b; }
.trade-side-foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.trade-side-foot b { color: var(--text); }
.trade-core { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; }
.trade-core-card { padding: 14px; }
.trade-verdict { text-align: center; padding: 15px 8px 11px; }
.trade-verdict .verdict-label { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .14em; }
.trade-verdict .verdict {
  font-family: var(--font-display); font-size: calc(26px + 0px); line-height: 1; font-weight: 900; letter-spacing: -.03em;
  margin-top: 8px;
}
.trade-verdict .verdict.accept { color: var(--lime); }
.trade-verdict .verdict.consider { color: var(--gold); }
.trade-verdict .verdict.reject { color: var(--red); }
.trade-strategy-note { margin-top: 7px; color: var(--dim); font-family: var(--font-mono); font-size: calc(7.5px + 2px); line-height: 1.5; }
.trade-strategy-note b { color: var(--muted); }
.verdict-meter { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin: 13px 0 0; }
.verdict-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--lime)); }
.trade-reason { color: var(--muted); font-size: calc(9.5px + 2px); line-height: 1.6; margin-top: 12px; text-align: left; }
.trade-salary { display: flex; flex-direction: column; gap: 7px; padding: 11px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.trade-salary div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: calc(8.5px + 2px); color: var(--dim); }
.trade-salary b { color: var(--text); font-weight: 600; }
.trade-salary .bad b { color: var(--red); }
.trade-salary .good b { color: var(--green); }
.trade-core .btn { width: 100%; }
.trade-needs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

/* ---------- free agency ---------- */
.fa-hero { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fa-stat { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.fa-stat small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .1em; }
.fa-stat b { display: block; font-family: var(--font-display); font-size: calc(26px + 0px); letter-spacing: -.03em; margin-top: 5px; }
.fa-stat span { display: block; color: var(--muted); font-size: calc(9px + 2px); margin-top: 2px; }
.fa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; flex-wrap: wrap; }
.fa-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.fa-filter { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .07em; }
.fa-filter:hover { color: var(--text); border-color: var(--line-strong); }
.fa-filter.active { background: var(--lime); color: #08090b; border-color: var(--lime); font-weight: 800; }
.fa-table-wrap { overflow-x: auto; }
.fa-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.fa-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .09em; font-weight: 600; }
.fa-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.045); font-size: calc(10px + 2px); color: var(--muted); }
.fa-table tr { cursor: pointer; transition: .15s; }
.fa-table tr:hover td { background: rgba(255,255,255,.026); }
.fa-table tr.selected td { background: rgba(214,255,75,.05); }
.fa-player { display: flex; align-items: center; gap: 10px; }
.fa-player b { display: block; color: var(--text); font-size: calc(11px + 2px); }
.fa-player small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 2px; }
.fa-table .ovr-cell { color: var(--text); font-family: var(--font-display); font-size: calc(17px + 0px); font-weight: 900; }
.fa-table .ask { color: var(--text); font-family: var(--font-mono); font-size: calc(10px + 2px); }
.fa-market { min-width: 88px; }
.fa-rival { display: flex; align-items: center; gap: 6px; }
.fa-rival .team-badge { width: 22px; height: 24px; }
.fa-rival b { display: block; color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.fa-rival small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 2px; }
.interest { display: flex; align-items: center; gap: 6px; }
.interest-bar { width: 52px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.interest-bar i { display: block; height: 100%; background: var(--lime); }
.interest-bar.mid i { background: var(--gold); }
.interest-bar.low i { background: var(--red); }

/* ---------- schedule ---------- */
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.round-list { display: flex; flex-direction: column; gap: 9px; }
.round-block { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); overflow: hidden; }
.round-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.016); }
.round-head .rn { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .1em; }
.round-head b { font-family: var(--font-display); font-size: calc(12px + 2px); }
.round-head .rd { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-left: auto; }
.round-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sched-game {
  display: flex; align-items: center; justify-content: space-between; gap: 7px;
  padding: 9px 12px;
  border-right: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  min-height: 46px;
}
.sched-game:nth-child(3n) { border-right: 0; }
.sched-game.user-game { background: rgba(214,255,75,.08); box-shadow: inset 2px 0 0 var(--lime); }
.sched-game .sg-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sched-game .sg-team b { font-size: calc(9px + 2px); font-weight: 600; }
.sched-game .sg-score { font-family: var(--font-display); font-size: calc(13px + 1px); font-weight: 800; color: var(--text); }
.sched-game .sg-score.loss { color: var(--muted); }
.sched-game .sg-time { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.sched-game .sg-play { color: var(--lime); font-family: var(--font-mono); font-size: calc(8px + 2px); font-weight: 700; }
.sched-game.live { background: rgba(255,114,71,.06); }
.standings-full { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.standings-full .panel-body { padding-top: 8px; }
.bracket-wrap { display: flex; flex-direction: column; gap: 16px; }
.bracket-round { display: flex; flex-direction: column; gap: 8px; }
.bracket-round-title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .13em; }
.bracket-round-title::after { content:""; height:1px; background:var(--line); flex:1; }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.series-card { padding: 12px; }
.series-side { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.series-side .ss-name { flex: 1; font-size: calc(10px + 2px); color: var(--muted); }
.series-side .ss-seed { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); width: 20px; }
.series-side .ss-wins { color: var(--text); font-family: var(--font-display); font-size: calc(16px + 0px); font-weight: 900; width: 18px; text-align: right; }
.series-side.winner .ss-name { color: var(--lime); }
.series-side.winner .ss-wins { color: var(--lime); }
.series-meta { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.playin-panel { margin-bottom: 14px; }
.playin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.playin-conf-title { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .14em; margin-bottom: 6px; }
.playin-game { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); margin-bottom: 7px; overflow: hidden; }
.playin-game.user { border-color: rgba(214,255,75,.28); box-shadow: inset 2px 0 0 var(--lime); }
.playin-game-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-bottom: 1px solid rgba(255,255,255,.05); }
.playin-game .series-side { padding: 5px 9px; }
.playin-game .series-side:last-child { padding-bottom: 8px; }
.champion-banner { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid rgba(245,201,107,.25); border-radius: 12px; background: radial-gradient(400px 150px at 10% 0%, rgba(245,201,107,.12), transparent 70%), rgba(245,201,107,.025); }
.trophy { font-size: calc(34px + 0px); filter: drop-shadow(0 0 18px rgba(245,201,107,.35)); }
.champion-banner b { display: block; font-family: var(--font-display); font-size: calc(23px + 0px); letter-spacing: -.02em; color: var(--gold); }
.champion-banner small { display: block; color: var(--muted); font-size: calc(10px + 2px); margin-top: 3px; }

/* ---------- assistant ---------- */
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 14px; align-items: start; }
.chat-panel { min-height: 560px; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head .ai-orb { width: 34px; height: 34px; }
.chat-head b { display: block; font-family: var(--font-display); font-size: calc(15px + 0px); }
.chat-head small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .08em; margin-top: 2px; }
.chat-head .tag { margin-left: auto; }
.chat-log { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 420px; }
.msg { max-width: 88%; animation: msgIn .3s var(--ease); }
.msg.user { align-self: flex-end; }
.msg.ai { align-self: flex-start; }
.msg-meta { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; margin-bottom: 5px; }
.msg.user .msg-meta { text-align: right; }
.msg-bubble { padding: 12px 14px; border-radius: 3px 12px 12px 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: calc(12px + 2px); line-height: 1.78; color: var(--text); white-space: pre-line; }
.msg.ai .msg-bubble { background: linear-gradient(135deg, rgba(214,255,75,.045), rgba(255,255,255,.015)); border-color: rgba(214,255,75,.12); }
.msg.user .msg-bubble { border-radius: 12px 3px 12px 12px; background: var(--lime); color: #08090b; border-color: var(--lime); }
.msg-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg-actions .btn { min-height: 29px; padding: 0 10px; font-size: calc(9px + 2px); }
.chat-suggestions { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 20px 12px; }
.chat-chip { height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: calc(9px + 2px); transition: .16s; }
.chat-chip:hover { color: var(--lime); border-color: rgba(214,255,75,.35); background: var(--lime-dim); }
.chat-input-row { display: flex; gap: 7px; padding: 13px 20px 18px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); color: var(--text); font-size: calc(11px + 2px); }
.chat-input-row input::placeholder { color: var(--dim); }
.chat-input-row input:focus { outline: none; border-color: rgba(214,255,75,.45); background: rgba(214,255,75,.025); }
.chat-input-row .btn { min-height: 42px; padding: 0 16px; }
.insight-card { padding: 16px; }
.insight-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.insight-title b { font-family: var(--font-display); font-size: calc(12px + 2px); }
.grade-ring {
  position: relative;
  width: 94px; height: 94px;
  margin: 4px auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--grade) * 1%), rgba(255,255,255,.07) 0);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%);
  mask: radial-gradient(circle, transparent 61%, #000 62%);
}
.grade-copy { text-align: center; margin-top: -62px; margin-bottom: 39px; }
.grade-copy b { display: block; font-family: var(--font-display); font-size: calc(26px + 0px); letter-spacing: -.04em; color: var(--lime); }
.grade-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .13em; margin-top: 1px; }
.matrix-row { display: grid; grid-template-columns: 64px 1fr 30px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.matrix-row:last-child { border-bottom: 0; }
.matrix-row span { color: var(--muted); font-size: calc(9px + 2px); }
.matrix-row .mb { height: 3px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.matrix-row .mb i { display: block; height: 100%; background: var(--lime); }
.matrix-row b { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); text-align: right; }
.ai-note { color: var(--muted); font-size: calc(9.5px + 2px); line-height: 1.7; padding-top: 11px; border-top: 1px solid var(--line); margin-top: 10px; }
.ai-actions { display: flex; flex-direction: column; gap: 6px; }
.ai-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); text-align: left; width: 100%; }
.ai-action:last-child { border-bottom: 0; }
.ai-action b { display: block; font-size: calc(10px + 2px); color: var(--text); }
.ai-action small { display: block; color: var(--dim); font-size: calc(8px + 2px); margin-top: 2px; line-height: 1.4; }
.ai-action .go { color: var(--lime); font-family: var(--font-mono); font-size: calc(9px + 2px); flex: 0 0 auto; }
.ai-action:hover b { color: var(--lime); }

/* ---------- draft ---------- */
.draft-banner {
  padding: 18px 20px;
  border: 1px solid rgba(245,201,107,.2);
  border-radius: 12px;
  background:
    radial-gradient(500px 180px at 12% 0%, rgba(245,201,107,.12), transparent 70%),
    rgba(245,201,107,.025);
  display: flex; align-items: center; gap: 16px;
}
.draft-banner .db-copy { flex: 1; }
.draft-banner h3 { font-family: var(--font-display); font-size: calc(20px + 0px); letter-spacing: -.02em; }
.draft-banner p { color: var(--muted); font-size: calc(10px + 2px); margin-top: 4px; }
.draft-order { display: flex; gap: 5px; overflow-x: auto; padding: 11px 0 4px; }
.draft-pick {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.02);
  font-family: var(--font-mono); font-size: calc(8.5px + 2px); color: var(--muted);
}
.draft-pick.current { border-color: var(--gold); color: var(--gold); background: rgba(245,201,107,.08); }
.draft-pick.user { border-color: var(--lime); color: var(--lime); }
.draft-pick.done { opacity: .4; }
.lottery-panel { margin: 10px 0 0; padding: 11px 13px; border: 1px solid rgba(245,201,107,.22); border-radius: 9px; background: rgba(245,201,107,.035); }
.lottery-head { display: flex; align-items: baseline; gap: 9px; }
.lottery-head b { font-size: 13px; }
.lottery-head .dim { margin-left: auto; font-size: 8px; }
.lottery-order { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.lottery-slot { display: flex; align-items: center; gap: 6px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.lottery-slot em { color: var(--gold); font-family: var(--font-display); font-size: 15px; font-style: normal; }
.lottery-slot b { font-size: 10px; }
.lottery-slot span { margin-left: auto; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.draft-pick .lot-prot, .draft-pick .lot-swap { font-family: var(--font-mono); font-size: 6px; padding: 1px 2px; border-radius: 2px; background: rgba(245,201,107,.12); color: var(--gold); }
.draft-pick .lot-swap { color: var(--blue); background: rgba(116,169,255,.1); }
.prospect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prospect-card { padding: 13px; cursor: pointer; transition: .18s; }
.prospect-card:hover { border-color: rgba(214,255,75,.3); transform: translateY(-2px); }
.prospect-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prospect-ident { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prospect-ident > div { min-width: 0; }
.prospect-avatar { display: inline-flex; flex: 0 0 auto; overflow: hidden; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: #151a20; }
.prospect-avatar svg { width: 100%; height: 100%; display: block; }
.prospect-avatar.sm { width: 27px; height: 27px; }
.prospect-avatar.md { width: 42px; height: 42px; }
.prospect-avatar.lg { width: 54px; height: 54px; }
.prospect-avatar.xl { width: 150px; height: 150px; }
.prospect-top b { display: block; font-size: calc(12px + 2px); }
.prospect-top small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7.5px + 2px); margin-top: 2px; }
.prospect-grade { text-align: right; }
.prospect-grade b { display: block; font-family: var(--font-display); font-size: calc(24px + 0px); color: var(--lime); line-height: 1; }
.prospect-grade small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 2px; }
.prospect-grade.grade-S b { color: var(--gold); text-shadow: 0 0 18px rgba(255,193,75,.35); }
.prospect-grade.grade-A b { color: var(--lime); }
.prospect-grade.grade-B b { color: #7ea6ff; }
.prospect-grade.grade-C b { color: var(--muted); }
.prospect-grade.grade-D b { color: var(--red); }
.draft-legend { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; color: var(--dim); font-family: var(--font-mono); font-size: calc(7.5px + 2px); letter-spacing: .02em; }
.draft-legend b { font-family: var(--font-display); font-size: calc(12px + 2px); line-height: 1; margin-left: 4px; }
.draft-legend .grade-S { color: var(--gold); }
.draft-legend .grade-A { color: var(--lime); }
.draft-legend .grade-B { color: #7ea6ff; }
.draft-legend .grade-C { color: var(--muted); }
.draft-legend .grade-D { color: var(--red); }
.draft-legend span { margin-left: 6px; }
.prospect-stats { grid-template-columns: repeat(5, 1fr); }
.prospect-note { color: var(--muted); font-size: calc(9px + 2px); line-height: 1.55; margin-top: 9px; min-height: 42px; }
.prospect-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.prospect-meta .tag { font-size: calc(7.5px + 2px); }
.risk-dots { display: flex; gap: 3px; }
.risk-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.12); }
.risk-dots i.on { background: var(--orange); }
.prospect-card.disabled { opacity: .72; cursor: default; }
.prospect-card.disabled:hover { transform: none; border-color: var(--line); }

/* ---------- game overlay ---------- */
.game-overlay {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(900px 600px at 50% 10%, color-mix(in srgb, var(--team1) 25%, transparent), transparent 65%),
    #07080a;
  overflow-y: auto;
  animation: gameIn .35s var(--ease);
}
@keyframes gameIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.game-close { position: fixed; right: 22px; top: 18px; z-index: 5; }
.game-shell { max-width: 1180px; margin: 0 auto; padding: 28px 28px 50px; min-height: 100vh; }
.game-stage { position: relative; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.game-topline .tag { color: var(--muted); }
.game-matchup { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 18px; max-width: 850px; margin: 0 auto; }
.game-team { text-align: center; }
.game-team .team-badge { margin: 0 auto 14px; }
.game-team h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); font-weight: 900; letter-spacing: -.035em; }
.game-team p { color: var(--muted); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .08em; margin-top: 4px; }
.game-team .record-big { font-family: var(--font-display); font-size: calc(13px + 1px); color: var(--text); margin-top: 8px; }
.game-vs { text-align: center; }
.game-vs .vs { color: var(--dim); font-family: var(--font-display); font-size: calc(12px + 2px); letter-spacing: .2em; }
.game-vs .date { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 6px; }
.game-vs .home-tag { margin-top: 12px; }
.scouting { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 28px; }
.scout-panel { padding: 16px; }
.scout-panel h4 { font-family: var(--font-display); font-size: calc(12px + 2px); margin-bottom: 8px; }
.scout-panel p { color: var(--muted); font-size: calc(10px + 2px); line-height: 1.7; }
.scout-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.scout-bar-row { display: grid; grid-template-columns: 54px 1fr 28px; gap: 8px; align-items: center; color: var(--muted); font-size: calc(8px + 2px); }
.scout-bar-row .sb { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.scout-bar-row .sb i { display: block; height: 100%; background: var(--team2); }
.scout-bar-row b { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); text-align: right; }
.tactics-box { margin-top: 12px; }
.game-tactics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.game-tactics .tactics-row { padding: 0; border: 0; }
.game-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.form-panel .panel-head { padding: 13px 14px 0; align-items: center; }
.form-panel .panel-head h3 { font-size: calc(13px + 1px); }
.form-panel .panel-body { padding: 11px 14px 14px; }
.form-dots { display: flex; gap: 5px; }
.form-dot {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono); font-size: calc(9px + 2px); font-weight: 800;
  border: 1px solid var(--line-strong);
  color: var(--dim);
}
.form-dot.w { color: #08090b; background: var(--lime); border-color: var(--lime); }
.form-dot.l { color: var(--red); border-color: rgba(255,91,98,.3); background: rgba(255,91,98,.05); }
.form-empty { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .08em; }
.edge-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--muted); font-size: calc(9px + 2px); }
.edge-row:last-child { border-bottom: 0; }
.edge-row b { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.edge-row b em { color: var(--dim); font-style: normal; font-size: calc(8px + 2px); }
.game-cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }

.live-scoreboard { max-width: 900px; margin: 0 auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.live-score-row { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; gap: 14px; }
.live-team { display: flex; align-items: center; gap: 12px; }
.live-team.away { flex-direction: row-reverse; text-align: right; }
.live-team b { font-family: var(--font-display); font-size: calc(21px + 0px); font-weight: 900; }
.live-team small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 2px; }
.live-score { text-align: center; }
.live-score .nums { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-display); font-size: calc(54px + 0px); line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.live-score .nums .sep { color: var(--dim); font-size: calc(26px + 0px); font-weight: 300; }
.live-score .clock { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .12em; margin-top: 4px; }
.live-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); gap: 12px; }
.win-prob { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 300px; }
.win-prob .wp-label { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; white-space: nowrap; }
.win-prob .wp-bar { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; display: flex; }
.win-prob .wp-bar i { height: 100%; background: var(--lime); }
.win-prob .wp-bar em { height: 100%; background: rgba(255,255,255,.2); }
.win-prob b { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.live-controls { display: flex; gap: 5px; }
.live-controls .btn { min-height: 29px; padding: 0 10px; font-size: calc(9px + 2px); }

.live-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin-top: 14px; }
.pbp-panel { min-height: 310px; }
.pbp-list { display: flex; flex-direction: column; gap: 0; max-height: 300px; overflow-y: auto; padding: 0 18px 14px; }
.pbp-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.045); font-size: calc(11px + 2px); }
.pbp-item .pbp-time { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.pbp-item .pbp-text { color: var(--muted); line-height: 1.5; }
.pbp-item .pbp-score { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.pbp-item.highlight { background: rgba(214,255,75,.035); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.pbp-item.highlight .pbp-text { color: var(--text); }
.pbp-item.new { animation: pbpIn .22s var(--ease); }
@keyframes pbpIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.live-leaders { padding: 0 18px 16px; }
.leader-line { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.leader-line:last-child { border: 0; }
.leader-line .ll-stat { margin-left: auto; color: var(--lime); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.live-note { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: calc(9px + 2px); line-height: 1.6; }
.quarter-panel { margin-top: 12px; }
.q-table { width: 100%; border-collapse: collapse; }
.q-table th, .q-table td { padding: 7px 8px; text-align: center; font-family: var(--font-mono); font-size: calc(9px + 2px); color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.045); }
.q-table th:first-child, .q-table td:first-child { text-align: left; }
.q-table th { color: var(--dim); font-size: calc(7.5px + 2px); letter-spacing: .08em; }
.q-table td b { color: var(--text); font-size: calc(11px + 2px); }
.q-table tr:last-child td { border-bottom: 0; }
.q-table .q-total { color: var(--lime); font-size: calc(12px + 2px); font-weight: 700; }

.final-stage { max-width: 980px; margin: 0 auto; }
.final-scoreline { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px 0 10px; }
.final-scoreline .fs-team { text-align: center; }
.final-scoreline .fs-team .team-badge { margin: 0 auto 10px; }
.final-scoreline .fs-team b { display: block; font-size: calc(11px + 2px); }
.final-scoreline .fs-score { font-family: var(--font-display); font-size: clamp(60px, 9vw, 100px); font-weight: 900; letter-spacing: -.06em; line-height: .8; }
.final-scoreline .fs-score.win { color: var(--lime); }
.final-scoreline .fs-score.loss { color: var(--muted); }
.final-badge { text-align: center; margin-bottom: 8px; }
.final-badge span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid rgba(214,255,75,.3); border-radius: 99px; color: var(--lime); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .15em; background: var(--lime-dim); }
.final-headline { text-align: center; font-family: var(--font-display); font-size: calc(25px + 0px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 22px; }
.final-headline span { display: block; margin-top: 7px; font-family: var(--font-body); font-size: calc(12px + 2px); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.box-panel { margin-top: 14px; }
.box-table { width: 100%; border-collapse: collapse; min-width: 455px; }
.box-table th { padding: 8px 4px; text-align: right; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.box-table th:first-child { text-align: left; padding-left: 6px; }
.box-table td { padding: 8px 4px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--muted); font-family: var(--font-mono); font-size: calc(7.8px + 2px); font-variant-numeric: tabular-nums; }
.box-table td:first-child { text-align: left; font-family: var(--font-body); padding-left: 6px; }
.box-table tr.potg td { color: var(--text); }
.box-table tr.potg td:first-child { box-shadow: inset 2px 0 0 var(--lime); }
.box-player { display: flex; align-items: center; gap: 7px; }
.box-player b { font-size: calc(9.5px + 2px); font-weight: 600; color: var(--text); }
.presser { margin-top: 14px; padding: 18px; border: 1px solid rgba(214,255,75,.13); border-radius: 12px; background: linear-gradient(135deg, rgba(214,255,75,.04), transparent); }
.presser-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.presser-head .ai-orb { width: 21px; height: 21px; }
.presser-head b { font-family: var(--font-display); font-size: calc(12px + 2px); }
.presser-q { font-size: calc(12px + 2px); line-height: 1.7; }
.presser-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.presser-opt { padding: 11px; border: 1px solid var(--line); border-radius: 7px; text-align: left; color: var(--muted); font-size: calc(9.5px + 2px); line-height: 1.5; transition: .16s; }
.presser-opt:hover { color: var(--text); border-color: rgba(214,255,75,.4); background: var(--lime-dim); }
.presser-opt b { display: block; color: var(--text); font-size: calc(10px + 2px); margin-bottom: 4px; }
.presser-result { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--lime); background: rgba(214,255,75,.04); color: var(--muted); font-size: calc(10px + 2px); line-height: 1.6; }
.final-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }

/* ---------- modals ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(3,4,6,.80); animation: fadeIn .2s ease; }
.modal-shell {
  position: fixed;
  z-index: 9999;
  top: 30px;
  left: 16px;
  right: 16px;
  max-width: 760px;
  width: auto;
  max-height: calc(100vh - 60px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.03), transparent 40%),
    #111419;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  animation: modalIn .3s var(--ease);
}
.modal-shell.wide { max-width: 980px; }
.modal-shell.narrow { max-width: 480px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--font-display); font-size: calc(18px + 0px); font-weight: 800; letter-spacing: -.01em; }
.modal-head small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .08em; margin-top: 4px; }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); display: grid; place-items: center; font-size: calc(17px + 0px); }
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-foot .spacer { flex: 1; }

/* player modal */
.player-modal-top { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.player-hero {
  position: relative;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(150px 120px at 50% 20%, color-mix(in srgb, var(--pl2) 40%, transparent), transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--pl1) 65%, #0d1014), #0d1014 80%);
  border: 1px solid var(--line);
}
.player-hero .silhouette { position: absolute; left: 50%; bottom: 0; width: 210px; height: 245px; transform: translateX(-50%); color: color-mix(in srgb, var(--pl2) 30%, #07090c); opacity: .58; filter: drop-shadow(0 15px 25px rgba(0,0,0,.5)); }
.player-hero .hero-photo { position: absolute; left: 50%; bottom: 0; height: 252px; width: auto; max-width: none; transform: translateX(-50%); object-fit: contain; z-index: 1; filter: drop-shadow(0 15px 25px rgba(0,0,0,.5)); }
.player-hero.has-photo .silhouette { display: none; }
.player-hero .ph-ovr, .player-hero .ph-pos { z-index: 2; }
.hero-avatar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1; }
.hero-avatar .prospect-avatar { width: 158px; height: 158px; }
.player-hero .jnum { position: absolute; right: 10px; bottom: 0; font-family: var(--font-display); font-size: calc(110px + 0px); font-weight: 900; line-height: .8; color: rgba(255,255,255,.09); letter-spacing: -.08em; }
.player-hero .ph-ovr { position: absolute; left: 13px; top: 12px; font-family: var(--font-display); font-size: calc(31px + 0px); font-weight: 900; letter-spacing: -.04em; }
.player-hero .ph-ovr small { display: block; font-family: var(--font-mono); font-size: calc(7px + 2px); color: rgba(255,255,255,.42); letter-spacing: .12em; }
.player-hero .ph-pos { position: absolute; right: 12px; top: 13px; }
.player-info h3 { font-family: var(--font-display); font-size: calc(27px + 0px); letter-spacing: -.03em; line-height: 1.1; }
.player-sub { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 9px; }
.player-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.player-meta div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.player-meta small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .08em; }
.player-meta b { display: block; font-size: calc(12px + 2px); margin-top: 3px; }
.player-status { display: flex; gap: 12px; margin-top: 12px; }
.status-item { flex: 1; }
.status-item .sl { display: flex; justify-content: space-between; color: var(--dim); font-family: var(--font-mono); font-size: calc(7.5px + 2px); margin-bottom: 4px; }
.status-item .sl b { color: var(--muted); }
.status-item .sbar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.status-item .sbar i { display: block; height: 100%; background: var(--lime); }
.player-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; margin-top: 20px; }
.attr-row { display: grid; grid-template-columns: 62px 1fr 25px; align-items: center; gap: 8px; padding: 5px 0; }
.attr-row span { color: var(--muted); font-size: calc(9px + 2px); }
.attr-row .ab { height: 3px; background: rgba(255,255,255,.075); border-radius: 3px; overflow: hidden; }
.attr-row .ab i { display: block; height: 100%; background: linear-gradient(90deg, var(--team1), var(--team2)); }
.attr-row b { color: var(--text); font-family: var(--font-mono); font-size: calc(9px + 2px); text-align: right; }
.position-switch {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.position-switch > span { color: var(--dim); font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; margin-right: 4px; }
.pos-switch {
  min-width: 50px; height: 29px; padding: 0 9px; border: 1px solid var(--line-strong);
  border-radius: 5px; background: rgba(255,255,255,.03); color: var(--text);
  font-family: var(--font-mono); font-size: 10px; font-weight: 800; cursor: pointer;
}
.pos-switch small { display: block; color: var(--dim); font-size: 7px; font-weight: 500; line-height: 1; margin-top: 2px; }
.pos-switch.active { border-color: var(--lime); background: rgba(214,255,75,.14); color: var(--lime); }
.pos-switch:disabled { opacity: .35; cursor: not-allowed; }
.player-modal-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.player-stats-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.player-stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 7px; }
.player-stat { padding: 7px 4px; text-align: center; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.player-stat b { display: block; font-family: var(--font-display); font-size: calc(14px + 0px); white-space: nowrap; }
.player-stat small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 2px; }
.player-detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.player-detail-box { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.015); min-width: 0; }
.honor-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.honor-chip { padding: 3px 6px; border: 1px solid rgba(245,201,107,.24); border-radius: 4px; background: rgba(245,201,107,.07); color: var(--gold); font-size: calc(8px + 2px); }
.career-table { width: 100%; min-width: 620px; border-collapse: collapse; margin-top: 6px; }
.career-table th, .career-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: calc(7px + 2px); white-space: nowrap; }
.career-table th { color: var(--dim); font-weight: 500; }
.career-table td:first-child, .career-table th:first-child,
.career-table td:nth-child(2), .career-table th:nth-child(2) { text-align: left; font-family: var(--font-body); }

/* offer modal */
.offer-summary { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.offer-summary .os-copy b { display: block; font-size: calc(13px + 1px); }
.offer-summary .os-copy small { display: block; color: var(--muted); font-size: calc(9px + 2px); margin-top: 3px; }
.offer-row { margin-top: 18px; }
.offer-row label { display: flex; justify-content: space-between; color: var(--muted); font-size: calc(10px + 2px); margin-bottom: 7px; }
.offer-row label b { color: var(--text); font-family: var(--font-mono); }
.offer-row input[type=range] { width: 100%; accent-color: var(--lime); }
.offer-years { display: flex; gap: 5px; margin-top: 6px; }
.offer-years button { flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: calc(10px + 2px); }
.offer-years button.active { border-color: var(--lime); color: #08090b; background: var(--lime); font-weight: 800; }
.offer-note { color: var(--dim); font-size: calc(9px + 2px); line-height: 1.6; margin-top: 13px; }

/* settings list */
.settings-list { display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border: 0; }
.settings-row b { display: block; font-size: calc(11px + 2px); }
.settings-row small { display: block; color: var(--dim); font-size: calc(9px + 2px); margin-top: 2px; }
.switch { width: 38px; height: 21px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; transition: .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on { background: var(--lime); }
.switch.on::after { left: 20px; background: #08090b; }

/* inbox */
.inbox-list { display: flex; flex-direction: column; gap: 8px; }
.inbox-item { padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.inbox-item.accepted { opacity: .45; }
.inbox-item.rejected { opacity: .35; }
.inbox-item-top { display: flex; justify-content: space-between; gap: 10px; }
.inbox-item-top b { font-size: calc(11px + 2px); }
.inbox-item p { color: var(--muted); font-size: calc(9.5px + 2px); line-height: 1.6; margin-top: 5px; }
.inbox-actions { display: flex; gap: 6px; margin-top: 10px; }

/* news article */
.article-cat { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.article-title { font-family: var(--font-display); font-size: calc(25px + 0px); line-height: 1.15; letter-spacing: -.025em; }
.article-meta { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); margin-top: 9px; letter-spacing: .06em; }
.article-body { color: var(--muted); font-size: calc(12px + 2px); line-height: 1.85; margin-top: 18px; }
.article-body p + p { margin-top: 10px; }

/* toasts */
.toast-layer { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  max-width: min(90vw, 480px);
  padding: 11px 16px;
  border: 1px solid rgba(214,255,75,.22);
  border-radius: 8px;
  background: rgba(15,18,22,.96);
  color: var(--text);
  font-size: calc(11px + 2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  animation: toastIn .3s var(--ease);
  pointer-events: auto;
}
.toast::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); flex: 0 0 auto; }
.toast.error { border-color: rgba(255,91,98,.3); }
.toast.error::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.toast.warn { border-color: rgba(245,201,107,.3); }
.toast.warn::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* confirm */
.confirm-icon { width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,91,98,.08); color: var(--red); font-size: calc(20px + 0px); border: 1px solid rgba(255,91,98,.25); }
.confirm-copy { text-align: center; color: var(--muted); font-size: calc(11px + 2px); line-height: 1.7; }
.confirm-copy b { display: block; color: var(--text); font-size: calc(14px + 1px); margin-bottom: 5px; }

/* ---------- onboarding ---------- */
.onboarding {
  min-height: 100vh;
  padding: 22px clamp(20px, 4vw, 64px) 0;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 700px at 82% 18%, rgba(85,37,131,.22), transparent 62%),
    radial-gradient(800px 600px at 8% 90%, rgba(214,255,75,.045), transparent 60%),
    #08090b;
}
.ob-court {
  position: absolute;
  right: -10vw; top: 8vh;
  width: 75vw; height: 84vh;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
  transform: perspective(900px) rotateY(-12deg) rotateX(2deg);
  opacity: .55;
  pointer-events: none;
}
.ob-court::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:1px; background:rgba(255,255,255,.05); }
.ob-court::after { content:""; position:absolute; left:50%; top:50%; width:20vw; height:20vw; min-width:180px; min-height:180px; border:1px solid rgba(255,255,255,.055); border-radius:50%; transform:translate(-50%,-50%); }
.ob-arc { position:absolute; left:50%; top:50%; width:34vw; height:34vw; min-width:300px; min-height:300px; border:1px solid rgba(255,255,255,.04); border-radius:50%; transform:translate(-50%,-50%); }
.ob-key { position:absolute; left:50%; top:0; width:18vw; height:26vh; border:1px solid rgba(255,255,255,.05); border-top:0; transform:translateX(-50%); }
.ob-key.bottom { top:auto; bottom:0; border-top:1px solid rgba(255,255,255,.05); border-bottom:0; }
.ob-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ob-header .brand { margin-bottom: 0; padding: 0; }
.ob-header .brand-copy { display: block; }
.ob-actions { display: flex; align-items: center; gap: 14px; }
.ob-actions .meta { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .1em; }
.ob-main {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(390px, .88fr) minmax(0, 1.3fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  flex: 1;
  padding: 42px 0 28px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.ob-intro { padding-bottom: 20px; }
.ob-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-family: var(--font-mono); font-size: calc(9px + 2px); letter-spacing: .16em; }
.ob-kicker::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--lime); box-shadow:0 0 12px var(--lime); }
.ob-intro h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.45vw, 66px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.055em;
}
.ob-intro h1 span { color: var(--muted); }
.ob-intro .ob-lead { margin-top: 20px; max-width: 430px; color: var(--muted); font-size: calc(13px + 1px); line-height: 1.8; }
.ob-features { display: flex; gap: 22px; margin-top: 27px; flex-wrap: wrap; }
.ob-feature b { display: block; color: var(--text); font-family: var(--font-display); font-size: calc(20px + 0px); letter-spacing: -.02em; }
.ob-feature small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .1em; margin-top: 3px; }
.ob-gm { margin-top: 30px; max-width: 360px; }
.ob-gm label { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.ob-gm input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--text); font-size: calc(12px + 2px); }
.ob-gm input:focus { outline: none; border-color: var(--lime); background: rgba(214,255,75,.03); }
.ob-gm .hint { color: var(--dim); font-size: calc(9px + 2px); margin-top: 6px; }
.ob-select { min-width: 0; }
.ob-select-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.ob-select-head h2 { font-family: var(--font-display); font-size: calc(21px + 0px); letter-spacing: -.02em; }
.ob-select-head p { color: var(--dim); font-size: calc(9px + 2px); margin-top: 3px; }
.ob-conf-tabs { display: flex; gap: 4px; flex: 0 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team-choice {
  position: relative;
  min-height: 154px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(110px 80px at 95% 0%, color-mix(in srgb, var(--tc2) 18%, transparent), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--tc1) 16%, #0f1217), #0e1115);
  text-align: left;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
  overflow: hidden;
}
.team-choice::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--tc2), var(--tc1));
  opacity: .5;
}
.team-choice:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.team-choice.selected { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 16px 40px rgba(0,0,0,.35); background: radial-gradient(150px 110px at 90% 0%, color-mix(in srgb, var(--tc2) 28%, transparent), transparent 70%), linear-gradient(145deg, color-mix(in srgb, var(--tc1) 30%, #0f1217), #0e1115); }
.team-choice.selected::before { opacity: 1; width: 3px; }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tc-top .team-badge { width: 36px; height: 39px; }
.tc-conf { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.tc-name { margin-top: 10px; }
.tc-name small { display: block; color: rgba(255,255,255,.42); font-size: calc(8px + 2px); letter-spacing: .06em; }
.tc-name b { display: block; font-family: var(--font-display); font-size: calc(17px + 0px); letter-spacing: -.02em; margin-top: 1px; }
.tc-star { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.tc-star span { color: var(--muted); font-size: calc(8px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-star b { color: var(--text); font-family: var(--font-display); font-size: calc(15px + 0px); }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); }
.tc-foot span { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.diff-dots { display: flex; gap: 2px; align-items: center; }
.diff-dots i { width: 3px; height: 9px; border-radius: 2px; background: rgba(255,255,255,.12); }
.diff-dots i.on { background: var(--tc2, var(--lime)); }
.team-legend { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .02em; }
.team-legend .diff-dots i.on { background: var(--lime); }
.ob-start-panel {
  margin-top: 22px; max-width: 430px; padding: 14px 15px 13px;
  border: 1px solid rgba(214,255,75,.22); border-radius: 11px;
  background: linear-gradient(145deg, rgba(214,255,75,.075), rgba(255,255,255,.02));
}
.ob-start-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.ob-start-head span { color: var(--lime); font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; }
.ob-start-head small { color: var(--dim); font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; }
.ob-start-panel .ob-selected { min-height: 38px; margin-bottom: 8px; }
.ob-start-panel .ob-save-slot { justify-content: flex-start; margin-bottom: 7px; }
.ob-start-panel .ob-save-slot select { width: 100%; }
.ob-start-panel .ob-start { width: 100%; margin-top: 3px; }
.ob-start-panel .ob-disclaimer { margin-top: 8px; }
.ob-start-panel .ob-install { width: 100%; margin-top: 8px; border-color: rgba(255,255,255,.18); }
.ob-install-note { color: var(--dim); font-size: 8px; line-height: 1.5; margin-top: 5px; }
.ob-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0 21px;
  border-top: 1px solid var(--line);
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.ob-selected { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.ob-selected .os-placeholder { color: var(--dim); font-size: calc(10px + 2px); }
.ob-selected .os-copy b { display: block; font-size: calc(12px + 2px); }
.ob-selected .os-copy small { display: block; color: var(--muted); font-size: calc(9px + 2px); margin-top: 3px; }
.ob-selected .os-goal { margin-left: 8px; }
.ob-start { min-width: 220px; justify-content: space-between; }
.ob-start:disabled { opacity: .3; }
.ob-disclaimer { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .07em; margin-top: 7px; }
.ob-mobile-cta { display: none; }

/* ---------- history / legacy ---------- */
.franchise-history { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; margin-bottom: 10px; border: 1px solid rgba(245,201,107,.2); border-radius: 10px; background: linear-gradient(110deg, rgba(245,201,107,.07), rgba(255,255,255,.012)); }
.franchise-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.franchise-copy b { display: block; font-family: var(--font-display); font-size: calc(17px + 0px); margin-top: 3px; }
.franchise-copy span { display: block; color: var(--muted); font-size: calc(8px + 2px); margin-top: 3px; }
.franchise-years { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 60%; }
.franchise-years span { padding: 2px 5px; border: 1px solid rgba(245,201,107,.2); border-radius: 3px; color: var(--gold); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.history-hero { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 10px; margin-bottom: 13px; }
.history-big, .history-kpi { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(245,201,107,.08), rgba(255,255,255,.015)); padding: 13px 14px; }
.history-big small, .history-kpi small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.history-big b { display: block; color: var(--gold); font-family: var(--font-display); font-size: 42px; line-height: 1; margin-top: 5px; }
.history-big span { display: block; color: var(--muted); font-size: calc(9px + 2px); margin-top: 4px; }
.history-kpi b { display: block; font-family: var(--font-display); font-size: 27px; margin-top: 6px; }
.history-kpi span { display: block; color: var(--dim); font-size: calc(8px + 2px); margin-top: 3px; }
.history-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr); gap: 12px; align-items: start; }
.history-side { display: grid; gap: 12px; }
.history-row { display: grid; grid-template-columns: 62px minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr); gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history-row:last-child { border-bottom: 0; }
.history-season b { display: block; font-family: var(--font-display); font-size: 14px; }
.history-season small { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.history-champ { display: flex; align-items: center; gap: 7px; min-width: 0; }
.history-champ b { display: block; font-size: calc(9px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-champ small { display: block; color: var(--dim); font-size: calc(7px + 2px); }
.history-meta small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.history-meta b { display: block; font-size: calc(8px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.award-card { padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.award-card > small { display: block; color: var(--gold); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.award-card.empty { color: var(--dim); }
.award-card.empty > span { display: block; font-size: calc(8px + 2px); margin-top: 8px; }
.award-player { display: flex; align-items: center; gap: 7px; margin-top: 7px; min-width: 0; }
.award-player b { display: block; font-size: calc(9px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award-player span { display: block; color: var(--dim); font-size: calc(7px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-nba { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 3px; }
.all-nba > small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.all-nba-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.all-nba-list button { cursor: pointer; }
.retired-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.retired-row:last-child { border-bottom: 0; }
.retired-row div { min-width: 0; flex: 1; }
.retired-row b { display: block; font-size: calc(9px + 2px); }
.retired-row small { display: block; color: var(--dim); font-size: calc(7px + 2px); }

/* ---------- player comparison ---------- */
.compare-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.compare-selects label { display: grid; gap: 5px; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .06em; }
.compare-selects select { width: 100%; min-height: 36px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel-2); color: var(--text); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.compare-head { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); min-width: 0; }
.compare-head > div { min-width: 0; flex: 1; }
.compare-head b { display: block; font-size: calc(10px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-head small { display: block; color: var(--dim); font-size: calc(7px + 2px); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-head .tag { white-space: nowrap; }
.compare-table { margin-top: 10px; border-top: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; align-items: center; padding: 6px 3px; border-bottom: 1px solid rgba(255,255,255,.045); }
.compare-row span { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.compare-row b { font-size: calc(9px + 2px); font-weight: 600; }
.compare-row b:first-of-type { color: var(--blue); }
.compare-row b:last-of-type { color: var(--gold); }
.compare-section { margin-top: 12px; }
.compare-section > .eyebrow { display: block; margin-bottom: 4px; }

/* ---------- responsive ---------- */
@media (min-width: 1101px) and (max-height: 1020px) {
  .ob-main { padding: 18px 0 8px; }
  .ob-intro h1 { font-size: clamp(38px, 4vw, 58px); }
  .ob-intro .ob-lead { margin-top: 15px; }
  .ob-features { margin-top: 16px; }
  .ob-gm { margin-top: 19px; }
  .team-grid { gap: 7px; }
  .team-choice { min-height: 128px; padding: 10px 11px; }
  .tc-name { margin-top: 6px; }
  .tc-star { margin-top: 5px; }
  .tc-foot { margin-top: 6px; padding-top: 5px; }
  .ob-foot { padding: 10px 0 13px; }
}
@media (max-width: 1280px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .app-shell { grid-template-columns: 206px minmax(0,1fr); }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .page { padding-left: 22px; padding-right: 22px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .hero { min-height: 320px; }
  .trade-layout { grid-template-columns: minmax(0,1fr) 225px minmax(0,1fr); }
  .assistant-layout { grid-template-columns: minmax(0,1.4fr) minmax(260px,.8fr); }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }
  .sidebar .brand { padding: 0; justify-content: center; }
  .sidebar .brand-copy, .sidebar .side-season span, .nav-label, .sidebar .nav-item span, .sidebar .nav-item em, .side-ai, .side-team-copy { display: none; }
  .sidebar .side-season { justify-content: center; padding: 10px; margin: 0 0 13px; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item.active::before { left: -1px; }
  .nav-ic { width: 22px; height: 22px; }
  .nav-item[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 52px; top: 50%; transform: translateY(-50%);
    padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 5px;
    background: var(--panel-2); color: var(--text); font-size: calc(9px + 2px); white-space: nowrap; z-index: 5;
  }
  .side-team { justify-content: center; padding-left: 0; padding-right: 0; }
  .dash-grid .span-7, .dash-grid .span-5 { grid-column: span 12; }
  .dash-grid .span-4 { grid-column: span 6; }
  .dash-grid .span-8 { grid-column: span 12; }
  .ai-brief { min-height: 0; }
  .roster-metrics { grid-template-columns: repeat(4, 1fr); }
  .lineup-grid { gap: 7px; }
  .lineup-card { min-height: 260px; }
  .lineup-art { height: 148px; }
  .lineup-art .lineup-photo { height: 140px; }
  .strategy-strip { grid-template-columns: 1fr; }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-core { position: static; order: 3; }
  .trade-side { min-height: 0; }
  .asset-list { max-height: 320px; }
  .assistant-layout { grid-template-columns: 1fr; }
  .ob-main { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .ob-intro h1 { font-size: clamp(40px, 7vw, 64px); }
  .ob-intro .ob-lead { max-width: 620px; }
  .ob-features { margin-top: 18px; }
  .ob-gm { margin-top: 20px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .ob-court { opacity: .25; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: 64px; flex-direction: row; align-items: center;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line);
    background: rgba(10,11,13,.94);
    z-index: 60;
  }
  .sidebar .brand, .sidebar .side-season, .sidebar .side-bottom { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 2px; }
  .nav-item { flex-direction: column; gap: 3px; padding: 5px 2px; font-size: calc(8px + 2px); justify-content: center; flex: 1; border-radius: 7px; }
  .sidebar .nav-item span, .nav-item span { display: block; font-size: calc(8px + 2px); font-weight: 500; letter-spacing: .02em; }
  .sidebar .nav-item em, .nav-item em { display: none; }
  .nav-item.active::before { left: 30%; right: 30%; bottom: 0; top: auto; width: auto; height: 2px; }
  .nav-ic { width: 18px; height: 18px; }
  .main-wrap { padding-bottom: 72px; }
  .topbar { min-height: 62px; padding: 10px 15px; gap: 10px; }
  .topbar-title h2 { font-size: calc(16px + 0px); }
  .topbar-title .eyebrow { display: none; }
  .topbar-status { display: none; }
  .topbar-right { gap: 6px; }
  .topbar-right .btn { min-height: 34px; padding: 0 11px; font-size: calc(10px + 2px); }
  .topbar-right .icon-btn { width: 34px; height: 34px; }
  .page { padding: 16px 14px 30px; }
  .page-head { margin-bottom: 14px; align-items: flex-start; flex-direction: column; gap: 11px; }
  .page-head h1 { font-size: calc(30px + 0px); }
  .page-head-actions { justify-content: flex-start; }
  .dash-grid { gap: 10px; }
  .dash-grid .span-4, .dash-grid .span-6 { grid-column: span 12; }
  .hero { min-height: 300px; padding: 18px; }
  .hero-record-wrap { margin-top: 24px; }
  .hero-record b { font-size: calc(76px + 0px); }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 13px; }
  .hero-next { justify-content: space-between; }
  .panel-head { padding: 15px 15px 0; }
  .panel-body { padding: 13px 15px 16px; }
  .ai-text { padding: 12px 15px 0; }
  .ai-priorities { padding: 13px 15px 0; }
  .ai-footer { padding: 12px 15px 16px; }
  .roster-metrics { grid-template-columns: 1fr 1fr; gap: 7px; }
  .metric { padding: 12px; }
  .metric b { font-size: calc(21px + 0px); }
  .court-panel { padding: 13px; min-height: 260px; }
  .court-bg { inset: 10px; }
  .lineup-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; }
  .lineup-card { flex: 0 0 142px; min-height: 245px; }
  .lineup-art { height: 132px; }
  .lineup-art .silhouette { width: 120px; height: 145px; }
  .lineup-art .lineup-photo { height: 126px; }
  .lineup-art .jnum { font-size: calc(54px + 0px); }
  .lineup-avatar { bottom: 3px; }
  .lineup-avatar .prospect-avatar { width: 116px; height: 116px; }
  .lineup-info b { font-size: calc(11px + 2px); }
  .bench-table { min-width: 640px; }
  .table-scroll { overflow-x: auto; }
  .option-row { flex-wrap: wrap; gap: 8px; }
  .option-player { flex: 1 1 100%; }
  .option-money { text-align: left; flex: 1; }
  .option-actions { flex: 0 0 auto; }
  .standings-full { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }
  .playin-grid { grid-template-columns: 1fr; }
  .fa-hero { grid-template-columns: 1fr 1fr; }
  .fa-table { min-width: 0; }
  .fa-table th:nth-child(3), .fa-table td:nth-child(3),
  .fa-table th:nth-child(5), .fa-table td:nth-child(5),
  .fa-table th:nth-child(6), .fa-table td:nth-child(6),
  .fa-table th:nth-child(8), .fa-table td:nth-child(8),
  .fa-table th:nth-child(9), .fa-table td:nth-child(9) { display: none; }
  .fa-table th, .fa-table td { padding: 9px 5px; }
  .fa-player { gap: 7px; }
  .fa-player b { font-size: calc(10px + 2px); }
  .fa-player small { display: none; }
  .fa-table .ask { font-size: calc(9px + 2px); }
  .fa-table .btn.sm { padding: 0 8px; font-size: calc(9px + 2px); }
  .prospect-grid { grid-template-columns: 1fr; }
  .round-games { grid-template-columns: 1fr; }
  .sched-game:nth-child(3n) { border-right: 0; }
  .sched-game { border-right: 0; }
  .chat-panel { min-height: 560px; }
  .chat-log { max-height: 380px; padding: 14px; }
  .chat-head { padding: 14px; }
  .chat-input-row { padding: 10px 14px 14px; }
  .game-shell { padding: 18px 13px 40px; }
  .game-overlay .game-close { top: 9px; right: 9px; }
  .game-matchup { grid-template-columns: 1fr 68px 1fr; gap: 5px; margin-top: 22px; }
  .game-team .team-badge { width: 54px; height: 60px; }
  .game-team h2 { font-size: calc(20px + 0px); }
  .scouting { grid-template-columns: 1fr; margin-top: 20px; }
  .game-form-grid { grid-template-columns: 1fr; }
  .game-tactics { grid-template-columns: 1fr; }
  .live-score-row { grid-template-columns: 1fr 104px 1fr; gap: 6px; }
  .live-team { gap: 6px; }
  .live-team .team-badge { width: 30px; height: 33px; }
  .live-team b { font-size: calc(14px + 1px); }
  .live-score .nums { font-size: calc(36px + 0px); gap: 6px; }
  .live-score .nums .sep { font-size: calc(18px + 0px); }
  .live-grid { grid-template-columns: 1fr; }
  .final-scoreline { gap: 10px; }
  .final-scoreline .fs-score { font-size: calc(56px + 0px); }
  .final-scoreline .fs-team .team-badge { width: 48px; height: 53px; }
  .final-headline { font-size: calc(20px + 0px); padding: 0 4px; }
  .final-headline span { font-size: calc(11px + 2px); }
  .box-table th:nth-child(6), .box-table td:nth-child(6),
  .box-table th:nth-child(7), .box-table td:nth-child(7),
  .box-table th:nth-child(9), .box-table td:nth-child(9),
  .box-table th:nth-child(10), .box-table td:nth-child(10) { display: none; }
  .box-table { min-width: 0; }
  .presser-opts { grid-template-columns: 1fr; }
  .player-modal-top { grid-template-columns: 1fr; }
  .player-hero { min-height: 210px; }
  .player-hero .hero-photo { height: 208px; }
  .hero-avatar { bottom: 5px; }
  .hero-avatar .prospect-avatar { width: 126px; height: 126px; }
  .player-attrs { grid-template-columns: 1fr; }
  .modal-shell { margin: 10px auto; max-height: calc(100vh - 20px); width: calc(100% - 20px); }
  .modal-body { padding: 15px; }
  .modal-head { padding: 14px 15px; }
  .modal-foot { padding: 11px 15px; }
  .ob-main { padding-top: 24px; }
  .ob-intro h1 { font-size: calc(44px + 0px); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-choice { min-height: 145px; }
  .ob-foot { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 20px; }
  .ob-start { width: 100%; }
  .ob-selected { min-height: 38px; }
  .ob-court { display: none; }
  .onboarding { padding: 16px 16px 92px; }
  .ob-foot .ob-start { display: none; }
  .ob-foot .ob-disclaimer { display: none; }
  .ob-mobile-cta {
    display: flex;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 60;
    align-items: center; gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(214,255,75,.25);
    border-radius: 11px;
    background: rgba(12,14,17,.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
    animation: pageIn .3s var(--ease);
  }
  .omc-copy { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
  .omc-copy div { min-width: 0; }
  .omc-copy b { display: block; font-size: calc(11px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .omc-copy small { display: block; color: var(--muted); font-size: calc(8px + 2px); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ob-mobile-cta .btn { min-height: 40px; padding: 0 14px; font-size: calc(11px + 2px); }
}
@media (max-width: 520px) {
  .ob-actions .meta { display: none; }
  .ob-intro h1 { font-size: calc(38px + 0px); }
  .ob-features { gap: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .team-choice { min-height: 138px; padding: 10px; }
  .tc-name b { font-size: calc(15px + 0px); }
  .tc-star b { font-size: calc(13px + 1px); }
  .fa-hero { grid-template-columns: 1fr 1fr; }
  .fa-stat b { font-size: calc(21px + 0px); }
  .trade-side-head { padding: 10px; }
  .asset-row { padding: 7px 5px; }
  .asset-row .ar-sal { display: none; }
  .page-head-actions .btn { min-height: 36px; font-size: calc(10px + 2px); padding: 0 11px; }
  .tag { font-size: calc(8px + 2px); }
  .news-item { grid-template-columns: 42px 1fr; }
  .news-tag { display: none; }
  .hero-team-copy h2 { font-size: calc(23px + 0px); }
  .hero-record b { font-size: calc(66px + 0px); }
  .hero-kpis { gap: 15px; }
  .hero-kpi b { font-size: calc(15px + 0px); }
  .game-vs .vs { font-size: calc(10px + 2px); }
  .game-team p { font-size: calc(7px + 2px); }
  .live-score .nums { font-size: calc(31px + 0px); }
  .live-team b { font-size: calc(12px + 2px); }
  .live-team .team-badge { display: none; }
  .chat-suggestions { padding: 0 14px 10px; }
  .ob-selected .os-goal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- history / compare mobile ---------- */
@media (max-width: 820px) {
  .franchise-history { align-items: flex-start; flex-direction: column; }
  .franchise-years { justify-content: flex-start; max-width: 100%; }
  .history-hero { grid-template-columns: 1fr 1fr; }
  .history-big { grid-column: 1 / -1; }
  .history-layout { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 52px minmax(0,1fr); }
  .history-row .history-meta { display: none; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 86px 1fr 1fr; }
  .lottery-order { grid-template-columns: 1fr 1fr; }
}

/* ---------- rookie teams ---------- */
.rookie-teams { display: grid; gap: 8px; margin-top: 10px; }
.rookie-teams > div > small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }

@media (max-width: 820px) {
  .player-stats-row { grid-template-columns: repeat(3, 1fr); }
  .player-detail-grid { grid-template-columns: 1fr; }
}

/* ---------- retired jersey rows ---------- */
.retired-num { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(245,201,107,.28); border-radius: 6px; background: rgba(245,201,107,.06); color: var(--gold); font-family: var(--font-display); font-size: calc(13px + 0px); }

.player-detail-box .table-scroll { max-height: none; overflow-x: auto; }

/* ---------- dashboard recent form ---------- */
.recent-form { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 12px; margin: 10px 0 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.recent-form-head b { display: block; font-family: var(--font-display); font-size: calc(15px + 0px); letter-spacing: -.01em; }
.recent-form-head .dim { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 3px; }
.recent-results { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
.recent-result { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.recent-result.win { border-color: rgba(214,255,75,.22); }
.recent-result.loss { border-color: rgba(255,91,98,.22); }
.rr-result { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-family: var(--font-display); font-size: calc(10px + 2px); font-weight: 800; }
.recent-result.win .rr-result { color: #08090b; background: var(--lime); }
.recent-result.loss .rr-result { color: #08090b; background: var(--red); }
.rr-team { display: inline-flex; align-items: center; gap: 4px; margin-left: 5px; vertical-align: middle; min-width: 0; }
.rr-team .team-badge { width: 21px; height: 23px; }
.rr-team b { font-size: calc(9px + 2px); white-space: nowrap; }
.rr-score { float: right; color: var(--text); font-family: var(--font-display); font-size: calc(15px + 0px); }
.rr-score span { color: var(--dim); margin: 0 2px; font-size: calc(10px + 2px); }
.rr-meta { clear: both; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 5px; }
.recent-empty { grid-column: 1 / -1; color: var(--dim); font-size: calc(9px + 2px); padding: 6px 0; }

@media (max-width: 820px) {
  .recent-form { grid-template-columns: 1fr; gap: 7px; }
  .recent-results { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .recent-result { flex: 0 0 142px; }
}

/* ---------- data center ---------- */
.data-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.data-summary > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); min-width: 0; }
.data-summary small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.data-summary b { display: block; margin-top: 5px; font-family: var(--font-display); font-size: calc(18px + 0px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-summary span { display: block; color: var(--dim); font-size: calc(8px + 2px); margin-top: 2px; }
.data-team-pick select { width: 100%; margin-top: 5px; min-height: 32px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--panel-2); color: var(--text); }
.data-panel .panel-body { padding-top: 8px; }
.data-table-wrap { max-height: 68vh; overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
.data-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.data-table th { position: sticky; top: 0; z-index: 2; padding: 0; background: #161a20; border-bottom: 1px solid var(--line-strong); text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); white-space: nowrap; text-align: right; }
.data-table tr:hover td { background: rgba(255,255,255,.035); color: var(--text); }
.data-sort { display: flex; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; padding: 9px 7px; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); font-weight: 600; letter-spacing: .03em; text-align: right; }
.data-sort:first-child { justify-content: flex-start; }
.data-sort:hover, .data-sort.active { color: var(--lime); }
.data-sort span { color: var(--dim); font-size: calc(8px + 2px); }
.data-sort.active span { color: var(--lime); }
.data-player { padding: 0; color: var(--text); font-family: var(--font-body); font-size: calc(9px + 2px); font-weight: 600; text-align: left; }
.data-player:hover { color: var(--lime); }
.data-team-cell { display: inline-flex; align-items: center; gap: 4px; }
.data-team-cell .team-badge { width: 21px; height: 23px; }
.data-team-cell span { color: var(--dim); font-size: calc(7px + 2px); }

@media (max-width: 820px) {
  .data-summary { grid-template-columns: 1fr 1fr; }
  .data-team-pick { grid-column: 1 / -1; }
  .data-table-wrap { max-height: 62vh; }
}

@media (max-width: 820px) {
  .nav-item span { font-size: 9px; letter-spacing: 0; }
}

/* ---------- seek trade matches ---------- */
.trade-match-summary { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.trade-match-summary .dim { margin-left: auto; font-family: var(--font-mono); font-size: 8px; }
.trade-match-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 62vh; overflow: auto; padding-right: 2px; }
.trade-match-card { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); min-width: 0; }
.trade-match-head { display: flex; align-items: center; gap: 7px; }
.trade-match-head > div { min-width: 0; flex: 1; }
.trade-match-head b { display: block; font-size: calc(9px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-match-head small { display: block; color: var(--dim); font-size: calc(7px + 2px); margin-top: 2px; }
.trade-match-target { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.018); min-width: 0; }
.trade-match-target > div { min-width: 0; }
.trade-match-target small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.trade-match-target b { display: block; font-size: calc(9px + 2px); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-match-target span:not(.tag) { display: block; color: var(--dim); font-size: calc(7px + 2px); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-match-return { margin-top: 8px; }
.trade-match-return small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.trade-match-return b { display: block; color: var(--muted); font-size: calc(8px + 2px); margin-top: 2px; }
.trade-match-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.trade-match-foot > span { flex: 1; color: var(--dim); font-size: calc(7px + 2px); line-height: 1.4; }
.trade-match-foot .btn { flex: 0 0 auto; }

@media (max-width: 820px) {
  .trade-match-list { grid-template-columns: 1fr; max-height: 66vh; }
}

/* ---------- draft flow ---------- */
.draft-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.draft-controls .btn { min-height: 30px; }
.draft-trade-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); padding: 10px 12px; }
.draft-trade-box .panel-head { padding: 0 0 8px; }
.draft-trade-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-trade-pick { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.draft-trade-pick b { color: var(--gold); font-family: var(--font-display); font-size: calc(16px + 0px); }
.draft-trade-pick span { font-family: var(--font-mono); font-size: calc(8px + 2px); }
.draft-trade-pick small { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.draft-overview { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); padding: 12px; }
.draft-overview .panel-head { padding: 0 0 10px; }
.draft-recap-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.draft-recap-summary > div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.draft-recap-summary small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); }
.draft-recap-summary b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: calc(18px + 0px); }
.draft-recap-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.draft-recap-table th, .draft-recap-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: calc(8px + 2px); }
.draft-recap-table th { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); font-weight: 500; }
.draft-recap-table td:nth-child(1), .draft-recap-table th:nth-child(1),
.draft-recap-table td:nth-child(5), .draft-recap-table th:nth-child(5),
.draft-recap-table td:nth-child(6), .draft-recap-table th:nth-child(6) { text-align: right; font-family: var(--font-mono); }
.draft-recap-table tr.mine td { background: rgba(214,255,75,.055); color: var(--text); }
.draft-recap-table td .team-badge { display: inline-block; vertical-align: middle; width: 20px; height: 22px; margin-right: 4px; }
.draft-offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 64vh; overflow: auto; }
.draft-offer-card { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.draft-offer-swap { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.draft-offer-swap .arr { color: var(--dim); }
.draft-offer-meta { color: var(--dim); font-size: calc(7px + 2px); line-height: 1.5; margin: 6px 0 8px; }
.draft-offer-card .btn { width: 100%; }
@media (max-width: 820px) {
  .draft-offer-list { grid-template-columns: 1fr; }
  .draft-recap-summary { grid-template-columns: 1fr 1fr; }
}

/* ---------- playoff tree ---------- */
.bracket-controls { display: flex; align-items: center; gap: 9px; margin: 12px 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.bracket-controls .dim { margin-left: auto; font-family: var(--font-mono); font-size: calc(7px + 2px); }
.bracket-tree { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 28px; overflow-x: auto; padding: 12px 18px 18px 0; }
.bracket-col { position: relative; min-width: 220px; display: flex; flex-direction: column; }
.bracket-col:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 9%; bottom: 9%; width: 1px; background: var(--line); }
.bracket-match-list { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 9px; }
.bracket-col .series-card { position: relative; }
.bracket-col:not(:last-child) .series-card::after { content: ""; position: absolute; right: -15px; top: 50%; width: 15px; height: 1px; background: var(--line); }
.bracket-col .bracket-round-title { margin-bottom: 10px; white-space: nowrap; }
@media (max-width: 1100px) {
  .bracket-tree { grid-template-columns: repeat(4, 210px); gap: 24px; }
}

.bracket-placeholder { opacity: .38; border-style: dashed; }
.bracket-placeholder .series-meta { color: var(--dim); }

/* ---------- split playoff bracket ---------- */
.bracket-split { display: grid; grid-template-columns: minmax(0,1fr) 240px minmax(0,1fr); gap: 16px; align-items: start; overflow-x: auto; padding: 8px 2px 18px; }
.conf-bracket { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.012); padding: 10px; }
.conf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 1px 3px 9px; border-bottom: 1px solid var(--line); }
.conf-head b { font-family: var(--font-display); font-size: calc(18px + 0px); }
.conf-rounds { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-top: 10px; }
.conf-col { position: relative; min-width: 0; display: flex; flex-direction: column; }
.conf-col:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 10%; bottom: 10%; width: 1px; background: var(--line); }
.conf-round-label { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .06em; white-space: nowrap; margin-bottom: 7px; }
.conf-match-list { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 8px; }
.conf-match-list .series-card { position: relative; padding: 8px; }
.conf-match-list .series-card .ss-name { font-size: calc(8px + 2px); }
.conf-match-list .series-card .series-meta { font-size: calc(7px + 2px); }
.conf-match-list .series-card .team-badge { width: 24px; height: 26px; }
.conf-col:not(:last-child) .series-card::after { content: ""; position: absolute; right: -7px; top: 50%; width: 7px; height: 1px; background: var(--line); }
.east .conf-col:not(:first-child)::after { right: auto; left: -7px; }
.east .conf-col:not(:first-child) .series-card::after { right: auto; left: -7px; }
.finals-column { display: flex; flex-direction: column; justify-content: center; align-self: stretch; min-height: 220px; padding-top: 42px; }
.finals-label { text-align: center; margin-bottom: 9px; }
.finals-label b { display: block; font-family: var(--font-display); font-size: calc(17px + 0px); margin-top: 3px; }
.finals-column .series-card { border-color: rgba(245,201,107,.28); background: rgba(245,201,107,.035); }
@media (max-width: 1100px) {
  .bracket-split { grid-template-columns: minmax(0,1fr) 210px minmax(0,1fr); }
  .conf-rounds { gap: 7px; }
}
@media (max-width: 820px) {
  .bracket-split { grid-template-columns: 1fr; overflow-x: visible; }
  .finals-column { min-height: auto; padding-top: 0; }
  .conf-rounds { overflow-x: auto; grid-template-columns: repeat(3, 190px); }
}

.conf-match-list .series-card .ss-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf-match-list .series-card .series-side { gap: 4px; }
.conf-match-list .series-card .ss-seed { width: 20px; }

/* ---------- play-in bracket ---------- */
.playin-bracket { margin-bottom: 13px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.012); }
.playin-bracket-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.playin-bracket-head h3 { font-family: var(--font-display); font-size: calc(17px + 0px); margin-top: 2px; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 9px; }
.pt-conf { min-width: 0; }
.pt-conf-title { color: var(--muted); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .08em; margin-bottom: 6px; }
.pt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; position: relative; }
.pt-final { width: 52%; margin: 9px auto 0; position: relative; }
.pt-final::before { content: ""; position: absolute; left: 50%; top: -9px; height: 9px; width: 1px; background: var(--line); }
.pt-game { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); min-width: 0; }
.pt-game.user { border-color: rgba(214,255,75,.28); }
.pt-game.done { background: rgba(255,255,255,.03); }
.pt-game.placeholder { opacity: .4; border-style: dashed; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 5px; }
.pt-head > span:first-child { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-head .ghost-link { font-size: calc(7px + 2px); }
.pt-status { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); white-space: nowrap; }
.pt-team { display: flex; align-items: center; gap: 4px; padding: 2px 0; min-width: 0; }
.pt-team > span { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); width: 16px; }
.pt-team .team-badge { width: 20px; height: 22px; }
.pt-team b { font-family: var(--font-mono); font-size: calc(8px + 2px); flex: 1; }
.pt-team em { color: var(--muted); font-family: var(--font-display); font-style: normal; font-size: calc(12px + 0px); }
.pt-team.winner b, .pt-team.winner em { color: var(--lime); }
@media (max-width: 820px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- regular / postseason split ---------- */
.postseason-head { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.postseason-row .player-stat { border-color: rgba(245,201,107,.18); background: rgba(245,201,107,.025); }
.career-table tr.current td { color: var(--text); background: rgba(214,255,75,.045); }

.awards-intro { color: var(--muted); font-size: calc(10px + 1px); line-height: 1.65; margin-bottom: 12px; }

/* ---------- All-NBA three teams ---------- */
.all-nba-teams { display: grid; gap: 9px; margin-top: 10px; }
.all-nba-team > small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .1em; }
.all-nba-team .all-nba-list { margin-top: 5px; }

/* ---------- five save slots ---------- */
.ob-save-slot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 9px; }
.ob-save-slot label { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .08em; }
.ob-save-slot select { width: 230px; }
.save-slots-intro { color: var(--muted); font-size: calc(10px + 1px); line-height: 1.6; margin-bottom: 12px; }
.save-slots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.save-slot { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.save-slot.active { border-color: rgba(214,255,75,.38); background: rgba(214,255,75,.035); }
.save-slot.empty { border-style: dashed; }
.save-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.save-slot-no { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); letter-spacing: .1em; }
.save-slot-team { display: flex; align-items: center; gap: 7px; margin-top: 8px; min-width: 0; }
.save-slot-team > div { min-width: 0; }
.save-slot-team b { display: block; font-family: var(--font-display); font-size: calc(16px + 0px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-slot-team small { display: block; color: var(--muted); font-size: calc(8px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-slot-time, .save-slot-empty { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 7px; }
.save-slot-empty { min-height: 38px; display: flex; align-items: center; }
.save-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
@media (max-width: 700px) {
  .save-slots { grid-template-columns: 1fr; }
  .ob-save-slot { justify-content: flex-start; }
  .ob-save-slot select { width: 100%; max-width: 260px; }
}

.career-source { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); line-height: 1.5; margin-top: 8px; }

/* ---------- offseason rating changes ---------- */
.rating-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.rating-summary > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); }
.rating-summary small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); letter-spacing: .06em; }
.rating-summary b { display: block; font-family: var(--font-display); font-size: calc(22px + 0px); margin-top: 2px; }
.rating-summary b.up, .rating-table tr.up .rating-delta { color: var(--lime); }
.rating-summary b.down, .rating-table tr.down .rating-delta { color: var(--red); }
.rating-intro { color: var(--muted); font-size: calc(10px + 1px); line-height: 1.6; margin-bottom: 10px; }
.rating-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.rating-table th { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); font-weight: 400; text-align: left; padding: 8px 7px; border-bottom: 1px solid var(--line); }
.rating-table td { padding: 8px 7px; border-bottom: 1px solid rgba(255,255,255,.045); font-family: var(--font-mono); font-size: calc(9px + 2px); }
.rating-table tr.up td { background: rgba(214,255,75,.025); }
.rating-table tr.down td { background: rgba(255,100,100,.025); }
.rating-player { display: flex; align-items: center; gap: 6px; }
.rating-player b { font-family: var(--font-display); font-size: calc(13px + 0px); }
.rating-delta { font-weight: 700; }
@media (max-width: 700px) {
  .rating-summary { grid-template-columns: 1fr 1fr; }
}

.rating-table .rating-why { color: var(--muted); font-size: calc(8px + 2px); white-space: nowrap; }


/* ---------- draft history ---------- */
.draft-history-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.draft-history-toolbar label { color: var(--dim); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.draft-history-toolbar select { width: 150px; }
.draft-history-toolbar .dim { margin-left: auto; font-family: var(--font-mono); font-size: calc(7px + 2px); }
.draft-history-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.draft-history-table th { color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); font-weight: 400; text-align: left; padding: 8px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.draft-history-table td { padding: 7px; border-bottom: 1px solid rgba(255,255,255,.045); font-family: var(--font-mono); font-size: calc(8px + 2px); }
.draft-history-table td:nth-child(4) { font-family: var(--font-display); font-size: calc(13px + 0px); }

/* ---------- native form controls on dark theme ---------- */
:root { color-scheme: dark; }
select {
  background-color: #111419;
  color: var(--text);
  color-scheme: dark;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  min-height: 32px;
  padding: 0 8px;
}
select option {
  background-color: #111419;
  color: var(--text);
}
select:focus { outline: none; border-color: var(--lime); }
select:disabled { opacity: .55; }
input[type="file"] { color: var(--muted); }

.prospect-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.injury-report { margin-bottom: 14px; }
.injury-list { display: flex; gap: 8px; flex-wrap: wrap; }
.injury-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,90,90,.24); border-radius: 9px; background: rgba(255,60,60,.06); color: var(--text); cursor: pointer; text-align: left; }
.injury-item:hover { background: rgba(255,60,60,.12); }
.injury-copy b { display: block; font-size: calc(10px + 2px); }
.injury-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: calc(7px + 2px); margin-top: 2px; }
.injury-impact { margin-left: auto; color: var(--red); font-family: var(--font-mono); font-size: calc(7px + 2px); white-space: nowrap; }

.injury-detail { margin: 9px 0; padding: 9px 10px; border: 1px solid rgba(255,90,90,.24); border-radius: 8px; background: rgba(255,60,60,.06); font-size: 10px; }
.injury-detail > div:first-child b { color: var(--red); font-size: calc(10px + 2px); }
.injury-detail > div:first-child span { display: block; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); font-size: 8px; }
.injury-history-row { display: flex; gap: 7px; align-items: baseline; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.06); color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.injury-history-row b { color: var(--text); font-weight: 600; }
.injury-history-row small { margin-left: auto; color: var(--muted); }

.nav { overflow-y: auto; min-height: 0; padding-right: 2px; }
.contract-table td { vertical-align: middle; }
.contract-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.contract-actions .btn { padding: 5px 8px; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.finance-projection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finance-projection > div { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.finance-projection small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.finance-projection b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 20px; }
.finance-projection span { display: block; margin-top: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.finance-note { margin-top: 10px; color: var(--dim); font-size: 9px; line-height: 1.6; }
.finance-bars { display: flex; flex-direction: column; gap: 9px; }
.finance-bar-row { display: grid; grid-template-columns: 28px minmax(80px, 1fr) 52px 28px; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; }
.finance-bar-row > div { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.finance-bar-row i { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.finance-bar-row b { text-align: right; color: var(--text); }
.finance-bar-row small { color: var(--dim); text-align: right; }
.top-salary-list { display: flex; flex-direction: column; gap: 5px; }
.top-salary-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.top-salary-row:hover { border-color: var(--line); background: rgba(255,255,255,.025); }
.top-salary-row span { min-width: 0; }
.top-salary-row b { display: block; font-size: calc(10px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-salary-row small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.top-salary-row strong { margin-left: auto; color: var(--lime); font-family: var(--font-mono); font-size: 9px; }
@media (max-width: 720px) {
  .finance-projection { grid-template-columns: 1fr; }
  .finance-bar-row { grid-template-columns: 26px minmax(60px, 1fr) 44px; }
  .finance-bar-row small { display: none; }
}

.tactic-read { display: flex; flex-direction: column; gap: 7px; }
.tactic-read-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.tactic-read-row b { color: var(--text); font-family: var(--font-mono); font-size: 9px; }
.tactic-quick { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.rotation-snapshot { display: flex; gap: 7px; flex-wrap: wrap; }
.rotation-chip { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); color: var(--text); cursor: pointer; text-align: left; }
.rotation-chip:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.rotation-chip b { display: block; font-size: calc(9px + 2px); }
.rotation-chip small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }

.bench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bench-card { display: flex; flex-direction: column; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); color: var(--text); cursor: pointer; text-align: left; transition: .16s; }
.bench-card:hover { border-color: rgba(214,255,75,.28); background: rgba(214,255,75,.035); }
.bench-card.injured { border-color: rgba(255,90,90,.22); background: rgba(255,60,60,.035); }
.bench-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bench-card-head > div { min-width: 0; }
.bench-card-head b { display: block; font-size: calc(10px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-card-head small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; margin-top: 2px; }
.bench-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.06); }
.bench-card-stats span { min-width: 0; }
.bench-card-stats small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.bench-card-stats b { display: block; margin-top: 1px; font-family: var(--font-display); font-size: 15px; }
.bench-card-stats .morale-dot { margin-right: 3px; }
@media (max-width: 900px) { .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bench-grid { grid-template-columns: 1fr; } }

.rotation-total { font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.rotation-total.good { color: var(--lime); background: rgba(214,255,75,.08); }
.rotation-total.warn { color: var(--gold); background: rgba(255,193,75,.08); }
.rotation-hint { color: var(--dim); font-size: 9px; line-height: 1.6; margin-bottom: 10px; }
.rotation-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rotation-group { min-height: 90px; padding: 8px; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.012); transition: .16s; }
.rotation-group.drag-over { border-color: var(--lime); background: rgba(214,255,75,.06); }
.rotation-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.rotation-group-head b { color: var(--text); font-family: var(--font-display); font-size: 12px; }
.rotation-player { display: flex; align-items: center; gap: 7px; padding: 6px 7px; margin-bottom: 5px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: grab; }
.rotation-player:hover { border-color: var(--line-strong); }
.rotation-player.dragging { opacity: .45; cursor: grabbing; }
.drag-handle { color: var(--dim); font-size: 10px; letter-spacing: -2px; cursor: grab; }
.rotation-copy { min-width: 0; flex: 1; }
.rotation-copy b { display: block; font-size: calc(9px + 2px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rotation-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; margin-top: 1px; }
.rotation-minute-field { display: flex; align-items: center; gap: 3px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.rotation-minute-field input { width: 42px; padding: 4px 3px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 10px; }
.rotation-minute-field input:focus { outline: none; border-color: var(--lime); }
.salary-input-row { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.salary-input-row input { width: 92px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 11px; }
.salary-input-row input:focus { outline: none; border-color: var(--lime); }
.salary-input-row small { margin-left: auto; color: var(--dim); font-size: 8px; }
@media (max-width: 760px) { .rotation-board { grid-template-columns: 1fr; } }

.starter-slots { display: flex; flex-direction: column; gap: 5px; }
.starter-slot { min-height: 38px; padding: 5px; border: 1px dashed rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.012); transition: .16s; }
.starter-slot.drag-over { border-color: var(--lime); background: rgba(214,255,75,.08); }
.starter-slot-head { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 4px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.starter-slot-head b { color: var(--lime); font-size: 9px; letter-spacing: .08em; }
.starter-slot-head span { max-width: 75%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.starter-slot .rotation-player { margin-bottom: 0; }
.starter-empty { padding: 8px 6px; color: var(--dim); font-size: 9px; text-align: center; border-radius: 6px; background: rgba(255,255,255,.02); }

.team-view-select { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.team-view-select > span { color: var(--dim); font-family: var(--font-mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.team-view-select select { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #111419; color: var(--text); font-size: 10px; }
.team-view-select select:focus { outline: none; border-color: var(--lime); }

.prospect-projection { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--dim); font-size: 8px; }
.prospect-projection b { color: var(--text); font-size: 9px; }
.ceiling-tag { padding: 3px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: 8px; white-space: nowrap; }
.ceiling-tag.ceil-hof { color: #ffd76a; background: rgba(255,193,75,.12); border: 1px solid rgba(255,193,75,.3); }
.ceiling-tag.ceil-allnba { color: var(--lime); background: rgba(214,255,75,.08); border: 1px solid rgba(214,255,75,.22); }
.ceiling-tag.ceil-allstar { color: #9fd0ff; background: rgba(91,162,255,.1); border: 1px solid rgba(91,162,255,.22); }
.ceiling-tag.ceil-starter { color: #b8c4d4; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.ceiling-tag.ceil-bench { color: var(--dim); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.ceiling-tag.ceil-fringe { color: #8d7a6a; background: rgba(160,120,80,.08); border: 1px solid rgba(160,120,80,.2); }
.ceiling-tag.ceil-unknown { color: var(--dim); }

/* readability pass: scale the whole UI slightly without changing card proportions */
html { zoom: 1.08; }

.option-hint { color: var(--dim); font-size: 9px; line-height: 1.65; margin-bottom: 10px; }
.option-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.option-select { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.option-select > span { color: var(--dim); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
.option-select select { width: 100%; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 10px; }
.option-select select:focus { outline: none; border-color: var(--lime); }
.usage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.usage-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); }
.usage-copy { min-width: 0; flex: 1; }
.usage-copy b { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-copy b em { color: var(--lime); font-style: normal; font-family: var(--font-mono); font-size: 7px; margin-left: 3px; }
.usage-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; margin-top: 1px; }
.usage-controls { display: flex; align-items: center; gap: 4px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.usage-controls input[type=range] { width: 64px; accent-color: var(--lime); }
.usage-controls input[type=number] { width: 40px; padding: 3px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 9px; }
@media (max-width: 760px) { .option-selects, .usage-list { grid-template-columns: 1fr; } }

.pause-panel { margin-top: 12px; border-color: rgba(245,201,107,.25); }
.pause-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 0 20px 18px; }
.pause-tactics .tactics-row { margin-top: 7px; }
.pause-sub { border-left: 1px solid var(--line); padding-left: 18px; }
.pause-sub-title { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin-bottom: 9px; }
.pause-sub-controls { display: flex; align-items: flex-end; gap: 7px; flex-wrap: wrap; }
.pause-sub-controls label { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.pause-sub-controls select { min-width: 130px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 10px; }
.pause-arrow { color: var(--lime); font-size: 14px; padding-bottom: 6px; }
.pause-hint { color: var(--dim); font-size: 8px; margin-top: 8px; line-height: 1.5; }
@media (max-width: 760px) { .pause-grid { grid-template-columns: 1fr; } .pause-sub { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }

.live-box-panel { margin-top: 12px; }
.live-box-tabs { display: flex; gap: 5px; }
.live-box-tab { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; }
.live-box-tab.active { color: var(--text); border-color: var(--lime); background: rgba(214,255,75,.07); }
.live-box-tab .team-badge { width: 20px; height: 22px; }
.live-box-table-wrap { overflow-x: auto; }
.live-box-table { width: 100%; min-width: 780px; border-collapse: collapse; font-family: var(--font-mono); font-size: 8.5px; }
.live-box-table th { padding: 7px 6px; text-align: right; color: var(--dim); font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap; }
.live-box-table th:first-child, .live-box-table th:nth-child(2) { text-align: left; }
.live-box-table td { padding: 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.045); white-space: nowrap; }
.live-box-table td:first-child, .live-box-table td:nth-child(2) { text-align: left; }
.live-box-table tr.on-court { background: rgba(214,255,75,.035); }
.live-box-player b { display: block; font-family: var(--font-body); font-size: 9.5px; }
.live-box-player small { color: var(--dim); font-size: 8px; }
.court-tag { display: inline-block; padding: 2px 5px; border-radius: 4px; font-size: 7.5px; }
.court-tag.on { color: var(--lime); background: rgba(214,255,75,.1); }
.court-tag.off { color: var(--dim); background: rgba(255,255,255,.04); }
.stamina { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.stamina span { width: 30px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.stamina i { display: block; height: 100%; background: var(--lime); }
.stamina em { color: var(--muted); font-style: normal; font-size: 8px; }
.pause-sub-list { display: flex; flex-direction: column; gap: 5px; max-height: 170px; overflow-y: auto; }
.sub-choice { display: grid; grid-template-columns: 16px minmax(90px,1fr) minmax(130px,1.25fr); align-items: center; gap: 5px; padding: 4px 5px; border: 1px solid var(--line); border-radius: 5px; }
.sub-choice input { accent-color: var(--lime); }
.sub-name { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-name small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.sub-choice select { min-width: 0; padding: 4px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); font-size: 9px; }
.pause-sub-run { margin-top: 8px; width: 100%; }
.sched-game.clickable { cursor: pointer; }
.sched-game.clickable:hover { border-color: var(--line-strong); background: rgba(214,255,75,.04); }
.game-box-team { margin-bottom: 18px; }
.game-box-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.game-box-head b { font-size: 13px; }
.game-box-head span { margin-left: auto; font-family: var(--font-display); font-size: 22px; }
.game-box-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 9px; }
.game-box-table th, .game-box-table td { padding: 6px 7px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.game-box-table th:first-child, .game-box-table td:first-child, .game-box-table th:nth-child(2), .game-box-table td:nth-child(2) { text-align: left; }
.game-box-table th { color: var(--dim); font-weight: 400; }
.game-box-table .box-pts, .live-box-table .box-pts { color: var(--lime); font-weight: 700; }

.pause-sub-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auto-sub-toggle { height: 22px; padding: 0 7px; font-size: 8px; }

.attr-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.attr-grade { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.018); }
.attr-grade em { color: var(--dim); font-family: var(--font-mono); font-style: normal; font-size: 8px; }
.attr-grade b { font-family: var(--font-display); font-size: 15px; line-height: 1; }
.grade-S { color: var(--gold); }
.grade-A { color: var(--lime); }
.grade-B { color: #9fd0ff; }
.grade-C { color: #d4b58a; }
.grade-D { color: var(--dim); }

.rating-table { min-width: 1180px; }
.rating-table .rating-attr { font-weight: 700; text-align: center; }
.rating-table .rating-attr.up { color: var(--lime); }
.rating-table .rating-attr.down { color: var(--red); }
.rating-table .rating-attr.flat { color: var(--dim); }

.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.badge-chip { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 8px; letter-spacing: .02em; background: rgba(255,255,255,.02); margin-top: 7px; }
.badge-chip.tier-1 { color: #c9b18a; border-color: rgba(201,177,138,.35); }
.badge-chip.tier-2 { color: #d8e4f7; border-color: rgba(216,228,247,.35); }
.badge-chip.tier-3 { color: var(--gold); border-color: rgba(255,193,75,.45); }
.badge-chip.tier-4 { color: var(--lime); border-color: rgba(214,255,75,.5); box-shadow: 0 0 12px rgba(214,255,75,.08); }
.lineup-card .badge-chip { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* broadcast package */
.broadcast-bar { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto 8px; padding: 8px 12px; border: 1px solid rgba(214,255,75,.18); border-radius: 8px; background: linear-gradient(90deg, rgba(214,255,75,.08), rgba(255,255,255,.015)); font-family: var(--font-mono); font-size: 8px; letter-spacing: .09em; }
.bc-live { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); font-weight: 700; }
.bc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 7px var(--red); animation: livePulse 1.2s infinite; }
.bc-brand { color: var(--text); font-weight: 700; white-space: nowrap; }
.bc-brand span { color: var(--dim); font-weight: 400; margin-left: 4px; }
.bc-venue { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-slate { margin-left: auto; color: var(--gold); white-space: nowrap; }
@keyframes livePulse { 50% { opacity: .35; } }

.adv-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin: 10px 0 12px; }
.adv-strip > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.adv-strip small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; }
.adv-strip b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.adv-strip span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.adv-strip b.up { color: var(--lime); }
.adv-strip b.down { color: var(--red); }

.broadcast-potg { max-width: 900px; margin: 12px auto; padding: 12px 16px; border: 1px solid rgba(255,193,75,.28); border-radius: 10px; background: linear-gradient(100deg, rgba(255,193,75,.08), rgba(255,255,255,.015)); }
.broadcast-potg .eyebrow { color: var(--gold); }
.potg-main { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.potg-main > div:first-of-type { flex: 1; }
.potg-main b { font-family: var(--font-display); font-size: 15px; }
.potg-main small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; margin-top: 2px; }
.potg-line { min-width: 38px; text-align: center; }
.potg-line b { display: block; color: var(--lime); font-size: 20px; }
.potg-line small { font-size: 7px; }

@media (max-width: 820px) {
  .broadcast-bar { flex-wrap: wrap; gap: 5px 10px; font-size: 7px; }
  .bc-venue { order: 4; width: 100%; }
  .bc-slate { margin-left: 0; }
  .adv-strip { grid-template-columns: 1fr 1fr; }
  .adv-strip > div:last-child { grid-column: 1 / -1; }
  .potg-main { flex-wrap: wrap; }
  .potg-main > div:first-of-type { flex: 1 0 100%; }
  .potg-line { flex: 1; }
  .data-table-wrap { overflow-x: auto; }
  .data-table { min-width: 980px; }
}
@media (max-width: 520px) {
  .broadcast-bar { border-radius: 6px; padding: 7px 9px; }
  .bc-brand { font-size: 7px; }
  .broadcast-potg { padding: 10px 12px; }
  .potg-line b { font-size: 17px; }
}

@media (max-width: 820px) {
}
@media (max-width: 520px) {
}

@media (max-width: 820px) {
  .game-shell { overflow-x: hidden; }
  .live-meta { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .win-prob { flex: 1 0 100%; max-width: none; }
  .live-controls { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .live-controls .btn { flex: 1 1 auto; min-width: 42px; }
}
@media (max-width: 520px) {
  .live-controls .btn { min-width: 36px; padding: 0 7px; font-size: 8px; }
  .broadcast-bar .bc-brand span { display: none; }
}

@media (max-width: 820px) {
  html, body, .game-overlay { max-width: 100%; overflow-x: hidden; }
  .game-shell { width: 100%; box-sizing: border-box; }
}

/* player search */
.player-search { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); }
.player-search .search-ic { color: var(--dim); font-family: var(--font-mono); font-size: 14px; line-height: 1; }
.player-search input { width: 155px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 10px; }
.player-search input::placeholder { color: var(--dim); }
.player-search input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: transparent; color: var(--dim); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.search-clear:hover { color: var(--text); }
.fa-search { margin-left: auto; }
.roster-search-panel .bench-grid { min-height: 80px; }
@media (max-width: 820px) {
  .player-search { width: 100%; box-sizing: border-box; }
  .player-search input { width: 100%; }
  .fa-search { margin-left: 0; }
}

.search-team { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--dim); font-family: var(--font-mono); font-size: 8px; white-space: nowrap; }
.search-team .team-badge { width: 20px; height: 22px; }
@media (max-width: 520px) {
  .search-team { font-size: 7px; }
  .search-team .team-badge { width: 17px; height: 19px; }
}

/* mobile polish */
@media (max-width: 700px) {
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-head-actions { width: 100%; flex-wrap: wrap; gap: 6px; }
  .page-head-actions .btn { flex: 1 1 auto; }
  .roster-metrics, .finance-metrics { grid-template-columns: 1fr 1fr; }
  .lineup-grid { grid-template-columns: 1fr 1fr; }
  .bench-grid { grid-template-columns: 1fr; }
  .data-summary { grid-template-columns: 1fr 1fr; }
  .data-summary .data-team-pick { grid-column: 1 / -1; }
  .trade-columns, .trade-layout, .draft-layout { grid-template-columns: 1fr !important; }
  .schedule-week { grid-template-columns: 1fr; }
  .history-layout { grid-template-columns: 1fr; }
  .table-scroll, .data-table-wrap, .fa-table-wrap { -webkit-overflow-scrolling: touch; }
  .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .player-search input { font-size: 16px; }
}
@media (max-width: 430px) {
  .roster-metrics, .finance-metrics { grid-template-columns: 1fr; }
  .lineup-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: calc(30px + 0px); }
  .page-head .lead { font-size: 10px; }
}

/* retirement report */
.retire-intro { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 12px; }
.retire-section { margin-top: 12px; }
.retire-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.retire-section-head h4 { margin: 0; font-family: var(--font-display); font-size: 14px; }
.retire-list { display: flex; flex-direction: column; gap: 5px; }
.retire-player-row, .retire-jersey-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); }
.retire-player-row > div, .retire-jersey-row > div { min-width: 0; flex: 1; }
.retire-player-row b, .retire-jersey-row b { display: block; font-family: var(--font-display); font-size: 12px; }
.retire-player-row small, .retire-jersey-row small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 8px; margin-top: 2px; }
.retire-player-row .tag, .retire-jersey-row .tag { white-space: nowrap; }
@media (max-width: 600px) {
  .retire-player-row, .retire-jersey-row { flex-wrap: wrap; }
  .retire-player-row > div, .retire-jersey-row > div { flex: 1 1 60%; }
}

/* mobile trade/draft polish */
@media (max-width: 700px) {
  .modal-shell { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; margin: 10px auto !important; }
  .modal-body { padding-left: 14px; padding-right: 14px; }
  .trade-assets, .trade-columns, .trade-grid, .draft-board, .draft-grid { grid-template-columns: 1fr !important; }
  .trade-player-row, .trade-pick-row { flex-wrap: wrap; }
  .draft-toolbar, .trade-toolbar { flex-wrap: wrap; }
  .draft-toolbar .btn, .trade-toolbar .btn { flex: 1 1 auto; }
  .stand-table { min-width: 620px; }
  .player-detail-grid, .player-stat-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { line-height: 1.05; }
}
@media (max-width: 430px) {
  .modal-shell { width: calc(100vw - 12px) !important; max-width: calc(100vw - 12px) !important; margin: 6px auto !important; }
  .modal-head h3 { font-size: 16px; }
  .page-head-actions .tag { font-size: 8px; }
  .table-scroll, .data-table-wrap, .fa-table-wrap { padding-bottom: 4px; }
}

/* multi-team trade */
.multi-intro { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 10px; }
.multi-partner-picker { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 7px; margin-bottom: 10px; }
.multi-partner-picker .partner-chip { flex: 0 0 auto; }
.multi-user-block, .multi-team-block { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 7px; background: rgba(255,255,255,.014); }
.multi-team-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.multi-team-head b { font-family: var(--font-display); font-size: 12px; }
.multi-team-head .tag { margin-left: auto; }
.multi-asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; }
.multi-asset { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); text-align: left; }
.multi-asset.selected { border-color: var(--lime); background: rgba(214,255,75,.07); }
.multi-asset .team-badge { width: 22px; height: 25px; }
.multi-asset-copy { min-width: 0; flex: 1; }
.multi-asset-copy b { display: block; font-family: var(--font-body); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-asset-copy small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 7px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-asset .check { opacity: 0; color: var(--lime); }
.multi-asset.selected .check { opacity: 1; }
.multi-eval { margin-top: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.multi-eval.ok { border-color: rgba(214,255,75,.35); color: var(--lime); background: rgba(214,255,75,.04); }
@media (max-width: 700px) {
  .multi-asset-list { grid-template-columns: 1fr; max-height: 220px; }
  .multi-partner-picker { flex-wrap: wrap; overflow-x: visible; }
}

.multi-asset { display: block; padding: 0; overflow: hidden; }
.multi-asset-pick { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 6px; border: 0; background: transparent; color: var(--text); text-align: left; }
.multi-asset-pick .check { opacity: 0; color: var(--lime); margin-left: auto; }
.multi-asset.selected .multi-asset-pick .check { opacity: 1; }
.multi-dest { width: calc(100% - 12px); margin: 0 6px 5px; border: 1px solid var(--line); border-radius: 4px; background: #111417; color: var(--muted); font-family: var(--font-mono); font-size: 7px; padding: 3px 4px; }

@media (max-width: 700px) {
  .modal-foot { position: sticky; bottom: 0; z-index: 2; background: var(--panel); border-top: 1px solid var(--line); }
  .modal-foot .btn { flex: 1 1 auto; }
  .trade-match-list { grid-template-columns: 1fr; }
  .multi-eval { position: static; }
  .page-head-actions .tag { white-space: normal; }
}

.multi-values { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.multi-values span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--font-mono); font-size: 8px; color: var(--muted); }
.multi-values span.ok { color: var(--lime); border-color: rgba(214,255,75,.28); }
.multi-values span.bad { color: var(--red); border-color: rgba(255,100,100,.28); }

/* inbox */
.inbox-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-family: var(--font-mono); font-size: 8px; }
.inbox-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.inbox-title b { font-family: var(--font-display); font-size: 13px; }
.inbox-offer-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.inbox-item.expired { opacity: .58; }
.inbox-item.accepted { border-color: rgba(214,255,75,.18); }
.inbox-actions { flex-wrap: wrap; }
@media (max-width: 600px) {
  .inbox-toolbar { flex-wrap: wrap; }
  .inbox-title b { font-size: 12px; }
  .inbox-actions .btn { flex: 1 1 auto; }
}

.prospect-tools { display: flex; gap: 4px; margin-top: 9px; flex-wrap: wrap; }
.prospect-tools .btn { flex: 1 1 auto; font-size: 8px; padding: 4px 5px; }
@media (max-width: 700px) { .prospect-tools .btn { font-size: 9px; } }

.prospect-report { margin-top: 7px; padding: 6px 8px; border: 1px solid rgba(214,255,75,.2); border-radius: 5px; color: var(--muted); font-size: 8px; line-height: 1.5; background: rgba(214,255,75,.03); }

/* detailed prospect reports */
.scout-report { display: grid; gap: 7px; margin-top: 9px; }
.scout-report-section { border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: rgba(255,255,255,.012); }
.scout-report-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.scout-report-head b { font-family: var(--font-display); font-size: 12px; }
.scout-report-head .tag { margin-left: auto; }
.scout-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.scout-metrics div { min-width: 0; }
.scout-metrics small { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.scout-metrics b { font-family: var(--font-display); font-size: 15px; }
.scout-metrics i { display: block; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.scout-metrics em { display: block; height: 100%; background: var(--lime); }
.scout-report-section p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.scout-medical { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.scout-verdict { padding: 8px; border-left: 2px solid var(--lime); color: var(--muted); font-size: 9px; line-height: 1.55; }
.scout-verdict b { display: block; color: var(--text); font-family: var(--font-display); font-size: 11px; margin-bottom: 3px; }
.scout-report.compact .scout-report-section p { display: none; }
.scout-report.compact .scout-report-section { padding: 6px 7px; }
.scout-report.compact .scout-metrics b { font-size: 13px; }
@media (max-width: 600px) { .scout-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- player modal mobile ---------- */
@media (max-width: 600px) {
  .player-modal-top { gap: 10px; }
  .player-hero { min-height: 168px; border-radius: 8px; }
  .player-hero .hero-photo { height: 168px; }
  .player-hero .jnum { font-size: 74px; }
  .player-hero .ph-ovr { font-size: 27px; left: 10px; top: 9px; }
  .player-hero .ph-pos { right: 9px; top: 10px; }
  .hero-avatar { bottom: 2px; }
  .hero-avatar .prospect-avatar { width: 108px; height: 108px; }
  .player-info h3 { font-size: 23px; }
  .player-sub { gap: 3px; margin-top: 7px; }
  .player-meta { gap: 4px; margin-top: 11px; }
  .player-meta div { padding: 7px 6px; }
  .player-meta small { font-size: 7px; }
  .player-meta b { font-size: 11px; }
  .player-status { gap: 8px; margin-top: 9px; }
  .player-attrs { margin-top: 13px; gap: 3px; }
  .attr-row { padding: 3px 0; }
  .player-stats-head { margin-top: 11px; }
  .player-stats-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .player-stat { padding: 5px 2px; }
  .player-stat b { font-size: 12px; }
  .player-stat small { font-size: 7px; }
  .player-detail-grid { gap: 7px; margin-top: 10px; }
  .player-detail-box { padding: 8px; }
  .player-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 10px; position: sticky; bottom: 0; background: var(--panel); z-index: 2; }
  .player-modal-actions .btn { width: 100%; min-height: 36px; }
  .career-table { min-width: 0; width: 100%; font-size: 7px; }
  .career-table th, .career-table td { padding: 4px 2px; }
  .career-table th:nth-child(5), .career-table td:nth-child(5),
  .career-table th:nth-child(10), .career-table td:nth-child(10),
  .career-table th:nth-child(11), .career-table td:nth-child(11),
  .career-table th:nth-child(12), .career-table td:nth-child(12) { display: none; }
  .career-source { font-size: 7px; }
}
@media (max-width: 380px) {
  .player-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .player-modal-actions { grid-template-columns: 1fr; }
}

/* ---------- mobile prospect cards / trade ---------- */
@media (max-width: 700px) {
  .prospect-grid { gap: 7px; }
  .prospect-card { padding: 10px; }
  .prospect-card .scout-report.compact { display: none; }
  .prospect-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 9px; line-height: 1.45; }
  .prospect-projection { gap: 4px; font-size: 8px; }
  .prospect-projection b { font-size: 9px; }
  .prospect-meta { gap: 5px; margin-top: 7px; }
  .prospect-meta .tag { font-size: 7px; padding: 2px 4px; }
  .prospect-grade b { font-size: 22px; }
  .prospect-grade small { font-size: 6px; }
  .prospect-top { gap: 5px; }
  .prospect-ident { gap: 6px; }
  .prospect-ident b { font-size: 13px; }
  .prospect-ident small { font-size: 7px; }
  .prospect-ident .prospect-avatar { width: 38px; height: 38px; }
  .prospect-report { padding: 6px; font-size: 7px; }

  .trade-layout { gap: 8px; }
  .trade-core { order: -1; position: static; }
  .trade-core-card { padding: 10px; }
  .trade-verdict { padding: 8px 5px; }
  .trade-verdict .verdict { font-size: 22px; margin-top: 4px; }
  .trade-verdict .verdict-label { font-size: 7px; }
  .trade-strategy-note { font-size: 7px; }
  .trade-core .btn { min-height: 38px; }
  .trade-side { min-height: 0; }
  .trade-side-head { padding: 9px; }
  .trade-side-head .team-badge { width: 26px; height: 29px; }
  .asset-list { max-height: 38vh; }
  .asset-row { padding: 7px 5px; gap: 6px; }
  .asset-row .ar-copy b { font-size: 10px; }
  .asset-row .ar-copy small { font-size: 7px; }
  .asset-row .ar-ovr { font-size: 13px; }
  .trade-side-foot { padding: 8px 9px; font-size: 7px; }
}
@media (max-width: 380px) {
  .prospect-card { padding: 8px; }
  .prospect-note { display: none; }
  .trade-verdict .verdict { font-size: 20px; }
}

/* build/version badge */
.build-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(10,12,15,.82);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .06em;
  pointer-events: none;
  opacity: .78;
}
@media (max-width: 700px) {
  .build-badge { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 8px; opacity: .9; }
}

/* mobile settings */
@media (max-width: 600px) {
  .settings-list { padding-bottom: 4px; }
  .settings-row { align-items: flex-start; gap: 8px; padding: 11px 0; }
  .settings-row > div { flex: 1 1 auto; min-width: 0; }
  .settings-row b { font-size: 12px; }
  .settings-row small { font-size: 8px; line-height: 1.45; }
  .settings-row .btn { flex: 0 0 auto; min-height: 32px; padding: 0 10px; font-size: 8px; }
  .settings-row .switch { margin-top: 2px; flex: 0 0 auto; }
  .settings-row.version-row { align-items: center; }
  .version-tag { flex: 0 0 auto; font-size: 8px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .settings-row { flex-wrap: wrap; }
  .settings-row .btn { width: 100%; }
  .settings-row .switch { margin-left: auto; }
  .settings-row.version-row .version-tag { width: 100%; text-align: left; }
}

/* mobile: all modals constrained to viewport */
@media (max-width: 700px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    position: fixed;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .modal-body { padding: 13px 12px; overflow-x: hidden; }
  .modal-head { padding: 12px; gap: 8px; }
  .modal-head > div { min-width: 0; }
  .modal-head h3 { overflow-wrap: anywhere; }
  .modal-head small { overflow-wrap: anywhere; line-height: 1.4; }
  .modal-foot { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
  .modal-body .table-scroll, .modal-body .data-table-wrap, .modal-body .fa-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modal-body img { max-width: 100%; }
}
@media (max-width: 430px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    top: 4px !important;
    left: 4px !important;
    right: 4px !important;
    max-height: calc(100dvh - 8px);
    border-radius: 9px;
  }
  .modal-body { padding: 11px 10px; }
  .modal-head { padding: 10px; }
  .modal-foot { padding: 9px 10px; }
  .modal-foot .btn { min-height: 34px; }
}

/* mobile: never place two content panels in one row */
@media (max-width: 700px) {
  .strategy-strip,
  .fa-hero,
  .standings-full,
  .series-grid,
  .playin-grid,
  .history-hero,
  .awards-grid,
  .compare-selects,
  .compare-grid,
  .data-summary,
  .trade-match-list,
  .draft-offer-list,
  .draft-recap-summary,
  .rating-summary,
  .rotation-board,
  .usage-list,
  .adv-strip,
  .roster-metrics,
  .finance-metrics,
  .lineup-grid,
  .player-detail-grid,
  .player-stat-grid,
  .pt-grid,
  .save-slots {
    grid-template-columns: 1fr !important;
  }
  .dash-grid > [class*="span-"],
  .grid > [class*="span-"] { grid-column: 1 / -1 !important; }
  .fa-hero .fa-stat,
  .awards-grid .award-card,
  .trade-match-list .trade-match-card,
  .draft-offer-list .draft-offer-card { width: 100%; }
}

/* mobile: draft/lottery banners and similar hero layouts */
@media (max-width: 700px) {
  .draft-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 13px; }
  .draft-banner > div:first-child { font-size: 32px !important; line-height: 1 !important; }
  .draft-banner .db-copy { flex: none; width: 100%; min-width: 0; }
  .draft-banner h3 { font-size: 18px; line-height: 1.2; }
  .draft-banner p { font-size: 9px; line-height: 1.55; margin-top: 6px; }
  .draft-banner > .btn { width: 100%; margin-top: 2px; }
  .draft-controls .btn { flex: 1 1 100%; }
  .lottery-order { grid-template-columns: 1fr; }
  .lottery-head { flex-wrap: wrap; align-items: flex-start; }
  .lottery-head .dim { margin-left: 0; width: 100%; }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-record-wrap { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 16px; }
  .hero-next { width: 100%; }
  .franchise-history { flex-direction: column; align-items: flex-start; }
  .franchise-years { max-width: 100%; justify-content: flex-start; }
}

/* mobile modals: fixed header/footer, scrollable body */
@media (max-width: 700px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-root .modal-head { flex: 0 0 auto; }
  .modal-root .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-root .modal-foot {
    flex: 0 0 auto;
    position: static;
    bottom: auto;
    background: #111419;
    box-shadow: 0 -10px 24px rgba(0,0,0,.22);
  }
  .rating-summary { grid-template-columns: 1fr !important; }
  .rating-table { min-width: 720px; }
}

/* mobile modals: guarantee footer is inside the viewport */
@media (max-width: 700px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .modal-root .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
  .modal-root .modal-foot {
    position: relative;
    bottom: auto;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 430px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
  }
  .modal-root .modal-foot { padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
}

/* compact rating modal */
.rating-top-actions { display: flex; gap: 6px; margin: -2px 0 9px; position: sticky; top: 0; z-index: 3; padding: 4px 0; background: #111419; }
.rating-top-actions .btn { flex: 1 1 auto; }
.rating-table-scroll { max-height: 42vh; overflow: auto; }
@media (max-width: 700px) {
  .rating-intro { display: none; }
  .rating-table-scroll { max-height: 46vh; }
  .rating-top-actions { margin-bottom: 7px; }
  .rating-summary { gap: 4px; }
}

/* free agency day / affordability */
.fa-filters { flex-wrap: wrap; }
.fa-filter[data-filter="AFF"] { border-color: rgba(214,255,75,.28); color: var(--lime); }

/* training system */
.training-intro { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.training-intro b { color: var(--text); font-family: var(--font-display); font-size: 14px; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.training-card { text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); color: var(--text); transition: .15s; }
.training-card:hover { border-color: rgba(214,255,75,.3); background: rgba(214,255,75,.04); }
.training-card.fit { border-color: rgba(214,255,75,.2); }
.training-card:disabled { opacity: .45; cursor: not-allowed; }
.training-card-head { display: flex; align-items: center; gap: 6px; }
.training-card-head .tag { margin-left: auto; font-size: 7px; }
.training-key { display: grid; place-items: center; width: 26px; height: 20px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.training-card-head b { font-family: var(--font-display); font-size: 13px; }
.training-card p { margin: 5px 0 7px; color: var(--dim); font-size: 8px; line-height: 1.45; min-height: 23px; }
.training-effect { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.training-effect b { color: var(--lime); }
.training-cost { margin-left: auto; color: var(--gold); }
@media (max-width: 700px) {
  .training-grid { grid-template-columns: 1fr; }
  .training-card p { min-height: 0; }
}

.training-season { margin-top: 5px; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }

/* badge showcase */
.badge-showcase { margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.badge-showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.badge-showcase-head b { display: block; font-family: var(--font-display); font-size: 14px; margin-top: 2px; }
.badge-showcase-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.badge-showcase-item { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.015); }
.badge-showcase-item .badge-medal { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); font-family: var(--font-mono); font-size: 7px; font-weight: 700; }
.badge-showcase-item b { display: block; font-family: var(--font-display); font-size: 10px; }
.badge-showcase-item small { display: block; color: var(--muted); font-size: 8px; line-height: 1.4; margin-top: 2px; }
.badge-showcase-item em { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 7px; font-style: normal; margin-top: 3px; }
.badge-showcase-item.tier-1 .badge-medal { color: #c9b18a; }
.badge-showcase-item.tier-2 .badge-medal { color: #d8e4f7; }
.badge-showcase-item.tier-3 .badge-medal { color: var(--gold); background: rgba(245,201,107,.12); }
.badge-showcase-item.tier-4 .badge-medal { color: #fff; background: linear-gradient(145deg, rgba(245,201,107,.35), rgba(126,166,255,.25)); }
.badge-showcase.empty { color: var(--dim); font-size: 9px; }
@media (max-width: 700px) {
  .badge-showcase-list { grid-template-columns: 1fr; }
}

/* detailed player stats */
.stat-sub-head { margin-top: 10px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.05); }
.player-stats-row.advanced-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.player-stats-row.career-total-row { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 5px; }
.player-stats-row.career-total-row .player-stat { padding: 6px 2px; }
@media (max-width: 600px) {
  .player-stats-row.advanced-row, .player-stats-row.career-total-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* detailed attributes */
.detail-attr-section { margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.detail-attr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.detail-attr-section-head b { display: block; font-family: var(--font-display); font-size: 14px; margin-top: 2px; }
.detail-attr-section-head .dim { font-family: var(--font-mono); font-size: 7px; }
.detail-attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.detail-attr-group { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.012); }
.detail-attr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.detail-attr-head small { color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.detail-attr-row { display: grid; grid-template-columns: 25px 62px minmax(0,1fr) 24px; align-items: center; gap: 5px; padding: 2px 0; }
.detail-attr-row small { color: var(--dim); font-family: var(--font-mono); font-size: 6px; }
.detail-attr-row span { color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-attr-row b { text-align: right; font-family: var(--font-display); font-size: 10px; }
.detail-attr-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.detail-attr-bar i { display: block; height: 100%; background: var(--lime); }
@media (max-width: 700px) {
  .detail-attr-grid { grid-template-columns: 1fr; }
  .detail-attr-row { grid-template-columns: 26px 68px minmax(0,1fr) 26px; }
}
.badge-chip.signature { border-color: rgba(245,201,107,.55); box-shadow: 0 0 0 1px rgba(245,201,107,.12) inset; }
.signature-mark { display: inline-block; margin-left: 3px; padding: 1px 4px; border-radius: 3px; background: rgba(245,201,107,.13); color: var(--gold); font-family: var(--font-mono); font-size: 6px; vertical-align: middle; }

/* badge typography: readable sizes */
.badge-chip { font-size: 9px; padding: 4px 8px; line-height: 1.2; }
.badge-showcase-head b { font-size: 15px; }
.badge-showcase-item { padding: 8px; }
.badge-showcase-item .badge-medal { width: 28px; height: 28px; font-size: 8px; }
.badge-showcase-item b { font-size: 11px; line-height: 1.35; }
.badge-showcase-item small { font-size: 9px; line-height: 1.5; }
.badge-showcase-item em { font-size: 8px; line-height: 1.45; }
.signature-mark { font-size: 7px; }
@media (max-width: 700px) {
  .badge-chip { font-size: 10px; padding: 5px 9px; }
  .badge-showcase { padding: 10px; }
  .badge-showcase-head b { font-size: 16px; }
  .badge-showcase-item { padding: 9px; gap: 9px; }
  .badge-showcase-item .badge-medal { width: 32px; height: 32px; font-size: 9px; }
  .badge-showcase-item b { font-size: 13px; }
  .badge-showcase-item small { font-size: 10px; }
  .badge-showcase-item em { font-size: 9px; }
}
.badge-chip.tier-5 { color: #fff; border-color: rgba(255,214,100,.7); background: linear-gradient(145deg, rgba(245,201,107,.2), rgba(126,166,255,.14)); box-shadow: 0 0 10px rgba(245,201,107,.18); }
.badge-showcase-item.tier-5 { border-color: rgba(245,201,107,.55); background: linear-gradient(145deg, rgba(245,201,107,.1), rgba(126,166,255,.05)); }
.badge-showcase-item.tier-5 .badge-medal { color: #fff; background: linear-gradient(145deg, #d4a94e, #7ea6ff); }
.exclusive-mark { background: rgba(245,201,107,.25); color: #ffe7a3; }

/* mobile modal final layout: constrain by viewport edges, not content height */
@media (max-width: 700px) {
  .modal-root .modal-shell,
  .modal-root .modal-shell.wide,
  .modal-root .modal-shell.narrow {
    position: fixed !important;
    top: max(4px, env(safe-area-inset-top, 0px)) !important;
    bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    left: 4px !important;
    right: 4px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 10px;
  }
  .modal-root .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-root .modal-foot {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;
    z-index: 3;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: #111419 !important;
    box-shadow: 0 -10px 24px rgba(0,0,0,.3);
  }
  .modal-root .modal-foot .btn {
    flex: 1 1 auto;
    min-height: 38px;
  }
}

@media (max-width: 700px) {
  .page-head .eyebrow {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* mobile bottom navigation: 5 primary entries + more */
.nav-more { display: none; }
.mobile-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu-item { text-align: left; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); color: var(--text); }
.mobile-menu-item b { display: block; font-family: var(--font-display); font-size: 15px; }
.mobile-menu-item small { display: block; margin-top: 4px; color: var(--dim); font-family: var(--font-mono); font-size: 7px; }
.mobile-menu-item.active { border-color: var(--lime); background: rgba(214,255,75,.08); }
@media (max-width: 820px) {
  .nav .nav-item.nav-secondary-mobile { display: none !important; }
  .nav .nav-item.nav-more { display: flex !important; flex: 1; }
  .nav .nav-item.nav-primary-mobile { flex: 1; }
}
@media (max-width: 380px) {
  .mobile-menu-grid { grid-template-columns: 1fr; }
}
