html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #152536;
  background:
    radial-gradient(circle at 14% 10%, rgba(227, 211, 183, 0.24), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(174, 196, 218, 0.22), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 46%, #eef1f5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(140, 160, 182, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(140, 160, 182, 0.06) 1px, transparent 1px);
  background-size:
    100% 100%,
    56px 56px,
    56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

strong {
  font-weight: 700;
}

.tour-app {
  padding: 2.25rem 1rem 3.25rem;
}

.tour-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.tour-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.tour-kicker {
  margin: 0;
  color: #657b95;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tour-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 219, 229, 0.96);
  background: rgba(255, 255, 255, 0.72);
  color: #405769;
  box-shadow: 0 10px 22px rgba(24, 41, 59, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tour-title {
  margin: 0;
  color: #18283a;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.tour-title-accent {
  display: inline-block;
  margin-right: 0.18em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  background: linear-gradient(135deg, #17344f 0%, #355d82 52%, #8b6a32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tour-title-rest {
  display: inline-block;
  font-weight: 800;
}

.tour-lead {
  max-width: 60rem;
  margin: 0.1rem 0 0;
  color: #425466;
  font-size: 1.02rem;
  line-height: 1.86;
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.tour-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.12rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 210, 223, 0.96);
  background: rgba(255, 255, 255, 0.78);
  color: #274157;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(17, 31, 48, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.tour-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 191, 208, 0.96);
  box-shadow: 0 18px 34px rgba(17, 31, 48, 0.1);
}

.tour-link-button--primary {
  background: linear-gradient(135deg, #203a54 0%, #355979 62%, #8b6b33 100%);
  border-color: rgba(47, 76, 103, 0.92);
  color: #f7fafc;
  box-shadow: 0 16px 34px rgba(23, 39, 58, 0.16);
}

.tour-link-button--primary:hover {
  border-color: rgba(62, 95, 125, 0.96);
  box-shadow: 0 20px 40px rgba(23, 39, 58, 0.2);
}

.pano-tour-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 255, 0.96) 100%);
  border: 1px solid rgba(223, 230, 238, 0.98);
  border-radius: 28px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

.pano-tour-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 21rem);
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 1.35rem 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(229, 212, 188, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(176, 198, 219, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e8edf4;
}

.pano-tour-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pano-tour-section-label {
  color: #617790;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pano-tour-copy p {
  margin: 0;
  color: #425466;
  font-size: 0.98rem;
  line-height: 1.82;
}

.pano-tour-copy strong {
  color: #24384c;
}

.pano-tour-copy a {
  color: #2d5f88;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.pano-tour-copy a:hover {
  color: #1f4d73;
}

.pano-tour-guidance {
  max-width: 42rem;
  padding: 0.92rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(220, 228, 237, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  color: #516779;
  font-size: 0.92rem;
  line-height: 1.66;
  box-shadow: 0 14px 24px rgba(21, 38, 56, 0.06);
}

.pano-tour-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: linear-gradient(180deg, #0b1220, #101a2c);
  cursor: grab;
  touch-action: none;
}

.pano-tour-stage.is-dragging {
  cursor: grabbing;
}

.pano-tour-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pano-tour-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 24, 0.58);
  color: #f4f7fb;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.pano-tour-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  animation: pano-spin 0.85s linear infinite;
}

.pano-tour-fade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), rgba(6, 13, 24, 0.26));
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

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

