/* ── Setup Guide v2 — clean CSS, no SVG ── */

.guide-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(2,2,8,0.96);
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
  animation: _gFadeIn .25s ease;
}
@keyframes _gFadeIn { from { opacity: 0 } }

/* ── Top bar ── */
.g-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.g-close {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: none;
  color: rgba(255,255,255,0.5); font-size: 18px;
  cursor: pointer; display: grid; place-items: center;
  transition: all .15s;
}
.g-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.g-topbar-center { flex: 1; min-width: 0; }
.g-phase {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  display: block; margin-bottom: 4px;
}
.g-progress {
  height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.g-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width .4s ease;
}
.g-counter {
  color: rgba(255,255,255,0.35); font-size: 12px;
  font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Body: image left, text right on desktop; stacked on mobile ── */
.g-body {
  flex: 1; display: flex; overflow: hidden;
  padding: 16px;
  gap: 20px;
  min-height: 0;
}

/* ── Image wrapper ── */
.g-img-wrap {
  flex: 1; min-width: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.g-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* Spots layer — fills image natural bounds */
.g-spots {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* ── Spot: numbered circle with pulse ring ── */
.g-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  animation: _gSpotIn .4s ease both;
}
@keyframes _gSpotIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.g-spot-ring {
  position: absolute; inset: -6px;
  border: 2px solid rgba(249,115,22,0.5);
  border-radius: 50%;
  animation: _gRing 2s ease-in-out infinite;
}
@keyframes _gRing {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.5); opacity: 0; }
}

.g-spot-num {
  position: relative; z-index: 1;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #f97316;
  border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(249,115,22,0.5);
}

/* Important variant — red, bigger */
.g-spot--imp .g-spot-num {
  background: #ef4444;
  width: 36px; height: 36px; font-size: 16px;
  box-shadow: 0 2px 14px rgba(239,68,68,0.6);
}
.g-spot--imp .g-spot-ring {
  border-color: rgba(239,68,68,0.5);
  inset: -8px;
}

/* ── Text panel ── */
.g-info {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}
.g-title {
  color: #fff; font-size: 22px; font-weight: 800;
  margin: 0 0 12px; line-height: 1.25;
}
.g-desc {
  color: rgba(255,255,255,0.6); font-size: 14px;
  line-height: 1.65; margin: 0 0 24px;
}
.g-desc strong { color: #fff; font-weight: 600; }
.g-desc em {
  font-style: normal; font-weight: 700;
  color: #f97316; font-size: 13px;
}

/* ── Nav buttons ── */
.g-nav { display: flex; gap: 10px; margin-top: auto; }
.g-btn {
  padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; border: none;
  cursor: pointer; transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.g-btn--sec {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}
.g-btn--sec:hover { background: rgba(255,255,255,0.12); color: #fff; }
.g-btn--pri {
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.g-btn--pri:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ── Keyboard hint ── */
.g-kbd {
  text-align: center; padding: 8px;
  color: rgba(255,255,255,0.2); font-size: 11px;
  flex-shrink: 0;
}
.g-kbd kbd {
  background: rgba(255,255,255,0.07);
  padding: 1px 5px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

/* ── Trigger button ── */
.guide-trigger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(239,68,68,0.08));
  border: 1px solid rgba(249,115,22,0.25);
  color: #f97316; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 10px;
  cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
}
.guide-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(239,68,68,0.12));
  transform: translateY(-1px);
}
.guide-trigger-btn .material-icons { font-size: 18px; }

/* ── Mobile: stack vertically ── */
@media (max-width: 860px) {
  .g-body { flex-direction: column; }
  .g-img-wrap { max-height: 50vh; }
  .g-info {
    width: 100%; padding: 0;
    text-align: center; align-items: center;
  }
  .g-title { font-size: 18px; }
  .g-desc { font-size: 13px; }
  .g-nav { justify-content: center; }
}
@media (max-width: 480px) {
  .g-body { padding: 10px; gap: 12px; }
  .g-img-wrap { max-height: 40vh; }
  .g-spot { width: 26px; height: 26px; }
  .g-spot-num { width: 26px; height: 26px; font-size: 12px; }
  .g-spot--imp .g-spot-num { width: 30px; height: 30px; font-size: 14px; }
}

/* ═══════════════════════════════════════ */
/* ═══ LIGHT MODE — SETUP GUIDE      ═══ */
/* ═══════════════════════════════════════ */

[data-theme="light"] .guide-overlay {
  background: rgba(255, 255, 255, 0.96) !important;
}

[data-theme="light"] .g-topbar {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .g-close {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .g-close:hover {
  color: rgba(26, 26, 46, 0.8) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .g-counter {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .g-img-wrap {
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .g-title {
  color: #1a1a2e !important;
}

[data-theme="light"] .g-desc {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .g-desc strong {
  color: #1a1a2e !important;
}

[data-theme="light"] .g-btn--sec {
  background: rgba(0, 0, 0, 0.04) !important;
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .g-btn--sec:hover {
  background: rgba(0, 0, 0, 0.07) !important;
  color: rgba(26, 26, 46, 0.8) !important;
}

[data-theme="light"] .g-kbd {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] .g-kbd kbd {
  background: rgba(0, 0, 0, 0.06) !important;
  color: rgba(26, 26, 46, 0.5) !important;
}
