:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #4b4e53;
  --zoom: 1;
  --origin-x: 50%;
  --origin-y: 50%;
  --pan-x: 0px;
  --pan-y: 0px;
  --hotspot-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 50% 42%, #62666c 0, #53575c 45%, #44474c 100%);
}

body {
  min-height: 100svh;
}

button,
img,
canvas {
  -webkit-user-select: none;
  user-select: none;
}

.viewer {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 42%, #62666c 0, #53575c 45%, #44474c 100%);
}

.viewer.is-dragging {
  cursor: grabbing;
}

.viewer.is-panning {
  cursor: grabbing;
}

.stage {
  position: absolute;
  inset: 0;
  contain: strict;
  transform: translate3d(var(--pan-x), var(--pan-y), 0) scale(var(--zoom));
  transform-origin: var(--origin-x) var(--origin-y);
  will-change: transform;
}

.motion-frame,
.detail-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.motion-frame {
  z-index: 1;
}

.detail-frame {
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.detail-frame.is-visible {
  opacity: 1;
}

.monitor-surface {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 1000px;
  height: 700px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  contain: strict;
  will-change: transform, clip-path;
  transition: opacity 140ms ease-out, visibility 140ms ease-out;
}

.monitor-surface.is-ready {
  visibility: visible;
  opacity: 0.96;
}


.monitor-surface__screen {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 54px 62px 48px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: #f7f8ed;
  background:
    linear-gradient(118deg, rgba(255, 216, 74, 0.08), transparent 38%),
    linear-gradient(160deg, #121719 0%, #080b0d 74%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.045),
    inset 0 0 70px rgba(125, 84, 190, 0.14);
}

.monitor-surface__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.025) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, rgba(255, 255, 255, 0.02) 50%, transparent 50.3%);
  background-size: 86px 86px;
  pointer-events: none;
}

.monitor-surface__topbar,
.monitor-surface__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(247, 248, 237, 0.55);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.monitor-surface__topbar {
  justify-content: flex-start;
  gap: 18px;
}

.monitor-surface__status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 0 20px rgba(255, 216, 74, 0.7);
}

.monitor-surface__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 48px;
}

.monitor-surface__eyebrow {
  margin-bottom: 20px;
  color: #ffd84a;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.monitor-surface__title {
  max-width: 92%;
  color: #fff;
  font-size: var(--monitor-title-size, 82px);
  font-weight: 790;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-transform: uppercase;
}

.monitor-surface__description {
  display: -webkit-box;
  max-width: 54%;
  margin: 20px 0 0;
  overflow: hidden;
  color: rgba(247, 248, 237, 0.72);
  font-size: 27px;
  font-weight: 520;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.monitor-surface__counter {
  color: rgba(255, 216, 74, 0.9);
  font-variant-numeric: tabular-nums;
}

.monitor-surface__screen.is-changing .monitor-surface__content {
  animation: monitor-content-in 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* The tracked monitor uses a cached visual preview so orbiting stays light.
   The full external site is loaded only after the visitor opens the popup. */
.monitor-surface__screen {
  display: block;
  padding: 0;
  background: #f8f8f6;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.035);
}

.monitor-surface__screen::before,
.monitor-surface__topbar,
.monitor-surface__content,
.monitor-surface__footer {
  display: none;
}

.monitor-surface__preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8f8f6;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.monitor-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  isolation: isolate;
}

.monitor-modal[hidden] {
  display: none;
}

.monitor-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 9, 10, 0.54);
  cursor: zoom-out;
}

.monitor-modal__dialog {
  position: relative;
  display: grid;
  width: min(56vw, calc(56vh * 16 / 9), 56rem);
  aspect-ratio: 16 / 9;
  grid-template-rows: 2.9rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 216, 74, 0.64);
  border-radius: clamp(0.65rem, 1.1vw, 0.95rem);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -2px;
  background: #111315;
  box-shadow:
    0 1.5rem 4.5rem rgba(0, 0, 0, 0.52),
    0 0 0 0.3rem rgba(0, 0, 0, 0.16);
  animation: monitor-modal-in 170ms cubic-bezier(0.2, 0.78, 0.25, 1);
}

