*{box-sizing:border-box}body{margin:0;background:#102c31;color:#f5f2d5;font-family:system-ui,sans-serif}main{max-width:650px;margin:auto;padding:18px 14px 60px}a{color:#a3e4d0}.back{display:inline-block;margin-bottom:14px}header{margin:16px 0 12px}h1{font-size:clamp(21px,4vw,30px);margin:4px 0}header p{margin:5px 0;color:#b9d7cc;font-size:13px}.eyebrow{letter-spacing:.15em;font-size:10px}button{font:inherit;font-weight:700;min-height:46px;border:1px solid #92b9a5;border-radius:10px;background:#234b4e;color:#fff;padding:10px;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ffd36b;outline-offset:3px}button:disabled{opacity:.5;cursor:default}.primary{background:#fed16a;color:#163b3a;border-color:#fed16a}#swing{background:#dc6555;border-color:#ffad8c;font-size:20px}.match-info{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin:10px 0}.field{position:relative;border:3px solid #74ac91;border-radius:12px;overflow:hidden;background:#8fc7c3}canvas{display:block;width:100%;height:auto;image-rendering:pixelated}#banner{position:absolute;inset:14px 0 auto;text-align:center;color:#fff7bf;font-size:clamp(17px,4vw,28px);font-weight:900;text-shadow:2px 2px #173c3a;pointer-events:none}#status{min-height:42px;font-size:14px;line-height:1.5;margin:12px 0}.controls{display:grid;grid-template-columns:1fr 1.3fr;gap:10px}.minor{display:flex;gap:8px;margin-top:8px}.minor button{flex:1;font-size:12px}#run-note{font-size:11px;color:#b4cec5;min-height:26px}#history{display:flex;gap:4px;flex-wrap:wrap;margin:12px 0}#history span{padding:5px;background:#234b4e;border-radius:5px;font-size:11px}details{margin:20px 0;color:#cbe0d4;font-size:13px;line-height:1.7}summary{cursor:pointer;font-weight:700}.ranking h2{color:#214f55}.ranking{margin-top:24px}#play-access{padding:25px;background:#24454b;border-radius:12px}[hidden]{display:none!important}@media(max-width:400px){main{padding:12px 12px 40px}header{margin:10px 0}.eyebrow{display:none}header p{font-size:11px}#status{font-size:12px;min-height:36px;margin:8px 0}.match-info{font-size:11px}.minor button{padding:8px 4px}.controls{gap:8px}}
/* Sunset ballpark: the timing lane stays directly above the thumb controls. */
body{background:radial-gradient(ellipse at 80% 0,#214956 0,transparent 55%),#0b222b}main{max-width:650px;padding-bottom:max(40px,env(safe-area-inset-bottom))}header{border-left:3px solid #ffce75;padding-left:12px}header h1{letter-spacing:-.04em}.eyebrow{color:#ffce75}.field{border-color:#669d88;box-shadow:0 12px 40px #0004}.field[data-result=homerun]{border-color:#ffd477;box-shadow:0 0 24px #ffd47733}.match-info{align-items:center;flex-wrap:wrap}#home-runs{color:#ffd477;font-weight:900}#weather{margin-left:auto}.timing-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#a9c7c3;margin:10px 0 5px;letter-spacing:.04em}.timing-heading b{font-size:11px;color:#ffe0a0}#timing{height:14px;background:#07191f;border:1px solid #46716d;border-radius:8px;position:relative;overflow:hidden}.sweet-spot{position:absolute;left:69%;width:12%;top:0;bottom:0;background:#9e7c3c}.sweet-spot:after{content:'';position:absolute;left:45%;top:0;height:100%;width:10%;background:#ffe5a1}#timing-cursor{position:absolute;left:0;top:0;width:4px;height:100%;background:#fff;border-radius:2px;box-shadow:0 0 6px white}#timing[data-contact=true]{border-color:#ffe5a1}#swing{min-height:58px;background:linear-gradient(#ee9672,#cc594f);box-shadow:0 4px 0 #843c3c;letter-spacing:.06em}#swing:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #843c3c}.primary{background:linear-gradient(#ffe4a5,#efbd59)}button:disabled{opacity:.4}#history{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#history span{min-width:0;text-align:center;font-variant-numeric:tabular-nums;border:1px solid #41615c;background:#173c42;padding:7px 2px}#history [data-result=hr]{background:#4f4830;border-color:#cda855;color:#ffe5a1}#history [data-result=miss]{color:#adc1bc}#history [data-result=hit]{color:#b6f2d7}summary{min-height:44px;padding:10px 0}.back{min-height:36px;padding-top:6px}.ranking input{max-width:100%}@media(max-width:400px){main{padding-top:6px}.back{margin-bottom:4px}header{margin:8px 0}h1{font-size:22px}.match-info{margin:8px 0}#status{min-height:38px}#swing{min-height:54px}#run-note{margin:10px 0 4px}.timing-heading{margin-top:7px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
