/* views/game.css: the Game screen (hero tile, Why card, team tiles; final: score tile, replay, fourth-down calls). Colors only through tokens. */
.game .screen-head { margin-top: 4px; }
.g-section { display: grid; gap: 12px; align-content: start; }
.fourth-calls { display: grid; gap: 14px; align-content: start; }
.fourth-calls .foot-note { margin-top: 0; }

/* the hero: "{team} win", the giant outlined numeral, the other side, then the round-marker meter */
.pred-card { gap: 0; padding: 16px 16px 6px; }
.hero-r1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-r1 b { font: 800 1.375rem/1.05 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.02em; }
.hero-r1 .why { margin-block: -4px; }
.hero-r2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pred-card .hero-num { font-size: clamp(4.6rem, 30cqw, 7.5rem); line-height: .86; padding-right: .05em; }
.against { text-align: right; padding-bottom: 10px; min-width: 0; }
.against span { display: block; font: 700 .9375rem/1.1 var(--font-body); color: var(--tx-mu); overflow-wrap: anywhere; }
.against b { display: block; margin-top: 3px; font: 800 2.25rem/1 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.03em; }
.hero-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pred-card .winbar { margin: 6px 6px 0; }
.pred-card .mono-line { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* final: scoreboard */
.score-card { gap: 4px; justify-content: center; padding: 14px 16px 16px; }
.sb-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sb-line + .sb-line { border-top: 2px dashed color-mix(in srgb, var(--e) 45%, transparent); }
.sb-name { display: grid; min-width: 0; }
.sb-team { font: 800 1.375rem/1.1 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.02em; }
.sb-rec { font: 700 .875rem/1.35 var(--font-body); color: var(--tx-mu); }
.sb-win { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid var(--e); display: inline-grid; place-items: center; flex: none; }
.sb-win svg { width: 15px; height: 15px; }
.sb-score { margin-left: auto; font: 800 clamp(3rem, 22cqw, 4.75rem)/1 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sb-line:not(.is-win) .sb-score, .sb-line:not(.is-win) .sb-team { color: var(--tx-mu); }
.score-card:has(.sb-tie) .sb-score { color: var(--tx); }
.sb-tie { margin-top: 8px; font: 700 .9375rem/1.4 var(--font-body); color: var(--tx-mu); }
.score-card > .flag { align-self: flex-start; }
.tile--stat .st-line .badge { margin-right: 8px; vertical-align: 2px; }
.tile--stat .st-line .badge-called, .tile--stat .st-line .badge-upset { margin-right: 0; vertical-align: baseline; }

/* fourth-down calls */
.play-trail { display: grid; justify-items: end; gap: 4px; }
.play-sub { font: 700 .8125rem/1.3 var(--font-body); color: var(--tx-mu); max-width: 14ch; text-align: right; } /* "Gave up 0.8% win chance" wraps to two lines so the call title keeps its width */
.play-row { min-height: 68px; }

/* sheet: three options as bars */
.opt-bars { display: grid; gap: 16px; }
.opt { display: grid; gap: 8px; }
.opt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.opt-name { font: 800 1rem/1.3 var(--font-body); flex: 1 1 auto; }
.opt-val { font: 800 1.25rem/1.1 var(--font-display); font-stretch: var(--stretch); order: 2; margin-left: auto; font-variant-numeric: tabular-nums; }
.opt .badge { order: 3; }
.opt:not(.is-best) .progress-fill { background: var(--ink-22); }

/* QB matchup tile (live files) */
.qb-tile { gap: 10px; padding: 14px 16px 12px; }
.qb-head { display: flex; align-items: center; gap: 10px; }
.qb-head b { font: 800 1.125rem/1.1 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.02em; margin-right: auto; }
.qb-head .why { margin-block: -4px; }
.qb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.qb-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; }
.qb-row + .qb-row { border-top: 2px dashed color-mix(in srgb, var(--e) 45%, transparent); }
.qb-main { display: grid; min-width: 0; flex: 1; }
.qb-name { font: 800 1.0625rem/1.2 var(--font-body); overflow-wrap: anywhere; }
.qb-note { font: 700 .8125rem/1.3 var(--font-body); color: var(--tx-mu); }
.qb-fx { font: 800 .9375rem/1.2 var(--font-body); text-align: right; max-width: 11ch; font-variant-numeric: tabular-nums; }
.qb-fx.is-neg { color: var(--tx-mu); }
.qb-foot { font: 700 .875rem/1.4 var(--font-body); color: var(--tx-mu); }

/* live "Why" card: win-chance strip */
.lw-conv { display: grid; gap: 10px; justify-items: start; padding: 12px 0 4px; border-top: 2px dashed color-mix(in srgb, var(--e) 45%, transparent); margin-top: 4px; }
.lw-conv > p { font: 700 .9375rem/1.4 var(--font-body); }
.lw-strip { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lw-strip li { display: grid; gap: 2px; padding: 8px 6px; border: 2px solid var(--e); border-radius: var(--r-sm); background: var(--trk); text-align: center; position: relative; }
.lw-strip li + li::before { content: "\2192"; position: absolute; left: -10px; top: 50%; translate: 0 -50%; font-weight: 800; background: var(--surface); line-height: 1; }
.lw-strip li.is-last { background: var(--accent); color: var(--on-accent); }
.lw-step { font: 700 .75rem/1.2 var(--font-body); color: var(--tx-mu); }
.lw-strip li.is-last .lw-step { color: var(--on-accent); }
.lw-strip b { font: 800 1.25rem/1.1 var(--font-display); font-stretch: var(--stretch); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .lw-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lw-strip li:nth-child(3)::before { content: none; } }

/* What if sandbox */
.wi-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wi-title .why { margin-block: -4px; }
.wi-card { gap: 16px; padding: 14px 16px 16px; }
.wi-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.wi-toggle { min-height: 44px; }
.wi-sliders { display: grid; gap: 6px; }
.wi-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.wi-label { font: 700 .9375rem/1.25 var(--font-body); min-width: 0; overflow-wrap: anywhere; }
.wi-val { font: 800 1rem/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wi-range { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.wi-range::-webkit-slider-runnable-track { height: 14px; border: 2px solid var(--e); border-radius: 999px; background: var(--trk); }
.wi-range::-moz-range-track { height: 10px; border: 2px solid var(--e); border-radius: 999px; background: var(--trk); }
.wi-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border: 2px solid var(--e); border-radius: 50%; background: var(--primary); box-shadow: 2px 2px 0 var(--e); }
.wi-range::-moz-range-thumb { width: 24px; height: 24px; border: 2px solid var(--e); border-radius: 50%; background: var(--primary); box-shadow: 2px 2px 0 var(--e); }
.wi-range:disabled { opacity: .45; cursor: not-allowed; }
.wi-out { display: grid; gap: 6px; justify-items: start; padding-top: 12px; border-top: 2px dashed color-mix(in srgb, var(--e) 45%, transparent); }
.wi-result { font: 800 1.5rem/1.15 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.02em; }
.wi-sub { font: 700 .875rem/1.4 var(--font-body); color: var(--tx-mu); }
.wi-out .btn { margin-top: 4px; }
.wi-out .btn:disabled { opacity: .5; cursor: not-allowed; }
