@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;font-family:'DM Sans',sans-serif;background:#101928;color:#eff6f5;--lime:#b9f56b;--muted:#9cacbe;--pink:#ff94b5}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:4px}button svg,a svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}svg{display:block}button{color:inherit}button:disabled{opacity:.4}[hidden]{display:none!important}.game{height:100dvh;display:flex;flex-direction:column;max-width:1800px;margin:auto;background:#101928;isolation:isolate}.topbar{flex:none;height:84px;display:flex;align-items:center;gap:20px;padding:12px 34px;border-bottom:1px solid #ffffff0b;z-index:3;background:#101928}.back{display:grid;place-items:center;width:36px;height:44px;color:#a4b3c4;border-right:1px solid #344050;padding-right:16px}.back svg{width:24px}.brand{display:flex;flex-direction:column;gap:0;line-height:1}.brand>span{font-size:11px;font-weight:700;letter-spacing:.21em;color:var(--lime);margin-bottom:4px}.brand strong{display:flex;gap:10px;align-items:center;font:800 29px/.95 'Barlow Condensed',Impact,sans-serif;letter-spacing:.02em}.brand-spark{font:32px/1 Arial,sans-serif;color:var(--lime)}.top-actions{display:flex;gap:9px;margin-left:auto}.icon-button{position:relative;display:grid;place-items:center;border:1px solid #334153;background:#1a2738;border-radius:12px;width:44px;height:44px}.icon-button svg{width:21px}.icon-button:hover{background:#28374b}.mute-slash{display:none;position:absolute;width:25px;height:2px;background:#ff99ac;transform:rotate(-45deg)}#sound[aria-pressed=true] .mute-slash{display:block}
.arena{position:relative;flex:1;min-height:0;overflow:hidden;background:#101928}#stage{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;top:26px;left:36px;right:36px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.score-block{display:flex;flex-direction:column}.small-label{font-size:10px;letter-spacing:.16em;font-weight:700;color:#9cacc0}.score-block>strong{font:700 50px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.02em;font-variant-numeric:tabular-nums;margin:4px 0 6px}.best{font-size:10px;letter-spacing:.12em;color:#8e9fb4}.best b{margin-left:6px;color:#d4dfed;font-variant-numeric:tabular-nums}.run-stats{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.lives{display:flex;gap:5px}.lives svg{width:23px;height:23px;fill:#ff9abc;stroke:#ffbad0;stroke-width:.8}.lives svg.lost{fill:#ffffff0a;stroke:#596478}.run-stats>span{font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.06em;color:#aabbca}.target{position:absolute;top:141px;left:36px;display:flex;align-items:center;gap:9px;background:#1c2a3bd9;border:1px solid #435166;border-radius:14px;padding:9px 15px 9px 8px;width:167px;backdrop-filter:blur(12px);pointer-events:none}.target-icon{color:var(--lime);width:41px;height:49px}.target-icon svg{height:100%;width:100%}.target-info{display:flex;flex:1;flex-direction:column;gap:3px}.target-info strong{font-weight:700;font-size:18px}.target-info .small-label{font-size:8px}.arrival-track{height:3px;margin:4px 0 1px;background:#111a26;border-radius:3px;overflow:hidden}.arrival-track i{display:block;width:0;height:100%;background:var(--lime);border-radius:3px;transition:width .08s linear}.pace{position:absolute;right:36px;bottom:28px;display:flex;align-items:center;gap:12px;color:#b3c7d5;font-size:12px;pointer-events:none}.pace strong{border:1px solid #5c6a7a;border-radius:8px;padding:5px 8px;color:var(--lime);font-size:12px}.streak{position:absolute;bottom:24px;left:36px;display:flex;align-items:center;gap:5px;font-size:13px;color:#e3edf4;pointer-events:none}.streak-star{color:var(--lime);font-size:23px;margin-right:3px}.streak>span:last-child{margin-left:8px;border-left:1px solid #55626e;padding-left:12px;color:var(--lime);font-size:11px}
.overlay{position:absolute;z-index:5;background:linear-gradient(140deg,#172636f5,#121e2df2);border:1px solid #71859940;box-shadow:0 22px 70px #02061160;border-radius:24px;padding:29px;backdrop-filter:blur(18px)}.start-panel{left:36px;top:50%;transform:translateY(-45%);width:320px}.intro-tag{font-size:10px;font-weight:700;letter-spacing:.19em;color:var(--lime)}h1,h2{font:700 41px/.99 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.015em;margin:12px 0 15px}.overlay p{font-size:13px;line-height:1.65;color:#b3c2d2;margin:0 0 23px}.primary{border:0;background:var(--lime);color:#1a2c12;min-height:49px;width:100%;border-radius:10px;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;box-shadow:0 5px 0 #68a934;transition:transform .12s,background .12s}.primary:hover{background:#ceff92;transform:translateY(-1px)}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #68a934}.primary svg{width:19px}.rules{display:flex;gap:9px;justify-content:space-between;margin-top:21px;font-size:8px;font-weight:500;color:#a5b6c5;white-space:nowrap}.modal{left:50%;top:50%;transform:translate(-50%,-50%);width:min(370px,calc(100% - 32px));text-align:center}.modal .primary{justify-content:center;gap:20px}.secondary{background:none;border:0;color:#b3c2d2;font-weight:600;font-size:13px;margin-top:15px;padding:10px 16px}.secondary:hover{color:white}.final-score{display:block;color:var(--lime);font:700 68px/.95 'Barlow Condensed',Impact,sans-serif;margin-top:20px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:25px -10px}.result-grid>div{display:flex;flex-direction:column;gap:6px}.result-grid b{font-size:21px;font-variant-numeric:tabular-nums}.result-grid span{font-size:10px;color:#a2b3c5}.result-grid>div+div{border-left:1px solid #51627544}.feedback{position:absolute;top:30%;left:50%;transform:translate(-50%,-50%);font:700 31px/1.1 'Barlow Condensed',Impact,sans-serif;color:var(--lime);text-shadow:0 3px 24px #000;pointer-events:none;text-align:center;opacity:0;transition:opacity .14s;white-space:pre-line}.feedback.show{opacity:1}.feedback.miss{color:#ff9abc}.feedback small{font:700 12px/1.6 'DM Sans',sans-serif;display:block}.countdown{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font:800 100px/1 'Barlow Condensed',Impact,sans-serif;color:#e5ffb7;text-shadow:0 8px 50px #091824;pointer-events:none}.game[data-mode=paused] .arena:after,.game[data-mode=over] .arena:after{content:'';position:absolute;inset:0;background:#060e1b75;backdrop-filter:blur(4px);z-index:4}
.pose-deck{flex:none;background:#142132;padding:15px 36px 13px;border-top:1px solid #50677838;z-index:6;padding-bottom:max(13px,env(safe-area-inset-bottom))}.deck-caption{display:flex;justify-content:space-between;margin-bottom:12px;font-size:10px;letter-spacing:.12em;font-weight:700;color:#a2b7cb}.deck-caption>span:first-child{color:var(--lime)}.keyboard-hint{letter-spacing:0;font-weight:400;font-size:11px}.keyboard-hint b{font-weight:600;color:#dfe9f1}.pose-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;max-width:870px;margin:auto}.pose-button{position:relative;height:93px;background:#1f3043;border:1px solid #42566c;border-bottom:3px solid #0a1523;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#c2d3e4;transition:background .12s,border-color .12s,transform .12s}.pose-button svg{height:55px;width:54px}.pose-button .pose-name{font-size:11px;font-weight:700}.pose-key{position:absolute;left:9px;top:8px;font-size:9px;color:#8096ac}.pose-button:hover{border-color:#799aba;background:#293f54;transform:translateY(-2px)}.pose-button[aria-pressed=true]{color:#caff95;background:#334b2a;border-color:var(--lime);border-bottom-color:#7eba49;box-shadow:0 0 22px #b9f56b0c}.pose-button[aria-pressed=true]:after{content:'';position:absolute;top:9px;right:9px;width:6px;height:6px;border-radius:50%;background:var(--lime)}.pose-button:active{transform:translateY(1px)}.help{text-align:center;font-size:10px;color:#8da4b9;margin:10px 0 0}.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media(min-width:1250px){.start-panel{left:5%;width:350px;padding:33px}.topbar{padding-left:4%;padding-right:4%}.hud{left:4%;right:4%}.target{left:4%}.pose-deck{padding-left:4%;padding-right:4%}}
@media(max-width:650px){.topbar{height:69px;padding:9px 15px;gap:12px;padding-top:max(9px,env(safe-area-inset-top))}.brand strong{font-size:24px;gap:7px}.brand>span{font-size:9px}.brand-spark{font-size:26px}.back{width:28px;padding-right:8px}.back svg{width:19px}.top-actions{gap:6px}.icon-button{width:35px;height:38px;border-radius:10px}.icon-button svg{width:18px}.hud{top:16px;left:19px;right:19px}.score-block>strong{font-size:40px}.small-label{font-size:9px}.lives svg{width:20px;height:20px}.run-stats{gap:6px}.target{left:18px;top:112px;width:140px;padding:6px 10px 6px 5px;gap:5px}.target-icon{width:35px;height:44px}.target-info strong{font-size:15px}.pace{right:16px;bottom:12px;gap:7px;font-size:10px}.pace strong{font-size:10px;padding:4px 6px}.pace>span{display:none}.streak{left:18px;bottom:12px;font-size:10px;gap:3px}.streak-star{font-size:18px}.streak>span:last-child{font-size:9px;padding-left:7px;margin-left:5px}.start-panel{top:40%;left:18px;padding:21px;width:244px;transform:translateY(-20%)}h1,h2{font-size:33px;margin:10px 0 12px}.intro-tag{font-size:9px}.overlay p{font-size:11px;margin-bottom:16px}.primary{min-height:44px;font-size:13px;padding:0 14px}.rules{font-size:7px;gap:5px;margin-top:16px}.pose-deck{padding:11px 12px max(10px,env(safe-area-inset-bottom))}.deck-caption{margin-bottom:9px;font-size:9px}.keyboard-hint{font-size:9px}.pose-options{gap:5px}.pose-button{height:79px;border-radius:10px;gap:1px}.pose-button svg{height:46px;width:100%}.pose-name{font-size:9px!important}.pose-key{display:none}.pose-button[aria-pressed=true]:after{width:4px;height:4px;right:5px;top:5px}.help{font-size:9px;margin-top:8px}.feedback{font-size:27px;left:59%;top:36%}.countdown{font-size:85px}.modal{padding:24px}.final-score{font-size:60px}.result-grid{margin:20px -6px}.result-grid b{font-size:20px}.result-grid span{font-size:9px}}
@media(max-height:600px) and (min-width:650px){.topbar{height:55px;padding-top:5px;padding-bottom:5px}.brand strong{font-size:23px}.brand>span{font-size:8px}.icon-button{height:34px;width:36px}.pose-deck{padding:7px 24px}.deck-caption{margin-bottom:5px}.pose-button{height:63px;flex-direction:row;gap:5px}.pose-button svg{height:49px;width:44px}.pose-key{display:none}.help{display:none}.hud{top:12px;left:24px;right:24px}.score-block>strong{font-size:33px}.target{top:100px;left:24px;padding:5px 8px;width:130px}.target-icon{height:35px}.target-info strong{font-size:14px}.start-panel{top:50%;left:190px;transform:translateY(-50%);padding:20px;width:280px}.start-panel h1{font-size:32px}.start-panel p{font-size:11px;margin-bottom:12px}.rules{margin-top:12px}.modal{padding:18px;width:350px}.modal h2{font-size:30px;margin:8px 0}.modal p{margin-bottom:14px}.final-score{font-size:45px;margin-top:8px}.result-grid{margin:12px 0}.secondary{margin-top:7px;padding:6px}.pace{bottom:9px;right:22px}.streak{bottom:9px;left:24px}}
.difficulty-options{display:flex;justify-content:center;gap:8px;max-width:450px;margin:0 auto 14px}.difficulty-options button{flex:1;min-height:45px;padding:7px 12px;background:#1f3043;border:1px solid #42566c;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px}.difficulty-options strong{font-size:13px}.difficulty-options span{font-size:10px;color:#9eb2c4}.difficulty-options button[aria-pressed=true]{background:#334b2a;border-color:var(--lime);color:var(--lime)}.difficulty-options button[aria-pressed=true] span{color:#d3e9b9}.difficulty-options button:hover{border-color:#b9f56b}.pose-options{grid-template-columns:repeat(var(--pose-count,3),minmax(0,1fr));max-width:calc(var(--pose-count,3) * 145px)}
@media(max-width:650px){.difficulty-options{gap:6px;margin-bottom:11px}.difficulty-options button{padding:6px;gap:3px;flex-direction:column;min-height:44px}.difficulty-options strong{font-size:12px}.difficulty-options span{font-size:9px}.pose-button svg{max-width:58px}}
@media(max-height:600px) and (min-width:650px){.difficulty-options{position:absolute;top:8px;left:auto;right:22px;width:min(340px,55vw);z-index:10;margin:0}.difficulty-options button{min-height:35px;padding:4px 8px}.difficulty-options strong{font-size:11px}.difficulty-options span{font-size:8px}.game[data-mode=menu] .top-actions{visibility:hidden}}
.game[data-mode=menu] .hud{visibility:hidden}
@media(max-width:650px){.start-panel{top:22px;transform:none;width:238px;padding:20px}.start-panel h1{font-size:32px}.start-panel p{font-size:11px}.start-panel .rules{font-size:7px}}
@media(max-height:600px) and (min-width:650px){.start-panel{left:24px;width:243px;padding:18px}.start-panel h1{font-size:29px}.start-panel .rules{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
/* Optional voice and shared scores. */
.text-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid #334153;border-radius:12px;background:#1a2738;color:#e6efdc;font-size:12px;font-weight:700;white-space:nowrap}.text-button:hover{background:#28374b}.deck-caption{align-items:center;min-height:30px;margin-bottom:8px}.deck-tools{display:flex;align-items:center;gap:12px;letter-spacing:0}.voice-toggle{min-height:34px;padding:5px 11px;border:1px solid #42566c;border-radius:8px;background:#1f3043;font-size:11px;font-weight:700;white-space:nowrap}.voice-toggle[aria-pressed=true]{border-color:var(--lime);color:var(--lime);background:#334b2a}.voice-status{min-height:12px;color:#c1d4e5}.voice-status[data-state=listening]{color:var(--lime)}
.utility-dialog{color:#eff6f5;background:#192839;border:1px solid #4b6177;border-radius:20px;padding:27px;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;text-align:center;box-shadow:0 20px 100px #0008}.utility-dialog::backdrop{background:#06101bd9;backdrop-filter:blur(5px)}.utility-dialog h2{font-size:37px}.utility-dialog p{font-size:13px;line-height:1.6;color:#bdcddc}.utility-dialog .primary{justify-content:center;margin-top:20px}.privacy-note{font-size:11px!important;line-height:1.5!important;color:#92aabd!important}.dialog-heading{display:flex;justify-content:space-between;align-items:start;text-align:left}.dialog-heading h2{margin-top:8px}.utility-dialog .difficulty-options{position:static;width:auto;margin:6px 0 15px;max-width:none}.utility-dialog .difficulty-options button{min-height:44px;font-size:12px;font-weight:700}.board-scores{margin:16px 0;padding:0;list-style:none;counter-reset:none}.board-scores li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:43px;border-bottom:1px solid #ffffff12;text-align:left;font-size:13px}.board-scores li:first-child{color:var(--lime)}.board-rank{font-variant-numeric:tabular-nums;color:#8aa1b5;font-size:11px}.board-scores li span:nth-child(2){overflow-wrap:anywhere}.board-scores strong{font-variant-numeric:tabular-nums}.board-scores li:first-child .board-rank{color:var(--lime)}
#end-panel{position:fixed;z-index:20;max-height:calc(100dvh - 32px);overflow:auto;width:min(400px,calc(100% - 28px));padding:24px}#end-panel h2{margin:8px 0}.score-form{text-align:left;padding:15px 0 0;border-top:1px solid #50627544}.score-form label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}.name-row{display:flex;align-items:stretch;gap:8px}.name-row input{flex:1;min-width:0;width:100%;padding:10px 12px;border:1px solid #526780;background:#0e1c2b;color:#fff;border-radius:9px;font:16px 'DM Sans',sans-serif;user-select:text;-webkit-user-select:text;touch-action:manipulation}.name-row input:focus{outline:2px solid var(--lime);outline-offset:2px}.name-row .primary{width:auto;flex-shrink:0;min-height:44px;padding:0 12px;font-size:12px;box-shadow:none}.score-form #name-note{font-size:10px;line-height:1.5;margin:9px 0 0;color:#95aabe}.score-form #score-status{font-size:11px;line-height:1.5;margin:8px 0 0;color:var(--lime)}#end-top-ten{min-height:40px;margin:2px 0 9px}#end-panel .result-grid{margin:18px 0}#end-panel .final-score{margin-top:13px}
@media(max-width:650px){.topbar{gap:8px}.top-actions{gap:5px}.topbar .text-button{min-width:37px;padding:0 6px;min-height:38px}.text-button span{display:none}.brand-spark{display:none}.brand strong{font-size:22px}.icon-button{min-height:38px}.deck-tools{gap:8px}.voice-toggle{font-size:10px;min-height:32px;padding:4px 8px}.keyboard-hint{display:none}.deck-caption{margin-bottom:7px}.utility-dialog{padding:22px}.utility-dialog h2{font-size:32px}.utility-dialog p{font-size:12px}#end-panel{padding:22px}#end-panel .final-score{font-size:51px}#end-panel .result-grid{margin:14px 0}#end-panel .result-grid b{font-size:18px}#end-panel .result-grid span{font-size:9px}}
@media(max-height:600px) and (min-width:650px){.difficulty-options{position:static;width:280px;margin:0 auto 5px}.difficulty-options button{min-height:35px}.game[data-mode=menu] .top-actions{visibility:visible}.deck-caption{min-height:26px;margin-bottom:4px}.voice-toggle{min-height:28px;padding:3px 9px}.pose-button{height:56px}.pose-button svg{height:43px}.voice-status{display:block;font-size:9px;margin:5px 0 0}.utility-dialog{padding:20px}.topbar .text-button{min-height:34px}.start-panel{max-height:calc(100% - 16px);overflow:auto}.start-panel h1{font-size:25px;margin:6px 0}.start-panel p{margin-bottom:8px;font-size:10px}.start-panel .primary{min-height:37px}.start-panel .rules{margin-top:10px}.start-panel .intro-tag{font-size:8px}}

.voice-cue{display:none;font-size:9px;color:#a9becf;line-height:1.2}.game[data-voice=on] .voice-cue{display:block}.game[data-voice=on] .pose-button svg{height:46px}.voice-status[data-state=starting]{color:#ffd592}
@media(max-width:650px){.voice-cue{font-size:8px}.game[data-voice=on] .pose-button svg{height:39px}}
@media(max-height:600px) and (min-width:650px){.game[data-voice=on] .pose-button{flex-wrap:wrap;column-gap:6px;row-gap:0}.game[data-voice=on] .pose-button svg{height:33px;width:35px}.game[data-voice=on] .voice-cue{width:100%;font-size:8px}}

.voice-retry{display:block;margin:5px auto 0;min-height:36px;padding:5px 14px;background:#20384b;border:1px solid #789bab;border-radius:8px;font-size:14px;color:#e5f5e7}.voice-help{font-size:14px;text-align:left;color:#c6d5e0}.voice-help summary{padding:10px 0;cursor:pointer}.voice-help p{font-size:14px!important}.voice-status{font-size:14px;line-height:1.3;min-height:18px}.voice-toggle{min-height:40px;font-size:14px}.pose-name{font-size:14px!important}
@media(max-width:650px){.game{min-height:460px}.pose-deck{padding-top:7px}.voice-status{font-size:12px;margin-top:5px}.voice-toggle{min-height:36px;font-size:12px}.voice-retry{min-height:32px;margin-top:3px}.pose-button{height:75px}.pose-button .pose-name{font-size:12px!important}.game[data-voice=on] .pose-button svg{height:36px}.utility-dialog p{font-size:14px}.game[data-mode=menu] .start-panel{padding:15px;width:230px}.game[data-mode=menu] .start-panel p{font-size:14px;line-height:1.4;margin-bottom:10px}.game[data-mode=menu] .rules{font-size:9px}.game[data-mode=menu] .start-panel h1{font-size:28px}.game[data-mode=menu] .difficulty-options{margin-bottom:6px}}
