/* The guide: the screen dims, one part of it stays lit, and a card says what it's for.
   Its entry in the nav (#open-guide) is an ordinary nav item, styled by shell.css. */
.guide { position: fixed; inset: 0; z-index: 90; }
.guide[hidden] { display: none; }
.guide-shield { position: absolute; inset: 0; }

.guide-spot {
  position: fixed;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 2px var(--violet-ink), 0 0 0 200vmax rgba(4, 6, 11, 0.74);
  pointer-events: none;
  transition: left var(--slow) var(--ease), top var(--slow) var(--ease), width var(--slow) var(--ease), height var(--slow) var(--ease);
}
/* A step about the whole app dims the screen evenly */
.guide-spot.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 200vmax rgba(4, 6, 11, 0.74); }

.guide-card {
  position: fixed;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 20px 20px 16px;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sheen), var(--sheet-lift);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: left var(--slow) var(--ease), top var(--slow) var(--ease);
}
.guide-count { margin: 0 0 8px; color: var(--faint); font-size: 0.78rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.guide-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 640; letter-spacing: -0.015em; line-height: 1.25; }
.guide-text { margin: 0 0 18px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); font-size: 0.92rem; line-height: 1.55; }

.guide-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.guide-actions button[hidden] { display: none; }
.guide-skip { margin-right: auto; color: var(--muted); background: transparent; border-color: transparent; }
.guide-skip:hover:not(:disabled) { color: var(--text); }
/* Progress runs as its own line above the buttons, so the buttons never crowd out */
.guide-dots { display: flex; flex-wrap: wrap; order: -1; flex-basis: 100%; gap: 5px; margin: -4px 0 8px; }
.guide-dots i { width: 6px; height: 6px; background: var(--edge-strong); border-radius: 50%; transition: background var(--fast), width var(--med) var(--ease); }
.guide-dots i.on { width: 16px; background: var(--violet); border-radius: 3px; }

@media (max-width: 480px) {
  .guide-card { padding: 18px 16px 14px; }
  .guide-dots { display: none; }
  .guide-text { font-size: 0.9rem; }
  .guide-actions .small { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-spot, .guide-card, .guide-dots i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .guide-card { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
