/* HPACE 3D Tour — overlay, loader, HUD, legend */

.hp-top__tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hp-accent) 45%, var(--hp-line));
  background: color-mix(in srgb, var(--hp-accent) 10%, transparent);
  color: var(--hp-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--hp-ease, ease), border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hp-top__tour-btn:hover {
  transform: translateY(-1px);
  border-color: var(--hp-accent);
  background: color-mix(in srgb, var(--hp-accent) 18%, transparent);
  color: var(--hp-accent);
}

.hp-top__tour-btn-icon {
  display: inline-flex;
  color: var(--hp-accent);
}

@media (max-width: 1180px) {
  .hp-top__tour-btn-label {
    display: none;
  }

  .hp-top__tour-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .hp-top__tour-btn {
    display: none;
  }
}

.hp-drawer__tour {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hp-line);
  cursor: pointer;
}

.hp-drawer__tour-icon {
  color: var(--hp-accent);
}

.hp-3d-tour {
  --hp3d-bg: #03060c;
  --hp3d-ink: #eef4ff;
  --hp3d-muted: rgba(190, 210, 235, 0.72);
  --hp3d-accent: #0094ff;
  --hp3d-cyan: #22d3ee;
  --hp3d-teal: #14b8a6;
  --hp3d-amber: #f59e0b;
  --hp3d-sky: #38bdf8;
  --hp3d-glow: rgba(0, 148, 255, 0.45);
  --hp3d-card-accent: #0094ff;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--hp3d-bg);
  color: var(--hp3d-ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--hp-ease, ease), visibility 0.35s ease;
}

.hp-3d-tour.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.hp-3d-tour-active,
html.hp-3d-tour-active body {
  overflow: hidden;
}

.hp-3d-tour__canvas-wrap {
  position: absolute;
  inset: 0;
}

.hp-3d-tour__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-3d-tour__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hp-3d-tour__ui > * {
  pointer-events: auto;
}

.hp-3d-tour__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 24, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hp-3d-tour__close:hover {
  border-color: var(--hp3d-accent);
  background: rgba(0, 148, 255, 0.16);
  transform: translateY(-1px);
}

.hp-3d-tour__brand {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.hp-3d-tour__brand-mark {
  font-family: var(--hp-display, 'Unbounded', sans-serif);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--hp3d-accent);
  text-shadow: 0 0 24px var(--hp3d-glow);
}

.hp-3d-tour__brand-sub {
  font-size: 12px;
  color: var(--hp3d-muted);
}

.hp-3d-tour__tools {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(72px, calc(env(safe-area-inset-right) + 64px));
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(560px, calc(100% - 160px));
}

.hp-3d-tour__route-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hp-3d-tour__route-btn:hover,
.hp-3d-tour__route-btn.is-active {
  border-color: var(--hp3d-amber);
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.hp-3d-tour__mission {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  top: max(88px, calc(env(safe-area-inset-top) + 72px));
  width: min(240px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(10, 14, 24, 0.82);
  backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 4;
}

.hp-3d-tour__mission-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fde68a;
}

.hp-3d-tour__mission-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  color: #f8fafc;
  line-height: 1.25;
}

.hp-3d-tour__mission-progress {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hp3d-amber);
  font-variant-numeric: tabular-nums;
}

.hp-3d-tour__mission-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.hp-3d-tour__mission-steps li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: rgba(220, 232, 248, 0.55);
  line-height: 1.3;
}

.hp-3d-tour__mission-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hp-3d-tour__mission-steps li.is-current {
  color: #f8fafc;
}

