:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111713;
  color: #f5f3e7;
}
body { max-width: 1320px; margin: auto; padding: clamp(16px, 3.2vw, 48px); }
header { display: flex; align-items: baseline; gap: 18px; padding-bottom: 18px; }
.brand { margin: 0; color: #b8d7aa; font-size: .9rem; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.15rem); }
.stage { position: relative; overflow: hidden; border: 1px solid #39483e; border-radius: 16px; }
#panorama { width: 100%; height: clamp(300px, 66svh, 780px); background: #18221b; }
#error { position: absolute; inset: auto 16px 16px; margin: 0; padding: 12px; background: #33221c; border-radius: 8px; }
.hint { color: #c1cbbf; font-size: .875rem; margin: 13px 0 18px; }
nav { display: grid; grid-auto-columns: minmax(114px, 1fr); grid-auto-flow: column; gap: 10px; overflow-x: auto; padding: 3px 3px 8px; }
nav a { display: block; padding: 5px; border: 1px solid #39483e; border-radius: 10px; text-decoration: none; color: inherit; background: #1c2720; }
nav img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
nav span { display: block; padding: 7px 3px 4px; font-size: .875rem; }
nav a:hover, nav a[aria-current] { border-color: #b8d7aa; background: #2b3a2d; }
nav a:focus-visible { outline: 2px solid #b8d7aa; outline-offset: 2px; }
.doorway { width: 58px; height: 44px; }
.doorway button {
  position: relative; display: grid; place-items: center; width: 58px; height: 44px;
  padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: #fff; cursor: pointer; filter: drop-shadow(0 2px 3px #000b);
}
.floor-arrow {
  display: block; width: 52px; height: 30px; background: #fff;
  clip-path: polygon(50% 0, 100% 62%, 66% 62%, 72% 100%, 28% 100%, 34% 62%, 0 62%);
}
.doorway button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.doorway button span + span {
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px; background: #17261e; white-space: nowrap;
  font: 14px system-ui; pointer-events: none; opacity: 0;
}
.doorway button:hover span + span, .doorway button:focus-visible span + span { opacity: 1; }
