/* =========================================================================
   The Kintsugi Mender — Interactive guide (coach marks) + help button
   ========================================================================= */
.gd-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
}

.gd-overlay.is-open {
  display: block;
}

/* The lit area: a hole in a dark veil, drawn with a huge box-shadow */
.gd-spot {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(12, 10, 8, 0.62);
  outline: 3px solid #e9b54a;
  outline-offset: 0;
  pointer-events: none;
  transition: top 220ms ease, left 220ms ease, width 220ms ease, height 220ms ease;
}

.gd-card {
  position: fixed;
  box-sizing: border-box;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: #fbf6ec;
  color: #241b14;
  border: 2px solid #e9b54a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: gdIn 260ms ease-out both;
}

@keyframes gdIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.gd-count {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a4f0c;
}

.gd-title {
  margin: 4px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: #241b14;
}

.gd-text {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: #241b14;
}

.gd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gd-spacer {
  flex: 1 1 auto;
}

.gd-skip {
  min-height: var(--tap-min);
  padding: 6px 4px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #5c4a3a;
  text-decoration: underline;
  cursor: pointer;
}

.gd-card .btn-secondary {
  color: #241b14;
  background: #ede4d5;
}

/* Floating help button */
.gd-help {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 650;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--surface);
  color: var(--accent-gold-ink);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.gd-help:hover,
.gd-help:focus-visible {
  background: var(--accent-gold);
  color: var(--btn-primary-ink);
}

@media print {
  .gd-help,
  .gd-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-card { animation: none; }
  .gd-spot { transition: none; }
}
