.portal-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.portal-tour-spotlight {
  position: fixed;
  z-index: 2001;
  border: 2px solid rgba(147, 197, 253, 0.95);
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.68),
    0 0 28px rgba(96, 165, 250, 0.38);
  background: rgba(96, 165, 250, 0.08);
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
  pointer-events: none;
}

.portal-tour-card {
  position: fixed;
  z-index: 2004;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 10px;
  background: #0b1626;
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  padding: 18px;
  pointer-events: auto;
  animation: portalTourCardIn 180ms ease-out both;
}

.portal-tour-card-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 90px;
  margin-bottom: 10px;
}

.portal-tour-guide {
  display: block;
  width: 78px;
  height: 90px;
  object-fit: contain;
}

.portal-tour-eyebrow {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-tour-title {
  margin-top: 2px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.portal-tour-copy {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.portal-tour-click-hint {
  min-height: 18px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.portal-tour-step {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.portal-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-tour-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-tour-confirm-check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 16px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.portal-tour-confirm-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #2563eb;
}

.portal-tour-button {
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  color: #cbd5e1;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.portal-tour-button.primary {
  border-color: rgba(37, 99, 235, 0.76);
  background: #2563eb;
  color: #ffffff;
}

.portal-tour-button:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.32);
}

.portal-tour-button.primary:hover {
  background: #1d4ed8;
}

.portal-tour-button:disabled,
.portal-tour-button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.52;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
}

.portal-tour-clickable-target {
  position: relative;
  z-index: 2003 !important;
  outline: 2px solid rgba(147, 197, 253, 0.98);
  outline-offset: 2px;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.34);
}

@keyframes portalTourCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .portal-tour-card {
    left: 16px !important;
    right: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-tour-spotlight,
  .portal-tour-card {
    animation: none;
    transition: none;
  }
}
