:root{color-scheme:dark;font-family:Arial,"Segoe UI",sans-serif}*{box-sizing:border-box}body,html{min-height:100%;margin:0}body{color:#f4f4ff;background:radial-gradient(circle at 10% 20%,#23234f 0,transparent 28%),radial-gradient(circle at 90% 80%,#2a164d 0,transparent 28%),#080b18}button{font:inherit;cursor:pointer}.app{width:min(100%,760px);margin:0 auto;min-height:100vh;padding-bottom:20px;background:linear-gradient(#0b0f20,#090b19);box-shadow:0 0 90px #000a}.topbar{height:70px;display:grid;grid-template-columns:60px 1fr 110px 60px;align-items:center;gap:4px;padding:0 14px;background:#343545;box-shadow:0 3px 16px #0007}.back,.settings{display:grid;place-items:center;width:42px;height:42px;color:#ebeaf5;border:0;border-radius:9px;background:#ffffff12;text-decoration:none;font-size:27px}.back:hover,.settings:hover{background:#ffffff28}.level{text-align:center;line-height:1.1}.level small{display:block;margin-bottom:4px;color:#a8a9c1;font-size:10px;letter-spacing:.17em;font-weight:800}.level strong{font-size:25px;font-weight:900;letter-spacing:.02em}.hearts{white-space:nowrap;color:#ff566f;font-size:24px;letter-spacing:1px;text-shadow:0 0 13px #ff356c8c;text-align:center}.hearts .empty{color:#777683;text-shadow:none}.settings{justify-self:end}.stage{position:relative;padding:12px 10px 6px}.stage-inner{position:relative;width:min(100%,696px);aspect-ratio:1;margin:0 auto;border-radius:15px;overflow:hidden;background:radial-gradient(circle at center,#101b39 0,#0c142d 55%,#090d1d 100%);border:1px solid #a089de2f;box-shadow:inset 0 0 35px #0b0a21,0 12px 28px #0007}.stage-inner::before{content:"";position:absolute;z-index:0;inset:9px;border:1px solid #8296f222;border-radius:11px;pointer-events:none}.board{position:relative;z-index:1;display:block;width:100%;height:100%;touch-action:pan-y;user-select:none}.board.zoomed{touch-action:none;cursor:grab}.board.zoomed:active{cursor:grabbing}.grid-overlay{opacity:.32;pointer-events:none}.grid-overlay[hidden]{display:none}.grid-overlay line{stroke:#4a78d7;stroke-width:.55}.arrow{cursor:pointer}.arrow.exiting{pointer-events:none}.arrow.exiting .glow{opacity:.65}.arrow .glow{fill:none;stroke:var(--arrow);stroke-width:8;stroke-linecap:round;stroke-linejoin:round;opacity:.33;filter:blur(6px);pointer-events:none}.arrow .line{fill:none;stroke:var(--arrow);stroke-width:3.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px var(--arrow));pointer-events:none}.arrow .tip{fill:var(--arrow);filter:drop-shadow(0 0 4px var(--arrow));pointer-events:none}.arrow .hit{fill:none;stroke:#fff;stroke-width:17;opacity:0;stroke-linecap:round;stroke-linejoin:round;pointer-events:stroke}.arrow.hinted .line{stroke-width:5.5}.arrow.hinted .glow{stroke-width:13;opacity:.8}.arrow.hinted{animation:pulse .75s ease-in-out infinite alternate}.arrow.blocked-flash .line,.arrow.blocked-flash .tip{stroke:#ff6476;fill:#ff6476}@keyframes pulse{from{opacity:.75}to{opacity:1}}.stage-counter{position:absolute;z-index:2;bottom:20px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:6px 15px;border-radius:99px;background:#141c35cf;color:#b8b8d0;border:1px solid #7181b244;font-size:12px;font-weight:700;pointer-events:none}.stage-counter span{color:#fff;font-size:15px}.toolbar{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 8px}.toolbar button{min-width:84px;padding:8px 10px 7px;border:1px solid #535879;border-radius:12px;background:linear-gradient(#242b47,#171c34);color:#dfdcf8;box-shadow:0 4px 10px #0006}.toolbar button:hover{border-color:#9f8df8;background:#303a5c}.toolbar button:disabled{opacity:.42;cursor:default}.toolbar button.active{color:#92e7ff;border-color:#39dce9;box-shadow:0 0 13px #2bd2e54f}.toolbar button.hint{color:#ffc7ff;border-color:#d56ff4;box-shadow:0 0 12px #c55eff45}.toolbar button b,.toolbar button span{display:block}.toolbar button b{font-size:23px;height:25px;line-height:1}.toolbar button span{margin-top:3px;font-size:11px;font-weight:700}.help-line{max-width:620px;margin:5px auto 0;padding:0 14px;color:#9fa3bd;text-align:center;font-size:13px;line-height:1.5}.modal{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:16px;background:#030715d1;backdrop-filter:blur(6px)}.modal[hidden],.toast[hidden]{display:none}.modal-card{width:min(100%,440px);padding:26px 26px 25px;border-radius:20px;border:1px solid #8b75e4;background:radial-gradient(circle at top,#2e2857,#151a34 70%);box-shadow:0 0 42px #8a56d23c,0 20px 50px #0009;text-align:center}.modal-icon{color:#e6a1ff;font-size:50px;text-shadow:0 0 20px #dc66f9}.modal h1{margin:7px 0 12px;font-size:27px}.modal p{margin:0;white-space:pre-line;color:#bcbfd3;font-size:15px;line-height:1.6}.modal-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:22px}.modal-actions button{padding:11px 16px;border:1px solid #9f7aff;border-radius:9px;color:#fff;background:linear-gradient(#7257d5,#4c39a6);font-weight:800}.modal-actions button:hover{filter:brightness(1.18)}.toast{position:fixed;z-index:90;left:50%;bottom:22px;transform:translateX(-50%);width:max-content;max-width:90vw;padding:11px 17px;background:#282c47ee;border:1px solid #9f80fb;border-radius:9px;color:#fff;box-shadow:0 5px 24px #0009;text-align:center;font-size:13px;font-weight:700}@media (max-width:600px){.topbar{height:54px;grid-template-columns:36px 1fr 95px 36px;padding:0 7px}.back,.settings{width:33px;height:33px;font-size:22px}.level strong{font-size:20px}.level small{font-size:8px}.hearts{font-size:20px}.stage{padding:8px 5px 5px}.stage-inner{border-radius:8px}.stage-counter{bottom:13px;font-size:10px;padding:4px 10px}.toolbar{gap:4px;padding:7px 4px}.toolbar button{min-width:0;flex:1;padding:7px 2px}.toolbar button b{font-size:21px}.toolbar button span{font-size:9px}.help-line{font-size:11px}}.arrow:focus{outline:0}.arrow:focus-visible .glow{stroke-width:12;opacity:.75}.arrow:focus-visible .line{stroke-width:4.5}.toolbar button.hint.empty{color:#a99bb8;border-color:#5d5479;box-shadow:none;opacity:.6}