*{box-sizing:border-box}html,body{margin:0;background:#fff;color:#2a2328;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif}body{overscroll-behavior:none}main{padding:4px 8px max(6px,env(safe-area-inset-bottom));max-width:440px;margin:auto}.stage{position:relative;height:calc(100svh - 172px);min-height:350px;max-height:740px;border-radius:12px;overflow:hidden;background:#101c2b}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;top:8px;left:12px;right:8px;display:flex;align-items:center;gap:12px;color:#fff;font-size:13px;pointer-events:none}.hud span{background:#172638;padding:7px 10px;border-radius:8px}.hud button{margin-left:auto;pointer-events:auto}button{font:inherit;min-height:44px;min-width:44px;background:#f3f4f6;color:#2a2328;border:0;border-radius:8px;font-weight:700;padding:10px 16px}button:disabled{opacity:.45}#overlay{position:absolute;inset:0;background:#08111ac9;display:flex;align-items:center;justify-content:center;padding:20px}#overlay[hidden],[hidden]{display:none!important}.panel{background:white;border-radius:12px;padding:22px 20px;text-align:center;width:100%;max-width:320px}.panel img{border-radius:50%;object-fit:cover;border:3px solid #cba95b}.eyebrow{font-size:12px;color:#6e626a;margin:8px 0}.panel h2{font-size:19px;margin:10px 0}.panel p{font-size:13px;line-height:1.65}.panel #play{width:100%;background:#f3f4f6}.panel #restart{width:100%;margin-top:8px}#best{font-size:12px;color:#6e626a}.buddy{display:flex;align-items:center;gap:10px;padding:7px 4px 0;min-height:62px}.buddy img{border-radius:50%;object-fit:cover;border:2px solid #cba95b}.buddy strong{font-size:11px;color:#6e626a}.buddy p{font-size:13px;margin:3px 0}#feedback{position:absolute;top:71%;width:100%;text-align:center;color:#f8dc87;font-size:22px;font-weight:800;pointer-events:none;text-shadow:0 2px 6px #000;transition:opacity .25s}#feedback:empty{opacity:0}@media(prefers-reduced-motion:reduce){#feedback{transition:none}}

.panel img{width:clamp(76px,16svh,132px);height:clamp(76px,16svh,132px)}.panel{padding:16px}.panel h2{margin:8px 0}.panel p{margin:8px 0}#summary{max-width:250px;margin:8px auto}
