:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#ffe8cc;background:#080505}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:0;left:0;right:0;padding:30px 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:none;z-index:2}header a{color:#ffc78d;text-decoration:none;font-size:12px;letter-spacing:.15em;pointer-events:auto;padding:12px 0}.badge{font-size:10px;letter-spacing:.18em;border:1px solid #775039;border-radius:30px;padding:10px 15px;background:#100a08aa}#intro{position:fixed;z-index:1;left:7vw;top:50%;transform:translateY(-45%);max-width:590px;padding:24px 0;text-shadow:0 2px 28px #000}#intro:before{content:"";position:absolute;inset:-90px -100px;z-index:-1;background:radial-gradient(ellipse at 35% 50%,#080505ed 20%,#08050599 50%,transparent 72%);pointer-events:none}.eyebrow{font-size:11px;letter-spacing:.32em;color:#f5a96a}h1{font-weight:800;font-size:clamp(60px,7vw,105px);line-height:.93;letter-spacing:-.065em;margin:24px 0}h1 span{color:#ed9456}.description{font-size:17px;line-height:1.6;color:#debda5}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}button{border:1px solid #f6b97e;background:#f6b97e;color:#231007;min-height:48px;border-radius:30px;padding:13px 23px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 0 28px #e58d3020}button.secondary{background:#20140ed9;color:#ffe0bb;border-color:#855734}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid white;outline-offset:5px}#status{font-size:12px;color:#ffc58c;max-width:430px;line-height:1.5}.note{margin-top:20px;font-size:11px;line-height:1.8;color:#b7a397}#controls{position:fixed;z-index:2;bottom:20px;left:50%;transform:translateX(-50%);max-width:95vw;width:max-content;align-items:center;justify-content:center;display:flex;flex-wrap:wrap;gap:14px;padding:12px 18px;border:1px solid #714529;border-radius:24px;background:#100b09ed;backdrop-filter:blur(16px)}#controls[hidden]{display:none}label{font-size:12px;display:flex;align-items:center;gap:7px}input{accent-color:#efae6f;width:18px;height:18px}small{font-size:10px;color:#aa9587}#controls span{font-size:11px;color:#b7a397}body.exploring header .badge{display:none}@media(max-width:700px){header{padding:14px 20px}.badge{display:none}#intro{left:8vw;right:6vw}.description{font-size:15px}#controls{bottom:10px;gap:8px;padding:10px}#controls span{flex-basis:100%;text-align:center}small{display:none}.note{max-width:310px}h1{font-size:64px}}@media(max-height:650px){#intro{top:52%;transform:translateY(-46%)}h1{font-size:56px;margin:14px 0}.note{margin-top:10px}.actions{margin-top:15px}}

