/* Original top-down pixel room, scoped to counter selection. */
body[data-view=space]{background:radial-gradient(ellipse at 50% 20%,#34304755,transparent 60%),#171c2a;--text:#eee6da;--muted:#b6b0c1;--line:#bba1b82b;--gold:#dfc58e;color:var(--text)}body[data-view=space] .topbar{height:80px;border-color:#bba1b82b}body[data-view=space] .welcome{padding:26px 0 16px;max-width:none;display:flex;align-items:center;gap:30px}body[data-view=space] .welcome>.eyebrow,body[data-view=space] .welcome h1{display:none}body[data-view=space] .welcome .intro{font-size:16px;max-width:760px;color:#b6b0c1}body[data-view=space] .explore-switch{margin-bottom:24px}.explore-switch button{min-height:48px}#space-section .space-heading{text-align:center;margin-bottom:17px}#space-section .space-heading h2{font-size:28px;color:#eee6da;margin-bottom:6px}#space-section .space-heading p{font-size:16px;max-width:none;color:#b6b0c1}.room-panel{max-width:800px;margin:auto;background:#202436;border:2px solid #736783;border-radius:6px;box-shadow:0 0 0 4px #141a29,0 18px 55px #080d192d}.room-top,.room-bottom{background:#222638;border-color:#a08ba52b;color:#c8bdd1;font-size:14px}.room-top{padding:10px 18px}.room-top .quiet{min-height:36px;background:#303348;color:#d7c8db;border-color:#85729355}.room-bottom{padding:9px 18px}.world{height:auto!important;aspect-ratio:1!important;max-height:none!important;background:#171d2b!important;cursor:crosshair}.world>svg{width:100%!important;height:100%!important;margin:0!important;display:block;image-rendering:pixelated}.world svg .pixel-focus{opacity:0}.world svg [data-desk]:hover .pixel-focus,.world svg [data-desk]:focus-visible .pixel-focus,.world svg .is-near .pixel-focus{opacity:.9}.world svg [data-desk]{cursor:pointer;outline:0}.world svg text{paint-order:stroke;stroke:#242135;stroke-width:.5px}.world .seat-transition{background:#1c20398c}.world .seat-transition span{color:#e7cd98;font-size:52px}.pixel-controls{display:flex;justify-content:space-between;gap:24px;padding:18px 25px;background:#1c2132;border-top:1px solid #a08ba52b}.dpad{display:grid;grid-template-columns:42px 42px 42px;grid-template-rows:42px 42px 42px;gap:3px;flex-shrink:0}.dpad button{touch-action:none;user-select:none;background:#39394d;color:#e8dbd4;border:2px solid #81738e;border-radius:4px;box-shadow:inset 0 -4px #222a3a;min-width:42px;font-size:16px;padding:0}.dpad button:hover,.dpad button.held{background:#675774;border-color:#c4a8c4;box-shadow:inset 0 -2px #352b46}.dpad button[data-move=arrowup]{grid-column:2;grid-row:1}.dpad button[data-move=arrowleft]{grid-column:1;grid-row:2}.dpad button[data-move=arrowright]{grid-column:3;grid-row:2}.dpad button[data-move=arrowdown]{grid-column:2;grid-row:3}.dpad span{grid-column:2;grid-row:2;text-align:center;align-self:center;color:#b8a3ba}.pixel-interaction{align-self:center;flex:1;max-width:440px;text-align:right}.pixel-interaction p{font-size:15px;color:#bcb2c9;line-height:1.7;margin:0 0 10px}#map-interact{background:#dac193;color:#262436;border:2px solid #f0dfb5;box-shadow:inset 0 -4px #ad936e;border-radius:4px;font-size:16px;padding:11px 22px;min-height:48px}#map-interact:disabled{color:#96899f;background:#343347;border-color:#594c65;box-shadow:none;cursor:default}#space-section .journey-status,#space-section .keyboard-hint{max-width:800px;margin:14px auto;color:#a99db8}#space-section .keyboard-hint{font-size:14px}body[data-view=space] footer{margin-top:28px}#avatar .face-up,#avatar .face-side{display:none}#avatar[data-facing=up] .face-down,#avatar[data-facing=left] .face-down,#avatar[data-facing=right] .face-down{display:none}#avatar[data-facing=up] .face-up,#avatar[data-facing=left] .face-side,#avatar[data-facing=right] .face-side{display:block}#avatar.is-walking .pixel-walk{animation:pixel-step .22s steps(2,end) infinite}@keyframes pixel-step{50%{transform:translateY(-3px)}}
body[data-view=space] #npc-dialogue{background:#252638;border:3px solid #b499b8;border-radius:5px;box-shadow:0 0 0 5px #121928,0 25px 90px #080d1988}body[data-view=space] #npc-dialogue .dialogue-portrait{background:linear-gradient(#3e344b,#262437)}body[data-view=space] #npc-dialogue .dialogue-content{background:#252638}body[data-view=space] #npc-dialogue .dialogue-content h2{color:#f0e6d7;font-size:27px}body[data-view=space] #npc-dialogue #npc-speech{color:#c3b7cc}body[data-view=space] #npc-dialogue .primary{background:#dac193;color:#262436;border-color:#f0dfb5;border-radius:4px}body[data-view=space] #help-dialog{background:#252638;color:#eee6da}
@media(min-width:1000px){#space-section .room-panel{max-width:720px}.pixel-controls{padding:15px 25px}.dpad{grid-template-columns:34px 34px 34px;grid-template-rows:34px 34px 34px}.dpad button{min-width:34px;font-size:14px}body[data-view=space] main{max-width:1120px}}
@media(max-width:760px){body[data-view=space] .welcome{padding:19px 0 13px}body[data-view=space] .welcome .intro{font-size:15px;max-width:none}body[data-view=space] main{padding:0 15px}body[data-view=space] .explore-switch{margin-bottom:20px}.explore-switch button{font-size:15px;padding:11px 14px}#space-section .space-heading h2{font-size:24px}#space-section .space-heading p{font-size:15px;line-height:1.8}.room-panel{border-radius:4px}.room-top{padding:9px 10px;gap:8px;font-size:12px}.room-top .quiet{font-size:13px;padding:6px 8px}.room-bottom{display:none}.pixel-controls{padding:15px 12px;gap:12px}.dpad{grid-template-columns:40px 40px 40px;grid-template-rows:40px 40px 40px}.dpad button{min-width:40px}.pixel-interaction p{font-size:14px}#map-interact{font-size:15px;padding:10px 12px;min-height:46px}#space-section .keyboard-hint{display:none}.pixel-interaction{max-width:200px}body[data-view=space] #npc-dialogue .dialogue-content h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){#avatar.is-walking .pixel-walk{animation:none}}
/* Keep the complete room and controls together on desktop-height screens. */
#npc-dialogue{max-width:850px}
@media(min-width:900px){body[data-view=space] .welcome{display:none}body[data-view=space] .explore-switch{margin-top:12px;margin-bottom:13px}body[data-view=space] .topbar{height:68px}#space-section .space-heading{margin-bottom:12px}#space-section .space-heading h2{font-size:26px}#space-section .room-panel{max-width:880px;display:grid;grid-template-columns:minmax(0,1fr) 190px}.room-top{grid-column:1/-1;grid-row:1}.world{grid-column:1;grid-row:2;height:clamp(350px,calc(100svh - 265px),600px)!important;aspect-ratio:auto!important}.room-bottom{grid-column:1/-1;grid-row:3;font-size:13px}.pixel-controls{grid-column:2;grid-row:2;flex-direction:column;justify-content:center;align-items:center;padding:18px 14px;border-top:0;border-left:1px solid #a08ba52b}.pixel-interaction{text-align:center;flex:0}.pixel-interaction p{font-size:15px;max-width:160px}#map-interact{font-size:15px;padding:10px 12px}.dpad{grid-template-columns:42px 42px 42px;grid-template-rows:42px 42px 42px}.dpad button{min-width:42px}#space-section .keyboard-hint{display:none}body[data-view=space] footer{margin-top:18px;padding-top:12px}body[data-view=space] #space-section .journey-status{margin:9px auto 0}html:not([lang=en]) #temple text{font-size:24px}#temple text:first-of-type{font-size:14px}}
@media(max-width:760px){html:not([lang=en]) #temple text{font-size:29px}}
@media(max-width:760px){.dpad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px}.dpad button{min-width:44px}}
@media(min-width:900px){.world{height:clamp(280px,calc(100svh - 360px),600px)!important}}
