/* Milestone · Team Colors */
:root {
  --bg: #10131a;
  --surface: #191d27;
  --surface-2: #232836;
  --line: #262b38;
  --line-2: #2a3040;
  --text: #f4f5f7;
  --muted: #9097a6;
  --faint: #7d8596;
  --dim: #5d6577;
  --gold: #fdb927;
  --live: #ff5a5f;
  --court: #3ddc97;
  --num: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --ui: Archivo, -apple-system, system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 62px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.4 var(--ui); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.n { font-family: var(--num); font-variant-numeric: tabular-nums; line-height: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- page shell ---------- */
.view { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-top) + 14px) 20px 0; }
.view.enter { animation: enter .32s var(--ease); }
.view.enter-back { animation: enter-back .32s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(22px); } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-22px); } }
.view.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }

.head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 10px; }
.h1 { margin: 0; font: 900 44px/1 var(--num); letter-spacing: .005em; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { background: var(--text); color: var(--bg); }
.back-row { display: flex; align-items: center; gap: 4px; height: 44px; margin-bottom: 10px; }
.back-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-left: -12px; }
.back-row .title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 2px 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- day strip ---------- */
.days { display: flex; justify-content: space-between; margin: 0 -4px 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 50px; padding: 8px 0; border-radius: 14px; color: var(--faint); transition: background .2s, color .2s; }
.day .dn { font: 800 22px/1 var(--num); }
.day .dw { font-size: 12px; font-weight: 500; }
.day .gd { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.day.has .gd { background: var(--dim); }
.day.today .dw { color: var(--text); font-weight: 700; }
.day.on { background: var(--text); color: var(--bg); }
.day.on .dw { color: var(--bg); }
.day.on.has .gd { background: var(--bg); }

/* ---------- games: two team tiles per game ---------- */
.logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
.logo.ph { border-radius: 50%; background: rgba(255,255,255,.16); }
.wm { position: absolute; top: 50%; width: 100px; height: 100px; object-fit: contain; transform: translateY(-50%); opacity: .34; pointer-events: none; }
body.bright .wm { opacity: .44; }
body.bright .tile.up .wm { opacity: .56; }
body.bright .mile .wm.big { opacity: .3; }
.pairs { display: flex; flex-direction: column; gap: 12px; }
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; text-align: left; transition: transform .18s var(--ease); }
button.pair:active { transform: scale(.98); }
.tile { position: relative; overflow: hidden; display: flex; align-items: center; height: 76px; border-radius: 16px; padding: 0 88px 0 38px; }
.tile.flip { justify-content: flex-end; text-align: right; padding: 0 38px 0 88px; }
/* every logo fits the same 92 x 70 box: fills the 76px tile with a 3px gap, never spills over; the score sits on its centre (49px in) */
.tile .wm { right: 3px; width: 92px; height: 70px; }
.tile.flip .wm { right: auto; left: 3px; }
.tile .wm { transform: translateY(-50%) scale(var(--ls, 1)); }
/* game screen scoreboard: logos a little smaller than on the Games list */
.pair.board { --ls: .8; }
.tile.up .wm { opacity: .46; }
.tile .nm { position: relative; min-width: 0; }
.tile .nm b { display: block; font-size: 15px; font-weight: 700; }
/* game screen scoreboard: full name only (city over nickname), no code */
.tile .nm.full small { font-size: 12px; color: #c4c9d4; line-height: 1.25; }
.tile .nm.full b { font-size: 12px; font-weight: 400; color: #c4c9d4; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nm small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .num { position: absolute; top: 50%; left: calc(100% - 49px); transform: translate(-50%, -50%); font: 800 32px/1 var(--num); font-variant-numeric: tabular-nums; color: #6b7383; }
.tile.flip .num { left: 49px; }
.tile .num.lead { color: #fff; }
/* live and final games: logo pushed further back so the score reads clearly on top */
.tile:not(.up) .wm { opacity: .2; }
body.bright .tile:not(.up) .wm { opacity: .3; }
.tile .num { color: #b3b9c6; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.pclk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 6px; background: var(--bg); font: 600 11px/1 var(--ui); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.pair .trk { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 3px; background: var(--gold); color: var(--bg); font: 700 10px/1 var(--ui); padding: 3px 6px; border-radius: 999px; }

/* ---------- calendar ---------- */
.cal { background: var(--surface); border-radius: 22px; padding: 10px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; }
.cal-head .m { font: 800 24px/1 var(--num); }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-wd { font-size: 12px; font-weight: 600; color: var(--faint); text-align: center; padding: 2px 0 8px; }
.cal-d { height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 18px/1 var(--num); transition: background .2s; }
.cal-d .cd { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.cal-d.has .cd { background: var(--gold); }
.cal-d.past { color: var(--dim); }
.cal-d.past.has .cd { background: #3a4152; }
.cal-d.today { box-shadow: inset 0 0 0 1.5px var(--dim); }
.cal-d.on { background: var(--text); color: var(--bg); }
.cal-d.on .cd { background: var(--bg); }
.cal-d.blank { visibility: hidden; }
/* ---------- game screen ---------- */
.lscore { background: var(--surface); border-radius: 18px; padding: 12px 14px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.lrow { display: grid; grid-template-columns: 1.4fr repeat(var(--cols), 1fr) 1.2fr; align-items: center; text-align: center; font-size: 13px; color: var(--muted); }
.lrow.lh { font-size: 12px; font-weight: 600; }
.lrow .n { font-size: 19px; font-weight: 800; color: #c4c9d4; }
.lrow .tot { font-size: 22px; color: #6b7383; }
.lrow .tot.lead { color: var(--text); }
.lrow .lt { text-align: left; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.lrow .lt i { width: 10px; height: 10px; border-radius: 3px; }

.seg { display: flex; background: var(--surface); border-radius: 14px; padding: 4px; margin-top: 12px; position: relative; }
.seg button { flex: 1; color: var(--muted); font: 600 14px/1 var(--ui); padding: 12px 0; border-radius: 10px; position: relative; z-index: 1; transition: color .2s; }
.seg button.on { color: var(--text); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #2a3040; transition: transform .3s var(--ease); }
.seg.right .thumb { transform: translateX(100%); }
.seg.three .thumb { width: calc((100% - 8px) / 3); }
.seg.three.p1 .thumb { transform: translateX(100%); }
.seg.three.p2 .thumb { transform: translateX(200%); }
.seg.three button { font-size: 13px; }

/* ---------- box score ---------- */
.boxwrap { margin: 10px -20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.boxwrap::-webkit-scrollbar { display: none; }
.box { border-collapse: separate; border-spacing: 0; font-size: 14px; white-space: nowrap; min-width: 100%; }
.box th, .box td { padding: 0 9px; height: 44px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.box thead th { height: 30px; border-top: 0; font-size: 11px; font-weight: 600; color: var(--faint); }
.box td { font: 700 17px/1 var(--num); color: #c4c9d4; }
.box tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); text-align: left; padding-left: 20px; font: 600 14px/1 var(--ui); max-width: 150px; }
.box thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.box tbody th .bn { display: inline-block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.box tbody th .mb { margin-left: 5px; vertical-align: middle; }
.box tbody th .cdot { display: inline-block; margin-left: 5px; vertical-align: middle; }
.box tr.out { opacity: .45; }
.box tr.sep th, .box tr.sep td { height: 32px; font: 600 12px/1 var(--ui); color: var(--faint); }
.box tr.tot th, .box tr.tot td { color: var(--text); border-top: 1px solid var(--line-2); }
.box td:last-child { padding-right: 20px; }
.pcts { display: flex; gap: 8px; margin-top: 12px; }
.pcts span { flex: 1; background: var(--surface); border-radius: 14px; padding: 10px 0; text-align: center; font-size: 12px; color: var(--muted); }
.pcts b { display: block; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 3px; }

.teambar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.tpill { border: 1px solid var(--line-2); color: var(--muted); font: 600 14px/1 var(--ui); padding: 11px 16px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.tpill.on { color: #fff; border-color: transparent; }
.legend { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--court); flex: none; }

.plist { margin-top: 8px; }
.prow { display: grid; grid-template-columns: 1fr 34px 34px 34px 46px; align-items: center; gap: 2px; height: 56px; border-top: 1px solid var(--line); }
.prow.headrow { height: 28px; border-top: 0; font-size: 12px; font-weight: 600; color: var(--faint); }
.prow.headrow span { text-align: center; }
.prow.out { opacity: .45; }
.prow .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jn { position: relative; overflow: hidden; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--num); flex: none; }
.prow .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { text-align: center; font: 800 21px/1 var(--num); font-variant-numeric: tabular-nums; }
.bell { width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim); border-radius: 12px; transition: transform .2s var(--spring), color .2s; }
.bell:active { transform: scale(.85); }
.bell.on { color: var(--gold); }
.bell.on svg { fill: currentColor; }
.bench { font-size: 12px; font-weight: 600; color: var(--faint); padding: 12px 0 4px; border-top: 1px solid var(--line); }

.filters { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fil { border: 1px solid var(--line-2); color: var(--muted); font: 600 13px/1 var(--ui); padding: 10px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.fil.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.qdiv { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qdiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plays { display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; }
.pbp { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: start; padding: 11px 10px; border-radius: 14px; }
.pbp.mine { background: #1d2131; }
.pbp .tm { font: 700 17px/1 var(--num); color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.pbp .body { display: flex; gap: 10px; min-width: 0; }
.pbp .td { width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px; }
.pbp .tdl { border-radius: 0; object-fit: contain; filter: none; }
.pbp .tdl.ph { border-radius: 50%; background: #3a4152; }
.pbp .tx { font-size: 15px; line-height: 1.3; font-weight: 500; }
.pbp.scored .tx { font-weight: 700; }
.pbp .sb { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pbp .prog { display: inline-flex; align-items: center; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--gold); background: #2b2412; padding: 4px 8px; border-radius: 999px; }
.pbp .sc { text-align: right; font: 700 17px/1 var(--num); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pbp .tag { font: 700 12px/1 var(--ui); margin-top: 5px; text-align: right; }
.pbp .mb { margin-right: 4px; vertical-align: -1px; }
.pbp.new { animation: newplay .6s var(--ease); }
@keyframes newplay { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- my players ---------- */
.pcard { border-radius: 22px; overflow: hidden; background: var(--surface); width: 100%; text-align: left; display: block; transition: transform .18s var(--ease); }
.pcard:active { transform: scale(.98); }
.pband { position: relative; overflow: hidden; display: flex; align-items: center; padding: 12px 16px; }
.pband .nm { font-size: 18px; font-weight: 700; position: relative; z-index: 1; }
.pband .gm { font-size: 13px; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; }
.pband { min-height: 58px; }
.pband .wm { width: 120px; height: 120px; right: 16px; }
.pband .gm { color: var(--muted); }
.pbody { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; }
.ms { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { display: block; }
.ring circle.prog { transition: stroke-dashoffset .8s var(--ease); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .cur { font: 900 28px/1 var(--num); }
.ring .of { font-size: 11px; font-weight: 600; color: var(--muted); }
.ms .kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.ms .lab { font: 800 22px/1 var(--num); margin-top: 4px; }
.ms .brk { font-size: 14px; color: #c4c9d4; margin-top: 6px; }
.ms .togo { font-size: 13px; font-weight: 600; margin-top: 6px; }
.ms .done { color: var(--court); }

/* ---------- alerts list ---------- */
.alist { display: flex; flex-direction: column; gap: 8px; }
.aitem { position: relative; overflow: hidden; display: block; padding: 12px 14px; border-radius: 18px; width: 100%; text-align: left; }
.aitem .wm { width: 96px; height: 96px; right: -10px; }
.aitem .top { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.aitem .t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.aitem .b { position: relative; font-size: 14px; color: #c4c9d4; margin-top: 3px; white-space: pre-line; line-height: 1.35; }
.aitem .tm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.aitem.ms { box-shadow: inset 0 0 0 1.5px var(--gold); }
.aitem.ms .t { color: var(--gold); }

/* ---------- cards / settings ---------- */
.card { background: var(--surface); border-radius: 22px; padding: 18px; }
.card h2 { margin: 0 0 4px; font: 800 24px/1.1 var(--num); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.btn { display: block; width: 100%; height: 54px; border-radius: 16px; background: var(--gold); color: var(--bg); font: 700 17px/1 var(--ui); transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.ghost { background: none; color: var(--muted); border: 1px solid var(--line-2); }
.btn:disabled { opacity: .4; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.note.ok { color: var(--court); } .note.bad { color: var(--live); }
.field { width: 100%; height: 54px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; font-size: 20px; margin-bottom: 10px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .ei { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; color: var(--faint); }
.empty p { margin: 6px auto; max-width: 32ch; font-size: 15px; }
.empty b { color: var(--text); font-weight: 600; }
.skel { border-radius: 22px; background: var(--surface); animation: pulse 1.4s ease-in-out infinite; }

/* ---------- tab bar ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); display: flex; justify-content: space-around; align-items: center; background: rgba(16, 19, 26, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 6px 0; color: var(--faint); font: 600 11px/1 var(--ui); text-decoration: none; transition: color .2s; }
.tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spring); }
.tabs a.on { color: var(--text); }
.tabs a.on svg { transform: translateY(-1px) scale(1.06); }
.badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font: 700 11px/18px var(--ui); text-align: center; }

/* ---------- bottom sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(5, 7, 12, .55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.sheet-back.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 92vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 30px 30px 0 0; overflow: hidden; transform: translateY(105%); transition: transform .42s var(--spring); }
.sheet.show { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; }
.sh-head { position: relative; overflow: hidden; padding: 12px 20px 18px; }
/* centred on the player photo (photo: 118px tall, ~162px wide, 14px from the right, sitting on the bottom edge) */
.sh-head .wm { width: 160px; height: 160px; right: 15px; top: auto; bottom: -8px; transform: none; }
.grab { position: relative; width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 0 auto 14px; }
.sh-head .nm { position: relative; font-size: 22px; font-weight: 700; }
.sh-head .sub { position: relative; font-size: 14px; color: var(--muted); margin-top: 3px; }
.sh-head .chips { position: relative; display: flex; gap: 6px; margin-top: 12px; }
.sh-head .chips span { background: rgba(16,19,26,.45); padding: 6px 10px; border-radius: 10px; font-size: 12px; color: rgba(255,255,255,.8); }
.sh-head .chips b { font-size: 16px; color: var(--text); margin-right: 3px; }
.sh-body { padding: 16px 18px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; }
.opt { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; transition: border-color .25s; }
.opt.on { border-color: var(--acc, var(--gold)); }
.opt-head { display: flex; align-items: center; gap: 12px; }
.opt-head .tt { font-size: 17px; font-weight: 700; }
.opt-head .ds { font-size: 14px; color: var(--muted); margin-top: 2px; }
.opt-body { margin-top: 14px; animation: grow .3s var(--ease); }
@keyframes grow { from { opacity: 0; transform: translateY(-6px); } }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 999px; background: #2a3040; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--acc, var(--gold)); }
.switch.on::after { transform: translateX(20px); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-radius: 14px; border: 1px solid var(--line-2); color: var(--muted); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.pick:active { transform: scale(.95); }
.pick .k { font: 800 24px/1 var(--num); }
.pick .v { font-size: 12px; font-weight: 600; }
.pick.on { background: var(--acc, var(--gold)); border-color: var(--acc, var(--gold)); color: var(--on-acc, var(--bg)); }
.stepper { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.step { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; transition: transform .12s; }
.step:active { transform: scale(.9); }
.stepper .mid { flex: 1; text-align: center; }
.stepper .val { font: 900 52px/1 var(--num); font-variant-numeric: tabular-nums; width: 100%; max-width: 140px; text-align: center; background: none; border: 0; border-bottom: 2px dashed transparent; color: var(--text); padding: 0 0 2px; border-radius: 0; caret-color: var(--gold); }
.stepper .val:focus { outline: none; border-bottom-color: var(--gold); }
.stepper .mid { display: flex; flex-direction: column; align-items: center; }
.stepper .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pbar { margin-top: 14px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pbar span { display: block; height: 100%; border-radius: 4px; background: var(--acc, var(--gold)); transition: width .4s var(--ease); }
.pnote { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 7px; }
.summary { font-size: 14px; color: var(--muted); text-align: center; min-height: 20px; }
.summary.bad { color: var(--live); }
.sheet .btn { background: var(--acc, var(--gold)); color: var(--on-acc, var(--bg)); }
.sheet .btn.ghost { background: none; color: var(--muted); }

/* ---------- in-app banner ---------- */
.banner { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px); z-index: 60; max-width: 536px; margin: 0 auto; overflow: hidden; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); transform: translateY(calc(-100% - var(--safe-top) - 40px)); visibility: hidden; transition: transform .45s var(--spring), visibility 0s .45s; cursor: pointer; }
.banner.show { transform: translateY(0); visibility: visible; transition: transform .45s var(--spring), visibility 0s; }
.banner .wm { width: 90px; height: 90px; right: -8px; }
.banner .r { position: relative; }
.banner .t { font-size: 15px; font-weight: 700; line-height: 1.25; }
.banner .l1 { font-size: 13px; color: #c4c9d4; margin-top: 3px; }
.banner .l2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.banner .r { text-align: right; flex: none; }
.banner .rv { font: 800 22px/1 var(--num); color: var(--gold); }
.banner .rl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- milestone takeover ---------- */
.mile-back { position: fixed; inset: 0; z-index: 70; background: rgba(5, 7, 12, .6); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mile-back.show { opacity: 1; pointer-events: auto; }
.mile { position: relative; width: 100%; max-width: 360px; border: 1.5px solid var(--gold); border-radius: 30px; padding: 30px 24px 22px; text-align: center; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); transform: scale(.85) translateY(20px); transition: transform .5s var(--spring); }
.mile-back.show .mile { transform: none; }
.mile > :not(.wm) { position: relative; }
.mile .wm.big { width: 230px; height: 230px; left: 50%; top: 58%; transform: translate(-50%, -50%); opacity: .22; }
.mile .badge2 { background: var(--gold); color: var(--bg); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mile .who { font-size: 22px; font-weight: 700; margin-top: 16px; }
.mile .bign { font: 900 120px/1 var(--num); margin-top: 6px; color: var(--gold); }
.mile .lab { font: 800 24px/1 var(--num); margin-top: 2px; }
.mile .parts { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mile .parts span { background: rgba(16,19,26,.45); padding: 8px 12px; border-radius: 12px; font-size: 12px; color: rgba(255,255,255,.75); }
.mile .parts b { font: 800 20px/1 var(--num); color: #fff; margin-right: 3px; }
.mile .gl { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 14px; }
.mile .btn { margin-top: 20px; }
.confetti { position: fixed; inset: 0; z-index: 71; pointer-events: none; width: 100%; height: 100%; }

/* ---------- small things ---------- */
.conn { position: fixed; left: 50%; top: calc(var(--safe-top) + 10px); transform: translateX(-50%); z-index: 50; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.22); color: var(--gold); } 100% { transform: scale(1); } }
/* scores inside team tiles are centered with translate(); keep it while they pop */
.tile .num.bump { animation: bump-c .7s var(--ease); }
@keyframes bump-c { 0% { transform: translate(-50%, -50%) scale(1); } 30% { transform: translate(-50%, -50%) scale(1.22); color: var(--gold); } 100% { transform: translate(-50%, -50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- player photos ---------- */
.face { display: block; object-fit: contain; }
.face.cut { position: absolute; bottom: 0; object-position: bottom; pointer-events: none; }
.pband { min-height: 66px; padding-right: 110px; }
/* centred on the faint logo behind it (logo is 120px wide, 16px from the edge -> centre 76px in) */
.pband .face.cut { right: 76px; transform: translateX(50%); height: 66px; width: auto; }
.sh-head .face.cut { right: 14px; height: 118px; width: auto; }
.sh-head .nm, .sh-head .sub { padding-right: 130px; }
.fc { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgba(16,19,26,.45); }
.fc .face { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.25) translateY(8%); }
.aitem { padding-left: 68px; }
.aitem .fc { position: absolute; left: 12px; top: 12px; }
.banner .fc { width: 46px; height: 46px; }
.mile .face.hero { width: 180px; height: auto; margin: 14px auto -6px; aspect-ratio: 1040 / 760; object-fit: contain; }

/* small round player photos (players list, box score). If a photo is missing the jersey number shows instead. */
.jf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.3) translateY(10%); }
.bf { position: relative; overflow: hidden; display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }


.devs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.devs p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.devs b { color: var(--text); }


/* pre-game lineup */
.lineup { font-size: 12px; font-weight: 700; color: var(--gold); padding: 10px 0 2px; letter-spacing: .02em; }
.lineup.ok { color: var(--court); }
.lineup .hint { font-weight: 500; color: var(--faint); }
.inj { flex: none; font: 700 10px/1 var(--ui); padding: 3px 5px; border-radius: 5px; background: #3a3115; color: var(--gold); }
.inj.out { background: #3a1a1d; color: var(--live); }
