*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:grid;place-items:center;background:#203e32;color:#263d2e;font-family:"Trebuchet MS",Verdana,sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,canvas:focus-visible{outline:3px solid #ffd26b;outline-offset:3px}[hidden]{display:none!important}.game-shell{width:min(1200px,100%,calc((100dvh - 38px)*16/9));padding:4px}.stage{position:relative;border:3px solid #192f25;border-radius:18px;overflow:hidden;background:#ace0d2}.stage canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;touch-action:none}.stage,.stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.hud{position:absolute;inset:10px 12px auto;display:flex;justify-content:space-between;gap:7px;pointer-events:none}.hud-left,.hud-right{display:flex;align-items:start;gap:7px}.pill{border:2px solid #294836;border-radius:16px;background:#fff9df;padding:8px 12px;font-size:14px;font-weight:900;box-shadow:0 3px 0 #29483622;white-space:nowrap}.pill small{font-size:11px;display:inline-block;margin-left:4px;font-weight:600}.hud button{pointer-events:auto}#friend{background:#ffe0a1}#pause{min-width:40px}.world-name{background:#ffffffdc;font-size:12px}.overlay{position:absolute;inset:0;background:#183b3366;display:grid;place-items:center;z-index:10;padding:18px;overflow:auto;backdrop-filter:blur(4px)}.menu-card{width:min(760px,96%);max-height:100%;background:#fff9e8;border:3px solid #284634;border-radius:23px;box-shadow:0 8px 0 #192d2755;display:grid;grid-template-columns:42% 1fr;overflow:auto}.menu-card>img{width:100%;height:100%;min-height:315px;object-fit:cover}.menu-copy{padding:23px;align-self:center}h1{font-size:clamp(24px,3.8vw,42px);line-height:1.04;letter-spacing:-1.5px;margin:10px 0 12px}p{line-height:1.5;margin:0 0 16px;font-size:15px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:900;color:#5b733e}#menu-buttons{display:flex;gap:9px;flex-wrap:wrap}#menu-buttons button{min-height:44px;padding:10px 18px;border:2px solid #314c34;background:#faad50;border-radius:12px;font-weight:900;font-size:15px;box-shadow:0 3px 0 #314c34}#menu-buttons button.secondary{background:#f2ebd3}#menu-buttons button:disabled{opacity:.55;cursor:default}#menu-help{font-size:11px;color:#65725b;line-height:1.7;margin:16px 0 0}.utility{display:flex;justify-content:space-between;align-items:center;gap:12px;height:30px;padding:2px 6px;color:#d3e3cf;font-size:12px}.utility>div{display:flex;gap:12px}.utility button{border:none;background:none;color:#f6e8b9;font-size:12px;text-decoration:underline;text-underline-offset:3px}.touch-controls{position:absolute;bottom:10px;left:10px;right:10px;display:none;justify-content:space-between;pointer-events:none;gap:20px}.directions,.touch-actions{display:flex;gap:8px;align-items:flex-end}.touch-controls button{pointer-events:auto;border:2px solid #244735;background:#fff9d9ec;border-radius:22px;min-width:58px;height:58px;padding:5px;font-size:24px;font-weight:900;color:#244735;box-shadow:0 4px 0 #24473588;touch-action:none}.touch-controls button.active{background:#ffc65a;transform:translateY(3px);box-shadow:0 1px 0 #24473588}.touch-controls small{display:block;font-size:9px;line-height:12px}.touch-controls .jump{width:68px;height:68px;background:#d2eb8af2}.touch-controls .power{background:#ffd2a4f2}.touch-controls .swap{min-width:49px;height:49px;font-size:22px}.touch-controls .down{display:none}.flight .touch-controls .down{display:block}.flight .touch-controls .swap,.flight .touch-controls .power{display:none}.flight #friend{pointer-events:none;background:#d9edf1}.touch-controls button:active{background:#f4c75c}.menu-card.compact{display:block;width:min(590px,96%)}.compact #cover{display:none}.compact .menu-copy{padding:26px}.compact h1{font-size:28px}.compact #menu-help{font-size:12px}@media(pointer:coarse){.touch-controls{display:flex}.world-name{display:none}.pill small{display:none}}@media(max-width:650px){.overlay{padding:8px}.menu-copy{padding:16px}.menu-card{grid-template-columns:34% 1fr}#menu-help{font-size:10px}.menu-card>img{min-height:230px}h1{font-size:25px;letter-spacing:-.7px}.menu-copy p{font-size:13px}.hud{inset:7px 7px auto}.pill{font-size:12px;padding:6px 8px}.world-name{display:none}.utility{font-size:10px}.utility button{font-size:11px}.touch-controls button{min-width:44px;height:46px}.touch-controls .jump{width:53px;height:53px}.touch-controls .swap{min-width:40px;height:43px}.directions,.touch-actions{gap:5px}.touch-controls{bottom:7px;left:7px;right:7px}.compact .menu-copy{padding:15px}}@media(max-height:460px){.game-shell{width:min(1200px,100%,calc((100dvh - 30px)*16/9))}.utility{height:24px}.menu-copy{padding:12px}.menu-copy p{margin-bottom:10px;font-size:13px}.menu-card>img{min-height:220px}.menu-card h1{font-size:25px}.menu-card #menu-help{font-size:10px;margin-top:10px}#menu-buttons button{min-height:36px;padding:7px 12px}.overlay{padding:8px}.compact .menu-copy{padding:16px}.compact h1{font-size:23px}.compact #menu-help{font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* The same visible controls are available with a mouse, touch or an iPad keyboard. */
.touch-controls{display:flex;gap:16px}
.touch-controls button{min-width:68px;height:70px}
.touch-controls .swap,.touch-controls .power{min-width:80px;width:80px;height:82px;font-size:26px}
.touch-controls .jump{width:82px;height:82px}
.touch-controls small{font-size:12px;line-height:16px}
.key-cue{display:block;font:700 12px/15px "Trebuchet MS",sans-serif;color:#486743}

#menu-help,.compact #menu-help{font-size:13px}
@media(any-pointer:coarse){.key-cue{display:none}.touch-controls .swap,.touch-controls .power{height:72px}}
@media(max-width:650px){
 .touch-controls button{min-width:44px;height:56px}
 .touch-controls .swap,.touch-controls .power{min-width:60px;width:60px;height:62px;font-size:23px}
 .touch-controls .jump{width:62px;height:68px}
 .touch-controls small{font-size:12px;line-height:14px}
 .touch-controls{gap:6px}
 .key-cue{display:none}
 #menu-help,.compact #menu-help{font-size:12px}
}

/* Tips sit outside the canvas, in reserved space that never covers the friends. */
.game-shell{width:min(1200px,100%,calc((100dvh - 94px)*16/9))}
.status-strip{height:48px;display:flex;align-items:center;justify-content:center;padding:4px 12px;text-align:center;color:#fff6d7;font-size:13px;font-weight:700;line-height:1.35}
.status-strip #hint,.status-strip #toast{pointer-events:none}
.seed-panel{display:grid;grid-template-columns:auto auto;gap:3px 8px;align-items:center}
.seed-panel small{display:block;margin:0;font-size:11px;color:#587444}
.seed-track{grid-column:1/-1;height:5px;border-radius:5px;background:#dce3b9;overflow:hidden}
#seed-progress{display:block;height:100%;width:0;background:#70a344;border-radius:5px}
.seed-panel.collected{background:#e5f5a3}
.garden-plots{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:14px 0 20px}
.garden-plot{font-size:28px;text-align:center;border-bottom:7px solid #98714b;border-radius:12px;background:#e8efd0;padding:6px 0}
.garden-plot.empty{color:#98714b;font-size:20px;padding:10px 0}
@media(max-width:650px){.status-strip{font-size:11px;padding:3px 7px}.seed-panel{grid-template-columns:1fr;gap:2px 5px}.seed-panel small{font-size:10px}.utility{gap:4px;padding:2px}.utility>div{gap:7px}.utility button{font-size:10px}.utility>span{max-width:110px;font-size:9px}}
@media(max-height:460px){.game-shell{width:min(1200px,100%,calc((100dvh - 86px)*16/9))}.status-strip{height:44px;font-size:12px}}

/* Smaller touch controls leave more of the ground visible; Jump stays easiest to find. */
@media(any-pointer:coarse){
 .touch-controls button{min-width:56px;height:56px;border-radius:18px}
 .touch-controls .swap,.touch-controls .power{min-width:64px;width:64px;height:58px;font-size:24px}
 .touch-controls .jump{width:70px;height:68px}
 .touch-controls small{font-size:12px;line-height:15px}
 .game-shell{width:min(1200px,100%,calc((100dvh - 80px)*16/9))}
 .status-strip{height:34px;padding:2px 10px;font-size:12px;line-height:1.2}
}
@media(any-pointer:coarse) and (max-width:650px){
 .touch-controls button{min-width:44px;height:46px;border-radius:16px}
 .touch-controls .swap,.touch-controls .power{min-width:56px;width:56px;height:50px;font-size:22px}
 .touch-controls .jump{min-width:58px;width:58px;height:60px}
 .status-strip{font-size:11px;padding:2px 7px}
}
@media(any-pointer:coarse) and (max-height:460px){
 .game-shell{width:min(1200px,100%,calc((100dvh - 74px)*16/9))}
 .status-strip{height:32px}
}
