:root{color-scheme:dark;--ink:#eaf0f1;--muted:#7d8b9f;--orange:#ff824d;--line:#ffffff14;--bg:#090e17;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #8ff3df;outline-offset:4px}button:disabled{opacity:.3;cursor:default}[hidden]{display:none!important}#app{max-width:1480px;height:100%;margin:auto;display:flex;flex-direction:column;padding:0 max(22px,env(safe-area-inset-left)) 0 max(22px,env(safe-area-inset-right))}.topbar{height:76px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:19px;letter-spacing:4px;font-weight:850}.brand svg{width:32px;height:32px;color:var(--orange)}.brand-small{display:block;color:var(--muted);font-size:8px;font-weight:500;letter-spacing:2.3px;margin-top:2px}.top-actions{display:flex;gap:9px}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;border:1px solid #ffffff19;border-radius:50%}.icon-button svg{width:18px;height:18px;fill:none}.icon-button:active{background:#ffffff14}.game-shell{position:relative;flex:1;min-height:0;overflow:hidden;border-bottom:1px solid var(--line);background:#101a29}canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.hud{position:absolute;inset:22px 28px auto;display:flex;align-items:flex-start;gap:40px;pointer-events:none}.hud-label{display:block;font-size:9px;letter-spacing:2px;color:#bac9da9c;margin-bottom:6px}.hud-score strong,.hud-best strong{font-size:23px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:2px}.hud-best{margin-left:auto}.hud-best strong{color:#9daec2;font-size:18px}#lives{display:flex;gap:6px;height:25px;align-items:center}.heart{color:#ff8d7e;font-size:21px;line-height:1}.heart.lost{color:#ffffff1c}.overlay{position:absolute;inset:0}.intro{background:linear-gradient(90deg,#0a111be8 0%,#0a111bc9 35%,#0a111b0a 78%);display:flex;align-items:center;padding:48px clamp(28px,7vw,110px)}.intro-inner{max-width:550px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#c1c9ce;margin:0 0 25px;display:flex;gap:10px;align-items:center}.eyebrow>span{display:inline-block;width:6px;height:6px;background:var(--orange);box-shadow:0 0 15px #ff824d88;border-radius:50%}h1{font-size:clamp(44px,5.5vw,82px);line-height:1.2;letter-spacing:-4px;font-weight:900;margin:0 0 20px;word-break:keep-all}h1 em{font-style:normal;color:var(--orange)}.title-period{color:var(--orange)}.intro-copy{color:#a1afc1;font-size:14px;line-height:1.8;letter-spacing:-.3px;margin:0 0 28px}.primary-button{display:flex;align-items:center;justify-content:space-between;gap:35px;min-height:52px;min-width:235px;padding:14px 20px;background:var(--orange);color:#151b24;border:0;border-radius:4px;font-weight:750;font-size:15px;transition:background .2s,transform .15s}.primary-button:hover{background:#ffab78}.primary-button:active{transform:translateY(2px)}.primary-button>span:last-child{font-size:22px}.control-note{display:flex;gap:12px;align-items:center;margin-top:20px}.control-icon{border:1px solid #ffffff26;border-radius:7px;padding:2px 8px;color:#bdc7d2;font-size:22px}.control-note p{margin:0;font-size:11px;line-height:1.6}.control-note b{font-weight:550;color:#cbd6df}.control-note p>span{display:block;color:#76869a}.guide{margin-top:20px;font-size:11px;color:#8091a7;max-width:420px}.guide summary{cursor:pointer;width:max-content}.guide-content{line-height:1.65;max-height:160px;overflow:auto;padding-right:8px}.guide-content p{margin:8px 0}.item-key{display:flex;gap:18px;flex-wrap:wrap;color:#b9c4d0}.item-key span{white-space:nowrap}.item-key i{font-style:normal;margin-right:4px}.shield{color:#7ff6de}.boost{color:#ffc27e}.life{color:#ff90b2}.intro-index{position:absolute;right:26px;bottom:26px;color:#91a7bd66;font-size:9px;letter-spacing:2px;writing-mode:vertical-rl}.edge-label{position:absolute;bottom:14px;left:26px;pointer-events:none;font-size:8px;letter-spacing:2px;color:#c5d5e23b}.bottom-note{height:36px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;color:#5c6d80;font-size:8px;letter-spacing:1.2px;padding-bottom:env(safe-area-inset-bottom)}.bottom-note i{display:inline-block;width:4px;height:4px;background:#72cdb7;border-radius:50%;margin-right:7px}.countdown{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-weight:850;font-size:clamp(85px,18vw,150px);color:#fff5eb;text-shadow:0 0 45px #ff824d55}.powers{position:absolute;top:91px;left:28px;display:flex;gap:8px;pointer-events:none}.power-pill{border:1px solid currentColor;padding:5px 9px;font-size:10px;letter-spacing:.4px;background:#0c1526c9;border-radius:3px}.toast{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);padding:9px 14px;border:1px solid #ffffff1c;border-radius:5px;color:#d4e1eb;background:#0a1526df;white-space:nowrap;font-size:11px;opacity:0;transition:opacity .2s;pointer-events:none}.toast.visible{opacity:1}.dialog-overlay{display:grid;place-items:center;background:#070e1bc9;backdrop-filter:blur(8px);padding:20px}.dialog-card{width:min(420px,100%);padding:32px;border:1px solid #ffffff17;background:#101b2a;border-radius:10px}.dialog-card .eyebrow{margin-bottom:16px;color:var(--orange)}h2{font-size:27px;letter-spacing:-1.3px;margin:0 0 12px;word-break:keep-all}.dialog-card>p:not(.eyebrow):not(.record){color:#91a2b6;font-size:13px;margin-bottom:25px}.dialog-card .primary-button{width:100%;min-width:0;font-size:14px;margin-top:24px}.text-button{display:block;background:none;border:0;color:#93a2b5;font-size:12px;padding:15px 0 0;margin:auto}.results{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.results>div:first-child{grid-column:1/-1}.results span{display:block;font-size:11px;color:#8797ac;margin-bottom:7px}.results strong{font-size:22px;font-variant-numeric:tabular-nums}.results>div:first-child strong{font-size:46px;color:var(--orange);letter-spacing:-1px}.results small{font-size:12px;font-weight:400;color:#8797ac}.record{font-size:10px;letter-spacing:1.6px;color:#7bf5d9} @media(max-width:600px){#app{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.topbar{height:62px}.brand{font-size:16px}.brand svg{width:27px;height:27px}.icon-button{width:36px;height:36px}.intro{padding:30px 22px;background:linear-gradient(90deg,#0a111be8,#0a111b99)}h1{font-size:49px;letter-spacing:-3px}.eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:20px}.intro-copy{font-size:13px;margin-bottom:24px}.intro-index{right:12px}.hud{inset:17px 16px auto;gap:24px}.hud-score strong{font-size:20px}.hud-best strong{font-size:16px}.powers{left:16px;top:79px}.bottom-note{font-size:7px;height:29px;letter-spacing:.4px}.toast{font-size:10px;max-width:95%;white-space:normal;text-align:center;width:max-content;bottom:60px}.edge-label{left:15px;font-size:7px}.guide-content{max-height:135px}}@media(max-height:500px){#app{padding:0 12px}.topbar{height:48px}.brand{font-size:14px}.brand-small{font-size:6px}.brand svg{width:24px;height:24px}.icon-button{height:31px;width:31px}.bottom-note{height:23px}.intro{padding:18px 30px}.intro-inner{max-width:550px}h1{font-size:38px;line-height:1.15;letter-spacing:-2px;margin-bottom:12px}.eyebrow{margin-bottom:12px}.intro-copy{margin:0 0 16px;font-size:11px;line-height:1.5}.primary-button{min-height:42px;padding:9px 16px;font-size:13px}.control-note{position:absolute;left:330px;top:50%;margin:0}.guide{position:absolute;left:330px;top:62%;margin-top:15px;max-width:270px}.guide-content{max-height:90px}.hud{inset:12px 18px auto;gap:28px}.hud-label{font-size:8px;margin-bottom:3px}.hud-score strong{font-size:18px}.hud-best strong{font-size:15px}.heart{font-size:17px}.powers{top:61px;left:18px}.dialog-card{padding:20px;width:440px}.dialog-card h2{font-size:24px}.dialog-card .eyebrow{margin-bottom:8px}.results{display:flex;gap:25px;margin:12px 0}.results>div:first-child strong{font-size:31px}.results strong{font-size:22px}.dialog-card .primary-button{margin-top:12px;min-height:40px}.dialog-card>p:not(.eyebrow):not(.record){margin-bottom:12px}.text-button{padding-top:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-height:650px) and (orientation:portrait){.intro{padding:22px}.intro .eyebrow{margin-bottom:14px}h1{font-size:40px;letter-spacing:-2px;margin-bottom:14px}.intro-copy{font-size:12px;margin-bottom:18px}.control-note{margin-top:14px}.guide{margin-top:14px}.guide-content{max-height:90px}}
@media(max-height:500px){.control-note,.guide{left:52%}.guide{max-width:43%}}

.boss-hud{position:absolute;top:86px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 52px));padding:9px 12px;border:1px solid #ffac713d;background:#171c27ed;border-radius:4px;pointer-events:none}.boss-heading{display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1.7px;color:#ffb47d;margin-bottom:7px}.boss-heading strong{font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.5px}.boss-health{height:5px;background:#ffffff12;border-radius:3px;overflow:hidden}.boss-health>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#d95e42,#ffbd7d);transition:width .12s linear}.stage-label{position:absolute;right:24px;bottom:14px;font-size:9px;color:#e2d3b995;letter-spacing:2px;pointer-events:none}.stage-clear{position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:7px;width:max-content;max-width:95%;padding:18px 28px;border:1px solid #fbc58a4a;background:#101b2ce8;border-radius:5px;text-align:center;pointer-events:none}.stage-clear>span{font-size:9px;letter-spacing:2.8px;color:#ffb17c}.stage-clear strong{font-size:23px;letter-spacing:-1px;color:#fff0d9}.stage-clear small{font-size:10px;letter-spacing:3px;color:#91d9bf}.game-shell[data-boss="true"] .powers{top:139px}.game-shell[data-boss="true"] .toast{bottom:30%}@media(max-width:600px){.boss-hud{top:77px;width:calc(100% - 32px);padding:7px 10px}.boss-heading{font-size:8px;letter-spacing:1px}.game-shell[data-boss="true"] .powers{top:126px}.stage-label{right:15px;font-size:8px}.stage-clear strong{font-size:20px}}@media(max-height:500px){.boss-hud{top:59px;max-width:330px;padding:6px 10px}.boss-heading{margin-bottom:5px;font-size:8px}.game-shell[data-boss="true"] .powers{top:102px}.stage-clear{padding:10px 20px;top:36%}.stage-clear strong{font-size:19px}}
