/* ============================================================
   X-TYPER MEMBERS — stylesheet for /members/*, terms.php and
   privacy.php. Loaded AFTER /styles.css (the homepage's), so the
   fonts, colours (:root) and .btn buttons come from there.
   ============================================================ */

body.members { display: flex; flex-direction: column; min-height: 100vh; background: var(--sky); }

/* ── HEADER ── */
.mhead { background: var(--paper); border-bottom: var(--line); }
.mhead__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mhead__logo { display: block; border-radius: 8px; }
.mhead__logo img { height: 44px; width: auto; }
.mhead__nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mhead__link {
  padding: 8px 12px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.mhead__link:hover { background: var(--sky); }
.mhead__nav .btn { margin-left: 6px; }

/* ── MAIN ── */
.site-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 36px var(--gutter) 56px; }

.page-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.08; text-align: center; margin-bottom: 8px; }
.page-subtitle { text-align: center; font-size: var(--t-lead); margin-bottom: 28px; }

/* ── CARD ── */
.card {
  background: #fff; border: var(--line); border-radius: 18px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 6px 0 var(--ink);
}
.card + .card { margin-top: 20px; }
.card--accent { border-color: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 22px 40px -22px rgba(20, 40, 75, .55); }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.0625rem; margin-bottom: 6px; }
.form-label small { font-family: var(--f-body); font-weight: 400; color: var(--ink-2); font-size: .875rem; }
.form-input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font-family: var(--f-body); font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 12px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28, 100, 200, .25); }
select.form-input { cursor: pointer; }
.form-hint { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; cursor: pointer; line-height: 1.5; }
.check input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--go); cursor: pointer; }
.check--optional { font-size: .975rem; }
.check--optional small { display: block; color: var(--ink-2); }

.dob-row { display: flex; gap: 10px; }
.dob-row .form-input { flex: 1; min-width: 0; }

