:root {
  color-scheme: dark;

  /* color tokens */
  --bg: #0a0d0c;
  --surface: rgba(20, 24, 23, 0.86);
  --surface-strong: rgba(20, 24, 23, 0.94);
  --surface-flat: #131816;
  --surface-raised: rgba(255, 255, 255, 0.04);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(255, 216, 77, 0.32);

  --accent: #ffd84d;
  --accent-soft: rgba(255, 216, 77, 0.10);
  --accent-medium: rgba(255, 216, 77, 0.18);

  --text: #f5f3eb;
  --muted: #a1aaa6;
  --dim: #6b756f;
  --coral: #ff6f61;
  --teal: #28d6c2;

  /* radius */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 9999px;

  /* shadows */
  --sh-soft: 0 1px 2px rgba(0, 0, 0, 0.2);
  --sh-elevated: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --sh-floating: 0 18px 42px -14px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 216, 77, 0.06), transparent 38%),
    linear-gradient(135deg, #06090a, #11161a 48%, #1a1610);
  color: var(--text);
  font-family: "Assistant", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

button {
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─────────────────  Layout  ───────────────── */

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  transition: grid-template-columns 260ms ease;
}

.app-shell.panel-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.viewer-shell {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  background:
    linear-gradient(rgba(5, 7, 6, 0.12), rgba(5, 7, 6, 0.24)),
    #050706;
}

#vrScene,
#vrScene .a-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  inset: 0;
}

#vrScene {
  position: absolute !important;
  inset: 0;
  z-index: 0;
}

body.vr-active .top-overlay,
body.vr-active .panel-toggle,
body.vr-active .tour-panel,
body.vr-active .scene-strip,
body.vr-active .share-qr,
body.vr-active #welcomeScreen {
  display: none !important;
}

.vr-hint {
  background: rgba(20, 24, 23, 0.92);
  border: 1px solid rgba(255, 216, 77, 0.32);
  border-radius: 14px;
  bottom: 24px;
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.6);
  color: #f5f3eb;
  display: none;
  font-size: 13px;
  inset-inline-start: 24px;
  line-height: 1.55;
  max-width: 320px;
  padding: 14px 18px;
  position: absolute;
  z-index: 12;
}

.vr-hint.visible {
  display: block;
}

.vr-hint strong {
  color: #ffd84d;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ─────────────────  Icon button + tooltip  ───────────────── */

.icon-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  height: 44px;
  width: 44px;
  padding: 0;
  backdrop-filter: blur(12px);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
}

.icon-button svg {
  fill: none;
  height: 20px;
  width: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.vr-unavailable-mark {
  display: none;
}

.icon-button[data-tooltip]::after {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-elevated);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 220px;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  inset-inline-end: 0;
  text-align: right;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
  z-index: 50;
}

.icon-button[data-tooltip]:hover::after,
.icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────  Panel toggle  ───────────────── */

