:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff;
  background: #151512;
  --gold: #d7b44a;
  --panel: #1e1d19;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.tour {
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #3a3020, #151512 65%);
}
#panorama { position: absolute; inset: 0; }
.brand {
  position: absolute;
  z-index: 1;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  padding: .65rem 1rem .75rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 .5rem .5rem 0;
  background: #151512eb;
  pointer-events: none;
}
.brand p { margin: 0 0 .1rem; color: var(--gold); font-weight: 700; }
.brand h1 { margin: 0; font-size: clamp(1rem, 4vw, 1.45rem); }
.status, .noscript {
  z-index: 2;
  width: min(34rem, calc(100% - 2rem));
  margin: 5.5rem 1rem 6rem;
  padding: clamp(1rem, 4vw, 1.7rem);
  border: 1px solid #746039;
  border-radius: .9rem;
  background: var(--panel);
  box-shadow: 0 1rem 4rem #0005;
}
.status h2 { margin: 0 0 .45rem; font-size: clamp(1.15rem, 5vw, 1.5rem); }
.status p { color: #e0dacf; margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
#retry { margin-top: 1rem; background: var(--gold); color: #17140c; font-weight: 700; }
.toolbar {
  position: absolute;
  z-index: 3;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: .4rem;
  border: 1px solid #746039;
  border-radius: .75rem;
  background: #151512ee;
}
button, select {
  min-height: 44px;
  padding: .4rem .7rem;
  border: 1px solid #615943;
  border-radius: .45rem;
  color: inherit;
  font: inherit;
  background: #292720;
}
button { cursor: pointer; }
button:hover, select:hover { border-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#scenes { width: min(15rem, calc(100vw - 8rem)); }
#previous, #next { min-width: 44px; font-size: 1.4rem; line-height: 1; }
@media (max-width: 420px) {
  #fullscreen { flex-basis: 100%; }
}
