@font-face {
  font-family: Galilean Display;
  src:url("../../inside-assets/display.woff2") format("woff2");
  font-display:swap;
}
@font-face {
  font-family: Galilean Room;
  src:url("../../inside-assets/body.woff2") format("woff2");
  font-display:swap;
}
.district-room {
  --room-paper:#112335;
  --room-light:#f0f7ff;
  --room-muted:#c7d8ee;
  --room-accent:#accfff;
  --room-line:#a4caef48;
  box-sizing:border-box;
  max-height:92dvh;
  width:min(1120px,calc(100vw - 32px));
  max-width:none;
  margin:auto;
  padding:0;
  border:1px solid var(--room-line);
  border-radius:clamp(16px,2.2vw,34px);
  overflow:auto;
  overscroll-behavior:contain;
  color:var(--room-light);
  background:var(--room-paper);
  font:400 clamp(14px,1.2vw,18px)/1.45 "Galilean Room",system-ui,sans-serif;
  box-shadow:0 24px 100px #020a12a6;
}
.district-room::backdrop { background:#07101ee0; backdrop-filter:blur(8px); }
.district-room[data-room=FA] { --room-paper:#fff; --room-light:#19241a; --room-muted:#3c4c40; --room-accent:#416438; --room-line:#617a5854; }
.district-room[data-room=WW] { --room-paper:#111c2d; --room-accent:#b9daff; }
.district-room[data-room=CV] { --room-paper:#071e16; --room-light:#eff8e7; --room-muted:#b8d3bf; --room-accent:#cef38c; --room-line:#a3d19661; }
.district-room[data-room=AB] { --room-paper:#f3f7ff; --room-light:#2d3159; --room-muted:#4a5476; --room-accent:#2748a2; --room-line:#6b79b64d; }
.district-room[data-room=GW] { --room-paper:#f4f7ff; --room-light:#11203e; --room-muted:#394c6b; --room-accent:#1642cb; --room-line:#3360cc4d; }
.district-room [hidden] { display:none!important; }
.room-shell {
  min-height:min(580px,80dvh);
  padding:18px clamp(22px,5vw,74px) clamp(24px,5vw,65px);
  display:grid;
  grid-template-columns:minmax(215px,.88fr) minmax(0,1.12fr);
  align-items:center;
  gap:26px clamp(30px,5.5vw,96px);
  background:radial-gradient(ellipse at 90% 0,var(--room-line),transparent 71%);
}
.room-bar { grid-column:1/-1; position:sticky; top:12px; z-index:2; display:flex; flex-wrap:wrap; gap:6px; }
.room-heading { min-width:0; container-type:inline-size; }
.room-heading img { width:min(188px,65%); max-height:66px; object-fit:contain; object-position:left; margin-bottom:clamp(17px,3vh,45px); }
.district-room[data-room=PR] .room-heading img { border-radius:9px; padding:7px; background:#f5f8ff; }
.room-heading .room-exhibit-title {
  margin:0 0 22px;
  max-width:10ch;
  font:480 clamp(40px,17.5cqw,90px)/.9 "Galilean Display",system-ui,sans-serif;
  letter-spacing:-.068em;
  text-wrap:balance;
}
.room-heading a { color:var(--room-accent); text-underline-offset:.26em; }
.room-scene { min-width:0; align-self:center; }
.room-scene p { margin:12px 0; color:var(--room-muted); max-width:42ch; }
.room-scene h3 { margin:0; font:500 clamp(25px,3vw,48px)/1 "Galilean Display",system-ui,sans-serif; letter-spacing:-.052em; }
.room-scene img,.room-scene video { display:block; width:100%; height:auto; margin:0 0 16px; border-radius:14px; }
.district-room[data-room=FA] .room-scene img { max-height:23dvh; object-fit:contain; }
.district-room[data-room=WW] .room-scene { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); gap:14px; align-items:center; }
.district-room[data-room=WW] .room-scene img { height:min(37dvh,390px); margin:0; width:auto; max-width:100%; object-fit:contain; }
.room-training-preview .room-choices { margin-top:8px; }
.room-scene .room-moon-portrait { object-fit:contain; max-height:23dvh; }
.room-choices,.room-fields { display:flex; flex-wrap:wrap; gap:8px; }
.district-room button,.district-room select {
  min-height:42px; appearance:none; border:1px solid var(--room-line); border-radius:32px;
  padding:8px 13px; font:600 13px/1.1 "Galilean Room",system-ui,sans-serif;
  color:var(--room-light); background:var(--room-paper); cursor:pointer;
}
.district-room button:is([aria-pressed=true],:hover) { background:var(--room-light); color:var(--room-paper); }
.district-room :is(button,a,select):focus-visible { outline:2px solid var(--room-accent); outline-offset:3px; }
.district-room button.room-back { background:var(--room-light); color:var(--room-paper); }
.room-result { padding:clamp(14px,2.6vw,30px) 0 16px; }
.room-result:empty { display:none; }
.room-compare { display:grid; grid-template-columns:1fr 1fr; gap:6px 22px; margin:17px 0 0; }
.room-compare > div { border-top:1px solid var(--room-line); padding-top:9px; }
.room-compare dt { color:var(--room-muted); }
.room-compare dd { color:var(--room-accent); margin:4px 0 0; font-size:clamp(21px,2.5vw,39px); line-height:1.04; }
.room-trace { margin:0; padding-left:19px; }
.room-trace li { min-height:42px; padding:6px 0 6px 9px; border-bottom:1px solid var(--room-line); }
.room-trace li[aria-current] { color:var(--room-accent); }
.room-scene small { display:block; margin-top:12px; color:var(--room-muted); }
.room-log label { display:grid; gap:5px; color:var(--room-muted); font-size:13px; }
.room-log select { border-radius:8px; }
.room-log > button { margin-top:9px; }
@media (prefers-reduced-motion:no-preference) {
  .district-room[open] .room-shell { animation:enter-room .44s cubic-bezier(.15,.7,.2,1) both; }
  @keyframes enter-room { from { opacity:.34; transform:translateY(36px) scale(.98); } }
}
@media (max-width:690px) {
  .district-room { width:calc(100vw - 16px); border-radius:17px; max-height:94dvh; }
  .room-shell { display:block; min-height:0; padding:12px 20px 26px; }
  .room-heading { padding-block:20px; }
  .room-heading img { margin:0 0 15px; width:min(158px,60%); max-height:48px; }
  .room-heading .room-exhibit-title { font-size:clamp(43px,10vw,67px); margin-bottom:12px; }
  .district-room[data-room=WW] .room-scene img { max-height:29dvh; }
}

.district-room {
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  max-height:none;
  margin:0;
  border:0;
  border-radius:0;
  overflow:hidden;
}
.room-world { position:absolute; inset:0; display:block; width:100%; height:100%; touch-action:none; }
.district-room[open], .district-room[open] * { cursor:auto!important; }
.district-room[open] :is(button,a,select) { cursor:pointer!important; }
.district-room[open] .room-world { cursor:grab!important; }
.district-room[open] .room-world[data-pointer=use] { cursor:pointer!important; }
.district-room[open] .room-world[data-pointer=drag] { cursor:grabbing!important; }
.room-world:focus-visible { outline:0; }
.room-world-bar {
  position:absolute; z-index:3; top:0; left:0; right:0;
  display:flex; gap:10px; justify-content:space-between; align-items:center;
  padding:max(16px,env(safe-area-inset-top)) max(18px,5vw);
  pointer-events:none;
}
.room-world-bar button { pointer-events:auto; }
.room-world-identity {
  display:flex; align-items:center; margin-left:auto; gap:12px; max-width:65vw;
  border:1px solid var(--room-line); border-radius:30px; padding:6px 14px 6px 11px;
  color:var(--room-light); background:var(--room-paper);
}
.room-world-identity img { width:auto; height:25px; max-width:135px; object-fit:contain; }
.room-world-identity h2 { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.district-room[data-room=PR] .room-world-identity img { background:#f5f8ff; border-radius:4px; padding:2px; }
.room-world-status {
  position:absolute; inset:50% auto auto 50%; z-index:2;
  translate:-50% -50%; max-width:75%; padding:10px 14px; color:var(--room-muted); background:var(--room-paper);
}
.district-room[data-space=ready] .room-world-status,.district-room[data-space=fallback] .room-world-status { display:none; }
.room-world-controls {
  position:absolute; z-index:2; inset:auto max(18px,5vw) max(16px,env(safe-area-inset-bottom)) max(18px,5vw);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:14px;
  pointer-events:none;
}
.room-world-controls > :is(button,.room-pad) { pointer-events:auto; }
.room-world-controls .room-world-use {
  grid-column:2; grid-row:1; color:var(--room-paper); background:var(--room-light); font-size:clamp(13px,1.5vw,17px);
  min-height:48px; padding:10px 22px;
}
.room-world-hint { grid-column:3; grid-row:1; justify-self:end; color:#f4f7ff; background:#131a2ccf; border-radius:15px; padding:8px 12px; font-size:12px; margin:0; }
.room-pad { grid-column:1; grid-row:1; display:grid; grid-template-columns:repeat(3,42px); gap:4px; width:max-content; }
.room-pad button { border-radius:9px; min-width:42px; padding:5px; touch-action:none; }
.room-pad button:first-child { grid-column:2; }
.room-pad button:nth-child(2) { grid-column:1; }
.room-pad button:active { background:var(--room-light); color:var(--room-paper); }
.district-room[data-space=ready][data-exhibit=open] .room-world-controls,
.district-room:not([data-space=ready]) .room-world-controls { display:none; }
.district-room[data-space=loading] .room-shell,
.district-room[data-space=ready]:not([data-exhibit=open]) .room-shell { display:none; }
.district-room .room-shell {
  position:absolute; inset:max(75px,12dvh) auto max(18px,6dvh) 50%; translate:-50% 0;
  width:min(1040px,calc(100% - 28px)); min-height:0;
  overflow:auto; max-height:85dvh; box-sizing:border-box;
  border:1px solid var(--room-line); border-radius:clamp(15px,2.3vw,28px);
  background:radial-gradient(ellipse at 90% 0,var(--room-line),transparent 72%),var(--room-paper);
  box-shadow:0 22px 82px #080e1aab;
}
.district-room[data-space=fallback] .room-exhibit-close { display:none; }
.district-room[data-space=ready][data-exhibit=open] .room-shell { z-index:2; }
.district-room::after {
  content:""; position:absolute; inset:0; z-index:5; opacity:0; pointer-events:none;
  background:#071321;
}
@media (prefers-reduced-motion:no-preference) {
  .district-room[data-space=ready] .room-world { animation:arriving-room .6s ease-out both; }
  .district-room[data-leaving]::after { animation:leaving-room .44s ease-in both; }
  @keyframes arriving-room { from { opacity:.12; } }
  @keyframes leaving-room { to { opacity:1; } }
}
@media(max-width:690px) {
  .room-world-bar { padding:12px 10px; gap:5px; }
  .district-room .room-world-bar button { padding:6px 9px; font-size:11px; }
  .room-world-identity { padding:5px 8px; }
  .room-world-identity img { max-width:80px; height:19px; }
  .room-world-controls { inset:auto 10px max(14px,env(safe-area-inset-bottom)) 10px; grid-template-columns:1fr 1fr; }
  .room-world-controls .room-world-use { grid-column:2; justify-self:end; padding:7px 10px; }
  .room-world-hint { position:absolute; right:0; bottom:50px; width:max-content; max-width:min(50vw,195px); font-size:10px; }
  .room-pad { grid-template-columns:repeat(3,41px); }
  .room-pad button { min-width:41px; }
}
