*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}:root{--bg1:#160052;--bg2:#4c12a8;--bg3:#7418bd;--accent:#5ee8ff}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#12003e;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}body{display:grid;place-items:center}button{font:inherit;border:0;cursor:pointer;color:inherit}#app{position:relative;width:min(100vw,430px);height:100dvh;min-height:620px;overflow:hidden;background:radial-gradient(circle at 50% 12%,rgba(159,80,255,.45),transparent 30%),linear-gradient(160deg,var(--bg1),var(--bg2) 58%,#26066e);color:#fff;isolation:isolate}#app:before,#app:after{content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(1px);opacity:.25}#app:before{width:250px;height:250px;background:#8d5cff;left:-150px;top:110px}#app:after{width:280px;height:180px;background:#9d4cff;right:-150px;bottom:0}.topbar{height:100px;padding:18px 14px 8px;display:flex;align-items:flex-start;justify-content:space-between;position:relative;z-index:5}.icon-btn{width:62px;height:62px;border-radius:18px;background:linear-gradient(#14baff,#087de8);border:2px solid rgba(255,255,255,.75);box-shadow:0 8px 18px #06001f88;font-size:38px;line-height:1}.level-badge{position:absolute;left:50%;transform:translateX(-50%);top:16px;text-align:center;text-shadow:0 3px 0 #200047}.level-badge span{display:block;font-size:11px;letter-spacing:2px;font-weight:900;color:#ddd1ff}.level-badge strong{font-size:27px;line-height:1}.coin-pill{height:54px;min-width:156px;padding:0 4px 0 12px;border-radius:17px;background:rgba(16,2,58,.78);display:flex;align-items:center;gap:8px;box-shadow:0 8px 20px #09002b77}.coin-icon{color:#6cff4c;text-shadow:0 2px 8px #2fff0099;font-size:26px}.coin-pill strong{font-size:22px;font-variant-numeric:tabular-nums}.mini-plus{width:52px;height:52px;border-radius:16px;background:linear-gradient(#ffd33d,#f39a00);font-size:34px;font-weight:900;box-shadow:inset 0 2px 0 #fff8,0 4px 12px #0005}.game-shell{height:calc(100% - 100px);padding:0 12px 12px;display:flex;flex-direction:column}.hud{display:flex;justify-content:center;gap:42px;margin:4px 0 5px}.hud div{text-align:center;min-width:55px}.hud small{display:block;color:#d9caff;font-size:9px;letter-spacing:1.6px;font-weight:900}.hud b{display:block;font-size:18px;margin-top:2px}.board{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));align-content:center;justify-items:center;gap:28px 12px;padding:10px 3px 8px;touch-action:manipulation}.tube{position:relative;width:72px;height:166px;border:3px solid rgba(223,251,255,.9);border-top-width:6px;border-radius:24px 24px 31px 31px;background:linear-gradient(90deg,#ffffff12,#ffffff2a 50%,#ffffff0c);box-shadow:inset 8px 0 12px #fff2,inset -7px 0 12px #0002,0 7px 14px #08002d55;overflow:hidden;transition:transform .18s,filter .18s}.tube.selected{transform:translateY(-10px) scale(1.035);filter:drop-shadow(0 0 12px var(--accent))}.tube:before{content:"";position:absolute;left:-5px;right:-5px;top:-7px;height:13px;border:3px solid rgba(226,255,255,.9);border-radius:50%;background:#143b8066;z-index:5}.liquid-segment{position:absolute;left:4px;right:4px;height:25%;border-radius:8px 8px 17px 17px}.tube.done{box-shadow:0 0 22px #58ffb088,inset 8px 0 12px #fff2}.tube.hint{animation:pulse .7s ease-in-out 2}@keyframes pulse{50%{transform:translateY(-8px) scale(1.05);filter:drop-shadow(0 0 18px #fff)}}.toolbar{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:7px 0 3px}.tool{min-width:0;height:60px;border-radius:16px;background:linear-gradient(180deg,#43238d,#28125f);border:1px solid #9d80d866;box-shadow:0 6px 12px #08002b66,inset 0 1px 0 #fff2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.tool:active{transform:scale(.95)}.tool span{font-size:22px;line-height:1}.tool small{font-size:9px;color:#d9ccf5;font-weight:800}.status{text-align:center;height:20px;margin:2px 0 0;color:#e8dfff;font-size:11px;opacity:.9}.modal{position:absolute;inset:0;background:#10002acc;backdrop-filter:blur(8px);z-index:20;display:grid;place-items:center;padding:24px}.modal.hidden{display:none}.modal-card{width:min(100%,350px);padding:28px 22px 22px;border-radius:28px;background:linear-gradient(160deg,#4b1e9b,#1a0758);border:1px solid #cdb8ff55;box-shadow:0 25px 80px #0009;text-align:center}.modal-icon{font-size:54px;margin-bottom:5px}.modal-card h2{margin:0;font-size:28px}.modal-card p{color:#d9c9fa;line-height:1.5;min-height:25px}.modal-actions{display:flex;gap:10px}.modal-actions button{flex:1;height:50px;border-radius:15px;font-weight:900}.primary{background:linear-gradient(#ffd94e,#f39c00);color:#3a1900}.secondary{background:#ffffff18;border:1px solid #fff2}.toast{position:absolute;left:50%;bottom:92px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#13052eec;border:1px solid #fff2;padding:10px 15px;border-radius:14px;font-size:12px;z-index:30;transition:.25s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:600px){#app{height:min(100dvh,860px);border-radius:24px;box-shadow:0 0 80px #0009}}@media(max-height:700px){.topbar{height:88px}.game-shell{height:calc(100% - 88px)}.tube{height:138px;width:64px}.board{gap:16px 10px}.toolbar .tool{height:52px}}
