.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6,5,15,.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  animation: fadein .35s forwards;
}
@keyframes fadein { to { opacity: 1; } }

.modal {
  max-width: 430px;
  width: 100%;
  background: rgba(10,8,24,0.98);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.95), 0 0 50px -15px var(--glow-purple-soft);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.breath {
  width: 130px;
  height: 130px;
  margin: 6px auto 4px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.breath .core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal), var(--teal-d));
  box-shadow: 0 0 40px var(--glow-teal);
  animation: breathe 10s ease-in-out infinite;
}
.breath .halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(1,181,116,.4);
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.62); }
  45%, 55% { transform: scale(1.05); }
}

.breathtxt { font-size: 13px; color: var(--ink-faint); height: 18px; margin-bottom: 14px; letter-spacing: .05em; }

.modal h3 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; font-size: 23px; margin-bottom: 10px; line-height: 1.25; }
.modal p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 6px; }
.modal .whyback { font-family: 'DM Sans', system-ui, sans-serif; font-style: italic; font-size: 15px; color: var(--amber); margin: 16px 0 4px; line-height: 1.5; }

.modal .ritpick { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 6px; }
.modal .ritpick button {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-line-strong);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  cursor: pointer;
  transition: .18s;
  text-align: left;
}
.modal .ritpick button:hover { background: rgba(1,181,116,.12); border-color: var(--teal-d); }
.modal .ritpick button::before { content: "→ "; color: var(--teal); }

.modalfoot { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.modal .small { font-size: 12px; color: var(--ink-faint); background: none; border: none; cursor: pointer; font-family: inherit; }
.modal .small:hover { color: var(--ink-soft); }
