:root{--ink:#083e49;--cream:#fff9e9;--teal:#05666c;--coral:#ff744f;--yellow:#ffdf75}*{box-sizing:border-box}body{margin:0;background:#76d8d5;color:var(--ink);font-family:ui-rounded,'Avenir Next',Avenir,system-ui,sans-serif;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;border:0;color:inherit;font-weight:800;transition:transform .15s,background .15s}button:hover{transform:translateY(-2px)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ff744f;outline-offset:4px}button:disabled{cursor:default;opacity:.5;transform:none}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}.grain{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#edfff34a,transparent 70%)}header{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:26px 42px;z-index:4}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-size:14px;font-weight:900;letter-spacing:2px}.brand-icon{font-size:42px;line-height:1;width:50px;height:50px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;transform:rotate(-15deg)}.brand-sub{display:block;font-size:9px;letter-spacing:2.5px;margin-top:5px}.top-actions{display:flex;align-items:center;gap:10px}.round{height:43px;min-width:43px;border:1px solid #083e4935;border-radius:50%;background:#fff9e9bc;font-size:20px}.outline{background:#fff9e9c9;border:1px solid #083e4940;border-radius:9px;padding:13px 20px;font-size:13px}.primary{background:var(--ink);color:var(--cream);border-radius:10px;padding:19px 27px;box-shadow:0 5px 0 #00252d;font-size:15px;letter-spacing:.3px}.primary:hover{background:#075e65}#home{position:absolute;top:21%;left:7%;z-index:2}.eyebrow{font-size:10px;font-weight:850;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow>span{width:7px;height:7px;border-radius:100%;background:var(--coral)}h1{font-size:clamp(66px,7.5vw,116px);line-height:.87;letter-spacing:-6px;margin:28px 0 24px;font-weight:1000;transform:rotate(-3deg);transform-origin:left bottom}h1 span{color:var(--cream);text-shadow:3px 4px 0 #087080}h1 em{font-style:normal;color:#ff754f;text-shadow:2px 3px 0 #913e352b}.intro{font-size:17px;line-height:1.5;font-weight:600}.home-buttons{display:flex;gap:12px;margin-top:26px}.home-note{font-size:11px;letter-spacing:.5px;margin-top:21px}.creator-stamp{position:absolute;left:410px;top:200px;width:110px;height:110px;border:1.5px dashed var(--ink);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:9px;letter-spacing:1px;transform:rotate(16deg);background:#ffedafcf;gap:5px}.creator-stamp b{font-size:12px}.creator-stamp span{font-size:15px}#home-bottom{position:absolute;bottom:26px;left:42px;right:42px;display:flex;justify-content:space-between;font-size:10px;font-weight:800;letter-spacing:2px}#home-bottom b{font-size:23px;margin-left:12px}#hud{position:fixed;top:101px;left:30px;right:30px;display:flex;gap:25px;align-items:center;z-index:3;pointer-events:none}.health-block,.star-block{background:#fff9e9ed;border:1px solid #fff9e9;border-radius:14px;padding:13px 18px;box-shadow:0 6px 20px #065b6414}.health-block{width:200px}.health-block>div:first-of-type{display:flex;gap:12px;align-items:center;margin:5px 0}.health-block span{color:#e66369;font-size:23px}.health-block b{font-size:14px}small{font-size:9px;letter-spacing:1px;font-weight:800}.meter{height:7px;background:#063f4b20;border-radius:10px;overflow:hidden}.meter i{display:block;height:100%;background:#22a493;transition:width .2s;border-radius:10px}.run-progress{max-width:370px;flex:1;margin:auto;text-align:center;background:#e5fff3ae;border-radius:10px;padding:10px}.run-progress .meter{margin:8px 0}.run-progress span{font-size:11px;font-weight:650}.star-block{text-align:center;min-width:110px}.star-block strong{display:block;font-size:29px;color:#a66d0a}.star-block small{color:var(--ink)}#boss-hud{position:fixed;left:50%;top:215px;transform:translateX(-50%);width:min(420px,80vw);text-align:center;z-index:3;background:#fff9e9ed;padding:12px 20px;border-radius:12px}#boss-hud b{letter-spacing:3px;font-size:13px}#boss-hud .meter{margin:8px 0}#boss-bar{background:#ec776e}#boss-hud span{font-size:10px}#announcement{position:fixed;top:37%;left:50%;transform:translate(-50%,-50%);color:var(--ink);background:#fff5d7ed;padding:13px 22px;border-radius:50px;z-index:6;font-weight:850;box-shadow:0 4px 22px #094d5525;pointer-events:none;text-align:center;max-width:85vw;opacity:0;transition:opacity .2s}#announcement.visible{opacity:1}#delivery{position:fixed;right:30px;top:207px;background:#fff8e9ec;padding:9px 13px;border-radius:8px;max-width:220px;font-size:11px;z-index:3}#controls{position:fixed;bottom:25px;left:28px;right:28px;display:flex;align-items:end;justify-content:space-between;gap:15px;z-index:4}.steering{display:grid;grid-template-columns:1fr 1fr;gap:7px}.steering button{font-size:25px;width:58px;height:52px;background:var(--cream);border-radius:12px;box-shadow:0 4px 0 #237f85}.steering small{grid-column:1/3;text-align:center;font-size:8px}.tricks{display:flex;gap:7px}.tricks button{background:#fff9e9ef;border-radius:13px;width:86px;height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px solid transparent;box-shadow:0 5px 0 #147a7f}.tricks button.available{border-color:#f0b84e}.tricks button b{font-size:29px;font-weight:500;line-height:1}.tricks button span{font-size:10px}.tricks button small{font-size:8px}.weapons{display:flex;gap:8px}.weapons button{width:101px;background:var(--ink);color:var(--cream);border-radius:13px;height:83px;display:flex;flex-direction:column;align-items:center;gap:4px;justify-content:center;box-shadow:0 5px 0 #002f38}.weapons b{font-size:25px;line-height:1}.weapons span{font-size:9px}.weapons strong{color:var(--yellow);font-size:13px;margin-left:5px}.weapons small{font-size:8px;opacity:.7}dialog{border:1px solid #fffaf0;background:var(--cream);color:var(--ink);border-radius:22px;padding:36px;max-width:540px;width:calc(100% - 32px);max-height:88dvh;overflow:auto;box-shadow:0 24px 100px #002d4755}dialog::backdrop{background:#0038448a;backdrop-filter:blur(7px)}h2{font-size:36px;letter-spacing:-1.5px;margin:10px 0 18px;line-height:1.1}dialog p{font-size:13px;line-height:1.6}dialog .primary,dialog>.outline{margin:8px 8px 8px 0}ol{padding-left:20px;font-size:13px;line-height:1.6}li{padding:5px 0}.close{position:absolute;right:20px;top:18px;font-size:27px;width:35px;height:35px;border-radius:50%;background:#e8edde}.text-button{display:block;background:none;text-decoration:underline;padding:13px 0;font-size:12px}#hangar{max-width:930px;width:calc(100% - 40px);padding:30px 35px}.hangar-heading{display:flex;align-items:center;gap:20px;padding-right:34px}.hangar-heading h2{font-size:42px;margin-bottom:0}.hangar-heading h2 span{color:#e0a642;margin-left:15px}.hangar-bank{margin-left:auto;text-align:right}.hangar-bank strong{display:block;font-size:30px;color:#a76d15}#hangar-note{margin:14px 0}.tabs{display:flex;gap:5px;border-bottom:1px solid #b2c7bc;margin-top:20px;padding-bottom:12px}.tabs button{border-radius:8px;padding:10px 18px;background:none;font-size:12px}.tabs button.selected{color:var(--cream);background:var(--ink)}.character-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin:12px 0 24px}.character-card{padding:12px 4px 8px;border:2px solid transparent;border-radius:12px;background:#e4eee2;font-size:11px}.character-card svg{width:54px;height:60px;display:block;margin:0 auto 7px}.character-card.selected{border-color:var(--coral);background:#ffe4bf}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}label{font-size:11px;font-weight:800;display:flex;flex-direction:column;gap:7px}select{background:#fffdf5;border:1px solid #bacfc4;border-radius:8px;padding:11px;color:var(--ink);width:100%;font-size:12px}.check-label{flex-direction:row;align-items:center;gap:10px}.check-label input{width:20px;height:20px;accent-color:var(--teal)}.tiny{font-size:11px!important;opacity:.8}.hangar-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #ccdbca;margin-top:24px;padding-top:15px;font-size:10px;opacity:.65}#hangar-message{font-size:12px;min-height:30px;padding:10px 0 0;color:#916316;font-weight:800}.wing-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;align-items:center}.wing-paper{background:repeating-conic-gradient(#f2ebdf 0% 25%,#fffdf5 0% 50%) 50% / 20px 20px;border:2px dashed #a8c8bb;border-radius:13px;overflow:hidden;text-align:center}.wing-paper canvas{width:100%;display:block;touch-action:none}.wing-paper>span{display:block;background:var(--cream);font-size:9px;letter-spacing:2px;padding:8px}.draw-tools{display:flex;flex-wrap:wrap;gap:13px;margin:20px 0}.draw-tools label{max-width:110px}input[type=color]{width:45px;height:35px;border:0;background:none}h3{font-size:18px;letter-spacing:-.4px}.upgrade-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.upgrade{background:#e8efdf;border:1px solid #cadaca;border-radius:12px;padding:13px 8px;text-align:center}.upgrade b{display:block;font-size:18px;margin-bottom:6px}.upgrade span{display:block;font-size:11px;line-height:1.5}.upgrade button{padding:9px 10px;border-radius:8px;background:var(--ink);color:var(--cream);margin-top:12px;font-size:11px;width:100%}.upgrade small{display:block;font-size:9px}.boss-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.boss-card{border:2px solid transparent;background:#e4eee2;padding:20px 10px;border-radius:15px;font-size:12px}.boss-card.selected{border-color:var(--coral);background:#ffe4bf}.boss-card span{display:block;font-size:47px;margin-bottom:10px}#fatal{position:fixed;inset:30%;z-index:50;background:var(--cream);padding:30px;border-radius:20px;line-height:1.6}.playing header{padding-top:20px}.playing .grain{background:none}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:900px){header{padding:20px 24px}#home{left:6%;top:22%}h1{font-size:85px}.creator-stamp{left:310px;top:190px;width:88px;height:88px;font-size:7px}.creator-stamp b{font-size:9px}.tricks button{width:68px;height:84px}.weapons button{width:80px}.steering button{width:45px}.character-grid{grid-template-columns:repeat(4,1fr)}.upgrade-grid{grid-template-columns:repeat(3,1fr)}#controls{left:15px;right:15px;gap:8px}.tricks{gap:5px}}
@media(max-width:600px){header{padding:15px 16px}.brand{font-size:10px;letter-spacing:1px;gap:7px}.brand-icon{width:34px;height:34px;font-size:29px}.brand-sub{font-size:7px;letter-spacing:1px}.top-actions{gap:6px}.round{height:35px;min-width:35px}.top-actions .outline{font-size:10px;padding:11px}#home{top:18%;left:7%}#home .eyebrow{font-size:7px;letter-spacing:1.3px}h1{font-size:70px;letter-spacing:-4px;margin-top:23px}.intro{font-size:13px}.home-buttons{margin-top:20px;gap:9px}.home-buttons .primary{font-size:12px;padding:16px 20px}.home-buttons .outline{font-size:11px;padding:13px}.creator-stamp{display:none}.home-note{font-size:9px}#home-bottom{left:20px;right:20px;font-size:7px;letter-spacing:1px;bottom:20px}#hud{top:76px;left:10px;right:10px;gap:8px}.health-block{width:125px;padding:9px 11px}.health-block small{font-size:6px}.health-block b{font-size:11px}.health-block span{font-size:17px}.star-block{min-width:75px;padding:9px}.star-block strong{font-size:22px}.star-block small{font-size:7px}.run-progress{padding:8px}.run-progress small{font-size:6px;letter-spacing:.5px}.run-progress span{font-size:8px}#boss-hud{top:164px;padding:8px 12px}#delivery{top:153px;right:10px;font-size:9px;max-width:135px}#announcement{top:42%;font-size:12px;padding:11px 17px}#controls{bottom:max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:12px}.tricks{grid-row:2;grid-column:1/3;justify-content:center}.tricks button{width:23%;height:70px;gap:3px}.tricks button b{font-size:24px}.tricks button span{font-size:9px}.steering{display:flex;align-items:center;gap:7px}.steering small{display:none}.steering button{width:55px;height:47px}.weapons{justify-content:flex-end}.weapons button{height:53px;width:77px;gap:2px}.weapons button b{font-size:18px}.weapons small{display:none}.weapons span{font-size:8px}#hangar{width:calc(100% - 16px);padding:24px 18px}.hangar-heading h2{font-size:29px}.hangar-heading .eyebrow{font-size:7px;letter-spacing:1px}.hangar-bank strong{font-size:23px}.hangar-bank small{font-size:7px}.tabs button{padding:9px 10px;font-size:10px}.form-grid{grid-template-columns:1fr 1fr;gap:12px}.character-grid{gap:6px}.character-card svg{width:43px;height:47px}.wing-layout{grid-template-columns:1fr;gap:15px}.upgrade-grid{grid-template-columns:repeat(2,1fr)}.boss-grid{grid-template-columns:1fr 1fr}.hangar-footer{font-size:8px}.close{right:12px;top:12px}dialog{padding:30px 24px}h2{font-size:28px}#fatal{inset:20% 8%}.playing header{padding-top:15px}}
@media(max-height:650px) and (min-width:601px){#home{top:18%}h1{font-size:64px;margin:17px 0}.intro{font-size:13px}.home-buttons{margin-top:14px}.creator-stamp{top:130px}#hud{top:80px}.tricks button{height:65px}#controls{bottom:15px}#boss-hud{top:175px}}
