/* Compact game presentation. Simulation, playbook and saves are unchanged. */
:root { --muted: #626e60; }
body { font-size: 16px; }
.site-header { height: 56px; position: sticky; top: 0; z-index: 3; background: var(--paper); }
.header-inner { max-width: 1248px; padding: 0 24px; gap: 16px; }
.brand { font-size: 18px; gap: 8px; }
.brand-second { font-size: 15px; letter-spacing: 0; margin-top: 3px; }
.brand-mark { width: 30px; height: 34px; }
.brand-mark svg { width: 24px; height: 24px; }
.main-nav { margin: 0; gap: 28px; }
.nav-item { font-size: 15px; }
.nav-item[data-dialog=help] { width: 36px; justify-content: center; }
.nav-help { width: 21px; height: 21px; }
.header-actions .icon-button { width: 36px; height: 36px; }
.page-shell, .site-footer { max-width: 1200px; margin-inline: auto; }
.page-shell { padding: 10px 24px 32px; }
.game-section { scroll-margin-top: 56px; }
.challenge-bar { height: 27px; margin: 0 0 7px; font-size: 12px; letter-spacing: .3px; }
.challenge-date { font-size: 12px; letter-spacing: 0; color: #65705f; }
.challenge-number { color: #65705f; }
.game-card { display: flex; flex-direction: column; height: min(650px, calc(100svh - 129px)); min-height: 455px; border-radius: 10px; box-shadow: 0 4px 18px #21342a08; }
.scoreboard { min-height: 80px; padding: 10px 22px; gap: 24px; flex-shrink: 0; }
.team { max-width: none; gap: 12px; }
.team-location { display: none; }
.team-name { font-size: 18px; gap: 7px; }
.team-emblem { width: 39px; height: 39px; font-size: 14px; }
.team-score, .team-away .team-score { font-size: 46px; margin: 0 6px; }
.you-tag { font-size: 11px; padding: 3px 4px; }
.scoreboard-center { min-width: 112px; }
.period { font: 12px var(--mono); letter-spacing: .5px; }
.game-clock { font-size: 42px; line-height: 1; margin: 1px 0; }
.clock-status { display: block; font-size: 11px; letter-spacing: 0; color: #64725f; }
.situation-bar { min-height: 34px; padding: 0 14px; gap: 8px; flex-shrink: 0; }
.situation-bar p { font-size: 14px; line-height: 1.3; }
.info-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; flex-shrink: 0; color: #63765c; }
.info-button .icon { width: 18px; height: 18px; }
.info-button:hover { background: #e7ecdf; color: var(--ink); }
.game-body { display: grid; grid-template-columns: 1.15fr 1fr; flex: 1; min-height: 0; }
.field-column { display: flex; flex-direction: column; min-height: 0; padding: 12px 16px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
.drive-metrics { display: grid; grid-template-columns: 1.25fr 1fr .85fr; margin: 0 0 10px; padding: 0; border: 0; gap: 10px; flex-shrink: 0; }
.drive-metrics > div + div { padding-left: 12px; }
.metric-label { font: 11px var(--mono); letter-spacing: 0; color: #65745f; margin-bottom: 3px; }
.drive-metrics strong { font-size: 23px; line-height: 1.1; }
.timeout-dots { margin-top: 12px; gap: 5px; }
.timeout-dots i { width: 18px; height: 7px; }
.field-container { flex: 1; min-height: 100px; border-radius: 6px; }
.field-container > svg { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; aspect-ratio: auto; }
.field-caption { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 34px; flex-shrink: 0; }
#last-play { font-size: 14px; line-height: 1.35; color: #53654d; }
.field-outcome { font-size: 30px; }
.playbook-column { padding: 12px 16px 8px; display: flex; flex-direction: column; min-height: 0; }
.playbook-heading { min-height: 30px; margin: 0 0 8px; gap: 10px; flex-shrink: 0; }
.playbook-title { display: flex; align-items: center; }
.playbook-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.defense-badge { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 12px; color: #4d674a; padding: 0; text-align: right; }
.defense-badge .icon { height: 17px; width: 17px; }
.playbook-tabs { min-height: 38px; margin: 0 0 9px; gap: 3px; padding: 3px; flex-shrink: 0; }
.playbook-tabs button { font: 500 13px var(--body); padding: 7px 3px; color: #596a50; white-space: normal; line-height: 1.2; }
.group-short { display: none; }
.play-options { grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.play-option { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: center; column-gap: 8px; min-height: 61px; padding: 10px; }
.play-option .play-route { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 42px; height: 27px; margin: 0; }
.play-option strong { grid-column: 2; margin: 0 0 4px; padding-right: 10px; font-size: 16px; line-height: 1.2; }
.play-option .play-meta { grid-column: 2; font: 13px var(--body); text-transform: none; color: #64705c; }
.play-option .play-risk { display: none; }
.selection-check { top: 6px; right: 6px; }
.call-context { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 42px; padding-top: 6px; flex-shrink: 0; }
#next-snap-cost { font-size: 13px; color: #59694f; white-space: nowrap; }
#next-snap-cost.urgent { color: #a6401f; font-weight: 650; }
.tempo-control { gap: 2px; padding: 3px; margin-left: auto; }
.tempo-control button { font-size: 13px; padding: 6px 9px; min-height: 32px; color: #5b6952; }
.control-deck { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; padding: 12px 16px; border-top: 1px solid var(--line); background: #f5f5ed; flex-shrink: 0; }
.clock-actions { margin: 0; display: grid; grid-template-columns: 1.25fr .8fr 1.1fr; gap: 8px; }
.clock-actions button { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #d5ddcc; border-radius: 5px; padding: 7px; background: var(--white); color: #41573d; font-size: 14px; gap: 5px; }
.clock-actions button span { color: inherit; font-size: 14px; }
.clock-actions .icon { width: 15px; height: 15px; }
.clock-actions button:disabled { opacity: .45; }
.primary-actions { display: flex; gap: 8px; min-width: 0; }
.primary-actions .snap-button { flex: 1; min-width: 0; min-height: 46px; font-size: 17px; gap: 8px; }
.primary-actions .kick-button { flex: .85; min-width: 0; width: auto; min-height: 46px; margin: 0; padding: 6px 9px; font-size: 14px; line-height: 1.25; color: #365333; background: #fffefa; }
.game-links { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #626f5e; font-size: 11px; }
.game-links > div { display: flex; gap: 15px; }
.game-links button { min-height: 30px; padding: 0; font-size: 13px; color: #4f6548; text-decoration: underline; text-underline-offset: 3px; }
.game-card.finished { min-height: 0; height: auto; }
.game-card.finished .game-body, .game-card.finished .control-deck { display: none; }
.drive-result { padding: 20px 22px; }
.result-title { font-size: 34px; }
.result-eyebrow { font-size: 12px; }
.result-explanation, .drive-debrief p { font-size: 15px; line-height: 1.5; }
.result-grade { font-size: 42px; }
.result-grade > span { font-size: 11px; }
.drive-debrief { padding-top: 10px; margin-top: 12px; }
.drive-debrief > div { font-size: 12px; flex-wrap: wrap; gap: 8px 15px; }
.drive-debrief button { font-size: 14px; }
.result-actions { margin-top: 16px; gap: 8px; }
.result-actions button { min-height: 44px; font-size: 14px; padding: 9px 12px; }
.hero { padding: 30px 0 24px; gap: 30px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { font-size: 12px; letter-spacing: .5px; }
.hero h1, .hero h1 em { font-size: 36px; letter-spacing: -1.3px; }
.hero h1 { margin-top: 10px; }
.hero-aside { max-width: 470px; padding: 0; }
.hero-aside p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.hero-features { font-size: 12px; }
.editorial-section { margin-top: 25px; }
.editorial-content p { font-size: 15px; }
.editorial-kicker, .editorial-section .text-link { font-size: 13px; }
.site-footer { padding: 24px; }
.site-footer p, .site-footer .data-attribution { font-size: 12px !important; }
.footer-links, .footer-links button, .footer-links > span { font-size: 13px; }
dialog { width: min(640px, calc(100% - 28px)); max-height: 88svh; padding: 24px; overscroll-behavior: contain; }
dialog h2 { font-size: 28px; }
dialog p, dialog .dialog-intro, dialog .help-steps p, dialog .help-note, dialog .practice-option p { font-size: 15px; line-height: 1.6; color: #5a6b50; }
dialog .dialog-top .eyebrow, dialog .help-steps li > span { font-size: 12px; }
dialog .dialog-top .icon-button { width: 36px; height: 36px; }
dialog h3, dialog .help-steps h3, dialog .practice-option strong { font-size: 17px; }
dialog .snap-button { font-size: 16px; }
.rule-list { padding-left: 22px; font-size: 15px; color: #53664a; line-height: 1.65; }
.rule-list li { margin-bottom: 12px; }
#insight-dialog .scenario-brief { display: block; margin-bottom: 0; padding-bottom: 0; border: 0; }
#insight-dialog .scenario-brief h3 { font-size: 24px; }
#insight-dialog .scenario-brief p { font-size: 15px; }
#insight-dialog .source-link { font-size: 14px; padding-top: 12px; }
#insight-dialog .eyebrow, #insight-dialog .condition-tags span { font-size: 12px; }
#insight-dialog .condition-tags { margin-top: 16px; flex-direction: row; align-items: center; }
#insight-dialog .field-legend { flex-wrap: wrap; font-size: 14px; gap: 16px; }
#field-detail-image { display: block; width: 100%; height: auto; border-radius: 6px; background: #346044; }
#insight-dialog .coach-tip { padding: 0; }
#insight-dialog .coach-tip p { font-size: 15px; }
#insight-dialog .scouting-panel { margin-bottom: 10px; }
#insight-dialog .scouting-panel p { font-size: 15px; }
#insight-dialog .scouting-heading .eyebrow, #insight-dialog .scouting-heading b, #insight-dialog .recent-calls > span { font-size: 12px; }
#insight-dialog .instant-review { margin-bottom: 0; }
#insight-dialog .instant-review .eyebrow { font-size: 12px; }
#insight-dialog .instant-review strong { font-size: 17px; }
#insight-dialog .instant-review p, #insight-dialog .instant-review button { font-size: 14px; white-space: normal; }
#insight-dialog .selected-play-description { min-height: 0; font-size: 15px; }
#insight-dialog .matchup-preview { padding: 14px; gap: 8px; }
#insight-dialog .matchup-preview > div span { font-size: 11px; color: #657653; }
#insight-dialog .matchup-preview > div strong { font-size: 23px; }
#insight-dialog .matchup-preview > p { font-size: 13px; }
#film-dialog { width: min(940px, calc(100% - 28px)); }
#film-dialog .drive-log { margin-top: 20px; }
#film-dialog .section-heading h2, #film-dialog .history-section h2 { font-size: 24px; }
#film-dialog .section-heading .eyebrow, #film-dialog .log-status, #film-dialog .history-badge { font-size: 12px; }
#film-dialog .log-copy strong, #film-dialog .historical-plays strong { font-size: 15px; }
#film-dialog .log-description, #film-dialog .log-meta, #film-dialog .log-grade { font-size: 12px; }
#film-dialog .review-body { padding: 10px 18px 20px; }
#film-dialog .review-verdict strong, #film-dialog .review-reasons, #film-dialog .review-takeaway { font-size: 15px; }
#film-dialog .review-context, #film-dialog .review-clock, #film-dialog .review-comparison p, #film-dialog .comparison-row small { font-size: 12px; }
#film-dialog .comparison-row > div:first-child, #film-dialog .review-comparison h4, #film-dialog .alternative-reason p, #film-dialog .alternative-reason strong { font-size: 14px; }
#film-dialog .history-context, #film-dialog .history-matchup p, #film-dialog .historical-plays li span { font-size: 13px; }
#film-dialog .historical-plays time { font-size: 12px; }
#film-dialog .source-link { font-size: 14px; }
#data-content > p, #data-content code, .source-facts p { font-size: 14px; }
.practice-option > span, .historical-picker select, .historical-picker p { font-size: 13px; }
.toast { font-size: 14px; }

@media (min-width: 761px) and (max-height: 710px) {
  .site-header { height: 48px; }
  .page-shell { padding-top: 6px; }
  .challenge-bar { height: 23px; margin-bottom: 5px; }
  .game-card { height: calc(100svh - 112px); min-height: 425px; }
  .scoreboard { min-height: 68px; padding-block: 6px; }
  .game-clock { font-size: 36px; }
  .team-score, .team-away .team-score { font-size: 40px; }
  .playbook-column, .field-column { padding-top: 8px; }
  .playbook-heading { margin-bottom: 4px; }
  .playbook-tabs { margin-bottom: 6px; min-height: 34px; }
  .play-option { padding: 7px 9px; min-height: 54px; }
  .play-option strong { font-size: 15px; }
  .drive-metrics { margin-bottom: 6px; }
  .control-deck { padding-block: 8px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .page-shell { padding-inline: 14px; }
  .game-body { grid-template-columns: 1fr 1fr; }
  .field-column, .playbook-column { padding-inline: 12px; }
  .play-option { grid-template-columns: 1fr; }
  .play-option .play-route { display: none; }
  .play-option strong, .play-option .play-meta { grid-column: 1; }
  .control-deck { gap: 14px; padding-inline: 12px; }
  .primary-actions .snap-button { font-size: 16px; }
}

@media (max-width: 760px) {
  .site-header { height: 48px; }
  .header-inner { padding-inline: 12px; gap: 10px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand-second { font-size: 13px; }
  .brand-mark { display: none; }
  .main-nav { margin-left: auto; gap: 14px; }
  .nav-item { font-size: 14px; }
  .nav-item[data-dialog=help] { display: flex; width: 28px; }
  .header-actions { gap: 2px; }
  .header-actions #sound-toggle { display: none; }
  .header-actions .icon-button { width: 32px; height: 36px; }
  .header-actions .icon-button + .icon-button { margin: 0; }
  .page-shell { padding: 6px 12px 24px; margin: 0; }
  .challenge-bar { height: 24px; margin-bottom: 5px; font-size: 11px; }
  .challenge-label { gap: 5px; }
  .challenge-number { padding-left: 6px; margin-left: 0; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .challenge-date { font-size: 11px; }
  .game-card { height: auto; min-height: 0; }
  .scoreboard { min-height: 68px; padding: 7px 12px; gap: 10px; }
  .team { padding: 0; gap: 6px; position: static; }
  .team-emblem, .team-home .team-emblem, .team-away .team-emblem { position: static; width: auto; height: auto; border-radius: 0; background: none; font: 700 17px var(--body); letter-spacing: -.4px; }
  .team-copy { display: none; }
  .team-home { justify-content: flex-start; }
  .team-away { justify-content: flex-end; }
  .team-home .team-emblem::after { content: 'YOU'; display: block; font: 10px var(--mono); color: #65795c; text-align: center; margin-top: 2px; }
  .team-score, .team-away .team-score { font-size: 37px; margin: 0; }
  .scoreboard-center { min-width: 100px; }
  .period { font-size: 11px; }
  .game-clock { font-size: 35px; margin: 0; }
  .clock-status { font-size: 11px; }
  .situation-bar { min-height: 30px; padding-inline: 10px; }
  .situation-bar p { font-size: 13px; }
  .situation-bar .info-button { width: 28px; height: 28px; }
  .game-body { display: flex; flex-direction: column; }
  .field-column { padding: 8px 10px 0; border: 0; }
  .drive-metrics { gap: 6px; margin-bottom: 6px; }
  .drive-metrics > div + div { padding-left: 10px; }
  .metric-label { font-size: 11px; margin-bottom: 2px; }
  .drive-metrics strong { font-size: 19px; }
  .timeout-dots { margin-top: 9px; }
  .timeout-dots i { width: 15px; height: 6px; }
  .field-container { flex: none; height: clamp(88px, calc(100svh - 556px), 165px); min-height: 0; }
  .field-caption { min-height: 28px; }
  .field-caption .info-button { width: 28px; height: 28px; }
  #last-play { font-size: 13px; }
  .playbook-column { padding: 2px 10px 4px; }
  .playbook-heading { min-height: 28px; margin-bottom: 4px; }
  .playbook-heading h2 { font-size: 17px; }
  .playbook-heading .info-button { width: 28px; height: 28px; }
  .defense-badge { font-size: 11px; min-height: 28px; }
  .playbook-tabs { min-height: 36px; margin-bottom: 6px; padding: 3px; }
  .playbook-tabs button { min-height: 30px; padding: 4px 2px; font-size: 12px; }
  .play-options { grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
  .play-option { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 58px; padding: 7px 10px; }
  .play-option .play-route { display: none; }
  .play-option strong { font-size: 15px; margin-bottom: 3px; padding-right: 0; }
  .play-option .play-meta { font-size: 13px; }
  .play-option .selection-check { top: auto; bottom: 7px; right: 7px; }
  .call-context { min-height: 40px; padding-top: 4px; }
  #next-snap-cost { font-size: 12px; }
  .tempo-control button { font-size: 12px; padding: 5px 8px; min-height: 30px; }
  .call-context .info-button { width: 28px; height: 28px; }
  .control-deck { grid-template-columns: 1fr; gap: 6px; padding: 7px 10px 9px; }
  .clock-actions { gap: 6px; }
  .clock-actions button { min-height: 38px; font-size: 14px; padding: 5px; }
  .clock-actions button span { font-size: 13px; }
  .primary-actions .snap-button, .primary-actions .kick-button { min-height: 44px; }
  .primary-actions .snap-button { font-size: 17px; }
  .primary-actions .kick-button { font-size: 13px; }
  .game-links { min-height: 28px; font-size: 10px; }
  .game-links button { font-size: 12px; min-height: 28px; }
  .game-links > div { gap: 10px; }
  .hero { padding: 22px 0; display: block; }
  .hero h1, .hero h1 em { font-size: 31px; }
  .hero-aside { padding-top: 12px; max-width: none; }
  .hero-aside p { font-size: 15px; }
  .hero-features { flex-wrap: wrap; font-size: 12px; }
  .hero-features > span:last-child { width: auto; padding-left: 0; }
  .site-footer { margin: 0 12px; padding: 20px 0; }
  .editorial-content { grid-template-columns: 1fr; gap: 16px; }
  dialog { padding: 20px; }
  dialog .stats-grid { gap: 6px; }
  dialog .stat-cell span { font-size: 11px; }
  dialog .stats-empty { font-size: 14px; }
  #film-dialog .section-heading { align-items: flex-start; }
  #film-dialog .log-status { font-size: 10px; }
  #film-dialog .history-matchup { grid-template-columns: 1fr; }
  #film-dialog .log-entry { padding: 12px 9px; gap: 7px; }
  #film-dialog .log-meta { font-size: 11px; }
  #film-dialog .historical-plays li { gap: 10px; }
  .drive-result { padding: 17px 14px; }
  .result-title { font-size: 30px; }
  .result-explanation { font-size: 14px; }
  .result-actions button { flex: 1 1 42%; font-size: 13px; }
}

@media (max-width: 760px) and (max-height: 710px) {
  .field-container { height: 72px; }
  .scoreboard { min-height: 62px; padding-block: 4px; }
  .game-clock { font-size: 32px; }
  .play-option { min-height: 53px; }
  .field-caption { min-height: 26px; }
}

@media (max-width: 760px) and (max-height: 610px) {
  .field-container { display: none; }
  .field-column { padding-top: 6px; }
  .field-caption { min-height: 24px; }
  .play-option { min-height: 51px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 7px; padding-inline: 10px; }
  .main-nav { gap: 10px; }
  .brand { font-size: 14px; }
  .brand-second { font-size: 12px; }
  .nav-item { font-size: 13px; }
  .page-shell { padding-inline: 8px; }
  .challenge-date { font-size: 10px; }
  .game-links > span { font-size: 9px; }
  .game-links button { font-size: 11px; }
  .team-emblem, .team-home .team-emblem, .team-away .team-emblem { font-size: 15px; }
  .scoreboard-center { min-width: 88px; }
  .drive-metrics strong { white-space: nowrap; font-size: 18px; }
  .drive-metrics { grid-template-columns: 1.25fr 1fr .85fr; gap: 4px; }
  .drive-metrics > div + div { padding-left: 6px; }
  .play-option strong { font-size: 14px; padding-right: 0; letter-spacing: -.25px; }
  .group-label { display: none; }
  .group-short { display: inline; }
}

@media (max-width: 360px) and (max-height: 610px) {
  .site-header { height: 44px; }
  .page-shell { padding-top: 2px; }
  .challenge-bar { height: 22px; margin-bottom: 3px; }
  .scoreboard { min-height: 52px; padding-block: 2px; }
  .game-clock { font-size: 29px; }
  .period { display: none; }
  .play-option { min-height: 49px; }
  .field-caption { min-height: 22px; }
  .field-caption .info-button { width: 24px; height: 24px; }
  .playbook-column { padding-top: 0; padding-bottom: 2px; }
  .playbook-heading { min-height: 24px; margin-bottom: 2px; }
  .playbook-heading .info-button { width: 24px; height: 24px; }
  .call-context { min-height: 36px; padding-top: 0; }
  .control-deck { padding-top: 5px; padding-bottom: 5px; gap: 4px; }
}
