:root{font-family:Arial,Helvetica,sans-serif;color:#244332;background:#c0e8ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid #24433222;color:#244332;background:#ffffffa8;border-radius:50px;padding:13px 19px;font-weight:700}button:hover{background:#fff}button:focus-visible,a:focus-visible{outline:3px solid #ed694b;outline-offset:4px}button:disabled{opacity:.4;cursor:default}#game{height:100svh;min-height:540px;overflow:hidden;position:relative}#scene{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;top:30px;left:4%;right:4%;display:flex;align-items:center;justify-content:space-between;gap:20px}.stats{display:flex;gap:40px;margin-left:auto;margin-right:35px}.stats>span{font-size:9px;letter-spacing:2px}.stats strong{display:block;font-size:24px;letter-spacing:-1px;margin-top:6px}#panel{position:absolute;left:7%;top:25%;max-width:540px}h1{font-size:clamp(38px,4.8vw,70px);letter-spacing:-3px;line-height:1.05;margin:24px 0}p{font-size:15px;line-height:1.65;color:#4a6655}.primary{background:#294f36;color:#fff;border:0;padding:17px 28px;min-width:175px;margin-top:15px;box-shadow:0 6px #193c29}.primary:hover{background:#366544}#error{position:absolute;inset:20%;background:#fff;padding:30px;border-radius:20px;z-index:5}.playing #panel{display:none}.paused #panel,.over #panel{background:#f8faf0ee;padding:26px 32px;border-radius:24px;top:24%;box-shadow:0 15px 60px #23432622}.paused h1,.over h1{font-size:44px;margin:12px 0}@media(max-width:650px){header{top:20px;gap:10px}.stats{gap:15px;margin:0}.stats strong{font-size:19px}.stats>span{font-size:7px;letter-spacing:1px}#panel{left:7%;top:20%;right:7%}h1{font-size:40px;letter-spacing:-2px;margin:14px 0}p{font-size:13px}.paused #panel,.over #panel{top:21%;padding:22px}}h1{font-size:clamp(38px,4.1vw,59px)}header{padding:10px 14px;top:20px}@media(min-width:651px){#panel{max-width:650px}}.stats strong{white-space:nowrap}@media(max-width:650px){header{padding:8px 6px;left:3%;right:3%}.stats{gap:10px}}.over #panel{max-width:460px}.over #panel h1{font-size:38px}@media(max-width:650px){.over #panel{top:17%;padding:18px}.over #panel h1{font-size:30px}.over #panel p{margin:8px 0}}#dance-stage{position:absolute;z-index:3;pointer-events:none;right:3%;top:20%;width:48%;height:64%;opacity:0;visibility:hidden;transition:opacity .3s}#dance-stage.visible{opacity:1;visibility:visible}header{z-index:4}.over #panel{z-index:2}@media(max-width:900px){.over #panel{top:17%;left:5%;right:5%;max-width:460px;padding:20px}.over #panel h1{font-size:32px}.over #panel p{font-size:13px}#dance-stage{left:10%;right:4%;top:48%;height:40%;width:auto}}@media(max-width:480px){#dance-stage{left:0;right:0;top:43%;height:43%}.over #panel h1{font-size:30px}}.dying #panel,.transition #panel{display:none}#game.ready{min-height:0}.ready #panel{top:50%;left:clamp(24px,10vw,145px);right:auto;width:min(230px,38%);transform:translateY(-50%);display:grid;gap:14px;z-index:2}.ready #panel button{width:100%;min-width:0;margin:0;text-align:center}.stat-label{text-transform:uppercase}#language-switcher:not([hidden]){position:absolute;right:4%;bottom:calc(10px + env(safe-area-inset-bottom));z-index:4;display:flex;gap:8px}#language-switcher button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:2px solid transparent;background:#f8faf0e8}#language-switcher button[aria-pressed=true]{border-color:#294f36}#language-switcher img{display:block;border-radius:3px}#open-tutorial{background:#f8faf0e8;border-color:#294f3659}#open-tutorial:hover{background:#fff}#status{position:absolute;bottom:24px;left:50%;transform:translate(-50%);width:max-content;max-width:90%;z-index:4;border-radius:16px;padding:9px 15px;background:#fffbece8;text-align:center;font-size:12px;font-weight:700}#tutorial{width:min(700px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #294f3626;border-radius:24px;padding:clamp(14px,3vw,25px);background:#f8faf0;color:#244332;box-shadow:0 24px 80px #173b3066}#tutorial::backdrop{background:#193c2966}.tutorial-header,.tutorial-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.tutorial-header h2{margin:0;font-size:clamp(21px,4vw,29px)}#close-tutorial{flex:0 0 44px;height:44px;padding:0;font-size:27px;line-height:1}#tutorial-scene{position:relative;height:clamp(145px,38dvh,320px);margin:14px 0;overflow:hidden;border-radius:16px;background:#bee7ef}#tutorial-scene canvas{position:absolute;inset:0}#tutorial-hay,#tutorial-fallback{position:absolute;z-index:1;top:12px;right:12px;border-radius:20px;padding:8px 12px;background:#fffbece8;font-size:13px;font-weight:700}.tutorial-caption{min-height:112px;text-align:center}#tutorial-step{margin:0;font-size:12px;font-weight:700}#tutorial-move{margin:4px 0 6px;font-size:clamp(20px,4vw,26px)}#tutorial-instruction{margin:0;color:#244332;font-size:16px;font-weight:700}#tutorial-detail{margin:4px 0 0;font-size:13px}.tutorial-actions{margin-top:12px}.tutorial-actions button{min-width:104px;min-height:44px}.tutorial-actions .primary{margin:0;padding:12px 22px}@media(max-aspect-ratio:9/10){.ready #panel{top:auto;bottom:max(calc(64px + env(safe-area-inset-bottom)),9svh);left:50%;width:min(270px,80%);transform:translate(-50%)}}@media(max-width:650px){#status{bottom:44px}}@media(max-height:580px){#tutorial-scene{height:clamp(120px,34dvh,220px)}.tutorial-caption{min-height:0}}#sound{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;white-space:nowrap}#sound svg{flex:none}#sound[aria-pressed=false] .sound-on,#sound[aria-pressed=true] .sound-off{display:none}header.run-hud{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(6px,1.5vw,20px)}.run-hud #sound{grid-column:1;grid-row:1;justify-self:start}.run-hud .stats{grid-column:2;grid-row:1;margin:0;text-align:center}#pause{grid-column:3;grid-row:1;justify-self:end}.pause-button{min-height:44px;padding:10px 18px;color:#fff5fa;background:#5d375c;border-color:#5d375c;box-shadow:0 4px 12px #44284144}.pause-button:hover{background:#71466f}#controls{position:absolute;z-index:4;left:4%;right:4%;bottom:max(22px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:12px;pointer-events:none}#controls button{min-height:44px;pointer-events:auto;white-space:nowrap}.ready #controls,.over #controls{display:none}#hay-count{background:#fffbece8;font-variant-numeric:tabular-nums;touch-action:manipulation}#hay-count:disabled{opacity:1}#hay-count:enabled{background:#ffe48b;border-color:#9f762f}#hay-count:enabled:hover{background:#ffedae}#duck{touch-action:none;-webkit-user-select:none;user-select:none}.paused #panel-actions{display:grid;justify-content:start;gap:8px}.over #panel-actions{display:flex;gap:clamp(8px,2vw,14px);margin-top:18px}.over #panel-actions>button,.paused #return-menu{flex:1 1 0;min-width:0;min-height:46px;margin:0;padding:11px 10px;text-align:center;white-space:nowrap}.secondary{background:#edf3e7;border-color:#294f3640}#status{bottom:82px}@media(max-width:650px){.run-hud .stats{gap:clamp(8px,2.5vw,16px)}.run-hud .stats>span{letter-spacing:.65px}.run-hud .stats strong{font-size:clamp(16px,4.4vw,19px)}#sound{padding:8px 10px;font-size:11px}#sound svg{width:16px;height:16px}#pause{padding:8px 10px;font-size:11px}#controls button{padding:10px 13px;font-size:13px}#status{bottom:78px}}@media(max-width:390px){.run-hud #sound{flex-direction:column;gap:2px;padding:5px 8px}.over #panel-actions{margin-top:13px}}@media(max-height:539px){#game{min-height:0}}#appearance{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid #294f3626;border-radius:24px;padding:clamp(12px,2.5vw,16px);background:#f8faf0;color:#244332;box-shadow:0 24px 80px #173b3066;overflow:hidden}#appearance[open]{display:flex;flex-direction:column;gap:8px}#appearance::backdrop{background:#193c2966}#appearance .tutorial-header{flex-shrink:0}#close-appearance{flex:0 0 44px;height:44px;padding:0;font-size:27px}.appearance-body{min-height:0;overflow:auto;overscroll-behavior:contain}#appearance-scene{position:relative;height:clamp(105px,19dvh,165px);margin-bottom:8px;overflow:hidden;border-radius:17px;background:#bee7ef}#appearance-scene canvas{position:absolute;inset:0;touch-action:pan-y}#appearance-fallback{position:absolute;inset:12px;text-align:center}#appearance-options{display:grid;gap:5px}.appearance-category{padding:5px 8px;border:1px solid #294f3626;border-radius:12px;background:#edf3e7}.appearance-category h3{margin:0 0 4px;font-size:14px}.appearance-choices{display:flex;flex-wrap:wrap;gap:6px}.appearance-option{position:relative;display:grid;place-items:center;flex:0 0 calc((100% - 18px)/4);min-width:44px;min-height:44px;padding:3px;border-radius:10px;background:#fff}.appearance-option:focus-visible{outline-offset:1px}.appearance-option svg{display:block;width:36px;height:30px;max-width:100%}.appearance-color,.appearance-color:hover{background:var(--swatch-color)}.appearance-option[aria-pressed=true]{border-color:#315c3d;box-shadow:inset 0 0 0 2px #315c3d,inset 0 0 0 4px #fff}.appearance-option[aria-pressed=true]:after{content:"✓";position:absolute;top:3px;right:3px;width:16px;line-height:16px;border-radius:50%;background:#315c3d;color:#fff;font-size:11px;text-align:center}.appearance-actions{display:flex;flex-shrink:0;justify-content:flex-end}.appearance-actions .primary{margin:0 0 5px;min-width:120px;padding:12px 22px}@media(max-width:650px){.appearance-actions .primary{width:100%}}@media(max-height:650px)and (max-aspect-ratio:9/10){.ready #panel{gap:10px}.ready #panel button{min-height:44px;padding:10px 14px}}.brand{flex-shrink:0;padding:7px 12px;border-radius:999px;background:#fff4df;color:#25221f;font-size:clamp(25px,3.4vw,40px);font-weight:900;letter-spacing:-1px;line-height:1;text-decoration:none;white-space:nowrap}@media(max-width:650px){.brand{padding:6px 9px}}
