/* lockerbook.app — dark stadium-night theme (D-038). System fonts only: no third-party requests. */
:root {
  --bg: #070d19;
  --bg-2: #0b1426;
  --surface: #0f1b31;
  --surface-2: #14233e;
  --line: #1f3050;
  --text: #e9eef7;
  --muted: #9aa9c3;
  --green: #22b36c;
  --green-ink: #03140b;
  --green-soft: rgba(34, 179, 108, .14);
  --gold: #f2c14e;
  --mp-red: #e3261c;
  --link: #5fd39a;
  --radius: 18px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--green-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(7, 13, 25, .82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta { color: var(--green-ink); background: var(--green); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { color: var(--green-ink); filter: brightness(1.08); }
.menu-toggle { display: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: 600 15px var(--body); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Sections */
section { padding-block: 88px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
section h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 19px; max-width: 42em; margin: 0 0 36px; }
.more { margin-top: 28px; }
.more a { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { padding-block: 72px 96px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 10%, rgba(34, 179, 108, .16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 6.25%, transparent 6.25% 12.5%),
    var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin: 0 0 20px; font-weight: 800; }
.hl { color: var(--green); }
.hero .lede { font-size: 20px; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.facts li::before { content: "●"; color: var(--green); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.hero-visual { justify-self: center; }

/* Sports grid */
.sports { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sport { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.sport-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sport h3 { margin: 0; font-size: 18px; }
.sport p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.s-available { border-color: rgba(34, 179, 108, .55); background: linear-gradient(180deg, rgba(34,179,108,.12), var(--surface) 70%); }
.s-soon { opacity: .72; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-available { background: var(--green); color: var(--green-ink); }
.chip-preview { background: rgba(242, 193, 78, .16); color: var(--gold); }
.chip-soon { background: var(--surface-2); color: var(--muted); }
.chip-mp { align-self: flex-start; margin-top: 4px; background: rgba(227, 38, 28, .14); color: #ff8a82; }

/* Tabs + showcase */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.tabs button { font: 600 15px var(--body); color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--green-ink); background: var(--green); border-color: var(--green); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.panel-visual { justify-self: center; }

/* Phone illustration */
.phone { width: 300px; max-width: 100%; aspect-ratio: 300 / 620; border-radius: 46px; padding: 12px; background: #02060d;
  box-shadow: 0 0 0 1.5px #26344f, 0 40px 90px rgba(0,0,0,.55), 0 0 120px rgba(34,179,108,.12); }
.phone.real { padding: 10px; aspect-ratio: auto; }
.phone.real img { display: block; border-radius: 36px; }
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: #f2f2f7; color: #111; padding: 18px 12px 12px;
  font: 11px/1.35 var(--body); display: flex; flex-direction: column; gap: 7px; }
.m-title { text-align: center; font-weight: 700; font-size: 12px; padding-top: 10px; }
.m-board { background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: space-around; padding: 8px 6px; }
.m-board div { display: flex; flex-direction: column; align-items: center; }
.m-board strong { font-size: 34px; font-weight: 800; line-height: 1; font-family: var(--display); }
.m-board.small strong { font-size: 26px; }
.m-board small { font-size: 9px; color: #555; }
.m-board em { font-style: normal; color: #999; font-size: 22px; }
.m-clock { text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.m-label { font-weight: 700; font-size: 10px; color: #6b6b75; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.m-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.k { background: rgba(22, 142, 87, .12); color: #0d7a48; border-radius: 8px; padding: 7px 3px; text-align: center; font-weight: 600; font-size: 9.5px; }
.k-score { background: rgba(22, 142, 87, .24); color: #075a33; }
.k-opp { background: rgba(214, 48, 49, .12); color: #b3261e; }
.m-log, .m-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 12px; }
.m-log li, .m-list li { padding: 6px 9px; border-bottom: 1px solid #ececf1; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.m-log li:last-child, .m-list li:last-child { border-bottom: 0; }
.m-log time { color: #8a8a93; font-variant-numeric: tabular-nums; min-width: 34px; }
.m-list small { color: #777; width: 100%; }
.m-list.roster small { width: auto; margin-left: auto; }
.m-list .num { font-weight: 700; min-width: 26px; }
.m-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.m-table th, .m-table td { padding: 5px 6px; text-align: right; border-bottom: 1px solid #ececf1; }
.m-table th:nth-child(2), .m-table td:nth-child(2) { text-align: left; }
.m-table th { font-size: 9px; color: #6b6b75; }
.m-row { background: #fff; border-radius: 10px; padding: 9px 10px; color: #0d7a48; font-weight: 600; }
.m-accent { color: #0d7a48; }
.m-mp { background: #fff; border-radius: 12px; padding: 10px; border-left: 4px solid var(--mp-red); display: flex; flex-direction: column; gap: 3px; }
.m-mp small { color: #666; }
.m-mp-mark { height: 16px; width: auto; align-self: flex-start; }
.m-file { margin: 0; background: #1c1c1e; color: #d7f5e6; border-radius: 10px; padding: 8px; font: 9px/1.5 var(--mono); white-space: pre; overflow: hidden; }
.m-note { color: #666; font-size: 10px; }

/* MaxPreps section */
.band-mp { background:
  radial-gradient(700px 360px at 90% 20%, rgba(227, 38, 28, .12), transparent 65%), var(--bg-2); }
.mp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.mp-text { font-weight: 800; color: inherit; letter-spacing: -0.01em; }
.mp-inline { display: inline-block; vertical-align: -0.12em; height: .9em; }
img.mp-inline { height: .85em; }
.steps { margin: 0 0 22px; padding-left: 1.3em; display: grid; gap: 12px; }
.steps li::marker { color: var(--green); font-weight: 800; }
.mp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--mp-red); }
.mp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.mp-card-head img { height: 28px; width: auto; }
.mp-card-head .mp-text { font-size: 22px; text-transform: none; letter-spacing: -0.01em; }
.mp-card pre { margin: 0; background: #050a14; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: #bfeed6; font: 13px/1.6 var(--mono); overflow-x: auto; }
.mp-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Cards */
.cards { display: grid; gap: 16px; }
h2 + .cards, h2 + .faq { margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.pricing .card { display: flex; flex-direction: column; gap: 10px; }
.pricing .price { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.pricing .featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.pricing .chip { align-self: flex-start; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* CTA */
.cta { text-align: center; background:
  radial-gradient(600px 300px at 50% 0%, rgba(34, 179, 108, .2), transparent 70%), var(--bg); }
.cta .lede { margin-inline: auto; }

/* Documents (help, legal, support, press) */
.doc { padding-block: 56px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: #d3dbe8; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); color: var(--text); }
.doc td { color: #d3dbe8; }
.doc code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font: .9em var(--mono); }
.doc blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 12px 12px 0; }
.doc blockquote p { margin: 0; }
.contact { font-size: 21px; }
.toc { columns: 2 280px; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; }
.press-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.press-head img { border-radius: 26px; }
.press-head div { flex: 1 1 300px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 6px 0 12px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--green); }
.fineprint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 980px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .topbar { position: sticky; }
  .bar { position: relative; }
  .hero-grid, .panel, .mp-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards.three { grid-template-columns: 1fr; }
  section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .cards.four { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 270px; }
}

/* ------------------------------------------------------------------ */
/* Watch live (public fan view, /watch/)                               */
/* ------------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.watch { padding-block: 40px 88px; }
.watch h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 10px; }
.watch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.watch-head .lede { margin-bottom: 0; }
.watch-head > div { flex: 1 1 420px; }

/* Connection indicator */
.conn { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px 8px 13px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.conn[data-state="live"] { color: var(--text); border-color: rgba(34, 179, 108, .55); }
.conn[data-state="live"] .conn-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(34, 179, 108, .6); animation: conn-pulse 2s infinite; }
.conn[data-state="connecting"] .conn-dot, .conn[data-state="waiting"] .conn-dot { background: var(--gold); }
.conn[data-state="retry"] { color: #ffb3ad; border-color: rgba(227, 38, 28, .5); }
.conn[data-state="retry"] .conn-dot { background: var(--mp-red); }
.conn[data-state="final"] .conn-dot { background: var(--text); }
@keyframes conn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 179, 108, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 179, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 179, 108, 0); }
}
@media (prefers-reduced-motion: reduce) { .conn[data-state="live"] .conn-dot { animation: none; } }

/* Code entry */
.code-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.code-form input { flex: 1 1 260px; min-width: 0; background: var(--surface); color: var(--text); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px 18px; font: 700 22px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.code-form input::placeholder { color: #55648a; letter-spacing: .08em; }
.code-form input:focus { border-color: var(--green); }
.code-form .btn { flex: 0 0 auto; padding-inline: 28px; }
.code-help { margin: 0 0 30px; }
.code-help code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font: .9em var(--mono); }

/* Scoreboard */
.board { background: linear-gradient(180deg, var(--surface-2), var(--surface) 62%); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.board[data-status="final"] { background: var(--surface); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--green); color: var(--green-ink); }
.badge[data-status="final"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge[data-status="scheduled"] { background: rgba(242, 193, 78, .16); color: var(--gold); }
.board-period { color: var(--muted); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-align: right; }
.board-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.board-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.board-team { color: var(--muted); font-size: 15px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.board-score { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 15vw, 104px); line-height: .96;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.board-clock { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 5vw, 34px); font-variant-numeric: tabular-nums;
  color: var(--text); background: #050a14; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; letter-spacing: .02em; }
.board[data-status="final"] .board-clock { color: var(--muted); }
.board-updated { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

/* Score bug (D-055): broadcast-style strip, shown only when the coach turned the overlay on.
   Hard-coded black/white on purpose, like the app's ScoreboardBugView. */
.bug[hidden], .bug [hidden], .bug-stage[hidden] { display: none !important; }
.bug { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 18px; max-width: 100%;
  font-family: var(--display); color: #fff; }
.bug-row { display: flex; align-items: stretch; max-width: 100%; background: rgba(0, 0, 0, .86); border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.bug-team { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; min-width: 0; }
.bug-team-opp { border-left: 1px solid rgba(255, 255, 255, .3); }
.bug-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14em; }
.bug-score { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.bug-time { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px;
  padding: 4px 12px; background: #14804c; color: #fff; line-height: 1.15; }
.bug-period { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.bug-clock { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bug[data-status="final"] .bug-time { background: #3a4458; }
.bug-ticker { max-width: 100%; background: rgba(0, 0, 0, .72); border-radius: 5px; padding: 3px 9px; overflow: hidden; }
.bug-last { display: block; font-family: var(--body); font-size: 13px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.bug-ticker.bug-new .bug-last { animation: bug-slide .45s ease-out; }
@keyframes bug-slide { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bug-ticker.bug-new .bug-last { animation: none; } }
@media (max-width: 520px) {
  .bug-name { max-width: 7em; font-size: 13px; }
  .bug-team { padding: 6px 9px; gap: 7px; }
  .bug-score { font-size: 19px; }
}

/* Overlay mode (/watch/?g=CODE&overlay=1): a transparent Browser Source for OBS, vMix or Wirecast,
   laid out for 1920x1080. Only the bug's stage is drawn; everything else on the page is hidden. */
html.lb-overlay, html.lb-overlay body { background: transparent !important; }
html.lb-overlay body { overflow: hidden; }
html.lb-overlay body > :not(.bug-stage) { display: none !important; }
.bug-stage { position: fixed; left: 64px; bottom: 64px; max-width: calc(100vw - 128px); }
.bug-stage .bug { margin: 0; gap: 8px; }
.bug-stage .bug-team { padding: 12px 20px; gap: 16px; }
.bug-stage .bug-name { font-size: 26px; max-width: 16em; }
.bug-stage .bug-score { font-size: 40px; }
.bug-stage .bug-time { min-width: 120px; padding: 6px 18px; }
.bug-stage .bug-period { font-size: 18px; }
.bug-stage .bug-clock { font-size: 28px; }
.bug-stage .bug-ticker { padding: 6px 14px; border-radius: 6px; }
.bug-stage .bug-last { font-size: 22px; max-width: 60vw; }

/* D-056 — celebrations, Player of the Game, share + sound, final card, momentum + chart */
.board { position: relative; }
.potg { margin: 14px 0 0; text-align: center; color: var(--text); font-weight: 650; font-size: 15px; }
.potg b { color: var(--gold); font-family: var(--display); font-size: 18px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.potg-star { color: var(--gold); }
.celebrate { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  border-radius: inherit; }
.celebrate[hidden] { display: none; }
.celebrate-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 28px; border-radius: 16px;
  background: rgba(7, 13, 25, .88); box-shadow: 0 0 0 2px var(--green), 0 18px 60px rgba(0, 0, 0, .5); }
.celebrate[data-side="opponent"] .celebrate-card { box-shadow: 0 0 0 2px var(--line), 0 18px 60px rgba(0, 0, 0, .5); }
.celebrate-word { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 9vw, 76px); line-height: 1; letter-spacing: -0.02em;
  color: var(--green); text-shadow: 0 2px 24px rgba(34, 179, 108, .45); }
.celebrate[data-side="opponent"] .celebrate-word { color: var(--text); text-shadow: none; }
.celebrate-team { color: var(--muted); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.celebrate.go .celebrate-card { animation: cheer-pop 2.4s cubic-bezier(.2, .9, .3, 1.2) both; }
.celebrate-bits { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.celebrate-bits .bit { position: absolute; width: 9px; height: 14px; border-radius: 2px; background: var(--green); opacity: 0;
  animation: cheer-bit 1.3s ease-out var(--delay, 0ms) both; }
.celebrate-bits .bit-1 { background: var(--gold); }
.celebrate-bits .bit-2 { background: var(--text); width: 7px; height: 7px; border-radius: 50%; }
.celebrate[data-side="opponent"] .bit { background: var(--muted); }
@keyframes cheer-pop { 0% { transform: scale(.4); opacity: 0; } 14% { transform: scale(1.08); opacity: 1; }
  24% { transform: scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(.98); } }
@keyframes cheer-bit { 0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
/* Calm version for reduced motion: no burst, no movement, just the word, which fades out on its own. */
.celebrate.calm .celebrate-bits { display: none; }
.celebrate.calm.go .celebrate-card { animation: cheer-calm 3.2s linear both; }
@keyframes cheer-calm { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .celebrate.go .celebrate-card { animation: cheer-calm 3.2s linear both; }
  .celebrate-bits { display: none; }
}

.board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; }
.board-actions .btn { padding: 10px 18px; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.board-actions .btn-ghost { background: transparent; }
/* The site-wide section padding is for marketing pages; the watch page stacks its sections tight. */
.watch section.board-wrap, .watch section.momentum { padding-block: 0; }
.btn-ico { width: 18px; height: 18px; flex: 0 0 auto; }
#w-sound[aria-pressed="false"] .snd-waves { opacity: .25; }
#w-sound[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--link); }
.share-note { margin: 0; }
.share-fine { margin: 0 0 22px; }

.final-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 20px;
  margin: 8px 0 26px; border-top: 4px solid var(--green); }
.final-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.final-top h2 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.final-result { margin: 0; font-weight: 700; color: var(--text); }
.final-score { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; margin: 12px 0 16px; }
.final-team { color: var(--muted); font-weight: 650; overflow-wrap: anywhere; }
.final-num { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.final-dash { color: var(--line); font-size: 30px; font-weight: 800; }
.final-table-wrap { overflow-x: auto; margin: 0 0 6px; }
.final-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 15px; }
.final-table th, .final-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.final-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.final-table thead th:first-child { color: transparent; }
.final-table tbody th { text-align: left; font-weight: 650; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.final-table tr[data-side="us"] th { box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
.final-table td.total { font-weight: 800; color: var(--text); }
.final-table tbody tr:last-child th, .final-table tbody tr:last-child td { border-bottom: 0; }
.final-potg { text-align: left; margin: 12px 0 4px; }
.final-plays { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.final-plays li { display: grid; grid-template-columns: 116px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 8px 10px;
  border-radius: 10px; background: var(--bg-2); border-left: 3px solid var(--line); }
.final-plays li[data-side="us"] { border-left-color: var(--green); }
.final-running { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }

.momentum { margin: 0 0 26px; }
.momentum-lines { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.momentum-lines li { background: var(--green-soft); color: var(--text); border: 1px solid rgba(34, 179, 108, .35);
  border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: 15px; }
.flow { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; }
.flow svg { display: block; width: 100%; height: 150px; overflow: visible; }
.flow path { fill: none; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.flow .flow-us { stroke: var(--green); }
.flow .flow-them { stroke: #8fb4ff; stroke-dasharray: 7 5; }
.flow .flow-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow .flow-period { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.flow-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.flow-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: var(--text); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--green); }
.key-them i { border-top: 3px dashed #8fb4ff; }

/* Play-by-play */
.pbp-head { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 30px 0 10px; }
.pbp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.play { display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; gap: 6px 14px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.play[data-side="us"] { border-left-color: var(--green); }
.play[data-side="opponent"] { border-left-color: var(--mp-red); }
.play-when { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.play-text { color: var(--text); overflow-wrap: anywhere; }
.play-who { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.pbp-empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px;
  padding: 22px; text-align: center; margin: 0; }
.board-note { margin: 18px 0 0; }

/* Notices and empty states */
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.notice h2 { font-size: 22px; margin: 0 0 8px; }
.notice p { color: var(--muted); margin: 0 0 16px; max-width: 54em; }
.notice p:last-child { margin-bottom: 0; }
.notice-off { border-color: rgba(242, 193, 78, .4); background:
  linear-gradient(180deg, rgba(242, 193, 78, .07), var(--surface) 70%); }
.watch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.watch-steps .card { display: flex; flex-direction: column; gap: 6px; }
.watch-steps .step-n { font-family: var(--display); font-weight: 800; color: var(--green); font-size: 13px; letter-spacing: .12em; }

@media (max-width: 860px) {
  .watch-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .watch { padding-block: 28px 64px; }
  .board { padding: 16px; }
  .board-grid { gap: 4px; }
  .board-clock { font-size: 20px; padding: 8px 10px; }
  .board-team { font-size: 13px; }
  .play { grid-template-columns: 1fr; gap: 4px; }
  .play-who { justify-self: start; }
  .code-form .btn { flex: 1 1 100%; }
  .final-plays li { grid-template-columns: 1fr auto; }
  .final-plays .play-when { grid-column: 1 / -1; }
  .final-num { font-size: 38px; }
}

/* D-057 — win chance + season notes */
.insight { margin: 0 0 26px; }
.watch section.insight { padding-block: 0; }
.wp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 14px; }
.wp .pbp-head { margin-top: 0; }
.wp-line { margin: 0 0 10px; font-family: var(--display); font-weight: 750; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.wp-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #8fb4ff55; }
.wp-us { display: block; height: 100%; background: var(--green); border-radius: 999px 0 0 999px; transition: width .6s ease; }
.wp-names { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.wp-trail { display: block; width: 100%; height: 64px; margin-top: 10px; overflow: visible; }
.wp-trail .wp-path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wp-trail .wp-mid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.wp-foot { margin: 8px 0 0; font-size: 13px; }
.season-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.season-notes li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .wp-us { transition: none; } }

/* D-064 — turning points and "How it went"; D-065 — pre-game preview */
.wp-trail .wp-swing { stroke: var(--gold); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.swing-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.swing-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; font-size: 14px; }
.swing-list .swing-text { color: var(--text); overflow-wrap: anywhere; }
.swing-list .swing-change { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.swing-list .swing-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  color: #1b1403; font-weight: 800; font-size: 13px; flex: none; }
.hiw { margin: 16px 0 14px; }
.hiw-chart { display: block; width: 100%; height: auto; overflow: visible; }
.hiw-chart .hiw-path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; }
.hiw-chart .hiw-mid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 5; }
.hiw-chart .hiw-grid { stroke: var(--line); stroke-width: 1; }
.hiw-chart .hiw-period { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.hiw-chart .hiw-axis { fill: var(--muted); font-size: 19px; font-family: inherit; }
.hiw-chart .hiw-swing circle { fill: var(--gold); stroke: var(--surface); stroke-width: 2; }
.hiw-chart .hiw-swing text { fill: #1b1403; font-size: 14px; font-weight: 800; font-family: inherit; }
.preview { margin: 0 0 26px; }
.watch section.preview { padding-block: 0; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.countdown { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.preview-when { margin: 4px 0 0; color: var(--muted); }
.matchup { margin: 12px 0 0; font-weight: 700; font-size: 18px; color: var(--text); overflow-wrap: anywhere; }
.matchup .vs { color: var(--muted); font-weight: 600; margin: 0 4px; }
.pre-record { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.pre-label { color: var(--muted); font-size: 14px; }
.pre-num { font-size: 20px; font-variant-numeric: tabular-nums; }
.form-strip { display: inline-flex; gap: 4px; }
.form-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.form-chip[data-result="W"] { background: var(--green); color: #03140b; }
.form-chip[data-result="L"] { background: #8fb4ff55; color: var(--text); }
.form-chip[data-result="T"] { background: var(--line); color: var(--text); }
.pre-h2h, .preview .wp { margin-top: 16px; }