.monitor-modal__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.52rem 0.48rem 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #17191c;
}

.monitor-modal__identity,
.monitor-modal__actions,
.monitor-modal__open {
  display: flex;
  align-items: center;
}

.monitor-modal__identity {
  min-width: 0;
  gap: 0.55rem;
}

.monitor-modal__status {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 0 0.65rem rgba(255, 216, 74, 0.68);
}

.monitor-modal__brand {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  line-height: 1;
}

.monitor-modal__brand strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.065em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.monitor-modal__brand > span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.58rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-modal__actions {
  flex: 0 0 auto;
  gap: 0.38rem;
}

.monitor-modal__open,
.monitor-modal__close {
  min-height: 1.95rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  cursor: pointer;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.monitor-modal__open {
  justify-content: center;
  gap: 0.38rem;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 730;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.monitor-modal__close {
  display: grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  padding: 0 0 0.1rem;
  border-radius: 50%;
  font-size: 1.22rem;
  line-height: 1;
}

.monitor-modal__open:hover,
.monitor-modal__open:focus-visible,
.monitor-modal__close:hover,
.monitor-modal__close:focus-visible {
  border-color: #ffd84a;
  color: #17191c;
  background: #ffd84a;
  outline: none;
  transform: translateY(-1px);
}

.monitor-modal__viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #f7f7f5;
}

.monitor-modal__frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1280px;
  height: 800px;
  border: 0;
  background: #f7f7f5;
  transform-origin: 0 0;
  will-change: transform;
}

.monitor-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.65rem;
  color: rgba(23, 25, 28, 0.62);
  background: #f7f7f5;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  pointer-events: none;
}

.monitor-modal__loading[hidden] {
  display: none;
}

.monitor-modal__spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(23, 25, 28, 0.14);
  border-top-color: #d4af22;
  border-radius: 50%;
  animation: monitor-spinner 750ms linear infinite;
}

@keyframes monitor-modal-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes monitor-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .monitor-modal {
    padding:
      max(0.65rem, env(safe-area-inset-top))
      max(0.65rem, env(safe-area-inset-right))
      max(0.65rem, env(safe-area-inset-bottom))
      max(0.65rem, env(safe-area-inset-left));
  }

  .monitor-modal__dialog {
    width: min(92vw, calc(72vh * 16 / 9));
    grid-template-rows: 2.65rem minmax(0, 1fr);
    border-radius: 0.6rem;
  }

  .monitor-modal__toolbar {
    padding: 0.4rem 0.42rem 0.4rem 0.58rem;
  }

  .monitor-modal__brand > span {
    display: none;
  }

  .monitor-modal__open {
    min-height: 1.8rem;
    padding: 0.3rem 0.52rem;
    font-size: 0.58rem;
  }

  .monitor-modal__close {
    width: 1.8rem;
    height: 1.8rem;
    min-height: 1.8rem;
    font-size: 1.12rem;
  }
}

