html,body{color:#f5f5f0;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background:#0a0a12;margin:0;padding:0;font-family:Arial Rounded MT Bold,Hiragino Maru Gothic ProN,Yu Gothic UI,Segoe UI,system-ui,sans-serif;position:fixed;inset:0;overflow:hidden}#app{position:fixed;inset:0}#game-root{background-color:#0a0a12;background-position:50%;background-size:cover;position:fixed;top:0;left:0;overflow:hidden}#stage{position:absolute}#layer{transform-origin:0 0;width:390px;height:720px;position:absolute;top:0;left:0}#game-canvas{touch-action:none;width:390px;height:720px;position:absolute;inset:0}.screen{flex-direction:column;align-items:center;display:none;position:absolute;inset:0}.screen.on{display:flex}button{cursor:pointer;touch-action:none;border:none;font-family:inherit}.btn-primary{letter-spacing:1px;color:#1a0e0a;background:linear-gradient(#ffd21f,#ff9d3c);border-radius:28px;min-width:200px;min-height:56px;padding:0 34px;font-size:22px;font-weight:900;box-shadow:0 4px #b8641f,0 8px 22px #ff8a5b59}.btn-primary:active{transform:translateY(2px);box-shadow:0 2px #b8641f}.btn-ghost{color:#f5f5f0;background:#f5f5f01a;border:2px solid #f5f5f059;border-radius:24px;min-width:120px;min-height:48px;padding:0 22px;font-size:16px;font-weight:800}.btn-ghost:active{background:#f5f5f038}.icon-btn{background:#151522d9;border:2px solid #f5f5f038;border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;padding:0;display:flex}.icon-btn img{pointer-events:none;width:34px;height:34px}.icon-btn:active{background:#35e0c840}.icon-btn:disabled{opacity:.35}#screen-title{justify-content:center;gap:18px}#screen-title .logo{object-fit:contain;filter:drop-shadow(0 0 18px #ff4a3d73);width:170px;height:170px}#screen-title h1{letter-spacing:1px;text-align:center;text-shadow:0 0 16px #ff4a3d80;margin:0;font-size:34px}#screen-title .tagline{opacity:.75;text-align:center;margin:0 0 12px;padding:0 30px;font-size:15px}#screen-levels{gap:4px;padding:14px 14px 0}#screen-levels .levels-head{justify-content:space-between;align-items:center;width:100%;display:flex}#screen-levels .levels-head h2{margin:0;font-size:24px}.pack-label{letter-spacing:2px;text-transform:uppercase;color:#35e0c8;opacity:.9;width:100%;margin:10px 0 4px;font-size:13px;font-weight:800}.level-row{justify-content:space-between;width:100%;display:flex}.level-node{color:#f5f5f0;background:#151522e6;border:2px solid #f5f5f040;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:1px;width:52px;height:60px;padding:0;font-size:17px;font-weight:900;display:flex}.level-node .node-stars{gap:1px;height:12px;display:flex}.level-node .node-stars img{width:11px;height:11px}.level-node.locked{opacity:.45}.level-node.locked img{width:20px;height:20px}.level-node.next-up{border-color:#ffd21f;animation:1.2s ease-in-out infinite node-pulse}@keyframes node-pulse{50%{box-shadow:0 0 14px #ffd21fa6}}#hud{pointer-events:none;display:none;position:absolute;inset:0}#hud.on{display:block}#hud .hud-top{box-sizing:border-box;pointer-events:none;align-items:center;gap:10px;height:70px;padding:8px 12px 0;display:flex;position:absolute;top:0;left:0;right:0}#hud .hud-top>*{pointer-events:auto}#hud .hud-title{flex:1;min-width:0}#hud .hud-level{white-space:nowrap;font-size:17px;font-weight:900}#hud .hud-pack{letter-spacing:1.5px;text-transform:uppercase;color:#35e0c8;font-size:11px}#hud .hud-progress{color:#ffd21f;font-variant-numeric:tabular-nums;font-size:17px;font-weight:900}#hud .hud-attempts{opacity:.65;font-size:11px;font-weight:800;position:absolute;top:74px;right:14px}#hud .hud-bottom{box-sizing:border-box;pointer-events:none;justify-content:space-between;align-items:center;height:90px;padding:0 22px;display:flex;position:absolute;bottom:8px;left:0;right:0}#hud .hud-bottom>*{pointer-events:auto}.hud-btn-label{text-align:center;opacity:.8;margin-top:2px;font-size:11px;font-weight:800}.hud-btn-col{flex-direction:column;align-items:center;display:flex}#deadend-panel{background:#151522f2;border:2px solid #ffd21f80;border-radius:18px;flex-direction:column;align-items:center;gap:8px;padding:14px 16px;display:none;position:absolute;bottom:108px;left:20px;right:20px;box-shadow:0 6px 24px #00000080}#deadend-panel.on{display:flex}#deadend-panel .de-title{color:#ffd21f;font-size:17px;font-weight:900}#deadend-panel .de-sub{opacity:.85;text-align:center;font-size:13px}#deadend-panel .de-actions{gap:10px;display:flex}.overlay{z-index:20;background:#0a0a12b8;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.overlay.on{display:flex}.panel{text-align:center;background:#151522;border:2px solid #f5f5f033;border-radius:22px;flex-direction:column;align-items:center;gap:12px;width:300px;padding:24px 20px;display:flex;box-shadow:0 10px 40px #0009}.panel h2{margin:0;font-size:24px}.panel .stamp-img{object-fit:contain;width:110px;height:110px}.panel .stars-row{gap:8px;display:flex}.panel .stars-row img{width:42px;height:42px}.panel .stat-line{opacity:.85;font-size:14px}.panel .record-tag{color:#1a0e0a;background:#ffd21f;border-radius:10px;padding:3px 12px;font-size:13px;font-weight:900}.panel .btn-row{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.panel .reward-body{opacity:.9;font-size:14px;line-height:1.5}#toast{text-align:center;z-index:30;pointer-events:none;background:#151522f2;border:2px solid #35e0c880;border-radius:18px;max-width:320px;padding:10px 18px;font-size:14px;font-weight:700;display:none;position:absolute;bottom:200px;left:50%;transform:translate(-50%)}#toast.on{display:block}#tut-bubble{color:#1a0e0a;text-align:center;z-index:15;pointer-events:none;background:#ffd21ff5;border-radius:16px;padding:12px 16px;font-size:15px;font-weight:800;line-height:1.4;display:none;position:absolute;top:84px;left:30px;right:30px;box-shadow:0 6px 20px #00000073}#tut-bubble.on{display:block}#tut-bubble.bottom{top:auto;bottom:112px}#tut-hand{z-index:16;pointer-events:none;filter:drop-shadow(0 2px 4px #00000080);width:44px;height:44px;font-size:36px;animation:.9s ease-in-out infinite hand-bounce;display:none;position:absolute}#tut-hand.on{display:block}@keyframes hand-bounce{50%{transform:translateY(-10px)}}
