:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#183d41;background:#f5f3eb;font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible{outline:3px solid #e59639;outline-offset:4px}[hidden]{display:none!important}
.app{max-width:640px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.brand{display:flex;gap:9px;align-items:center}.brand-icon{font-size:32px;color:#237970}.eyebrow{display:block;font-size:8px;font-weight:700;letter-spacing:1.4px;margin-bottom:4px;color:#607774}h1{font-size:19px;margin:0;letter-spacing:1px;white-space:nowrap}
.quiet-button{min-height:44px;border:1px solid #c5d1c9;border-radius:999px;padding:8px 12px;background:transparent;color:#254e4b;font-size:13px;white-space:nowrap}.quiet-button span{margin-right:2px;font-weight:800}
.scoreboard{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;max-width:440px;margin:0 auto 14px}.score-side{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.team-label{white-space:nowrap;font-size:12px;display:flex;align-items:center;gap:5px}.team-label i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#258679}.cpu-score .team-label i{background:#d27655}.score-side strong{font-size:34px;font-weight:650;font-variant-numeric:tabular-nums}.cpu-score strong{color:#bc684f}.player-score strong{color:#277b70}.match-label{text-align:center}.match-label span{font-size:8px;letter-spacing:1.7px;display:block;color:#6f807a;margin-bottom:5px}.match-label b{font-size:12px;letter-spacing:2px;font-weight:500}
.arena{position:relative;width:var(--board-width, min(100%,360px));aspect-ratio:3/5;margin:auto;filter:drop-shadow(0 12px 13px #183e4118);border-radius:22px;overflow:hidden;background:#e4eee7}
canvas{display:block;width:100%;height:100%;touch-action:pinch-zoom;user-select:none;-webkit-user-select:none}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#eef3e359;padding:14px}.start-card{background:#fcfcf2f5;border:1px solid #ffffff;border-radius:16px;text-align:center;width:100%;max-width:300px;padding:24px 14px;box-shadow:0 10px 40px #173f4220}.card-label{font-size:10px;color:#56827a;letter-spacing:3px;font-weight:700}h2{font-size:25px;line-height:1.6;letter-spacing:2px;margin:12px 0}.start-card p{font-size:13px;line-height:1.9;color:#5f7470;margin:8px 0 20px}.primary-button{min-height:52px;width:100%;border:0;border-radius:10px;background:#225f58;color:white;font-weight:600;font-size:17px;box-shadow:0 3px 0 #16453f}.primary-button span{margin-left:20px;font-size:22px}
.countdown{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;gap:16px;color:#173f42;background:#f7f7ee35}.countdown span{font-size:15px;background:#fcfcf2ed;padding:10px 16px;border-radius:30px}.countdown strong{font-size:64px;text-shadow:0 1px 15px #fff}
.footer{text-align:center;margin-top:14px}.instruction{font-size:14px;font-weight:600;margin:0 0 6px;letter-spacing:.5px}.instruction span{font-size:20px;margin-right:6px;color:#327c71}.hint{font-size:11px;color:#75867e;margin:0}.offline-status{font-size:10px;line-height:1.5;color:#738078;margin:8px 0 0;min-height:15px}#boot-status{font-size:13px;color:#9b482f;margin:8px 0 0}#boot-status:empty{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:360px){h1{font-size:16px}.eyebrow{font-size:7px}.brand-icon{font-size:26px}.quiet-button{font-size:11px;padding:8px}.score-side{gap:6px}.team-label{font-size:10px}.start-card{padding:18px 12px}h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
