:root {
  color-scheme: dark;
  --bg-deep: #0e121d;
  --accent-cyan: #00f2ff;
  --accent-soft: rgba(0,242,255,.11);
  --accent-glow: rgba(0,242,255,.32);
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-dimmer: #546278;
  --glass: rgba(255,255,255,.035);
  --glass-strong: rgba(255,255,255,.06);
  --panel: rgba(14,18,29,.88);
  --panel-2: rgba(10,14,23,.94);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.15);
  --good: #73e7ac;
  --bad: #f87171;
  --warn: #facc15;
  --court: #101827;
  --court-2: #151f31;
  --court-line: rgba(0,242,255,.28);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}
.bg-canvas { position: fixed; inset: 0; z-index: -2; background: var(--bg-deep); }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); animation: orbFloat linear infinite; }
.orb-1 { width: 760px; height: 760px; top: -280px; left: -260px; background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%); animation-duration: 28s; }
.orb-2 { width: 560px; height: 560px; right: -180px; bottom: -180px; background: radial-gradient(circle, rgba(0,242,255,.10), transparent 70%); animation-duration: 35s; animation-direction: reverse; }
.orb-3 { width: 420px; height: 420px; top: 42%; left: 55%; background: radial-gradient(circle, rgba(0,242,255,.06), transparent 70%); animation-duration: 24s; animation-delay: -10s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(50px,-40px) scale(1.05); } 66% { transform: translate(-28px,42px) scale(.96); } }
.grid-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(0,242,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(0,242,255,.018) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 25%, black 15%, transparent 72%); }

button, select, input { font: inherit; }
button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--accent-cyan);
  color: #031014;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0,242,255,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 36px rgba(0,242,255,.34); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.secondary, .drawer-close, .slot-remove, .modal-close { background: rgba(255,255,255,.06); color: var(--text-main); box-shadow: none; border: 1px solid var(--line); }
