:root {
  --bg: #05090f;
  --bg2: #0b1220;
  --card: #0e1626;
  --card2: #131f35;
  --line: #1f2d45;
  --line2: #2b3d5e;
  --text: #e9eff9;
  --muted: #8d9dba;
  --dim: #5f6f8c;
  --buf: #2f6fff;
  --buf-deep: #00338d;
  --ne: #e0234a;
  --ne-deep: #002244;
  --gold: #ffd23f;
  --win: #22d37a;
  --loss: #ff4d5e;
  --live: #ffb020;
  --twitch: #9146ff;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1100px 480px at 20% -12%, #11285a 0%, transparent 60%), radial-gradient(900px 420px at 100% 0%, #2a0d1c 0%, transparent 55%), var(--bg);
  background-color: var(--bg);
  color: var(--text); font-family: var(--ui); font-size: 14px; line-height: 1.4;
  overflow-x: hidden; padding-bottom: 112px;
}
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
#app { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.up { color: var(--win); } .down { color: var(--loss); } .muted { color: var(--dim); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 0 10px; flex-wrap: wrap; }
.brand { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.brand span { color: var(--gold); }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #e91916; box-shadow: 0 0 10px #e91916; animation: pulse 1.6s infinite; }
.matchup { color: var(--muted); font-size: 13px; }
.mode { margin-left: auto; }
.viewers { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.viewers i { width: 7px; height: 7px; border-radius: 50%; background: #e91916; }
.viewers span { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.viewers em { font-style: normal; color: var(--dim); font-size: 10px; border: 1px solid var(--line); padding: 0 4px; border-radius: 3px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { background: none; border: 0; padding: 5px 11px; font-size: 12px; border-radius: 7px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.seg button.on { background: #1f3358; color: #fff; }
.seg.small button { padding: 3px 8px; font-size: 11px; }

/* ---------- scorebug ---------- */
.scorebug {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: stretch;
  background: linear-gradient(180deg, #121d31, #0b1322); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.sb-team { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-width: 0; }
.sb-away { background: linear-gradient(90deg, #0b2a52 0%, rgba(0,34,68,.15) 100%); }
.sb-home { background: linear-gradient(270deg, #0a3fa6 0%, rgba(0,51,141,.15) 100%); justify-content: flex-end; }
.sb-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--cond); font-weight: 800; font-size: 18px; flex: none; background: #0b2a4f; border: 2px solid var(--ne); }
.sb-logo.home { background: #0b3fa8; border-color: #c60c30; }
.sb-meta { min-width: 0; }
.sb-name { font-family: var(--cond); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.sb-home .sb-meta { text-align: right; }
.sb-tos { display: flex; gap: 4px; margin-top: 2px; }
.sb-home .sb-tos { justify-content: flex-end; }
.sb-tos i { width: 14px; height: 4px; border-radius: 2px; background: var(--gold); display: block; }
.sb-tos i.used { background: rgba(255,255,255,.15); }
.sb-score { font-family: var(--cond); font-weight: 800; font-size: 50px; line-height: 1; min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.sb-score.bump { animation: bump .9s ease; }
.sb-poss { width: 14px; height: 14px; flex: none; }
.sb-poss.on::before { content: ''; display: block; width: 13px; height: 8px; margin-top: 3px; border-radius: 50%; background: #9b5a2a; border: 1px solid #f1d2b0; }
.sb-mid { padding: 6px 22px; text-align: center; display: flex; flex-direction: column; justify-content: center; background: #0a111e; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 200px; }
.sb-period { font-family: var(--cond); font-weight: 700; font-size: 23px; letter-spacing: .5px; }
.sb-dd { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.sb-win { padding: 6px 18px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); min-width: 170px; background: #0a111e; }
.sb-win-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.sb-win-px { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-win-d { font-size: 15px; margin-left: 6px; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 14px; margin-top: 12px; align-items: start; }
.col-main, .col-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.card-h { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card-h h2 { font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .4px; text-transform: uppercase; margin: 0; white-space: nowrap; }
.card-h .seg { margin-left: auto; align-self: center; }
.h-sub { color: var(--muted); font-size: 12px; }

/* ---------- field + stage ---------- */
.stage { padding: 8px; }
.field-wrap { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1200 / 400; background: #0d3b1e; }
#field { width: 100%; height: 100%; display: block; }
.lastplay { display: flex; gap: 8px; align-items: baseline; padding: 8px 4px 2px; font-size: 13px; min-height: 30px; }
.lp-tag { flex: none; font-family: var(--cond); font-weight: 700; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; background: #24324d; color: #c9d6ee; }
.lp-tag.big { background: var(--gold); color: #111; }
#lastPlayTxt { min-width: 0; }
.flash-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; z-index: 4;
  font-family: var(--cond); font-weight: 800; font-size: clamp(26px, 5.4vw, 70px); letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 26px; border-radius: 8px; white-space: nowrap; text-shadow: 0 4px 18px rgba(0,0,0,.6); color: #fff;
}
.flash-word.show { animation: flashword 2.8s ease forwards; }

/* the compact Kalshi banner on the field */
.mk-banner {
  position: absolute; left: 50%; top: 10px; transform: translate(-50%, -10px); opacity: 0; transition: opacity .25s, transform .25s; z-index: 3;
  pointer-events: none; max-width: calc(100% - 20px);
}
.mk-banner.show { opacity: 1; transform: translate(-50%, 0); }
.mk-banner .mb { display: flex; align-items: center; gap: 10px; background: rgba(6,10,18,.9); border: 1.5px dashed var(--gold); border-radius: 10px; padding: 6px 12px; backdrop-filter: blur(6px); box-shadow: 0 8px 26px rgba(0,0,0,.55); white-space: nowrap; }
.mk-banner .mb.ok { border: 1.5px solid var(--win); }
.mk-banner .mb.fix { border: 1.5px solid var(--live); }
.mk-banner .mb.quiet { border-color: #50617f; }
.mb-tag { font-family: var(--cond); font-weight: 800; letter-spacing: 1px; font-size: 13px; text-transform: uppercase; background: var(--gold); color: #111; padding: 0 6px; border-radius: 3px; }
.mb.ok .mb-tag { background: var(--win); } .mb.fix .mb-tag { background: var(--live); } .mb.quiet .mb-tag { background: #50617f; color: #fff; }
.mb-main { font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; }
.mb-sub { color: var(--muted); font-size: 12px; }

/* ---------- PiP host window ---------- */
.pip {
  position: absolute; width: 230px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; z-index: 5; touch-action: none;
  border: 2px solid var(--twitch); box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4); background: #000; cursor: grab;
  transition: width .25s ease, left .25s ease, top .25s ease, right .25s ease, bottom .25s ease;
}
.pip[data-size="m"] { width: 320px; }
.pip[data-size="l"] { width: 440px; }
.pip.tl { left: 10px; top: 10px; } .pip.tr { right: 10px; top: 10px; }
.pip.bl { left: 10px; bottom: 10px; } .pip.br { right: 10px; bottom: 10px; }
.pip.dragging { transition: none; cursor: grabbing; opacity: .92; }
.pip.react { animation: shake .5s ease; }
.pip[hidden] { display: none; }
.pip img { -webkit-user-drag: none; user-select: none; }
.pip-show { position: absolute; right: 10px; bottom: 10px; z-index: 6; background: rgba(0,0,0,.7); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.pip-show:hover { background: var(--twitch); }
.pip-show[hidden] { display: none; }
.pip img, .pip video, .pip iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.pip img[hidden], .pip video[hidden], .pip iframe[hidden] { display: none; }
.pip-top { position: absolute; left: 6px; top: 6px; display: flex; gap: 5px; align-items: center; pointer-events: none; }
.live-pill { background: #e91916; color: #fff; font-weight: 800; font-size: 10px; padding: 1px 6px; border-radius: 3px; letter-spacing: .5px; }
.pip-tag { background: rgba(0,0,0,.62); font-size: 10px; padding: 1px 6px; border-radius: 3px; color: #ddd; }
.pip-name { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.66); padding: 1px 6px; border-radius: 3px; pointer-events: none; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pip-name em { font-style: normal; font-weight: 400; color: #bbb; }
.pip-react { position: absolute; left: 6px; right: 6px; bottom: 27px; font-family: var(--cond); font-weight: 700; font-size: 13px; line-height: 1.15; background: rgba(145,70,255,.92); padding: 3px 8px; border-radius: 4px; opacity: 0; transform: translateY(6px); transition: .3s; pointer-events: none; }
.pip-react.show { opacity: 1; transform: none; }
.pip-react small { font-family: var(--ui); font-weight: 400; font-size: 9px; opacity: .8; display: block; }
.pip-btns { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.pip-btns button { width: 24px; height: 24px; border-radius: 6px; border: 0; background: rgba(0,0,0,.62); font-size: 13px; line-height: 1; }
.pip-btns button:hover { background: var(--twitch); }
.pip-menu { position: absolute; inset: 0; background: rgba(8,10,20,.95); padding: 8px; font-size: 11px; display: flex; flex-direction: column; gap: 4px; overflow: auto; cursor: default; }
.pip-menu[hidden] { display: none; }
.pm-h { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-size: 10px; }
.pm-src { background: var(--card2); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 6px; text-align: left; font-size: 11px; }
.pm-src.on { border-color: var(--twitch); }
.pm-tw { display: flex; gap: 4px; }
.pm-tw input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; font-size: 11px; }
.pm-note { color: var(--muted); font-size: 10px; }
.pip-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pip-burst .fx { position: absolute; bottom: -10%; font-size: 22px; animation: rise 2.6s ease-out forwards; }
.pip-burst .cap { position: absolute; left: 50%; top: 36%; transform: translateX(-50%); font-family: var(--cond); font-weight: 800; font-size: 17px; background: var(--gold); color: #111; padding: 1px 8px; border-radius: 4px; white-space: nowrap; animation: capin 3.2s ease forwards; }

/* ---------- guess card ---------- */
.guess-card { display: flex; flex-direction: column; }
#guess { flex: 1; }
.g-idle { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.g-idle .px { font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; }
.g-idle .txt { color: var(--muted); font-size: 12.5px; }
.g-live { display: grid; grid-template-columns: minmax(0, 1fr) 94px; gap: 10px; align-items: start; }
.g-kicker { flex-wrap: wrap; row-gap: 2px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); display: flex; gap: 8px; align-items: center; }
.g-kicker.quiet { color: var(--muted); }
.g-kicker .pill { white-space: nowrap; background: var(--gold); color: #111; padding: 0 6px; border-radius: 3px; }
.g-kicker.quiet .pill { background: #3a4a68; color: #fff; }
.g-head { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1.02; text-transform: uppercase; margin: 2px 0; }
.g-head .pct { color: var(--gold); margin-left: 6px; }
.g-move { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.g-move b { color: var(--text); }
.g-rows { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; gap: 3px 8px; align-items: center; font-size: 12.5px; }
.g-rows .bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.g-rows .bar i { display: block; height: 100%; background: var(--gold); transition: width .5s; }
.g-rows .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-rows .first { font-weight: 700; }
.tm { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; color: #fff; }
.tm.home { background: var(--buf-deep); } .tm.away { background: #8a1129; }
.ring { position: relative; width: 94px; height: 94px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { stroke: rgba(255,255,255,.08); }
.ring .fg { stroke: var(--gold); transition: stroke-dashoffset .3s linear; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; }
.ring .num span { max-width: 62px; line-height: 1.15; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; text-align: center; }
.g-stage { font-size: 10px; color: var(--muted); text-align: center; margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }
.g-call { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.g-call button { background: var(--bg2); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.g-call button:hover { border-color: var(--gold); }
.g-call button.picked { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.g-res { border-radius: 10px; }
.g-verdict { font-family: var(--cond); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.g-verdict.right { color: var(--win); } .g-verdict.wrong { color: var(--live); } .g-verdict.none { color: var(--muted); }
.g-verdict .lead { font-size: 16px; color: var(--text); background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 5px; }
.g-line { font-size: 13px; margin-top: 6px; }
.g-play { color: var(--muted); font-size: 12px; margin-top: 4px; }
.calls { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calls .c { background: var(--bg2); border-radius: 8px; padding: 6px 8px; }
.calls .c b { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1; display: block; }
.calls .c span { font-size: 10.5px; color: var(--muted); display: block; line-height: 1.25; margin-top: 2px; }
.calls .ho { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }

/* ---------- chart ---------- */
.wp-card { display: flex; flex-direction: column; }
.wp-wrap { position: relative; height: 200px; flex: 1; min-height: 180px; }
#wp { width: 100%; height: 100%; display: block; cursor: crosshair; }
.wp-tip { position: absolute; pointer-events: none; background: rgba(7,12,22,.95); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; font-size: 12px; display: none; white-space: nowrap; }
.wp-legend { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.buf { background: var(--buf); } .dot.ne { background: var(--ne); } .dot.to { background: var(--gold); }
.tri { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #c9b3ff; margin-right: 5px; }

/* ---------- room: meter + next leg ---------- */
.meter { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; align-items: center; }
.gauge { position: relative; width: 124px; height: 78px; }
.gauge svg { width: 100%; height: 100%; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; }
.gauge .gl { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.m-stats { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 6px 10px; }
.m-stat .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.m-stat .v { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-stat .s { font-size: 10.5px; color: var(--dim); }
.m-why { grid-column: 1 / -1; font-size: 10.5px; color: var(--dim); margin: 2px 0 0; }
.nextleg { margin-top: 10px; background: linear-gradient(135deg, rgba(255,210,63,.1), rgba(255,210,63,.02)); border: 1px solid rgba(255,210,63,.35); border-radius: 10px; padding: 8px 10px; }
.nl-head { display: flex; justify-content: space-between; font-family: var(--cond); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; color: var(--gold); }
.nl-head span:last-child { font-family: var(--ui); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.nl-main { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.nl-name { font-family: var(--cond); font-weight: 700; font-size: 20px; line-height: 1.05; }
.nl-sub { font-size: 11.5px; color: var(--muted); }
.nl-sub b { color: var(--text); }
.nl-price { margin-left: auto; text-align: right; flex: none; }
.nl-price b { font-family: var(--cond); font-weight: 800; font-size: 26px; color: var(--gold); display: block; line-height: 1; }
.nl-price span { font-size: 10px; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--cond); font-weight: 800; font-size: 13px; flex: none; position: relative; color: #fff; }
.av.home { background: linear-gradient(135deg, #0a3fa6, #2f6fff); } .av.away { background: linear-gradient(135deg, #5e0d1f, #e0234a); }
.av .num { position: absolute; right: -4px; bottom: -3px; background: #0b1220; border: 1px solid var(--line2); font-size: 9px; padding: 0 3px; border-radius: 6px; font-family: var(--ui); }

/* ---------- slips ---------- */
.slips-card { padding: 10px; }
.slips { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 2px; }
.slip { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 9px 11px; transition: border-color .4s, box-shadow .4s; }
.slip.oneaway { border-color: var(--live); box-shadow: 0 0 0 1px rgba(255,176,32,.3), 0 0 22px rgba(255,176,32,.1); }
.slip.cashed { border-color: var(--win); box-shadow: 0 0 0 1px rgba(34,211,122,.3), 0 0 22px rgba(34,211,122,.12); }
.slip.dead { opacity: .55; }
.slip.flash { animation: slipflash 1.8s ease; }
.slip-h { display: flex; gap: 8px; align-items: flex-start; }
.slip-t { font-family: var(--cond); font-weight: 700; font-size: 17px; line-height: 1.1; }
.slip-who { font-size: 11px; color: var(--muted); }
.slip-chance { margin-left: auto; text-align: right; flex: none; }
.slip-chance b { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.slip-chance span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.slip-mid { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.slip-money { font-size: 11px; color: var(--muted); flex: 1; min-width: 0; }
.slip-money b { color: var(--text); font-weight: 600; }
.s-spark { width: 110px; height: 26px; flex: none; }
.badge { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .6px; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; display: inline-block; white-space: nowrap; }
.badge.live { background: rgba(255,176,32,.15); color: var(--live); }
.badge.win { background: rgba(34,211,122,.18); color: var(--win); }
.badge.loss { background: rgba(255,77,94,.15); color: var(--loss); }
.legs { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
.leg { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; border-radius: 6px; }
.leg-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.leg.hit .leg-i { background: var(--win); color: #04130b; }
.leg.lost .leg-i { background: var(--loss); color: #200; }
.leg.live .leg-i { border: 2px solid var(--live); }
.leg.live .leg-i::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.leg-l { min-width: 0; }
.leg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.leg.lost .leg-name { text-decoration: line-through; color: var(--muted); }
.leg-prog { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.leg-prog i { display: block; height: 100%; background: var(--live); transition: width .6s; }
.leg.hit .leg-prog i { background: var(--win); } .leg.lost .leg-prog i { background: var(--loss); }
.leg-need { font-size: 11px; color: var(--muted); margin-top: 2px; }
.leg-need .sees { color: var(--gold); font-weight: 600; }
.leg-px { text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); white-space: nowrap; line-height: 1.15; }
.leg-px b { color: var(--text); font-weight: 700; font-size: 14px; display: block; }
.leg.justhit { animation: legflash 1.8s ease; }
.leg.justlost { animation: legflashred 1.8s ease; }

/* ---------- chat ---------- */
.chat-card { display: flex; flex-direction: column; }
.chat { list-style: none; margin: 0; padding: 0 2px 0 0; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.chat li { line-height: 1.35; word-wrap: break-word; }
.chat li b { font-weight: 700; }
.chat li.sys { background: rgba(255,255,255,.04); border-left: 3px solid var(--line2); padding: 3px 7px; border-radius: 4px; font-size: 12px; color: #c9d6ee; }
.chat li.sys.win { border-left-color: var(--win); } .chat li.sys.loss { border-left-color: var(--loss); } .chat li.sys.mkt { border-left-color: var(--gold); }
.chat li.me b { color: var(--gold); }
.emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 8px; }
.emojis button { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; font-size: 16px; }
.emojis button:hover { border-color: var(--twitch); }
.chat-in { display: flex; gap: 6px; margin-top: 6px; }
.chat-in input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.chat-in button { background: var(--twitch); border: 0; border-radius: 8px; padding: 0 14px; font-weight: 700; color: #fff; }

/* ---------- play by play + drives ---------- */
.pbp { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.pbp-drive { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 8px 2px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.pbp-drive .t { color: #fff; padding: 0 6px; border-radius: 3px; }
.pbp-drive .t.home { background: var(--buf-deep); } .pbp-drive .t.away { background: #8a1129; }
.pl { padding: 6px 4px 6px 8px; border-left: 3px solid transparent; border-radius: 4px; font-size: 12.5px; }
.pl.new { animation: plnew 2s ease; }
.pl.score-home { border-left-color: var(--buf); background: rgba(47,111,255,.08); }
.pl.score-away { border-left-color: var(--ne); background: rgba(224,35,74,.08); }
.pl.to { border-left-color: var(--gold); background: rgba(255,210,63,.06); }
.pl-h { display: flex; gap: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.pl-h .pd { color: var(--text); font-weight: 600; }
.pl-d { margin-top: 2px; }
.pl-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.chip.k { color: var(--text); } .chip.k .up, .chip.k .down { font-weight: 700; }
.chip.leg { border-color: rgba(255,176,32,.5); color: var(--live); }
.chip.leghit { border-color: rgba(34,211,122,.6); color: var(--win); }
.chip.legdead { border-color: rgba(255,77,94,.6); color: var(--loss); }
.chip.call-ok { border-color: rgba(34,211,122,.6); color: var(--win); }
.chip.call-miss { border-color: rgba(255,176,32,.5); color: var(--live); }
.drives { display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.drv { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 2px 10px; align-items: center; font-size: 12px; }
.drv-q { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.drv-strip { position: relative; height: 16px; background: repeating-linear-gradient(90deg, #12301d 0 10%, #153722 10% 20%); border-radius: 4px; overflow: hidden; }
.drv-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.drv-bar.home { background: linear-gradient(90deg, #1a4fd0, #3f7dff); } .drv-bar.away { background: linear-gradient(270deg, #a3152f, #e0234a); }
.drv-bar.live { animation: pulseo 1.4s infinite; }
.drv-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.3); }
.drv-r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.drv-r b { color: var(--text); }
.res-TD { color: var(--win); } .res-FG { color: var(--gold); } .res-TO { color: var(--loss); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 116px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: #0a101c; backdrop-filter: blur(6px); border: 1px solid var(--line2); border-left: 5px solid var(--gold); border-radius: 10px; padding: 9px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.55); animation: toastin .35s ease; }
.toast.win { border-left-color: var(--win); } .toast.loss { border-left-color: var(--loss); }
.toast.out { animation: toastout .4s ease forwards; }
.toast .tt { font-family: var(--cond); font-weight: 800; font-size: 19px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.1; }
.toast .ts { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------- replay bar ---------- */
.replay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(5,9,16,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 16px 9px; }
.rp-row { max-width: 1408px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.rp-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: #111; font-size: 14px; font-weight: 900; flex: none; }
.rp-speed { flex: none; }
.rp-time { flex: none; min-width: 96px; font-family: var(--cond); font-weight: 700; font-size: 19px; line-height: 1.05; }
.rp-wall { font-family: var(--ui); font-weight: 500; font-size: 11px; color: var(--muted); }
.rp-scrub { position: relative; flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; }
#scrub { width: 100%; accent-color: var(--gold); position: relative; z-index: 2; margin: 0; }
.scrub-marks { position: absolute; left: 8px; right: 8px; top: 0; bottom: 0; pointer-events: none; }
.scrub-marks i { position: absolute; top: 2px; width: 3px; height: 8px; border-radius: 1px; transform: translateX(-1px); }
.scrub-marks i.home { background: var(--buf); } .scrub-marks i.away { background: var(--ne); } .scrub-marks i.TO { background: var(--gold); top: 20px; }
.rp-delay { flex: none; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.rp-delay select { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; font-size: 12px; }
.rp-jumps { max-width: 1408px; margin: 6px auto 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rp-jumps button { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rp-jumps button:hover { color: #fff; border-color: var(--gold); }
.rp-jumps button.def { color: var(--gold); border-color: rgba(255,210,63,.5); }

/* ---------- live ---------- */
.live-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(5,9,16,.96); border-top: 1px solid var(--line); padding: 10px 16px; }
.live-bar[hidden] { display: none; }
.lb-row { max-width: 1408px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.lb-dot.ok { background: #e91916; box-shadow: 0 0 10px #e91916; animation: pulse 1.6s infinite; }
.lb-dot.warn { background: var(--live); }
.lb-status { font-size: 13px; flex: 1; min-width: 200px; }
.lb-btn { background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 12px; font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; padding: 14px 4px; text-align: center; }
.empty b { color: var(--text); display: block; font-size: 14px; margin-bottom: 2px; }
.dlg-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.dlg-back[hidden] { display: none; }
.dlg { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 18px; width: min(520px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dlg h2 { margin: 0; font-family: var(--cond); font-size: 24px; text-transform: uppercase; }
.dlg-p { margin: 0; color: var(--muted); font-size: 13px; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.dlg select, .dlg input { background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--text); }
.dlg-hint { font-size: 12px; color: var(--live); min-height: 16px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; }
.dlg-btns button { border-radius: 8px; padding: 8px 16px; font-weight: 700; border: 1px solid var(--line2); background: var(--bg2); }
.dlg-btns .go { background: var(--gold); color: #111; border-color: var(--gold); }
code { font-size: 12px; background: var(--bg2); padding: 0 4px; border-radius: 4px; }

.notes { color: var(--dim); font-size: 12px; margin: 16px 0 0; max-width: 1200px; }
.notes b { color: var(--muted); }

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes pulseo { 0%,100% { opacity: 1 } 50% { opacity: .6 } }
@keyframes bump { 0% { transform: scale(1) } 30% { transform: scale(1.35); color: var(--gold) } 100% { transform: scale(1) } }
@keyframes flashword { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.6) } 12% { opacity: 1; transform: translate(-50%,-50%) scale(1.06) } 20% { transform: translate(-50%,-50%) scale(1) } 80% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.02) } }
@keyframes legflash { 0% { background: rgba(34,211,122,.45) } 100% { background: transparent } }
@keyframes legflashred { 0% { background: rgba(255,77,94,.4) } 100% { background: transparent } }
@keyframes slipflash { 0% { box-shadow: 0 0 0 3px var(--win), 0 0 40px rgba(34,211,122,.5) } 100% { } }
@keyframes plnew { 0% { background: rgba(255,210,63,.18) } 100% { } }
@keyframes shake { 0%,100% { transform: none } 20% { transform: translateX(-4px) rotate(-1deg) } 40% { transform: translateX(4px) rotate(1deg) } 60% { transform: translateX(-3px) } 80% { transform: translateX(2px) } }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0 } 15% { opacity: 1 } 100% { transform: translateY(-140%) rotate(var(--rot, 10deg)); opacity: 0 } }
@keyframes capin { 0% { opacity: 0; transform: translateX(-50%) scale(.7) } 10% { opacity: 1; transform: translateX(-50%) scale(1.05) } 85% { opacity: 1 } 100% { opacity: 0 } }
@keyframes toastin { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }
@keyframes toastout { to { opacity: 0; transform: translateX(30px) } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .room-card { grid-column: 1 / -1; }
  .slips { max-height: 560px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 136px; font-size: 13px; }
  #app { padding: 0 16px; }
  .topbar { gap: 6px 10px; padding: 8px 0; }
  .brand { font-size: 20px; }
  .matchup { font-size: 11px; order: 4; width: 100%; }
  .mode { order: 5; width: 100%; margin-left: 0; }
  .mode button { flex: 1; padding: 5px 4px; font-size: 11px; }
  .viewers { margin-left: auto; }
  .scorebug { grid-template-columns: 1fr auto 1fr; position: sticky; top: 0; z-index: 40; border-radius: 10px; }
  .sb-team { padding: 5px 8px; gap: 6px; }
  .sb-logo { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
  .sb-name { display: none; }
  .sb-score { font-size: 32px; min-width: 34px; }
  .sb-tos i { width: 8px; height: 3px; }
  .sb-mid { min-width: 0; padding: 4px 8px; }
  .sb-period { font-size: 16px; }
  .sb-dd { font-size: 12px; }
  .sb-win { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); padding: 3px 10px; min-width: 0; }
  .sb-win-px { font-size: 22px; }
  .grid { margin-top: 10px; gap: 12px; }
  .col-main, .col-side { gap: 12px; }
  .grid { display: flex; flex-direction: column; }
  .col-main, .col-side, .duo { display: contents; }
  .stage { order: 1; } .guess-card { order: 2; } .vote-card { order: 2; } .sweat-card { order: 2; } .room-card { order: 3; } .slips-card { order: 4; } .chat-card { order: 5; }
  .wp-card { order: 6; } .pbp-card { order: 7; } .drive-card { order: 8; }
  .card { padding: 10px; border-radius: 12px; }
  .stage { padding: 5px; }
  .field-wrap { aspect-ratio: 1200 / 560; }
  .lastplay { font-size: 12px; }
  .mk-banner { top: 6px; }
  .mk-banner { width: calc(100% - 16px); }
  .mk-banner .mb { padding: 3px 8px; gap: 6px; }
  .mb-main { min-width: 0; }
  .mb-main { font-size: 15px; }
  .mb-sub { display: none; }
  .mb-tag { font-size: 11px; }
  .pip { position: fixed; z-index: 45; width: 128px; border-width: 1.5px; }
  .pip[data-size="m"] { width: 210px; } .pip[data-size="l"] { width: calc(100vw - 32px); }
  .pip.tl, .pip.tr { top: 104px; bottom: auto; } .pip.bl, .pip.br { bottom: 132px; top: auto; }
  .pip.tl, .pip.bl { left: 16px; right: auto; } .pip.tr, .pip.br { right: 16px; left: auto; }
  .pip-tag { display: none; }
  .pip-name { font-size: 9px; } .pip-name em { display: none; }
  .pip-react { font-size: 11px; bottom: 20px; left: 4px; right: 4px; padding: 1px 5px; }
  .pip-react small { display: none; }
  .pip-btns button { width: 20px; height: 20px; font-size: 11px; }
  .g-head { font-size: 24px; }
  .g-live { grid-template-columns: minmax(0, 1fr) 76px; }
  .ring { width: 76px; height: 76px; } .ring .num b { font-size: 24px; }
  .g-rows { grid-template-columns: minmax(0, 1fr) 60px 32px; font-size: 12px; }
  .calls .c b { font-size: 18px; }
  .wp-wrap { height: 160px; min-height: 160px; }
  .meter { grid-template-columns: 104px minmax(0, 1fr); }
  .gauge { width: 104px; height: 66px; } .gauge .gv { font-size: 22px; bottom: 12px; }
  .m-stat .v { font-size: 18px; }
  .slips { max-height: none; overflow: visible; }
  .s-spark { width: 80px; }
  .chat { height: 240px; }
  .pbp, .drives { max-height: 360px; }
  .rp-row { gap: 8px; flex-wrap: wrap; }
  .rp-play { width: 36px; height: 36px; }
  .rp-speed button { padding: 4px 6px; font-size: 11px; }
  .rp-time { min-width: 0; font-size: 15px; }
  .rp-wall { display: none; }
  .rp-delay > span { display: none; }
  .rp-scrub { order: 5; flex-basis: 100%; height: 24px; }
  .rp-delay { margin-left: auto; }
  .rp-jumps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rp-jumps::-webkit-scrollbar { display: none; }
  .replay { padding: 6px 12px 8px; }
  .toasts { bottom: 136px; right: 16px; left: 16px; width: auto; gap: 6px; }
  .toast { padding: 6px 10px; } .toast .tt { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- vote: the next parlay ---------- */
.vote-card { border-color: rgba(255,210,63,.45); box-shadow: 0 0 0 1px rgba(255,210,63,.12) inset; }
.vt-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.vt-after { font-size: 12px; color: var(--muted); line-height: 1.35; }
.vt-clock { text-align: right; white-space: nowrap; }
.vt-clock b { display: block; font-family: var(--cond); font-size: 24px; color: var(--gold); line-height: 1; }
.vt-clock span { font-size: 10.5px; color: var(--muted); }
.vt-cards { display: grid; gap: 8px; }
.vt-card { background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; }
.vt-card.mine { border-color: var(--gold); }
.vt-t { font-family: var(--cond); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .3px; }
.vt-t small { font-family: Inter, sans-serif; font-weight: 500; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.vt-card ul { list-style: none; margin: 4px 0; padding: 0; font-size: 12.5px; }
.vt-card li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.vt-card li b { color: var(--text); font-variant-numeric: tabular-nums; }
.vt-px { font-size: 12px; color: var(--muted); }
.vt-px b { color: var(--text); }
.vt-bar { position: relative; height: 18px; background: rgba(255,255,255,.06); border-radius: 6px; margin: 6px 0; overflow: hidden; }
.vt-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255,210,63,.55), rgba(255,210,63,.25)); transition: width .4s; }
.vt-bar span { position: relative; font-size: 11px; font-weight: 600; padding-left: 7px; line-height: 18px; }
.vt-btn { width: 100%; border: 1px solid var(--gold); background: none; color: var(--gold); border-radius: 8px; padding: 5px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.vt-card.mine .vt-btn { background: var(--gold); color: #111; }
.vt-sum { font-size: 12px; color: var(--muted); margin: 10px 0 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.vt-sum b { color: var(--text); }
.vt-sum b.up { color: var(--win); } .vt-sum b.down { color: var(--loss); }
.vp { border-left: 3px solid var(--line2); padding: 4px 0 4px 8px; margin-bottom: 6px; }
.vp.cashed { border-left-color: var(--win); } .vp.dead { border-left-color: var(--loss); opacity: .7; } .vp.alive { border-left-color: var(--gold); }
.vp-h { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.vp-h span { color: var(--muted); font-size: 11px; }
.vp-h em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 12px; }
.vp.cashed .vp-h em { color: var(--win); } .vp.dead .vp-h em { color: var(--loss); }
.vp-legs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.vp-legs span { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--muted); }
.vp-legs span.hit { background: rgba(34,211,122,.16); color: var(--win); } .vp-legs span.lost { background: rgba(255,77,94,.14); color: var(--loss); }

/* ---------- potential results ---------- */
.duo-sweat { align-items: start; }
.sweat-card { border-color: rgba(34,211,122,.35); }
.sc { --beat: 1.5s; position: relative; background: linear-gradient(180deg, #13203a, #0e1626); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; overflow: hidden; }
.sc.hot { border-color: var(--gold); animation: scglow var(--beat) ease-in-out infinite; }
.sc.close { border-color: rgba(255,210,63,.6); }
.sc.cold { border-color: var(--loss); }
.sc.win { border-color: var(--win); background: linear-gradient(180deg, #0f3a28, #0e1626); animation: scwin 1.2s ease-out 1; }
.sc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-tag { font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; background: var(--line2); color: var(--text); padding: 2px 8px; border-radius: 5px; }
.sc.hot .sc-tag { background: var(--gold); color: #111; animation: sctag var(--beat) ease-in-out infinite; }
.sc.close .sc-tag { background: rgba(255,210,63,.2); color: var(--gold); }
.sc.cold .sc-tag { background: var(--loss); color: #fff; }
.sc.win .sc-tag { background: var(--win); color: #062; font-size: 16px; }
.sc-who { font-size: 11px; color: var(--muted); } .sc-who b { color: var(--gold); }
.sc-name { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.1; margin-top: 6px; }
.sc-name small { font-family: Inter, sans-serif; font-size: 12px; color: var(--muted); font-weight: 600; }
.sc-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sc.hot .sc-sub { color: #ffe9a3; }
.sc-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0; }
.sc-big b { display: block; font-family: var(--cond); font-weight: 800; font-size: 46px; line-height: .95; font-variant-numeric: tabular-nums; }
.sc.hot .sc-big b { color: var(--gold); animation: scpulse var(--beat) ease-in-out infinite; }
.sc.win .sc-big b { color: var(--win); }
.sc-big span { font-size: 11px; color: var(--muted); display: block; }
.sc-big em { font-style: normal; font-weight: 700; font-size: 12px; }
.sc-chart { position: relative; min-width: 0; }
.sc-chart svg { width: 100%; height: 56px; display: block; }
.sc-chart > span { font-size: 10.5px; color: var(--muted); }
.sc-ekg { position: absolute; right: 0; top: -4px; width: 64px; height: 18px; opacity: .9; }
.sc-ekg svg { width: 100%; height: 100%; }
.sc-ekg path { fill: none; stroke: var(--win); stroke-width: 2; stroke-dasharray: 140; stroke-dashoffset: 140; animation: ekg var(--beat) linear infinite; vector-effect: non-scaling-stroke; }
.sc.hot .sc-ekg path, .sc.close .sc-ekg path { stroke: var(--gold); } .sc.cold .sc-ekg path { stroke: var(--loss); }
.sc-legs { display: grid; gap: 5px; }
.sl { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; }
.sl-n { font-size: 13px; font-weight: 600; }
.sl-p { font-size: 11px; color: var(--muted); }
.sl-r { text-align: right; white-space: nowrap; }
.sl-r b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.sl-r span { font-size: 10px; color: var(--muted); }
.sl.hit { background: rgba(34,211,122,.1); } .sl.hit .sl-n { color: var(--win); }
.sl.lost { opacity: .55; } .sl.lost .sl-n { text-decoration: line-through; }
.sl.pend { border-color: var(--gold); background: rgba(255,210,63,.1); animation: scpulse var(--beat) ease-in-out infinite; }
.sl.pend .sl-r b, .sl.pend .sl-r span { color: var(--gold); }
.sl.pbust { border-color: var(--loss); background: rgba(255,77,94,.08); }
.sc-confirm { position: relative; margin-top: 8px; background: rgba(255,255,255,.06); border-radius: 7px; overflow: hidden; font-size: 12px; padding: 5px 8px; }
.sc-confirm i { position: absolute; inset: 0 auto 0 0; background: rgba(255,210,63,.18); transition: width 1s linear; }
.sc-confirm span { position: relative; } .sc-confirm b { color: var(--gold); }
.sc-foot { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.pr-h { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 12px 0 5px; font-weight: 700; }
.pr { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-top: 1px solid var(--line); }
.pr.pend { background: rgba(255,210,63,.07); }
.pr-n { font-size: 13px; font-weight: 600; } .pr-n small { color: var(--muted); font-weight: 500; } .pr-n small.you { color: var(--gold); }
.pr-dots { display: flex; gap: 4px; align-items: center; margin-top: 3px; }
.pr-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }
.pr-dots i.hit { background: var(--win); border-color: var(--win); } .pr-dots i.lost { background: var(--loss); border-color: var(--loss); }
.pr-dots i.pend { background: var(--gold); border-color: var(--gold); animation: scpulse .6s ease-in-out infinite; } .pr-dots i.pbust { border-color: var(--loss); }
.pr-dots span { font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.pr-r { text-align: right; white-space: nowrap; }
.pr-r b { font-size: 16px; font-variant-numeric: tabular-nums; } .pr-r em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pr-r span { display: block; font-size: 10.5px; color: var(--muted); }
.pr-more { font-size: 11px; color: var(--muted); padding: 4px 2px; }
@keyframes scglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } 50% { box-shadow: 0 0 22px 2px rgba(255,210,63,.35); } }
@keyframes scpulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes sctag { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes scwin { from { box-shadow: 0 0 0 0 rgba(34,211,122,.8); } to { box-shadow: 0 0 0 18px rgba(34,211,122,0); } }
@keyframes ekg { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sc, .sc *, .pr-dots i { animation: none !important; } }

/* ---------- combo cards in Gambly's betslip look ---------- */
:root { --gb-green: #3ee08f; --gb-green2: #22b86b; --gb-tile: #1a2131; --kalshi: #28d07e; }
.gb { background: #121826; border: 1px solid #222b3d; border-radius: 14px; padding: 10px 12px; }
.gb-top { display: flex; gap: 9px; align-items: flex-start; }
.gb-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; color: #fff; }
.gb-av.vote { background: #1d2638; font-size: 16px; }
.gb-id { min-width: 0; flex: 1; }
.gb-tag { color: var(--gb-green); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.gb-who { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.gb-by { font-size: 11px; color: var(--muted); margin-top: 1px; }
.gb-head { display: flex; align-items: center; gap: 8px; margin: 9px 0 5px; }
.gb-head > b { font-size: 13px; letter-spacing: .4px; }
.gb-odds { margin-left: auto; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.kb { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--kalshi); color: #04140b; font-weight: 900; font-size: 11px; font-family: Inter, sans-serif; flex: none; }
.gb-legs { display: flex; flex-direction: column; }
.gl { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); border-radius: 8px; transition: background .4s; }
.gl:first-child { border-top: 0; }
.gl-1 { font-size: 13px; } .gl-1 b { font-weight: 700; }
.gl-2 { font-size: 11.5px; color: var(--muted); }
.gl-o { display: flex; align-items: center; gap: 6px; text-align: right; }
.gl-o b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-o small { display: block; font-size: 10px; color: var(--muted); }
.gl-o b + small { margin-top: -2px; }
.gl-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); margin-top: 4px; overflow: hidden; }
.gl-bar i { display: block; height: 100%; background: var(--gb-green); border-radius: 2px; }
.gl-chip { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-top: 3px; }
.gl-chip.pend { background: var(--gold); color: #111; animation: scpulse var(--beat, .6s) ease-in-out infinite; }
.gl-chip.bust { background: var(--loss); color: #fff; }
.gl.hit { background: rgba(62,224,143,.07); } .gl.hit .gl-1 b { color: var(--gb-green); }
.gl.lost { opacity: .5; } .gl.lost .gl-1 { text-decoration: line-through; }
.gl.pend { background: rgba(255,210,63,.09); box-shadow: inset 3px 0 0 var(--gold); padding-left: 6px; }
.gl.pbust { background: rgba(255,77,94,.07); box-shadow: inset 3px 0 0 var(--loss); padding-left: 6px; }
.gl.justhit { animation: glhit 1.6s ease; } .gl.justlost { animation: gllost 1.6s ease; }
@keyframes glhit { 0% { background: rgba(62,224,143,.45); } 100% { background: rgba(62,224,143,.07); } }
@keyframes gllost { 0% { background: rgba(255,77,94,.45); } 100% { background: transparent; } }
.hs { width: 34px; height: 34px; border-radius: 50%; position: relative; display: grid; place-items: center; overflow: visible; background: #2a3550; flex: none; }
.hs.home { background: linear-gradient(135deg, #0a3fa6, #2f6fff); } .hs.away { background: linear-gradient(135deg, #5e0d1f, #e0234a); }
.hs.logo { background: #fff; }
.hs i { font-style: normal; font-family: var(--cond); font-weight: 800; font-size: 12px; color: #fff; }
.hs.logo i { color: #111; font-size: 10px; }
.hs img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 15%; background: #2a3550; }
.hs.logo img { object-fit: contain; padding: 3px; background: #fff; }
.hs u { position: absolute; right: -4px; bottom: -3px; text-decoration: none; background: #0b1220; border: 1px solid var(--line2); font-size: 9px; padding: 0 3px; border-radius: 6px; color: var(--text); font-weight: 700; }
.hstack { display: flex; flex: none; align-self: center; }
.hstack .hs { width: 26px; height: 26px; margin-left: -8px; box-shadow: 0 0 0 2px var(--card); } .hstack .hs:first-child { margin-left: 0; }
.hstack .hs u { display: none; } .hstack .hs i { font-size: 9px; }
.gb-cta { display: block; width: 100%; border: 0; border-radius: 10px; padding: 9px 8px 7px; margin-top: 4px; background: linear-gradient(180deg, var(--gb-green), var(--gb-green2)); color: #05170d; font-weight: 800; font-size: 13.5px; letter-spacing: .4px; cursor: pointer; }
.gb-cta small { display: block; font-weight: 600; font-size: 11px; letter-spacing: 0; opacity: .85; }
.gb-cta.on { background: #1b3a2a; color: var(--gb-green); box-shadow: inset 0 0 0 1.5px var(--gb-green); }
.vt-card.gb { padding: 10px 12px; } .vt-card.gb.mine { border-color: var(--gb-green); }
.gb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin: 8px 0; }
.gb-tile { background: var(--gb-tile); border: 1px solid transparent; border-radius: 9px; padding: 6px 4px; display: grid; justify-items: center; gap: 1px; text-align: center; }
.gb-tile.on { border-color: var(--gb-green); }
.gb-tile span { font-size: 10.5px; color: var(--muted); } .gb-tile b { font-size: 14px; font-variant-numeric: tabular-nums; } .gb-tile small { font-size: 9.5px; color: var(--muted); }
.gb-tabs { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.gb-tabs .gb-head { flex: 1; margin: 4px 0; }
.gb-tabs .seg button.on { color: var(--gb-green); }
.gb-game { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; margin: 4px 0 2px; }
.slips .gb.slip { padding: 10px 12px; }
.slip .gb-top .slip-chance { margin-left: auto; }
.pr .hstack { margin-right: 8px; }
.pr { align-items: center; }
.pr-l { flex: 1; min-width: 0; }
.gb-tile .kb { color: #04140b; font-size: 11px; }

/* ================= calm pass: gamecast first, one accent per meaning =================
 * green = hit / yours · gold = Kalshi sees it (not confirmed) · red = miss · team colors only on the field + scorebug */
:root { --card: #0f1522; --card2: #141b2a; --line: #1c2536; --line2: #263045; --kalshi: #3a4560; }
body { background: #080c14; }
.grid { grid-template-columns: minmax(0, 1fr) 470px; }
.card { background: var(--card); border-color: var(--line); }
/* gamecast panel under the field */
.cast { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.cast-l, .cast-r { min-width: 0; }
.cast-r { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); padding-left: 14px; }
.cast .pbp, .cast .drives { max-height: 430px; overflow-y: auto; }
.cast .guess-card .card-h h2, .cast .wp-card .card-h h2 { font-size: 15px; }
.cast .wp-wrap { height: 170px; }
.cast .calls { margin-top: 8px; }
/* play-by-play chips: one quiet style, color only on the number */
.chip, .chip.k, .chip.legc, .chip.leghit, .chip.legdead, .chip.call-ok, .chip.call-miss { background: transparent; border: 1px solid var(--line2); color: var(--muted); }
.chip.leghit { color: var(--win); border-color: rgba(34,211,122,.4); }
.chip.legdead { color: var(--loss); border-color: rgba(255,77,94,.4); }
/* right rail cards: no colored frames */
.vote-card, .sweat-card { border-color: var(--line); box-shadow: none; }
.gb { background: var(--card2); border-color: var(--line); }
.gb-tag { color: var(--muted); }
.gb-av, .gb-av.vote { background: var(--line2) !important; color: var(--text); font-size: 13px; }
.kb { background: var(--kalshi); color: #dfe6f3; }
.gb-tile .kb { color: #dfe6f3; }
.gb-tile.on { border-color: var(--line2); background: #1b2436; }
.gb-cta { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.gb-cta:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.gb-cta.on { background: var(--gb-green); color: #05170d; box-shadow: none; }
.vt-card.gb.mine { border-color: var(--gb-green); }
.vt-bar i { background: #34405a; }
.vt-card.mine .vt-bar i { background: rgba(62,224,143,.45); }
.vt-clock b { color: var(--text); }
.gl-bar i { background: #6f86b3; }
.gl.hit .gl-bar i { background: var(--win); }
.gl.hit { background: transparent; }
.sc { background: var(--card2); border-color: var(--line); }
.sc.hot { animation: none; border-color: var(--gold); }
.sc.close { border-color: var(--line2); } .sc.close .sc-tag { background: var(--line2); color: var(--text); }
.sc.win { background: var(--card2); border-color: var(--win); }
.sc-tag { background: var(--line2); }
.sc .sc-sub, .sc.hot .sc-sub { color: var(--muted); }
.sc.hot .sc-big b { animation: none; }
.sc-ekg { display: none; }
.sc-confirm i { background: rgba(255,255,255,.08); }
.pr.pend { background: transparent; }
.pr-dots i.pend { animation: none; }
/* host window and chat: quieter */
.pip { border-color: var(--line2) !important; }
.chat li b { color: #9fb3d9 !important; }
.chat li.me b { color: var(--gb-green) !important; }
/* phone and narrow: field, results, vote, gamecast, chat */
@media (max-width: 1150px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .col-side .chat-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .col-main, .col-side { display: contents; }
  .cast { grid-template-columns: minmax(0, 1fr); }
  .cast-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .stage { order: 1; } .sweat-card { order: 2; } .vote-card { order: 3; } .cast { order: 4; } .chat-card { order: 5; }
}
[hidden] { display: none !important; }
/* compact vote cards so all three fit beside the gamecast */
.vote-card .vt-cards { gap: 6px; }
.vt-card.gb { padding: 8px 10px; }
.vt-card .gb-av, .vt-card .gb-tag { display: none; } .vt-card .gb-who { font-size: 14px; } .vt-card .gb-by { display: inline; margin-left: 6px; }
.vt-card .gb-head { margin: 0 0 2px; }
.vt-card .gl { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 3px 0; gap: 7px; border-top: 0; }
.vt-card .hs { width: 24px; height: 24px; } .vt-card .hs u { display: none; } .vt-card .hs i { font-size: 9px; }
.vt-card .gl-1 { font-size: 12.5px; } .vt-card .gl-2 { display: none; }
.vt-card .gl-o b { font-size: 12.5px; }
.vt-card .vt-bar { height: 14px; margin: 5px 0 4px; } .vt-card .vt-bar span { line-height: 14px; font-size: 10.5px; }
.vt-card .gb-cta { padding: 6px; font-size: 12.5px; letter-spacing: 0; font-weight: 700; }
.vote-card .vt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vote-card .vt-h { margin-bottom: 6px; }
.vt-card { display: flex; flex-direction: column; } .vt-card .gb-legs { flex: 1; }
.vt-card .vt-bar { height: 16px; } .vt-card .vt-bar span { line-height: 16px; }
@media (max-width: 1000px) { .vote-card .vt-cards { grid-template-columns: minmax(0, 1fr); } }
