.guide-btn { cursor: pointer; }
.guide-btn[hidden] { display: none !important; }

.guide-root {
  --g-card-bg: #ffffff;
  --g-card-fg: #172033;
  --g-card-muted: #5b6579;
  --g-card-border: rgba(20, 30, 50, .14);
  --g-accent: #2563eb;
  --g-accent-fg: #ffffff;
  --g-btn-bg: #eef1f6;
  --g-btn-fg: #172033;
  --g-ring: rgba(96, 165, 250, .95);
  position: fixed; inset: 0; z-index: 2147483000; font-family: inherit;
}
@media (prefers-color-scheme: dark) {
  .guide-root {
    --g-card-bg: #1b2333;
    --g-card-fg: #eef2fa;
    --g-card-muted: #9aa6bd;
    --g-card-border: rgba(255, 255, 255, .16);
    --g-accent: #3b82f6;
    --g-btn-bg: #2a3448;
    --g-btn-fg: #eef2fa;
  }
}
.guide-root[hidden] { display: none; }
.guide-blocker { position: fixed; inset: 0; background: transparent; cursor: default; }
.guide-spot {
  position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 14, 24, .68), 0 0 0 3px var(--g-ring);
  transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease, opacity .2s ease;
}
.guide-spot.is-none { opacity: 0; }
.guide-card {
  position: fixed; box-sizing: border-box; width: 340px; max-width: calc(100vw - 32px);
  background: var(--g-card-bg); color: var(--g-card-fg);
  border: 1px solid var(--g-card-border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); padding: 16px 16px 14px;
  font-size: 14px; line-height: 1.45; transition: top .3s ease, left .3s ease;
}
.guide-card--demo { width: 560px; max-width: calc(100vw - 32px); }
.guide-demo {
  display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain;
  border-radius: 10px; margin: 2px 0 10px; background: #0b1220; border: 1px solid var(--g-card-border);
}
.guide-demo[hidden] { display: none; }
.guide-title { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.guide-text { margin: 0 0 12px; color: var(--g-card-fg); }
.guide-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guide-step { font-size: 12px; color: var(--g-card-muted); margin-right: auto; }
.guide-card button {
  font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--g-card-border); background: var(--g-btn-bg); color: var(--g-btn-fg);
}
.guide-card button:disabled { opacity: .45; cursor: default; }
.guide-card .guide-next { background: var(--g-accent); color: var(--g-accent-fg); border-color: transparent; font-weight: 600; }
.guide-card .guide-close { background: transparent; border-color: transparent; color: var(--g-card-muted); padding: 7px 6px; }
.guide-card .guide-close:hover { color: var(--g-card-fg); }
@media (max-width: 699px) {
  .guide-card { left: 16px !important; right: 16px; top: auto !important; bottom: 16px; width: auto; max-width: none; transition: none; }
  .guide-card.guide-card--demo { width: auto; max-width: none; }
  .guide-demo { max-height: 34vh; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-spot, .guide-card { transition: none; }
}
