/* Match console: stable scoreboard, focused pitch and compact play caller. */
#app { max-width: 1220px; margin-inline: auto; }
.screen { padding: 12px var(--gutter) 28px; }
.screen.boot { min-height: 560px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); text-align: center; }
.screen.error { max-width: 480px; margin-inline: auto; }
.screen.error h2 { font-size: 28px; color: var(--text); }
.screen.game { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "sb" "field" "panel"; padding-top: 6px; }
.sb { grid-area: sb; }
.field-host { grid-area: field; min-width: 0; }
.panel { grid-area: panel; min-width: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dock { display: flex; flex-direction: column; gap: 10px; }
body:has(#app .screen.game) .game-heading,
body:has(#app .screen.game) .game-lead,
body:has(#app .screen.game) .site-strip { display: none; }
.sb { position: relative; z-index: 15; overflow: hidden; border: 1px solid var(--sb-line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--sb-bg); color: var(--sb-text); }
.sb-row { display: grid; grid-template-columns: minmax(0,1fr) 94px minmax(0,1fr); min-height: 78px; }
.sb-team { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.sb-team.home { flex-direction: row-reverse; }
.sb-stripe { position: absolute; inset: 0 auto 0 0; width: 4px; }
.sb-team.home .sb-stripe { left: auto; right: 0; }
.sb-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sb-team.home .sb-id { align-items: flex-end; }
.sb-abbr { display: flex; align-items: center; gap: 7px; font: 750 31px/1 var(--font-display); letter-spacing: .01em; color: #fff; }
.sb-team.home .sb-abbr { flex-direction: row-reverse; }
.sb-score { margin-left: auto; font: 750 49px/.95 var(--font-display); letter-spacing: -.025em; color: #fff; }
.sb-team.home .sb-score { margin-left: 0; margin-right: auto; }
.sb-meta { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.sb-team.home .sb-meta { flex-direction: row-reverse; }
.you-badge { font-size: 14px; font-weight: 600; line-height: 1; color: var(--accent); }
.sb-pips { display: inline-flex; gap: 3px; }
.sb-pips i { width: 7px; height: 4px; border-radius: 1px; background: #3e5143; }
.sb-pips i.on { background: #eef5ed; }
.sb-poss { width: 9px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #40d98918; }
.sb-mid { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border-inline: 1px solid var(--sb-line); background: #ffffff03; }
.sb-q { font-size: 14px; color: var(--muted); line-height: 1.1; }
.sb-clock { font: 750 33px/1 var(--font-display); color: #fff; letter-spacing: .01em; }
.sb-clock[data-state="running"] { color: var(--accent); }
.sb-clock[data-state="runoff"] { color: var(--sb-warn); }
.sb-down { display: flex; justify-content: center; flex-wrap: wrap; padding: 7px 10px; border-top: 1px solid var(--sb-line); color: #b7cbbd; font-size: 14px; line-height: 1.4; background: #07130b40; }
.sb-down b { color: #fff; font-weight: 600; }
.field-wrap { position: relative; width: 100%; aspect-ratio: 1.27; overflow: hidden; border: 1px solid var(--sb-line); border-top: 0; border-radius: 0 0 10px 10px; background: #103d25; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.field { width: 100%; height: 100%; }
.apron { fill: #10351f; }
.stripe-a { fill: var(--turf-a); }
.stripe-b { fill: var(--turf-b); }
.lines line { stroke: #e5f0df; }
.lines .five { stroke-width: 1; opacity: .25; }
.lines .ten { stroke-width: 1.3; opacity: .5; }
.lines .goal { stroke-width: 2.8; opacity: .9; }
.lines .hash { stroke-width: 1; opacity: .35; }
.lines .boundary { fill: none; stroke: #f5f5e8; stroke-width: 2.2; opacity: .8; }
.yard-nums text { fill: #f0f4e5aa; font: 650 22px var(--font-display); }
.yard-nums .arrow { fill: #f0f4e580; }
.ez-text { font: 750 31px var(--font-display); letter-spacing: .06em; }
.midlogo { opacity: .12; }
.midlogo .ml-ring { fill: none; stroke: #fff; stroke-width: 2; }
.midlogo .ml-fill { fill: #fff; }
.midlogo .ml-text { fill: #fff; font: 650 23px var(--font-display); }
.posts line { stroke: #edcf78; stroke-width: 2.8; }
.posts circle { fill: #edcf78; }
.marks .los { stroke: var(--los); stroke-width: 1.8; }
.marks .ltg { stroke: var(--ltg); stroke-width: 1.8; stroke-dasharray: 6 3; }
.pl { cursor: pointer; outline: none; }
.pl .hit { fill: transparent; }
.pl .body { stroke-width: 1.2; stroke: #08180f; }
.pl.mine .body { stroke: #f0f7ec; }
.pl .num { font-family: var(--font); font-weight: 700; pointer-events: none; paint-order: stroke; stroke: #07130bc0; stroke-width: .7px; letter-spacing: -.035em; }
.pl .label-bg,.pl .label-leader { display: none; pointer-events: none; }
.pl.label-moved .label-bg,.pl.label-moved .label-leader { display: block; }
.pl .label-bg { stroke: #e7f1e7; stroke-width: .8px; vector-effect: non-scaling-stroke; }
.pl .label-leader { fill: none; stroke: #dce9de; stroke-width: .8px; vector-effect: non-scaling-stroke; }
.number-label .num,.number-label .label-bg { pointer-events: all; }
.pl[aria-pressed="true"] .body, .pl:focus-visible .body { stroke: var(--focus); stroke-width: 2.2; }
.pl.enter { animation: fade .22s; }
.pl.leave { opacity: 0; transition: opacity .2s; }
.ball .ball-body ellipse { fill: #a96638; stroke: #e1c7a0; stroke-width: .8; }
.ball .lace { stroke: #fff; stroke-width: .8; }
.ball-shadow { fill: #0008; }
.callouts { position: absolute; inset: 12px 10px auto; display: flex; align-items: center; flex-direction: column; gap: 5px; pointer-events: none; }
.callout { padding: 7px 13px; border: 1px solid #ffffff40; border-radius: 5px; background: #102018ed; color: #fff; font: 700 21px/1.1 var(--font-display); transition: opacity .2s; }
.callout.tone-good { background: #16492d; }
.callout.tone-bad { background: #672e30; }
.callout.out { opacity: 0; }
.legend { position: absolute; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; background: #0d2219e8; border-radius: 4px; color: #d7e7d9; font-size: 14px; pointer-events: none; }
.legend small { font-size: 14px; }
@media (max-width: 600px) { .legend { top: 9px; bottom: auto; } }
.lg-shape { width: 7px; height: 7px; border: 1px solid #e7f3e4; background: #8caa93; }
.lg-shape.off { border-radius: 50%; }
.lg-shape.def { border-radius: 1px; margin-left: 3px; }
.tap-hint { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; background: #0d2219e8; color: #d7e7d9; border-radius: 4px; opacity: 0; font-size: 14px; pointer-events: none; }
.is-playing .tap-hint { opacity: 1; }
.is-playing .legend { opacity: 0; }
.pcard { position: absolute; z-index: 5; width: min(250px,calc(100% - 16px)); padding: 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #111e16; box-shadow: 0 6px 20px #0005; }
.pcard-head { display: flex; gap: 10px; align-items: center; }
.pcard-head b { display: block; font-size: 15px; line-height: 1.3; }
.pcard-head small { font-size: 14px; color: var(--muted); }
.pcard-num { display: grid; place-items: center; width: 38px; height: 40px; flex: none; border-radius: 5px; font: 700 25px var(--font-display); }
.prompt,.result,.status,.pbp { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.prompt { display: flex; flex-direction: column; gap: 11px; padding: 15px; }
.prompt-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
.prompt-head h2 { font-size: 28px; }
.prompt-sit { font-size: 14px; color: var(--muted); }
.head-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pill-stop { color: var(--accent); font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; border: 0; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: 14px; }
.back svg { width: 16px; height: 16px; }
.read { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; padding: 8px 9px; background: #1c2b21; border-left: 2px solid #667d6a; border-radius: 0 5px 5px 0; font-size: 14px; }
.read-tag { color: var(--muted); font-size: 14px; }
.read b { font-weight: 600; }
.read-note { color: var(--muted); font-size: 14px; }
.mini-label,.row-label { display: block; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.tempo { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.tempo-opt { padding: 7px 3px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: transparent; }
.tempo-opt b { display: block; font-size: 14px; font-weight: 600; }
.tempo-opt small { display: block; font-size: 14px; line-height: 1.25; margin-top: 2px; }
.tempo-opt[aria-checked="true"] { color: var(--text); background: #274333; border-color: #4e745b; }
.families { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.key { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; min-height: 68px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface-2); text-align: left; transition: background .14s,border-color .14s; }
.key:hover { background: #273c2d; border-color: #6d9077; }
.key:active { background: #304a38; }
.key[disabled] { opacity: .5; }
.key-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.key-label { font: 700 25px/1 var(--font-display); letter-spacing: .01em; }
.key-sub { color: var(--text-2); font-size: 14px; line-height: 1.3; }
.key-meta { color: var(--muted); font-size: 14px; line-height: 1.3; }
.key.fam { min-height: 86px; }
.key.fam .key-sub { display: none; }
.key.fam .key-meta { margin-top: 3px; }
.alts { display: flex; flex-wrap: wrap; gap: 6px; }
.alt { flex: 1 1 95px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-2); text-align: left; }
.alt b { font-size: 14px; font-weight: 600; }
.alt small { font-size: 14px; line-height: 1.3; color: var(--muted); }
.alt .kbd { display: none; }
.alt.on { background: #274333; border-color: #4e745b; }
.calls { display: flex; flex-direction: column; gap: 9px; }
.row-keys { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 5px; }
.key.call { min-height: 51px; padding: 8px; gap: 4px; }
.key.call .key-label { font-size: 19px; }
.key.call .kbd { display: none; }
.key.call .key-meta { font-size: 14px; }
.prompt-foot { display: flex; justify-content: center; }
.coord { white-space: normal; text-align: center; font-size: 14px; }
.coord svg { width: 15px; height: 15px; }
.status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; padding: 12px; }
.status b { font-size: 15px; font-weight: 600; }
.status small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.status .chip { margin-left: auto; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.result { padding: 11px 12px; }
.result-summary { display: flex; align-items: center; gap: 9px; }
.result-main { flex: 1; min-width: 0; }
.headline { font-size: 22px; }
.result-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
.swing { flex: none; min-width: 40px; color: var(--text); text-align: center; }
.swing b { display: block; font: 700 25px/1 var(--font-display); }
.swing small { display: block; font-size: 14px; color: var(--muted); }
.swing.g b { color: var(--g); }
.swing.y b { color: var(--y); }
.swing.o b { color: var(--o); }
.swing.r b { color: var(--r); }
.result.stale { opacity: .7; }
.result-detail { margin-top: 8px; font-size: 14px; }
.result-detail > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.result-detail[open] > summary { margin-bottom: 10px; }
.narr,.narr.extra,.prov,.wp-line,.verdict { font-size: 14px; line-height: 1.5; }
.narr,.prov,.wp-line,.verdict { margin-top: 9px; }
.narr.extra,.prov { color: var(--muted); }
.prov-tag { color: var(--text-2); margin-right: 5px; }
.wp-line { color: var(--text-2); }
.verdict { display: flex; align-items: start; gap: 8px; }
.options { margin-top: 10px; }
.options summary { color: var(--accent); cursor: pointer; font-size: 14px; }
.options table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.options th,.options td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.options th { color: var(--muted); font-size: 14px; font-weight: 500; }
.options th:not(:first-child),.options td.num { width: 57px; text-align: right; }
.options .you-tag { color: var(--accent); font-size: 14px; }
.options .star { color: var(--y); }
.pbp { padding-inline: 12px; }
.pbp summary { padding-block: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.pbp-list { display: flex; flex-direction: column; gap: 7px; max-height: 220px; overflow: auto; padding: 0 0 12px; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.pbp-list li { display: flex; align-items: baseline; gap: 9px; }
.pbp-list li.mine { color: var(--text-2); }
.pbp-time { flex: none; width: 64px; color: var(--muted); }
.end-card { scroll-margin-top: 90px; }
@media (min-width: 960px) {
  .screen.game { grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr); grid-template-rows: auto 1fr; grid-template-areas: "sb panel" "field panel"; align-items: start; gap: 0 16px; }
  .panel { margin-top: 0; }
  .field-wrap { aspect-ratio: 1.42; }
}
@media (max-width: 560px) {
  .screen.boot { min-height: 620px; }
  .sb-row { grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr); min-height: 68px; }
  .sb-team { gap: 7px; padding: 10px; }
  .sb-abbr { font-size: 25px; }
  .sb-score { font-size: 39px; }
  .sb-clock { font-size: 29px; }
  .sb-meta { gap: 5px; }
  .sb-pips i { width: 5px; }
  .sb-down { padding: 6px; font-size: 14px; }
  .prompt { padding: 12px; gap: 10px; }
  .prompt-head h2 { font-size: 26px; }
  .key.fam { min-height: 74px; }
  .key-label { font-size: 23px; }
  .key { padding: 9px; }
  .key.call .key-label { font-size: 19px; }
  .read { padding: 6px 8px; }
  .key.fam .kbd { display: none; }
}