button.primary { background: var(--accent-cyan); color: #031014; }
button.danger, .danger-row strong { background: var(--bad); color: #1b0909; }
.hidden { display: none !important; }
.muted { color: var(--text-dim); }
.eyebrow { margin: 0 0 6px; color: var(--accent-cyan); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }

.welcome-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.welcome-card { width: min(820px, 100%); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 6vw, 54px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.welcome-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(to right, transparent, rgba(0,242,255,.5), transparent); }
.welcome-card h1 { font-family: 'Outfit', sans-serif; margin: 0 0 12px; font-size: clamp(42px, 9vw, 82px); line-height: .95; letter-spacing: -.06em; }
.lead { max-width: 680px; color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.team-picker { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-top: 30px; align-items: end; }
label span, .field span { display: block; margin-bottom: 8px; color: var(--text-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
select, .search, input[type="number"] { width: 100%; background: rgba(0,0,0,.26); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-main); padding: 12px 13px; outline: none; }
select:focus, .search:focus, input[type="number"]:focus { border-color: rgba(0,242,255,.45); box-shadow: 0 0 0 3px rgba(0,242,255,.07); }
.public-note { margin: 18px 0 0; color: var(--text-dimmer); font-size: 12px; line-height: 1.5; }

.game-shell { min-height: 100vh; padding: 34px 18px 18px; }
.top-bar { max-width: 1720px; margin: 0 auto 14px; min-height: 86px; display: grid; grid-template-columns: minmax(230px, .95fr) minmax(480px, 2fr) auto; gap: 14px; align-items: center; background: rgba(14,18,29,.86); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; backdrop-filter: blur(18px); box-shadow: 0 14px 44px rgba(0,0,0,.24); }
.team-title { display: flex; align-items: center; min-width: 0; }
.team-badge { display: none !important; }
.team-title h1 { font-family: 'Outfit', sans-serif; margin: 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1; letter-spacing: -.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-metrics { display: grid; grid-template-columns: repeat(7, minmax(70px, 1fr)); gap: 8px; }
.top-stat { min-width: 0; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; }
.top-stat b { display: block; font-size: 16px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-stat span { display: block; margin-top: 6px; color: var(--text-dim); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.make-moves-button { min-width: 136px; height: 54px; border-radius: 6px; }

.play-screen { max-width: 1720px; height: calc(100vh - 140px); min-height: 690px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: stretch; }
.court-column, .roster-dock, .court-shell { background: rgba(14,18,29,.82); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 50px rgba(0,0,0,.22); }
.court-column { padding: 14px; overflow: auto; }
.stage { min-height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.roster-dock { padding: 14px; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; }
.roster-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.roster-head h2 { font-family: 'Outfit', sans-serif; margin: 0; font-size: 24px; letter-spacing: -.04em; }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.04); color: #dce3ed; font-size: 12px; font-weight: 900; }
.search { margin: 10px 0; }
.roster-list { overflow: auto; display: grid; align-content: start; gap: 8px; padding-right: 4px; }
.roster-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); padding: 11px; cursor: grab; transition: border-color .15s, background .15s, transform .15s; }
.roster-card:hover { border-color: rgba(0,242,255,.28); transform: translateY(-1px); }
.roster-card.active { background: linear-gradient(90deg, rgba(0,242,255,.12), rgba(255,255,255,.025)); border-color: rgba(0,242,255,.48); }
.roster-card.active .roster-name { font-weight: 900; color: #fff; }
.roster-card.recent { animation: pulseRecent 1.8s ease-in-out 2; border-color: rgba(0,242,255,.8); }
.roster-card.selected { outline: 2px solid var(--accent-cyan); }
.roster-card.inactive { opacity: .45; cursor: not-allowed; }
.roster-main { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.roster-name { min-width: 0; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.roster-pos { flex: 0 0 auto; color: var(--accent-cyan); font-weight: 800; font-size: 12px; }
.roster-meta { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.roster-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.roster-tags span, .chip-list span { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 11px; color: #cbd3df; }
.empty { color: var(--text-dim); padding: 22px; text-align: center; }
@keyframes pulseRecent { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(0,242,255,.16); } }

.metrics-strip { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 10px; }
.metric-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.metric-card span { display: block; color: var(--text-dim); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.metric-card b { font-family: 'Outfit', sans-serif; font-size: 25px; letter-spacing: -.04em; }
.metric-card small { display: block; color: var(--text-dim); margin-top: 4px; line-height: 1.3; }
.court-shell { min-height: 0; padding: 14px; }
.court-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 10px; }
.court-head h2 { font-family: 'Outfit', sans-serif; margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.05em; }
.court-head p:last-child { margin: 6px 0 0; line-height: 1.45; }
.court-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.notice { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); padding: 11px 12px; color: #d7deea; margin: 10px 0; line-height: 1.45; }
.notice.good { border-color: rgba(115,231,172,.28); color: #bff5d9; }
.notice.warn { border-color: rgba(250,204,21,.38); color: #fee9a3; }
.notice.bad { border-color: rgba(248,113,113,.4); color: #ffc1c1; }

.halfcourt { position: relative; min-height: min(47vh, 460px); display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 12px; padding: clamp(18px, 2vw, 28px); border-radius: 26px; background: radial-gradient(circle at 50% 18%, transparent 0 78px, var(--court-line) 79px 81px, transparent 82px), radial-gradient(circle at 50% 0%, transparent 0 154px, var(--court-line) 155px 157px, transparent 158px), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), linear-gradient(180deg, var(--court-2), var(--court)); border: 1px solid rgba(0,242,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 30px 90px rgba(0,242,255,.03), 0 18px 38px rgba(0,0,0,.22); overflow: hidden; }
.halfcourt::before { content: ''; position: absolute; left: 34%; right: 34%; top: 0; height: 36%; border: 2px solid var(--court-line); border-top: 0; border-radius: 0 0 90px 90px; pointer-events: none; }
.halfcourt::after { content: ''; position: absolute; left: 44%; right: 44%; top: 0; height: 10px; background: rgba(0,242,255,.36); border-radius: 0 0 10px 10px; box-shadow: 0 0 20px rgba(0,242,255,.22); }
.slot { min-width: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(4,8,14,.78); padding: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; box-shadow: 0 12px 24px rgba(0,0,0,.17); }
.slot:hover, .slot.over { border-color: rgba(0,242,255,.72); transform: translateY(-1px); }
.slot.fatigue, .slot.weak-fit { border-color: rgba(250,204,21,.75); }
.slot.bad-fit { border-color: rgba(248,113,113,.8); }
.court-slot { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 145px; }
.pos-pg { grid-column: 3 / 5; grid-row: 4; }
.pos-sg { grid-column: 1 / 3; grid-row: 3; }
.pos-sf { grid-column: 5 / 7; grid-row: 3; }
.pos-pf { grid-column: 2 / 4; grid-row: 1 / 3; align-self: end; }
.pos-c { grid-column: 4 / 6; grid-row: 1 / 3; align-self: end; }
.slot-label { color: var(--accent-cyan); font-weight: 900; font-size: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.slot-player { min-height: 66px; }
.slot-name { font-weight: 900; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.slot-meta { margin-top: 5px; color: var(--text-dim); font-size: 12px; line-height: 1.25; }
.slot-empty { color: var(--text-dim); border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px 8px; text-align: center; background: rgba(255,255,255,.025); }
.minute-control { display: grid; grid-template-columns: 1fr 58px; gap: 8px; align-items: center; margin: 10px 0; }
.minute-control input[type="range"] { width: 100%; accent-color: var(--accent-cyan); }
.minute-control input[type="number"] { padding: 8px; border-radius: 10px; }
.slot-remove { padding: 8px 10px; border-radius: 6px; font-size: 12px; }
.bench-title { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 8px; }
.bench-title h3 { margin: 0; font-size: 18px; }
.bench-title span { color: var(--text-dim); font-size: 12px; }
.bench-row { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.bench-row .slot { min-height: 156px; display: flex; flex-direction: column; justify-content: space-between; }

.moves-drawer { position: fixed; top: 122px; right: 22px; z-index: 60; width: min(342px, calc(100vw - 36px)); background: rgba(14,18,29,.98); border: 1px solid var(--line-2); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.drawer-head h2 { margin: 0; font-family: 'Outfit', sans-serif; letter-spacing: -.04em; }
.drawer-close { padding: 9px 12px; }
.move-list { display: grid; gap: 8px; }
.move-button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.035); box-shadow: none; border: 1px solid var(--line); padding: 13px; color: var(--text-main); }
.move-button:hover:not(:disabled) { border-color: rgba(0,242,255,.28); }
.move-button b { display: block; font-size: 15px; }
.move-button span { display: block; margin-top: 3px; color: var(--text-dim); font-size: 12px; line-height: 1.25; }
.move-button strong { flex: 0 0 auto; color: var(--accent-cyan); font-size: 22px; }
.move-button.required { border-color: rgba(250,204,21,.7); box-shadow: 0 0 0 1px rgba(250,204,21,.15) inset; }

.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,12,.76); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 1; width: min(1120px, 100%); max-height: min(88vh, 900px); overflow: auto; background: #0f1420; border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.modal-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(to right, transparent, rgba(0,242,255,.5), transparent); }
.modal-close { position: sticky; top: 0; float: right; padding: 10px 14px; z-index: 3; }
.modal-title { margin-bottom: 16px; padding-right: 96px; }
.modal-title h2 { font-family: 'Outfit', sans-serif; margin: 0 0 8px; font-size: 34px; letter-spacing: -.05em; }
.modal-title p:last-child { color: var(--text-dim); line-height: 1.45; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.field { display: block; margin: 14px 0; }
.mini-box { background: rgba(0,0,0,.20); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 12px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.list-stack { display: grid; gap: 9px; }
.list-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--line); box-shadow: none; color: var(--text-main); }
.list-row span, .check-row span { min-width: 0; }
.list-row b, .check-row b { display: block; overflow-wrap: anywhere; }
.list-row small, .check-row small { color: var(--text-dim); display: block; margin-top: 3px; }
.list-row strong { background: var(--accent-cyan); color: #031014; border-radius: 999px; padding: 7px 10px; font-size: 12px; flex: 0 0 auto; }
.prospect strong { background: var(--accent-cyan); color: #031014; }
.danger-row { background: rgba(248,113,113,.08); }
.trade-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trade-simple h3 { margin: 0 0 10px; }
.trade-simple h4 { margin: 14px 0 8px; color: var(--text-dim); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.scroll-list { max-height: 430px; overflow: auto; display: grid; gap: 8px; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.check-row input { margin-top: 4px; accent-color: var(--accent-cyan); }
.offer-row { border-top: 1px solid var(--line); padding: 12px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.offer-row p { margin: 0; color: #d7deea; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.user-row { background: rgba(0,242,255,.08); }
.bracket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bracket-block { background: rgba(0,0,0,.20); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.round { margin-top: 12px; }
.matchups { display: grid; gap: 7px; margin-top: 7px; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: 12px; }
.matchup small { color: var(--text-dim); }
.loading { padding: 40px; color: var(--text-dim); }

@media (max-width: 1320px) {
  .top-bar { grid-template-columns: 1fr auto; }
  .top-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); order: 3; }
  .play-screen { height: auto; min-height: auto; grid-template-columns: 1fr; }
  .roster-dock { min-height: 420px; max-height: 70vh; }
}
@media (max-width: 900px) {
  .game-shell { padding: 18px 10px 10px; }
  .top-bar { grid-template-columns: 1fr; border-radius: 18px; }
  .make-moves-button { width: 100%; }
  .top-metrics, .metrics-strip, .bench-row, .trade-simple, .recap-grid, .bracket { grid-template-columns: 1fr 1fr; }
  .team-picker { grid-template-columns: 1fr; }
  .court-head { flex-direction: column; }
  .court-actions { width: 100%; justify-content: flex-start; }
  .halfcourt { min-height: auto; display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .halfcourt::before, .halfcourt::after { display: none; }
  .pos-pg, .pos-sg, .pos-sf, .pos-pf, .pos-c { grid-column: auto; grid-row: auto; align-self: stretch; }
  .modal-root { padding: 10px; align-items: start; }
  .modal-card { max-height: calc(100vh - 20px); padding: 16px; border-radius: 18px; }
  .modal-title h2 { font-size: 28px; }
  .moves-drawer { top: 96px; right: 10px; width: calc(100vw - 20px); }
  .matchup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top-metrics, .metrics-strip, .bench-row, .trade-simple, .recap-grid, .bracket { grid-template-columns: 1fr; }
  .welcome-card { padding: 24px; }
  .play-screen { gap: 10px; }
  .court-column, .roster-dock, .court-shell { border-radius: 18px; }
  .list-row, .offer-row { flex-direction: column; align-items: stretch; }
}

/* v18 simplification pass: mobile-first game screen */
:root {
  --warn: #cbd5e1;
  --accent-cyan: #00f2ff;
  --accent-soft: rgba(0,242,255,.08);
  --accent-glow: rgba(0,242,255,.24);
  --panel: rgba(14,18,29,.82);
  --panel-2: rgba(8,12,20,.96);
  --court: #111827;
  --court-2: #182033;
  --court-line: rgba(0,242,255,.18);
}

body { min-height: 100dvh; }
.game-shell { padding: clamp(28px, 4.5vh, 56px) 16px 16px; }
.top-bar {
  max-width: 1500px;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, .9fr) auto;
  min-height: 78px;
  margin-bottom: 12px;
  border-radius: 18px;
  padding: 14px 16px;
}
.team-title h1 { font-size: clamp(24px, 2vw, 32px); }
.top-metrics { grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 7px; }
.top-stat { padding: 9px 8px; border-radius: 12px; background: rgba(255,255,255,.025); }
.top-stat b { font-size: 14px; }
.top-stat span { font-size: 9px; }
.make-moves-button,
.big-make-moves {
  min-width: 170px;
  min-height: 58px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(0,242,255,.25);
}
.play-screen {
  max-width: 1500px;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  align-items: start;
}
.court-column { padding: 12px; overflow: visible; }
.stage { gap: 10px; }
.main-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026));
  border: 1px solid rgba(0,242,255,.16);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 54px rgba(0,0,0,.22);
}
.main-action-card h2 {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.05em;
}
.main-action-card p:last-child { margin: 0; color: var(--text-dim); line-height: 1.45; }
.simple-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, .9fr);
  gap: 9px;
}
.big-metric,
.metric-pills {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
}
.big-metric span,
.big-metric small {
  display: block;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.big-metric b {
  display: block;
  margin: 6px 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: .9;
}
.metric-pills { display: grid; gap: 7px; align-content: center; }
.metric-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,.035);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}
.metric-pill.ok { color: var(--good); }
.metric-pill.needs { color: var(--warn); border: 1px solid rgba(203,213,225,.22); }
.court-shell { padding: 12px; border-radius: 20px; }
.court-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.court-head h2 { font-size: clamp(22px, 2.4vw, 32px); }
.notice { margin: 8px 0 10px; }
.halfcourt {
  min-height: clamp(310px, 38vh, 390px);
  padding: clamp(14px, 1.5vw, 20px);
  gap: 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 16%, transparent 0 64px, var(--court-line) 65px 67px, transparent 68px),
    radial-gradient(circle at 50% 0%, transparent 0 135px, var(--court-line) 136px 138px, transparent 139px),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    linear-gradient(180deg, var(--court-2), var(--court));
}
.halfcourt::before { left: 36%; right: 36%; height: 31%; border-color: var(--court-line); }
.halfcourt::after { background: rgba(0,242,255,.25); box-shadow: none; }
.court-slot { min-height: 112px; }
.slot { border-radius: 15px; padding: 10px; background: rgba(5,8,14,.70); }
.slot:hover, .slot.over { border-color: rgba(0,242,255,.54); }
.slot-label { font-size: 11px; margin-bottom: 5px; }
.slot-player { min-height: 50px; }
.slot-name { font-size: 14px; line-height: 1.16; }
.slot-meta { font-size: 11px; }
.minute-control { gap: 6px; }
.minute-control input[type="number"] { width: 48px; padding: 6px; }
.slot-remove { padding: 6px 8px; }
.bench-title { margin-top: 10px; }
.bench-row { gap: 9px; }
.bench-row .slot { min-height: 132px; }
.roster-dock {
  max-height: calc(100dvh - 156px);
  position: sticky;
  top: clamp(14px, 3vh, 28px);
  border-radius: 20px;
}
.roster-card { padding: 11px; }
.roster-name { line-height: 1.18; }
.moves-drawer {
  top: clamp(100px, 13vh, 150px);
  right: max(16px, calc((100vw - 1500px) / 2));
  width: min(360px, calc(100vw - 32px));
  border-color: rgba(0,242,255,.18);
}
.move-button.required { border-color: rgba(0,242,255,.45); box-shadow: 0 0 0 1px rgba(0,242,255,.1) inset; }
.fanvision-recap {
  margin-top: 16px;
  border: 1px solid rgba(0,242,255,.22);
  background: linear-gradient(180deg, rgba(0,242,255,.065), rgba(255,255,255,.025));
  border-radius: 18px;
  padding: 18px;
}
.fanvision-recap h3 {
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.04em;
}
.fanvision-recap p { color: var(--text-dim); line-height: 1.6; }
.fanvision-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-cyan);
  color: #031014;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .top-bar { grid-template-columns: 1fr auto; }
  .top-metrics { grid-column: 1 / -1; order: 3; }
  .play-screen { grid-template-columns: 1fr; }
  .roster-dock { position: static; max-height: none; min-height: 360px; }
  .simple-metrics { grid-template-columns: repeat(3, 1fr); }
  .metric-pills { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .game-shell { padding: 18px 10px 96px; }
  .top-bar { grid-template-columns: 1fr; padding: 13px; }
  .top-metrics { grid-template-columns: repeat(2, 1fr); }
  .make-moves-button { width: 100%; }
  .main-action-card { grid-template-columns: 1fr; padding: 16px; }
  .big-make-moves {
    width: 100%;
    min-height: 64px;
    font-size: 16px;
  }
  .simple-metrics { grid-template-columns: 1fr; }
  .metric-pills { grid-template-columns: 1fr; }
  .court-head { grid-template-columns: 1fr; }
  .court-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .halfcourt {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, var(--court-2), var(--court));
  }
  .halfcourt::before,
  .halfcourt::after { display: none; }
  .court-slot,
  .bench-row .slot { min-height: 108px; }
  .slot { display: grid; gap: 6px; }
  .bench-row { grid-template-columns: 1fr; }
  .moves-drawer {
    top: auto;
    bottom: 12px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .modal-card { width: 100%; max-height: calc(100dvh - 20px); padding: 14px; }
  .modal-title { padding-right: 0; }
  .modal-close { position: static; float: none; width: 100%; margin-bottom: 10px; }
  .recap-grid,
  .trade-simple,
  .bracket { grid-template-columns: 1fr; }
}

/* v19 simple-play flow */
.top-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, .85fr);
}
.play-screen {
  grid-template-columns: 1fr;
  max-width: 1180px;
}
.court-column {
  padding: clamp(14px, 2vw, 22px);
}
.roster-dock {
  display: none;
}
.stage {
  grid-template-rows: auto auto auto;
}
.home-board {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.024));
  border: 1px solid rgba(0,242,255,.16);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.home-copy h2 {
  margin: 0 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .94;
  letter-spacing: -.06em;
}
.home-copy p:last-child {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
}
.home-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.home-button {
  min-height: 92px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--text-main);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 18px;
}
.home-button:hover:not(:disabled) {
  border-color: rgba(0,242,255,.45);
  background: rgba(0,242,255,.055);
}
.home-button b {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(21px, 3.4vw, 30px);
  letter-spacing: -.035em;
}
.home-button span {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}
.primary-home {
  background: var(--accent-cyan);
  color: #031014;
  border-color: transparent;
  box-shadow: 0 0 42px rgba(0,242,255,.22);
}
.primary-home span { color: rgba(3,16,20,.75); }
.quick-rotation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.quick-rotation h3 {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.35;
  color: #e8eef8;
}
.simple-metrics.compact .big-metric b {
  font-size: clamp(24px, 3vw, 34px);
}
.moves-drawer {
  top: clamp(106px, 13vh, 150px);
}
.lineup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
.lineup-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
  align-items: start;
}
.lineup-board,
.slot-picker {
  background: rgba(0,0,0,.20);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.mini-court {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 16%, transparent 0 64px, var(--court-line) 65px 67px, transparent 68px),
    radial-gradient(circle at 50% 0%, transparent 0 135px, var(--court-line) 136px 138px, transparent 139px),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)),
    linear-gradient(180deg, var(--court-2), var(--court));
  border: 1px solid rgba(0,242,255,.14);
}
.lineup-slot {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
  background: rgba(5,8,14,.72);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  border-radius: 16px;
  padding: 12px;
}
.lineup-slot.selected {
  border-color: rgba(0,242,255,.75);
  box-shadow: 0 0 0 1px rgba(0,242,255,.18) inset, 0 0 22px rgba(0,242,255,.10);
}
.lineup-slot-label {
  color: var(--accent-cyan);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lineup-slot b {
  font-size: 15px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.lineup-slot small {
  color: var(--text-dim);
  line-height: 1.25;
}
.lineup-slot.starter:nth-child(1) { grid-column: 3 / 5; grid-row: 4; }
.lineup-slot.starter:nth-child(2) { grid-column: 1 / 3; grid-row: 3; }
.lineup-slot.starter:nth-child(3) { grid-column: 5 / 7; grid-row: 3; }
.lineup-slot.starter:nth-child(4) { grid-column: 2 / 4; grid-row: 1 / 3; align-self: end; }
.lineup-slot.starter:nth-child(5) { grid-column: 4 / 6; grid-row: 1 / 3; align-self: end; }
.bench-picker-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.bench-picker-row .lineup-slot {
  min-height: 145px;
}
.minute-stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.minute-stepper button {
  min-height: 34px;
  padding: 6px;
  border-radius: 10px;
}
.minute-stepper input {
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,.05);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 6px;
}
.slot-picker {
  position: sticky;
  top: 14px;
  max-height: min(70vh, 760px);
  overflow: auto;
}
.slot-picker-head h3 {
  margin: 0 0 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  letter-spacing: -.04em;
}
.candidate-section + .candidate-section {
  margin-top: 14px;
}
.candidate-section h4 {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.candidate-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: rgba(255,255,255,.04);
  color: var(--text-main);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 14px;
  padding: 11px;
  margin-bottom: 8px;
}
.candidate-row b,
.candidate-row small {
  display: block;
}
.candidate-row small {
  color: var(--text-dim);
  margin-top: 3px;
}
.candidate-row strong {
  flex: 0 0 auto;
  color: var(--accent-cyan);
}
@media (max-width: 980px) {
  .top-bar { grid-template-columns: 1fr; }
  .home-board { grid-template-columns: 1fr; }
  .lineup-editor { grid-template-columns: 1fr; }
  .slot-picker { position: static; max-height: none; }
  .bench-picker-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .game-shell { padding: 14px 10px 88px; }
  .top-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-board { padding: 16px; border-radius: 20px; }
  .home-button { min-height: 84px; }
  .simple-metrics.compact { grid-template-columns: 1fr; }
  .metric-pills { grid-template-columns: 1fr; }
  .quick-rotation { align-items: stretch; flex-direction: column; }
  .quick-rotation button { width: 100%; }
  .mini-court {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 10px;
    background: linear-gradient(180deg, var(--court-2), var(--court));
  }
  .lineup-slot.starter:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
  }
  .bench-picker-row { grid-template-columns: 1fr; }
  .lineup-toolbar { display: grid; grid-template-columns: 1fr; }
  .lineup-toolbar button { width: 100%; }
}

/* v20 lineup editor cleanup */
.clean-lineup-title h2 { font-size: clamp(26px, 4vw, 40px); }
.lineup-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.lineup-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
}
.tab-button {
  background: transparent;
  color: var(--text-dim);
  box-shadow: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 8px;
  min-width: 118px;
}
.tab-button.active {
  background: rgba(0,242,255,.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,242,255,.28);
}
.lineup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lineup-simple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr);
  gap: 14px;
  align-items: start;
}
.lineup-list-panel,
.lineup-picker-panel,
.roster-assign-panel {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.lineup-picker-panel {
  position: sticky;
  top: 12px;
  max-height: min(72vh, 720px);
  overflow: auto;
}
.lineup-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}
.lineup-section-head h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  letter-spacing: -.04em;
}
.lineup-section-head span,
.picker-title p {
  color: var(--text-dim);
  font-size: 13px;
}
.bench-head { margin-top: 18px; }
.lineup-slot-list {
  display: grid;
  gap: 9px;
}
.lineup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 11px;
}
.lineup-row.selected {
  border-color: rgba(0,242,255,.55);
  background: rgba(0,242,255,.055);
}
.lineup-row.fatigue,
.lineup-row.weak-fit { border-color: rgba(203,213,225,.38); }
.lineup-row.bad-fit { border-color: rgba(248,113,113,.62); }
.lineup-row-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.lineup-row-label {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,242,255,.10);
  color: var(--accent-cyan);
  font-weight: 900;
  letter-spacing: .06em;
}
.lineup-row-player { min-width: 0; }
.lineup-row-player b,
.roster-assign-main b,
.candidate-row.clean b { display: block; overflow-wrap: anywhere; line-height: 1.18; }
.lineup-row-player small,
.roster-assign-main small,
.candidate-row.clean small {
  color: var(--text-dim);
  display: block;
  margin-top: 3px;
  line-height: 1.25;
}
.lineup-row-minutes span {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 5px;
}
.minute-stepper.compact {
  margin-top: 0;
  grid-template-columns: 34px 58px 34px;
}
.minute-stepper.compact button {
  min-height: 34px;
}
.lineup-row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lineup-row-actions button { padding: 9px 10px; }
.picker-title h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  letter-spacing: -.04em;
}
.empty-panel {
  display: grid;
  place-items: center;
  min-height: 240px;
  text-align: center;
  color: var(--text-dim);
}
.candidate-row.clean {
  margin-bottom: 8px;
  border-radius: 13px;
  padding: 12px;
}
.roster-assign-list {
  display: grid;
  gap: 9px;
}
.roster-assign-row {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow: hidden;
}
.roster-assign-row.expanded {
  border-color: rgba(0,242,255,.38);
  background: rgba(0,242,255,.035);
}
.roster-assign-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  border: 0;
  padding: 13px;
}
.roster-assign-main strong,
.candidate-row.clean strong {
  flex: 0 0 auto;
  color: var(--accent-cyan);
  background: rgba(0,242,255,.08);
  border: 1px solid rgba(0,242,255,.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.slot-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 13px 13px;
}
.slot-chip {
  background: rgba(255,255,255,.045);
  color: var(--text-main);
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 6px;
}
.slot-chip b,
.slot-chip small { display: block; }
.slot-chip small { color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.slot-chip.natural { border-color: rgba(0,242,255,.45); background: rgba(0,242,255,.07); }
.slot-chip.bad { opacity: .7; }
@media (max-width: 980px) {
  .lineup-simple-grid { grid-template-columns: 1fr; }
  .lineup-picker-panel { position: static; max-height: none; }
  .lineup-row { grid-template-columns: 1fr; align-items: stretch; }
  .lineup-row-actions { justify-content: stretch; }
  .lineup-row-actions button { flex: 1; }
}
@media (max-width: 680px) {
  .modal-card { padding: 12px; }
  .lineup-topbar,
  .lineup-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .lineup-tabs { width: 100%; }
  .tab-button { min-width: 0; }
  .lineup-section-head { align-items: start; flex-direction: column; }
  .lineup-row-main { grid-template-columns: 44px minmax(0,1fr); }
  .lineup-row-label { height: 38px; }
  .minute-stepper.compact { grid-template-columns: 42px 1fr 42px; }
  .slot-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-assign-main { align-items: stretch; flex-direction: column; }
}

/* v20.3 lineup popup + smoother FanVision surfaces */
.lineup-list-panel.full-width { width: 100%; }
.lineup-submodal-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}
.lineup-submodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, .78);
  backdrop-filter: blur(9px);
}
.lineup-submodal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #0f1420;
  border: 1px solid rgba(0,242,255,.22);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.lineup-submodal-card .small-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  padding: 9px 12px;
  margin-left: 10px;
}
.lineup-submodal-card .picker-title h3 {
  font-size: clamp(26px, 5vw, 38px);
  overflow-wrap: anywhere;
}
.lineup-submodal-card .candidate-section {
  clear: both;
}
.lineup-row-minutes .minute-stepper.compact input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.lineup-row-minutes .minute-stepper.compact input[type="number"]::-webkit-inner-spin-button,
.lineup-row-minutes .minute-stepper.compact input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}
.popup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}
.popup-grid .slot-chip {
  min-height: 74px;
  text-align: left;
}
.fanvision-bottom-ad {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 70;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(14,18,29,.94);
  border: 1px solid rgba(0,242,255,.22);
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  color: var(--text-main);
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}
.fanvision-bottom-ad span {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.25;
}
.fanvision-bottom-ad b { color: #fff; }
.fanvision-bottom-ad a,
.fanvision-nudge a {
  flex: 0 0 auto;
  color: #031014;
  background: var(--accent-cyan);
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}
.fanvision-nudge {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 130;
  width: min(380px, calc(100vw - 28px));
  background: rgba(14,18,29,.98);
  border: 1px solid rgba(0,242,255,.24);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.44);
  backdrop-filter: blur(18px);
}
.fanvision-nudge > button {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--line);
}
.fanvision-nudge h3 {
  margin: 0 28px 8px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.fanvision-nudge p:not(.eyebrow) {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 12px;
}
@media (max-width: 680px) {
  .lineup-submodal-root { padding: 10px; align-items: start; }
  .lineup-submodal-card { max-height: calc(100dvh - 20px); padding: 14px; border-radius: 18px; }
  .lineup-submodal-card .small-close { position: static; float: none; width: 100%; margin: 0 0 10px; }
  .popup-grid { grid-template-columns: 1fr; }
  .fanvision-bottom-ad {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    text-align: center;
  }
  .fanvision-bottom-ad a { width: 100%; }
  .fanvision-nudge {
    left: 10px;
    right: 10px;
    bottom: 112px;
    width: auto;
  }
}

/* v20.4 polish: logo hooks, safer bottom CTA, reserves, start controls */
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-right: 12px;
  filter: drop-shadow(0 0 14px rgba(0,242,255,.18));
}
.team-title { gap: 0; }
.team-picker.compact-start {
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  align-items: end;
}
.team-picker.compact-start button.secondary {
  height: 48px;
}
.reserve-list {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}
.reserve-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--text-main);
  box-shadow: none;
  padding: 10px 12px;
  border-radius: 14px;
}
.reserve-row:hover:not(:disabled) {
  background: rgba(0,242,255,.045);
  border-color: rgba(0,242,255,.25);
}
.reserve-row span {
  min-width: 0;
}
.reserve-row b,
.reserve-row small {
  display: block;
  overflow-wrap: anywhere;
}
.reserve-row small {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.35;
}
.reserve-row strong {
  flex: 0 0 auto;
  color: var(--accent-cyan);
  font-size: 12px;
}
.reserve-row.inactive {
  opacity: .56;
  cursor: default;
}
.reserve-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 0;
}
#fanvision-ad-root {
  position: sticky;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  padding: 0 16px 12px;
}
.fanvision-bottom-ad {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  pointer-events: auto;
  margin: 12px auto 0;
  max-width: 980px;
}
.fanvision-nudge {
  bottom: 96px;
}
@media (max-width: 840px) {
  .team-picker.compact-start { grid-template-columns: 1fr 1fr; }
  .team-picker.compact-start button { width: 100%; }
  .brand-logo { width: 30px; height: 30px; margin-right: 10px; }
}
@media (max-width: 560px) {
  .team-picker.compact-start { grid-template-columns: 1fr; }
  #fanvision-ad-root { padding: 0 10px 10px; }
  .fanvision-bottom-ad { border-radius: 18px; }
  .fanvision-nudge { bottom: 126px; }
}

