/* ==========================================================================
   TUTORIAL OVERLAY & SPOTLIGHT
   ========================================================================== */

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  pointer-events: auto;
}

.tutorial-overlay.hidden {
  display: none;
}

/*
  Removed the heavy blur and dark background.
  The spotlight's massive box-shadow handles the darkness now,
  keeping the highlighted area crystal clear.
*/
.tutorial-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.18);
  pointer-events: none;
}

.tutorial-spotlight {
  position: fixed;
  z-index: 999991;
  border-radius: 18px;
  pointer-events: none;
  background: transparent;

  /* The 9999px spread casts a shadow over the whole screen */
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.82),
    0 0 0 2px rgba(234, 179, 8, 0.95),
    0 0 22px rgba(234, 179, 8, 0.75),
    0 0 44px rgba(56, 189, 248, 0.32);

  transition:
    left 0.28s ease,
    top 0.28s ease,
    width 0.28s ease,
    height 0.28s ease,
    border-radius 0.28s ease;
}

/* ==========================================================================
   TUTORIAL CARD & CONTENT
   ========================================================================== */

.tutorial-card {
  position: fixed;
  z-index: 999992;
  width: min(340px, calc(100vw - 32px));
  padding: 18px;

  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 48%),
    rgba(15, 23, 42, 0.94);

  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 18px;

  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.22),
    inset 0 0 18px rgba(56, 189, 248, 0.05);

  transition:
    left 0.28s ease,
    top 0.28s ease,
    transform 0.28s ease;
}

.tutorial-kicker {
  margin-bottom: 8px;
  color: var(--accent-success);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
}

.tutorial-card h3 {
  margin: 0 0 8px;
  color: var(--accent-primary);
  font-size: 20px;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.42);
}

.tutorial-card p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

/* ==========================================================================
   TUTORIAL PROGRESS BAR
   ========================================================================== */

.tutorial-progress {
  margin-top: 16px;
}

#tutorialStepLabel {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.tutorial-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.tutorial-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.55);
  transition: width 0.25s ease;
}

/* ==========================================================================
   TUTORIAL CONTROLS
   ========================================================================== */

.tutorial-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.tutorial-actions button {
  min-height: 34px;
  margin: 0;
  color: var(--accent-secondary);
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.tutorial-actions button:hover {
  color: var(--bg-base);
  background: var(--accent-secondary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

#tutorialNextBtn {
  color: var(--accent-primary);
  border-color: rgba(234, 179, 8, 0.42);
}

#tutorialNextBtn:hover {
  color: var(--bg-base);
  background: var(--accent-primary);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.55);
}