:root {
  color-scheme: dark;
  --ink: #191713;
  --paper: #f4f0e6;
  --cinnabar: #9d2f24;
  --brass: #b28a45;
  --chrome: rgba(25, 23, 19, 0.82);
  --chrome-solid: #20201c;
  --line: rgba(255, 255, 255, 0.22);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
.panorama-shell,
.panorama {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

.panorama-shell {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  overflow: hidden;
  background: var(--paper);
}

.experience {
  position: absolute;
  inset: 0;
}

.experience[hidden],
.hotspot-layer[hidden],
.icon-button[hidden] {
  display: none !important;
}

#background-audio,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.immersive-view {
  background: #191713;
  cursor: grab;
  touch-action: none;
}

.immersive-view:active {
  cursor: grabbing;
}

.immersive-view canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

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

.hotspot-marker {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff9ed;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.hotspot-marker:hover,
.hotspot-marker:focus-visible {
  opacity: 1;
}

.hotspot-marker:active {
  opacity: 0.84;
}

.hotspot-marker__dot {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 2px solid rgba(255, 249, 237, 0.96);
  border-radius: 50%;
  background: var(--cinnabar);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(178, 138, 69, 0.34), 0 0 18px rgba(178, 138, 69, 0.86);
  animation: hotspot-breathe 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.hotspot-marker::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 166, 91, 0.46) 0%, rgba(178, 138, 69, 0.2) 34%, transparent 72%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.62);
  animation: hotspot-aura 2.4s ease-in-out infinite;
  will-change: opacity, transform;
}

.hotspot-marker__dot::after {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(205, 166, 91, 0.88);
  border-radius: 50%;
  content: "";
  animation: hotspot-pulse 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  will-change: opacity, transform;
}

.hotspot-marker__dot::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff9ed;
  content: "";
  animation: hotspot-glint 2.4s ease-in-out infinite;
  will-change: opacity, transform;
}

.hotspot-marker.is-cluster .hotspot-marker__dot::before {
  display: none;
}

