*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overscroll-behavior:none;touch-action:manipulation}body{font-family:system-ui,Arial,sans-serif;color:#fff;text-align:center;display:flex;flex-direction:column;min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);user-select:none;background:linear-gradient(180deg,#0a1a3a,#1a4a8a)}header{padding:10px;background:rgba(0,0,0,.35)}h1{margin:0;font-size:clamp(18px,5vw,32px)}h1 span{color:#ffd23f}header p{margin:4px 0 0;opacity:.9;font-size:clamp(11px,3.2vw,15px)}#hud{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px}.pill{background:#fff;color:#123;padding:9px 13px;border-radius:999px;font-weight:800;min-height:44px;display:flex;align-items:center}#wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:0 10px 10px}#stage{position:relative;width:min(94vw,58dvh,520px);aspect-ratio:3/4;background:linear-gradient(180deg,#0a2a5a,#1a6aaa);border-radius:18px;overflow:hidden;border:3px solid #ffd23f}canvas{width:100%;height:100%;display:block}button{padding:14px 20px;min-height:52px;border:0;border-radius:14px;background:#ffd23f;color:#123;font-weight:900;cursor:pointer;font-size:16px}button.secondary{background:#fff}#msg{min-height:28px;color:#ffd23f;font-weight:800;background:rgba(0,0,0,.3);padding:6px 12px;border-radius:999px}#overlay{position:absolute;inset:0;background:rgba(0,0,0,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;z-index:10}.hidden{display:none!important}
