:root{color-scheme:dark;font-family:Inter,Segoe UI,Arial,sans-serif;color:#f4f6eb;background:#101c18}*{box-sizing:border-box}body{margin:0;overflow:hidden}#viewport{position:fixed;inset:0}#viewport canvas{width:100%;height:100%;display:block}header{position:fixed;top:28px;left:32px;right:32px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;text-shadow:0 1px 12px #15271a}a{color:inherit}.brand{display:flex;gap:12px;text-decoration:none;align-items:center;pointer-events:auto;font-size:22px;font-weight:650}.mark{border:1px solid #e2edba77;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;font-size:15px;color:#e3ee9f}small{display:block;font-size:9px;letter-spacing:.18em;margin-top:3px}.edition{font-size:10px;letter-spacing:.2em}.panel{position:fixed;left:32px;top:120px;width:350px;padding:28px;background:#10251edb;border:1px solid #b3c3a633;backdrop-filter:blur(12px);border-radius:8px}.eyebrow{font-size:9px;letter-spacing:.24em;color:#c0d57e}h1{font-size:43px;line-height:1.05;letter-spacing:-.04em;font-weight:500;margin:18px 0}p{font-size:13px;line-height:1.65;color:#c8d3c8;margin:14px 0}button{font:600 13px inherit;border:0;border-radius:5px;padding:15px 16px;cursor:pointer;background:#d8e894;color:#182b18;width:100%;margin-top:12px}button:disabled{opacity:.5;cursor:progress}.secondary{background:transparent;border:1px solid #849a78;color:#e4ecdb;margin-top:8px}.keys{font-size:11px;line-height:2.1;color:#b0c5b1;border-top:1px solid #a3b99144;padding-top:15px;margin-top:14px}.keys b{font-weight:500;color:#f1f3de}.note{font-size:10px;line-height:1.6;margin-bottom:0;color:#a4b7a0}#loading{font-size:10px;margin:8px 0;color:#d8e894}#hud{position:fixed;left:32px;bottom:67px;display:flex;gap:18px;flex-wrap:wrap;font-size:10px;letter-spacing:.07em;text-shadow:1px 1px 4px #000;background:#11261bc4;padding:12px;border-radius:4px}#message{color:#f4dc9f}#minimap{position:fixed;right:32px;bottom:65px;background:#12251bd9;border:1px solid #ccd6b93b;border-radius:5px}footer{position:fixed;bottom:18px;left:32px;right:32px;font-size:9px;color:#dce6d1;display:flex;gap:10px;text-shadow:1px 1px 4px #000}footer span{margin-left:auto}#crosshair{position:fixed;top:50%;left:50%;font-size:16px;opacity:.6}body.walking .panel,body.walking .edition{display:none}@media(max-width:700px){.panel{left:16px;top:92px;width:300px;padding:22px}header{left:16px;top:20px}.edition{display:none}h1{font-size:35px}#hud{left:16px;bottom:42px;max-width:60%}#minimap{width:140px;height:108px;right:16px;bottom:42px}footer{left:16px;font-size:8px}footer span{display:none}}
#walkbar{display:none;position:fixed;top:32px;right:32px;align-items:center;gap:16px;background:#10251edb;border:1px solid #b3c3a633;border-radius:5px;padding:8px 12px;font-size:11px}#walkbar button{width:auto;margin:0;padding:9px 12px}body.walking #walkbar{display:flex}#hud{max-width:calc(100vw - 420px)}#minimap{width:320px;height:250px}#viewport canvas:focus{outline:none}@media(max-width:700px){#minimap{width:180px;height:141px}#walkbar{top:85px;left:16px;right:16px;gap:8px;font-size:10px}#hud{max-width:calc(100vw - 225px)}}

#load-progress{width:100%;height:4px;accent-color:#d8e894}#day-panel{position:fixed;top:100px;right:32px;width:246px;background:#10251edb;border:1px solid #b3c3a633;border-radius:6px;padding:16px;backdrop-filter:blur(10px)}#day-panel label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.12em;color:#d8e894}#day-clock{font-size:12px;letter-spacing:0;color:#f4f6eb}#day-hour{width:100%;accent-color:#d8e894;margin:16px 0}#day-panel div{display:flex;align-items:center;justify-content:space-between;gap:8px}#day-panel span{font-size:9px;color:#c8d3c8}#day-panel button{width:auto;font-size:10px;padding:7px;margin:0;background:transparent;border:1px solid #849a78;color:#e4ecdb}@media(max-width:700px){#day-panel{top:auto;bottom:200px;right:16px;width:180px;padding:12px}#day-panel label{font-size:8px}#day-panel div{flex-wrap:wrap}}
#audio-panel{position:fixed;top:250px;right:32px;width:246px;padding:14px 16px;background:#10251edb;border:1px solid #b3c3a633;border-radius:6px;backdrop-filter:blur(10px);font-size:10px}#audio-panel .audio-top{display:flex;align-items:center;justify-content:space-between;gap:6px}#audio-panel .audio-top span{font-size:9px;letter-spacing:.1em;color:#d8e894}#audio-panel button{width:auto;margin:0;padding:7px;font-size:10px;border:1px solid #849a78;background:transparent;color:#e4ecdb}#audio-panel label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#d1dccb}#audio-panel input{width:135px;accent-color:#d8e894}#audio-panel p{font-size:9px;line-height:1.5;margin:10px 0;color:#bfceb8}#audio-panel small{font-size:8px;letter-spacing:0;line-height:1.5;color:#a4b7a0}#audio-panel summary{cursor:pointer;font-size:10px;color:#d8e894}#audio-panel details a{display:block;margin:12px 0;color:#d8e894}#audio-panel details{margin:10px 0}@media(max-width:700px){#audio-panel{top:20px;right:16px;width:180px;padding:10px}#audio-panel input{width:88px}#audio-panel .audio-top{flex-wrap:wrap}#audio-panel small,#audio-state{display:none}#audio-panel details{margin-bottom:0}}

#quality-panel{position:fixed;top:100px;right:32px;width:246px;background:#10251edb;border:1px solid #b3c3a633;border-radius:6px;padding:16px}#quality-panel label{display:block;font-size:12px;color:#d8e894}#quality-select,#fps-select{width:100%;min-height:44px;margin-top:10px;background:#142d22;color:#edf4d5;border:1px solid #849a78;border-radius:4px;font:14px system-ui;padding:8px}#quality-note{font-size:12px;margin:10px 0 0}#day-panel{top:280px}#audio-panel{top:430px}

#quality-panel p{font-size:12px;margin:10px 0}#quality-panel label[for="fps-select"]{margin-top:14px}#day-panel{top:390px}#audio-panel{top:540px}

#mapbar{display:none;position:fixed;top:120px;left:32px;gap:8px;z-index:21}#mapbar button{width:auto;min-height:44px;margin:0;padding:10px 13px;font:14px system-ui}body.exploring:not(.walking) #mapbar{display:flex}body.exploring .panel{display:none}
#run-toggle{display:none;position:fixed;z-index:14;right:370px;bottom:80px;width:116px;min-height:48px;margin:0;font:14px system-ui;background:#10251edb;color:#edf4d5;border:1px solid #b3c3a64d}body.walking #run-toggle{display:block}#run-toggle[aria-pressed=true]{background:#d8e894;color:#182b18}
#movement-panel{position:fixed;left:32px;top:120px;width:246px;padding:16px;background:#10251edb;border:1px solid #b3c3a633;border-radius:6px}body:not(.walking):not(.exploring) #movement-panel{display:none}#movement-panel label{display:block;font-size:14px;color:#d8e894}#movement-panel label:not(:first-child){margin-top:14px}#movement-panel p{font-size:13px}#movement-speed,#camera-sensitivity{width:100%;min-height:44px;margin-top:10px;background:#142d22;color:#edf4d5;border:1px solid #849a78;border-radius:4px;font:14px system-ui;padding:8px}
body.exploring:not(.walking) #movement-panel{top:180px}

/* Experimental explorer is only revealed through Settings, including desktop. */
#experimental-panel label{display:block;color:#d8e894;font-size:14px}
#explorer-mode{width:100%;min-height:44px;margin-top:10px;background:#142d22;color:#edf4d5;border:1px solid #849a78;border-radius:4px;font:14px system-ui;padding:8px}
@media(min-width:901px) and (pointer:fine){
 #compact-toolbar{display:block;position:fixed;z-index:23;left:32px;top:74px}
 #settings-toggle{width:auto;min-height:36px;margin:0;padding:8px 14px;background:#10251ecf;color:#edf4d5;border:1px solid #b3c3a64d}
 #settings-toggle[aria-expanded=true]{background:#d8e894;color:#182b18}
 [data-settings-group=experimental]{display:none;position:fixed;z-index:24;top:120px;left:32px;width:280px;max-height:calc(100dvh - 150px);overflow-y:auto;padding:18px;border:1px solid #b3c3a64d;border-radius:6px;background:#10251e}
 body.settings-open [data-settings-group=experimental]{display:block}
 #experimental-panel p{margin-bottom:0}
}

#floor-retry{position:fixed;z-index:30;pointer-events:auto;left:50%;bottom:90px;transform:translateX(-50%);width:auto;max-width:80vw;margin:0;padding:10px 16px}
#floor-retry[hidden]{display:none}