.hotspot-marker__label {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  max-width: 220px;
  padding: 7px 10px;
  transform: translate(-50%, 4px);
  overflow: hidden;
  border: 1px solid rgba(244, 240, 230, 0.36);
  background: rgba(25, 23, 19, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #fff9ed;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.hotspot-marker:hover .hotspot-marker__label,
.hotspot-marker:focus-visible .hotspot-marker__label {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hotspot-marker.is-primary {
  z-index: 2;
  width: 58px;
  height: 58px;
}

.hotspot-marker.is-primary::before {
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, rgba(222, 187, 107, 0.58) 0%, rgba(160, 45, 34, 0.28) 38%, transparent 72%);
  animation: hotspot-primary-aura 2.8s ease-in-out infinite;
  pointer-events: auto;
}

.hotspot-marker.is-primary .hotspot-marker__dot {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 2px solid #f4d58d;
  background: #a02d22;
  box-shadow: 0 0 0 5px rgba(244, 213, 141, 0.28), 0 0 24px rgba(160, 45, 34, 0.86);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  font-weight: 700;
}

.hotspot-marker.is-primary .hotspot-marker__dot::before {
  display: none;
}

.hotspot-marker.is-primary .hotspot-marker__dot::after {
  inset: -15px;
  border-color: rgba(244, 213, 141, 0.92);
  border-width: 2px;
}

.hotspot-marker.is-primary .hotspot-marker__label {
  bottom: calc(100% + 1px);
  display: grid;
  min-width: 142px;
  max-width: 176px;
  gap: 2px;
  padding: 8px 11px 9px;
  border-color: rgba(222, 187, 107, 0.82);
  background: rgba(31, 27, 22, 0.94);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.34), inset 3px 0 0 #a02d22;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  transform: translate(-50%, 0);
}

.hotspot-marker.is-primary .hotspot-marker__label,
.hotspot-marker.is-secondary .hotspot-marker__label {
  pointer-events: auto;
}

.hotspot-marker.is-primary .hotspot-marker__label::before {
  color: #e3c27b;
  content: "主馆";
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.hotspot-marker.is-secondary {
  z-index: 1;
  width: 50px;
  height: 50px;
}

.hotspot-marker.is-secondary::before {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(224, 193, 117, 0.48) 0%, rgba(31, 91, 85, 0.3) 38%, transparent 72%);
  animation-duration: 2.7s;
  pointer-events: auto;
}

.hotspot-marker.is-secondary .hotspot-marker__dot {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-color: #efd895;
  background: #1f5b55;
  box-shadow: 0 0 0 5px rgba(239, 216, 149, 0.26), 0 0 22px rgba(31, 91, 85, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.hotspot-marker.is-secondary .hotspot-marker__dot::before {
  display: none;
}

.hotspot-marker.is-secondary .hotspot-marker__dot::after {
  inset: -14px;
  border-color: rgba(239, 216, 149, 0.9);
}

.hotspot-marker.is-secondary .hotspot-marker__label {
  top: 50%;
  bottom: auto;
  left: calc(100% - 3px);
  display: grid;
  min-width: 116px;
  max-width: 158px;
  gap: 2px;
  padding: 7px 10px 8px;
  transform: translate(0, -50%);
  border-color: rgba(224, 193, 117, 0.72);
  background: rgba(22, 43, 40, 0.94);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.32), inset 3px 0 0 #1f5b55;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
}

.hotspot-marker.is-secondary .hotspot-marker__label::before {
  color: #efd895;
  content: "第二景点";
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.hotspot-marker.is-secondary:hover .hotspot-marker__label,
.hotspot-marker.is-secondary:focus-visible .hotspot-marker__label {
  transform: translate(0, -50%);
}

.hotspot-marker.is-cluster {
  border-color: rgba(178, 138, 69, 0.8);
}

.hotspot-marker.is-cluster .hotspot-marker__dot {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-color: var(--brass);
  background: #181713;
  font-size: 12px;
}

.hotspot-marker.is-cluster .hotspot-marker__dot,
.hotspot-marker.is-cluster::before,
.hotspot-marker.is-cluster .hotspot-marker__dot::after {
  animation: none;
}

.hotspot-marker.is-expanded {
  background: rgba(25, 23, 19, 0.96);
}

.hotspot-detail {
  position: absolute;
  z-index: 7;
  top: 108px;
  right: max(84px, calc(env(safe-area-inset-right) + 72px));
  width: min(382px, calc(100vw - 48px));
  max-height: calc(100vh - 132px);
  max-height: calc(100dvh - 132px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 22px 22px 20px;
  border: 1px solid rgba(244, 240, 230, 0.34);
  border-top: 3px solid var(--brass);
  background: rgba(27, 26, 22, 0.95);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
}

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

.hotspot-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hotspot-detail__eyebrow,
.hotspot-detail h2,
.hotspot-detail__summary,
.hotspot-detail__source {
  margin: 0;
}

.hotspot-detail__eyebrow {
  color: var(--brass);
  font-size: 10px;
  font-weight: 750;
}

.hotspot-detail h2 {
  margin-top: 8px;
  font-family: "STSong", "SimSun", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.hotspot-gallery {
  margin-top: 18px;
}

.hotspot-gallery__main {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(244, 240, 230, 0.24);
  background: #111;
  object-fit: contain;
}

.hotspot-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.hotspot-gallery__thumb {
  display: block;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 240, 230, 0.22);
  background: #111;
  cursor: pointer;
  opacity: 0.64;
  transition: border-color 120ms ease-out, opacity 120ms ease-out;
}

.hotspot-gallery__thumb:hover,
.hotspot-gallery__thumb:focus-visible,
.hotspot-gallery__thumb.is-active {
  border-color: var(--brass);
  opacity: 1;
}

.hotspot-gallery__thumb img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: cover;
}

.hotspot-detail__close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.26);
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.hotspot-detail__close:hover {
  background: var(--cinnabar);
}

.hotspot-detail__summary {
  margin-top: 20px;
  color: rgba(244, 240, 230, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

.hotspot-detail__facts {
  margin: 20px 0 0;
}

.hotspot-detail__facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(244, 240, 230, 0.14);
}

.hotspot-detail__facts dt {
  color: rgba(244, 240, 230, 0.5);
  font-size: 11px;
}

.hotspot-detail__facts dd {
  margin: 0;
  color: rgba(244, 240, 230, 0.9);
  font-size: 12px;
  line-height: 1.55;
}

.hotspot-detail__source {
  padding-top: 13px;
  border-top: 1px solid rgba(244, 240, 230, 0.14);
  color: rgba(244, 240, 230, 0.48);
  font-size: 10px;
  line-height: 1.6;
}

.panorama {
  position: absolute;
  inset: 0;
  background: var(--paper);
  touch-action: none;
}

.panorama:focus-visible,
.openseadragon-container:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: -4px;
}

.topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 14px max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--chrome);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  pointer-events: none;
}