@media (max-width: 430px) {
  .monitor-modal__brand strong {
    max-width: 7.8rem;
    font-size: 0.61rem;
  }

  .monitor-modal__open > span:first-child {
    display: none;
  }

  .monitor-modal__open {
    width: 1.8rem;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monitor-modal__dialog,
  .monitor-modal__spinner {
    animation: none;
  }

  .monitor-modal__open,
  .monitor-modal__close {
    transition: none;
  }
}

.monitor-mask-editor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 1000px;
  height: 700px;
  visibility: hidden;
  opacity: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.monitor-mask-editor.is-ready {
  visibility: visible;
  opacity: 1;
}

.monitor-mask-editor__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.monitor-mask-editor__preview polygon {
  fill: rgba(255, 216, 74, 0.12);
  stroke: #ffd84a;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.monitor-mask-editor__handle {
  position: absolute;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  box-shadow: none;
  font: 0/0 sans-serif;
  outline: none;
  transform: translate(-50%, -50%) scale(var(--monitor-mask-handle-scale, 1));
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}

.monitor-mask-editor__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 0 0 1px rgba(23, 25, 28, 0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.monitor-mask-editor__handle--edge::before {
  background: #77e7ff;
}

.monitor-mask-editor__handle:focus-visible::before {
  box-shadow: 0 0 0 1px #17191c, 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.monitor-mask-editor:not(.is-editable) .monitor-mask-editor__handle {
  pointer-events: none;
  opacity: 0.45;
}

.monitor-screen-corners {
  position: absolute;
  inset: 0;
  z-index: 6;
  visibility: hidden;
  pointer-events: none;
}

.monitor-screen-corners.is-ready {
  visibility: visible;
}

.monitor-screen-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  box-shadow: none;
  font: 0/0 sans-serif;
  outline: none;
  transform: translate(-50%, -50%) scale(var(--monitor-screen-handle-scale, 1));
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}

.monitor-screen-corner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #77e7ff;
  box-shadow: 0 0 0 1px rgba(23, 25, 28, 0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.monitor-screen-corner:focus-visible::before {
  box-shadow: 0 0 0 1px #17191c, 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.monitor-screen-corners:not(.is-editable) .monitor-screen-corner {
  pointer-events: none;
  opacity: 0.4;
}

.monitor-mask-panel {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 13;
  width: min(27rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 216, 74, 0.38);
  border-radius: 1rem;
  color: #f7f8ed;
  background: rgba(23, 25, 28, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  cursor: default;
}

.monitor-mask-panel[hidden] {
  display: none;
}

.monitor-mask-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.monitor-mask-panel__header > div {
  display: grid;
  gap: 0.15rem;
}

.monitor-mask-panel__eyebrow,
.monitor-mask-panel__view {
  color: #ffd84a;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.monitor-mask-panel p {
  margin: 0.65rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  line-height: 1.45;
}

.monitor-mask-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.monitor-mask-panel__actions button {
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.monitor-mask-panel__actions button:hover,
.monitor-mask-panel__actions button:focus-visible {
  color: #17191c;
  background: #ffd84a;
  outline: none;
}

.monitor-mask-panel__actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  visibility: hidden;
  pointer-events: none;
}

.hotspot-layer.is-ready {
  visibility: visible;
}

.hotspot-layer.is-motion-hidden {
  visibility: hidden;
}

.hotspot-layer.is-motion-hidden .hotspot-region__shape {
  pointer-events: none;
}

.hotspot-region {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.hotspot-region.is-passive .hotspot-region__shape {
  pointer-events: none;
}

.hotspot-region__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
}

.hotspot-region__shape:focus-visible {
  outline: 2px solid rgba(255, 216, 74, 0.9);
  outline-offset: 0.2rem;
}

.hotspot-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: 1rem 2.75rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(27, 29, 32, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  --card-anchor-x: 50%;
  --card-enter-y: 0.4rem;
  transform-origin: var(--card-anchor-x) 100%;
  animation: hotspot-card-in 160ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hotspot-card[data-placement="below"] {
  --card-enter-y: -0.4rem;
  transform-origin: var(--card-anchor-x) 0%;
}

.hotspot-card::after {
  content: "";
  position: absolute;
  left: var(--card-anchor-x);
  border: 0.48rem solid transparent;
  transform: translateX(-50%);
}

.hotspot-card[data-placement="above"]::after {
  top: 100%;
  border-top-color: rgba(27, 29, 32, 0.96);
}

.hotspot-card[data-placement="below"]::after {
  bottom: 100%;
  border-bottom-color: rgba(27, 29, 32, 0.96);
}

.hotspot-card[hidden] {
  display: none;
}

.hotspot-card__eyebrow {
  display: block;
  margin-bottom: 0.28rem;
  color: #ffd84a;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hotspot-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hotspot-card p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hotspot-card__close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.hotspot-card__close:hover,
.hotspot-card__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}


.loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 50% 44%, #5b5f64 0, #4c5055 42%, #414449 100%);
  text-align: center;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.loading.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading__ring {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffd84a;
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

.loading__eyebrow {
  color: #ffd84a;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.loading__label {
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.loading__status {
  min-height: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.loading__progress {
  width: min(14rem, 62vw);
  height: 3px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.loading__progress > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #ffd84a;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 160ms ease-out;
}

.hint,
.camera-controls,
.zoom-controls,
.menu-toggle {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(33, 35, 38, 0.86);
  box-shadow: 0 8px 28px rgba(12, 13, 15, 0.16);
}

.menu-toggle {
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border-radius: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(255, 216, 74, 0.48);
  background: rgba(33, 35, 38, 0.96);
  outline: none;
}

.menu-toggle__bars {
  display: grid;
  width: 1.25rem;
  gap: 0.25rem;
}

.menu-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 170ms ease, opacity 120ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.object-menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  visibility: hidden;
  opacity: 0;
  background: rgba(12, 13, 15, 0.42);
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.object-menu-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.object-menu {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 9;
  display: flex;
  width: min(22rem, 88vw);
  padding:
    max(1.1rem, env(safe-area-inset-top))
    1rem
    max(1rem, env(safe-area-inset-bottom));
  flex-direction: column;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(25, 27, 30, 0.97);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  transform: translate3d(-102%, 0, 0);
  transition: transform 220ms cubic-bezier(0.22, 0.78, 0.24, 1), visibility 220ms ease;
}

.object-menu.is-open {
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.object-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.object-menu__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: #ffd84a;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.object-menu h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.object-menu__close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.object-menu__close:hover,
.object-menu__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.object-menu__intro {
  margin: 0.7rem 0 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.45;
}

.object-menu__nav {
  min-height: 0;
  margin-right: -0.35rem;
  padding-right: 0.35rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.object-menu__list {
  display: grid;
  gap: 0.35rem;
}

.object-menu__item {
  display: flex;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.68rem 0.78rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 130ms ease, background 130ms ease, border-color 130ms ease;
}

.object-menu__item::after {
  content: "→";
  color: rgba(255, 216, 74, 0.72);
}

.object-menu__item:hover,
.object-menu__item:focus-visible,
.object-menu__item.is-active {
  color: #fff;
  border-color: rgba(255, 216, 74, 0.28);
  background: rgba(255, 216, 74, 0.1);
  outline: none;
}

.zoom-controls {
  left: 50%;
  bottom: max(2.15rem, calc(env(safe-area-inset-bottom) + 2.15rem));
  gap: 0.65rem;
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 0.58rem 0.75rem;
  border-radius: 999px;
  transform: translateX(-50%);
}

.zoom-controls__button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}

.zoom-controls__button:active {
  color: #24262a;
  background: #ffd84a;
}

.zoom-controls__button:focus-visible {
  outline: 2px solid rgba(255, 216, 74, 0.86);
  outline-offset: 2px;
}

.zoom-controls__button:disabled {
  cursor: default;
  opacity: 0.34;
}

.zoom-controls__slider {
  appearance: none;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.zoom-controls__slider::-webkit-slider-runnable-track {
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.zoom-controls__slider::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.375rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.zoom-controls__slider::-moz-range-track {
  height: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.zoom-controls__slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.zoom-controls__slider:focus-visible {
  outline: 2px solid rgba(255, 216, 74, 0.8);
  outline-offset: 0.25rem;
  border-radius: 999px;
}

.zoom-controls__level {
  min-width: 3.2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.orbit-track {
  --orbit-position: 50%;
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.orbit-track--horizontal {
  bottom: max(0.8rem, calc(env(safe-area-inset-bottom) + 0.8rem));
  left: 50%;
  width: 6.5rem;
  height: 30px;
  transform: translateX(-50%);
}

.orbit-track--vertical {
  top: 50%;
  right: max(0.8rem, calc(env(safe-area-inset-right) + 0.8rem));
  width: 30px;
  height: 6.5rem;
  transform: translateY(-50%);
}

.orbit-track__rail {
  position: absolute;
  border-radius: 999px;
  background: rgba(218, 221, 226, 0.43);
  box-shadow: 0 1px 5px rgba(17, 18, 21, 0.22);
  transition: background 130ms ease, box-shadow 130ms ease;
}

.orbit-track--horizontal .orbit-track__rail {
  top: 50%;
  right: 0;
  left: 0;
  height: 4.5px;
  transform: translateY(-50%);
}

.orbit-track--vertical .orbit-track__rail {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4.5px;
  transform: translateX(-50%);
}

.orbit-track__ball {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(39, 41, 45, 0.52);
  border-radius: 50%;
  background: #b9bdc3;
  box-shadow: 0 2px 8px rgba(14, 15, 18, 0.28);
  transition: width 130ms ease, height 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.orbit-track--horizontal .orbit-track__ball {
  top: 50%;
  left: var(--orbit-position);
  transform: translate(-50%, -50%);
}

.orbit-track--vertical .orbit-track__ball {
  top: var(--orbit-position);
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-track.is-active .orbit-track__ball {
  border-color: #ad8410;
  background: #ffe277;
  box-shadow: 0 0 14px rgba(255, 216, 77, 0.62);
}

.orbit-track--horizontal.is-active .orbit-track__ball {
  width: 24px;
  height: 24px;
}

.orbit-track--vertical.is-active .orbit-track__ball {
  width: 29px;
  height: 29px;
}

.camera-controls {
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 0.82rem;
}

.camera-controls__button {
  appearance: none;
  border: 0;
  border-radius: 0.58rem;
  padding: 0.48rem 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.camera-controls__button:hover,
.camera-controls__button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.hint {
  left: 50%;
  bottom: max(10.3rem, calc(env(safe-area-inset-bottom) + 10.3rem));
  gap: 0.55rem;
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  transform: translateX(-50%);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.hint.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.hint__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

noscript {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes hotspot-card-in {
  from {
    opacity: 0;
    transform: translateY(var(--card-enter-y)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes monitor-content-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none) and (pointer: coarse) {
  .hotspot-region__shape {
    pointer-events: none;
  }
}

@media (max-width: 800px) {
  .object-menu {
    width: 40vw;
    padding:
      max(0.8rem, env(safe-area-inset-top))
      0.7rem
      max(0.7rem, env(safe-area-inset-bottom));
  }

  .object-menu__header {
    position: relative;
    display: block;
    min-height: 2rem;
    padding-right: 1.8rem;
  }

  .object-menu__eyebrow {
    display: none;
  }

  .object-menu h2 {
    font-size: 0.9rem;
  }

  .object-menu__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
  }

  .object-menu__intro {
    display: none;
  }

  .object-menu__nav {
    margin-top: 0.7rem;
  }

  .object-menu__list {
    gap: 0.2rem;
  }

  .object-menu__item {
    min-height: 2.3rem;
    padding: 0.48rem 0.6rem;
    justify-content: flex-start;
    gap: 0;
    border-radius: 0.56rem;
    font-size: 0.7rem;
  }

  .object-menu__item::after {
    margin-left: 0.38rem;
    font-size: 0.72rem;
  }

  .menu-toggle {
    top: max(0.7rem, env(safe-area-inset-top));
    left: max(0.7rem, env(safe-area-inset-left));
  }

  .hint {
    bottom: max(6.2rem, calc(env(safe-area-inset-bottom) + 6.2rem));
    max-width: calc(100vw - 1.4rem);
    justify-content: center;
    text-align: center;
  }

  .hint__dot,
  .hint span:nth-of-type(n + 2) {
    display: none;
  }

  .camera-controls {
    display: none;
  }

  .hotspot-card {
    width: min(18rem, calc(100vw - 1.25rem));
    padding: 0.9rem 2.55rem 0.9rem 0.9rem;
  }

  .zoom-controls {
    bottom: max(2.15rem, calc(env(safe-area-inset-bottom) + 2.15rem));
    display: flex;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.25rem;
  }

  .zoom-controls__button {
    display: grid;
  }

  .zoom-controls__slider {
    display: none;
  }

  .zoom-controls__level {
    min-width: 3rem;
    text-align: center;
  }

  .orbit-track--horizontal {
    left: 50%;
    width: 6.5rem;
  }

  .orbit-track--vertical {
    top: 50%;
    height: 6.5rem;
  }

  .camera-controls__button {
    padding: 0.46rem 0.58rem;
    white-space: nowrap;
  }

}

@media (prefers-reduced-motion: reduce) {
  .loading__ring {
    animation-duration: 1.4s;
  }

  .hotspot-card {
    animation: none;
  }

  .monitor-surface__screen.is-changing .monitor-surface__content {
    animation: none;
  }

  .object-menu,
  .object-menu-backdrop,
  .menu-toggle__bars span {
    transition: none;
  }
}
