/* Shared intro review wizard — light-balkon landings */
#introModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#introModal[hidden] { display: none !important; }
#introModal .intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.62);
  backdrop-filter: blur(6px);
}
#introModal .intro-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  padding: 1.75rem 1.5rem 1.5rem;
  max-height: min(90vh, 40rem);
  overflow-y: auto;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: #1f2937;
}
@media (min-width: 640px) {
  #introModal .intro-card { padding: 2rem 2rem 1.75rem; }
}
#introModal .intro-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}
#introModal .intro-close:hover { color: #1f2937; background: #f3f4f6; }
.intro-step { display: none; }
.intro-step.is-active { display: block; }
.intro-step.is-active .intro-title,
.intro-step.is-active .intro-kicker { padding-right: 2.5rem; }
.intro-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #50ba87;
  margin-bottom: 0.75rem;
}
.intro-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
  margin: 0 0 0.875rem;
}
.intro-body { font-size: 0.95rem; line-height: 1.55; color: #374151; }
.intro-body p { margin: 0; }
.intro-body p + p { margin-top: 0.75rem; }
.intro-body strong { color: #1f2937; font-weight: 600; }
.intro-list { margin: 0.875rem 0 0; padding-left: 1.15rem; }
.intro-list li { margin-top: 0.35rem; }
.intro-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.45;
}
.intro-warn {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.45;
}
.intro-dots { display: flex; gap: 0.4rem; justify-content: center; margin: 1.25rem 0 1rem; }
.intro-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: #d1d5db; border: 0; padding: 0; cursor: pointer;
}
.intro-dot.is-active { background: #50ba87; width: 1.25rem; }
.intro-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: space-between; align-items: center;
}
.intro-actions-right { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.intro-btn {
  min-height: 2.75rem; padding: 0.625rem 1.15rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.intro-btn-primary { background: #50ba87; color: #fff; border: 0; }
.intro-btn-primary:hover { background: #3d9a6d; }
.intro-btn-ghost { background: transparent; color: #6b7280; border: 1px solid #e5e7eb; }
.intro-btn-ghost:hover { background: #f9fafb; color: #1f2937; }
.intro-btn-download {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #1f2937; color: #fff; border: 0; text-decoration: none;
  min-height: 2.75rem; padding: 0.625rem 1.15rem; border-radius: 0.75rem; font-weight: 600;
}
.intro-btn-download:hover { background: #111827; color: #fff; }

#introSpotlight { position: fixed; inset: 0; z-index: 10001; }
#introSpotlight[hidden] { display: none !important; }
#introSpotlight .intro-spot-hole {
  position: absolute; left: 0.35rem; bottom: 0.35rem;
  width: 6.5rem; height: 6.5rem; border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(15, 15, 15, 0.55);
  border: 3px solid #50ba87; pointer-events: none;
  animation: intro-spot-pulse 1.6s ease-in-out infinite;
}
@media (min-width: 1024px) {
  #introSpotlight .intro-spot-hole {
    left: 0.5rem; bottom: 0.5rem; width: 7.5rem; height: 7.5rem;
  }
}
@keyframes intro-spot-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(15,15,15,.55), 0 0 0 0 rgba(80,186,135,.45); }
  50% { box-shadow: 0 0 0 9999px rgba(15,15,15,.55), 0 0 0 12px rgba(80,186,135,0); }
}
#introSpotlight .intro-spot-arrow {
  position: absolute; left: 6.5rem; bottom: 5.5rem;
  width: min(220px, 42vw); height: min(160px, 28vh);
  color: #50ba87; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); pointer-events: none;
}
@media (min-width: 1024px) {
  #introSpotlight .intro-spot-arrow {
    left: 7.75rem; bottom: 6.5rem; width: 260px; height: 180px;
  }
}
#introSpotlight .intro-spot-label {
  position: absolute; left: max(1rem, min(42vw, 14rem)); bottom: max(9rem, 28vh);
  background: #fff; color: #1f2937; padding: 0.85rem 1.15rem; border-radius: 1rem;
  font-size: 1.15rem; font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border: 2px solid #50ba87; max-width: 14rem; line-height: 1.3;
}
#introSpotlight .intro-spot-label span {
  display: block; margin-top: 0.25rem; font-size: 0.8rem; font-weight: 500; color: #6b7280;
}
#introSpotlight .intro-spot-ok {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.5rem;
  min-height: 2.75rem; padding: 0.7rem 1.5rem; border-radius: 0.75rem;
  font-weight: 600; background: #50ba87; color: #fff; border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer;
}
#introSpotlight .intro-spot-ok:hover { background: #3d9a6d; }
body.intro-spotlight-on #debugBlockBadge { z-index: 10002; pointer-events: none; }

#debugBlockBadge {
  position: fixed; bottom: 1rem; left: 1rem; z-index: 9999;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: rgba(21, 21, 21, 0.88); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.28); border: 3px solid #50ba87;
  pointer-events: none; line-height: 1; user-select: none;
}
#debugBlockBadge .debug-block-num { font-size: 1.75rem; font-weight: 700; }
#debugBlockBadge .debug-block-id {
  margin-top: 0.2rem; font-size: 0.55rem; font-weight: 600;
  color: rgba(255,255,255,.65); max-width: 3.6rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
@media (min-width: 1024px) {
  #debugBlockBadge {
    bottom: 1.25rem; left: 1.25rem; width: 5.5rem; height: 5.5rem;
  }
  #debugBlockBadge .debug-block-num { font-size: 2.25rem; }
  #debugBlockBadge .debug-block-id { font-size: 0.625rem; max-width: 4.5rem; }
}
