:root {
  color-scheme: dark;
  --ground: #171a17;
  --surface: #1e221e;
  --paper: #efefe6;
  --ink: #1e291f;
  --muted: #969e91;
  --line: #383e34;
  --yellow: #e6ed70;
  --field: #294a35;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--ground); color: var(--paper); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ''; display: block; height: 3px; background: var(--yellow); }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; transition: background .16s, color .16s, border-color .16s; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #9ca638; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--yellow); }
.wrap { width: calc(100% - 96px); max-width: 1360px; margin-inline: auto; }

/* Masthead */
.site-header { height: 82px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 240px; height: auto; }
.header-note { padding-left: 32px; border-left: 1px solid var(--line); font: 9px var(--mono); letter-spacing: 1.4px; color: #a1aa98; }
.site-header nav { margin-left: auto; display: flex; gap: 30px; align-items: center; font-size: 12px; }
.header-play { color: var(--yellow); }
.header-play:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; background: transparent; font-size: 12px; font-weight: 500; }
.text-button:hover { color: var(--yellow); }
.question-mark { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #616858; border-radius: 50%; font: 11px var(--mono); color: #bec5b6; }
.game-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 0 25px; }
.eyebrow { color: #a5ad9b; font: 9px var(--mono); letter-spacing: 1.7px; margin-bottom: 8px; }
h1 { font: 800 clamp(42px, 5.2vw, 72px)/.97 var(--display); letter-spacing: -.5px; }
h1 span { color: var(--yellow); }
.intro-copy { padding-top: 6px; min-width: 235px; }
.intro-copy p { color: #d1d6c9; font-size: 15px; line-height: 1.45; }
.intro-copy > span { display: block; color: #9ba58f; font: 8px var(--mono); letter-spacing: 1.25px; margin-top: 12px; }

/* Game surface */
.game-shell { border: 1px solid #424b3b; background: var(--surface); }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 51px; padding-right: 24px; border-bottom: 1px solid var(--line); }
.mode-tabs { display: flex; align-self: stretch; }
.mode-tabs button { display: flex; align-items: center; gap: 9px; background: transparent; color: #9da693; border-right: 1px solid var(--line); padding: 14px 23px; font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; }
.mode-tabs button.active { background: #292f23; color: var(--yellow); border-bottom-color: var(--yellow); }
.mode-tabs button:hover:not(.active) { color: var(--paper); background: #282e24; }
.tab-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.daily-date { color: #a6af9c; font: 9px var(--mono); letter-spacing: .3px; }
.scenario-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 25px; border-bottom: 1px solid var(--line); }
.scenario-eyebrow { display: block; color: #c1cb9c; font: 8px var(--mono); letter-spacing: 1.5px; margin-bottom: 6px; }
h2 { font: 600 29px/1.05 var(--display); letter-spacing: .1px; }
.scenario-meta { max-width: 270px; text-align: right; color: #9ca793; font-size: 10px; line-height: 1.7; }
.scenario-meta strong { color: #e2e6d8; font-weight: 500; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; grid-template-rows: auto 1fr; }
.pitch-panel { min-width: 0; grid-column: 1; grid-row: 1; }
.play-panel { color-scheme: light; grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); padding: 21px 20px 16px; border-left: 1px solid #424b3b; }

/* Broadcast scorebug */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 97px; padding: 17px 26px; gap: 24px; background: #151e17; border-bottom: 1px solid #46613f; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team.away { flex-direction: row-reverse; }
.team-crest { display: grid; place-items: center; width: 30px; height: 35px; flex-shrink: 0; background: var(--yellow); color: #243021; font: 800 26px var(--display); clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); }
.team.away .team-crest { background: #7f9b9b; color: #14251d; }
.team-name { font: 700 24px/1 var(--display); letter-spacing: .5px; }
.team-label { display: block; color: #a2b397; font: 8px/1 var(--mono); margin-top: 7px; letter-spacing: .8px; }
.team.away .team-name { text-align: right; }
.team-score { margin-left: auto; font: 600 51px/.95 var(--display); font-variant-numeric: tabular-nums; }
.team.away .team-score { margin-left: 0; margin-right: auto; }
.clock-display { text-align: center; padding: 0 24px; border-inline: 1px solid #3b4733; }
.clock-display span { display: block; font: 8px var(--mono); color: #a1ad94; letter-spacing: 1.2px; margin-bottom: 5px; }
.clock-display strong { display: block; color: var(--yellow); font: 500 37px/1 var(--mono); letter-spacing: -2px; font-variant-numeric: tabular-nums; }

/* Tactical field */
.field-wrap { position: relative; background: var(--field); overflow: hidden; }
.field-topline { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px 5px; font: 8px var(--mono); color: #bccaae; letter-spacing: .8px; }
.field-view { color: #92aa86; margin-left: 5px; }
.field-topline i { display: inline-block; width: 4px; height: 4px; background: var(--yellow); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
#field { padding: 6px 15px 0; }
#field svg { display: block; width: 100%; height: auto; overflow: visible; }
.field-line { stroke: #dbe5c4; stroke-width: .7; opacity: .27; }
.field-number { fill: #d2dfbe; font: 500 14px var(--display); opacity: .55; }
.endzone-label { fill: #d0dcbd; font: 700 17px var(--display); letter-spacing: 4px; opacity: .6; }
.field-monogram { fill: #d1debd; opacity: .055; font: italic 800 100px var(--display); text-anchor: middle; }
.route-line { stroke: #f2f58c; stroke-width: 2; stroke-dasharray: 5 3; fill: none; }
.player { fill: #f4f4d8; stroke: #203c29; stroke-width: 1.5; }
.defender { fill: #9db68d; stroke: #9db68d; stroke-width: 1.8; opacity: .8; }
.player-label { fill: #203c29; font: 600 6.5px var(--mono); text-anchor: middle; dominant-baseline: central; }
.ball-line { stroke: #92c9df; stroke-width: 1.5; opacity: .85; }
.target-line { stroke: #e6ed70; stroke-width: 1.7; stroke-dasharray: 4 3; }
.ball-tag { fill: #c5e5ec; }
.ball-tag-text { font: 600 6px var(--mono); fill: #21392b; text-anchor: middle; }
.field-legend { display: flex; align-items: center; gap: 20px; padding: 10px 22px 18px; font: 8px var(--mono); color: #b6c9a5; }
.field-legend > span { display: flex; align-items: center; gap: 6px; }
.field-legend > span:last-child { margin-left: auto; font-size: 7px; letter-spacing: .7px; }
.field-legend b { color: var(--yellow); font: 24px/1 var(--body); }
.legend-ball, .legend-target { display: inline-block; width: 13px; height: 2px; background: #92c9df; }
.legend-target { background: var(--yellow); }
.field-footer { display: grid; grid-template-columns: 1fr 1fr .9fr; padding: 15px 25px; background: #202c20; border-block: 1px solid #405137; }
.field-stat:not(:first-child) { padding-left: 24px; border-left: 1px solid #425039; }
.stat-label { display: block; color: #a1b092; font: 8px var(--mono); letter-spacing: .7px; margin-bottom: 5px; }
.stat-value { font: 600 24px/1 var(--display); }
.timeout-dots { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.timeout-dots i { width: 20px; height: 6px; background: var(--yellow); transform: skewX(-20deg); }
.timeout-dots i.used { background: #4a563e; }
.field-caption { padding: 6px 24px; display: flex; align-items: center; gap: 7px; font-size: 9px; color: #a3ae98; }
.field-caption .text-button { margin-left: auto; font-size: 9px; gap: 5px; white-space: nowrap; }
.clock-icon { width: 11px; height: 11px; flex-shrink: 0; border: 1px solid #8a9a7e; border-radius: 50%; position: relative; }
.clock-icon::after { content: ''; position: absolute; top: 2px; left: 4px; width: 3px; height: 4px; border-left: 1px solid #8a9a7e; border-bottom: 1px solid #8a9a7e; }

/* Six rows, one call. */
.play-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.play-heading h3 { font: 700 29px/.95 var(--display); letter-spacing: .4px; }
.play-heading > span { font: 8px var(--mono); color: #69735d; letter-spacing: .6px; }
.playbook-label { display: block; font: 8px var(--mono); letter-spacing: 1.3px; color: #64705c; margin-bottom: 6px; }
.defense-read { display: flex; gap: 10px; padding: 10px 0 13px; border-top: 1px solid #cbd0bf; border-bottom: 1px solid #bfc7b1; }
.defense-icon { font: 20px/1 var(--mono); color: #6d7859; padding-top: 3px; }
.defense-read strong { display: block; font-size: 11px; font-weight: 600; }
.defense-read p { font-size: 10px; color: #66705c; line-height: 1.45; margin-top: 2px; }
.play-options { display: grid; margin-top: 6px; }
.play-option { display: grid; grid-template-columns: 21px 1fr 33px; gap: 7px; align-items: center; min-height: 49px; padding: 8px; text-align: left; background: transparent; border-bottom: 1px solid #d0d5c4; border-left: 2px solid transparent; position: relative; }
.play-option:hover { background: #e1e5d3; }
.play-option.selected { background: #dfe5b1; border-left-color: #344628; border-bottom-color: #bdc78d; }
.play-number { align-self: center; font: 10px var(--mono); color: #7b856d; }
.play-option.selected .play-number { color: #3c502b; }
.play-copy { min-width: 0; }
.play-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.play-odds { display: block; font: 9px/1.5 var(--mono); color: #64705a; margin-top: 4px; }
.play-type { color: #4d5b42; }
.play-option svg { width: 29px; height: 29px; stroke: #85916f; fill: none; stroke-width: 1.6; }
.play-option.selected svg { stroke: #3f582c; }
.tempo-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 15px 0 12px; }
.tempo-label { font: 8px var(--mono); letter-spacing: .6px; color: #5d6b51; }
.tempo-buttons { display: flex; border: 1px solid #c4ccb5; }
.tempo-buttons button { background: transparent; padding: 6px 8px; font-size: 9px; color: #5f6c54; }
.tempo-buttons button.active { background: #303f2b; color: #f1f2e8; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; width: 100%; padding: 12px 15px; background: var(--yellow); color: #1c291c; font: 700 20px/1 var(--display); letter-spacing: .35px; border: 1px solid #c7d24f; }
.primary:hover { background: #f1f596; }
.primary > span { font: 23px/1 var(--body); }
.play-panel .primary { background: #273c27; color: #eff0d6; border-color: #273c27; }
.play-panel .primary:hover { background: #405b30; }
.play-panel .primary > span { color: var(--yellow); }
.utilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.utilities button { flex: 1; background: transparent; padding: 8px 1px; border-bottom: 1px solid #c7ceba; white-space: nowrap; font-size: 9px; color: #526048; }
.utilities button:disabled { opacity: .6; color: #78816e; }
.utilities button:hover:enabled { color: #1c2e1d; border-bottom-color: #354e29; background: #e0e5d2; }
.play-note { margin-top: auto; padding-top: 25px; }
.play-note > span { display: block; border-top: 1px solid #c7ceba; padding-top: 14px; color: #6b775c; font: 7px var(--mono); letter-spacing: .6px; }
.play-note p { font-size: 11px; color: #3e5034; line-height: 1.7; margin-top: 7px; }
.play-note small { display: block; font-size: 9px; color: #758365; margin-top: 6px; }

/* Commentary beneath the field */
.breakdown { grid-column: 1; grid-row: 2; margin: 5px 24px 23px; padding: 16px 0 0; border-top: 1px solid #3d4934; display: grid; grid-template-columns: 145px 1fr; gap: 17px; align-content: start; }
.breakdown-label { display: block; color: #a7b88b; font: 7px var(--mono); letter-spacing: 1px; }
.breakdown h3 { margin-top: 6px; font: 600 23px/1.1 var(--display); }
.breakdown p { color: #bdc8b2; font-size: 11px; line-height: 1.7; }
.breakdown .alt { margin-top: 6px; color: #96a68a; font-size: 10px; }
.grade-badge { display: inline-block; margin-top: 9px; padding: 3px 6px; border: 1px solid #657642; color: #e1ed9c; font: 8px var(--mono); }
.grade-badge.risky { border-color: #967e44; color: #edd492; }
.grade-badge.costly { border-color: #9d6956; color: #e6b198; }
.outcome-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.outcome-heading strong { font-size: 12px; font-weight: 500; color: var(--paper); }
.outcome-time { font: 8px var(--mono); color: #aab89b; white-space: nowrap; }
.drive-log { border-top: 1px solid #424b3b; background: #191f19; }
.drive-log summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; padding: 15px 24px; cursor: pointer; color: #ccd6bc; font: 9px var(--mono); letter-spacing: 1px; }
.drive-log summary::-webkit-details-marker { display: none; }
.drive-log summary:hover { background: #252e20; }
.drive-log summary b { font: 9px var(--mono); letter-spacing: 0; color: #97a588; margin-left: 14px; }
.log-expand { color: var(--yellow); font-size: 18px; line-height: 1; }
.drive-log[open] .log-expand { transform: rotate(45deg); }
.log-row { display: grid; grid-template-columns: 25px 45px 1fr auto; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 12px 24px; font-size: 11px; }
.log-num { font: 10px var(--mono); color: #97a588; }
.log-row strong { display: block; font-weight: 500; }
.log-row small { font-size: 10px; color: #97a588; }
.log-row .grade-badge { margin: 0; }
.log-empty { padding: 0 24px 18px; color: #a6b497; font-size: 11px; }

/* Bench note and colophon */
.practice-strip { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 0; }
.practice-strip > div { display: flex; align-items: center; gap: 19px; }
.practice-label { font: 8px var(--mono); letter-spacing: 1.3px; color: var(--yellow); border-right: 1px solid #505b43; padding-right: 19px; white-space: nowrap; }
.practice-strip p { font-size: 11px; color: #b1bba5; }
.practice-strip p span { color: #8c9a7e; }
.practice-strip .text-button { color: var(--paper); white-space: nowrap; font-size: 11px; }
.practice-strip .text-button span { color: var(--yellow); font-size: 19px; }
.practice-strip .text-button:hover { color: var(--yellow); }
footer { display: flex; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 23px 0 30px; color: #89977c; }
.footer-brand { font: 700 16px var(--display); letter-spacing: .4px; color: #adb99d; white-space: nowrap; }
.footer-brand span { color: #7e8e70; font-weight: 500; }
footer p { flex: 1; font-size: 9px; line-height: 1.6; }
footer p span { display: block; color: #7e8c73; }
footer .text-button { color: #a2ae96; font-size: 9px; }
.copyright { font: 8px var(--mono); }

/* Custom drives */
.custom-builder { padding: 22px 25px; background: #262e22; border-bottom: 1px solid #4a563c; }
.builder-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.builder-top h3 { font: 600 29px/1 var(--display); }
.builder-top p { color: #a8b59a; font-size: 11px; margin-top: 5px; }
.preset-buttons { display: flex; gap: 7px; }
.preset-buttons button { padding: 9px 12px; color: #d2dcc4; background: transparent; border: 1px solid #61714c; font-size: 10px; }
.preset-buttons button:hover { background: #3c4c30; }
.builder-fields { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr .8fr auto; gap: 24px; align-items: end; }
.builder-fields label { min-width: 0; display: block; font: 8px var(--mono); color: #b9c5a9; letter-spacing: .5px; }
.builder-fields label strong { display: block; margin-top: 7px; font: 600 26px var(--display); color: var(--paper); }
.builder-fields select { display: block; width: 100%; margin-top: 10px; padding: 10px 8px; border: 1px solid #5c6b47; border-radius: 0; background: #1b251a; color: #e4e9da; font: 11px var(--body); }
.builder-fields input[type=range] { width: 100%; min-height: 25px; accent-color: var(--yellow); cursor: pointer; margin: 0; }
.builder-fields .primary { width: 155px; min-height: 42px; font-size: 17px; }
.builder-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #a3b090; font-size: 10px; }
.builder-footer .text-button { color: #d7dfbe; font-size: 10px; }

/* Results and dialogs */
.result-panel { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px 0; }
.result-stamp { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 27px; background: #dfe6b0; border: 1px solid #aebb7e; color: #395329; font: 32px var(--display); transform: rotate(-6deg); }
.result-panel.lost .result-stamp { background: #e6dbc8; color: #79644b; border-color: #c5b091; }
.result-panel .scenario-eyebrow { color: #6b7857; font-size: 8px; letter-spacing: .9px; }
.result-panel h3 { font: 700 45px/.98 var(--display); margin-bottom: 15px; }
.result-panel > p { color: #627055; font-size: 12px; line-height: 1.7; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; border-block: 1px solid #c3cdb2; margin: 25px 0; padding: 19px 0; }
.result-metrics strong { display: block; font: 600 37px var(--display); }
.result-metrics span { font: 8px var(--mono); color: #6c7c5c; }
.score-suffix { font: 13px var(--display) !important; }
.result-secondary { width: 100%; display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; }
.result-secondary .text-button { font-size: 10px; color: #4f6540; }
.save-notice { font-size: 9px; color: #718263; line-height: 1.7; margin-top: 15px; }
.finished-field { opacity: .8; }
.flash-field { animation: field-flash .38s ease; }
.new-play { animation: entry .3s ease; }
dialog { color-scheme: light; background: var(--paper); color: var(--ink); border: 1px solid #b1bc9c; border-top: 4px solid #c9d74f; width: min(555px, calc(100% - 32px)); max-height: 85dvh; padding: 32px; }
dialog::backdrop { background: #0b120dcc; }
.dialog-close { position: absolute; top: 8px; right: 13px; padding: 8px; background: transparent; color: #657354; font-size: 24px; }
.dialog-eyebrow { color: #728151; font: 8px var(--mono); letter-spacing: 1.3px; margin-bottom: 9px; }
dialog h2 { font-size: 37px; margin-bottom: 19px; }
dialog h3 { font: 600 25px var(--display); margin: 23px 0 8px; }
dialog p, dialog li { font-size: 12px; color: #5e6c50; line-height: 1.9; }
dialog ol, dialog ul { padding-left: 20px; }
dialog li { padding-left: 5px; margin-bottom: 10px; }
dialog .primary { margin-top: 23px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 23px; }
.dialog-actions .primary { margin: 0; justify-content: center; }
.secondary { background: #dde3d0; width: 100%; font-size: 12px; padding: 12px; }
.secondary:hover { background: #cbd7b6; }
dialog textarea { width: 100%; min-height: 140px; border: 1px solid #b4c09e; background: #f8f9ed; color: var(--ink); font-size: 12px; padding: 12px; resize: vertical; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid #69794b; background: #283921; color: #edf1dc; font-size: 12px; text-align: center; z-index: 10; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 18px; background: var(--yellow); color: var(--ink); z-index: 20; }
.skip-link:focus { top: 12px; }
@keyframes field-flash { 35% { filter: brightness(1.17); } }
@keyframes entry { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 1500px) {
  .game-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .play-panel { padding: 25px; }
  .play-option { min-height: 55px; }
  .play-name { font-size: 14px; }
  .play-odds { font-size: 9px; }
}
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 56px); }
  .header-note { font-size: 8px; padding-left: 24px; }
  .site-header { gap: 24px; }
  .game-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .play-panel { padding: 18px 16px; }
  .scoreboard { gap: 15px; padding-inline: 19px; }
  .team-crest { display: none; }
  .team-name { font-size: 22px; }
  .team-score { font-size: 46px; }
  .clock-display { padding-inline: 18px; }
  .clock-display strong { font-size: 33px; }
  .field-view { display: none; }
  .breakdown { grid-template-columns: 1fr; gap: 11px; margin-inline: 20px; }
  .breakdown > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .breakdown-label { flex-basis: 100%; }
  .grade-badge { margin-top: 5px; }
  .builder-fields { gap: 15px; }
  .builder-fields .primary { width: 130px; }
  .practice-strip p span { display: block; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .header-note { display: none; }
  .game-intro { padding-block: 27px; }
  h1 { font-size: 49px; }
  .intro-copy { min-width: 180px; }
  .intro-copy p { font-size: 12px; }
  .intro-copy > span { font-size: 6px; }
  .game-grid { grid-template-columns: minmax(0, 1fr) 286px; }
  .scoreboard { gap: 9px; padding: 19px 14px; min-height: 92px; }
  .team { gap: 7px; }
  .team-name { font-size: 18px; }
  .team-score { font-size: 36px; }
  .team-label { font-size: 6px; }
  .clock-display { padding-inline: 10px; }
  .clock-display span { font-size: 6px; }
  .clock-display strong { font-size: 27px; }
  .field-topline { padding-inline: 14px; font-size: 6px; }
  #field { padding-inline: 8px; }
  .field-legend { padding-inline: 14px; gap: 10px; font-size: 6px; }
  .field-legend > span:last-child { font-size: 0; }
  .field-footer { padding: 14px; }
  .field-stat:not(:first-child) { padding-left: 13px; }
  .stat-label { font-size: 6px; }
  .stat-value { font-size: 20px; }
  .timeout-dots i { width: 14px; }
  .field-caption { padding-inline: 14px; align-items: flex-start; font-size: 8px; }
  .field-caption > span { margin-top: 10px; }
  .field-caption .text-button { font-size: 8px; }
  .play-panel { padding: 18px 13px; }
  .play-heading h3 { font-size: 27px; }
  .play-odds { font-size: 7px; }
  .play-option { padding-inline: 5px; }
  .play-name { font-size: 12px; }
  .tempo-label { font-size: 7px; }
  .tempo-buttons button { padding-inline: 6px; font-size: 8px; }
  .breakdown { margin-inline: 14px; }
  .outcome-heading { flex-wrap: wrap; gap: 4px; }
  .builder-fields { grid-template-columns: 1fr 1fr; gap: 18px 30px; }
  .builder-fields .primary { grid-column: 1 / -1; width: 100%; }
  .builder-top { align-items: flex-start; }
  .preset-buttons { flex-wrap: wrap; justify-content: flex-end; max-width: 260px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { height: 72px; }
  .brand-logo { width: clamp(170px, calc(100vw - 150px), 220px); }
  .site-header nav { gap: 16px; }
  .header-play { display: none; }
  .game-intro { padding-block: 24px; }
  h1 { font-size: clamp(36px, 7.8vw, 54px); letter-spacing: -.3px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .intro-copy { display: none; }
  .game-toolbar { padding-right: 15px; flex-wrap: wrap; }
  .mode-tabs button { padding: 14px 15px; font-size: 11px; }
  .daily-date { font-size: 7px; }
  .scenario-strip { padding: 18px; }
  .scenario-eyebrow { font-size: 7px; }
  h2 { font-size: 27px; }
  .scenario-meta { font-size: 9px; max-width: 160px; }
  .game-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pitch-panel, .play-panel, .breakdown { grid-column: 1; grid-row: auto; }
  .play-panel { border-left: 0; border-top: 1px solid #44513b; padding: 23px 20px 18px; }
  .scoreboard { padding: 19px 24px; gap: 20px; }
  .team-crest { display: grid; width: 25px; height: 30px; font-size: 21px; }
  .team-name { font-size: 23px; }
  .team-score { font-size: 48px; }
  .team-label { font-size: 7px; }
  .clock-display { padding-inline: 25px; }
  .clock-display strong { font-size: 34px; }
  .clock-display span { font-size: 7px; }
  .field-topline { padding: 15px 19px 4px; font-size: 7px; }
  .field-view { display: inline; }
  #field { padding-inline: 12px; }
  .field-legend { padding: 8px 18px 16px; font-size: 7px; gap: 15px; }
  .field-legend > span:last-child { font-size: 6px; }
  .field-footer { padding: 15px 20px; }
  .field-stat:not(:first-child) { padding-left: 20px; }
  .stat-label { font-size: 7px; }
  .stat-value { font-size: 24px; }
  .timeout-dots i { width: 18px; }
  .field-caption { padding: 4px 19px; align-items: center; gap: 7px; font-size: 9px; }
  .field-caption > span { margin-top: 0; }
  .field-caption .text-button { font-size: 9px; }
  .play-heading { margin-bottom: 14px; }
  .play-heading h3 { font-size: 32px; }
  .play-heading > span { font-size: 9px; }
  .playbook-label { font-size: 8px; }
  .defense-read { padding-block: 12px; }
  .defense-read strong { font-size: 12px; }
  .defense-read p { font-size: 11px; }
  .play-options { grid-template-columns: 1fr 1fr; column-gap: 14px; margin-top: 8px; }
  .play-option { min-height: 64px; grid-template-columns: 18px 1fr 29px; gap: 5px; padding-inline: 7px; }
  .play-name { font-size: 13px; }
  .play-odds { font-size: 8px; }
  .play-type { display: none; }
  .tempo-row { margin-block: 18px 13px; }
  .tempo-label { font-size: 9px; }
  .tempo-buttons button { font-size: 11px; padding: 8px 10px; }
  .primary { min-height: 51px; font-size: 22px; }
  .utilities button { font-size: 11px; padding: 12px 2px; }
  .breakdown { grid-template-columns: 145px 1fr; gap: 18px; margin: 0; border-top: 1px solid #44513b; padding: 22px 20px; }
  .breakdown > div:first-child { display: block; }
  .breakdown-label { font-size: 7px; }
  .breakdown h3 { font-size: 25px; margin-top: 7px; }
  .breakdown p { font-size: 12px; }
  .breakdown .alt { font-size: 11px; }
  .grade-badge { margin-top: 9px; }
  .drive-log summary { padding: 17px 20px; }
  .practice-strip { padding: 20px 0; gap: 15px; }
  .practice-strip > div { display: block; }
  .practice-label { display: block; border: 0; margin-bottom: 7px; }
  .practice-strip p { font-size: 10px; }
  footer { flex-wrap: wrap; gap: 15px 20px; padding-top: 20px; }
  footer p { flex-basis: 50%; font-size: 8px; }
  footer .text-button { padding: 0; margin-left: auto; }
  .custom-builder { padding: 22px 18px; }
  .builder-top { display: block; }
  .preset-buttons { justify-content: flex-start; max-width: none; margin-top: 17px; gap: 6px; }
  .preset-buttons button { padding: 10px; }
  .builder-fields { gap: 16px 25px; }
  .builder-fields label { font-size: 8px; }
  .builder-fields select { font-size: 12px; }
  .builder-footer { flex-wrap: wrap; margin-top: 13px; }
  .builder-footer .text-button { font-size: 11px; }
  .result-panel { min-height: 380px; }
  .result-stamp { margin-bottom: 22px; }
  .result-panel h3 { font-size: 52px; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 24px); }
  .site-header .text-button { font-size: 11px; gap: 7px; }
  .game-toolbar { padding: 0; }
  .mode-tabs { width: 100%; }
  .mode-tabs button { justify-content: center; flex: 1; padding-inline: 10px; font-size: 11px; }
  .mode-tabs button:last-child { border-right: 0; }
  .daily-date { width: 100%; padding: 8px 15px; border-top: 1px solid var(--line); font-size: 8px; }
  .scenario-strip { padding: 17px 15px; gap: 9px; }
  h2 { font-size: 26px; }
  .scenario-meta { display: none; }
  .scoreboard { padding: 18px 15px; gap: 12px; }
  .team-crest { display: none; }
  .team-name { font-size: 21px; }
  .team-score { font-size: 41px; }
  .team-label { font-size: 6px; }
  .clock-display { padding-inline: 15px; }
  .clock-display strong { font-size: 30px; }
  .clock-display span { font-size: 6px; letter-spacing: .5px; }
  .field-topline { padding-inline: 15px; font-size: 6px; }
  .field-view { display: none; }
  .field-legend { padding: 4px 14px 14px; font-size: 6px; gap: 12px; }
  .field-legend > span:last-child { font-size: 5px; letter-spacing: .4px; }
  .field-legend b { font-size: 21px; }
  .field-footer { padding-inline: 15px; }
  .field-stat:not(:first-child) { padding-left: 12px; }
  .stat-label { font-size: 6px; letter-spacing: .3px; }
  .stat-value { font-size: 22px; }
  .timeout-dots i { width: 16px; }
  .field-caption { padding-inline: 14px; gap: 5px; font-size: 8px; }
  .field-caption .text-button { font-size: 8px; }
  .field-caption > span:nth-child(2) { max-width: 200px; }
  .play-panel { padding: 21px 15px 15px; }
  .play-heading > span { font-size: 8px; }
  .play-options { gap: 0 8px; }
  .play-option { grid-template-columns: 15px 1fr 23px; gap: 4px; padding: 10px 5px; min-height: 66px; }
  .play-option svg { width: 23px; height: 27px; }
  .play-number { font-size: 9px; }
  .play-name { font-size: 12px; }
  .play-odds { font-size: 8px; line-height: 1.6; }
  .tempo-label { font-size: 8px; }
  .tempo-buttons button { font-size: 10px; }
  .breakdown { display: block; padding: 21px 16px; }
  .breakdown > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin-bottom: 13px; }
  .breakdown h3, .breakdown .grade-badge { margin: 0; }
  .outcome-heading { display: block; }
  .outcome-time { display: block; margin-top: 4px; }
  .drive-log summary { padding-inline: 16px; }
  .log-row { grid-template-columns: 20px 35px 1fr; gap: 8px; padding-inline: 16px; }
  .log-row > .grade-badge { grid-column: 3; justify-self: start; }
  .practice-strip { align-items: flex-end; }
  .practice-strip p { max-width: 190px; }
  .practice-strip .text-button { font-size: 10px; gap: 7px; padding: 5px 0; }
  footer .text-button { margin-left: 0; }
  .copyright { margin-left: auto; }
  .builder-fields { gap: 15px 20px; }
  .preset-buttons button { font-size: 9px; padding: 9px; }
  dialog { padding: 28px 22px; }
}
@media (max-width: 360px) {
  .scoreboard { gap: 8px; padding-inline: 12px; }
  .team-name { font-size: 18px; }
  .team-score { font-size: 36px; }
  .clock-display { padding-inline: 10px; }
  .clock-display strong { font-size: 27px; }
  .play-option { grid-template-columns: 12px 1fr; }
  .play-option svg { display: none; }
  .field-legend > span:last-child { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