.mode-switch {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 198px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: rgba(20, 20, 17, 0.64);
  pointer-events: auto;
}

.mode-button {
  min-height: 34px;
  padding: 0 13px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 100ms ease-out;
}

.mode-button:last-child {
  border-right: 0;
}

.mode-button:hover,
.mode-button.is-active {
  background: var(--cinnabar);
  color: #fff9ed;
}

.mode-button:active {
  transform: scale(0.98);
}

.identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.identity__mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.58);
  background: var(--cinnabar);
  color: #fff9ed;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 25px;
  line-height: 1;
}

.identity__kicker,
.identity h1,
.scene-caption p,
.scene-caption span,
.error-layer p,
.error-layer h2 {
  margin: 0;
}

.identity__kicker {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 650;
}

.identity h1 {
  overflow: hidden;
  margin-top: 5px;
  font-family: "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-badge,
.toolbar,
.scene-caption {
  border: 1px solid var(--line);
  background: var(--chrome);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.release-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 700;
}

.toolbar {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: 50px;
  transform: translateY(-50%);
}

.icon-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 24px;
  line-height: 1;
  transition: opacity 100ms ease-out, transform 100ms ease-out, background-color 100ms ease-out;
}

.icon-button:last-child {
  border-bottom: 0;
}

.icon-button:hover {
  background: rgba(157, 47, 36, 0.78);
}

.icon-button:active,
.primary-button:active {
  transform: scale(0.96);
  opacity: 0.82;
}

.icon-button::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  padding: 6px 8px;
  transform: translate(4px, -50%);
  opacity: 0;
  background: rgba(20, 20, 17, 0.94);
  color: #fff;
  content: attr(data-tooltip);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}

.icon-button:hover::after,
.icon-button:focus-visible::after {
  transform: translate(0, -50%);
  opacity: 1;
}

.music-control {
  position: relative;
  display: grid;
}

.music-toggle.is-playing {
  background: rgba(157, 47, 36, 0.78);
  color: #fff9ed;
}

