* { box-sizing: border-box; }
html, body, #tour { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font: 500 14px/1.3 system-ui, sans-serif; background: #45392d; }
#tour { position: relative; touch-action: none; cursor: grab; }
#tour:active { cursor: grabbing; }
#tour:focus-visible { outline: 2px solid white; outline-offset: -2px; }
#viewport, canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
nav, #signal {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  color: white; background: #26201be8; border: 1px solid #fff3; border-radius: 32px;
  box-shadow: 0 2px 12px #0003; white-space: nowrap;
}
nav { bottom: max(18px, env(safe-area-inset-bottom)); display: flex; gap: 2px; padding: 4px; }
button { color: white; background: transparent; border: 0; border-radius: 24px; padding: 10px 16px; font: inherit; cursor: pointer; }
button[aria-current] { background: #fff3dd; color: #392c22; }
button:focus-visible { outline: 2px solid #ca8a4f; outline-offset: -2px; }
#signal { top: max(16px, env(safe-area-inset-top)); padding: 7px 14px; font-size: 12px; pointer-events: none; }
#tour { background: #45392d url(entry-preview.webp?v=4) center / cover no-repeat; }
#viewport { visibility: hidden; }
#viewport[data-ready] { visibility: visible; }