.recap-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.recap-detail-card {
  max-width: min(860px, 94vw);
}
.table-scroll {
  overflow-x: auto;
  max-height: min(60vh, 620px);
}
.table-scroll table {
  width: 100%;
  min-width: 560px;
}


/* v22.4 start-over, completion CTA, and SEO-ready branded start screen */
.welcome-card.fanvision-start-card {
  width: min(940px, 100%);
  padding-top: clamp(28px, 5vw, 48px);
}
.welcome-card.fanvision-start-card::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,242,255,.16), transparent 68%);
  pointer-events: none;
}
.welcome-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.welcome-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,242,255,.22));
}
.brand-kicker {
  margin: 0;
  color: #dbe7f4;
  font-weight: 800;
  letter-spacing: -.02em;
}
.fanvision-start-card h1,
.fanvision-start-card .lead,
.fanvision-start-card .team-picker,
.fanvision-start-card .public-note {
  position: relative;
  z-index: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.start-over-button {
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 14px;
  white-space: nowrap;
}
.completion-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(3,6,12,.74);
  backdrop-filter: blur(8px);
}
.completion-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 180;
  width: min(660px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(14,18,29,.98), rgba(9,13,22,.98));
  border: 1px solid rgba(0,242,255,.28);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 30px 100px rgba(0,0,0,.58), 0 0 80px rgba(0,242,255,.08);
}
.completion-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,242,255,.7), transparent);
}
.completion-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--line);
}
.completion-card h2 {
  margin: 0 40px 10px 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  line-height: .92;
  letter-spacing: -.06em;
}
.completion-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.completion-card p:not(.eyebrow) {
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 18px;
}
.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.completion-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent-cyan);
  color: #031014;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(0,242,255,.20);
}
@media (max-width: 900px) {
  .top-actions { justify-content: stretch; }
  .top-actions button { flex: 1 1 150px; }
}
@media (max-width: 560px) {
  .welcome-brand-row { align-items: flex-start; }
  .welcome-logo { width: 42px; height: 42px; }
  .completion-card { border-radius: 22px; }
  .completion-actions > * { width: 100%; }
}
.top-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, .85fr) auto;
}
@media (max-width: 900px) {
  .top-bar { grid-template-columns: 1fr; }
}

