
:root{font-family:Segoe UI,Arial,sans-serif;color:#ebede6;background:#142b2b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#294d47,#142b2b 70%);min-height:100vh}main{max-width:1120px;margin:auto;padding:32px 40px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff24;padding-bottom:22px}.brand{font-weight:900;font-size:25px;color:#ffd25d}.brand span{font-size:11px;letter-spacing:2px;color:#b4ccc0;margin-left:16px}.tag{font-size:10px;letter-spacing:2px;border:1px solid #75958a;padding:8px 12px;border-radius:30px}.heading{display:flex;justify-content:space-between;align-items:center;padding:25px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:#b8cbbd}h1{font-size:36px;letter-spacing:-1px;margin:7px 0}h1 span{font-weight:400;color:#dfdfd0}.heading p:last-child{color:#c1cfc5;font-size:13px}.stats{display:flex;gap:10px;white-space:nowrap}.stats span{background:#ffffff0c;border:1px solid #ffffff20;padding:13px 15px;border-radius:10px;font-weight:bold;color:#ffd25d}.stage{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px #0005;border:5px solid #46685b;background:#b8d0c8}canvas{width:100%;display:block}#overlay{position:absolute;inset:0;background:#153a3599;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px)}.panel{text-align:center;width:460px;max-width:90%;padding:25px 30px;border-radius:18px;background:#f5f0dd;color:#233d35;box-shadow:0 15px 40px #0003}.badge{font-size:10px;font-weight:bold;letter-spacing:2px;color:#63755d}h2{font-size:32px;margin:12px 0}.panel p{font-size:15px;line-height:1.6}.panel button{background:#ffd25d;color:#233d35;border:0;border-radius:9px;padding:15px 24px;font-weight:800;font-size:15px;cursor:pointer;width:100%}.panel button:hover{background:#ffe38e}.panel button span{float:right}.panel .mini{font-size:10px;color:#647362;margin-bottom:0}footer{display:flex;align-items:center;justify-content:space-between;padding:18px 0;font-size:10px;letter-spacing:1px;color:#c3d2c5}kbd{display:inline-block;background:#36544b;border:1px solid #6f8a7c;border-radius:4px;padding:5px 8px;font-family:inherit;color:white;margin-right:4px}footer span{margin:0 10px}#restart{background:none;border:0;color:#c3d2c5;font:inherit;cursor:pointer}.note{text-align:center;color:#829f90;font-size:11px}#toast{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);background:#203e35e8;color:white;padding:10px 20px;border-radius:8px;font-size:12px;white-space:nowrap;display:none}button:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:700px){main{padding:15px 10px}.heading{padding:14px 0}h1{font-size:24px}.heading p:last-child,.eyebrow{display:none}.stats span{padding:8px;font-size:12px}.brand span{font-size:9px;letter-spacing:1px}.tag{display:none}.panel{padding:12px 18px}h2{font-size:24px}.panel p{font-size:12px}footer{font-size:8px}footer span{margin:0 3px}.note{display:none}}

#sound{background:none;border:1px solid #75958a;border-radius:6px;padding:7px 10px;color:#e6dbc1;font:inherit;cursor:pointer}#sound[aria-pressed=false]{opacity:.65}footer{gap:8px;flex-wrap:wrap}

/* Touch controls remain outside the game image so they do not cover obstacles. */
.touch-controls{display:none;justify-content:space-between;align-items:center;gap:14px;margin-top:10px}.touch-direction{display:flex;gap:12px}.touch-controls button{width:72px;height:58px;border:2px solid #8aa58d;border-radius:12px;background:#365b50;color:#fff4c6;font:800 24px Segoe UI,Arial;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-controls button[data-control=jump]{width:128px;background:#ffd25d;color:#233d35;font-size:16px}.touch-controls button.pressed{background:#6f9681;transform:translateY(2px)}.touch-controls button[data-control=jump].pressed{background:#e6af32}.mobile-tip{display:none;text-align:center;color:#c1cfc5;font-size:11px;margin:8px 0}html{overscroll-behavior:none}button{touch-action:manipulation}
@media(pointer:coarse),(max-width:900px){.touch-controls{display:flex}.mobile-tip{display:block}.stats{gap:5px}.stats span{padding:7px;font-size:11px}.heading{gap:8px}.panel .mini{font-size:10px}}
@media(max-width:600px){.heading{display:block}.stats{margin-top:10px}.panel h2{font-size:19px;margin:6px 0}.panel p{font-size:11px;line-height:1.3;margin:8px 0}.panel button{padding:10px}.panel .mini{display:none}.panel{padding:12px}.badge{font-size:9px}.touch-controls button{height:62px}footer{letter-spacing:0}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){main{max-width:780px;padding:6px 12px}header,.heading,.note{display:none}.stage{max-width:calc((100dvh - 142px)*1.77778);margin:auto}.touch-controls{max-width:650px;margin:7px auto 0}.touch-controls button{height:48px}.mobile-tip{display:none}footer{padding:6px 0;max-width:650px;margin:auto}footer>div{display:none}.panel{padding:12px 20px}.panel h2{font-size:20px;margin:6px 0}.panel p{font-size:12px;line-height:1.35;margin:6px 0}.panel .mini{display:none}.panel button{padding:9px}}

/* Compact landscape layout uses the available viewport, with controls over the floor. */
main{max-width:1600px;width:100%}.touch-controls{display:flex}.stage{touch-action:none}#fullscreen{background:none;border:1px solid #75958a;border-radius:6px;padding:7px 10px;color:#e6dbc1;font:inherit;cursor:pointer}
@media(orientation:landscape) and (max-height:650px){html,body{height:100%;overflow:hidden}main{max-width:none;height:100dvh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);display:grid;grid-template-rows:minmax(0,1fr) 34px;position:relative}header,.heading,.note,.mobile-tip{display:none}.stage{width:100%;height:100%;max-width:none;min-height:0;margin:0;border:0;border-radius:0;grid-row:1}canvas{width:100%;height:100%}.touch-controls{position:absolute;left:14px;right:14px;bottom:44px;z-index:3;margin:0;max-width:none;pointer-events:none}.touch-controls button{width:68px;height:52px;pointer-events:auto;opacity:.88;box-shadow:0 3px 12px #0006}.touch-controls button[data-control=jump]{width:115px}.touch-direction{gap:12px}footer{grid-row:2;max-width:none;width:100%;margin:0;padding:3px 12px;justify-content:flex-end;gap:12px}footer>div{display:none}.panel{max-height:95%;overflow:auto;padding:12px 20px}.panel h2{font-size:21px;margin:6px 0}.panel p{font-size:12px;line-height:1.35;margin:6px 0}.panel .mini{display:none}.panel button{padding:10px}#toast{bottom:72px;max-width:90%;white-space:normal;text-align:center}}
main:fullscreen{max-width:none;background:#142b2b;width:100vw;height:100dvh;padding:0;display:grid;grid-template-rows:minmax(0,1fr) 38px;position:relative}main:fullscreen header,main:fullscreen .heading,main:fullscreen .note,main:fullscreen .mobile-tip{display:none}main:fullscreen .stage{width:100%;height:100%;max-width:none;border:0;grid-row:1;border-radius:0}main:fullscreen canvas{width:100%;height:100%}main:fullscreen .touch-controls{position:absolute;left:18px;right:18px;bottom:52px;z-index:3;pointer-events:none;max-width:none;margin:0}main:fullscreen .touch-controls button{pointer-events:auto;opacity:.88}main:fullscreen footer{grid-row:2;margin:0;max-width:none;width:100%;padding:4px 12px;justify-content:flex-end}main:fullscreen footer>div{display:none}
