.wt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wt-overlay.active {
  pointer-events: auto;
}

.wt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9001;
  transition: opacity 0.3s ease;
}

/* Spotlight cutout via box-shadow on a positioned element */
.wt-spotlight {
  position: fixed;
  z-index: 9002;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.wt-spotlight.round {
  border-radius: 50%;
}

.wt-spotlight::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--accent-cyan);
  opacity: 0.6;
  animation: wt-pulse-ring 2s ease-in-out infinite;
}

@keyframes wt-pulse-ring {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.02); }
}

/* Tooltip card */
.wt-card {
  position: fixed;
  z-index: 9010;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: rgba(12, 12, 22, 0.96);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 20px 22px 16px;
  box-shadow:
    0 0 30px rgba(0, 255, 242, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(8px);
}

.wt-card.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .wt-card {
  background: rgba(240, 240, 250, 0.97);
  box-shadow:
    0 0 30px rgba(0, 100, 120, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.15);
}

.wt-card-step {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-magenta);
  margin-bottom: 6px;
}

.wt-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  line-height: 1.3;
}

.wt-card-body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.wt-card-body kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  color: var(--accent-yellow);
  vertical-align: middle;
}

[data-theme="light"] .wt-card-body kbd {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.15);
}

.wt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wt-dots {
  display: flex;
  gap: 5px;
}

.wt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.wt-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.wt-dot.done {
  background: var(--accent-green);
}

.wt-card-buttons {
  display: flex;
  gap: 6px;
}

.wt-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.wt-btn:hover {
  background: rgba(0, 255, 242, 0.15);
  box-shadow: 0 0 12px rgba(0, 255, 242, 0.2);
}

.wt-btn.primary {
  background: rgba(0, 255, 242, 0.2);
}

.wt-btn.skip {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.wt-btn.skip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

/* Help button to re-trigger walkthrough */
#walkthroughBtn {
  font-size: 0.85rem;
  min-width: auto;
  padding: 0.4rem 0.7rem;
  line-height: 1;
}
