/* ── Help button ─────────────────────────────────────────────────────────── */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.help-btn:hover { transform: scale(1.1); opacity: 0.9; }

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

/* ── Modal box ───────────────────────────────────────────────────────────── */
.modal {
  background: var(--bg1);
  border: 1px solid var(--bg2);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  opacity: 0.5; line-height: 1;
  padding: 4px 8px; border-radius: 4px;
  transition: opacity 0.15s;
}
.modal-close:hover { opacity: 1; }

.modal .page-heading  { margin-top: 0; }
.modal .help-section  { margin-bottom: 20px; }
.modal .divider       { margin: 18px 0; }

/* ── Help section text (modal only) ─────────────────────────────────────── */
.help-section h3 { font-family: 'Syne', sans-serif; font-size: 17px; color: var(--yellow); margin-bottom: 14px; }
.help-section p  { color: var(--fg1); font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.help-section a  { border-bottom: 1px solid var(--yellow-s); }
.help-section a:hover { border-bottom-color: var(--fg3); }
