/* ============================================================
   exam-tour.css — First-visit Tour
   ─────────────────────────────────────────
   PURPOSE : Spotlight + explanation card drawn by
             js/eye-simulator/tour/tour-engine.js. The dimming is
             visual only (pointer-events: none): the page stays usable.
   ============================================================ */

.tour {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.tour__spotlight {
  position: fixed;
  border-radius: 14px;
  outline: 2px solid var(--mark-catch);
  outline-offset: 2px;
  box-shadow: 0 0 0 100vmax rgba(10, 16, 15, 0.5);
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.tour__card {
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  pointer-events: auto;
  transition: left 0.25s ease, top 0.25s ease;
}

html[dir="rtl"] .tour__card {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Inter', system-ui, sans-serif;
}

.tour__progress {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

html[dir="rtl"] .tour__progress {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
}

.tour__title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.tour__text {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.tour__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.tour__spacer {
  flex: 1;
}

.tour__btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tour__btn[hidden] {
  display: none;
}

.tour__btn:hover {
  background: var(--surface-sunken);
}

.tour__btn--quiet {
  padding: 0 8px;
  border-color: transparent;
  color: var(--text-soft);
}

.tour__btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.tour__btn--primary:hover {
  background: var(--accent-strong);
}

.tour__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tour__spotlight,
  .tour__card {
    transition: none;
  }
}