.pano-tour-hotspot-button {
  position: absolute;
  width: 3.6rem;
  height: 3.6rem;
  transform: translate(-50%, -50%) scale(var(--pano-hotspot-scale, 1));
  transform-origin: center center;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.pano-tour-hotspot-button[hidden] {
  display: none;
}

.pano-tour-hotspot-ring,
.pano-tour-hotspot-core {
  position: absolute;
  inset: 50%;
  display: block;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.pano-tour-hotspot-ring {
  background: transparent;
  animation: pano-hotspot-pulse 1.8s ease-in-out infinite;
}

.pano-tour-hotspot-ring--outer {
  width: 2.86rem;
  height: 2.86rem;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 0.14rem rgba(122, 211, 255, 0.14),
    0 0 18px rgba(122, 211, 255, 0.48);
}

.pano-tour-hotspot-ring--inner {
  width: 1.66rem;
  height: 1.66rem;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 12px rgba(122, 211, 255, 0.22);
  animation-delay: -0.2s;
}

.pano-tour-hotspot-core {
  width: 0.52rem;
  height: 0.52rem;
  border: 2px solid rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.78);
}

.pano-tour-hotspot-button:hover .pano-tour-hotspot-ring--outer,
.pano-tour-hotspot-button:focus-visible .pano-tour-hotspot-ring--outer {
  border-color: #ffd88c;
  box-shadow:
    0 0 0 0.2rem rgba(255, 216, 140, 0.18),
    0 0 22px rgba(255, 216, 140, 0.62);
}

.pano-tour-hotspot-button:hover .pano-tour-hotspot-ring--inner,
.pano-tour-hotspot-button:focus-visible .pano-tour-hotspot-ring--inner {
  border-color: rgba(255, 216, 140, 0.92);
  box-shadow: 0 0 14px rgba(255, 216, 140, 0.34);
}

.pano-tour-hotspot-button:hover .pano-tour-hotspot-core,
.pano-tour-hotspot-button:focus-visible .pano-tour-hotspot-core {
  border-color: #ffd88c;
  background: rgba(255, 216, 140, 0.14);
  box-shadow: 0 0 14px rgba(255, 216, 140, 0.72);
}

.pano-tour-hotspot-button:focus-visible {
  outline: none;
}

.pano-tour-hotspot-button:hover,
.pano-tour-hotspot-button:focus-visible {
  transform: translate(-50%, -50%) scale(calc(var(--pano-hotspot-scale, 1) * 1.08));
}

.pano-tour-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: min(18rem, 34vw);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.pano-tour-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fbff;
  background: rgba(15, 25, 42, 0.62);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pano-tour-badge--secondary {
  background: rgba(233, 214, 181, 0.22);
  color: rgba(255, 248, 237, 0.98);
  font-weight: 600;
}

.pano-tour-stage-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  width: auto;
  max-width: calc(100% - 2rem);
}

.pano-tour-like-button,
.pano-tour-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  max-width: 100%;
  background: linear-gradient(135deg, #294157 0%, #375372 56%, #50708d 100%);
  color: #f7fafc;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 28px rgba(23, 42, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.pano-tour-like-button {
  min-width: 7.5rem;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(17, 28, 44, 0.88) 0%, rgba(32, 49, 72, 0.86) 100%);
  box-shadow:
    0 14px 28px rgba(12, 21, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pano-tour-like-button--page {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 8.4rem;
  align-self: auto;
}

.pano-tour-like-icon {
  font-size: 0.98rem;
  line-height: 1;
  color: #ffd6de;
  text-shadow: 0 0 12px rgba(255, 140, 164, 0.22);
}

.pano-tour-like-label {
  letter-spacing: 0.02em;
}

.pano-tour-like-count {
  min-width: 1.6rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 250, 252, 0.96);
  font-size: 0.88rem;
  text-align: center;
}