.launch-touch{margin-top:18px;color:#d2b29b;font-size:11px}.launch-touch small{display:inline}#intro[hidden]{display:none}
/* The same gateway now opens the entire site as a spatial universe. */
.room-preview{display:flex;flex-wrap:wrap;gap:7px;max-width:480px;margin:22px 0 8px}.room-preview span{font-size:9px;letter-spacing:.10em;padding:7px 10px;border:1px solid #80502d7a;border-radius:20px;background:#130c09c9;color:#d9bba0}.launch-options{display:flex;gap:12px 20px;flex-wrap:wrap;max-width:510px;margin-top:18px;color:#dbbaa0}.launch-options label{font-size:11px}#intro{max-width:630px}#intro h1{font-size:clamp(58px,6.5vw,96px)}#controls{width:min(1040px,94vw);border-radius:22px;gap:10px;flex-direction:column;bottom:14px}.toolbar-top,.toolbar-bottom{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;width:100%}.toolbar-top{justify-content:space-between}#room-title{font-size:11px;letter-spacing:.18em;color:#f4bd87}.toolbar-top button,.toolbar-bottom button{min-height:36px;padding:8px 16px;font-size:11px}#room-nav{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}#room-nav button{min-height:36px;padding:8px 13px;font-size:11px;background:#1a1110;color:#d8c5b5;border-color:#574133;box-shadow:none}#room-nav button[aria-pressed="true"]{background:#e6b385;color:#20130c;border-color:#e6b385}.toolbar-bottom label{font-size:11px}#world-status{font-size:10px;color:#bdab9d;text-align:center;line-height:1.4}#item-count{font-size:11px;color:#d5b595}button[hidden]{display:none!important}dialog{color:#ffe3c5;background:#16100e;border:1px solid #9a6941;border-radius:24px;padding:32px;max-width:min(500px,90vw);box-shadow:0 20px 100px #000}dialog::backdrop{background:#000a;backdrop-filter:blur(12px)}dialog h2{font-size:36px;margin:16px 0}dialog p{font-size:14px;line-height:1.6;color:#c7b7a9}dialog label{margin:20px 0 8px}dialog input{display:block;width:100%;border:1px solid #946440;background:#0b0807;border-radius:12px;padding:14px;color:white;font-size:18px}dialog button[type=submit]{width:100%;margin-top:8px}.dialog-close{position:absolute;right:12px;top:12px;min-height:32px;padding:3px 12px;background:transparent;color:#e1b68b;border-color:#725039;font-size:23px}#vault-message{min-height:20px;font-size:12px;color:#ffc78c}@media(max-width:700px){#intro h1{font-size:58px}.room-preview{max-width:330px;margin-top:12px}.room-preview span{font-size:8px;padding:5px 8px}.launch-options{gap:10px;max-width:320px}.note{font-size:10px}.toolbar-top button{padding:7px 9px}.toolbar-top{gap:6px}#room-title{font-size:9px}#room-nav button{font-size:10px;padding:7px 10px}#world-status{font-size:9px}.toolbar-bottom{gap:7px}}@media(max-height:700px){.room-preview{display:none}#intro h1{font-size:54px}.description{margin:12px 0}.launch-options{margin-top:12px}.note{margin-top:10px}#controls{gap:6px;padding:8px 12px}.toolbar-top button,.toolbar-bottom button,#room-nav button{min-height:32px;padding:6px 11px}}@media(prefers-reduced-motion:reduce){canvas{scroll-behavior:auto}}

/* Compact controls, with the same focus treatment in browser preview. */
#controls .toolbar-top button,#controls .toolbar-bottom button,#room-nav button{min-height:28px;padding:5px 10px;font-size:10px;border-radius:10px}
#controls button:hover,#controls button:focus-visible{border-color:#8ad0ff;box-shadow:0 0 16px #4fa9ff66;transform:translateY(-1px);filter:brightness(1.15)}
@media(prefers-reduced-motion:reduce){#controls button:hover,#controls button:focus-visible{transform:none}}

/* Keep preview navigation at the top, matching the spatial dock. */
#controls{top:72px;bottom:auto}
@media(max-width:700px){#controls{top:60px}}

/* Large, readable cache progress; the shimmer stops when work finishes. */
#cache-status{font-size:clamp(21px,2.7vw,34px);font-weight:650;line-height:1.25;max-width:600px;letter-spacing:-.025em}
#cache-status.cache-active{color:#ffe4b8;background:linear-gradient(105deg,#c88d62 15%,#fff8e8 43%,#8bddff 51%,#fff8e8 59%,#c88d62 85%);background-size:300% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:cache-shimmer 1.8s linear infinite}
@keyframes cache-shimmer{to{background-position:-300% 0}}
@media(prefers-reduced-motion:reduce){#cache-status.cache-active{animation:none}}
@media(max-height:850px){#intro{position:relative;top:auto;left:auto;transform:none;margin:90px 7vw 30px;padding:12px 0}body:not(.exploring){overflow-y:auto}#intro h1{font-size:52px;margin:14px 0}.room-preview{display:none}}

/* Readable copper console controls in the browser preview as well as XR. */
#controls{max-height:calc(100dvh - 100px);overflow-y:auto;border:1px solid #e4a06c;background:linear-gradient(145deg,#302019f5,#0d1722f5 55%,#17100cf5);box-shadow:inset 0 0 0 3px #b9783d22,0 12px 38px #0008}
#controls .toolbar-top button,#controls .toolbar-bottom button,#room-nav button{min-height:48px;padding:12px 18px;font-size:17px;line-height:1.25;font-weight:700;border-radius:8px;border-color:#d69864;color:#fff0dd;background:linear-gradient(150deg,#38251d,#12202c 65%,#14100e);box-shadow:inset 0 1px #ffe1ba55;white-space:normal}
#controls button:hover,#controls button:focus-visible{border-color:#ffdeb3;box-shadow:0 0 18px #d78b3e55;transform:none}
#controls #room-nav button[aria-pressed=true]{background:linear-gradient(140deg,#f3c796,#b57548);color:#1c100b}
#controls #room-title{font-size:18px;letter-spacing:.08em}#controls .toolbar-bottom label,#controls #world-status,#controls #item-count{font-size:15px;line-height:1.5}#controls input{width:24px;height:24px}
@media(max-width:700px){#controls .toolbar-top button,#controls .toolbar-bottom button,#room-nav button{font-size:16px;padding:10px 12px}#controls{max-height:45dvh}}

#controls .toolbar-top button,#controls .toolbar-bottom button,#room-nav button{border-radius:18px;background:linear-gradient(180deg,#172334,#0b1422);border-width:1px;font-weight:600;box-shadow:inset 0 1px #ffffff0d,0 3px 12px #0004}
body.vr-controls-hidden #controls,body.vr-controls-hidden header,body.vr-controls-hidden .site-return-nav{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
body[data-vr-theme=copper]{--vr-accent:#df9b65;--vr-panel:#352019;--vr-glow:#df9b6544;--vr-selected:#e6b385}
body[data-vr-theme=aurora]{--vr-accent:#79f4d2;--vr-panel:#18392f;--vr-glow:#39d7b044;--vr-selected:#80dfc5}
body[data-vr-theme=rainbow]{--vr-accent:#dfafff;--vr-panel:#322044;--vr-glow:#bda2ff44;--vr-selected:#d1aeed}
body:is([data-vr-theme=copper],[data-vr-theme=aurora],[data-vr-theme=rainbow]) #controls{border-color:var(--vr-accent);background:linear-gradient(145deg,var(--vr-panel),#0d1722f5);box-shadow:0 0 36px var(--vr-glow)}
body:is([data-vr-theme=copper],[data-vr-theme=aurora],[data-vr-theme=rainbow]) :is(#controls button,.site-return-nav a,.site-return-nav button){border-color:var(--vr-accent);background:linear-gradient(180deg,var(--vr-panel),#0b1422);color:#f8f6ff}
body:is([data-vr-theme=copper],[data-vr-theme=aurora],[data-vr-theme=rainbow]) #controls #room-nav button[aria-pressed=true]{background:var(--vr-selected);color:#101820}
body:is([data-vr-theme=copper],[data-vr-theme=aurora],[data-vr-theme=rainbow]) #controls #room-title{color:var(--vr-accent)}

body[data-vr-room=credits] #controls,body[data-vr-room=credits] header{display:none!important}

/* Virus keeps only the shared top-left navigation, even after background input. */
body[data-vr-room=virus] #controls,body[data-vr-room=virus] header{display:none!important}
