:root{--bg: #0b1220;--bg-soft: #121c2e;--panel: rgba(10, 18, 32, .82);--line: rgba(148, 178, 220, .18);--text: #e8eefb;--text-dim: #9db0cd;--accent: #ffd166;--accent-2: #7ee8fa;--danger: #ff6b8b;font-family:Inter,PingFang SC,Noto Sans SC,system-ui,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{background:radial-gradient(1200px 700px at 50% -10%,#1b2c4a 0%,var(--bg) 60%);color:var(--text);overflow:hidden;-webkit-tap-highlight-color:transparent}.app{height:100%;min-height:100dvh;display:flex;flex-direction:column;padding:14px 18px 10px;gap:12px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto}.brand{display:flex;align-items:baseline;gap:10px}.brand-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px #ffd166b3;align-self:center}.brand-name{font-size:18px;font-weight:700;letter-spacing:.04em}.brand-sub{font-size:12px;color:var(--text-dim);letter-spacing:.08em}.topbar-right{display:flex;align-items:center;gap:10px}.pill{font-size:12px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);color:var(--text-dim);background:#ffffff08}.stage-wrap{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}.stage{position:relative;width:100%;max-width:1180px;aspect-ratio:16 / 9;max-height:100%;border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:0 30px 70px #00000080;background:#0f1f3d;touch-action:none;-webkit-user-select:none;user-select:none}.stage-canvas{display:block;width:100%;height:100%}.hud{position:absolute;inset:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;pointer-events:none}.hud-left{display:flex;flex-direction:column;gap:2px;font-size:13px;text-shadow:0 2px 8px rgba(0,0,0,.6)}.hud-level{font-weight:700;letter-spacing:.03em}.hud-hint{color:#e8eefbb8;font-size:11.5px}.hud-stats{display:flex;gap:8px}.stat{display:flex;align-items:baseline;gap:2px;padding:5px 10px;border-radius:10px;background:#070e1a8c;border:1px solid var(--line);font-size:12px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.stat b{font-size:14px;color:var(--accent)}.stat i{font-style:normal;color:var(--text-dim);font-size:11px}.timebar{position:absolute;top:0;left:0;right:0;height:4px;background:#ffffff14}.timebar-fill{display:block;height:100%;background:linear-gradient(90deg,var(--accent-2),var(--accent));transition:width .12s linear}.timebar-fill.danger{background:linear-gradient(90deg,var(--danger),#ff9f6b)}.game-actions{position:absolute;top:52px;right:14px;display:flex;gap:8px}.primary-btn,.ghost-btn{font:inherit;cursor:pointer;border-radius:10px;padding:9px 16px;border:1px solid transparent;transition:transform .12s ease,background .15s ease,border-color .15s ease}.primary-btn{background:linear-gradient(180deg,#ffe08a,var(--accent));color:#251a02;font-weight:700;box-shadow:0 10px 24px #ffd16647}.primary-btn:hover{transform:translateY(-1px)}.ghost-btn{background:#ffffff0f;border-color:var(--line);color:var(--text)}.ghost-btn:hover{background:#ffffff1f}.primary-btn:disabled,.ghost-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.primary-btn.small,.ghost-btn.small{padding:6px 12px;font-size:12px;border-radius:8px}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#060c169e;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:4}.menu-overlay{background:radial-gradient(700px 400px at 50% 0%,rgba(126,232,250,.14),transparent 70%),#060c168c}.card,.menu-card{width:min(440px,100%);padding:22px 24px;border-radius:16px;background:var(--panel);border:1px solid var(--line);box-shadow:0 24px 60px #0000008c;animation:pop .18s ease-out}.menu-card{width:min(620px,100%);text-align:left}.menu-card.wide{width:min(700px,100%)}@keyframes pop{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.card-kicker{margin:0 0 6px;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-2)}.menu-card h1,.card h2{margin:0 0 10px;line-height:1.25}.menu-card h1{font-size:30px;letter-spacing:.02em}.card h2{font-size:20px}.menu-desc,.card-note{margin:0 0 14px;color:var(--text-dim);font-size:13.5px;line-height:1.65}.card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.keyhint{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--text-dim)}kbd{display:inline-block;min-width:20px;padding:2px 6px;margin-right:2px;border-radius:6px;border:1px solid var(--line);border-bottom-width:2px;background:#ffffff0f;font-family:inherit;font-size:11.5px;color:var(--text)}.result-list{list-style:none;margin:12px 0 14px;padding:0;display:grid;gap:8px}.result-list li{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:10px;background:#ffffff0a;border:1px solid var(--line);font-size:13px}.result-list li span{color:var(--text-dim)}.card-badge{display:inline-block;margin:0 0 12px;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:700;color:#241a02;background:var(--accent)}.level-list{list-style:none;margin:8px 0 16px;padding:0;display:grid;gap:10px}.level-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-radius:12px;background:#ffffff0a;border:1px solid var(--line)}.level-item.locked{opacity:.55}.level-info{display:flex;flex-direction:column;gap:3px;min-width:0}.level-info b{font-size:14px}.level-info span{font-size:12px;color:var(--text-dim)}.level-meta{display:flex;align-items:center;gap:12px;flex:0 0 auto}.level-best{font-size:12px;color:var(--text-dim)}.touch-controls{position:absolute;inset:auto 0 0;display:flex;align-items:flex-end;justify-content:space-between;padding:0 16px 16px;pointer-events:none;z-index:3}.touch-side{display:flex;gap:12px}.touch-btn{pointer-events:auto;width:64px;height:64px;border-radius:50%;border:1px solid rgba(255,255,255,.26);background:#0a142480;color:var(--text);font:inherit;font-size:20px;display:grid;place-items:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .2s ease,transform .08s ease;touch-action:none}.touch-btn.jump{width:76px;height:76px;font-size:15px;font-weight:700;letter-spacing:.1em;background:#ffd1663d;border-color:#ffd16699;color:var(--accent)}.stage:hover .touch-btn,.touch-btn:active{opacity:.92}.touch-btn:active{transform:scale(.94)}@media(hover:none),(pointer:coarse){.touch-btn{opacity:.9}}.footer{flex:0 0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;font-size:11.5px;color:var(--text-dim);padding:0 4px}.footer span{opacity:.8}@media(max-width:760px){.app{padding:8px 8px 6px;gap:8px}.brand-sub,.pill{display:none}.brand-name{font-size:15px}.stage{border-radius:12px}.hud{padding:8px 10px}.hud-hint{display:none}.game-actions{top:42px;right:10px}.menu-card h1{font-size:22px}.card,.menu-card{padding:16px}.level-item{flex-direction:column;align-items:flex-start;gap:10px}.level-meta{width:100%;justify-content:space-between}.touch-btn{width:56px;height:56px;font-size:17px}.touch-btn.jump{width:64px;height:64px;font-size:13px}.footer{display:none}}@media(max-aspect-ratio:1/1){.stage{aspect-ratio:4 / 3}}