.pano-tour-like-button:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, rgba(24, 37, 56, 0.94) 0%, rgba(42, 62, 88, 0.92) 100%);
  box-shadow:
    0 18px 32px rgba(12, 24, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pano-tour-like-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124, 165, 207, 0.28),
    0 18px 32px rgba(12, 24, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pano-tour-like-button.is-liked {
  background: linear-gradient(135deg, #7b243f 0%, #9e3550 54%, #bb5570 100%);
  box-shadow:
    0 16px 32px rgba(98, 28, 49, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pano-tour-like-button.is-liked .pano-tour-like-icon {
  color: #fff1f4;
  text-shadow: 0 0 16px rgba(255, 228, 233, 0.42);
}

.pano-tour-like-button.is-liked .pano-tour-like-count {
  background: rgba(255, 255, 255, 0.16);
}

.pano-tour-like-button.is-busy,
.pano-tour-reset.is-busy {
  cursor: wait;
  opacity: 0.78;
}

.pano-tour-reset::before {
  content: "✦";
  font-size: 1rem;
  line-height: 1;
  opacity: 0.95;
}

.pano-tour-reset:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, #2f4962 0%, #40607e 58%, #557596 100%);
  box-shadow:
    0 18px 32px rgba(21, 40, 60, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.pano-tour-reset:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124, 165, 207, 0.28),
    0 18px 32px rgba(21, 40, 60, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.pano-tour-map {
  width: 100%;
  padding: 0.95rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid rgba(219, 227, 236, 0.98);
  box-shadow:
    0 18px 34px rgba(19, 34, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  user-select: none;
}

.pano-tour-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.pano-tour-map-title {
  color: #24384c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pano-tour-map-subtitle {
  color: #6a7f93;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
}

.pano-tour-map-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 234, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(247, 250, 253, 0.96)),
    radial-gradient(circle at 50% 16%, rgba(135, 161, 186, 0.08), transparent 34%);
}

.pano-tour-map-image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.94) contrast(0.985) brightness(0.995);
}

.pano-tour-map-markers {
  position: absolute;
  inset: 0;
}

.pano-tour-map-marker {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

.pano-tour-map-marker-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.82rem;
  height: 0.82rem;
  transform: translate(-50%, -50%);
  overflow: visible;
  border-radius: 999px;
  border: 1.6px solid rgba(56, 82, 106, 0.86);
  background: radial-gradient(circle at 35% 32%, #ffffff 0 28%, #d6e2ec 29% 54%, #5f84a4 55% 100%);
  box-shadow:
    0 0 0 0.14rem rgba(95, 132, 164, 0.16),
    0 6px 14px rgba(25, 46, 65, 0.15);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.pano-tour-map-marker-dot::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 132, 164, 0.26);
}

.pano-tour-map-marker-id {
  position: absolute;
  padding: 0.16rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 221, 231, 0.98);
  background: rgba(255, 255, 255, 0.97);
  color: #1f3447;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 12px rgba(27, 47, 67, 0.1);
  transition: box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
  pointer-events: none;
}

.pano-tour-map-marker.label-top-right .pano-tour-map-marker-id {
  left: 0.58rem;
  bottom: 0.54rem;
}

.pano-tour-map-marker.label-right .pano-tour-map-marker-id {
  left: 0.74rem;
  top: -0.4rem;
}

.pano-tour-map-marker.label-bottom-right .pano-tour-map-marker-id {
  left: 0.58rem;
  top: 0.54rem;
}

.pano-tour-map-marker.label-top-left .pano-tour-map-marker-id {
  right: 0.58rem;
  bottom: 0.54rem;
}

.pano-tour-map-marker.label-left .pano-tour-map-marker-id {
  right: 0.74rem;
  top: -0.4rem;
}

.pano-tour-map-marker.label-bottom-left .pano-tour-map-marker-id {
  right: 0.58rem;
  top: 0.54rem;
}

.pano-tour-map-marker.label-top .pano-tour-map-marker-id {
  left: 50%;
  bottom: 0.54rem;
  transform: translateX(-50%);
}

.pano-tour-map-marker.label-bottom .pano-tour-map-marker-id {
  left: 50%;
  top: 0.54rem;
  transform: translateX(-50%);
}

.pano-tour-map-marker:hover .pano-tour-map-marker-dot,
.pano-tour-map-marker:focus-visible .pano-tour-map-marker-dot {
  transform: translate(-50%, -50%) scale(1.09);
  background: radial-gradient(circle at 35% 32%, #ffffff 0 25%, #dfe8ef 26% 48%, #7096b8 49% 100%);
  box-shadow:
    0 0 0 0.18rem rgba(112, 150, 184, 0.2),
    0 8px 16px rgba(25, 46, 65, 0.18);
}

.pano-tour-map-marker:hover .pano-tour-map-marker-id,
.pano-tour-map-marker:focus-visible .pano-tour-map-marker-id {
  border-color: rgba(160, 182, 204, 0.98);
  box-shadow: 0 8px 16px rgba(27, 47, 67, 0.13);
}

.pano-tour-map-marker:focus-visible {
  outline: none;
}

.pano-tour-map-marker.is-active .pano-tour-map-marker-dot {
  border-color: rgba(121, 81, 30, 0.92);
  background: radial-gradient(circle at 35% 32%, #fffdf7 0 26%, #f7dbab 27% 54%, #d3973f 55% 100%);
  box-shadow:
    0 0 0 0.18rem rgba(211, 151, 63, 0.2),
    0 0 0 0.46rem rgba(211, 151, 63, 0.1),
    0 10px 18px rgba(77, 50, 16, 0.2);
}

.pano-tour-map-marker.is-active {
  z-index: 2;
}

.pano-tour-map-marker.is-active .pano-tour-map-marker-id {
  border-color: rgba(232, 205, 156, 0.98);
  background: rgba(255, 252, 245, 0.98);
  color: #6f4a18;
}

.pano-tour-map-marker.is-preview {
  z-index: 3;
}

.pano-tour-map-marker.is-preview .pano-tour-map-marker-dot {
  transform: translate(-50%, -50%) scale(1.11);
  border-color: rgba(55, 111, 162, 0.96);
  background: radial-gradient(circle at 35% 32%, #ffffff 0 25%, #dff0fb 26% 50%, #62a8d9 51% 100%);
  box-shadow:
    0 0 0 0.18rem rgba(98, 168, 217, 0.22),
    0 0 0 0.48rem rgba(98, 168, 217, 0.1),
    0 10px 18px rgba(31, 82, 122, 0.2);
}

.pano-tour-map-marker.is-preview .pano-tour-map-marker-dot::after {
  border-color: rgba(98, 168, 217, 0.42);
  animation: pano-map-preview-pulse 1.25s ease-in-out infinite;
}

.pano-tour-map-marker.is-preview .pano-tour-map-marker-id {
  border-color: rgba(180, 209, 230, 0.98);
  background: rgba(247, 251, 255, 0.98);
  color: #28547c;
  box-shadow: 0 8px 16px rgba(27, 72, 109, 0.14);
}

.pano-tour-tooltip {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, calc(-100% - 12px));
  border-radius: 12px;
  background: rgba(10, 17, 30, 0.84);
  color: #f6f8fb;
  padding: 0.38rem 0.62rem;
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.tour-paper-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.tour-paper-card,
.tour-citation-card {
  padding: 1.25rem 1.25rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(220, 228, 237, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 254, 0.96) 100%);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tour-paper-card {
  background:
    radial-gradient(circle at top left, rgba(227, 212, 188, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(181, 199, 217, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 254, 0.96) 100%);
}

.tour-paper-card-label {
  margin: 0 0 0.5rem;
  color: #617790;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-paper-card-title,
.tour-citation-title {
  margin: 0;
  color: #1a2d40;
  letter-spacing: -0.02em;
}

.tour-paper-card-title {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  line-height: 1.24;
}

.tour-paper-card-authors,
.tour-paper-card-affiliation,
.tour-paper-card-copy,
.tour-citation-note {
  margin: 0;
  color: #46596b;
}

.tour-paper-card-authors {
  margin-top: 0.75rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.65;
}

.tour-paper-card-affiliation {
  margin-top: 0.18rem;
  color: #6b7f93;
  font-size: 0.92rem;
  line-height: 1.6;
}

.tour-paper-card-copy {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.76;
}

.tour-paper-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tour-paper-card-actions .tour-link-button {
  flex: 1 1 14rem;
}

.tour-citation-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.tour-citation-title {
  font-size: 1.08rem;
}

.tour-citation-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 221, 231, 0.98);
  background: rgba(255, 255, 255, 0.86);
  color: #315b7f;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(19, 34, 51, 0.06);
}

.tour-citation-link:hover {
  color: #234864;
  border-color: rgba(186, 202, 218, 0.98);
}

.tour-citation-block {
  margin: 0;
  padding: 1rem 1rem 0.95rem;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(219, 227, 236, 0.98);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(243, 247, 251, 0.98) 100%);
  color: #22384d;
  font-size: 0.86rem;
  line-height: 1.72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tour-citation-block code {
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.tour-citation-note {
  margin-top: 0.85rem;
  font-size: 0.91rem;
  line-height: 1.72;
}

.tour-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.1rem 0.15rem 0;
}

.tour-footer-title,
.tour-footer-copy {
  margin: 0;
}

.tour-footer-title {
  color: #23384c;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tour-footer-copy {
  color: #667b90;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

@keyframes pano-hotspot-pulse {
  0%,
  100% {
    opacity: 0.96;
  }

  50% {
    opacity: 0.66;
  }
}

@keyframes pano-map-preview-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.22);
    opacity: 0.26;
  }
}

@media (max-width: 1023px) {
  .tour-app {
    padding-inline: 0.85rem;
  }

  .tour-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .pano-tour-overview {
    grid-template-columns: 1fr;
  }

  .tour-paper-panel {
    grid-template-columns: 1fr;
  }

  .pano-tour-stage {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .tour-app {
    padding-top: 1rem;
    padding-bottom: 1.8rem;
  }

  .tour-title {
    font-size: 1.72rem;
  }

  .tour-header {
    gap: 0.62rem;
  }

  .tour-meta-strip,
  .tour-actions {
    gap: 0.55rem;
  }

  .tour-meta-pill {
    min-height: 1.8rem;
    padding: 0.28rem 0.66rem;
    font-size: 0.76rem;
  }

  .tour-link-button {
    width: 100%;
  }

  .tour-lead,
  .pano-tour-copy p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .pano-tour-card {
    border-radius: 24px;
  }

  .pano-tour-overview {
    gap: 1rem;
    padding: 1.05rem 1rem 0.95rem;
  }

  .pano-tour-guidance {
    padding: 0.86rem 0.9rem;
    font-size: 0.89rem;
  }

  .pano-tour-stage {
    aspect-ratio: 5 / 4;
    min-height: 340px;
  }

  .pano-tour-hud {
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    gap: 0.45rem;
  }

  .pano-tour-badge {
    min-height: 1.8rem;
    padding: 0.32rem 0.6rem;
    font-size: 0.84rem;
  }

  .pano-tour-stage-actions {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    align-items: stretch;
    width: auto;
    max-width: none;
  }

  .pano-tour-like-button,
  .pano-tour-reset {
    padding: 0.66rem 0.9rem;
    font-size: 0.86rem;
  }

  .pano-tour-reset {
    width: 100%;
  }

  .pano-tour-map {
    padding: 0.75rem;
  }

  .pano-tour-map-header {
    flex-direction: column;
    gap: 0.28rem;
  }

  .pano-tour-map-title {
    font-size: 0.7rem;
  }

  .pano-tour-map-subtitle {
    font-size: 0.58rem;
    text-align: left;
  }

  .pano-tour-map-marker-dot {
    width: 0.76rem;
    height: 0.76rem;
  }

  .pano-tour-map-marker-id {
    font-size: 0.5rem;
  }

  .pano-tour-hotspot-button {
    width: 3.2rem;
    height: 3.2rem;
  }

  .pano-tour-hotspot-ring {
    transform: translate(-50%, -50%) scale(0.92);
  }

  .tour-paper-card,
  .tour-citation-card {
    padding: 1rem 1rem 0.98rem;
    border-radius: 20px;
  }

  .tour-paper-card-title {
    font-size: 1.16rem;
  }

  .tour-paper-card-actions {
    gap: 0.65rem;
  }

  .tour-citation-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .tour-citation-block {
    padding: 0.88rem 0.88rem 0.84rem;
    font-size: 0.8rem;
  }

  .tour-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.9rem;
  }

  .tour-footer-copy {
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  .tour-app {
    padding-inline: 0.7rem;
  }

  .tour-title {
    font-size: 1.56rem;
    line-height: 1.08;
  }

  .tour-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .tour-meta-pill {
    width: 100%;
    justify-content: center;
  }

  .tour-link-button {
    min-height: 2.7rem;
    padding: 0.72rem 0.95rem;
    font-size: 0.9rem;
  }

  .pano-tour-stage {
    aspect-ratio: 1 / 1.08;
    min-height: 380px;
  }

  .pano-tour-hud {
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .pano-tour-badge {
    font-size: 0.8rem;
  }

  .pano-tour-stage-actions {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .pano-tour-reset {
    font-size: 0.82rem;
  }

  .pano-tour-tooltip {
    font-size: 0.8rem;
    white-space: normal;
    max-width: min(16rem, calc(100vw - 2rem));
    text-align: center;
  }
}
