:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#000;color:#f4f5f7}*{box-sizing:border-box}body{margin:0}#game{width:100vw;height:100dvh;display:block;outline:none}.voice{position:fixed;bottom:24px;left:24px;width:min(900px,calc(100vw - 180px));text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:12px;pointer-events:none}.voice[hidden]{display:none}#record{display:inline-flex;justify-content:center;align-items:center;gap:12px;width:264px;max-width:100%;height:96px;flex-shrink:0;padding:0 22px;font:650 18px/1.2 system-ui,sans-serif;color:#103322;border:1px solid #a7ecc2;background:#7cdda5;border-radius:20px;cursor:pointer;box-shadow:0 6px 24px #0005;pointer-events:auto;transition:background .2s,border-color .2s}#record[data-mode=idle]:hover{background:#96e7b8}#record:focus-visible{outline:3px solid #ffffff;outline-offset:4px}#record svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#record .microphone-level,#record .spinner{display:none}#record:not([data-mode=idle]) svg{display:none}#record[data-mode=recording]{color:#3e230b;background:#f3a348;border-color:#ffc880;animation:recording-pulse 1.8s ease-in-out infinite}#record[data-mode=recording] .microphone-level{display:flex;align-items:center;justify-content:center;gap:3px;width:21px;height:26px;flex-shrink:0}.microphone-level i{display:block;width:4px;height:4px;flex-shrink:0;border-radius:2px;background:currentColor;opacity:.35;transition:height 45ms linear}#record[data-mode=readying]{color:#f0f2f5;background:#454c54;border-color:#737b85}#record[data-mode=readying] .spinner{display:block;width:22px;height:22px;border:2px solid #ffffff45;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.build-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:clip}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}output{background:#20242b;border:1px solid #525961;border-radius:10px;padding:8px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}#status{width:min(100%,420px);max-height:18vh;overflow-y:auto;pointer-events:auto}#runtime-error{position:fixed;left:16px;top:16px;max-width:min(700px,90vw)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes recording-pulse{50%{background:#ffb45e;box-shadow:0 0 0 6px #f3a3481a,0 6px 24px #0005}}@keyframes text-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){#record,#record .spinner,.microphone-level i,.change-progress-value,.change-card .build-label{animation:none!important;transition:none}}#play-pause{position:fixed;right:24px;bottom:24px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:104px;height:48px;padding:0 16px;color:#f4f5f7;background:#1b2028f0;border:1px solid #ffffff40;border-radius:14px;box-shadow:0 4px 16px #0005;font:600 15px/1 system-ui,sans-serif;cursor:pointer}#play-pause[hidden]{display:none}#play-pause:hover{background:#303945}#play-pause:focus-visible{outline:3px solid #fff;outline-offset:4px}#play-pause svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}#play-pause[data-playing=true] .play-icon,#play-pause[data-playing=false] .pause-icon{display:none}#play-pause[data-playing=false]{color:#103322;background:#7cdda5;border-color:#a7ecc2}#play-pause[data-playing=false]:hover{background:#96e7b8}@media(max-width:480px){#play-pause{right:16px;bottom:132px}}#game{touch-action:none}#game.camera-hand{cursor:grab}#game.camera-hand:active{cursor:grabbing}#camera-tools{position:fixed;right:24px;bottom:84px;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 48px)}#camera-tools[hidden]{display:none}#camera-tools button{height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-radius:12px;border:1px solid #ffffff40;background:#1b2028f0;color:#f4f5f7;font:600 14px system-ui,sans-serif;cursor:pointer}#camera-tools button[hidden]{display:none}#camera-tools button[aria-pressed=true]{background:#7cdda5;color:#103322}#camera-tools button:focus-visible{outline:3px solid #fff;outline-offset:3px}#camera-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}@media(max-width:480px){#camera-tools{right:16px;bottom:192px;flex-wrap:wrap;justify-content:flex-end}}#change-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden}.change-cards{position:absolute;display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0;overflow-y:auto;pointer-events:auto;scrollbar-width:thin;overscroll-behavior:contain}.change-card{display:block;flex-shrink:0;width:100%;padding:12px 14px;border:1px solid #edaa60;border-radius:12px;color:#ffc17b;background:#281f17f5;box-shadow:0 4px 18px #0008;font:550 14px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}.change-heading{display:flex;align-items:center;gap:10px;min-width:0}.change-progress{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px}.change-progress svg{position:absolute;inset:0;width:32px;height:32px;transform:rotate(-90deg);pointer-events:none}.change-progress circle{fill:none;stroke:currentColor;stroke-width:2}.change-progress-track{opacity:.2}.change-progress-value{stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;transition:stroke-dashoffset .25s ease-out}.change-progress .change-emoji{position:relative}.change-refinements{list-style:none;margin:8px 0 0 9px;padding:0 0 0 14px;border-left:1px solid currentColor}.change-refinements[hidden]{display:none}.change-refinement{display:flex;align-items:center;gap:7px;min-width:0;margin-top:7px;font-size:12px;font-weight:500}.change-refinement .change-emoji{flex-basis:16px;width:16px;font-size:14px;line-height:16px}.change-card[data-status=completed]{color:#8bdfa9;border-color:#8bdfa9;background:#14271cf5}.change-card[data-status=failed]{color:#f5a29a;border-color:#f5a29a;background:#2b1918f5}.change-emoji{flex:0 0 20px;width:20px;font-size:18px;line-height:20px;text-align:center}.change-particles{position:fixed;inset:0;pointer-events:none;overflow:hidden}.change-particle{position:absolute;width:5px;height:5px;border-radius:1px;pointer-events:none}#game.thing-dragging{cursor:grabbing}#selection-outline{position:fixed;pointer-events:none;border:2px solid #83e9ff;border-radius:5px;box-sizing:border-box;box-shadow:0 0 0 1px #102c38,0 0 12px #83e9ff55}#selection-outline[hidden],#selection-status[hidden]{display:none}#selection-outline span{position:absolute;bottom:calc(100% + 5px);left:-2px;padding:3px 7px;color:#102c38;background:#83e9ff;border-radius:4px;white-space:nowrap;font:600 12px system-ui,sans-serif}#selection-status{position:fixed;left:16px;bottom:85px;max-width:min(420px,calc(100vw - 32px));background:#1b2028;color:#fff;padding:10px;border-radius:8px;font:14px system-ui,sans-serif}#selection-status button{margin-left:8px}.voice-controls{display:flex;align-items:center;gap:8px;width:100%}#keyboard,#prompt-form button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;padding:0;color:#f4f5f7;background:#1b2028f0;border:1px solid #ffffff40;border-radius:12px;cursor:pointer;pointer-events:auto}#keyboard:hover,#prompt-form button:hover{background:#303945}#keyboard[aria-expanded=true]{background:#7cdda5;color:#103322;border-color:#a7ecc2}#keyboard svg,#prompt-form svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#keyboard:focus-visible,#prompt-form button:focus-visible{outline:3px solid #fff;outline-offset:3px}#prompt-form{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:96px;padding:12px;border:1px solid #737b85;border-radius:20px;background:#1b2028f5;box-shadow:0 6px 24px #0005;pointer-events:auto;animation:prompt-open .15s ease-out}#prompt-form[hidden]{display:none}#prompt{flex:1;width:0;min-width:0;padding:12px 4px;border:0;border-radius:4px;background:transparent;color:#f4f5f7;font:16px/1.4 system-ui,sans-serif}#prompt:focus-visible{outline:2px solid #7cdda5;outline-offset:2px}#prompt::placeholder{color:#aeb7c3}@keyframes prompt-open{0%{opacity:0;transform:translate(-8px)}}@media(prefers-reduced-motion:reduce){#prompt-form{animation:none}}@media(max-width:800px){.voice{left:16px;bottom:24px;width:calc(100vw - 32px)}#status{position:fixed;left:16px;top:64px;width:calc(100vw - 32px)}.voice-controls{display:grid;grid-template-columns:minmax(0,264px) 48px}#record{width:100%}#prompt-form{grid-row:1;grid-column:1 / -1;height:56px;border-radius:12px;padding:4px 8px}#prompt-form button{width:40px;height:40px}#play-pause{right:16px;bottom:132px}#camera-tools{right:16px;bottom:192px;flex-wrap:wrap;justify-content:flex-end}body:has(#prompt-form:not([hidden])) #play-pause{bottom:196px}body:has(#prompt-form:not([hidden])) #camera-tools{bottom:256px}}.home-link{position:fixed;top:12px;right:16px;z-index:10;color:#fff9;background:#0008;padding:6px 10px;border-radius:8px;font-size:13px;text-decoration:none}.home-link:hover{color:#fff}.home-link{right:auto;left:50%;transform:translate(-50%)}#annotation-layer{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none}#annotation-layer[hidden],.annotation-tools[hidden],#annotation-status[hidden]{display:none}#game.annotation-tool{cursor:crosshair}.annotation-tools{position:relative;flex-shrink:0}#camera-tools #annotation-send{position:absolute;right:0;bottom:calc(100% + 8px);width:100%;color:#103322;background:#7cdda5;border-color:#a7ecc2}#camera-tools #annotation-send:hover{background:#96e7b8}#annotation-send:disabled{opacity:.55;cursor:default}#annotation-status{position:fixed;right:24px;bottom:248px;max-width:min(360px,calc(100vw - 48px));pointer-events:auto}.voice-transcript{position:fixed;top:20px;display:flex;flex-direction:column;min-height:0;padding:14px 15px;border:1px solid #ffffff24;border-radius:14px;background:#10171de0;box-shadow:0 4px 24px #0003;backdrop-filter:blur(6px);pointer-events:auto;overflow:hidden}.voice-transcript[hidden]{display:none}.transcript-heading{flex-shrink:0;margin-bottom:12px;color:#a9b8c4;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.04em}.transcript-text{overflow-y:auto;scrollbar-width:thin;white-space:pre-wrap;overflow-wrap:anywhere;color:#ecf0f4;font:400 15px/1.65 system-ui,sans-serif}.transcript-text[data-empty]:before{content:attr(data-empty);color:#8999a7}.transcript-provisional{color:#b4c0cc;opacity:.65}.transcript-consumed{border-radius:3px}.transcript-flight{position:fixed;z-index:50;padding:0;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;pointer-events:none;color:#8bdfa9;font:400 15px/1.65 system-ui,sans-serif;transform-origin:center;text-shadow:0 0 14px #8bdfa977}.transcript-received{box-shadow:0 0 0 2px #8bdfa94a,0 0 24px #8bdfa92b;transition:box-shadow .25s}@media(max-width:480px){.voice-transcript{top:12px;padding:10px 12px}.transcript-text{font-size:14px}}#record[data-mode=credits]{color:#fff3f0;background:#bd383e;border-color:#f58080;animation:none}#record[data-mode=credits]:hover{background:#d3464c}#record[data-mode=credits] .microphone-level,#record[data-mode=credits] .spinner{display:none}.ui{position:fixed;user-select:none;pointer-events:none;font-family:system-ui,sans-serif}#hint{left:16px;bottom:14px;font-size:13px;color:#1e321ebf}#hud{left:16px;top:14px}#hp{width:220px;height:14px;border-radius:8px;background:#140a0f8c;overflow:hidden;box-shadow:0 1px 4px #00000040}#hpfill{height:100%;width:100%;background:linear-gradient(#ff6a5c,#c8261d);transition:width .15s}#stats{margin-top:6px;font-size:13px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}#stats b{color:#ffe08a;font-weight:600}#prompt{left:50%;bottom:60px;transform:translate(-50%);padding:6px 14px;border-radius:16px;background:#14141e99;color:#fff;font-size:14px;opacity:0;transition:opacity .15s}#banner{left:50%;top:38%;transform:translate(-50%,-50%);text-align:center;opacity:0;transition:opacity .3s}#banner .t{font:800 54px/1 system-ui,sans-serif;letter-spacing:.08em;color:#fff;text-shadow:0 3px 12px rgba(120,0,0,.8)}#banner .s{margin-top:8px;font-size:16px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7)}#labels{left:0;top:0;width:100%;height:100%;overflow:hidden}#age{margin-top:4px;font-size:13px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}#age b{color:#9fd0ff;font-weight:700;letter-spacing:.04em}#clock{right:16px;top:14px;padding:5px 12px;border-radius:14px;background:#0f142380;color:#fff;font-size:14px;letter-spacing:.02em}#inv{right:16px;bottom:14px;display:flex;gap:8px}#inv .slot{display:flex;align-items:center;gap:4px;padding:4px 9px 4px 5px;border-radius:10px;background:#140f0a8c;color:#fff;font-size:13px;box-shadow:0 1px 4px #00000040}#inv .slot svg{width:24px;height:24px}#inv .slot.empty{opacity:.55}#inv .ic{margin-right:6px;font-size:16px;vertical-align:-2px}#inv b{color:#ffd88a}#inv i{color:#b8ffb0;font-style:normal;margin-left:4px;font-size:12px}#settings{right:16px;top:48px;pointer-events:auto;padding:4px 10px;border-radius:12px;background:#0f142380;color:#fff;font-size:13px}#settings label{display:flex;align-items:center;gap:6px;cursor:pointer}#settings input{margin:0;cursor:pointer;accent-color:#c8261d}#fade{left:0;top:0;width:100%;height:100%;opacity:0;background:#000}.float{position:absolute;left:0;top:0;font-weight:800;white-space:nowrap;text-shadow:0 0 2px #000,0 2px 4px rgba(0,0,0,.6)}#hint{bottom:54px;max-width:calc(100vw - 28px);font-size:12px}#inv{bottom:12px}#banner{max-width:86vw;width:900px}#settings button,#pause button,#craft button,#upg button,#king button{height:auto;box-shadow:none}#prompt{bottom:90px}.voice{z-index:50}#runtime-error{z-index:100}#craft .act,#craft .fill{width:100%;display:block}#king button{width:auto;display:block}#hint{bottom:88px}#prompt{bottom:122px}body:has(#craft.open,#upg.open,#king.open,#pause.open) .voice{left:24px;transform:none}body:has(#craft.open,#upg.open,#king.open,#pause.open) .voice #status{left:0;transform:none}
