:root{font-family:ui-rounded,'Arial Rounded MT Bold',Trebuchet MS,system-ui,sans-serif;color:#18384b;background:#053346;font-weight:800;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button,input,select{font:inherit}button{cursor:pointer;touch-action:none;border:0;color:inherit}button:focus-visible,summary:focus-visible{outline:4px solid #ffdb31;outline-offset:3px}button:active{transform:translateY(2px) scale(.97)}[hidden]{display:none!important}#app{position:relative;max-width:900px;height:100dvh;height:100%;margin:auto;display:flex;flex-direction:column;isolation:isolate;background:#7acdeb;padding-top:env(safe-area-inset-top)}#stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#7bd5f8}canvas{width:100%;height:100%;display:block;touch-action:none}header{position:absolute;top:12px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;gap:8px}.scoreboard{display:flex;align-items:center;gap:5px;background:linear-gradient(#c88b4e,#9e5a2e);border:3px solid #542d19;border-radius:17px;padding:5px 14px 7px 6px;box-shadow:inset 0 2px #ffe4ac,0 4px 0 #63351f;transform:rotate(-3deg);color:white;text-shadow:0 2px #542d19}.scoreboard small{display:block;font-size:9px;letter-spacing:1px}.scoreboard strong{font-size:28px;line-height:1}.star{font-size:35px;color:#ffdf32;-webkit-text-stroke:1px #a8600c}.square{pointer-events:auto;width:50px;height:50px;border-radius:17px;font-size:29px;background:linear-gradient(#71e5ff,#00a6e4 50%,#0076b6);color:white;border:3px solid #103a5e;box-shadow:inset 0 2px white,0 3px #102f4b}.title-mark{position:absolute;top:15px;left:50%;transform:translateX(-40%) rotate(-4deg);font-size:24px;font-weight:1000;color:white;text-shadow:2px 2px #114264,-2px -2px #114264,2px -2px #114264,-2px 2px #114264}.title-mark b{color:#ffe348}.title-mark span{display:block;text-align:center;font-size:7px;letter-spacing:2px;margin-top:2px}.behaviors{position:absolute;right:10px;top:92px;display:flex;flex-direction:column;gap:8px}.behaviors button{display:flex;align-items:center;flex-direction:column;justify-content:center;width:59px;height:57px;border:2px solid #124769;border-radius:18px;background:linear-gradient(#7ee9ff,#0eabe3 55%,#0078bf);color:white;box-shadow:inset 0 2px #edfcff,0 3px #124769;text-shadow:0 2px #145177;font-size:10px}.behaviors i{font-size:24px;line-height:26px;font-style:normal}.behaviors button.active{background:linear-gradient(#fff2a6,#ffcf31 65%,#f0a51e);color:#653b11;text-shadow:none;box-shadow:inset 0 2px white,0 3px #87500d}#hint{position:absolute;bottom:9px;left:12px;right:12px;text-align:center;font-size:12px;color:white;text-shadow:0 2px 3px #183f21,1px 0 #183f21;pointer-events:none}footer{position:relative;background:linear-gradient(#0e9ed7,#0868a0);border-top:3px solid #113f60;padding:9px 12px max(10px,env(safe-area-inset-bottom));box-shadow:0 -5px 18px #05374a33;z-index:3}.colors{display:flex;justify-content:center;gap:10px;margin-bottom:9px}.colors button{width:36px;height:36px;border:2px solid #173e63;border-radius:50%;box-shadow:inset 0 3px 4px #ffffffaa,0 2px 1px #03405c;background:radial-gradient(circle at 30% 20%,#ffffff77,var(--ball) 45%,var(--ball));position:relative}.colors button.selected{outline:3px solid #fff5ba;outline-offset:2px}.colors button.selected:after{content:'✓';position:absolute;color:white;font-size:22px;inset:0;text-shadow:1px 1px #254055}.colors button.rainbow{background:conic-gradient(#ff4646,#ffdf26,#51d539,#00a8ff,#b255ef,#ff4646)}.tools{display:flex;gap:8px;max-width:540px;margin:auto}.tools button{flex:1;border:2px solid #054770;background:#056197;border-radius:13px;padding:9px 2px;color:#cfecf4;font-size:19px;box-shadow:0 2px #053c60}.tools span{font-size:12px;vertical-align:2px}.tools .active{background:linear-gradient(#fff2a5,#ffc32b);border-color:#80551c;color:#553d18;box-shadow:0 2px #9b6617}#rapid{position:absolute;bottom:30px;right:15px;border-radius:50%;width:90px;height:90px;background:radial-gradient(circle at 35% 20%,#ff9171,#ff4c35 45%,#d91d23);border:4px solid #fff3b6;box-shadow:0 0 0 3px #7c301d,inset 0 3px white,0 6px #76351a;color:white;text-shadow:0 2px #782022;font-size:12px;line-height:14px}#rapid i{display:block;font-style:normal;color:#ffe34d;font-size:17px;margin-bottom:4px}#speech{position:absolute;top:80px;left:10px;max-width:65%;background:#fff9df;border:3px solid #234455;border-radius:20px 20px 20px 3px;padding:8px 13px;box-shadow:0 3px #0002;opacity:0;transition:opacity .15s;font-size:15px;pointer-events:none}#speech.show{opacity:1}#combo{position:absolute;top:58px;left:40%;font-size:18px;color:#ffe731;text-shadow:2px 2px #624027;pointer-events:none}#danceLabel{position:absolute;left:14px;bottom:41px;font-size:10px;padding:5px 8px;background:#fff4ccdd;border-radius:12px;color:#684516}#offline{position:absolute;left:12px;bottom:28px;font-size:9px;color:white;text-shadow:0 1px #174722;opacity:0;transition:opacity .5s}.overlay{position:absolute;inset:0;z-index:10;background:#082d48aa;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px);padding:20px;touch-action:pan-y}.welcome-card{text-align:center;background:linear-gradient(#fffdf0,#ffe5a8);border:4px solid #574126;border-radius:34px;padding:28px 20px;box-shadow:0 9px #492e2a55;width:min(100%,390px);transform:rotate(-1deg)}.eyebrow{font-size:9px;letter-spacing:2px;color:#86602f}.welcome-card h1{font-size:64px;line-height:.92;margin:20px 0;color:#0f98ce;text-shadow:3px 4px #143c60,-1px -1px white;-webkit-text-stroke:1px #144b6b;font-weight:1000}.welcome-card em{display:block;color:#ffcc27;font-style:normal}.welcome-card p{line-height:1.5;font-size:15px}.primary{display:block;width:100%;border:2px solid #14658b;border-radius:15px;padding:14px;background:linear-gradient(#51dfff,#09a0d3);color:white;box-shadow:inset 0 2px white,0 4px #075579;text-shadow:0 2px #086895;font-size:17px;margin:15px 0}.primary span{float:right}.welcome-card small{font-size:9px;display:block;margin-top:20px}.welcome-card #loadStatus{font-size:10px;margin-top:8px;color:#5d6942}.panel{width:min(100%,460px);max-height:100%;overflow-y:auto;background:#fff8df;border:3px solid #18475b;border-radius:24px;padding:18px;touch-action:pan-y;overscroll-behavior:contain}.panel-head{display:flex;align-items:center;justify-content:space-between}.panel-head h2{font-size:22px;margin:0}.panel-head button{background:#f2deb2;border-radius:50%;width:38px;height:38px}.mode-picker{display:flex;gap:6px;margin:20px 0 10px}.mode-picker button{flex:1;background:#e6ddc5;border:2px solid transparent;border-radius:10px;padding:10px 1px;font-size:12px}.mode-picker .active{background:#ffcf3b;border-color:#a47624}.panel label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;margin:14px 0}.panel input[type=range]{width:58%;accent-color:#069bd2;touch-action:auto}.panel select{max-width:65%;font-size:12px;padding:8px;border:2px solid #c4d7ce;border-radius:8px;color:#234653;background:white;touch-action:auto}.panel h3{font-size:16px;margin:24px 0 12px}.panel details{border-top:1px solid #d4c8a7;padding:15px 0;font-size:13px;line-height:1.5}.panel summary{cursor:pointer}.panel details p{font-size:12px;font-weight:500}.version{text-align:center;font-size:10px;line-height:1.7;opacity:.7}.panel .file-label{display:block;background:#e0f0ef;padding:9px;border-radius:9px}.file-label input{display:block;max-width:100%;font-size:11px;margin-top:8px;touch-action:auto}.voice-actions{display:flex;gap:7px}.voice-actions button,#freePlay{padding:10px;border-radius:9px;background:#f4d58c;font-size:12px}#voiceStatus{display:block;font-size:10px;margin-top:10px}#finalScore{font-size:64px;color:#087fa5}#timer{background:#fff2b6;padding:8px;border:3px solid #144567;border-radius:15px;font-size:21px;margin-right:auto;box-shadow:0 3px #103b4a}#update{position:absolute;bottom:145px;left:10px;right:10px;background:#fff8d9;z-index:20;padding:13px;border:2px solid #245b6b;border-radius:12px;font-size:12px}#update button{background:#07a2cf;color:white;padding:8px;border-radius:6px;float:right}@media(min-width:650px){.behaviors{right:22px;gap:12px}.behaviors button{width:76px;height:70px;font-size:13px}.behaviors i{font-size:30px}.title-mark{font-size:32px}.colors button{width:42px;height:42px}.colors{gap:16px}footer{padding-top:13px}.tools button{padding:12px}.tools span{font-size:15px}#rapid{width:105px;height:105px;right:28px}#hint{font-size:15px}}@media(max-height:620px){.behaviors{top:78px;gap:5px}.behaviors button{height:44px;width:52px;border-radius:14px}.behaviors i{font-size:18px;line-height:18px}.colors button{height:28px;width:28px}.colors{margin-bottom:6px}.tools button{padding:5px}.scoreboard strong{font-size:22px}#rapid{height:72px;width:72px;bottom:28px}.welcome-card{padding:14px}.welcome-card h1{font-size:46px;margin:10px 0}.title-mark{font-size:20px}}@media(orientation:landscape) and (max-height:600px){#app{max-width:none;flex-direction:row;padding-right:env(safe-area-inset-right)}#stage{height:100%}footer{width:140px;display:flex;flex-direction:column;justify-content:center;border-left:3px solid #103e60;border-top:0;padding:8px}.colors{flex-wrap:wrap;gap:8px}.tools{flex-direction:column;width:100%}.tools button{padding:8px}.behaviors{right:12px;top:16px;flex-direction:row}.behaviors button{width:48px;height:46px}.title-mark{display:none}#rapid{right:20px}.overlay{padding:12px}.panel{max-width:600px}}
#pause{font-size:0;display:flex;align-items:center;justify-content:center;gap:5px}#pause::before,#pause::after{content:'';height:23px;width:7px;background:white;border-radius:2px;box-shadow:0 2px #17699b}