/* v22.5 analytics, privacy, and consent surfaces */
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}
.legal-links a,
.legal-links button,
.cookie-links a,
.legal-card a {
  color: var(--accent-cyan);
}
.legal-links button {
  appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 240;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: rgba(14,18,29,.98);
  border: 1px solid rgba(0,242,255,.26);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 60px rgba(0,242,255,.06);
  backdrop-filter: blur(18px);
}
.cookie-banner h3 {
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -.04em;
  font-size: 24px;
}
.cookie-banner p:not(.eyebrow) {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner .cookie-links {
  margin-top: 8px !important;
  font-size: 12px !important;
}
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.cookie-actions button {
  width: 100%;
}
.legal-body {
  min-height: 100vh;
}
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px) 16px 80px;
}
.legal-back {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 800;
}
.legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.legal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,242,255,.5), transparent);
}
.legal-card h1 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.06em;
  line-height: .95;
}
.legal-card h2 {
  margin: 26px 0 8px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -.04em;
  font-size: 24px;
}
.legal-card p {
  color: var(--text-dim);
  line-height: 1.65;
}
.legal-card code {
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}
.legal-brand-row {
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
  }
  .cookie-actions {
    min-width: 0;
  }
}

/* v22.6 setup flow, modal headers, and multi-cut draft polish */
.start-step { position: relative; z-index: 1; }
.team-picker.compact-start.first-step { grid-template-columns: minmax(180px, 1fr) minmax(120px, .6fr) auto auto; }
.team-picker.compact-start.season-step { grid-template-columns: minmax(260px, 1fr) auto auto; }
.chosen-start-card {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(0,242,255,.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,242,255,.08), rgba(255,255,255,.03));
}
.chosen-start-card h2 { margin: 0; font-family: 'Outfit', sans-serif; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
.modal-mini-header {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 2px 86px 16px 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.modal-mini-header span { color: var(--text-main); font-size: 13px; font-weight: 800; white-space: nowrap; }
.modal-mini-header b { display: block; margin-bottom: 4px; color: var(--text-dim); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.draft-cut-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(250,204,21,.22);
  border-radius: 16px;
  background: rgba(250,204,21,.07);
}
.draft-cut-toolbar span { color: var(--warn); font-weight: 900; }
.candidate-row.selected { border-color: rgba(250,204,21,.65); background: rgba(250,204,21,.10); }
button:disabled { opacity: .48; cursor: not-allowed; }

@media (max-width: 760px) {
  .team-picker.compact-start.first-step,
  .team-picker.compact-start.season-step { grid-template-columns: 1fr; }
  .modal-mini-header { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; }
  .draft-cut-toolbar { align-items: stretch; flex-direction: column; }
  .draft-cut-toolbar button { width: 100%; }
}