.hp-3d-tour__mission-steps li.is-current::before {
  background: var(--hp3d-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.hp-3d-tour__mission-steps li.is-done {
  color: rgba(180, 210, 180, 0.85);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.hp-3d-tour__mission-steps li.is-done::before {
  background: #34d399;
}

.hp-3d-tour__finale {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(420px, calc(100% - 32px));
  padding: 28px 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(245, 158, 11, 0.18), transparent 55%),
    rgba(6, 10, 18, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hp-3d-tour__finale.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hp-3d-tour__finale-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
}

.hp-3d-tour__finale-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  color: #f8fafc;
}

.hp-3d-tour__finale-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(220, 232, 248, 0.88);
}

.hp-3d-tour__finale-route {
  margin: 0 0 18px;
  font-size: 12px;
  color: rgba(180, 200, 220, 0.7);
}

.hp-3d-tour__finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-3d-tour__finale-actions .hp-3d-tour__card-dismiss {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.hp-3d-tour__legend {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(220px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.hp-3d-tour__legend-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp3d-muted);
}

.hp-3d-tour__legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.hp-3d-tour__legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(220, 232, 248, 0.88);
}

.hp-3d-tour__swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

.hp-3d-tour__swatch--blue { color: var(--hp3d-accent); background: var(--hp3d-accent); }
.hp-3d-tour__swatch--cyan { color: var(--hp3d-cyan); background: var(--hp3d-cyan); }
.hp-3d-tour__swatch--teal { color: var(--hp3d-teal); background: var(--hp3d-teal); }
.hp-3d-tour__swatch--amber { color: var(--hp3d-amber); background: var(--hp3d-amber); }
.hp-3d-tour__swatch--sky { color: var(--hp3d-sky); background: var(--hp3d-sky); }

.hp-3d-tour__hint {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.7);
  color: var(--hp3d-muted);
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hp-3d-tour__hint.is-faded {
  opacity: 0;
}

.hp-3d-tour__mobile-note {
  position: absolute;
  top: max(72px, calc(env(safe-area-inset-top) + 56px));
  left: 50%;
  transform: translateX(-50%);
  display: none;
  max-width: min(340px, calc(100% - 32px));
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 148, 255, 0.28);
  background: rgba(0, 40, 80, 0.35);
  color: var(--hp3d-muted);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hp-3d-tour__mobile-note {
    display: block;
  }

  .hp-3d-tour__legend {
    display: none;
  }

  .hp-3d-tour__tools {
    right: max(64px, calc(env(safe-area-inset-right) + 56px));
  }

  .hp-3d-tour__route-btn {
    font-size: 11px;
    padding: 0 10px;
    min-height: 36px;
  }

  .hp-3d-tour__hint {
    bottom: max(16px, env(safe-area-inset-bottom));
    font-size: 12px;
  }
}

.hp-3d-tour__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 55% 45% at 35% 35%, rgba(0, 100, 180, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 70% 55%, rgba(20, 184, 166, 0.14), transparent 65%),
    var(--hp3d-bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hp-3d-tour__loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hp-3d-tour__loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 24px;
}

.hp-3d-tour__orb {
  position: relative;
  width: 88px;
  height: 88px;
}

.hp-3d-tour__orb-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7ec8ff, var(--hp3d-accent) 45%, #003866 80%);
  box-shadow:
    0 0 28px var(--hp3d-glow),
    0 0 56px rgba(0, 148, 255, 0.25);
  animation: hp3d-pulse 1.6s ease-in-out infinite;
}

.hp-3d-tour__orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--hp3d-accent);
  border-right-color: rgba(0, 148, 255, 0.25);
  animation: hp3d-spin 1.1s linear infinite;
}

.hp-3d-tour__orb-ring--slow {
  inset: 8px;
  border-top-color: rgba(126, 200, 255, 0.8);
  border-right-color: transparent;
  animation-duration: 1.8s;
  animation-direction: reverse;
}

.hp-3d-tour__loader-title {
  font-family: var(--hp-display, 'Unbounded', sans-serif);
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
}

.hp-3d-tour__loader-sub {
  margin: 0;
  color: var(--hp3d-muted);
  font-size: 14px;
}

.hp-3d-tour__bar {
  width: min(220px, 60vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hp-3d-tour__bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--hp3d-accent), var(--hp3d-cyan), #7ec8ff);
  animation: hp3d-bar 1.2s ease-in-out infinite;
}

.hp-3d-tour__card {
  position: absolute;
  z-index: 4;
  right: max(20px, env(safe-area-inset-right));
  top: 50%;
  left: auto;
  bottom: auto;
  width: min(400px, calc(100% - 40px));
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 0;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--hp3d-card-accent) 40%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--hp3d-card-accent) 18%, transparent), transparent 55%),
    rgba(6, 12, 22, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px color-mix(in srgb, var(--hp3d-card-accent) 18%, transparent);
  backdrop-filter: blur(16px);
  transform: translate(16px, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--hp-ease, ease);
}

