:root{color-scheme:light;--ink:#173b32;--muted:#577369;--paper:#f7f3e6;--red:#ec584c;--gold:#f4cb5f;--line:#dce1ce;font-family:Inter,Arial,sans-serif;background:var(--paper);color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 90% 8%,#efeacb88,transparent 32%),var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #e48737;outline-offset:4px}button:disabled{cursor:default;opacity:.5}.topbar{height:76px;max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line)}.wordmark{text-decoration:none;color:var(--ink);font:800 11px ui-monospace,monospace;letter-spacing:1.5px;display:flex;gap:9px;align-items:center}.pixel-flower{font-size:27px;color:var(--red)}.top-note{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.top-note i{width:6px;height:6px;background:#58a572;border-radius:50%}main{max-width:1104px;padding:0 24px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 26px}.eyebrow{font:700 10px ui-monospace,monospace;letter-spacing:2.1px;margin:0 0 11px;color:#708277}h1{font-size:clamp(24px,3.1vw,39px);letter-spacing:-1.8px;margin:0;font-weight:850;line-height:1.17}.title-dot{color:var(--red)}.title-secondary{font-weight:500;color:#4b665a}.intro-copy{font-size:12px;color:var(--muted);margin:12px 0 0}.level-tag{display:flex;gap:13px;align-items:center;border:1px solid #cfdbc9;border-radius:12px;padding:13px 18px;background:#eef0dc;white-space:nowrap}.level-tag div{display:flex;flex-direction:column;gap:5px}.level-tag strong{font:800 11px ui-monospace,monospace;letter-spacing:1px}.level-tag div>span{font-size:11px;color:var(--muted)}.tag-star{font-size:29px;color:#879c55}.game-shell{overflow:hidden;border:3px solid var(--ink);border-radius:18px;background:var(--ink);box-shadow:0 9px 0 #dce1ca,0 19px 45px #173b3210}.hud{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:#fff8dd;background:#173b32;gap:20px}.hud-group{display:flex;align-items:center;gap:29px}.m-badge{display:grid;place-items:center;width:38px;height:38px;border:2px solid #f78272;border-radius:50%;background:var(--red);font-weight:950;font-size:25px;font-family:Arial,sans-serif}.hud-stat{display:flex;flex-direction:column;gap:5px}.hud-label{font:700 8px ui-monospace,monospace;letter-spacing:1.5px;color:#9db4a5}.hud-stat strong{font:800 19px ui-monospace,monospace;letter-spacing:1px;line-height:1}.coin-icon{display:inline-block;vertical-align:-1px;width:12px;height:18px;background:#f6cf57;border:2px solid #d99830;border-radius:50%;box-shadow:inset 2px 0 #ffe89d}.hud-right{gap:24px}.hearts{color:#fa7666;letter-spacing:4px!important}.hearts .empty{color:#648177}.icon-button{position:relative;width:35px;height:35px;border:1px solid #526c59;border-radius:8px;display:grid;place-items:center;background:transparent;color:#eaf0d8;font-weight:800;font-size:21px;transition:background .15s}.icon-button:hover{background:#2e5142}.sound-slash{position:absolute;width:22px;height:2px;background:#efb7a1;transform:rotate(-45deg)}.icon-button[aria-pressed=true] .sound-slash{display:none}.stage{aspect-ratio:16/9;position:relative;background:#9cdef1;isolation:isolate}canvas{width:100%;height:100%;display:block;object-fit:contain;image-rendering:pixelated;outline:none!important}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#173b3238;backdrop-filter:blur(2px);z-index:2;padding:15px}.overlay[hidden]{display:none}.overlay-card{text-align:center;background:#fff9e9;border:2px solid #173b32;border-radius:16px;box-shadow:6px 7px 0 #173b324d;padding:22px 40px 25px;min-width:370px;max-width:92%}.overlay-stars{color:#dea642;font-size:20px;letter-spacing:15px;padding-left:15px;margin-bottom:12px}.overlay-stars span{font-size:30px}.overlay-card .eyebrow{font-size:9px;color:#7e8d70;margin-bottom:10px}.overlay-card h2{font-size:42px;letter-spacing:-1.8px;line-height:1.07;margin:0 0 16px;font-weight:900}.overlay-card p:not(.eyebrow){font-size:12px;line-height:1.8;color:#587263;margin:0 0 20px}.play-button{display:flex;align-items:center;justify-content:center;gap:40px;border:2px solid #173b32;border-radius:9px;box-shadow:0 4px 0 #173b32;background:var(--gold);color:#173b32;padding:12px 24px;min-height:48px;font-size:15px;font-weight:800;margin:0 auto;transition:transform .1s,box-shadow .1s}.play-button:hover{background:#ffda73;transform:translateY(-1px);box-shadow:0 5px 0 #173b32}.play-button:active{transform:translateY(3px);box-shadow:0 1px 0 #173b32}.play-button span{font-size:21px}.overlay-hint{font-size:10px;color:#748173;margin-top:22px;line-height:1.8}.overlay-hint>span{padding:0 5px}kbd{display:inline-flex;min-width:21px;min-height:22px;justify-content:center;align-items:center;background:#fcfbed;border:1px solid #cbd4c2;border-bottom:2px solid #b8c7b0;border-radius:4px;color:#365747;font:600 10px ui-monospace,monospace;padding:1px 5px;vertical-align:middle}.toast{position:absolute;left:50%;top:20px;transform:translateX(-50%) translateY(-10px);background:#173b32ee;color:#fff7de;padding:11px 18px;border:1px solid #e8e5b87a;border-radius:10px;font:600 12px ui-monospace,monospace;white-space:nowrap;opacity:0;pointer-events:none;transition:.2s;z-index:3}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.game-bottom{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#f0f1dc;border-top:2px solid var(--ink);gap:20px}.route{display:flex;align-items:center;gap:12px;font:800 8px ui-monospace,monospace;letter-spacing:1px;flex:1;max-width:425px}.route>span{white-space:nowrap;color:#647d65}.route strong{font-size:10px;width:31px;letter-spacing:0}.route-track{flex:1;height:7px;border-radius:5px;background:#d0dcc4;overflow:hidden}.route-track i{display:block;background:#739b57;width:0;height:100%;border-radius:5px;transition:width .2s}.text-button{display:flex;align-items:center;gap:7px;min-height:32px;border:0;background:none;font-size:10px;font-weight:700;color:#3f6451;white-space:nowrap;padding:4px}.text-button>span:first-child{font-size:24px}.below-game{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;font-size:10px;color:#6d806f}.keyboard-guide{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.keyboard-guide>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.best{display:flex;align-items:center;gap:7px;white-space:nowrap}.best>span{color:#c79639;font-size:17px}.best strong{font:800 12px ui-monospace,monospace;color:#3d6048;letter-spacing:1px}.small-note{font-size:10px;color:#7b8978;margin:21px 0 0;line-height:1.7}.small-note>span{color:#4b6c50;margin-left:5px}footer{display:flex;justify-content:space-between;max-width:1104px;padding:25px 24px 21px;margin:20px auto 0;border-top:1px solid var(--line);font-size:9px;color:#82917f;gap:15px}.mobile-controls,.mobile-guide{display:none}.game-shell:fullscreen{border:0;border-radius:0;width:100vw;height:100dvh;display:flex;flex-direction:column;box-shadow:none}.game-shell:fullscreen .stage{aspect-ratio:auto;flex:1;min-height:0;display:grid;place-items:center;background:#102b25}.game-shell:fullscreen canvas{position:absolute;inset:0}.game-shell:fullscreen .game-bottom{flex-shrink:0}.game-shell:fullscreen .hud{flex-shrink:0}.game-shell:fullscreen .mobile-controls{flex-shrink:0}
@media(max-width:850px){.top-note{font-size:10px}.hud{padding:0 17px}.hud-group{gap:18px}.hud-right{gap:16px}.keyboard-guide{gap:10px}.title-secondary{display:block;margin-top:5px}.intro{margin-top:23px}.overlay-card{padding:20px 30px}.overlay-card h2{font-size:37px}}
@media(max-width:680px){.topbar{height:56px;padding:0 17px}.wordmark{font-size:9px;letter-spacing:1px}.pixel-flower{font-size:23px}.top-note{display:none}main{padding:0 12px}.intro{margin:21px 4px 20px;gap:8px}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:7px}h1{font-size:29px;letter-spacing:-1px}.title-secondary{font-size:17px;letter-spacing:-.6px;margin-top:6px}.intro-copy{display:none}.level-tag{padding:10px;gap:7px;border-radius:9px}.tag-star{font-size:22px}.level-tag strong{font-size:9px}.level-tag div>span{font-size:9px}.game-shell{border-radius:13px;border-width:2px;box-shadow:0 6px 0 #dce1ca,0 13px 20px #173b3210}.hud{height:62px;padding:0 11px;gap:8px}.hud-group{gap:13px}.m-badge{display:none}.hud-stat strong{font-size:16px}.hud-label{font-size:7px;letter-spacing:1px}.hud-right{gap:10px}.hearts{letter-spacing:1px!important;font-size:17px!important}.icon-button{width:28px;height:30px;font-size:18px}.time-stat{display:none}.stage{aspect-ratio:32/27}.overlay-card{min-width:0;width:90%;max-width:330px;padding:14px 15px 19px;border-radius:12px;box-shadow:4px 5px 0 #173b324d}.overlay-stars{font-size:15px;margin-bottom:8px;letter-spacing:11px;padding-left:11px}.overlay-stars span{font-size:23px}.overlay-card h2{font-size:30px;letter-spacing:-1px;margin-bottom:12px}.overlay-card p:not(.eyebrow){font-size:10px;line-height:1.65;margin-bottom:13px}.overlay-card .eyebrow{font-size:8px;margin-bottom:7px}.overlay-hint{font-size:9px;margin-top:14px}.overlay-hint kbd{font-size:9px;min-width:18px;min-height:19px}.play-button{padding:9px 20px;min-height:43px;font-size:14px;gap:32px}.mobile-controls{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;background:#193d32;border-top:2px solid #173b32;touch-action:none;user-select:none;-webkit-user-select:none}.direction-buttons{display:flex;gap:12px}.mobile-controls button{display:flex;align-items:center;justify-content:center;border:2px solid #9da98b;border-bottom-width:5px;background:#e5e9c9;color:#193d32;font-size:27px;font-weight:900;width:55px;height:51px;border-radius:12px;touch-action:none}.mobile-controls button.active{transform:translateY(2px);border-bottom-width:3px;background:#d0deab}.mobile-controls .touch-jump{background:#ef6959;border-color:#ffd1a5;color:#fff7e4;gap:8px;width:118px;font-size:26px}.touch-jump span{font:800 9px ui-monospace,monospace;letter-spacing:1px}.mobile-controls .touch-jump.active{background:#d64b40}.game-bottom{height:43px;padding:0 11px;gap:10px}.route{font-size:7px;gap:8px}.fullscreen-label{display:none}.text-button{padding:2px 4px}.below-game{margin-top:22px;gap:10px;font-size:9px}.keyboard-guide{display:none}.mobile-guide{display:block;font-size:9px;line-height:1.6;max-width:190px;margin:0;color:#6d806f}.best{font-size:9px;gap:5px}.best strong{font-size:10px}.small-note{font-size:9px;line-height:1.7;margin-top:15px}.small-note>span{display:block;margin-left:0}footer{margin-top:20px;padding:18px 17px;flex-direction:column;gap:8px;font-size:8px}.toast{max-width:95%;white-space:normal;text-align:center;top:12px;padding:9px 12px;font-size:10px}.desktop-break{display:none}}
@media(hover:none) and (min-width:681px){.mobile-controls{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;touch-action:none}.direction-buttons{display:flex;gap:15px}.mobile-controls button{width:56px;height:45px;touch-action:none;border-radius:9px;border:2px solid #a7b598;background:#e5e9c9;color:#193d32;font-size:24px}.mobile-controls .touch-jump{width:130px;background:#ef6959;color:#fff}.touch-jump span{font-size:10px}.mobile-controls button.active{filter:brightness(.85)}}
.restart-button{display:block;margin:15px auto 0;border:0;border-bottom:1px solid #a3b095;padding:2px 0;background:none;font-size:11px;color:#5a765f}.restart-button[hidden]{display:none}
canvas:focus-visible{outline:3px solid #f4cb5f!important;outline-offset:-3px}
@media(max-width:680px){.time-stat{display:flex}.hud-right{gap:8px}.hud-group{gap:10px}.hud{padding:0 10px}}
@media(max-width:360px){.hud-stat strong{font-size:14px}.hearts{font-size:15px!important}.hud-group{gap:8px}.hud{padding:0 8px}}
@media(max-width:360px){.overlay-card{padding:13px 14px 15px}.overlay-stars{display:none}.overlay-card h2{font-size:26px;margin-bottom:9px}.overlay-card p:not(.eyebrow){line-height:1.5;margin-bottom:12px}.overlay-hint{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Embedded game: retain all controls without duplicating the site header. */
.is-embedded body{background:transparent;overflow-x:hidden}
.is-embedded .topbar,.is-embedded .intro,.is-embedded footer{display:none}
.is-embedded main{max-width:none;padding:8px 8px 18px}
.is-embedded .below-game{margin-top:22px;font-size:12px}
.is-embedded .keyboard-guide{font-size:12px}
.is-embedded .small-note{font-size:13px;line-height:1.65}
.is-embedded .small-note>span{display:block;margin:6px 0 0}
.is-embedded .best{font-size:12px}
.is-embedded .best strong{font-size:13px}
@media(max-width:560px){
 .hud{height:auto;min-height:116px;flex-wrap:wrap;gap:12px;padding:12px 15px}
 .hud-group{flex:1;gap:16px;justify-content:space-between}
 .hud-right{flex-basis:100%;justify-content:space-between;gap:12px}
 .hud-label{font-size:9px;letter-spacing:1px}.hud-stat strong{font-size:18px}
 .hearts{font-size:18px!important}.icon-button{width:44px;height:44px;font-size:22px}
 .game-bottom{height:48px}.mobile-controls button{min-width:55px;min-height:51px}
 .is-embedded .below-game{align-items:flex-start;flex-wrap:wrap;gap:8px}
 .is-embedded .mobile-guide{font-size:12px;max-width:210px}
 .is-embedded .best{margin-top:5px}
 .is-embedded .small-note{font-size:12px}
}
@media(max-width:560px){
 .overlay-stars{display:none}
 .overlay-card{padding:14px 12px;max-width:330px}
 .overlay-card h2{font-size:clamp(24px,6.4vw,28px);line-height:1.12;letter-spacing:-.8px;margin-bottom:10px}
 .overlay-card p:not(.eyebrow){font-size:11px;line-height:1.5;margin-bottom:12px}
 .overlay-hint{margin-top:10px;font-size:10px}
}
@media(max-width:360px){.overlay-hint{display:none}.overlay-card h2{font-size:24px}}
@media(max-width:360px){.overlay-card{padding:8px 12px}.overlay-card .eyebrow{display:none}}
.level-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#264b3b;color:#fff4cc;padding:12px 20px;border-bottom:1px solid #53715a}
.level-banner>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}
.level-banner strong{font:800 11px ui-monospace,monospace;letter-spacing:1px;white-space:nowrap}
.level-banner #levelName{font-size:14px;font-weight:650}
.level-steps{display:flex;gap:7px;flex-shrink:0}.level-steps span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;border:1px solid #7a947d;font:700 11px ui-monospace,monospace;color:#91a68e}
.level-steps [data-state=current]{background:#f4cb5f;color:#173b32;border-color:#f4cb5f}.level-steps [data-state=done]{background:#759868;color:#fff;border-color:#759868}
[data-theme=forest] .level-banner{background:#383b59;border-color:#72617d}[data-theme=cave] .level-banner{background:#303b60;border-color:#647a98}
#levelAdvice{display:block;font-weight:700;color:#395844;margin:6px 0}
@media(max-width:560px){.level-banner{padding:10px 12px;gap:10px}.level-banner>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}.level-banner #levelName{font-size:13px}.level-banner strong{font-size:10px}.level-steps span{width:23px;height:23px}.level-steps{gap:5px}}