.music-volume {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  display: flex;
  width: 136px;
  height: 42px;
  align-items: center;
  padding: 0 11px;
  transform: translate(4px, -50%);
  border: 1px solid var(--line);
  background: var(--chrome);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.music-control:hover .music-volume,
.music-control:focus-within .music-volume {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}

.music-volume input {
  width: 100%;
  accent-color: var(--brass);
  cursor: pointer;
}

.scene-caption {
  position: absolute;
  z-index: 4;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: max(22px, env(safe-area-inset-left));
  max-width: min(450px, calc(100% - 160px));
  padding: 12px 16px 13px;
  border-left: 3px solid var(--brass);
  pointer-events: none;
}

.scene-caption p {
  overflow: hidden;
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-caption span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.navigator {
  right: 22px !important;
  bottom: 22px !important;
  width: min(220px, 28vw) !important;
  height: clamp(52px, 6vw, 72px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(244, 240, 230, 0.46) !important;
  background: var(--chrome-solid) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.navigator .displayregion {
  border: 2px solid var(--cinnabar) !important;
}

.status-layer,
.error-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  background: var(--ink);
  text-align: center;
}

.status-layer {
  gap: 16px;
  transition: opacity 180ms ease-out, visibility 180ms;
}

.status-layer[hidden],
.error-layer[hidden] {
  display: none;
}

.status-layer__spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 2px solid rgba(244, 240, 230, 0.2);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.status-layer p {
  margin: 0;
  color: rgba(244, 240, 230, 0.76);
  font-size: 14px;
}

.error-layer__content {
  width: min(460px, calc(100vw - 40px));
  text-align: left;
}

.error-layer__kicker {
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
}

.error-layer h2 {
  margin-top: 12px;
  font-family: "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 600;
}

.error-layer #error-message {
  margin-top: 14px;
  color: rgba(244, 240, 230, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button {
  min-height: 46px;
  margin-top: 24px;
  padding: 0 20px;
  background: var(--cinnabar);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}

.secondary-button {
  min-height: 46px;
  margin-top: 24px;
  padding: 0 16px;
  border: 1px solid rgba(244, 240, 230, 0.36);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 100ms ease-out, transform 100ms ease-out;
}

.secondary-button:hover {
  background: rgba(244, 240, 230, 0.12);
}

.secondary-button:active {
  transform: scale(0.97);
}

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

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

@keyframes hotspot-pulse {
  0% { opacity: 0.9; transform: scale(0.68); }
  68%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes hotspot-primary-aura {
  0%, 100% { opacity: 0.68; transform: translate(-50%, -50%) scale(0.72); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes hotspot-aura {
  0%, 100% { opacity: 0.46; transform: translate(-50%, -50%) scale(0.62); }
  50% { opacity: 0.96; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes hotspot-breathe {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(178, 138, 69, 0.28), 0 0 18px rgba(178, 138, 69, 0.72); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(205, 166, 91, 0.42), 0 0 26px rgba(205, 166, 91, 0.96); }
}

@keyframes hotspot-glint {
  0%, 100% { opacity: 0.8; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 116px;
    align-items: flex-start;
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .mode-switch {
    top: 74px;
    right: 14px;
    left: 14px;
    width: auto;
    transform: none;
  }

  .identity {
    gap: 10px;
  }

  .identity__mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 21px;
  }

  .identity__kicker {
    font-size: 9px;
  }

  .identity h1 {
    max-width: 48vw;
    font-size: 18px;
  }

  .release-badge {
    padding: 8px 9px;
    font-size: 9px;
  }

  .toolbar {
    right: max(12px, env(safe-area-inset-right));
    width: 46px;
  }

  .icon-button {
    width: 44px;
    height: 46px;
    font-size: 22px;
  }

  .icon-button::after {
    display: none;
  }

  .hotspot-marker {
    width: 44px;
    height: 44px;
  }

  .hotspot-marker__label {
    max-width: 156px;
    font-size: 11px;
  }

  .hotspot-detail {
    top: auto;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
    max-height: min(62vh, 510px);
    max-height: min(62dvh, 510px);
    padding: 19px 18px 17px;
  }

  .hotspot-gallery__main {
    aspect-ratio: 16 / 8.6;
  }

  .scene-caption {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    max-width: calc(100% - 118px);
  }

  .navigator {
    right: 14px !important;
    bottom: 14px !important;
    width: 28vw !important;
    height: 52px !important;
  }
}

@media (max-height: 430px) {
  .topbar {
    min-height: 62px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .mode-switch {
    top: 14px;
    right: auto;
    left: 50%;
    width: 198px;
    transform: translateX(-50%);
  }

  .identity__mark,
  .scene-caption,
  .navigator {
    display: none !important;
  }

  .toolbar {
    grid-template-columns: repeat(4, 44px);
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }

  .icon-button {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .icon-button:last-child {
    border-right: 0;
  }

  .hotspot-detail {
    top: 74px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: none;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .hotspot-marker__dot::after {
    animation: none;
    opacity: 0.72;
    transform: none;
  }

  .hotspot-marker__dot,
  .hotspot-marker::before,
  .hotspot-marker__dot::before {
    animation: none;
  }

  .hotspot-marker__dot {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(205, 166, 91, 0.38), 0 0 24px rgba(205, 166, 91, 0.9);
  }

  .hotspot-marker::before {
    width: 64px;
    height: 64px;
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(1);
  }

  .hotspot-marker__dot::after {
    inset: -14px;
    border-width: 3px;
    opacity: 0.92;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .release-badge,
  .toolbar,
  .scene-caption,
  .hotspot-detail {
    background: var(--chrome-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .topbar,
  .release-badge,
  .toolbar,
  .scene-caption,
  .hotspot-detail {
    border-color: #fff;
    background: #111;
  }
}