.hp-3d-tour__card.is-open {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.hp-3d-tour__card-media {
  height: 160px;
  background: #0a1422 center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-3d-tour__card-kicker,
.hp-3d-tour__card-title,
.hp-3d-tour__card-text,
.hp-3d-tour__card-meta,
.hp-3d-tour__card-actions {
  padding-left: 22px;
  padding-right: 22px;
}

.hp-3d-tour__card-kicker {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp3d-card-accent);
}

.hp-3d-tour__card-title {
  margin: 0 0 8px;
  font-family: var(--hp-display, 'Unbounded', sans-serif);
  font-size: 20px;
  font-weight: 400;
}

.hp-3d-tour__card-text {
  margin: 0 0 12px;
  color: var(--hp3d-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hp-3d-tour__card-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(220, 232, 248, 0.9);
}

.hp-3d-tour__card-meta--stack {
  color: var(--hp3d-muted);
  margin-bottom: 14px;
}

.hp-3d-tour__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  padding-top: 4px;
}

.hp-3d-tour__card-link,
.hp-3d-tour__card-enter,
.hp-3d-tour__card-discuss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--hp3d-card-accent);
  color: #041018;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.hp-3d-tour__card-link:hover,
.hp-3d-tour__card-enter:hover,
.hp-3d-tour__card-discuss:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #041018;
}

.hp-3d-tour__card-discuss {
  background: transparent;
  color: var(--hp3d-ink);
  border: 1px solid color-mix(in srgb, var(--hp3d-card-accent) 55%, transparent);
}

.hp-3d-tour__card-fav,
.hp-3d-tour__card-dismiss {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--hp3d-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hp-3d-tour__card-fav:hover,
.hp-3d-tour__card-dismiss:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.hp-3d-tour__nav {
  position: absolute;
  top: max(72px, calc(env(safe-area-inset-top) + 56px));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(480px, calc(100% - 48px));
  pointer-events: auto;
}

.hp-3d-tour__back {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 24, 0.7);
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hp-3d-tour__crumb {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--hp3d-muted);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hp-3d-tour__mode {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.55);
}

.hp-3d-tour__chip {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.55);
  color: var(--hp3d-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hp-3d-tour__chip.is-active,
.hp-3d-tour__chip:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--hp3d-accent) 50%, transparent);
  background: color-mix(in srgb, var(--hp3d-accent) 18%, transparent);
}

.hp-3d-tour__minimap-wrap {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 140px;
  pointer-events: none;
}

.hp-3d-tour__minimap {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 20, 0.7);
}

.hp-3d-tour__minimap-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp3d-muted);
  text-align: center;
}

.hp-3d-tour__tip {
  max-width: 200px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 12, 24, 0.88);
  color: rgba(220, 232, 248, 0.92);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -130%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hp-3d-tour.is-mood-neon {
  --hp3d-accent: #ff2bd6;
  --hp3d-cyan: #22d3ee;
  --hp3d-glow: rgba(255, 43, 214, 0.45);
}

.hp-3d-tour.is-mood-neon .hp-3d-tour__brand-mark {
  color: #ff7aec;
  text-shadow: 0 0 24px rgba(255, 43, 214, 0.55);
}

@media (max-width: 768px) {
  .hp-3d-tour__card {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-height: 52vh;
    transform: translateY(16px);
  }

  .hp-3d-tour__card.is-open {
    transform: translateY(0);
  }

  .hp-3d-tour__card-media {
    height: 120px;
  }

  .hp-3d-tour__minimap-wrap,
  .hp-3d-tour__legend {
    display: none;
  }

  .hp-3d-tour__mission {
    top: max(64px, calc(env(safe-area-inset-top) + 52px));
    width: min(180px, calc(100% - 28px));
    padding: 10px 12px;
  }

  .hp-3d-tour__mission-steps {
    display: none;
  }

  .hp-3d-tour__finale {
    width: min(100% - 24px, 420px);
    padding: 22px 18px 16px;
  }

  .hp-3d-tour__tools {
    top: max(16px, env(safe-area-inset-top));
    right: max(64px, calc(env(safe-area-inset-right) + 56px));
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 120px);
  }

  .hp-3d-tour__nav {
    top: max(108px, calc(env(safe-area-inset-top) + 92px));
    max-width: calc(100% - 32px);
  }

  .hp-3d-tour__mode {
    display: none;
  }
}

