.game-title p{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#e8452c;font-weight:700}
.game-title h1{font-size:1.5rem;color:#1b2f78;margin:.1rem 0 .6rem}
.ar-stage{position:relative;width:100%;height:clamp(440px,calc(100vh - 200px),680px);height:clamp(440px,calc(100svh - 200px),680px);border:3px solid #0e1946;border-radius:6px;background:#f2eee3;overflow:hidden;box-shadow:5px 5px 0 #e8452c;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.ar-stage canvas#cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:ew-resize}
.ar-hud{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(.5rem,env(safe-area-inset-top)) .6rem 0;pointer-events:none}
.ar-read{display:flex;flex-direction:column;gap:1px;background:#f2eeE3cc;background:rgba(242,238,227,.86);border:2px solid #0e1946;border-radius:4px;padding:.25rem .5rem;min-width:7.5rem}
.ar-read b{font-size:1.5rem;line-height:1.1;color:#1b2f78;font-variant-numeric:tabular-nums}
.ar-read span{font-size:.72rem;color:#0e1946}
.ar-btns{display:flex;gap:.4rem;pointer-events:auto}
.ar-ico{width:46px;height:46px;border:2px solid #0e1946;border-radius:4px;background:#f2eee3;color:#1b2f78;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:2px 2px 0 #0e1946}
.ar-ico:active{transform:translate(2px,2px);box-shadow:none}
.ar-ico i{display:block;width:5px;height:18px;background:#1b2f78}
.ar-snd .x{display:none}.ar-snd.off .x{display:block}.ar-snd.off .w{display:none}
.ar-toast{position:absolute;left:.7rem;right:.7rem;bottom:calc(1rem + env(safe-area-inset-bottom));padding:.55rem .75rem;background:#1b2f78;color:#f2eee3;border-radius:4px;font-size:.9rem;font-weight:600;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s;pointer-events:none}
.ar-toast.show{opacity:1;transform:none}
.ar-panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(242,238,227,.55)}
.ar-panel[hidden]{display:none}
.ar-card{width:100%;max-width:330px;background:#f2eee3;border:3px solid #0e1946;border-radius:6px;padding:1rem;display:flex;flex-direction:column;gap:.55rem;align-items:stretch;text-align:center;box-shadow:4px 4px 0 #1b2f78;animation:arIn .3s ease-out}
@keyframes arIn{from{opacity:0;transform:translateY(10px) rotate(-.6deg)}to{opacity:1;transform:none}}
.ar-kick{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:#e8452c;font-weight:800}
.ar-card h2{font-size:2.1rem;line-height:1;color:#1b2f78;letter-spacing:-.01em}
.ar-sub{font-size:.85rem;color:#0e1946}
.ar-unlock{font-weight:700;color:#1b2f78}
.ar-best{font-size:.85rem;font-weight:700;color:#0e1946;font-variant-numeric:tabular-nums}
.ar-tip{font-size:.78rem;color:#3b4a80}
.ar-go,.ar-second{min-height:50px;border:3px solid #0e1946;border-radius:4px;font:inherit;font-weight:800;font-size:1.05rem;cursor:pointer;color:#f2eee3;background:#e8452c;box-shadow:3px 3px 0 #0e1946}
.ar-second{background:#f2eee3;color:#1b2f78;min-height:46px;font-size:.95rem}
.ar-go:active,.ar-second:active{transform:translate(3px,3px);box-shadow:none}
.ar-seg{display:flex;border:2px solid #0e1946;border-radius:4px;overflow:hidden}
.ar-seg button{flex:1;min-height:44px;border:0;background:#f2eee3;font:inherit;font-weight:700;color:#1b2f78;cursor:pointer}
.ar-seg button+button{border-left:2px solid #0e1946}
.ar-seg button[aria-pressed=true]{background:#1b2f78;color:#f2eee3}
.ar-pick{display:flex;align-items:center;justify-content:space-between;gap:.4rem}
.ar-arrow{width:48px;height:48px;border:2px solid #0e1946;border-radius:4px;background:#f2eee3;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ar-arrow span{display:block;width:0;height:0;border:9px solid transparent}
.ar-arrow .l{border-right:12px solid #1b2f78;border-left:0}
.ar-arrow .r{border-left:12px solid #1b2f78;border-right:0}
.ar-sled{display:flex;flex-direction:column;align-items:center;min-height:96px;flex:1}
.ar-sled canvas{width:56px;height:56px}
.ar-sled b{color:#1b2f78}
.ar-sled small{font-size:.75rem;color:#3b4a80;min-height:2em}
.ar-go:focus-visible,.ar-second:focus-visible,.ar-ico:focus-visible,.ar-seg button:focus-visible,.ar-arrow:focus-visible{outline:3px solid #f2b134;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.ar-card,.ar-toast{animation:none!important;transition:none!important}}
@media (max-height:520px){.ar-card h2{font-size:1.6rem}.ar-sled{min-height:80px}}
.ar-combo{position:absolute;left:50%;top:5.2rem;transform:translateX(-50%);padding:.2rem .7rem;background:#f2b134;color:#0e1946;border:2px solid #0e1946;border-radius:4px;font-weight:800;font-size:.95rem;box-shadow:2px 2px 0 #0e1946;pointer-events:none;white-space:nowrap}
.ar-combo[hidden]{display:none}
.ar-combo.pulse{animation:arPulse .18s ease-out}
@keyframes arPulse{from{transform:translateX(-50%) scale(1.25)}to{transform:translateX(-50%) scale(1)}}
.ar-coach{position:absolute;left:0;right:0;bottom:22%;display:flex;flex-direction:column;align-items:center;gap:.5rem;pointer-events:none;color:#0e1946;text-shadow:0 0 6px #f2eee3,0 0 3px #f2eee3}
.ar-coach[hidden]{display:none}
.ar-hand{display:block;width:34px;height:34px;border-radius:50%;background:#e8452c;border:3px solid #0e1946;animation:arDrag 1.6s ease-in-out infinite}
@keyframes arDrag{0%,100%{transform:translateX(-46px)}50%{transform:translateX(46px)}}
.ar-prog{display:flex;flex-direction:column;gap:.25rem}
.ar-prog[hidden]{display:none}
.ar-bar{height:12px;border:2px solid #0e1946;border-radius:3px;background:#f2eee3;overflow:hidden}
.ar-bar i{display:block;height:100%;width:0;background:#e8452c;transition:width .6s ease-out}
.ar-prog small{font-size:.75rem;color:#3b4a80}
.ar-streak{font-size:.8rem;font-weight:700;color:#e8452c}
.ar-streak[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.ar-hand,.ar-combo.pulse{animation:none!important}.ar-hand{transform:none}.ar-bar i{transition:none}}
/* full screen (shell adds html.pip-immersive in both native and immersive modes) */
html.pip-immersive .game-wrap{display:flex;flex-direction:column;align-items:center;overflow:hidden!important;padding-left:0;padding-right:0;padding-bottom:max(6px,env(safe-area-inset-bottom))}
html.pip-immersive .ar-stage{flex:1 1 auto;min-height:0;height:auto;width:min(100%,calc(var(--pip-vvh,100dvh)*.62));margin:0 auto;border-width:0;border-radius:0;box-shadow:none}
html.pip-immersive .hub-bar,html.pip-immersive .ad-well,html.pip-immersive .below-content{display:none}
html.pip-immersive .ar-ico{width:48px;height:48px}
@media (orientation:landscape) and (max-height:520px){html.pip-immersive .ar-card{padding:.6rem;gap:.35rem}html.pip-immersive .ar-card h2{font-size:1.4rem}html.pip-immersive .ar-sled{min-height:64px}html.pip-immersive .ar-tip{display:none}}
@media (orientation:landscape){html.pip-immersive .ar-stage{width:min(100%,calc(var(--pip-vvh,100dvh)*1.15))}}
