@font-face{font-family:Archivo;src:url('./font/archivo-latin-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:Archivo,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;color-scheme:dark;color:#f6eddc;background:#141b24;--cream:#f6eddc;--orange:#ffa16d;--muted:#b5b6ad;--line:#ffffff26;--panel:#14232ff2}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:3px}[hidden]{display:none!important}
#world{position:fixed;inset:0;width:100%;height:100%;outline:0;touch-action:none}
.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#121a25bb,transparent 70%),linear-gradient(0deg,#10172199,transparent 25%)}
.topbar{position:fixed;left:32px;right:32px;top:26px;display:flex;align-items:center;gap:14px;z-index:5;pointer-events:none}.topbar>*{pointer-events:auto}
.wordmark{text-decoration:none;color:var(--cream);font-size:32px;font-weight:900;letter-spacing:-2px;line-height:1}
.room-badge{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:10px;background:#101821b0;border:1px solid var(--line);border-radius:30px;padding:12px 16px;backdrop-filter:blur(14px)}
body:not(.in-world) .room-badge,.editing .room-badge{display:none}.room-badge i{height:6px;width:6px;background:#c4e4a5;border-radius:50%}.divider{opacity:.4}
.pill{border:1px solid var(--line);background:#182128db;border-radius:24px;padding:12px 17px;font-size:12px;backdrop-filter:blur(12px)}.pill:hover{background:#38434a}.pill span{margin-left:12px;color:var(--orange)}
#welcome{position:fixed;left:6vw;top:50%;transform:translateY(-50%);width:360px;max-height:calc(100dvh - 116px);overflow-y:auto;scrollbar-width:thin;z-index:6;border-radius:22px}
.customizer{padding:20px;background:#18222be8;border:1px solid #ffffff24;backdrop-filter:blur(24px);border-radius:22px;box-shadow:0 24px 64px #0003}
#character-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:20px}
#character-picker button{position:relative;min-width:0;padding:0 0 9px;border:1px solid #ffffff16;background:#ffffff04;border-radius:12px;overflow:hidden;transition:background .15s,border-color .15s,transform .15s}
#character-picker button:hover{background:#ffffff0c;transform:translateY(-2px)}#character-picker button[aria-pressed=true]{border-color:var(--orange);background:#ffa16d16}
#character-picker button[aria-pressed=true]:after{content:'✓';position:absolute;top:5px;right:6px;color:var(--orange);font-size:10px}
#character-picker img{display:block;width:100%;height:69px;object-fit:contain}#character-picker span{font-size:12px;letter-spacing:.3px;font-weight:600}
label,.choice-label{display:block;font-size:13px;margin-bottom:8px;color:#d4d8d5}input,select{width:100%;background:#ffffff06;color:var(--cream);border:1px solid #ffffff26;padding:12px;border-radius:9px;font-size:15px;min-height:46px}select option{background:#1b2730}input:focus,select:focus{border-color:var(--orange)}input[aria-invalid=true]{border-color:#fa977d}
.choice-label{display:flex;justify-content:space-between;margin-top:18px}.choice-label span{color:#bac6cb;font-size:12px}.swatches{display:flex;justify-content:space-between;gap:6px;margin:0 0 15px}
.swatches button{height:36px;width:36px;border:0;background:none;position:relative;border-radius:50%}.swatches button:before{content:'';position:absolute;inset:6px;background:var(--swatch);border-radius:50%}.swatches button[aria-pressed=true]{outline:1px solid var(--cream);outline-offset:-2px}
.enter{width:100%;background:var(--orange);border:0;border-radius:10px;color:#26221e;display:flex;justify-content:space-between;padding:15px 17px;font-size:15px;font-weight:600;margin-top:18px;min-height:46px}.enter:hover{background:#ffb68c}
.cancel{display:block;margin:9px auto 0;background:none;border:0;padding:10px 22px;color:#c9d2d4;font-size:12px}.join-note{font-size:11px;line-height:1.5;color:#ffbe9b;text-align:center;margin:12px 0 0}.join-note:empty{display:none}
footer{position:fixed;bottom:22px;right:32px;z-index:4}footer button{background:none;border:0;font-size:10px;color:#b6c3ca;padding:10px}.in-world footer{display:none}
#quiet-dock{position:fixed;right:25px;bottom:24px;display:flex;gap:7px;z-index:12}#quiet-dock .pill{font-size:13px;background:#16242ee8}#quiet-dock [aria-expanded=true]{border-color:var(--orange);color:var(--orange)}
.location{position:fixed;top:71px;left:32px;background:#14222bab;border-radius:20px;padding:5px 10px;pointer-events:none}.location>.eyebrow,.location h2,#vibe,.movement-hint{display:none}#connection{font-size:12px;color:#c6d1cf}
.world-actions,.bottom-controls,.chat-panel,#object-guide{position:fixed;right:25px;bottom:80px;background:var(--panel);border:1px solid var(--line);border-radius:16px;z-index:11;box-shadow:0 14px 40px #0003;max-width:calc(100vw - 30px)}
.world-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:252px;padding:10px;gap:7px}.world-actions .pill{font-size:13px;padding:12px 8px;border-radius:9px;background:#ffffff06;backdrop-filter:none}
.bottom-controls{padding:10px}.emotes{display:grid;grid-template-columns:repeat(3,65px);gap:4px}.emotes button{height:65px;min-width:60px;border:0;border-radius:10px;background:#ffffff06}.emotes button:hover{background:#ffffff18}.emotes button>span{font-size:23px;display:block}.emotes button>small{font-size:12px;display:block;margin-top:5px;color:#bcc7cb}
.chat-panel{width:300px;overflow:hidden}.chat-heading{font-size:9px;letter-spacing:1px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:#a5b5be}.chat-heading button{background:none;border:0;font-size:23px;width:32px;height:32px}
#chat-log{height:180px;overflow-y:auto;padding:8px 15px;scrollbar-width:thin;font-size:14px;line-height:1.6}#chat-log p{margin:4px 0;overflow-wrap:anywhere}#chat-log strong{color:var(--orange);font-weight:500}.system{color:#98a8af;font-style:italic}#chat-form{display:flex;border-top:1px solid var(--line);padding:5px;gap:4px}#chat-input{border:0;background:none;font-size:16px;padding:10px;min-width:0}#chat-form button{border:0;background:#f6eddc14;border-radius:8px;min-width:42px}
#object-guide{width:265px;padding:18px}#object-guide p{font-size:12px;line-height:1.6;color:#bec8c9}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:600;color:var(--orange)}#object-list{display:grid;gap:8px}.object-choice{background:#ffffff09;border:1px solid var(--line);padding:12px;text-align:left;border-radius:8px;font-size:12px}.object-choice:hover{border-color:var(--orange)}
#interact{position:fixed;left:50%;bottom:29px;transform:translateX(-50%);font-size:11px;padding:12px 15px;border-color:#ffbd8e80;color:#ffd5b1;z-index:4;background:#17262ae8}#interact:disabled{color:#9eafba;border-color:var(--line);cursor:default}
#labels{position:fixed;inset:0;pointer-events:none;overflow:hidden}.player-label{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-100%);gap:5px}.name-tag{background:#15212ac9;color:#fbf4e7;border:1px solid #ffffff30;padding:4px 10px;border-radius:20px;font-size:12px;white-space:nowrap}.name-tag.local{border-color:#ffa16d88;color:#ffd2b5}
.speech{max-width:220px;overflow-wrap:anywhere;text-align:center;font-size:12px;line-height:1.4;background:#f6eddc;color:#1d2b32;border-radius:12px 12px 12px 2px;padding:8px 12px;box-shadow:0 5px 20px #0003}.speech.gesture{background:transparent;font-size:42px;padding:0;box-shadow:none;filter:drop-shadow(0 3px 5px #0007)}
.reaction-burst{position:absolute;left:50%;top:0;pointer-events:none}.reaction-burst span{position:absolute;font-size:25px;opacity:0;animation:reaction-rise 2s ease-out both;white-space:nowrap}@keyframes reaction-rise{0%{opacity:0;transform:translate(-50%,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--drift)),-110px) scale(1.2)}}
.in-world .vignette{background:linear-gradient(0deg,#101721a0,transparent 18%)}.editing #labels{visibility:hidden}
#toast{position:fixed;top:85px;left:50%;transform:translateX(-50%);padding:12px 20px;background:var(--cream);color:#17242d;border-radius:20px;font-size:12px;z-index:30;max-width:90vw;text-align:center;box-shadow:0 8px 25px #0002}
dialog{border:1px solid #ffffff30;border-radius:20px;background:#1b2833;color:var(--cream);width:min(440px,calc(100vw - 32px));max-height:85dvh;padding:30px;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#0c1728aa;backdrop-filter:blur(8px)}dialog h2{font-size:28px;font-weight:500;letter-spacing:-1px}dialog p{font-size:13px;line-height:1.7;color:#bdc9ce}dialog .small{font-size:11px;color:#a6b6be}.dialog-close{position:absolute;right:10px;top:8px;background:none;border:0;font-size:25px;width:36px;height:36px}dialog a{color:var(--orange)}
#joystick,#jump-touch{display:none}
@media(max-width:700px){
 .topbar{left:20px;right:20px;top:20px}.wordmark{font-size:28px}.room-badge{font-size:9px;padding:10px;gap:6px}.room-badge .divider,#room-name{display:none}#invite{font-size:10px;padding:10px 12px}
 #welcome{top:auto;bottom:42px;left:16px;transform:none;width:calc(100% - 32px);max-height:calc(100dvh - 185px)}.customizer{padding:16px;border-radius:18px}#character-picker{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:thin;margin-bottom:16px}#character-picker button{flex:0 0 92px;scroll-snap-align:start}#character-picker button{border-radius:8px;padding-bottom:7px}#character-picker img{height:68px}#character-picker span{font-size:12px;letter-spacing:.2px}.choice-label{margin-top:12px}.swatches{margin-bottom:10px}.enter{margin-top:14px}input,select{font-size:16px}
 footer{bottom:5px;right:15px}.location{left:20px;top:62px}#quiet-dock{right:15px;bottom:max(20px,env(safe-area-inset-bottom));gap:5px}#quiet-dock .pill{font-size:13px;padding:11px 13px}
 .world-actions,.bottom-controls,.chat-panel,#object-guide{right:15px;bottom:75px}.chat-panel{width:280px}#chat-log{height:min(180px,30dvh)}#interact{left:15px;bottom:190px;transform:none;max-width:calc(100vw - 30px)}
 #joystick{display:block;position:fixed;left:22px;bottom:75px;width:100px;height:100px;border-radius:50%;background:#d5e1df0d;border:1px solid #ffffff30;touch-action:none}#stick{position:absolute;left:28px;top:28px;width:42px;height:42px;border-radius:50%;background:#f6eddc55;border:1px solid #ffffff77;pointer-events:none}#jump-touch{display:block;position:fixed;right:27px;bottom:93px;background:#f6eddc15;border:1px solid #ffffff40;width:45px;height:45px;border-radius:50%;font-size:30px;touch-action:none}
}
@media(max-height:590px){#welcome{top:72px;bottom:35px;transform:none;max-height:none}#character-picker img{height:45px}}
@media(prefers-reduced-motion:reduce){.reaction-burst span{animation:none}#character-picker button{transition:none}#character-picker button:hover{transform:none}}

/* Readable utility surfaces; scene controls yield when a panel owns interaction. */
.text-button{background:none;border:0;color:#cbd6da;font-size:13px;padding:10px 4px;min-height:40px;text-decoration:underline;text-underline-offset:3px}.text-button:hover{color:var(--orange)}
#reset-look{display:block;margin:4px 0 -4px;font-size:12px}#entry-rooms{display:block;margin:8px auto 0}
.field-error{color:#ffc0a5;font-size:13px;line-height:1.5;margin:7px 0}.field-error:empty{display:none}.join-note{font-size:13px}
.panel-close{position:absolute;right:8px;top:5px;width:36px;height:36px;background:none;border:0;font-size:24px;color:#cbd6da}.world-actions,.bottom-controls{padding-top:42px}.panel-caption{font-size:12px;margin:0 30px 12px 4px;color:#cbd6da}
.bottom-controls .panel-close{top:4px}.emotes button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--orange);background:#ffa16d18}.emotes{grid-template-columns:repeat(3,78px)}.emotes button{height:70px}
.world-actions{width:310px;max-height:70dvh;overflow-y:auto}.chat-heading{font-size:11px;letter-spacing:.5px}.chat-panel{width:330px}
#new-messages{display:block;margin:auto;color:var(--orange)}
#first-steps,#alone-hint{position:fixed;bottom:26px;left:26px;z-index:8;max-width:360px;border:1px solid var(--line);background:#14232fec;backdrop-filter:blur(12px);border-radius:14px;padding:12px 42px 12px 14px;font-size:13px;line-height:1.5;box-shadow:0 8px 30px #0002}
#first-steps button,#dismiss-alone{position:absolute;right:4px;top:4px;background:none;border:0;font-size:22px;width:32px;height:32px}#alone-hint span{display:block}#alone-hint button:not(#dismiss-alone){background:none;border:0;color:var(--orange);padding:10px 10px 0 0;font-size:13px}
#interact{bottom:88px;font-size:13px}.offline #connection{color:#ffd0a6}.offline #dock-actions{opacity:.5}.offline #interact{display:none}
dialog{overscroll-behavior:contain}dialog h2{font-size:27px;font-weight:550;line-height:1.2}dialog p{font-size:14px}.secondary{display:block;width:100%;min-height:44px;margin-top:10px;padding:12px;background:#ffffff08;border:1px solid var(--line);border-radius:10px;color:var(--cream);font-size:14px}
#room-list{display:grid;gap:8px;font-size:14px;line-height:1.5}.room-choice{text-align:left;overflow-wrap:anywhere;background:#ffffff08;border:1px solid var(--line);border-radius:10px;padding:14px;font-size:14px}.room-choice:hover{border-color:var(--orange)}
#help-dialog dl{margin:20px 0;font-size:13px;line-height:1.5}#help-dialog dt{color:var(--orange);margin-top:12px;font-weight:600}#help-dialog dd{margin:3px 0;color:#cbd6da}.check-label{display:flex;align-items:center;gap:10px;margin:16px 0 0}.check-label input{width:20px;min-height:20px}
.person-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.person-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.person-row button{font-size:12px}
#photo-preview{display:block;width:100%;height:auto;border-radius:10px}#photo-download{text-decoration:none}
.reduced-motion .reaction-burst{display:none}
@media(max-width:700px){
 #welcome{bottom:max(36px,env(safe-area-inset-bottom));max-height:calc(100dvh - 225px)}
 #character-picker button{border-radius:10px}.customizer{padding:17px}label,.choice-label{font-size:13px}#reset-look{min-height:32px;padding:6px 0}
 #first-steps,#alone-hint{left:16px;right:16px;bottom:auto;top:100px;max-width:none;font-size:13px}
 .panel-open #joystick,.panel-open #jump-touch,.panel-open #interact,.panel-open #first-steps,.panel-open #alone-hint{display:none}
 .bottom-controls,.chat-panel,.world-actions,#object-guide{bottom:calc(78px + env(safe-area-inset-bottom));max-height:calc(100dvh - 160px);overflow-y:auto}
 #chat-log{height:min(230px,35dvh)}.chat-panel{width:calc(100vw - 30px)}#interact{bottom:190px;font-size:13px;max-width:calc(100vw - 30px)}
 .room-badge{font-size:11px}.topbar{top:max(18px,env(safe-area-inset-top))}#invite{font-size:12px}#quiet-dock .pill{font-size:13px}
}

.eyewear-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.eyewear-label label{margin:0}.eyewear-label #reset-look{margin:0;min-height:0;padding:0;font-size:12px}#entry-rooms{min-height:30px;padding:5px 0;margin:6px auto 0}

#photo-preview{max-height:45dvh;object-fit:contain;background:#111d26}
.adventure h3{font-size:18px;margin:0 0 6px}.adventure p{font-size:13px;line-height:1.5;color:var(--muted)}.quest-list{display:grid;gap:5px;margin:12px 0}.quest{text-align:left;padding:10px 12px;background:#ffffff08;border:1px solid #ffffff15;border-radius:9px;font-size:13px;color:inherit;min-height:42px}.quest[data-complete=true]{color:#a7dfc3;border-color:#a7dfc333}.race-scores{padding-left:24px;font-size:13px;line-height:1.8}.adventure .text-button{display:block;margin:8px 0 18px}#object-guide{max-height:calc(100dvh - 160px);overflow-y:auto}#object-guide>.eyebrow{display:block;margin-top:20px}.race-banner{position:fixed;top:88px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);z-index:9;color:#b7efd1;background:#172c2fee!important;font-variant-numeric:tabular-nums;font-size:13px}.panel-open .race-banner{display:none}@media(max-width:700px){.race-banner{top:78px;font-size:12px;padding:10px}.adventure h3{font-size:17px}}
#object-guide{width:350px;background:#172731f5;backdrop-filter:blur(14px)}#object-guide .adventure{padding-top:16px}#object-guide summary{cursor:pointer;padding:12px 0;font-size:13px;color:#ffcfac}#object-guide details[open] summary{margin-bottom:8px}@media(max-width:700px){#object-guide{width:calc(100vw - 30px);left:15px;right:15px}}

/* Consistent type, contained scrolling, and a compact replayable tour. */
button,.pill,.text-button,.enter,.secondary{font-family:Archivo,system-ui,sans-serif;font-weight:600;letter-spacing:.015em;line-height:1.35}
#quiet-dock .pill,.world-actions .pill{font-size:14px}
button:disabled{cursor:default}
#welcome,#chat-log,#object-guide,.world-actions,.bottom-controls,dialog,#character-picker{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8faba77a #ffffff05;scroll-padding:14px}
#welcome,#chat-log,#object-guide,.world-actions,dialog{scrollbar-gutter:stable}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:#ffffff05;border-radius:12px}::-webkit-scrollbar-thumb{background:#8faba77a;border:2px solid transparent;background-clip:padding-box;border-radius:12px}::-webkit-scrollbar-thumb:hover{background-color:#b1c6bd}
.location{pointer-events:auto}
#first-steps{width:330px;max-height:calc(100dvh - 210px);overflow-y:auto;padding:18px;bottom:24px}
#first-steps h3{font-size:18px;line-height:1.3;margin:9px 26px 8px 0;font-weight:650}
#first-steps p{margin:0;color:#cbd6da;font-size:14px;line-height:1.6}
#first-steps .tour-actions{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
#first-steps .tour-actions button{position:static;width:auto;height:auto;font-size:13px;min-height:40px;padding:9px 15px;border:1px solid var(--line);border-radius:10px}
#first-steps #tour-next{background:var(--cream);color:#17242d;border-color:transparent}
#first-steps #dismiss-help{right:7px;top:7px}
@media(max-width:700px){#first-steps{width:auto;top:85px;bottom:auto;max-height:calc(100dvh - 310px);padding:15px}#quiet-dock .pill{font-size:13px}}

@media(max-width:700px){.topbar{gap:8px}.wordmark img{width:92px;height:auto}.room-badge{white-space:nowrap;padding:10px;font-size:10px}#invite{white-space:nowrap;font-size:12px;padding:11px 12px}#invite span{margin-left:4px}}

#camera-mode{position:fixed;left:24px;top:88px;z-index:12;min-height:44px;font-size:12px;background:#172a35db;backdrop-filter:blur(12px)}
@media(max-width:700px){#camera-mode{left:14px;top:82px;}}

.panel-open #camera-mode{display:none}
@media(max-width:700px){#first-steps,#alone-hint{top:138px;}}

/* One small mission card replaces the opening checklist and tutorial overlays. */
.supper-card{position:fixed;top:140px;left:24px;width:260px;padding:18px 20px;background:#18292de8;border:1px solid #ffffff20;border-radius:16px;box-shadow:0 10px 28px #0002;pointer-events:auto}
.supper-eyebrow{font-size:9px;letter-spacing:1.8px;color:#aacac0}.supper-card h3{font-size:19px;line-height:1.2;margin:9px 0;font-weight:500;letter-spacing:-.4px}.supper-card p{font-size:12px;line-height:1.5;color:#b7c6c7;margin:0 0 12px}.supper-card .text-button{font-size:11px;color:#efc8a2;padding:0;margin-top:10px}.supper-close{position:absolute;right:9px;top:6px;background:none;border:0;color:#aabbbd;font-size:22px;width:28px;height:28px;cursor:pointer}.supper-progress{display:flex;gap:5px}.supper-progress i{height:3px;flex:1;border-radius:3px;background:#ffffff20}.supper-progress .filled{background:#b5dbc5}
@media(max-width:700px){.supper-card{left:12px;top:138px;width:220px;padding:13px 16px}.supper-card h3{font-size:16px}.supper-card p{font-size:11px;margin-bottom:8px}}

@media(pointer:coarse){.supper-close{width:44px;height:44px;top:0;right:0}}