.hp-3d-tour__label {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 148, 255, 0.35);
  background: rgba(4, 12, 24, 0.78);
  color: #dff0ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(0, 148, 255, 0.2);
  pointer-events: none;
  user-select: none;
  /* transform только через CSS2DRenderer (inline) — не фиксировать в CSS */
  opacity: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hp-3d-tour__label--hub {
  border-color: rgba(0, 148, 255, 0.55);
  letter-spacing: 0.18em;
  font-family: var(--hp-display, 'Unbounded', sans-serif);
}

.hp-3d-tour__label--cyan {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

.hp-3d-tour__label--teal {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.22);
}

.hp-3d-tour__label--amber {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
  color: #fff8e8;
}

.hp-3d-tour__label--sky {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.hp-3d-tour__label--ice {
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.2);
}

.hp-3d-tour__label.is-hot {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 28px rgba(0, 148, 255, 0.45);
  color: #fff;
}

.hp-3d-tour__constellation {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(4, 12, 24, 0.45);
  color: rgba(186, 230, 253, 0.75);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

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

@keyframes hp3d-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

@keyframes hp3d-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-3d-tour__orb-core,
  .hp-3d-tour__orb-ring,
  .hp-3d-tour__orb-ring--slow,
  .hp-3d-tour__bar-fill {
    animation: none;
  }
}

/* ——— Wow features: live build / before-after / contract ——— */

.hp-3d-tour__card-ba {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hp-3d-tour__card-ba:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
}

.hp-3d-tour__wow-hud {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 4;
  width: min(320px, calc(100% - 40px));
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 22, 0.88);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.hp-3d-tour__wow-hud-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp3d-muted);
}

.hp-3d-tour__wow-hud-title {
  margin: 0 0 6px;
  font-family: var(--hp-display, 'Unbounded', sans-serif);
  font-size: 16px;
  color: #eef4ff;
}

.hp-3d-tour__wow-hud-stage {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(190, 220, 245, 0.8);
}

.hp-3d-tour__wow-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--hp3d-muted);
}

.hp-3d-tour__wow-field input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 10, 18, 0.75);
  color: #eef4ff;
  font: inherit;
  font-size: 14px;
}

.hp-3d-tour__wow-field input[type="range"] {
  width: 100%;
  accent-color: var(--hp3d-cyan);
}

.hp-3d-tour__wow-hud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-3d-tour__contract-cta {
  z-index: 6;
}

.hp-3d-tour__wow-label {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 148, 255, 0.4);
  background: rgba(4, 12, 24, 0.82);
  color: #e8f4ff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0, 148, 255, 0.2);
}

.hp-3d-tour__wow-label--brand {
  font-family: var(--hp-display, 'Unbounded', sans-serif);
  letter-spacing: 0.08em;
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.hp-3d-tour__wow-chip {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 200, 255, 0.35);
  background: rgba(6, 14, 26, 0.72);
  color: rgba(210, 230, 255, 0.9);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.hp-3d-tour__wow-chip--cyan {
  border-color: rgba(34, 211, 238, 0.5);
  color: #a5f3fc;
}

.hp-3d-tour.is-lite .hp-3d-tour__wow-label,
.hp-3d-tour.is-lite .hp-3d-tour__wow-chip {
  box-shadow: none;
}

@media (max-width: 768px) {
  .hp-3d-tour__tools {
    max-width: calc(100% - 100px);
  }

  .hp-3d-tour__wow-hud {
    width: min(100% - 24px, 340px);
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .hp-3d-tour__chip[data-tour-share],
  .hp-3d-tour__chip[data-tour-mood] {
    display: none;
  }
}
