:root{--batter: #b9c5ff;--pitcher: #ff9d8a;--ball: #ffffff;--shadow: #04060a;--bat: #e0b070;--base: #a9b4c6;--grass: #3f9c56;--grass2: #27703b;--dirt: #8a6440;--line: #eef2f8;--fence: #2b4478;--fence-top: #ffd54a;--pole: #ffd54a;--crowd: #6f7b94;--crowd2: #48536b;--lit: #ffd54a}:root[data-theme=light]{--batter: #27348f;--pitcher: #a4301c;--ball: #1f2430;--shadow: #55604f;--bat: #7a4a10;--base: #fffdf8;--grass: #72b57a;--grass2: #48965a;--dirt: #c39a6b;--line: #ffffff;--fence: #4d63a8;--fence-top: #c98a00;--pole: #c98a00;--crowd: #7c8496;--crowd2: #a3a7b0;--lit: #9a6200}html,body{height:100%;overscroll-behavior:none}.app{height:calc(100vh - var(--header-h));height:calc(100dvh - var(--header-h) - env(safe-area-inset-bottom));max-width:720px;margin:0 auto;padding:12px 16px 6px;display:flex;flex-direction:column;align-items:center;gap:8px;user-select:none;-webkit-user-select:none}.hud-row2{margin-top:-4px;min-height:17px}.hud .hud-strikes,.demo-hud .demo-strikes{color:var(--danger);letter-spacing:2px}.hud-last{color:var(--text)}.board-wrap{flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}.board{position:relative;touch-action:none;line-height:0;cursor:pointer}canvas{display:block}.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center;background:var(--overlay-bg);line-height:1.4;border-radius:6px}.overlay[hidden]{display:none}.overlay-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.overlay-actions .btn[hidden]{display:none}.overlay-big{font-size:clamp(22px,6vw,34px);font-weight:700;color:var(--accent-text)}.overlay-small{font-size:14px;color:var(--text);max-width:34ch}.overlay-small .hl-batter{color:var(--batter);font-weight:700}.overlay-small .hl-ball{color:var(--ball);font-weight:700}.overlay-small .row{display:block}.overlay-small .muted{color:var(--muted)}.hint{margin:0;font-size:12px;color:var(--muted);text-align:center}.hint-touch{display:none}p.hint-touch{margin:0;font-size:12px;color:var(--muted);text-align:center}@media(pointer:coarse){.hint{display:none}.hint-touch{display:inline}p.hint-touch{display:block}}.demo-msg.ok{color:var(--ok)}.g-batter{color:var(--batter);font-weight:700}.g-pitcher{color:var(--pitcher);font-weight:700}.g-ball{color:var(--ball);font-weight:700}.g-bat{color:var(--bat);font-weight:700}html.racing,html.racing body{overflow:hidden;touch-action:none}
