/* Shadow Game — pair bridge + CBT ambient */
.shadow-bridge-overlay,
.shadow-age-gate {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 26, 0.92);
  backdrop-filter: blur(8px);
}
.shadow-bridge-overlay.hidden { display: none; }
.shadow-bridge-card,
.shadow-age-card {
  max-width: 22rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #1a1030, #0f0a1a);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #f5f3ff;
  text-align: center;
}
.shadow-bridge-pulse,
.shadow-cbt-ambient {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, #a78bfa 0%, #7c3aed 45%, transparent 70%);
  animation: shadow-pulse 2.4s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.shadow-cbt-pause {
  padding: 1rem;
  text-align: center;
  color: #ede9fe;
}
.shadow-cbt-btn,
.shadow-age-ok {
  margin-top: 1rem;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.shadow-cbt-btn:disabled { opacity: 0.45; }

.shadow-quest-panel {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 18, 0.94);
  padding: 1rem;
}
.shadow-quest-panel.hidden { display: none; }
.shadow-quest-inner {
  max-width: 26rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #1a1030, #0c0814);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #f5f3ff;
}
.shadow-quest-inner h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.shadow-quest-inner p { line-height: 1.5; opacity: 0.92; }
.shadow-quest-next,
.shadow-pact-accept,
.shadow-eval-submit,
.shadow-swap-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.shadow-swap-btn { background: #5b21b6; }
.shadow-choices { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.shadow-choice-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 0.6rem;
  background: rgba(124, 58, 237, 0.12);
  color: #ede9fe;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.shadow-choice-btn:hover { background: rgba(124, 58, 237, 0.28); border-color: #a78bfa; }
.shadow-choice-btn:active { transform: scale(0.99); }
.shadow-choice-btn:disabled { opacity: 0.5; cursor: default; }
.shadow-pact-safety { font-size: 0.85rem; opacity: 0.85; }
.shadow-eval-slider { width: 100%; margin: 0.5rem 0; }
.shadow-axis-graph { width: 100%; max-width: 180px; margin: 0 auto 1rem; display: block; }
.shadow-axis-fill { fill: rgba(167, 139, 250, 0.35); stroke: #a78bfa; stroke-width: 2; }
.shadow-axis-label { fill: #c4b5fd; font-size: 9px; text-anchor: middle; dominant-baseline: middle; }

.shadow-hud {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99970;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.shadow-hud-btn {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.shadow-onboarding-overlay,
.shadow-recovery-overlay,
.shadow-compat-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 16, 0.94);
  padding: 1rem;
}
.shadow-onboarding-overlay.hidden { display: none; }
.shadow-onboarding-card,
.shadow-recovery-card,
.shadow-compat-card {
  max-width: 24rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #1a1030, #0c0814);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #f5f3ff;
}
.shadow-onb-question { margin: 1rem 0 0.5rem; line-height: 1.45; }
.shadow-onb-slider { width: 100%; }
.shadow-onb-scale { display: flex; justify-content: space-between; font-size: 0.75rem; opacity: 0.7; }
.shadow-onb-next,
.shadow-recovery-ok,
.shadow-compat-ok,
.shadow-compat-premium {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: none;
  border-radius: 0.5rem;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.shadow-compat-premium { background: #4c1d95; }
.shadow-fund-complete-card { text-align: center; }
.shadow-fund-sigil {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #c4b5fd;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.75);
}
.shadow-fund-lede { margin: 0.35rem 0 0.5rem; opacity: 0.92; line-height: 1.5; }
.shadow-fund-premium {
  background: linear-gradient(120deg, #7c3aed, #a855f7);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}
.shadow-fund-replay {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 0.5rem;
  background: rgba(124, 58, 237, 0.18);
  color: #f5f3ff;
  font-weight: 600;
}
.shadow-fund-close {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.shadow-recovery-words { font-size: 0.9rem; line-height: 1.6; word-break: break-word; }
.shadow-labyrinth {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.shadow-lab-node {
  font-size: 0.65rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255,255,255,0.08);
  opacity: 0.55;
}
.shadow-lab-node.done { opacity: 0.85; background: rgba(124,58,237,0.35); }
.shadow-lab-node.active { opacity: 1; background: #7c3aed; font-weight: 700; }
.shadow-compat-score { font-size: 0.9rem; opacity: 0.9; }

.shadow-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 99996;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 16, 0.94);
  padding: 1rem;
}
.shadow-mode-card {
  max-width: 22rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #1a1030, #0c0814);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #f5f3ff;
}
.shadow-mode-pair,
.shadow-mode-solo {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
}
.shadow-mode-pair { background: #7c3aed; }
.shadow-mode-solo { background: #4c1d95; }
.shadow-compass-label {
  display: block;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
