:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #181d23;
  color: white;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
#tour { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #181d23; }
#preview, #view { position: absolute; inset: 0; width: 100%; height: 100%; }
#preview { object-fit: cover; }
#view { touch-action: none; cursor: grab; }
#view:active { cursor: grabbing; }
#view:focus-visible { outline-offset: -4px; }
h1 {
  position: absolute; top: 0; left: 0; margin: 12px;
  border-radius: 8px; padding: .42em .7em;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  background: #202d3fee; pointer-events: none;
}
.interface {
  position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); display: grid; justify-items: center; gap: 6px;
  width: min(96%, 32rem); pointer-events: none;
}
#status { margin: 0; padding: .35rem .6rem; background: #202d3fee; border-radius: 6px; font-size: .85rem; text-align: center; }
#status:empty { display: none; }
.scenes, .toolbar { display: flex; gap: 4px; pointer-events: auto; }
.toolbar { padding: 3px; background: #263549ef; border-radius: 8px; }
button {
  font: inherit; color: inherit; cursor: pointer; border: 1px solid transparent;
  border-radius: 6px; min-width: 44px; min-height: 44px; background: #263549ef;
}
button:hover { background: #405570; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid #ffe399; outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; }
.toolbar button { font-size: 1.35rem; }
.scenes button { display: grid; justify-items: center; gap: 3px; padding: 4px 6px; font-size: .72rem; }
.scenes button[aria-current="true"] { border-color: #fff; background: #435975; }
.scenes img { display: block; width: clamp(56px, 14vh, 96px); height: clamp(24px, 7vh, 49px); object-fit: cover; border-radius: 3px; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px;
  border-radius: 50%; border: 2px solid #fff; background: #263549e8;
  box-shadow: 0 2px 9px #0008; font-size: 1.45rem;
}
.still-link { position: absolute; left: 12px; bottom: 12px; color: white; background: #263549; padding: 8px; }
