:root{--ink:#264e46;--muted:#607c72;--line:#34654b24;--paper:#f4f7eccc;--gold:#d3a650;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#b8d7d7;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #a07623;outline-offset:4px}button:disabled{opacity:.6}button,select{border:1px solid var(--line)}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}#scene{position:relative;width:100%;height:100%;isolation:isolate}#world{display:block;width:100%;height:100%;touch-action:none;outline:0;cursor:grab}#world.steering{cursor:grabbing}.hud{position:absolute;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:2}.hud button{pointer-events:auto}.top{top:max(22px,env(safe-area-inset-top))}.bottom{bottom:max(24px,env(safe-area-inset-bottom))}.brand{display:flex;gap:11px;align-items:center;text-shadow:0 1px 12px #ffffff66}.brand-mark{font-size:40px;line-height:1;font-weight:400}.brand strong{display:block;font-weight:750;font-size:16px;letter-spacing:.26em;line-height:1.5}.brand small{display:block;font-size:9px;letter-spacing:.2em}.brand small b{font-weight:500;margin-left:3px;color:#7d6b3f}.glass{background:var(--paper);box-shadow:0 5px 22px #31543f10;border:1px solid #fcfff6a8}.icon-button{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:29px;background:#edf2eccc;flex:none}.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.journey{display:flex;gap:8px;align-items:center;border-radius:30px;padding:11px 17px;font-size:12px;min-height:44px;font-variant-numeric:tabular-nums}.dot{height:6px;width:6px;background:#628754;border-radius:50%;box-shadow:0 0 0 4px #62875412}.journey-caption{color:#688075}.breeze{display:flex;align-items:center;gap:10px;border-radius:30px;padding:12px 19px;min-height:48px;font-size:13px;font-weight:600}.breeze svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round}.hint{position:absolute;pointer-events:none;bottom:37px;left:50%;transform:translateX(-50%);color:#f6f7eb;background:#294e3e9c;padding:10px 17px;border-radius:30px;font-size:12px;white-space:nowrap;transition:opacity .8s;z-index:1}.hint span{opacity:.55;margin:0 5px}.hint.dismissed{opacity:0}#joystick{pointer-events:none;position:absolute;display:none;left:0;top:0;width:106px;height:106px;border:1px solid #fffffc66;border-radius:50%;background:#eff9ea24;transform:translate(-50%,-50%);z-index:3}#joystick div{position:absolute;width:36px;height:36px;left:34px;top:34px;border-radius:50%;border:1px solid #fff9;background:#f9ffe8aa;box-shadow:0 2px 12px #2c54352b}#tap-ring{position:absolute;pointer-events:none;border-radius:50%;width:26px;height:26px;display:none;border:1px solid #fff;transform:translate(-50%,-50%);z-index:3}#toast{position:absolute;top:100px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:12px;background:#274d43eb;color:#fbf7e7;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;text-align:center;z-index:5}#toast.on{opacity:1}#boot{position:absolute;inset:0;z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#e5ecdf;color:#375e4e}#boot .seed-logo{font-size:70px;color:#778e5b}#boot strong{font-size:17px;font-weight:600}#boot span{font-size:13px;color:#6a7d6e}#boot.ready{display:none}#boot.failed{padding:28px;text-align:center}#boot.failed button{padding:12px 20px;border-radius:10px;background:#f7f7ec}
dialog{margin:auto;width:min(470px,calc(100% - 28px));max-height:min(790px,calc(100dvh - 40px));padding:0;border:1px solid #ffffffb3;border-radius:24px;background:#f4f6ed;color:var(--ink);box-shadow:0 26px 90px #19322c44;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#213c385c}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 18px;border-bottom:1px solid var(--line);flex:none}.eyebrow{margin:0 0 6px;font-size:9px;font-weight:700;letter-spacing:.21em;color:#7c855d}h1{font:500 31px/1.1 Georgia,serif;letter-spacing:-.025em;margin:0}.sheet-body{padding:6px 24px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.lede{font-size:14px;line-height:1.65;color:#557369;margin:16px 0 22px}.compare{border:0;margin:0 0 20px;padding:0}.compare legend{font-size:12px;font-weight:650;margin-bottom:10px}.segmented{display:flex;background:#e4eadf;border-radius:12px;padding:4px;gap:4px}.segmented button{flex:1;background:transparent;border:0;border-radius:9px;padding:13px 8px;font-size:13px;font-weight:600}.segmented button[aria-pressed=true]{background:#fffdf1;box-shadow:0 2px 6px #2a3e2714}.compare p{font-size:11px;color:#708175;line-height:1.5;margin:9px 0 0}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-top:1px solid var(--line);font-size:13px;font-weight:600}.setting small{display:block;max-width:255px;font-weight:400;font-size:11px;color:#778879;margin-top:4px;line-height:1.5}.setting select{padding:10px 9px;border-radius:9px;background:#fffdf3;font-size:12px;min-height:44px}.setting input[type=checkbox]{appearance:none;-webkit-appearance:none;width:42px;height:26px;border-radius:20px;background:#c5cfc1;position:relative;flex:none;cursor:pointer;transition:background .15s}.setting input[type=checkbox]:before{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:#fbfcf2;top:3px;left:3px;box-shadow:0 1px 4px #1234;transition:transform .15s}.setting input[type=checkbox]:checked{background:#51896f}.setting input[type=checkbox]:checked:before{transform:translateX(16px)}details{border-top:1px solid var(--line);padding-top:14px;margin-top:1px}summary{font-size:12px;cursor:pointer;min-height:32px}details p{font-size:12px;line-height:1.65;color:#687c6e}details .small{font-size:11px}.sun-control{display:flex;align-items:center;gap:12px;font-size:12px}input[type=range]{accent-color:#5a8061;min-height:32px;flex:1;min-width:100px}pre{font:11px/1.7 ui-monospace,monospace;background:#e6ecdf;padding:12px;border-radius:8px;white-space:pre-wrap}.reset{width:100%;padding:13px 12px;margin-top:14px;background:transparent;border-radius:10px;font-size:12px}.sheet-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:16px 24px 20px;flex:none}.sheet-foot>span{font-size:8px;letter-spacing:.15em;color:#7d8875}.sheet-foot button{border:0;border-radius:12px;background:#315d4d;color:#fffae9;font-size:12px;padding:14px 18px;min-height:44px}.sheet-foot button span{margin-left:8px}
@media(max-width:600px){.hud{left:max(17px,env(safe-area-inset-left));right:max(17px,env(safe-area-inset-right))}.top{top:max(16px,env(safe-area-inset-top))}.bottom{bottom:max(21px,env(safe-area-inset-bottom))}.brand strong{font-size:13px}.brand small{font-size:8px}.brand-mark{font-size:35px}.brand{gap:8px}.journey{padding:11px 13px;font-size:11px}.breeze{padding:12px 15px;font-size:12px}.hint{bottom:83px;font-size:11px;max-width:90vw}.journey-caption{display:none}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:20px}.sheet-head{padding:20px}.sheet-body{padding:2px 20px 16px}.sheet-foot{padding:14px 20px}h1{font-size:29px}}
@media(max-height:480px){.brand strong{font-size:12px}.brand small{font-size:7px}.top{top:12px}.bottom{bottom:12px}.hint{bottom:22px}.icon-button{width:44px;height:44px}dialog{max-height:calc(100dvh - 16px)}.sheet-head{padding:12px 18px}.sheet-foot{padding:10px 18px}h1{font-size:24px}.lede{margin-top:12px}.sheet-body{padding:0 18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Lab 02: no new controls over the meadow; extra tuning stays in the sheet. */
#sky-settings{margin-bottom:12px}#sky-settings>summary{padding-top:2px;font-weight:600}
.sun-control{margin-top:10px;padding:9px 0}.sun-control span{min-width:96px}.sun-control output{display:block;font-size:10px;color:#688075;margin-top:5px}.small{font-size:11px;line-height:1.6;color:#688075}
.sky-compare{margin-bottom:18px}.sheet-foot{background:#f4f6ed}.setting input[type=checkbox]{margin:5px 0;outline-offset:7px}.sheet-head .icon-button{background:#e5ede2}

/* 03: two destinations, one-thumb movement. Weather indicator is not a button. */
.world-switch{pointer-events:auto;display:flex;gap:3px;padding:4px;border-radius:28px;position:absolute;left:50%;transform:translateX(-50%)}
.world-switch button{background:transparent;border:0;border-radius:22px;min-height:44px;min-width:90px;font-size:12px;font-weight:650;padding:10px 18px}
.world-switch button[aria-pressed=true]{background:#315d54;color:#fffdf0;box-shadow:0 2px 7px #16382b25}
.wind-status{display:flex;align-items:center;gap:9px;border-radius:30px;padding:12px 17px;font-size:12px;min-height:48px}
.wind-status svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#water-settings{margin-bottom:12px}#water-settings>summary{font-weight:600}
body[data-world=ocean]{--ink:#22535f;--paper:#eff9f1df;--line:#39768624}
body[data-world=ocean] .world-switch button[aria-pressed=true]{background:#255c69}
body[data-world=ocean] .dot{background:#59aaa3}
@media(max-width:600px){.brand-mark{display:none}.brand strong{font-size:10px;letter-spacing:.15em}.brand small{font-size:6px;letter-spacing:.10em}.world-switch button{min-width:66px;padding:10px 11px;font-size:11px}.world-switch{gap:2px;padding:3px}.wind-status{font-size:11px;padding:12px 13px}.hint{font-size:10px}.sheet-foot>span{display:none}}
@media(max-width:365px){.brand strong{font-size:9px}.brand small{font-size:5px}.world-switch{left:52%}.world-switch button{min-width:61px;padding:10px 9px}}

/* Three worlds, still thumb-sized and uncluttered. */
body[data-world=frost]{--ink:#284f65;--muted:#6b7e90;--paper:#f3f8ffdc}
body[data-world=frost] .dot{background:#719cb4}
body:not([data-world=frost]) #snow-settings{display:none}
body:not([data-world=ocean]) #water-settings{display:none}
@media(max-width:600px){.world-switch button{min-width:60px;padding:10px 9px;font-size:11px}.top .brand{width:60px}.top .brand small{display:none}.top .brand strong{font-size:8px;letter-spacing:.07em}}
@media(max-width:400px){.hud.top{left:12px;right:12px}.top .brand{display:none}.world-switch{position:static!important;transform:none!important;left:auto!important}.top{gap:10px}.world-switch button{min-width:66px}.world-switch{margin-right:auto}.icon-button{width:44px;height:44px}}

/* 05: compact four-world switch, at least 44px-tall touch targets. */
body:not([data-world=desert]) #desert-settings{display:none}
body[data-world=desert]{--ink:#634626;--paper:#fff0d7df;--line:#8c653124}
body[data-world=desert] .world-switch button[aria-pressed=true]{background:#8b6236}
body[data-world=desert] .dot{background:#b58144}
.world-switch button{min-width:76px;padding-inline:15px}
@media(max-width:750px){.top .brand{display:none}.world-switch{position:static!important;transform:none!important;margin-right:auto}.hud.top{gap:10px}.world-switch button{min-width:57px;padding:10px 11px}.top .icon-button{width:44px;height:44px}}
@media(max-width:365px){.world-switch button{min-width:53px;padding-inline:8px;font-size:10px}.hud.top{left:9px;right:9px;gap:6px}}

/* Five-world compact selector; one-thumb touch targets remain at least 42px. */
body[data-world="industry"]{--ink:#deedf2;--muted:#91aeba;--glass:#112b38d9;--line:#70bed355;--accent:#8bdbe4;}
body[data-world="industry"] .glass{background:rgba(14,34,46,.82);color:#dff4f8;border-color:#74c3d752;}
body[data-world="industry"] .world-switch button[aria-pressed="true"]{background:#caeff2;color:#13323e;}
body[data-world="industry"] #lab{color:#163c43;}
body[data-world="industry"] .brand{color:#e7f4f7;text-shadow:0 1px 3px #123b4a;}
@media(max-width:620px){.world-switch button{min-width:0;padding:9px 10px;font-size:11px;min-height:42px;}.world-switch{gap:1px;} .brand small{display:none;}}
@media(max-width:380px){.world-switch button{padding:8px 7px;font-size:10px;}}
