/* Late Pass: night-broadcast sportsbook. FanDuel-blue on arena navy, condensed display type, tabular numbers. */
:root {
  --bg: #060F1C; --bg2: #0A1729; --surface: #0E1F36; --surface2: #13294A; --surface3: #1A345C;
  --line: rgba(160, 196, 255, .09); --line2: rgba(160, 196, 255, .16);
  --ink: #ECF3FF; --muted: #93A7C6; --dim: #7C93B6;
  --blue: #1493FF; --blue-hi: #49AEFF; --blue-deep: #0763D9; --blue-glow: rgba(20, 147, 255, .35);
  --green: #1FCB7E; --green-deep: #0E9F5E; --red: #FF4F63; --amber: #FFB020; --violet: #9C7BFF;
  --r: 14px; --r-sm: 10px;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", ui-sans-serif, sans-serif;
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
  --tabbar: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font: 500 15px/1.4 var(--body); color: var(--ink); min-height: 100dvh; overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(20, 147, 255, .18), transparent 70%),
    radial-gradient(700px 400px at 110% 40%, rgba(156, 123, 255, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; border-radius: 6px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.hidden { display: none !important; }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 30; padding: calc(10px + var(--safe-t)) 16px 12px;
  background: linear-gradient(180deg, #1493FF 0%, #0B74EA 100%);
  box-shadow: 0 8px 30px -10px rgba(7, 99, 217, .6);
  overflow: hidden;
}
.top::before { /* court lines */
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background:
    radial-gradient(circle at 88% 150%, transparent 70px, #fff 71px, #fff 72.5px, transparent 73.5px),
    radial-gradient(circle at 88% 150%, transparent 118px, #fff 119px, #fff 120.5px, transparent 121.5px),
    linear-gradient(90deg, transparent calc(50% - .75px), rgba(255,255,255,.5) calc(50% - .75px), rgba(255,255,255,.5) calc(50% + .75px), transparent calc(50% + .75px));
}
.top .row { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font: 900 30px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; font-style: italic; }
.brand span { font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .85; padding: 3px 6px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; transform: translateY(-4px); }
.wallet {
  display: flex; align-items: center; gap: 8px; background: rgba(4, 22, 52, .35); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 6px 5px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; backdrop-filter: blur(8px);
}
.wallet .coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE38A, #FFB020 55%, #C77800); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.wallet .av { width: 26px; height: 26px; font-size: 10px; }
.wallet.guest { padding: 7px 14px; font-size: 14px; }

/* ---------- layout */
main { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(var(--tabbar) + 90px + var(--safe-b)); }

/* Entrance stagger only plays on purpose (tab/segment switch, results, sheets), never on background refreshes. */
.enter .reveal > *, .reveal.enter > *, #sheet .reveal > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, var(--n, 0)) * 45ms); }
.reveal > :nth-child(2) { --n: 1; } .reveal > :nth-child(3) { --n: 2; } .reveal > :nth-child(4) { --n: 3; } .reveal > :nth-child(5) { --n: 4; }
.reveal > :nth-child(6) { --n: 5; } .reveal > :nth-child(7) { --n: 6; } .reveal > :nth-child(n+8) { --n: 7; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-h h2 { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.section-h small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.eyebrow { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card { background: linear-gradient(180deg, var(--surface) 0%, #0C1C31 100%); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px 10px; }
.card-h h3 { font: 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.card-h .cols { display: grid; grid-template-columns: repeat(2, 84px); gap: 8px; text-align: center; }
.card-h .cols span { font: 700 10.5px/1 var(--body); letter-spacing: .12em; color: var(--dim); }
.pad { padding: 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 800 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--surface3); color: var(--muted); white-space: nowrap; }
.pill.blue { background: rgba(20, 147, 255, .16); color: var(--blue-hi); }
.pill.green { background: rgba(31, 203, 126, .14); color: var(--green); }
.pill.red { background: rgba(255, 79, 99, .14); color: var(--red); }
.pill.amber { background: rgba(255, 176, 32, .15); color: var(--amber); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px transparent; opacity: .55; } 0% { box-shadow: 0 0 0 0 currentColor; } }

/* ---------- avatars */
.av { --c: #888; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  font: 800 12px/1 var(--body); letter-spacing: .02em; color: #06101F;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 0 0 2px var(--bg2), 0 2px 8px -2px color-mix(in srgb, var(--c) 60%, transparent); }
.av.sm { width: 28px; height: 28px; font-size: 10px; }
.av.lg { width: 52px; height: 52px; font-size: 17px; }
.stack { display: inline-flex; }
.stack > span { margin-left: -5px; position: relative; z-index: calc(10 - var(--i)); }
.stack > span:first-child { margin-left: 0; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  font-weight: 800; font-size: 15.5px; background: var(--blue); color: #fff; transition: transform .12s, filter .15s, background .15s; width: 100%; }
.btn:active { transform: scale(.98); }
.btn.go { background: linear-gradient(180deg, #25D487, var(--green-deep)); color: #03170D; box-shadow: 0 10px 24px -12px rgba(31, 203, 126, .8); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line2); color: var(--ink); }
.btn.soft { background: var(--surface2); color: var(--ink); }
.btn.sm { min-height: 38px; font-size: 13.5px; padding: 0 12px; width: auto; border-radius: 10px; }
.btn[disabled] { filter: grayscale(1) brightness(.6); pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- segmented + chips */
.seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 9px; font-weight: 800; font-size: 13.5px; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--surface3); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 14px 2px; margin: 0 -14px; scroll-padding: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: all .15s; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subnav { position: sticky; top: calc(62px + var(--safe-t)); z-index: 20; padding: 10px 0; margin: 0 -14px 4px; padding-left: 14px; padding-right: 14px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent); }

/* ---------- event hero */
.hero { position: relative; padding: 16px 16px 14px; background:
  linear-gradient(135deg, rgba(20, 147, 255, .22), transparent 55%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px),
  var(--surface); }
.hero .kick { display: flex; justify-content: space-between; align-items: center; }
.hero .vs { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; flex-wrap: wrap; }
.hero .vs b { font: 900 38px/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero .vs i { font: 700 14px/1 var(--display); color: var(--dim); font-style: normal; letter-spacing: .1em; }
.hero .vs em { font: 800 24px/.9 var(--display); color: var(--muted); font-style: normal; text-transform: uppercase; }
.prob { margin-top: 4px; }
.prob .bar { height: 6px; border-radius: 6px; background: var(--surface3); overflow: hidden; display: flex; }
.prob .bar i { background: linear-gradient(90deg, var(--blue-deep), var(--blue-hi)); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.prob .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.hero .meta .row { flex: 1 0 100%; }
.hero .meta .row .btn { flex: 1; white-space: nowrap; }

/* ---------- markets */
.mkt { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); }
.mkt.one { grid-template-columns: 1fr 96px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; flex: 1; }
.who b { display: block; font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.odd { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--line2); transition: background .15s, border-color .15s, transform .1s; line-height: 1.15; }
.odd:hover { border-color: rgba(73, 174, 255, .5); }
.odd:active { transform: scale(.96); }
.odd .ln { font-size: 12px; color: var(--muted); font-weight: 700; }
.odd .o { font-size: 15px; font-weight: 800; color: var(--blue-hi); }
.odd.on { background: var(--blue); border-color: var(--blue-hi); box-shadow: 0 6px 18px -8px var(--blue-glow); }
.odd.on .ln, .odd.on .o { color: #fff; }
.odd.on::after { content: ""; position: absolute; inset: -1px; border-radius: 10px; animation: ping .35s ease-out; box-shadow: 0 0 0 0 var(--blue-hi); }
@keyframes ping { to { box-shadow: 0 0 0 8px transparent; } }
.odd[disabled] { opacity: .45; pointer-events: none; }
.odd.hit { background: rgba(31, 203, 126, .14); border-color: rgba(31, 203, 126, .5); } .odd.hit .o { color: var(--green); }
.odd.miss { background: rgba(255, 79, 99, .08); border-color: rgba(255, 79, 99, .3); } .odd.miss .o { color: var(--red); }
.odd.void .o { color: var(--dim); }
.mu { font-size: 11.5px; color: var(--dim); font-weight: 700; }
.moved { color: var(--amber); }

/* ---------- bet slip */
.slip { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 35; pointer-events: none; }
.slip .inner { max-width: 640px; margin: 0 auto; padding: 0 10px 10px; pointer-events: auto; }
.slip-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; height: 56px; border-radius: 14px;
  background: linear-gradient(180deg, #1C9BFF, #0A6FE6); color: #fff; font-weight: 800; box-shadow: 0 16px 36px -12px rgba(7, 99, 217, .8);
  animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.slip-bar .cnt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--blue-deep); margin-right: 10px; font-size: 14px; }
.slip-bar .right { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.slip-bar .right b { font-size: 16px; }
.sgp { display: inline-flex; align-items: center; font: 900 12px/1 var(--display); letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; color: #fff;
  background: linear-gradient(135deg, #1FCB7E, #0A8C55); font-style: italic; }
.leg { display: grid; grid-template-columns: 1fr auto 44px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.leg b { font-weight: 800; font-size: 14.5px; display: block; }
.leg small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.leg .o { font-weight: 800; color: var(--blue-hi); }
.leg .rm { color: var(--dim); display: grid; place-items: center; height: 44px; border-radius: 8px; }
.leg .rm:hover { background: var(--surface2); color: var(--ink); }
.combo { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(31, 203, 126, .12), rgba(20, 147, 255, .1)); border: 1px solid rgba(31, 203, 126, .25); }
.combo b { font: 900 26px/1 var(--display); }
.wager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.wager > div { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 12px; }
.wager label { font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wager input { display: block; width: 100%; border: 0; background: transparent; outline: none; font: 800 26px/1.2 var(--display); margin-top: 3px; }
.wager > div { transition: border-color .15s, box-shadow .15s; }
.wager > div:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 147, 255, .18); }
.wager .win { font: 800 26px/1.2 var(--display); color: var(--green); margin-top: 3px; }
.quick { display: flex; gap: 6px; margin-bottom: 12px; }
.quick button { flex: 1; padding: 0; min-height: 44px; border-radius: 9px; background: var(--surface2); font-weight: 800; font-size: 13px; color: var(--muted); }
.quick button:active { background: var(--surface3); color: var(--ink); }
.err { background: rgba(255, 79, 99, .1); color: #FF8391; border: 1px solid rgba(255, 79, 99, .3); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin: 8px 0; }

/* ---------- sheet */
#sheet { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(2, 7, 15, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
#sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #102440, var(--bg2) 140px); border: 1px solid var(--line2); border-bottom: 0; border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.25,1); }
#sheet.on { pointer-events: auto; }
#sheet.on .scrim { opacity: 1; }
#sheet.on .panel { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 2px auto 12px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-h h3 { font: 900 26px/1 var(--display); text-transform: uppercase; }
.close { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); color: var(--muted); }

/* ---------- tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(6, 15, 28, .88); backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar .in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--dim); position: relative; transition: color .15s; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on .ic { color: var(--blue-hi); }

.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* ---------- tickets (my bets) */
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.ticket .top-t { padding: 12px 14px 10px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ticket .kind { font: 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ticket .when { font-size: 12px; color: var(--dim); font-weight: 600; margin-top: 3px; }
.ticket .legs { padding: 0 14px 10px; }
.ticket .legs div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.ticket .legs div span:first-child { font-weight: 700; }
.ticket .legs div small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.ticket .legs .g { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; flex: none; background: var(--surface3); display: grid; place-items: center; font: 900 9px/1 var(--body); font-style: normal; color: #06101E; }
.ticket .legs .g.hit { background: var(--green); } .ticket .legs .g.miss { background: var(--red); color: #fff; }
.ticket .legs .g.hit::after { content: "\2713"; } .ticket .legs .g.miss::after { content: "\2715"; }
.ticket .perf { position: relative; height: 1px; margin: 0 14px; border-top: 2px dashed var(--line2); }
.ticket .perf::before, .ticket .perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket .perf::before { left: -24px; } .ticket .perf::after { right: -24px; }
.ticket .foot { display: grid; grid-template-columns: 1fr 1fr; padding: 11px 14px 13px; }
.ticket .foot label { font: 800 10px/1 var(--body); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.ticket .foot b { display: block; font: 800 20px/1.2 var(--display); margin-top: 3px; }
.stamp { position: absolute; right: 14px; bottom: 16px; font: 900 26px/1 var(--display); letter-spacing: .06em; padding: 4px 10px; border: 3px solid; border-radius: 6px;
  transform: rotate(-9deg); opacity: .9; animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.stamp.won { color: var(--green); } .stamp.lost { color: var(--red); } .stamp.void { color: var(--dim); } .stamp.open { color: var(--blue-hi); border-style: dashed; }
@keyframes stamp { from { transform: rotate(-9deg) scale(1.8); opacity: 0; } }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: right; padding: 10px 8px; white-space: nowrap; }
.tbl td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: right; font-weight: 700; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 14px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 28px; }
.tbl th[data-sort] { cursor: pointer; }
.tbl th.on { color: var(--blue-hi); }
.scroll-x { overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

/* ---------- rankings */
.rk { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.rk:first-child { border-top: 0; }
.rk .n { font: 900 38px/.8 var(--display); color: #6F84A6; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.rk:nth-child(2) .n { background: linear-gradient(180deg, #F2F6FC, #AFBFD6); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #3E4B60); }
.rk:nth-child(3) .n { background: linear-gradient(180deg, #F6B287, #C96A32); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #5A2A0E); }
.rk:first-child .n { background: linear-gradient(180deg, #FFE08A, #FFB020); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #7A4F00) drop-shadow(0 0 14px rgba(255, 197, 61, .45)); }
.rk .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk .nm b { font-weight: 800; font-size: 15.5px; display: block; }
.rk .nm small { color: var(--muted); font-size: 12px; font-weight: 600; }
.rk .score { text-align: right; }
.rk .score b { font: 900 28px/1 var(--display); }
.rk .score small { display: block; font-size: 11px; color: var(--dim); font-weight: 700; }
.meter { height: 4px; border-radius: 4px; background: var(--surface3); margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-deep), var(--blue-hi)); }
.delta { font-size: 11.5px; font-weight: 800; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }
.vote-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); transition: background .2s; }
.vote-row.flash { background: rgba(20, 147, 255, .12); }
.vote-row .n { font: 900 22px/1 var(--display); color: var(--muted); text-align: center; }
.vote-row .mv { display: flex; gap: 8px; }
.vote-row .mv button { width: 44px; height: 44px; border-radius: 9px; background: var(--surface2); color: var(--muted); display: grid; place-items: center; }
.vote-row .mv button:disabled { opacity: .3; }

/* ---------- player cards */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { --c: #888; position: relative; text-align: left; border-radius: 16px; overflow: hidden; padding: 12px 12px 12px; min-height: 196px;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c) 32%, transparent), transparent 60%),
    linear-gradient(160deg, #13294A, #0B1A2E 70%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .15s, border-color .15s; }
.pcard:active { transform: scale(.98); }
.pcard::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px); pointer-events: none; }
.pcard .ovr { font: 900 40px/.85 var(--display); color: var(--c); }
.pcard .ovr small { display: block; font: 800 10px/1 var(--body); letter-spacing: .12em; color: var(--muted); margin-top: 5px; }
.pcard .pos { position: absolute; top: 12px; right: 12px; font: 900 15px/1 var(--display); padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.3); border: 1px solid var(--line2); }
.pcard .nm { font: 900 21px/1 var(--display); text-transform: uppercase; margin-top: 18px; letter-spacing: .01em; overflow-wrap: anywhere; }
.pcard .sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pcard .line3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); }
.pcard .line3 b { display: block; font: 800 19px/1 var(--display); }
.pcard .line3 span { font: 700 9.5px/1 var(--body); letter-spacing: .1em; color: var(--dim); }
.pcard .flag { position: absolute; top: 52px; right: 12px; }
.attr { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.attr span { color: var(--muted); font-weight: 600; }
.attr .bar { height: 6px; border-radius: 6px; background: var(--surface3); overflow: hidden; }
.attr .bar i { display: block; height: 100%; border-radius: 6px; }
.attr b { text-align: right; font-weight: 800; }
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.statline > div { background: var(--surface); padding: 10px 6px; text-align: center; }
.statline b { display: block; font: 800 22px/1 var(--display); }
.statline span { font: 700 10px/1 var(--body); letter-spacing: .1em; color: var(--dim); }
.cov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cov div { text-align: center; padding: 9px 4px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.cov .ok { background: rgba(31, 203, 126, .13); color: var(--green); } .cov .help { background: rgba(255, 176, 32, .12); color: var(--amber); } .cov .never { background: rgba(255, 79, 99, .1); color: var(--red); }

/* ---------- sim */
.team { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; padding: 12px 12px 10px; position: relative; }
.team .tn { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.team .tn input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font: 900 22px/1 var(--display); text-transform: uppercase; }
.team .tn .sw { width: 10px; height: 28px; border-radius: 4px; background: var(--tc); flex: none; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px 8px; border-radius: 11px; background: var(--bg2); border: 1px dashed var(--line2); min-height: 82px; justify-content: center; }
.slot.full { border-style: solid; }
.slot small { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.15; }
.slot b { font-size: 11.5px; font-weight: 800; }
.slot .plus { font: 300 26px/1 var(--body); color: var(--dim); }
.proj { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.proj b { font: 900 30px/1 var(--display); }
.proj small { color: var(--muted); font-size: 12px; font-weight: 700; }
.parts { display: grid; gap: 6px; margin-top: 10px; }
.part { display: grid; grid-template-columns: 82px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.part .track { position: relative; height: 8px; background: var(--bg2); border-radius: 4px; }
.part .track::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line2); }
.part .track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.part .v { text-align: right; color: var(--ink); }
.standing { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.standing .rec { font: 900 30px/1 var(--display); }
.standing .rec small { font: 700 12px/1 var(--body); color: var(--muted); margin-left: 6px; }
.spark { width: 100%; height: 28px; margin-top: 6px; display: block; }
.spark path { fill: none; stroke: var(--blue-hi); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark .zero { stroke: var(--line2); stroke-dasharray: 2 3; }
.hist { display: flex; align-items: flex-end; gap: 1px; height: 64px; margin-top: 10px; }
.hist i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; opacity: .85; min-height: 1px; }
.hist i.mid { background: var(--blue-hi); opacity: 1; }
.award { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.award .k { font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.award b { font-weight: 800; }
.award small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.bracket { display: grid; gap: 8px; padding: 12px 14px 14px; }
.series { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-size: 13.5px; }
.series .rd { font: 800 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.series .w { font-weight: 800; }
.series .sc { font: 900 20px/1 var(--display); }
.champ { text-align: center; padding: 22px 14px 18px; background: radial-gradient(80% 120% at 50% 0%, rgba(255, 176, 32, .18), transparent 70%); }
.champ .eyebrow { color: var(--amber); }
.champ b { display: block; font: 900 40px/1 var(--display); text-transform: uppercase; margin-top: 8px; }
.slider { display: grid; grid-template-columns: 1fr 48px; gap: 4px 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.slider label { font-weight: 800; font-size: 14px; }
.slider output { text-align: right; font-weight: 800; color: var(--blue-hi); }
.slider p { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.lf { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.lf .n { font: 900 22px/1 var(--display); color: var(--dim); text-align: center; }
.lf b { font: 900 22px/1 var(--display); }
.lf small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.names { font-size: 13px; font-weight: 700; line-height: 1.35; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.kpi > div { background: var(--surface); padding: 12px 10px; }
.kpi b { display: block; font: 900 26px/1 var(--display); }
.kpi span { font: 700 10.5px/1.2 var(--body); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }

/* ---------- pick lists */
.picker { display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pick b { font-weight: 800; display: block; }
.pick small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pick.on { border-color: var(--blue); background: rgba(20, 147, 255, .1); }
.pick[disabled] { opacity: .35; }

/* ---------- sign in */
.names-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.names-grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 4px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; overflow-wrap: anywhere; }
.names-grid button small { color: var(--dim); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.pinrow { display: flex; justify-content: center; gap: 14px; margin: 18px 0 20px; }
.pinrow i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); transition: all .15s; }
.pinrow i.on { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.pinrow.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.pad-keys button { height: 60px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font: 800 28px/1 var(--display); }
.pad-keys button:active { background: var(--surface3); }
.pad-keys button.fn { font: 700 13px/1 var(--body); color: var(--muted); background: transparent; border: 0; }

/* ---------- confirm */
.confirm { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(2, 7, 15, .7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.confirm.on { opacity: 1; }
.confirm .box { width: 100%; max-width: 360px; background: linear-gradient(180deg, #13294A, var(--bg2)); border: 1px solid var(--line2); border-radius: 20px; padding: 20px; transform: scale(.94); transition: transform .2s cubic-bezier(.2,.9,.25,1); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.confirm.on .box { transform: none; }
.confirm h3 { font: 900 26px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.confirm .note { margin-bottom: 18px; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 84px + var(--safe-b)); transform: translate(-50%, 10px); z-index: 80;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.good { background: var(--green); color: #03170D; }
.toast.bad { background: var(--red); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 14px; }
.empty b { display: block; font: 900 24px/1 var(--display); color: var(--ink); text-transform: uppercase; margin-bottom: 6px; }
.inp { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: 16px; text-align: center; outline: none; }
.inp:focus { border-color: var(--blue); }
.settle-row { display: grid; grid-template-columns: 1fr 76px; gap: 10px; align-items: center; padding: 7px 0; }
.settle-row small { color: var(--dim); font-weight: 600; margin-left: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.recap { padding: 14px; font-size: 14px; line-height: 1.55; }
.recap .eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--violet); }

@media (min-width: 560px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .hero .vs b { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* =====================================================================
   Motion + depth pass
   ===================================================================== */

/* ---------- tactile buttons: a lip underneath that the button presses into */
.btn {
  --lip: #0550B8; --glow: rgba(20, 147, 255, .45);
  position: relative; background: linear-gradient(180deg, #34A5FF 0%, var(--blue) 45%, #0E82F0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.12), 0 4px 0 var(--lip), 0 12px 22px -10px var(--glow);
  transition: transform .09s cubic-bezier(.3,.7,.4,1), box-shadow .09s, filter .15s; transform: translateY(0);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.btn:hover { filter: brightness(1.06); }
.btn:active, .btn.pressed { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--lip), 0 4px 10px -6px var(--glow); transition-duration: .04s; }
.btn.go { --lip: #077244; --glow: rgba(31, 203, 126, .55); background: linear-gradient(180deg, #3BE39A 0%, #1FCB7E 45%, #14B26C 100%); color: #03170D; text-shadow: 0 1px 0 rgba(255,255,255,.2); }
.btn.soft { --lip: #081427; --glow: transparent; background: linear-gradient(180deg, #1B3761, var(--surface2)); color: var(--ink); }
.btn.ghost { --lip: rgba(160,196,255,.14); --glow: transparent; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); border: 1.5px solid var(--line2); }
.btn.sm { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 0 var(--lip), 0 8px 16px -10px var(--glow); }
.btn.sm:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip); }
.btn.loading { pointer-events: none; color: transparent !important; text-shadow: none; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(3, 23, 13, .25); border-top-color: #03170D; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.odd {
  background: linear-gradient(180deg, #19345C, var(--surface2) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 0 #081427, 0 6px 12px -8px rgba(0,0,0,.6);
  transition: transform .09s cubic-bezier(.3,.7,.4,1), box-shadow .09s, background .18s, border-color .18s;
}
.odd:active { transform: translateY(2px) scale(.985); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 0 #081427; transition-duration: .04s; }
.odd.on { background: linear-gradient(180deg, #34A5FF, var(--blue) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 #0550B8, 0 10px 20px -8px var(--blue-glow); }
.odd.on:active { box-shadow: 0 1px 0 #0550B8; }
.odd.on .o { animation: tickup .28s cubic-bezier(.3,1.6,.5,1); }
@keyframes tickup { from { transform: translateY(4px) scale(.9); opacity: .4; } }

.chip { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 #081427; transition: transform .08s, box-shadow .08s, background .18s, color .18s, border-color .18s; }
.chip:active { transform: translateY(2px); box-shadow: 0 0 0 #081427; }
.chip.on { box-shadow: inset 0 -2px 0 rgba(6,15,28,.12), 0 2px 0 #7F93B3, 0 8px 18px -10px rgba(236,243,255,.5); }

.seg button { transition: background .2s, color .2s, transform .08s, box-shadow .2s; }
.seg button:active { transform: scale(.97); }
.seg button.on { background: linear-gradient(180deg, #22416E, var(--surface3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 0 #081427, 0 6px 14px -8px rgba(0,0,0,.7); }

.quick button, .pad-keys button:not(.fn), .names-grid button, .pick, .slot, .vote-row .mv button, .close {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 0 #081427;
  transition: transform .08s cubic-bezier(.3,.7,.4,1), box-shadow .08s, background .15s, border-color .15s;
}
.quick button:active, .pad-keys button:not(.fn):active, .names-grid button:active, .pick:active, .slot:active, .vote-row .mv button:active, .close:active {
  transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 0 #081427; transition-duration: .04s;
}
.pad-keys button:not(.fn) { background: linear-gradient(180deg, #16305A, var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 #071224; }
.pad-keys button:not(.fn):active { transform: translateY(3px); box-shadow: 0 1px 0 #071224; }
.pick.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #0550B8; }
.pcard { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 #071224, 0 18px 30px -18px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .12s cubic-bezier(.3,.7,.4,1), box-shadow .12s, border-color .2s; }
.pcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.pcard:active { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 #071224; transition-duration: .05s; }
.rk, .lf, .mkt { transition: background .2s; }
.rk:active { background: rgba(20, 147, 255, .06); }
.card { box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 30px -22px rgba(0,0,0,.9); }

/* ---------- tab bar: one indicator that glides, icons that spring */
.tabbar .in { position: relative; }
.tabbar .ind { position: absolute; top: 0; left: 0; width: 20%; height: 3px; display: grid; place-items: center; pointer-events: none;
  transform: translateX(calc(var(--idx, 0) * 100%)); transition: transform .38s cubic-bezier(.3, 1.35, .5, 1); }
.tabbar .ind::before { content: ""; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); box-shadow: 0 0 16px 1px var(--blue); }
.tabbar button .ic { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), color .2s; }
.tabbar button:active .ic { transform: scale(.82); transition-duration: .06s; }
.tabbar button.on .ic { transform: translateY(-1px) scale(1.08); }
.badge.pop { animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } }

/* ---------- wallet */
.wallet { transition: background .3s, box-shadow .3s; }
.wallet .amt { display: inline-block; min-width: 3ch; text-align: right; }
.wallet.up { animation: flashUp 1s ease; } .wallet.down { animation: flashDown .8s ease; }
@keyframes flashUp { 20% { background: rgba(31, 203, 126, .45); box-shadow: 0 0 0 4px rgba(31, 203, 126, .25); } }
@keyframes flashDown { 20% { background: rgba(4, 22, 52, .7); } }
.wallet.catch .coin, .catch { animation: catch .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes catch { 40% { transform: scale(1.18); } }
.fly-coin { position: fixed; left: 0; top: 0; z-index: 100; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #FFF1B8, #FFB020 55%, #B86E00); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4), 0 2px 8px rgba(255, 176, 32, .6); }

/* ---------- slip bar */
.slip-bar { animation: slipIn .38s cubic-bezier(.25, 1.3, .5, 1) both;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 #0550B8, 0 18px 36px -12px rgba(7, 99, 217, .8); transition: transform .09s, box-shadow .09s; }
.slip-bar:active { transform: translateY(3px); box-shadow: 0 1px 0 #0550B8, 0 10px 20px -12px rgba(7, 99, 217, .8); }
.slip-bar.out { animation: slipOut .22s ease-in both; }
@keyframes slipIn { from { transform: translateY(120%); opacity: 0; } }
@keyframes slipOut { to { transform: translateY(120%); opacity: 0; } }
.slip-bar .cnt.pop { animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
.slip-bar .right b { display: inline-block; animation: tickup .25s ease; }

/* ---------- sheets: springier, and a no-shake on errors */
#sheet .panel { transition: transform .42s cubic-bezier(.2, 1.05, .3, 1); will-change: transform; }
#sheet .panel.nope { animation: nope .4s; }
@keyframes nope { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.grab { transition: background .2s, width .2s; }
#sheet .panel:active .grab { width: 52px; background: var(--muted); }

/* ---------- things that draw in */
.enter .prob .bar i, .reveal.enter .prob .bar i { animation: grow .9s .15s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.enter .meter i { animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, var(--n, 0)) * 45ms + .15s); transform-origin: left; }
.enter .part .track i { animation: grow .7s .2s cubic-bezier(.2, .8, .2, 1) both; }
.part .track i[style*="left:50%"] { transform-origin: left; } .part .track i[style*="right:50%"] { transform-origin: right; }
.enter .attr .bar i, #sheet .attr .bar i { animation: grow .8s .1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.enter .hist i { animation: rise-y .6s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
.enter .hist i:nth-child(3n) { animation-delay: .04s; } .enter .hist i:nth-child(3n+1) { animation-delay: .08s; }
@keyframes rise-y { from { transform: scaleY(0); } }
.enter .spark path:not(.zero) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.enter .champ b { animation: champ .7s .1s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes champ { from { transform: scale(.6); opacity: 0; letter-spacing: .2em; } }
.champ { position: relative; overflow: hidden; }
.enter .champ::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 214, 120, .22) 50%, transparent 65%); animation: sheen 1.4s .5s ease both; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* live "open" pill gets a slow sheen so the board feels live */
.hero .pill.blue { position: relative; overflow: hidden; }
.hero .pill.blue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: sheen 2.8s 1s ease-in-out infinite; }

/* ---------- tab switch: view transition slides in the direction you moved */
.top { view-transition-name: top; } .tabbar { view-transition-name: tabbar; } main { view-transition-name: main; }
::view-transition-old(main) { animation: vtOut .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(main) { animation: vtIn .32s cubic-bezier(0, 0, .2, 1) both; }
[data-dir=back]::view-transition-old(main) { animation-name: vtOutBack; }
[data-dir=back]::view-transition-new(main) { animation-name: vtInBack; }
@keyframes vtOut { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vtIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes vtOutBack { to { opacity: 0; transform: translateX(28px); } }
@keyframes vtInBack { from { opacity: 0; transform: translateX(-28px); } }

/* ---------- skeleton */
.skel { padding-top: 4px; }
.sk, .sk-row i { background: linear-gradient(100deg, var(--surface) 30%, #16305A 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r); }
.hero-sk { height: 250px; margin-bottom: 14px; }
.sk-row { display: flex; gap: 8px; margin-bottom: 14px; } .sk-row i { height: 36px; flex: 1; border-radius: 999px; }
.card-sk { height: 190px; margin-bottom: 12px; } .card-sk.short { height: 120px; opacity: .6; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- ticket stamp lands with a thump */
.stamp { animation: stamp .45s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.stamp.won { text-shadow: 0 0 18px rgba(31, 203, 126, .5); }

@media (hover: none) { .pcard:hover { transform: none; } .btn:hover { filter: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(main), ::view-transition-new(main) { animation: none; } .fly-coin { display: none; } }

/* ---------- stats hub */
.leaders { display: grid; gap: 12px; }
@media (min-width: 560px) { .leaders { grid-template-columns: 1fr 1fr; } }
.lead { margin: 0; position: relative; }
.lead::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c), transparent 70%); }
.lead-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 12px; cursor: pointer;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%); }
.lead-name { font: 900 24px/1 var(--display); text-transform: uppercase; margin: 6px 0 3px; }
.lead-v { display: flex; align-items: center; gap: 12px; }
.lead-v b { font: 900 44px/.9 var(--display); letter-spacing: -.01em; }
.lead-row { display: grid; grid-template-columns: 16px 28px 72px 1fr 44px; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.lead-row:active { background: rgba(20, 147, 255, .06); }
.lead-row .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-row .meter { margin: 0; }
.lead-row b { text-align: right; font-weight: 800; }
.tbl.sticky th:first-child, .tbl.sticky td:first-child { position: sticky; left: 0; z-index: 1; background: linear-gradient(90deg, var(--surface) 88%, transparent); }
.tbl td.hot { color: var(--blue-hi); }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:active { background: rgba(20, 147, 255, .06); }

.tiers { display: flex; gap: 8px; font-size: 10.5px; font-weight: 700; color: var(--dim); }
.tiers span { display: inline-flex; align-items: center; gap: 4px; }
.tiers i { width: 8px; height: 8px; border-radius: 2px; }
.attr .bar i { box-shadow: 0 0 10px -2px currentColor; }

/* ---------- best five */
.av.xs { width: 20px; height: 20px; font-size: 8px; box-shadow: none; }
.chip.person { display: inline-flex; align-items: center; gap: 7px; padding-left: 6px; }
.chip.person.on { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); border-color: var(--c); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 45%, #000), 0 0 16px -4px var(--c); }
.finder-intro .kpi b { color: var(--ink); }
.lineup { --m: var(--blue); position: relative; margin-bottom: 12px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--m) 18%, transparent), transparent 55%), linear-gradient(180deg, var(--surface), #0B1A2E);
  border: 1px solid color-mix(in srgb, var(--m) 30%, var(--line)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 0 #071224; }
.lineup.gold { --m: #FFC53D; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 #3A2A05, 0 16px 34px -18px rgba(255, 197, 61, .7); }
.lineup.silver { --m: #C9D6EA; } .lineup.bronze { --m: #E08A4F; }
.lineup-h { display: grid; grid-template-columns: 44px auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px 10px; }
.lineup .rank { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 900 24px/1 var(--display);
  background: color-mix(in srgb, var(--m) 20%, var(--surface2)); color: var(--m); border: 1px solid color-mix(in srgb, var(--m) 45%, transparent); }
.lineup.gold .rank { background: linear-gradient(180deg, #FFE08A, #FFB020); color: #3A2600; border: 0; box-shadow: 0 3px 0 #9A6400, 0 0 18px -2px rgba(255, 197, 61, .7); }
.lineup.silver .rank { background: linear-gradient(180deg, #F2F6FC, #AFBFD6); color: #1B2A40; border: 0; box-shadow: 0 3px 0 #5E6E86; }
.lineup.bronze .rank { background: linear-gradient(180deg, #F6B287, #C96A32); color: #2E1405; border: 0; box-shadow: 0 3px 0 #7A3A14; }
.lineup-w b { font: 900 32px/.9 var(--display); }
.lineup-w small { display: block; font: 800 10px/1 var(--body); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; margin-top: 3px; }
.lineup-bar { height: 8px; border-radius: 8px; background: var(--bg2); overflow: hidden; }
.lineup-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--m) 55%, var(--blue-deep)), var(--m)); box-shadow: 0 0 12px -2px var(--m); }
.enter .lineup-bar i { animation: grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; animation-delay: calc(var(--i, 0) * 45ms + .15s); }
.move { text-align: right; font: 900 17px/1 var(--display); color: var(--dim); }
.move small { display: block; font: 700 9.5px/1 var(--body); letter-spacing: .06em; color: var(--dim); margin-top: 3px; text-transform: uppercase; }
.move.up { color: var(--green); } .move.down { color: var(--red); }
.five5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 12px 10px; }
.p5 { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, var(--bg2)), var(--bg2)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.p5 b { font-size: 11.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.pos5 { font: 900 12px/1 var(--display); letter-spacing: .06em; color: var(--c); }
.unp { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font: 900 10px/1 var(--body); font-style: normal; background: var(--amber); color: #2A1B00; }
.lineup-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.lineup-f .note { font-size: 12.5px; }

/* ---------- sign-in wall */
body.gated .tabbar, body.gated #slip { display: none; }
.gate { min-height: calc(100dvh - 140px); display: grid; place-items: center; text-align: center; padding: 20px 8px; }
.gate .reveal { max-width: 360px; display: grid; gap: 12px; }
.gate-mark { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #34A5FF, var(--blue-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 5px 0 #0550B8, 0 20px 40px -14px var(--blue-glow); }
.gate-mark .ic { width: 40px; height: 40px; }
.gate h1 { font: 900 44px/.95 var(--display); text-transform: uppercase; }
.gate .note { font-size: 15px; margin-bottom: 8px; }

/* ---------- info buttons + explainer */
button.info { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; vertical-align: -3px;
  color: var(--dim); transition: color .15s, transform .12s; }
button.info::before { content: ""; position: absolute; inset: -12px; } /* bigger tap target, same look */
button.info .ic { width: 15px; height: 15px; stroke-width: 2; }
button.info:hover, button.info:focus-visible { color: var(--blue-hi); }
button.info:active { transform: scale(.85); color: var(--blue-hi); }
.info-box { max-height: 80dvh; overflow-y: auto; text-align: left; }
.info-rows { display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.info-rows > div { display: grid; grid-template-columns: 1fr auto 40px; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); font-size: 13.5px; }
.info-rows span { color: var(--muted); font-weight: 600; }
.info-rows b { font-weight: 800; }
.info-rows > div > small { color: var(--dim); font-weight: 700; text-align: right; }

/* ---------- tip-off / settle status line on the board */
.hero .tip { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4;
  background: rgba(20, 147, 255, .1); color: var(--blue-hi); border: 1px solid rgba(73, 174, 255, .22); }
.hero .tip .ic { margin-top: 1px; }
.hero .tip.dim { background: transparent; border-style: dashed; color: var(--muted); border-color: var(--line2); }
.hero .tip.amber { background: rgba(255, 176, 32, .1); color: #FFC766; border-color: rgba(255, 176, 32, .3); }
input[type=time].inp { color-scheme: dark; }

.hero .meta .row { flex-wrap: wrap; }

.close::before { content: ""; position: absolute; inset: -4px; } /* 44px hit area, same look */
[data-act][tabindex]:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: -2px; }

/* board controls: three equal tiles, icon over label */
.hero .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.btn.tile { flex-direction: column; gap: 5px; min-height: 60px; padding: 8px 4px; font-size: 13px; border-radius: 12px; }
.btn.tile .ic { width: 18px; height: 18px; color: var(--blue-hi); }
