/* First-run guide overlay. Paired with static/guide.js. */

.sbx-guide { position: fixed; inset: 0; z-index: 9998; display: none; }
.sbx-guide.on { display: block; }

.sbx-guide-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 4, 6, 0.62);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

/* Spotlight ring around the anchored element. */
.sbx-guide-spot {
  position: absolute; border-radius: 12px;
  box-shadow: 0 0 0 3px var(--gold, #c9a227), 0 0 0 9999px rgba(8, 4, 6, 0.62);
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
  pointer-events: none;
}
.sbx-guide-spot[hidden] { display: none; }

.sbx-guide-card {
  position: absolute;
  width: min(340px, calc(100vw - 32px));
  background: var(--panel, #1d1216);
  color: var(--ink, #f7efe8);
  border: 1px solid var(--line, #3a242c);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.sbx-guide-x {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0; color: var(--muted, #b9a39a);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.sbx-guide-x:hover { color: var(--ink, #f7efe8); }

.sbx-guide-step {
  margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold, #c9a227);
}
.sbx-guide-title { margin: 0 0 8px; font-size: 1.1rem; }
.sbx-guide-body { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; color: var(--ink, #f7efe8); }
.sbx-guide-body b { color: var(--gold, #c9a227); font-weight: 700; }

.sbx-guide-nav { display: flex; align-items: center; gap: 10px; }
.sbx-guide-nav button {
  border-radius: 999px; border: 1px solid var(--line, #3a242c);
  background: transparent; color: var(--ink, #f7efe8);
  font: inherit; font-size: 0.85rem; padding: 7px 16px; cursor: pointer;
}
.sbx-guide-next {
  background: var(--wine, #8b2e4a) !important;
  border-color: var(--wine, #8b2e4a) !important;
  color: #fff !important;
}
.sbx-guide-nav button:hover { filter: brightness(1.08); }

.sbx-guide-dots { display: flex; gap: 6px; margin: 0 auto; }
.sbx-guide-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line, #3a242c); }
.sbx-guide-dot.on { background: var(--gold, #c9a227); }

/* Floating replay button. */
.sbx-guide-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 45;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--wine, #8b2e4a); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.sbx-guide-fab:hover { filter: brightness(1.1); }

/* On phones the diary shows a bottom save bar; lift the button clear of it. */
@media (max-width: 700px) {
  .sbx-guide-fab { bottom: 88px; }
}
