@font-face{font-family:Nunito;src:url('./assets/nunito.ttf') format('truetype');font-weight:200 1000;font-display:swap}
:root{--paper:#f5f2e9;--ink:#183f3c;--muted:#58716a;--line:#d9ded2;--gold:#e9b849;--teal:#28766a;--soft:#e6ebe0;--radius:12px;color-scheme:light;font-family:Nunito, sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:5px}::selection{background:#ead28a;color:var(--ink)}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:transparent}button:hover:not(:disabled){background-color:var(--soft)}button{transition:background-color .2s ease,transform .2s ease}button:active:not(:disabled){transform:translateY(1px)}.app{width:min(1440px,100%);margin:auto;padding:0 52px}.header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);font-size:35px;font-weight:900;letter-spacing:-.035em;line-height:1.05}.brand-sun{width:46px;height:46px;color:#ba821d;stroke-width:2}.brand-sun circle{fill:var(--gold);stroke:none}.brand-sub{display:block;font-size:13px;font-weight:600;letter-spacing:0;margin-top:7px}.header-actions{display:flex;gap:15px;align-items:center}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}.help-button{display:flex;gap:9px;align-items:center;font-size:14px;font-weight:700;padding:12px;border-radius:var(--radius)}.help-button svg{width:21px;height:21px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;min-height:600px;align-items:center}.stage{position:relative;align-self:stretch;min-height:600px}#scene{position:absolute;inset:20px -25px 20px -35px}#scene canvas{display:block;width:100%;height:100%;touch-action:pan-y}.scene-caption{position:absolute;top:30px;left:0;display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px;z-index:2}.small-sun{width:9px;height:9px;background:var(--gold);border-radius:50%;box-shadow:0 0 0 4px #e9b84925}.scene-note{position:absolute;bottom:35px;left:0;display:flex;gap:9px;align-items:center;color:var(--muted);font-size:13px}.live-dot{height:6px;width:6px;border-radius:50%;background:var(--teal)}.scene-hint{position:absolute;bottom:23px;right:0;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;padding:10px 12px;border-radius:var(--radius)}.scene-hint svg{width:19px;height:19px}.hud{padding:35px 0 28px}.level-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:var(--muted)}.level-dots{display:flex;gap:6px}.level-dots span{width:7px;height:7px;border-radius:50%;background:#d4d9cd;transition:all .3s}.level-dots .active{width:23px;border-radius:8px;background:var(--ink)}.level-dots .done{background:var(--gold)}.task-block{margin-top:26px;min-height:130px}h1{font-size:34px;line-height:1.15;letter-spacing:-.025em;font-weight:850;margin:0 0 15px;text-wrap:balance}p{font-size:15px;line-height:1.6;margin:0}.task-block p{color:var(--muted)}.goal-state{display:flex;gap:11px;align-items:center;min-height:62px;margin:17px 0 10px}.goal-state svg{width:25px;height:25px;flex:0 0 25px;color:var(--teal)}.goal-state strong{font-size:13px;display:block;font-weight:800}.goal-state span{font-size:11px;line-height:1.4;color:var(--muted);display:block;margin-top:4px}.progress-track{height:5px;overflow:hidden;border-radius:3px;background:#dde2d6}.progress-track>div{height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:var(--teal);border-radius:3px;transition:transform .08s linear}.controls{margin-top:29px}.angle-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.angle-heading label{font-size:14px;font-weight:800}.angle-heading output{font-size:35px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.angle-heading output span{color:var(--muted);font-size:24px;margin-left:2px}.slider-row{display:flex;align-items:center;gap:13px;margin-top:15px}.step-button{width:34px;height:34px;border:1px solid #cbd4c5;border-radius:50%;font-size:24px;line-height:1;padding:0;flex:0 0 34px}input[type=range]{width:100%;min-width:0;margin:0;height:40px;appearance:none;background:transparent;cursor:ew-resize;--fill:18.5%}input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:4px;background:linear-gradient(to right,var(--teal) 0 var(--fill),#d8ddcf var(--fill) 100%)}input[type=range]::-moz-range-track{height:6px;border-radius:4px;background:#d8ddcf}input[type=range]::-moz-range-progress{background:var(--teal);height:6px}input[type=range]::-webkit-slider-thumb{appearance:none;width:23px;height:23px;border:4px solid var(--paper);background:var(--teal);box-shadow:0 2px 5px #183f3c28;border-radius:50%;margin-top:-8.5px}input[type=range]::-moz-range-thumb{width:16px;height:16px;border:4px solid var(--paper);background:var(--teal);border-radius:50%}.slider-labels{display:flex;justify-content:space-between;margin:5px 0 0;font-size:11px;color:var(--muted)}.keyboard-help{display:flex;align-items:center;justify-content:center;gap:5px;margin:22px 0 0;color:var(--muted);font-size:11px}.keyboard-help span{margin-left:5px}kbd{font-family:inherit;display:grid;place-items:center;width:22px;height:21px;border:1px solid #cbd4c5;border-radius:5px;background:#efeee4;font-size:14px}.gentle-note{font-size:12px;color:var(--muted);text-align:center;margin:30px 0 0}.hint-text{margin-top:20px;font-size:13px;line-height:1.5;color:var(--teal);padding-top:15px;border-top:1px solid var(--line)}.success{margin-top:18px}.success p{font-size:13px;margin-bottom:16px;color:var(--muted)}.primary-button{display:flex;align-items:center;justify-content:center;gap:15px;min-height:49px;width:100%;padding:12px 17px;border-radius:var(--radius);background:var(--ink);color:#fffdf5;font-size:14px;font-weight:800}.primary-button:hover:not(:disabled){background:#2c6158}.primary-button svg{width:20px}.hud.is-complete .controls{opacity:.5;pointer-events:none}.hud.is-complete .gentle-note{display:none}.world-label{position:absolute;top:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;pointer-events:none;transform:translate(-50%,0);opacity:0}.world-label span{background:var(--paper);border:1px solid #d6ddcb;padding:5px 12px;border-radius:20px;color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap}.world-label svg{height:19px;width:13px;color:var(--ink);margin-top:4px}.loading{position:absolute;inset:0;display:grid;place-items:center;font-size:16px;color:var(--muted);background:var(--paper);z-index:4;transition:opacity .3s}.loading.finished{opacity:0;pointer-events:none}.scene-error{position:absolute;inset:20px;z-index:5;display:flex;flex-direction:column;justify-content:center;gap:20px;background:var(--paper);padding:40px}.scene-error h2{font-size:25px;margin:0}.scene-error p{color:var(--muted)}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);min-height:64px;color:var(--muted);font-size:11px;gap:20px}dialog{color:var(--ink);background:var(--paper);border:0;border-radius:16px;width:min(440px,calc(100% - 36px));padding:38px;box-shadow:0 18px 55px #173d3a30}dialog::backdrop{background:#183f3c68}dialog form{position:relative}.dialog-close{position:absolute;right:-20px;top:-22px}dialog h2{font-size:26px;line-height:1.2;letter-spacing:-.025em;margin:0 20px 18px 0}dialog p,dialog li{font-size:14px;line-height:1.6}dialog ol{padding-left:20px;margin:20px 0}dialog li{padding-left:5px;margin-bottom:10px}.dialog-note{color:var(--muted);margin-bottom:24px}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--paper);z-index:100;padding:30px}
@media(min-width:1450px){.stage{min-height:700px}.game-layout{gap:50px;grid-template-columns:minmax(0,1fr) 320px}.task-block{min-height:162px}h1{font-size:38px}}
@media(max-width:1100px){.app{padding:0 30px}.game-layout{gap:20px;grid-template-columns:minmax(0,1fr) 275px}.stage{min-height:590px}.game-layout{min-height:590px}h1{font-size:30px}.scene-note{font-size:11px}.scene-hint{right:-8px}#scene{inset:30px -15px 40px -25px}}
@media(max-width:760px){.app{padding:0 22px}.header{height:87px}.brand{font-size:28px;gap:9px}.brand-sun{width:35px;height:35px}.brand-sub{font-size:11px;margin-top:5px}.header-actions{gap:3px}.help-button{padding:10px}.help-button span{display:none}.game-layout{display:flex;flex-direction:column;gap:0;min-height:0}.stage{width:100%;height:360px;min-height:360px}#scene{inset:14px -15px 6px -15px}.scene-caption{top:18px;font-size:11px}.scene-note{bottom:4px;font-size:11px;left:0}.scene-hint{bottom:-5px;right:-8px;font-size:11px}.hud{width:100%;padding:27px 0 22px}.task-block{margin-top:17px;min-height:0}h1{font-size:29px;margin-bottom:9px}.task-block p{font-size:14px;line-height:1.5;max-width:52ch}.level-row{font-size:12px}.goal-state{margin:15px 0 6px;min-height:45px}.goal-state strong{font-size:12px}.goal-state span{font-size:11px}.controls{margin-top:21px}.angle-heading output{font-size:31px}.slider-row{margin-top:9px;gap:15px}.step-button{width:38px;height:38px;flex-basis:38px}.keyboard-help{display:none}.gentle-note{margin-top:21px;font-size:11px}footer{min-height:57px;font-size:11px;line-height:1.5}footer>span:first-child{max-width:140px}.world-label span{font-size:11px;padding:3px 9px}.world-label svg{height:14px}.success{margin-top:17px}}
@media(max-width:370px){.app{padding:0 16px}.stage{height:315px;min-height:315px}.brand{font-size:25px}.brand-sub{font-size:11px}.brand-sun{width:30px;height:30px}.header-actions{gap:0}.header-actions .icon-button{width:35px}.help-button{padding:8px}.scene-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

.target-leader{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;stroke:#426e5d;stroke-width:1;opacity:.65}

#level-select{max-width:155px;padding:6px 20px 6px 0;color:var(--muted);background:transparent;border:0;font:inherit;font-weight:700;cursor:pointer}#level-select:focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:4px}.blind-type{font-size:11px;font-weight:650;color:var(--muted);margin-bottom:8px}.level-dots{gap:5px}.level-row{gap:10px}