.panel-toggle {
  position: absolute;
  inset-inline-start: 376px;
  top: 24px;
  z-index: 30;
  transition: inset-inline-start 260ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.panel-collapsed .panel-toggle {
  inset-inline-start: 16px;
}

.panel-toggle .panel-toggle-arrow {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms ease;
}

.panel-toggle.is-collapsed .panel-toggle-arrow {
  transform: rotate(180deg);
}

/* ─────────────────  Top overlay (brand + actions)  ───────────────── */

.top-overlay {
  align-items: center;
  direction: ltr;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 24px;
  pointer-events: none;
  position: absolute;
  right: 80px;
  top: 24px;
  transform: translate3d(0, -28px, 0);
  z-index: 10;
}

.brand {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  direction: ltr;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.brand img {
  height: 36px;
  width: auto;
}

.bepo-logo {
  --bepo-pin-fill: #f5a623;
  --bepo-pin-core: #1a1a1a;
  --bepo-pin-dot: #e8dcc8;
  --bepo-pin-ring: #d4c8b0;
  --bepo-logo-text: #f5f3eb;
  align-items: center;
  direction: ltr;
  display: inline-flex;
  gap: 0.14em;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.bepo-logo-pin {
  flex: 0 0 auto;
  height: 1.18em;
  overflow: visible;
  width: 0.96em;
}

.bepo-pin-ring-back,
.bepo-pin-ring-front {
  fill: none;
  stroke: var(--bepo-pin-ring);
  stroke-linecap: round;
  stroke-width: 9;
}

.bepo-pin-body {
  fill: var(--bepo-pin-fill);
}

.bepo-pin-core {
  fill: var(--bepo-pin-core);
}

.bepo-pin-dot {
  fill: var(--bepo-pin-dot);
}

.bepo-logo-word {
  color: var(--bepo-logo-text);
  font-family: "Assistant", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.bepo-logo-360 {
  flex: 0 0 auto;
  height: 1.55em;
  margin-inline-start: -0.36em;
  object-fit: contain;
  width: auto;
}

.bepo-logo--compact {
  font-size: 34px;
}

.bepo-logo--welcome {
  font-size: 58px;
  margin-bottom: 26px;
}

.brand-copy {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  text-align: right;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.top-overlay,
.panel-toggle,
.share-qr,
.actions .icon-button {
  opacity: 0;
}

.top-overlay,
.panel-toggle,
.share-qr {
  pointer-events: none;
}

.actions .icon-button.is-active,
.actions .icon-button.is-loading {
  border-color: var(--border-accent);
  color: var(--accent);
}

.actions .icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.actions .icon-button[data-state="unavailable"] .vr-unavailable-mark {
  display: block;
  stroke: var(--coral);
}

.actions .icon-button.is-loading svg {
  animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ─────────────────  Welcome screen  ───────────────── */

.welcome-screen {
  align-items: center;
  background:
    radial-gradient(circle at 76% 52%, rgba(40, 214, 194, 0.10), transparent 32%),
    linear-gradient(90deg, rgba(6, 9, 10, 0.92), rgba(6, 9, 10, 0.62));
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: absolute;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.welcome-screen.hidden {
  display: none;
}

.welcome-card {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--sh-floating);
  display: flex;
  flex-direction: column;
  max-width: 560px;
  padding: 48px 56px 32px;
  text-align: center;
  backdrop-filter: blur(20px);
}

.welcome-card img {
  height: auto;
  margin-bottom: 24px;
  width: 192px;
}

.welcome-card h1,
.welcome-card p {
  margin: 0;
}

.welcome-card h1 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.welcome-actions button {
  font-size: 15px;
  font-weight: 600;
  height: 48px;
  padding: 0 24px;
}

.welcome-primary {
  background: var(--accent);
  color: #111615;
}

.welcome-primary:hover {
  background: #ffffff;
}

.welcome-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: #ffffff;
}

.welcome-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.welcome-credit {
  color: rgba(245, 243, 235, 0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 32px 0 0;
  padding-top: 18px;
  position: relative;
  text-transform: uppercase;
}

.welcome-credit::before {
  background: rgba(255, 255, 255, 0.14);
  content: "";
  height: 1px;
  inset-inline-start: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
}

/* ─────────────────  Tour panel (sidebar)  ───────────────── */

.tour-panel {
  align-self: stretch;
  background: rgba(7, 11, 10, 0.78);
  backdrop-filter: blur(20px);
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: auto;
  padding: 32px 24px;
  transform: translateX(0);
  transition: transform 260ms ease, opacity 180ms ease;
  z-index: 12;
}

.panel-collapsed .tour-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(105%);
}

.panel-header p,
.panel-header h1 {
  margin: 0;
}

.panel-header p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 8px;
}

.panel-header span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.operator-note {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.operator-note strong,
.operator-note span {
  display: block;
}

.operator-note strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.operator-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.location-list {
  display: grid;
  gap: 8px;
}

.location-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.location-title {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.location-title h2,
.location-title p {
  margin: 0;
}

.location-title h2 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.location-title p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}

.scene-list {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1px;
  background: var(--border);
}

.scene-button {
  align-items: center;
  background: rgba(7, 11, 10, 0.82);
  color: var(--text);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  text-align: start;
  border-radius: 0;
}

.scene-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.scene-button.active {
  background: var(--accent-medium);
  color: var(--accent);
  font-weight: 600;
}

.scene-button.active::after {
  background: var(--teal);
  border-radius: var(--r-pill);
  content: "";
  height: 6px;
  width: 6px;
}

.scene-label {
  display: block;
}

.video-indicator {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  color: var(--accent);
  display: flex;
  flex: 0 0 auto;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.scene-button.has-video:hover .video-indicator,
.scene-button.has-video.active .video-indicator {
  background: var(--accent);
  color: #111615;
}

.panel-footer {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  margin-top: auto;
  padding: 14px 16px;
}

.panel-footer-status strong {
  color: #ffffff;
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.panel-footer-status span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.panel-footer button {
  background: var(--accent);
  color: #111615;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  padding: 0 16px;
}

.panel-footer button:hover {
  background: #ffffff;
}

/* ─────────────────  Hotspots  ───────────────── */

.hotspots {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

.hotspot {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-elevated);
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.hotspot:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111615;
}

.hotspot::before {
  background: var(--accent);
  border-radius: var(--r-pill);
  content: "";
  height: 8px;
  width: 8px;
}

.hotspot.video-hotspot {
  border-color: rgba(255, 111, 97, 0.78);
}

.hotspot.video-hotspot::before {
  background: var(--coral);
  clip-path: polygon(24% 16%, 24% 84%, 84% 50%);
  height: 11px;
  width: 11px;
}

/* ─────────────────  House nav bar  ───────────────── */

.house-nav-bar {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-floating);
  display: flex;
  gap: 8px;
  padding: 8px;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.house-nav-option {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  min-height: 36px;
  min-width: 72px;
  padding: 0 16px;
}

.house-nav-option::before {
  background: currentColor;
  border-radius: var(--r-pill);
  content: "";
  height: 6px;
  opacity: 0.55;
  width: 6px;
}

.house-nav-option.current {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
}

.house-nav-option.current::before {
  background: var(--teal);
  opacity: 1;
}

.house-nav-option.gaze-focused,
.house-nav-option:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111615;
}

.house-nav-option.gaze-focused::before,
.house-nav-option:hover::before {
  background: #111615;
  opacity: 1;
}

/* ─────────────────  Video overlay  ───────────────── */

.video-overlay {
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 216, 77, 0.10), transparent 45%),
    rgba(5, 7, 6, 0.86);
  display: grid;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  padding: 80px 36px 120px;
  pointer-events: none;
  position: absolute;
  z-index: 9;
}

.video-overlay[hidden] {
  display: none;
}

.video-stage {
  width: min(1040px, 76vw);
}

.video-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.video-heading strong,
.video-heading span {
  display: block;
}

.video-heading strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
}

.video-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #020303;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-floating);
  overflow: hidden;
  position: relative;
}

.video-frame video {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-error {
  align-items: center;
  background: rgba(8, 12, 11, 0.86);
  color: #ffffff;
  display: none;
  font-size: 15px;
  inset: 0;
  justify-content: center;
  line-height: 1.5;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.video-error.visible {
  display: flex;
}

.video-controls {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 10;
}

.video-control {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-elevated);
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.video-control::before {
  background: var(--accent);
  border-radius: var(--r-pill);
  content: "";
  height: 8px;
  width: 8px;
}

.video-control:hover,
.video-control.gaze-focused {
  background: var(--accent);
  color: #111615;
}

.video-control:hover::before,
.video-control.gaze-focused::before {
  background: #111615;
}

.video-control.exit {
  border-color: rgba(255, 111, 97, 0.78);
}

.video-control.exit::before {
  background: var(--coral);
}

/* ─────────────────  Reticle  ───────────────── */

.reticle {
  --progress: 0deg;
  background:
    radial-gradient(circle, transparent 49%, rgba(8, 12, 11, 0.78) 51%, rgba(8, 12, 11, 0.78) 62%, transparent 64%),
    conic-gradient(var(--accent) var(--progress), rgba(255, 255, 255, 0.32) 0deg);
  border-radius: var(--r-pill);
  height: 28px;
  inset-inline-start: 50%;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 28px;
  z-index: 15;
}

.reticle::after {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-pill);
  content: "";
  height: 6px;
  inset-inline-start: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
}

.reticle.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

/* ─────────────────  Event status toast  ───────────────── */

.event-status {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  bottom: 144px;
  box-shadow: var(--sh-elevated);
  color: var(--text);
  font-size: 14px;
  inset-inline-end: 24px;
  max-width: min(420px, calc(100% - 48px));
  min-height: 44px;
  padding: 12px 16px;
  position: absolute;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.event-status:empty {
  display: none;
}

/* ─────────────────  Inline demo editor  ───────────────── */

.editable-field {
  border-radius: 6px;
  cursor: text;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: background-color 160ms ease, color 160ms ease, outline-color 160ms ease;
}

.editable-field:hover {
  background: rgba(255, 216, 77, 0.08);
  outline-color: rgba(255, 216, 77, 0.26);
}

.editable-field:focus {
  background: rgba(255, 216, 77, 0.14);
  color: #ffffff;
  outline-color: rgba(255, 216, 77, 0.72);
}

.editable-field.edit-saved {
  outline-color: rgba(40, 214, 194, 0.9);
}

/* ─────────────────  Floating QR (no text)  ───────────────── */

.share-qr {
  background: #ffffff;
  border-radius: var(--r-md);
  bottom: 24px;
  box-shadow: var(--sh-floating);
  height: 92px;
  inset-inline-end: 24px;
  overflow: hidden;
  padding: 8px;
  position: absolute;
  width: 92px;
  z-index: 12;
}

.share-qr svg {
  display: block;
  height: 100%;
  width: 100%;
}

.share-qr:empty {
  display: none;
}

/* ─────────────────  Scene strip (bottom pill)  ───────────────── */

.scene-strip {
  bottom: 24px;
  display: flex;
  gap: 8px;
  left: 50%;
  max-width: min(1120px, calc(100% - 280px));
  overflow-x: auto;
  padding: 0 4px;
  position: absolute;
  scrollbar-width: none;
  transform: translateX(-50%);
  z-index: 11;
}

.scene-strip::-webkit-scrollbar {
  display: none;
}

.strip-button {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  flex: 0 0 auto;
  inline-size: max-content;
  min-inline-size: 124px;
  max-inline-size: clamp(160px, 22vw, 300px);
  padding: 10px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.strip-button:hover {
  border-color: var(--border-strong);
}

.strip-button span,
.strip-button strong {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.strip-button span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.strip-button strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
  margin-top: 4px;
}

.strip-button.active {
  max-inline-size: clamp(190px, 26vw, 340px);
}

.strip-button.active {
  background: var(--accent-medium);
  border-color: var(--border-accent);
}

.strip-button.active strong {
  color: var(--accent);
}

/* ─────────────────  Scene transition  ───────────────── */

.scene-transition {
  background: #050706;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 14;
}

.scene-transition.active {
  animation: transitionCoverIn 420ms cubic-bezier(0.18, 0.88, 0.2, 1) forwards;
}

.scene-transition.enter {
  animation: transitionCoverOut 560ms cubic-bezier(0.18, 0.88, 0.2, 1) forwards;
}

.viewer-shell.scene-transitioning #viewer {
  animation: roomExitZoom 420ms cubic-bezier(0.18, 0.88, 0.2, 1) forwards;
}

.viewer-shell.scene-transition-in #viewer {
  animation: roomEnterFade 560ms cubic-bezier(0.18, 0.88, 0.2, 1);
}

@keyframes roomExitZoom {
  0% {
    filter: blur(0);
    transform: scale(1);
  }
  100% {
    filter: blur(2.4px);
    transform: scale(1.18);
  }
}

@keyframes roomEnterFade {
  0% {
    filter: blur(2px);
    transform: scale(1.08);
  }
  100% {
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes transitionCoverIn {
  0% { opacity: 0; }
  100% { opacity: 0.96; }
}

@keyframes transitionCoverOut {
  0% { opacity: 0.96; }
  100% { opacity: 0; }
}

/* ─────────────────  Responsive (mobile)  ───────────────── */

/* ─────────────────  Hide A-Frame built-in UI everywhere  ───────────────── */

.a-enter-vr,
.a-enter-ar,
.a-enter-vr-button,
.a-enter-ar-button,
.a-orientation-modal,
.a-orientation-modal-button,
.a-loader-title {
  display: none !important;
}

/* ─────────────────  Responsive (mobile)  ───────────────── */

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh auto;
    height: auto;
    min-height: 100vh;
  }

  /* Top bar: floating action buttons only, brand hidden on small screens */
  .top-overlay {
    align-items: center;
    flex-direction: row;
    left: auto;
    right: 56px;
    top: 12px;
    gap: 8px;
    width: auto;
    justify-content: flex-end;
  }

  .brand {
    display: none;
  }

  .actions .icon-button {
    height: 40px;
    width: 40px;
  }

  /* Panel toggle — top-start corner */
  .panel-toggle {
    inset-inline-start: 12px;
    top: 12px;
    height: 40px;
    width: 40px;
  }

  /* Tooltip hidden on touch devices */
  .icon-button[data-tooltip]::after {
    display: none;
  }

  .scene-strip {
    bottom: 12px;
    left: 50%;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
  }

  /* QR hidden on mobile — can't scan from own phone */
  .share-qr {
    display: none !important;
  }

  .event-status {
    bottom: 72px;
    inset-inline-end: 12px;
    max-width: calc(100% - 24px);
    font-size: 13px;
  }

  .video-overlay {
    padding: 76px 18px 96px;
  }

  .video-stage {
    width: min(100%, 720px);
  }

  .video-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .tour-panel {
    border-inline-start: 0;
    border-top: 1px solid var(--border);
    grid-column: 1;
    grid-row: 2;
    padding: 20px 16px;
    gap: 14px;
  }

  .viewer-shell {
    grid-column: 1;
    grid-row: 1;
  }

  .panel-header h1 {
    font-size: 22px;
  }

  .panel-header span {
    font-size: 13px;
  }

  /* Welcome card — compact on mobile */
  .welcome-card {
    padding: 28px 20px 20px;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
  }

  .welcome-card img {
    width: 140px;
    margin-bottom: 16px;
  }

  .welcome-card h1 {
    font-size: 26px;
  }

  .welcome-card .welcome-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    width: 100%;
  }

  .welcome-card .welcome-actions button {
    height: 46px;
    width: 100%;
    justify-content: center;
  }

  .welcome-card .welcome-credit {
    margin-top: 20px;
    font-size: 10px;
  }
}

/* ─────────────────  BEPO brand polish + entrance animations  ───────────────── */

@keyframes bepoBounceIn {
  0%   { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.85); }
  60%  { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.04); }
  80%  { transform: translate3d(0, 2px, 0) scale(0.99); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes bepoSlideUp {
  0%   { opacity: 0; transform: translate3d(0, 28px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bepoSceneStripUp {
  0%   { opacity: 0; transform: translate3d(-50%, 30px, 0); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

@keyframes bepoSlideDown {
  0%   { opacity: 0; transform: translate3d(0, -28px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bepoSlideInStart {
  0%   { opacity: 0; transform: translate3d(40px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bepoSlideInEnd {
  0%   { opacity: 0; transform: translate3d(-40px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bepoLogoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Welcome screen — strong BEPO presence */
.welcome-screen {
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 216, 77, 0.10), transparent 36%),
    radial-gradient(circle at 18% 88%, rgba(40, 214, 194, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(6, 9, 10, 0.96), rgba(6, 9, 10, 0.78));
}

.welcome-card {
  border: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: 22px;
  max-width: 600px;
  overflow: hidden;
  padding: 56px 60px 36px;
  position: relative;
  animation: bepoBounceIn 720ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.welcome-card::before {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 216, 77, 0.20) 0 12px,
      transparent 12px 28px);
  content: "";
  height: 6px;
  inset-block-start: 0;
  inset-inline: 0;
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.welcome-card::after {
  background: radial-gradient(circle at 50% 0%, rgba(255, 216, 77, 0.16), transparent 70%);
  content: "";
  height: 220px;
  inset-block-start: -110px;
  inset-inline: -10%;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.welcome-card > * {
  position: relative;
  z-index: 1;
}

.welcome-card img {
  animation:
    bepoBounceIn 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both,
    bepoLogoPulse 4s ease-in-out 2s infinite;
  filter: drop-shadow(0 8px 24px rgba(255, 216, 77, 0.20));
  margin-bottom: 28px;
  width: 220px;
}

.welcome-card .eyebrow {
  animation: bepoSlideUp 540ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.welcome-card h1 {
  animation: bepoSlideUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 380ms both;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.welcome-card .welcome-actions {
  animation: bepoSlideUp 540ms cubic-bezier(0.16, 1, 0.3, 1) 540ms both;
  margin-top: 36px;
}

.welcome-card .welcome-actions button {
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  height: 52px;
  letter-spacing: 0.01em;
  padding: 0 28px;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 180ms ease,
              box-shadow 180ms ease;
}

.welcome-card .welcome-primary {
  box-shadow:
    0 12px 28px -10px rgba(255, 216, 77, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.welcome-card .welcome-primary:hover {
  background: #ffe580;
  transform: translateY(-2px) scale(1.02);
}

.welcome-card .welcome-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.welcome-card .welcome-credit {
  animation: bepoSlideUp 480ms cubic-bezier(0.16, 1, 0.3, 1) 720ms both;
}

/* Viewer chrome enters only after the welcome overlay closes */
body.tour-started .top-overlay {
  animation: bepoSlideDown 580ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  pointer-events: none;
}

body.tour-started .brand,
body.tour-started .actions {
  pointer-events: auto;
}

body.tour-started .actions .icon-button {
  animation: bepoBounceIn 540ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

body.tour-started .actions .icon-button:nth-child(1) { animation-delay: 260ms; }
body.tour-started .actions .icon-button:nth-child(2) { animation-delay: 350ms; }

.brand img {
  filter: drop-shadow(0 4px 12px rgba(255, 216, 77, 0.18));
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.brand-copy span {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Side panel slide in */
.tour-panel {
  animation: bepoSlideInStart 620ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
  position: relative;
}

.tour-panel::before {
  background: linear-gradient(180deg,
    rgba(255, 216, 77, 0.55) 0%,
    rgba(255, 216, 77, 0) 60%);
  content: "";
  inset-block: 0;
  inset-inline-end: 0;
  position: absolute;
  width: 2px;
  z-index: 2;
}

.panel-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.panel-header p {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.location-card {
  animation: bepoSlideUp 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(360ms + var(--card-index, 0) * 90ms);
}

.location-card:nth-of-type(1) { --card-index: 0; }
.location-card:nth-of-type(2) { --card-index: 1; }
.location-card:nth-of-type(3) { --card-index: 2; }
.location-card:nth-of-type(4) { --card-index: 3; }
.location-card:nth-of-type(5) { --card-index: 4; }

.location-title h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.scene-button {
  position: relative;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 180ms ease,
              border-color 180ms ease,
              color 180ms ease;
}

.scene-button:hover {
  transform: translateY(-1px) scale(1.02);
}

.scene-button.active {
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.22), rgba(255, 216, 77, 0.06));
  border-color: var(--accent);
  box-shadow: 0 6px 16px -10px rgba(255, 216, 77, 0.6);
  color: var(--accent);
  font-weight: 700;
}

/* Scene strip — bolder + stagger entrance */
.scene-strip {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 30px, 0);
}

.scene-strip .strip-button {
  opacity: 0;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 180ms ease,
              background-color 180ms ease,
              color 180ms ease;
}

body.tour-started .scene-strip {
  animation: bepoSceneStripUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
  pointer-events: auto;
}

body.tour-started .scene-strip .strip-button {
  animation: bepoBounceIn 580ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(280ms + var(--strip-index, 0) * 90ms);
}

.scene-strip .strip-button:nth-child(1) { --strip-index: 0; }
.scene-strip .strip-button:nth-child(2) { --strip-index: 1; }
.scene-strip .strip-button:nth-child(3) { --strip-index: 2; }
.scene-strip .strip-button:nth-child(4) { --strip-index: 3; }
.scene-strip .strip-button:nth-child(5) { --strip-index: 4; }

.scene-strip .strip-button:hover {
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

.scene-strip .strip-button.active {
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.18), rgba(255, 216, 77, 0.04));
  border-color: var(--accent);
  box-shadow:
    0 12px 28px -16px rgba(255, 216, 77, 0.7),
    inset 0 -2px 0 rgba(255, 216, 77, 0.4);
  color: var(--accent);
}

.scene-strip .strip-button.active strong {
  color: var(--accent);
}

/* VR / Event-mode top buttons — bolder yellow accent on ready/active */
.actions .icon-button {
  border-radius: 999px;
  height: 46px;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 180ms ease,
              color 180ms ease,
              box-shadow 180ms ease;
  width: 46px;
}

.actions .icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

.actions #enterVrButton[data-state="ready"] {
  background: linear-gradient(135deg, var(--accent), #ffc931);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -10px rgba(255, 216, 77, 0.7);
  color: #131816;
}

.actions #enterVrButton[data-state="ready"]:hover {
  background: linear-gradient(135deg, #ffe580, var(--accent));
  color: #0a0d0c;
}

.actions #enterVrButton.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d0c;
}

/* Panel toggle bolder */
.panel-toggle {
  border-radius: 999px;
}

body.tour-started .panel-toggle {
  animation: bepoBounceIn 540ms cubic-bezier(0.34, 1.56, 0.64, 1) 420ms both;
  pointer-events: auto;
}

/* Share QR card pop in */
body.tour-started .share-qr:not(:empty) {
  animation: bepoSlideInEnd 520ms cubic-bezier(0.16, 1, 0.3, 1) 720ms both;
  pointer-events: auto;
}

/* VR hint slide in */
.vr-hint.visible {
  animation: bepoSlideUp 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Operator note accents */
.operator-note {
  border-inline-start: 3px solid rgba(255, 216, 77, 0.45);
  border-radius: 12px;
  position: relative;
}

.operator-note strong {
  color: var(--accent);
  font-weight: 800;
}

/* Icon-bearing buttons (welcome + reload) */
.welcome-card .welcome-actions button,
.panel-footer #reloadButton {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.btn-icon {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.welcome-card .welcome-primary .btn-icon {
  fill: currentColor;
  stroke: none;
}

.panel-footer #reloadButton {
  background: var(--surface-flat);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  height: 40px;
  padding: 0 18px;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 180ms ease,
              color 180ms ease;
}

.panel-footer #reloadButton:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Active BEPO logo component overrides */
.welcome-card .bepo-logo {
  animation:
    bepoBounceIn 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both,
    bepoLogoPulse 4s ease-in-out 2s infinite;
  filter: drop-shadow(0 8px 24px rgba(255, 216, 77, 0.20));
}

.brand .bepo-logo {
  filter: drop-shadow(0 4px 12px rgba(255, 216, 77, 0.18));
}

.welcome-card .bepo-logo-360,
.brand .bepo-logo-360 {
  animation: none;
  filter: none;
  height: 1.55em;
  width: auto;
}

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
  .welcome-card,
  .welcome-card .bepo-logo,
  .welcome-card img,
  .welcome-card .eyebrow,
  .welcome-card h1,
  .welcome-card .welcome-actions,
  .welcome-card .welcome-credit,
  .top-overlay,
  .tour-panel,
  .location-card,
  .scene-strip,
  .scene-strip .strip-button,
  .panel-toggle,
  .share-qr,
  .vr-hint {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