/* ── BUTTONS (on top of styles.css .btn) ── */
.btn--block { display: flex; width: 100%; }
.btn--quiet { min-height: 42px; padding: 8px 18px; font-size: .9375rem; color: var(--ink); background: #fff; }
.btn--quiet:hover { background: var(--yellow-2); }
.news-form .btn { margin-top: 10px; }

/* ── ALERTS ── */
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; border: 3px solid; line-height: 1.5; }
.alert--error { background: #FDE1DC; border-color: var(--red); color: #7A2414; }
.alert--error ul { list-style: none; padding: 0; margin: 0; }
.alert--error li { padding: 2px 0; }
.alert--error li::before { content: "⚠ "; font-weight: 700; }
.alert--success { background: #DDF3E2; border-color: var(--green); color: #134D22; }
.alert--success b, .alert--success strong { color: #134D22; }
.alert--info { background: var(--yellow-2); border-color: var(--yellow); color: var(--ink); }

/* ── STATUS BADGES ── */
.status {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: .9375rem;
  border: 2px solid var(--ink);
}
.status--pending { background: var(--yellow); color: var(--ink); }
.status--active { background: var(--go); color: #fff; }
.status--banned { background: #FDE1DC; color: var(--red); border-color: var(--red); }

/* ── INFO ROWS ── */
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 2px dashed var(--sky-2); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row__label { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.info-row__value { font-weight: 700; color: var(--ink); text-align: right; word-break: break-word; }

/* ── CTA (account page) ── */
.cta { text-align: center; }
.cta__headline { font-family: var(--f-display); font-weight: 700; font-size: 1.625rem; line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.cta__sub { margin-bottom: 18px; }
.cta--play { position: relative; overflow: hidden; padding-left: 150px; text-align: left; min-height: 190px; }
.cta__bunny { position: absolute; left: 16px; bottom: -6px; width: 118px; }
.cta__bunny img { width: 100%; height: auto; }
.manage__title { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }

/* ── SIGN-UP INFO PANEL ── */
.reg-info {
  position: relative; overflow: hidden; margin: 0 0 22px; padding: 22px 24px;
  background: var(--yellow-2); border: var(--line); border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
}
.reg-info__badge {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .08em;
  color: var(--ink); background: var(--yellow); border: 2px solid var(--ink);
}
.reg-info__title { font-size: 1.5rem; margin: 0 0 4px; }
.reg-info__lead { margin: 0 0 16px; }
.reg-steps { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.reg-steps--done { margin-top: 16px; }
.reg-step {
  flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; text-align: center; background: #fff; border: 2px solid var(--sky-2); border-radius: 14px;
}
.reg-step--active { border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.reg-step--complete { border-color: var(--green); background: #EEF9F0; }
.reg-step__n {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 700; color: var(--ink); background: var(--sky-2);
}
.reg-step--active .reg-step__n { background: var(--yellow); border: 2px solid var(--ink); }
.reg-step--complete .reg-step__n { background: var(--green); color: #fff; }
.reg-step__lbl { font-family: var(--f-display); font-weight: 600; font-size: .9375rem; line-height: 1.2; color: var(--ink); }
.reg-step__you { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.reg-step--complete .reg-step__you { color: var(--green); }
.reg-step__arrow { display: flex; align-items: center; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.reg-info__note { margin: 0; padding: 12px 14px; font-size: .975rem; line-height: 1.5; background: #fff; border-left: 5px solid var(--yellow); border-radius: 8px; }
.reg-play { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 2px; }

/* ── LOGIN: "how it works" popup ── */
.howto-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 40, 75, .72);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.howto-overlay[hidden] { display: none; }
.howto-overlay.show { opacity: 1; visibility: visible; }
.howto-modal {
  position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  padding: 28px 26px; background: var(--paper); border: var(--line); border-radius: 20px;
  box-shadow: 0 8px 0 var(--ink), 0 24px 50px rgba(0, 0, 0, .4);
  transform: translateY(-40px); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease;
}
.howto-overlay.show .howto-modal { transform: translateY(0); opacity: 1; }
.howto-overlay.closing .howto-modal { transform: translateY(-40px); opacity: 0; }
.howto-close { position: absolute; top: 8px; right: 12px; padding: 4px 8px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 8px; }
.howto-close:hover { background: var(--sky); }
.howto-title { font-size: 1.5rem; margin: 0 28px 4px 0; }
.howto-sub { margin: 0 0 18px; }
.howto-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.howto-steps li { display: flex; gap: 14px; align-items: flex-start; }
.howto-num {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  font-family: var(--f-display); font-weight: 700; color: var(--ink);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
}
.howto-steps b { display: block; margin-bottom: 2px; }
.howto-steps p { margin: 0; font-size: .9375rem; line-height: 1.45; }
.howto-newnote { text-align: center; margin: 0 0 16px; }
.howto-newnote a { font-weight: 700; }
.howto-timer { font-variant-numeric: tabular-nums; opacity: .75; font-size: .85em; margin-left: 4px; }
.howto-dismiss { text-align: center; margin: 10px 0 0; }
.howto-launch {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  font-family: var(--f-body); font-size: .975rem; color: var(--ink); text-align: center; cursor: pointer;
  background: var(--sky); border: 2px dashed var(--blue); border-radius: 12px;
  transition: background .15s;
}
.howto-launch:hover { background: var(--sky-2); }

/* ── FOOTER ── */
.site-footer { padding: 22px var(--gutter); text-align: center; font-size: .9375rem; color: rgba(255, 255, 255, .82); background: var(--ink); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }

/* ── TERMS + PRIVACY ── */
.legal { line-height: 1.65; }
.legal h2 { font-size: 1.375rem; margin: 26px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { list-style: disc; margin: 0 0 14px 22px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 2px dashed var(--sky-2); }
.legal th { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.legal-summary { margin-bottom: 18px; padding: 14px 18px; background: #EEF9F0; border: 3px solid var(--green); border-radius: 14px; }
.legal-summary ul { margin-bottom: 0; }
.legal-updated { text-align: center; font-size: .9375rem; margin: 0 0 20px; }
.legal-toc { font-size: .9375rem; margin-bottom: 18px; }
.legal-toc a { white-space: nowrap; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 22px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 22px; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

/* ── PHONES ── */
@media (max-width: 560px) {
  .mhead__bar { justify-content: center; }
  .mhead__logo img { height: 38px; }
  .info-row__value { text-align: left; }
  .reg-step__arrow { display: none; }
  .reg-info { padding: 18px 16px; }
  .cta--play { padding-left: clamp(20px, 4vw, 30px); text-align: center; }
  .cta__bunny { position: static; display: block; width: 96px; margin: 0 auto 8px; }
  .legal th, .legal td { padding: 6px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-overlay, .howto-modal { transition: none; }
}

/* ── 404 PAGE ── */
.nf__bunny { display: block; width: 110px; margin: 0 auto 6px; }
.nf__bunny img { width: 100%; height: auto; }
.nf__tiles { display: flex; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.nf__tiles span {
  display: grid; place-items: center; width: 58px; height: 64px;
  font-family: var(--f-display); font-weight: 700; font-size: 2.25rem; color: var(--ink);
  background: #FDE1DC; border: var(--line); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
}

/* ── CONFIRM YOUR EMAIL (account page, 19 Oct 2026) ── */
.confirm__icon { font-size: 2.6rem; line-height: 1; margin: 0 0 6px; }
.confirm__change { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.confirm__change .form-input { flex: 1 1 220px; }
