/* Secret guestlist page — reached by clicking the hero coins. */
body.page-guestlist {
  --page-color: var(--neon);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  overflow-x: hidden;
}

.guestlist-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 80px;
}

.guestlist-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.guestlist-badges span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--neon);
  color: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semi);
  font-size: 13px;
}

.guestlist-page-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eye);
  font-weight: var(--fw-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 18px;
}

.guestlist-title {
  font-size: var(--text-h1);
  font-weight: var(--fw-semi);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.guestlist-copy {
  max-width: 440px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.guestlist-form[hidden] { display: none; }
.guestlist-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: min(400px, 100%);
  margin-top: 30px;
  align-items: center;
}

.guestlist-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.guestlist-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.guestlist-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 18px;
  padding: 8px 2px 10px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.guestlist-input:focus {
  outline: none;
  border-bottom-color: var(--neon);
}
.guestlist-input::placeholder { color: rgba(255,255,255,0.28); }

.guestlist-submit { margin-top: 6px; }
.guestlist-submit:disabled { opacity: .48; cursor: wait; }
.guestlist-error[hidden] { display: none; }
.guestlist-error {
  width: 100%;
  margin: -10px 0 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.guestlist-success[hidden] { display: none; }
.guestlist-success {
  width: min(520px, 100%);
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guestlist-success-line {
  font-size: var(--text-h2);
  font-weight: var(--fw-semi);
  color: var(--neon);
  margin-bottom: 12px;
}
.guestlist-success-line:focus { outline: none; }
.guestlist-share { margin-top: 20px; }
.guestlist-manual[hidden] { display: none; }
.guestlist-manual {
  width: min(400px, 100%);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
@media (prefers-reduced-motion: no-preference) {
  .guestlist-success--shown {
    animation: guestlist-pop 0.5s var(--ease-spring);
  }
  @keyframes guestlist-pop {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* ── Countdown state (48h-0h before the next event) ── */
.guestlist-countdown[hidden] { display: none; }
.guestlist-countdown {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.guestlist-countdown-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.guestlist-countdown-clock {
  font-family: var(--font-main);
  font-weight: var(--fw-semi);
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

/* ── Closed state (event has started) — replaces the form entirely ── */
.guestlist-closed[hidden] { display: none; }
.guestlist-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

/* ── Running signup progress ── */
.guestlist-progress[hidden] { display: none; }
.guestlist-progress {
  width: min(400px, 100%);
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.guestlist-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.guestlist-progress-track {
  height: 8px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}
.guestlist-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(209, 255, 0, 0.45);
  transition: width 0.45s var(--ease-out);
}

.guestlist-footnote {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .guestlist-main {
    padding: calc(var(--nav-h) + 32px) var(--gutter)
             calc(56px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  .guestlist-badges { gap: 10px; margin-bottom: 22px; }
  .guestlist-badges span { width: 38px; height: 38px; font-size: 12px; }

  /* 0.3em tracking on an 11px mono line wrapped "YOU FOUND THE BACK DOOR"
     onto two ragged lines at 390px. */
  .guestlist-page-eyebrow { letter-spacing: 0.18em; margin-bottom: 14px; }
  .guestlist-footnote { letter-spacing: 0.12em; margin-top: 44px; }

  .guestlist-form { gap: 22px; margin-top: 26px; }

  /* The circle-plus-underlined-label button reads as a stray fragment when
     it's the only element on the line. Give it the full column and a solid
     slab so it looks like the primary action it is. */
  .guestlist-submit,
  .guestlist-share,
  .guestlist-closed .btn-c {
    width: 100%;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    background: var(--neon);
  }
  .guestlist-submit .btn-c-circle,
  .guestlist-share .btn-c-circle,
  .guestlist-closed .btn-c-circle {
    background: var(--black);
    color: var(--neon);
  }
  .guestlist-submit .btn-c-text,
  .guestlist-share .btn-c-text,
  .guestlist-closed .btn-c-text {
    color: var(--black);
    border: 0;
    padding: 0;
  }
  .guestlist-submit:disabled { opacity: 0.55; }

  .guestlist-countdown-clock { font-size: clamp(26px, 8vw, 38px); }
}
