:root{--ink:#233c37;--muted:#728078;--paper:#faf7ec;--accent:#548e9b;--line:#d8dece}*{box-sizing:border-box}[hidden]{display:none!important}html{background:#ecefe7}body{margin:0;color:var(--ink);font:14px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif;background:radial-gradient(ellipse at 30% 0,#fffaf0,transparent 65%)}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fffaf0;padding:9px 14px;touch-action:manipulation;transition:background .15s,transform .15s}button:hover{background:#edf1e0}button:focus-visible,a:focus-visible{outline:3px solid #efb15c;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}button.selected,button.pressed{background:var(--accent);color:white}a{color:inherit;text-decoration:none}.site{max-width:1160px;margin:auto;padding:24px 24px 17px;display:flex;justify-content:space-between;font-size:12px}.site span{font-size:9px;letter-spacing:2px;color:var(--muted)}main{position:relative;max-width:1120px;margin:auto;background:var(--paper);border:1px solid #cdd7c6;border-radius:20px;overflow:hidden;box-shadow:0 18px 60px #29453413}.bar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 22px;border-bottom:1px solid var(--line);gap:12px}.bar>div{display:flex;align-items:center;gap:13px;min-width:0}.bar em{font:italic 25px Georgia;color:var(--accent)}.bar b{letter-spacing:3px;font-size:17px;white-space:nowrap}.bar small{font-size:9px;color:var(--muted);letter-spacing:2px}nav{display:flex;gap:7px}nav button{font-size:11px;padding:7px 10px}#home{min-height:540px;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:45px;gap:24px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--accent);font-weight:700}h1{font-size:48px;font-weight:650;letter-spacing:6px;line-height:1.4;margin:16px 0}.home-copy>p:not(.eyebrow){font-size:13px;line-height:2;color:var(--muted);max-width:390px}.levels{display:flex;gap:7px;margin:24px 0 18px}.levels button{text-align:left;flex:1;font-size:12px;padding:10px 9px}.levels small{display:block;font-size:10px;color:#ad8a45;margin-top:5px}.modes{display:flex;gap:7px;margin-top:16px}.primary{background:var(--accent);color:white;border-color:var(--accent);padding:12px 24px;font-weight:650}.primary:hover{filter:brightness(1.08);background:var(--accent)}#start{width:100%}#save-note{display:block;font-size:10px;color:var(--muted);margin-top:16px}.home-art{text-align:center;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.home-art img{width:100%;border-radius:120px 120px 16px 16px;aspect-ratio:4/4.7;object-fit:cover}.home-art span{font-size:10px;letter-spacing:4px;margin-top:17px;color:var(--muted)}.hud{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 20px;min-height:52px;font-size:11px}.hud b{font-size:13px;white-space:nowrap}.hud #objective{flex:1}.hud #score{white-space:nowrap;color:var(--accent);font-weight:700}.hud button{padding:6px 12px}.stage{height:min(56.25vw,calc(100dvh - 185px));min-height:160px;max-height:600px;display:flex;justify-content:center;align-items:center;background:#142d2e}canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}.controls{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px 15px;background:#f1f2e6}.controls button{min-width:58px;min-height:39px;padding:7px 14px;font-size:12px;user-select:none;touch-action:none}.key-note{font-size:10px;color:var(--muted);text-align:center;margin:6px 10px 9px}#overlay{position:absolute;inset:64px 0 0;display:grid;place-items:center;background:#183b355f;backdrop-filter:blur(6px);padding:15px;z-index:5}.panel{background:#fcf8e9;border:1px solid #d9ddc4;border-radius:17px;padding:28px;max-width:420px;width:100%;max-height:100%;overflow:auto;text-align:center;box-shadow:0 20px 70px #193a3540}.panel h2{font-size:29px;margin:10px 0}.panel>p{font-size:13px;line-height:1.9}.panel-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}#result-stars{font-size:28px;color:#d9a45f;letter-spacing:8px}dialog{max-width:min(560px,90vw);border:1px solid var(--line);border-radius:17px;background:var(--paper);padding:27px;color:var(--ink);line-height:2}dialog::backdrop{background:#163c3577;backdrop-filter:blur(4px)}.about{max-width:900px;margin:28px auto;padding:0 25px;color:var(--muted);font-size:12px;line-height:2;text-align:center}.about p:first-child{font:italic 21px Georgia,serif;color:var(--accent)}footer{text-align:center;color:#879187;font-size:10px;line-height:2;padding:10px 20px 25px}footer a{text-decoration:underline;text-underline-offset:3px}#toast{position:absolute;bottom:100px;left:50%;transform:translateX(-50%);background:#1d453ce8;color:white;padding:10px 18px;border-radius:9px;font-size:12px;max-width:90%;pointer-events:none;opacity:0;z-index:20}#toast.show{opacity:1}body.playing .site,body.playing .about,body.playing>footer{display:none}body.playing main{margin:8px auto}main:fullscreen{max-width:none;width:100%;height:100%;border-radius:0;display:flex;flex-direction:column}main:fullscreen #play{display:flex;flex:1;min-height:0;flex-direction:column}main:fullscreen .stage{height:auto;flex:1;min-height:0;max-height:none}@media(max-width:750px){main{margin:0 10px}.bar{padding:10px 13px}.bar small{display:none}#home{padding:28px;gap:15px;min-height:470px}h1{font-size:35px;letter-spacing:4px}.home-copy>p:not(.eyebrow){font-size:12px}.levels{gap:5px}.levels button{font-size:10px;padding:8px 6px}.home-art img{aspect-ratio:3/5}.hud{gap:10px;padding:8px 12px}.hud #objective{font-size:10px}body.playing main{margin:0 6px}}@media(max-width:520px){.site{padding:16px}.site span{display:none}main{border-radius:12px}.bar{height:53px;gap:6px;padding:8px 10px}.bar>div{gap:7px}.bar b{font-size:13px;letter-spacing:1px}.bar em{font-size:20px}nav{gap:4px}nav button{font-size:9px;padding:5px 6px}#home{grid-template-columns:1fr;padding:24px;min-height:0}.home-art{display:none}h1{font-size:38px}.levels button{font-size:12px}.home-copy>p:not(.eyebrow){font-size:13px}.hud{flex-wrap:wrap;gap:5px 9px;min-height:70px}.hud #objective{order:4;flex-basis:100%}.hud #score{margin-left:auto}.stage{height:auto;aspect-ratio:16/9;min-height:0}.controls{padding:8px 6px;gap:5px}.controls button{font-size:11px;min-width:44px;min-height:40px;padding:7px 9px}.key-note{font-size:9px}#overlay{inset:53px 0 0}.panel{padding:20px}.panel h2{font-size:24px}.panel>p{font-size:11px}}@media(max-height:550px) and (orientation:landscape){.site,.about,body>footer{display:none}main,body.playing main{margin:0 5px}.bar{height:42px;padding:6px 12px}.bar b{font-size:14px}.bar em{font-size:21px}nav button{padding:4px 8px}.hud{min-height:38px;padding:5px 13px}.hud button{padding:4px 10px}.stage{height:calc(100dvh - 143px);min-height:0;max-height:none}.controls{padding:5px;gap:7px}.controls button{min-height:33px;padding:5px 12px}.key-note{font-size:8px;margin:3px}#home{min-height:0;height:calc(100dvh - 44px);padding:16px 34px;grid-template-columns:1.1fr 1fr;gap:30px}.home-art img{height:230px;aspect-ratio:1;object-fit:cover;width:100%}.home-art span,.home-copy>.eyebrow,#save-note{display:none}h1{font-size:30px;margin:0 0 9px}.home-copy>p:not(.eyebrow){font-size:11px;line-height:1.6}.levels{margin:10px 0}.levels button{padding:6px;font-size:11px}.modes{margin:8px 0}.modes button{padding:5px 10px}#start{padding:8px}#overlay{inset:42px 0 0}.panel{max-width:480px;padding:15px}.panel h2{margin:4px;font-size:23px}.panel>p{margin:5px}.panel-buttons{margin-top:8px}#result-stars{font-size:23px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}body.playing main{height:calc(100dvh - 16px);display:flex;flex-direction:column}body.playing #play{display:flex;flex:1;min-height:0;flex-direction:column}body.playing .stage{flex:1;height:auto;min-height:0;max-height:none}.bar,.hud,.controls,.key-note{flex-shrink:0}@media(max-height:550px) and (orientation:landscape){body.playing main{height:100dvh}}