:root{--paper:#fff5dc;--ink:#283b36;--red:#ec493c;--gold:#f7b832;--line:#dfd3ad;--green:#286547;--muted:#7b8068}
*{box-sizing:border-box}html{height:100%;background:var(--paper)}body{margin:0;color:var(--ink);font-family:ui-rounded,"Avenir Next",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--paper);min-height:100svh;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--red);outline-offset:5px}button:disabled{cursor:default;opacity:.4}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0}a{color:inherit;text-decoration:none}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;height:calc(72px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top) max(32px,env(safe-area-inset-right)) 0 max(32px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}.back{display:flex;gap:9px;align-items:center;font-size:14px;font-weight:700;min-height:44px}.back svg{width:20px}.brand{font-weight:850;font-size:21px;letter-spacing:-.7px;display:flex;align-items:center;gap:5px}.brand>span{color:var(--red)}.brand .tiny-coin{margin-left:8px}.utilities{display:flex;gap:20px}.utility{display:flex;align-items:center;gap:7px;background:transparent;font-size:12px;font-weight:750;min-height:44px;padding:0}.utility svg{width:19px;height:19px;stroke-width:2.4}.arcade{max-width:1200px;margin:auto;height:calc(100svh - 72px - env(safe-area-inset-top,0px));min-height:590px;padding:12px 30px 12px;display:flex;flex-direction:column}.hud{display:flex;align-items:center;justify-content:space-between;min-height:59px;padding:0 3px 13px;font-family:ui-monospace,"Courier New",monospace;font-weight:700}.world{display:flex;flex-direction:column;gap:4px}.world b{font-size:13px;letter-spacing:1.6px}.world>span{font-family:ui-rounded,"Avenir Next",-apple-system,sans-serif;font-size:12px;font-weight:600;color:var(--muted)}.stats{display:flex;gap:28px;font-size:18px}.stat{display:flex;align-items:center;gap:9px}.tiny-coin{display:inline-block;width:14px;height:18px;border:3px solid #a65c19;background:#ffc731;box-shadow:inset 3px 0 #ffe998,2px 2px 0 #f3dfac;border-radius:45%;flex-shrink:0}.heart{font-size:26px;color:var(--red);line-height:1;filter:drop-shadow(1px 2px 0 #e4c5a3)}.best{display:flex;flex-direction:column;align-items:flex-end;font-size:15px;gap:4px}.best>span{font-size:10px;letter-spacing:1.4px;color:var(--muted)}.stage{position:relative;flex:1;min-height:280px;overflow:hidden;border:4px solid var(--ink);box-shadow:6px 6px 0 #ded3b0;background:#61c5f4;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated;outline:none}.overlay{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#23492a16}.overlay[hidden]{display:none}.menu{position:relative;text-align:center;width:min(360px,100%);padding:27px 27px 19px;background:var(--paper);border:3px solid var(--ink);box-shadow:6px 6px 0 #17372d4f}.title-art{display:flex;flex-direction:column;align-items:center;font-family:ui-monospace,"Courier New",monospace;font-weight:1000;line-height:.95;transform:rotate(-4deg);margin:0 0 18px;letter-spacing:-3px;text-shadow:2px 2px 0 var(--ink),-2px -2px 0 var(--ink),2px -2px 0 var(--ink),-2px 2px 0 var(--ink),4px 5px 0 var(--ink)}.title-art span{color:var(--gold);font-size:37px}.title-art strong{color:var(--red);font-size:65px;letter-spacing:-5px}.menu-copy{font-size:18px;font-weight:800;margin:0 0 9px;letter-spacing:-.4px}.menu-detail{font-size:13px;line-height:1.65;color:#737562;margin:0 0 19px}.primary{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;background:var(--red);color:#fff7df;border:2px solid var(--ink);border-radius:7px;font-weight:850;font-size:17px;min-height:48px;box-shadow:0 4px 0 var(--ink);padding:9px 18px;transition:transform .1s,box-shadow .1s}.primary svg{width:14px;height:18px;fill:currentColor;stroke-width:1}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}.text-button{background:transparent;font-size:12px;font-weight:750;padding:14px 10px 2px;min-height:38px;text-decoration:underline;text-underline-offset:4px}.world-picker{display:flex;gap:7px;margin-top:14px}.world-picker[hidden]{display:none}.world-picker button{flex:1;border:2px solid var(--ink);border-radius:4px;background:#e6eac5;min-height:44px;font-weight:800;font-size:12px}.world-picker button[aria-current=true]{background:var(--gold)}.controls{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:122px;padding:23px 4px 12px}.direction-controls{display:flex;gap:13px}.control{touch-action:none;-webkit-user-select:none;user-select:none;border:3px solid var(--ink);border-radius:12px;box-shadow:0 5px 0 var(--ink);display:flex;align-items:center;justify-content:center;transition:transform .08s,box-shadow .08s}.control:active,.control.pressed{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}.direction{width:76px;height:69px;background:#fffae9}.direction svg{width:31px;height:31px;stroke-width:3}.jump{width:122px;height:74px;background:var(--red);color:#fff9e9;gap:6px;font-family:ui-monospace,"Courier New",monospace;font-size:17px;font-weight:900}.jump svg{width:20px;height:20px;stroke-width:3}.control-hint{text-align:center;display:flex;flex-direction:column;gap:7px}.control-hint b{font-size:14px;font-weight:800;letter-spacing:-.1px}.control-hint span{font-size:11px;color:var(--muted)}.footnote{margin:10px 3px 0;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#92917a;line-height:1.5}.toast{position:absolute;top:22px;left:50%;transform:translateX(-50%);padding:10px 18px;background:var(--paper);border:2px solid var(--ink);box-shadow:3px 3px 0 #283b3650;border-radius:4px;font-size:13px;font-weight:800;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none}.toast.visible{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.menu h1:not(.sr-only){font-size:29px;letter-spacing:-1px;margin:0 0 13px}.stage.playing .overlay{background:#16392855}noscript{display:block;padding:20px;text-align:center}
@media(max-width:720px){.topbar{height:calc(58px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top) max(15px,env(safe-area-inset-right)) 0 max(15px,env(safe-area-inset-left));gap:6px}.brand{font-size:17px;letter-spacing:-.6px}.brand .tiny-coin{display:none}.back{font-size:11px;gap:4px}.back svg{width:17px}.utilities{gap:13px}.utility>span{display:none}.utility svg{width:19px}.arcade{height:calc(100svh - 58px - env(safe-area-inset-top,0px));padding:12px 14px max(13px,env(safe-area-inset-bottom));min-height:565px}.hud{min-height:60px;padding-bottom:12px}.world b{font-size:11px;letter-spacing:1.1px}.world>span{font-size:11px}.stats{gap:17px;font-size:16px}.stat{gap:7px}.best{font-size:13px}.best>span{font-size:9px}.heart{font-size:23px}.tiny-coin{width:13px;height:17px}.stage{border-width:3px;box-shadow:4px 4px 0 #ded3b0;min-height:270px}.controls{min-height:105px;padding:20px 0 13px;gap:8px}.direction-controls{gap:12px}.direction{width:64px;height:65px}.jump{width:104px;height:69px;font-size:16px}.control{border-radius:11px}.control-hint{display:none}.footnote{font-size:9px;display:block;text-align:center;margin:9px 0 0;line-height:1.8}.footnote span:first-child{display:none}.menu{padding:24px 21px 15px;width:min(320px,100%)}.title-art span{font-size:32px}.title-art strong{font-size:57px}.menu-copy{font-size:16px}.menu-detail{font-size:12px;margin-bottom:16px}.title-art{margin-bottom:16px}.overlay{padding:13px}.toast{max-width:calc(100% - 20px);white-space:normal;text-align:center;font-size:12px;width:max-content}}
@media(orientation:portrait) and (min-height:750px) and (max-width:720px){.arcade{padding-top:17px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.controls{min-height:125px;padding-top:23px}.direction{width:69px;height:72px}.jump{width:110px;height:77px}.stage{max-height:550px}.footnote{margin-top:16px}}
@media(orientation:portrait) and (max-height:700px) and (max-width:720px){.arcade{min-height:0}.stage{min-height:210px}.menu{max-height:100%;overflow-y:auto;padding:16px 18px 12px}.title-art{margin-bottom:12px}.title-art span{font-size:27px}.title-art strong{font-size:47px}.menu-copy{font-size:14px;margin-bottom:6px}.menu-detail{font-size:11px;margin-bottom:12px;line-height:1.5}.primary{min-height:44px;font-size:15px}.text-button{min-height:33px;padding-top:11px}.menu:has(.world-picker:not([hidden])) .title-art{display:none!important}.footnote{margin-top:5px}}
@media(orientation:landscape) and (max-height:550px){.topbar{height:calc(39px + env(safe-area-inset-top,0px));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.brand{font-size:16px}.back{font-size:11px}.utility{min-height:33px}.utility span{display:none}.arcade{height:calc(100svh - 39px - env(safe-area-inset-top,0px));min-height:0;padding:5px max(17px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left));max-width:none}.hud{min-height:35px;padding-bottom:5px}.world{flex-direction:row;gap:10px;align-items:center}.world b{font-size:10px}.world>span{font-size:10px}.stats{font-size:13px;gap:18px}.heart{font-size:19px}.stat .tiny-coin{height:14px;width:11px;border-width:2px}.best{flex-direction:row;align-items:center;font-size:11px;gap:8px}.stage{min-height:110px;border-width:3px;box-shadow:3px 3px 0 #ded3b0}.controls{position:absolute;bottom:max(17px,env(safe-area-inset-bottom));left:max(27px,env(safe-area-inset-left));right:max(27px,env(safe-area-inset-right));min-height:0;padding:0;z-index:2;pointer-events:none}.controls button{pointer-events:auto;opacity:.88}.direction-controls{gap:12px}.direction{height:49px;width:58px}.direction svg{width:23px;height:23px}.jump{height:52px;width:88px;font-size:13px}.control{border-width:2px;box-shadow:0 3px 0 var(--ink);border-radius:9px}.control-hint,.footnote{display:none}.overlay{padding:8px}.menu{padding:13px 22px 10px;width:300px}.title-art{margin-bottom:9px;line-height:.9}.title-art span{font-size:24px}.title-art strong{font-size:39px}.menu-copy{font-size:14px;margin-bottom:5px}.menu-detail{font-size:11px;line-height:1.4;margin-bottom:10px}.primary{min-height:36px;font-size:14px;padding:6px 10px}.text-button{min-height:27px;padding-top:10px;font-size:10px}.world-picker{position:absolute;right:-160px;top:0;width:145px;flex-direction:column;margin:0;padding:10px;background:var(--paper);border:2px solid var(--ink)}.world-picker button{font-size:11px;min-height:35px}.menu h1:not(.sr-only){font-size:24px;margin-bottom:9px}.stage:has(.world-picker:not([hidden])) .menu{margin-right:145px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
