@font-face{font-family:"Libre Franklin";src:url("assets/fonts/LibreFranklin-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Libre Franklin";src:url("assets/fonts/LibreFranklin-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Libre Franklin";src:url("assets/fonts/LibreFranklin-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
:root{--paper:#f3eee2;--green:#214c43;--ink:#172724;--rust:#b95639;--muted:#63726a;--line:#c9cdbf;--white:#fcfaf4;--font-ui:"Libre Franklin","Hiragino Sans","Yu Gothic",sans-serif;font-family:var(--font-ui);color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--rust);outline-offset:5px}a{color:inherit;text-decoration:none}.masthead{height:72px;background:var(--green);color:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1040px)/2));}.masthead a{display:flex;align-items:center;gap:8px;font-weight:900;letter-spacing:-1px;font-size:25px}.edition{font-size:10px;letter-spacing:2px;opacity:.8}main{max-width:1020px;margin:auto;padding:32px 32px 48px;min-height:calc(100vh - 142px)}.round-line{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1px}.round-label b{font-size:24px;margin-right:5px;font-weight:400}.progress{display:flex;gap:8px}.progress i{width:25px;height:3px;background:var(--line)}.progress i.active{background:var(--green)}.progress i.done{background:var(--rust)}h1{font-size:clamp(22px,3vw,32px);font-weight:600;letter-spacing:.06em;text-align:center;margin:27px 0 14px}.matchup{display:grid;grid-template-columns:1fr 40px 1fr;align-items:end;max-width:690px;margin:0 auto 14px}.person{min-width:0;display:flex;align-items:center;gap:13px}.person.batter{flex-direction:row-reverse;text-align:right}.portrait{width:108px;height:115px;object-fit:contain;object-position:bottom;flex-shrink:0;filter:saturate(.86)}.person-info{padding-bottom:4px}.role{font-size:10px;letter-spacing:1.3px;color:var(--muted)}.player-name{display:block;font-size:18px;font-weight:600;line-height:1.3;margin:5px 0}.hand{font-size:11px;color:var(--muted)}.versus{align-self:center;font-family:var(--font-ui);font-style:normal;font-size:16px;text-align:center;color:var(--muted)}.catcher{text-align:center;font-size:11px;color:var(--muted);margin:0 0 22px}.toolbar{border-block:1px solid var(--line);padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.mode-control{display:flex;gap:3px}.mode-control button{border:0;background:transparent;color:var(--muted);padding:7px 12px;font-size:12px}.mode-control button[aria-pressed=true]{background:var(--green);color:var(--paper)}.data-toggle{display:flex;gap:8px;align-items:center;font-size:12px;cursor:pointer}.data-toggle input{appearance:none;width:28px;height:16px;border:1px solid #919f94;border-radius:16px;margin:0;background:transparent;position:relative;cursor:pointer}.data-toggle input:before{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:var(--muted);transition:transform .15s}.data-toggle input:checked{background:var(--green);border-color:var(--green)}.data-toggle input:checked:before{background:var(--paper);transform:translateX(12px)}.diagrams{display:grid;grid-template-columns:1fr 1fr;margin-top:20px}.sequence{min-width:0;padding:0 26px}.sequence+.sequence{border-left:1px solid var(--line)}.sequence-heading{display:flex;align-items:center;justify-content:space-between}.side-letter{font-family:var(--font-ui);font-size:30px;line-height:1}.count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.count b{color:var(--ink);font-size:14px;letter-spacing:2px;margin-left:7px}.pitch-plot{display:block;width:100%;height:auto;max-height:330px;overflow:visible}.pitch-plot text{font-family:var(--font-ui);font-weight:bold}.pitch-status{height:30px;display:flex;gap:7px;align-items:center;justify-content:center;font-size:12px}.pitch-status .num{font-size:11px;color:var(--muted)}.pitch-status .outcome{color:var(--muted);font-size:11px}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:9px 17px;font-size:10px;color:var(--muted);margin:15px auto 20px}.legend span{display:flex;gap:5px;align-items:center}.legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.reveal-controls{display:flex;justify-content:center;align-items:center;gap:20px;margin:5px 0 23px;min-height:42px}.pitch-position{font-size:12px;letter-spacing:1px;color:var(--muted)}.next-pitch{background:transparent;border:1px solid var(--green);color:var(--green);padding:10px 24px;font-size:13px}.next-pitch:hover{background:#e2e7d9}.answer-row{display:grid;grid-template-columns:1fr 1fr;gap:52px;padding:0 26px}.answer{border:1px solid var(--green);background:var(--green);color:var(--paper);padding:14px;font-size:14px;font-weight:600}.answer:hover:not(:disabled){background:#143c32}.answer:disabled{border-color:var(--line);background:transparent;color:#788479}.answer.selected{outline:2px solid var(--ink);outline-offset:4px}.answer.correct{background:var(--green);border-color:var(--green);color:var(--paper)}.answer.incorrect{background:#e8d4c7;border-color:#bd8e75;color:#683924}.answer-feedback{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:24px}.feedback-label{font-size:18px;font-weight:600}.next-question,.primary{border:0;background:var(--green);color:var(--paper);padding:13px 24px;font-size:13px}.secondary{border:1px solid var(--green);color:var(--green);background:transparent;padding:12px 24px;font-size:13px}.stats{border-top:1px solid var(--line);margin-top:30px;padding-top:22px}.stats-heading{font-size:12px;font-weight:600;margin:0 0 14px;display:flex;justify-content:space-between}.stats-heading small{font-size:10px;font-weight:400;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.stat-block h3{font-size:12px;font-weight:600;margin:0 0 10px}.stat-table{width:100%;font-size:10px;border-collapse:collapse;text-align:right;font-variant-numeric:tabular-nums}.stat-table th{font-weight:400;color:var(--muted);padding:7px 3px;border-bottom:1px solid var(--line)}.stat-table td{padding:8px 3px;border-bottom:1px solid #daddd1}.stat-table th:first-child,.stat-table td:first-child{text-align:left}.mini-dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin-right:5px}.zone-wrap{margin-top:23px;display:flex;align-items:center;gap:18px}.zone-grid{display:grid;grid-template-columns:repeat(3,1fr);width:153px;gap:2px;flex-shrink:0}.zone-cell{background:#dfe5d7;text-align:center;padding:9px 2px;font-size:12px;font-variant-numeric:tabular-nums}.zone-cell small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.zone-caption{font-size:10px;line-height:1.8;color:var(--muted)}.history{margin-top:22px;border-top:1px solid var(--line);padding-top:15px}.history h3{font-size:11px;font-weight:500;margin:0 0 10px}.history p{font-size:10px;color:var(--muted)}.history-list{display:flex;flex-wrap:wrap;gap:12px 24px}.history-entry{font-size:11px;display:flex;gap:8px;align-items:center}.history-entry small{color:var(--muted)}.history-pitches{font-size:9px;letter-spacing:.02em;color:var(--muted)}footer{max-width:956px;border-top:1px solid var(--line);margin:0 auto;padding:22px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:10px}footer a:hover{text-decoration:underline}.loading{text-align:center;margin-top:120px;color:var(--muted)}.results{max-width:650px;margin:44px auto;text-align:center}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted)}.score{font-family:var(--font-ui);font-size:116px;line-height:1.2;font-weight:400;margin:22px 0;color:var(--green)}.score small{font-size:34px;color:var(--muted)}.result-markers{display:flex;justify-content:center;gap:17px;margin:28px 0 36px}.result-marker{display:flex;flex-direction:column;align-items:center;gap:10px}.result-marker small{font-size:10px;color:var(--muted)}.result-marker b{height:42px;width:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--green);font-size:25px;font-weight:400;border-radius:50%;color:var(--green)}.result-marker.wrong b{color:var(--rust);border-color:#bd8e75}.result-actions{display:flex;justify-content:center;gap:12px}.result-preview{display:block;width:100%;height:auto;margin-top:36px;border:1px solid var(--line)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);max-width:90vw;padding:12px 20px;background:var(--ink);color:var(--paper);font-size:12px;opacity:0;pointer-events:none;transition:.15s;z-index:5}#toast.visible{opacity:1;transform:translate(-50%,0)}.error{text-align:center;margin:100px auto}.error p{font-size:14px;color:var(--muted)}
@media(min-width:1100px){main{padding-top:38px}.matchup{margin-top:12px}.portrait{height:126px;width:119px}.diagrams{margin-top:26px}}
@media(max-width:600px){.masthead{height:60px;padding:0 20px}.masthead a{font-size:23px}.edition{font-size:8px;letter-spacing:1px}main{padding:22px 15px 32px;min-height:calc(100vh - 125px)}.round-label b{font-size:21px}.round-line{font-size:10px}.progress{gap:5px}.progress i{width:20px}h1{margin:23px 0 10px;font-size:22px}.matchup{grid-template-columns:1fr 22px 1fr;align-items:start;gap:0;margin-bottom:12px}.person,.person.batter{flex-direction:column;gap:2px;text-align:center}.portrait{height:103px;width:105px}.person-info{padding:0}.role{font-size:8px;letter-spacing:.8px}.player-name{font-size:13px;line-height:1.4;margin:4px 0;min-height:18px}.hand{font-size:9px}.versus{padding-bottom:36px;font-size:13px}.catcher{font-size:10px;margin-bottom:17px}.toolbar{padding:9px 0}.mode-control button{font-size:11px;padding:6px 9px}.data-toggle{font-size:11px;gap:6px}.diagrams{margin-top:18px}.sequence{padding:0 8px}.side-letter{font-size:26px}.count{font-size:8px}.count b{font-size:12px;margin-left:4px;letter-spacing:1px}.pitch-plot{margin-top:2px}.pitch-status{font-size:10px;gap:5px;height:32px;flex-wrap:wrap;align-content:center}.pitch-status .num,.pitch-status .outcome{font-size:9px}.legend{font-size:9px;gap:8px 12px;margin:12px 0 18px}.reveal-controls{gap:13px;margin-bottom:18px}.next-pitch{font-size:12px;padding:10px 20px}.answer-row{gap:18px;padding:0 8px}.answer{font-size:12px;padding:13px 6px}.answer-feedback{margin-top:20px;gap:20px}.feedback-label{font-size:16px}.stats-grid{grid-template-columns:1fr;gap:24px}.stat-table{font-size:11px}.stat-table td{padding:9px 4px}.stats-heading small{font-size:9px}.zone-wrap{margin-top:18px}.zone-grid{width:174px}.history-entry{flex-wrap:wrap}.history-list{gap:14px}.history-pitches{font-size:9px}footer{margin:0 20px;padding:21px 0;font-size:9px}.results{margin:40px auto}.score{font-size:100px}.result-actions{gap:8px}.primary,.secondary{font-size:12px;padding:13px 18px}.result-markers{gap:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep both sequences and the answering controls in one desktop reading flow. */
@media(min-width:601px){.masthead{height:60px}main{padding-top:21px;padding-bottom:34px}h1{margin:16px 0 6px;font-size:28px}.matchup{margin-top:0;margin-bottom:5px}.portrait{height:94px;width:98px}.catcher{margin-bottom:14px}.toolbar{padding:8px 0}.diagrams{margin-top:15px}.pitch-plot{max-height:285px}.legend{margin:5px auto 12px}.reveal-controls{margin:0 0 14px;min-height:38px}.next-pitch{padding:9px 23px}.answer{padding:12px}.answer-feedback{margin-top:18px}}

.result-actions{flex-wrap:wrap}.result-actions a.secondary{display:inline-flex;align-items:center;justify-content:center}
.language-control{display:flex;align-items:center;gap:5px;font-size:11px}.language-control>span{opacity:.45}.language-control button{border:0;background:transparent;color:#becfc3;padding:8px 6px;font-size:11px}.language-control button[aria-pressed=true]{color:var(--paper);text-decoration:underline;text-underline-offset:5px}.language-control button:hover{color:#fff}.pitch-status{flex-wrap:wrap;align-content:center}.pitch-status>span{white-space:nowrap}.stat-table td:first-child{max-width:140px}.history-pitches{line-height:1.6}.secondary:disabled{opacity:.5}
@media(max-width:600px){html[lang=en] h1:not(.score){font-size:20px;letter-spacing:0}.language-control{gap:1px}.language-control button{padding:8px 4px;font-size:10px}.masthead{padding-inline:16px}.masthead a{font-size:21px;gap:6px}.masthead svg{width:20px;margin-left:2px}.pitch-status{height:42px;column-gap:5px;row-gap:2px}.zone-caption{font-size:9px}.stat-table{font-size:10px}.stat-table th{padding:7px 2px}.stat-table td{padding:8px 2px}.result-actions .primary,.result-actions .secondary{padding:12px 14px}}
/* Compact, face-adjacent player data; one transient panel at a time. */
.portrait-wrap{position:relative;flex-shrink:0;line-height:0}.player-data-button{position:absolute;bottom:2px;right:-5px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--green);background:var(--paper);color:var(--green);padding:5px 8px;font-size:10px;line-height:1.1}.batter .player-data-button{right:auto;left:-5px}.player-data-button span{font-size:13px}.player-data-button[aria-expanded=true]{background:var(--green);color:var(--paper)}.player-panel{position:fixed;z-index:20;width:330px;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;border:1px solid #a8b4a3;background:var(--white);padding:15px 16px 18px;box-shadow:0 6px 22px #17272418}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:11px}.panel-heading h2{font-size:13px;font-weight:600;margin:0;line-height:1.4}.panel-heading h2 small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:5px}.panel-close{border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;padding:0 2px}.panel-subtitle{font-size:11px;font-weight:500;color:var(--muted);margin:12px 0 6px}.panel-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin:3px 0 10px}.panel-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:10px;padding:10px 0 8px;white-space:nowrap}.panel-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}.player-panel .stat-table{font-size:10px}.player-panel .stat-table th,.player-panel .stat-table td{padding:8px 2px}.player-panel .stat-table td:first-child{max-width:120px}.player-panel abbr{text-decoration:underline dotted;text-underline-offset:3px;cursor:help}.player-panel .zone-grid{width:180px;margin:14px auto 0}.player-panel .history-list{display:flex;flex-direction:column;gap:0}.player-panel .history-entry{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;border-bottom:1px solid var(--line);padding:11px 0}.player-panel .history-pitches{grid-column:1/-1;line-height:1.7}.panel-empty{font-size:11px;color:var(--muted);margin:16px 0 3px}
@media(max-width:600px){.player-data-button{right:-13px;bottom:4px;padding:5px 7px;font-size:9px}.batter .player-data-button{left:-13px}.player-panel{padding:13px 14px 16px}.panel-tabs{gap:15px}.player-panel .stat-table{font-size:10px}}
.count-board{display:flex;align-items:center;gap:10px}.count-timing{font-size:9px;color:var(--muted);white-space:nowrap}.count-lights{display:flex;flex-direction:column;gap:5px}.count-row{display:flex;align-items:center;gap:5px;min-height:10px}.count-row b{font-size:9px;font-weight:600;line-height:1;width:8px;color:var(--muted)}.count-row i{display:block;width:12px;height:12px;border:1px solid #aab4a7;border-radius:50%;background:transparent}.count-row .ball-light.lit{background:#279653;border-color:#279653}.count-row .strike-light.lit{background:#e7b725;border-color:#d9a913}
@media(max-width:600px){.count-board{gap:6px}.count-timing{font-size:8px}.count-lights{gap:4px}.count-row{gap:4px;min-height:8px}.count-row b{font-size:8px;width:6px}.count-row i{width:9px;height:9px}}
/* Data controls sit below the full portrait, without covering the photo. */
.portrait-wrap{display:flex;flex-direction:column;align-items:center;gap:3px;line-height:normal}.player-data-button,.batter .player-data-button{position:static;align-self:center;margin:0;padding:4px 8px}.portrait-wrap .portrait{display:block}.person-info{align-self:center}
@media(max-width:600px){.portrait-wrap{gap:2px}.player-data-button,.batter .player-data-button{position:static;padding:4px 7px}.person-info{margin-top:2px}}

.side-letter,.score{font-weight:700}.stat-table,.count-row{font-variant-numeric:tabular-nums}

.pitch-speed{font-variant-numeric:tabular-nums;color:var(--muted)}

.game-context{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 14px;font-size:10px;color:var(--muted);margin:0 0 6px;font-variant-numeric:tabular-nums}.game-context>span{white-space:nowrap}.context-divider{padding:0 5px;color:#a8b4a3}.catcher{margin-bottom:14px}@media(max-width:600px){.game-context{font-size:9px;gap:5px 10px;margin-bottom:6px}.catcher{margin-bottom:14px}}

/* Keep the game compact while preserving readable player and pitch details. */
@media(min-width:601px){main{padding-top:17px;padding-bottom:24px}.round-line{position:relative;min-height:30px}.round-line+h1{margin:6px 0 4px;font-size:26px}.portrait{height:86px;width:90px}.matchup{margin-bottom:4px}.toolbar{padding:6px 0}.mode-control button{padding:5px 10px}.diagrams{margin-top:12px}.pitch-plot{max-height:265px}.pitch-status{height:26px}.legend{margin:4px auto 8px}.reveal-controls{margin-bottom:10px;min-height:36px}.catcher{margin-bottom:11px}footer{padding:17px 0}}
@media(max-width:600px){main{padding-top:18px;padding-bottom:24px}h1{margin:15px 0 7px}.portrait{height:94px;width:98px}.toolbar{padding:6px 0}.diagrams{margin-top:13px}.legend{margin:8px 0 12px}.reveal-controls{min-height:36px;margin-bottom:12px}.catcher{margin-bottom:12px}footer{padding:17px 0}}

.masthead-actions{display:flex;align-items:center;gap:17px}.help-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #becfc3;border-radius:50%;background:transparent;color:var(--paper);font-size:14px;font-weight:600;padding:0}.help-button:hover{background:#ffffff12}.help-dialog{position:fixed;max-width:calc(100vw - 28px);width:490px;max-height:calc(100dvh - 36px);overflow:auto;padding:25px 28px;border:1px solid var(--line);color:var(--ink);background:var(--white);box-shadow:0 12px 48px #17272425}.help-dialog::backdrop{background:#17272460}.help-close{position:absolute;right:13px;top:10px;border:0;background:transparent;color:var(--muted);font-size:24px;line-height:1;padding:3px}.help-dialog h2{font-size:19px;font-weight:600;margin:0 24px 12px 0}.help-dialog h3{font-size:12px;font-weight:600;margin:20px 0 8px}.help-dialog p{font-size:12px;line-height:1.85;margin:0 0 9px}.help-dialog p:last-child{margin-bottom:0}
@media(max-width:600px){.masthead-actions{gap:12px}.help-button{width:23px;height:23px;font-size:13px}.help-dialog{padding:23px 21px}.help-dialog p{font-size:12px}.results{margin:27px auto}.result-preview{margin-top:25px}}

.player-panel .history-entry{display:flex;flex-wrap:wrap;gap:6px 10px}.player-panel .history-pitches{font-size:10px}

#app[data-screen=setup]{min-height:0;padding-block:52px}.setup-form{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap}.setup-form label{font-size:15px;font-weight:600}.setup-form select{font:inherit;font-size:14px;color:var(--ink);background:var(--white);border:1px solid var(--line);padding:10px 12px;min-width:74px}.result-markers{display:grid;grid-template-columns:repeat(var(--marker-columns),42px);justify-content:center}
@media(max-width:600px){#app[data-screen=setup]{padding-block:36px}.setup-form{gap:13px}.setup-form label{font-size:14px}.result-markers{grid-template-columns:repeat(var(--mobile-marker-columns),42px);row-gap:20px}.progress{gap:4px}.progress i{width:18px}}

.setup{max-width:620px;margin:auto;text-align:center}.setup h1{font-size:24px;margin:0 0 10px;letter-spacing:.03em}.setup-rule{max-width:470px;margin:0 auto 23px;font-size:13px;line-height:1.8;color:var(--muted)}@media(max-width:600px){.setup h1{font-size:22px}.setup-rule{font-size:12px}}

.rv-cell{font-weight:600}.rv-scale{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:10px;color:var(--muted);font-size:8px}.rv-scale i{display:block;width:56px;height:7px;background:linear-gradient(90deg,#386f9f,#fcfaf4,#ba433c)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.game-question{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Mobile game: one compact player row and the answer controls within reach. */
@media(max-width:600px){
 .masthead{height:52px}main{padding:13px 12px 20px;min-height:calc(100dvh - 110px)}
 .matchup{grid-template-columns:1fr 18px 1fr;align-items:center;margin:10px auto 8px}
 .person{flex-direction:row;align-items:center;text-align:left;gap:6px}.person.batter{flex-direction:row-reverse;align-items:center;text-align:right;gap:6px}
 .portrait{width:64px;height:70px}.portrait-wrap{gap:2px}.player-data-button,.batter .player-data-button{font-size:8px;padding:3px 6px;gap:4px}.player-data-button span{font-size:11px}
 .person-info{min-width:0;margin-top:0}.player-name{font-size:11px;line-height:1.35;margin:3px 0;min-height:0}.role{font-size:7px;letter-spacing:.4px}.hand{font-size:8px}.versus{padding:0;font-size:11px}
 .game-context{font-size:8px;gap:4px 8px;margin-bottom:4px}.catcher{font-size:9px;margin-bottom:9px}.toolbar{padding:4px 0}.mode-control button{padding:5px 8px;font-size:10px}
 .diagrams{margin-top:10px}.sequence{padding-inline:6px}.side-letter{font-size:24px}.pitch-plot{max-height:168px}.pitch-plot text{font-size:13px}.pitch-status{height:32px;font-size:9px;column-gap:4px;row-gap:1px}.pitch-status .num,.pitch-status .outcome{font-size:8px}
 .legend{font-size:8px;gap:6px 10px;margin:7px 0 9px}.reveal-controls{min-height:33px;gap:12px;margin:0 0 10px}.next-pitch{padding:8px 16px;font-size:11px}.pitch-position{font-size:10px}.answer-row{gap:14px;padding-inline:6px}.answer{padding:11px 6px;font-size:11px}
 footer{font-size:8px;margin-inline:16px;padding:14px 0}.answer-feedback{margin-top:14px;gap:17px}.next-question{padding:11px 17px;font-size:12px}
}
@media(max-width:600px) and (max-height:650px){.pitch-plot{max-height:151px}.matchup{margin-top:7px}.portrait{height:64px}.reveal-controls{margin-bottom:8px}}

@media(max-width:600px){.player-data-button,.batter .player-data-button{min-height:26px}.help-button{width:28px;height:28px}}

.game-context{margin-bottom:10px}@media(max-width:600px){.game-context{margin-bottom:8px}}

/* Show the same pitch information on desktop and mobile. */
.sequence{border-left:1px solid transparent}
.pitch-status{display:grid;grid-template-rows:20px 20px;align-content:start;align-items:center;justify-content:stretch;row-gap:0;height:40px}
.pitch-details{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;width:100%;line-height:20px}
.pitch-details .num{display:none}
.pitch-status .outcome,.pitch-status .outcome:empty{display:block;min-height:20px;line-height:20px;text-align:center;white-space:nowrap}
.zone-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.zone-controls .panel-subtitle{margin:0;font-size:10px}
.zone-controls select{min-width:0;max-width:144px;min-height:28px;padding:4px 6px;font:inherit;font-size:10px;color:var(--ink);background:var(--white);border:1px solid var(--line)}
.zone-cell{font-variant-numeric:tabular-nums}.zone-cell small{color:inherit}
.zone-cell.no-data{background:#eceee7;color:var(--muted)}
.pitcher-table{table-layout:fixed}
.pitcher-table .pitch-count-column,.pitcher-table .rv-column{width:64px}
.player-panel .pitcher-table th:nth-child(2),.player-panel .pitcher-table td:nth-child(2){padding-right:12px}
.pitch-list-trigger{border:0;background:transparent;color:var(--muted);font-size:11px;padding:5px 8px;white-space:nowrap}
.pitch-list-trigger[aria-expanded=true]{color:var(--green);text-decoration:underline;text-underline-offset:4px}
.pitch-list-panel .panel-tabs button{min-width:44px;min-height:36px;font-size:12px}
.pitch-list-table{table-layout:fixed}
.pitch-list-table .pitch-number-column{width:22px}
.pitch-list-table .pitch-speed-column{width:44px}
.pitch-list-table .pitch-result-column{width:88px}
.pitch-list-table th:nth-child(2),.pitch-list-table td:nth-child(2){text-align:left}
.pitch-list-table th:last-child,.pitch-list-table td:last-child{text-align:left;padding-left:8px}
@media(max-width:600px){
 .pitch-status{grid-template-rows:17px 17px;height:34px}
 .pitch-details{display:flex;justify-content:center;gap:4px;width:100%;font-size:9px;line-height:17px}
 .pitch-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pitch-speed{flex-shrink:0;white-space:nowrap}
 .pitch-status .outcome,.pitch-status .outcome:empty{display:block;min-height:17px;line-height:17px;text-align:center;font-size:9px;white-space:nowrap}
}
.previous-pitch{border:1px solid var(--green);background:transparent;color:var(--green);padding:9px 23px;font-size:12px}
.previous-pitch:disabled,.next-pitch:disabled{opacity:.32}
@media(max-width:600px){.reveal-controls{gap:10px}.previous-pitch,.next-pitch{min-width:104px;padding:8px 10px;font-size:11px}}
/* Make player identities easier to read without expanding the game controls. */
@media(min-width:601px){.portrait{width:102px;height:98px}.player-name{font-size:20px}}
@media(max-width:600px){
 .portrait{width:76px;height:80px}.player-name{font-size:13px;overflow-wrap:anywhere}.role{font-size:8px}.hand{font-size:9px}
}
@media(max-width:600px) and (max-height:650px){.portrait{height:76px}}
@media(max-width:360px){.portrait{width:68px;height:72px}.player-name{font-size:12px}}

.pitch-video{cursor:pointer}.pitch-video:hover circle:not(.pitch-hit-target):not([fill="none"]),.pitch-video:focus-visible circle:not(.pitch-hit-target):not([fill="none"]){stroke:var(--green);stroke-width:2.4}

/* Give each player name the full side width on smaller screens. */
.player-name{white-space:nowrap}
@media(min-width:761px){.player-name{font-size:18px}}
@media(max-width:760px){
 .person{--player-photo-width:102px;display:grid;grid-template-columns:var(--player-photo-width) minmax(0,1fr);grid-template-rows:1fr 1fr auto;gap:0 5px;align-items:start}
 .person.batter{grid-template-columns:minmax(0,1fr) var(--player-photo-width)}
 .person-info{display:contents}
 .portrait-wrap{grid-column:1;grid-row:1 / span 2}
 .person.batter .portrait-wrap{grid-column:2}
 .person .role,.person .hand{grid-column:2}
 .person.batter .role,.person.batter .hand{grid-column:1}
 .person .role{grid-row:1;align-self:end;padding-bottom:2px}
 .person .hand{grid-row:2;align-self:start;padding-top:2px}
 .player-name{grid-column:1 / -1;grid-row:3;font-size:14px;line-height:1.25;margin:3px 0 0;min-height:0;overflow-wrap:normal}
}
@media(max-width:600px){.person{--player-photo-width:76px}.player-name{font-size:12px}}
@media(max-width:360px){.person{--player-photo-width:68px}.player-name{font-size:11px}}
