:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:#17102a;color:#fff}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:radial-gradient(ellipse at 8% 0%,#fa168544,transparent 50%),radial-gradient(ellipse at 100% 100%,#00c9cc38,transparent 50%),#17102a}body:before,body:after{content:'';position:fixed;pointer-events:none;border-radius:50%;filter:blur(3px)}body:before{width:68vw;height:68vw;left:-48vw;top:23%;border:clamp(24px,7vw,100px) solid #ff248d;opacity:.3}body:after{width:60vw;height:60vw;right:-45vw;bottom:-10%;border:clamp(24px,6vw,80px) solid #dcff4a;opacity:.24}.game{position:relative;height:100%;height:100dvh;width:min(100%,780px);margin:auto;padding:max(60px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));display:grid;grid-template-rows:minmax(0,1fr) auto;gap:clamp(4px,2dvh,20px);touch-action:pan-y}.stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden}.record{position:relative;width:min(82vw,55dvh,410px);aspect-ratio:1;max-height:100%;border-radius:50%;display:grid;place-items:center;filter:drop-shadow(0 14px 34px #0006)}.progress-ring{position:absolute;width:100%;height:100%;inset:0;transform:rotate(-90deg);overflow:visible}.ring-track{fill:none;stroke:#ffffff12;stroke-width:8}.ring-fill{fill:none;stroke:url(#rainbow);stroke-width:8;stroke-linecap:round;transition:stroke-dashoffset .2s linear}.record-face{width:85%;height:85%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,2dvh,18px);background:radial-gradient(circle at 35% 15%,#41305d,#21172e 75%);border:1px solid #ffffff17;box-shadow:inset 0 0 30px #ffffff04,0 0 40px #ff168d16}.micro{font-size:clamp(8px,1.4dvh,11px);letter-spacing:3px;font-weight:700;color:#d0bddf}.play{width:43%;aspect-ratio:1;border:0;border-radius:50%;background:linear-gradient(145deg,#ff52a5,#f51b79);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 30px #fa197944,inset 0 1px #ffffff55;touch-action:manipulation;transition:transform .15s}.play:active{transform:scale(.94)}.play svg{width:44%;fill:currentColor}.play:disabled{opacity:.5;cursor:default}.clock{font-size:clamp(10px,1.8dvh,14px);font-variant-numeric:tabular-nums;letter-spacing:1px;color:#fff}.clock-divider{color:#8e799e;margin:0 8px}#duration{color:#a994ba}.playing .record-face{box-shadow:inset 0 0 40px #ff168d0a,0 0 60px #ff168d24}.controls{width:100%;min-width:0;text-align:center}#status{font-size:clamp(11px,1.7dvh,13px);line-height:1.35;color:#d0bddf;height:2.7em;margin:0 auto 6px;max-width:340px;display:grid;align-content:center;overflow:hidden}.swipe-hint{display:flex;align-items:center;justify-content:center;gap:14px;font-size:9px;font-weight:700;letter-spacing:2px;color:#b69bc9;margin:0 0 clamp(12px,3dvh,24px)}.swipe-hint span{font-size:21px;color:#e2ff70;font-weight:400}.scan{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;background:#dfff62;border:1px solid #e9ff9d;border-radius:100px;color:#22251b;font:750 13px Arial,Helvetica,sans-serif;cursor:pointer;box-shadow:0 5px 24px #dfff6214;touch-action:manipulation}.scan svg{width:19px;height:19px}.scan:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #00ece0;outline-offset:5px}video{max-width:100%;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:20px;background:#000}#scanner-panel{position:absolute;inset:0;background:#17102a;border:2px solid #00e6d8;border-radius:20px;overflow:hidden;display:grid;place-items:center}#reader{width:100%;height:100%;overflow:hidden}#reader video{object-fit:cover!important;width:100%!important;height:100%!important}#reader__scan_region{height:100%}#reader img{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}[hidden]{display:none!important}@media(orientation:landscape) and (max-height:550px){.game{width:min(100%,1000px);padding-top:20px;grid-template-columns:minmax(0,1fr) minmax(200px,.8fr);grid-template-rows:minmax(0,1fr);gap:16px}.controls{align-self:center;padding-top:30px}.record{width:min(77dvh,350px)}.micro{font-size:8px}.clock{font-size:11px}.record-face{gap:10px}}@media(max-height:360px){.game{padding-bottom:10px}.swipe-hint{margin-bottom:10px;font-size:8px;letter-spacing:1px}.scan{min-height:40px}#status{font-size:10px}.record-face{gap:6px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Size the circle from both available stage dimensions, including short screens. */
@supports (width: 1cqh){.stage{container-type:size}.record{width:min(90cqw,96cqh,410px);max-height:none}@media(orientation:landscape) and (max-height:550px){.record{width:min(96cqw,96cqh,350px)}}}

/* Decorative SVG must never intercept the central playback button. */
.progress-ring{pointer-events:none}.record-face{position:relative;z-index:1}
/* Preserve the camera video geometry used by the decoder. */
#reader{height:auto;max-height:100%;align-self:center}#reader__scan_region{height:auto}#reader video{height:auto!important;max-height:none;object-fit:contain!important;border-radius:0}
.language-switch{display:flex;justify-content:center;gap:8px;margin:0 0 10px}.language-switch button{border:1px solid #ffffff30;border-radius:100px;padding:8px 14px;min-height:36px;background:#ffffff09;color:#d0bddf;cursor:pointer}.language-switch button[aria-pressed="true"]{background:#dfff62;color:#22251b;border-color:#dfff62}.language-switch button:disabled{opacity:.4;cursor:default}
