/* Register + payment popups. Same overlay/card/hidden-attribute pattern as
   game.css's .game-overlay/.game-card, styled with the site's real palette
   (--red/--blue/--lime/--cream) instead of copying EliteFC's gold/black
   onboarding theme. */

.register-overlay,
.payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.register-overlay[hidden],
.payment-overlay[hidden] {
  display: none;
}

.register-card,
.payment-card {
  position: relative;
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  /* Splatter over the gradient, matching the poster. Done as a second
     background layer rather than a ::before: these cards scroll
     (overflow-y: auto), so an absolutely-positioned overlay would only
     cover the first screenful and would sit on top of the form and
     Square's card iframe. A background layer can't be clicked and can't
     scroll away from the gradient it belongs to. */
  background-image: url('/assets/textures/splatter.svg'),
                    linear-gradient(to bottom, var(--blue), var(--red));
  background-size: auto 100%, auto;
  background-repeat: repeat-x, no-repeat;
  background-position: center top, center top;
  padding: 40px 24px 28px;
  text-align: center;
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--lime);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.overlay-title {
  font-family: 'KCTallboyInked Cond', 'KCTallboyInked', serif;
  letter-spacing: var(--track-display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--lime);
  margin: 0 0 18px;
}

/* form/input/.submit-btn/.status-message inside the register card reuse
   style.css's existing rules unchanged. */
.register-card form {
  margin-top: 0;
}

.payment-fee {
  font-family: 'KCTallboyInked Cond', 'KCTallboyInked', serif;
  letter-spacing: var(--track-display);
  font-size: clamp(40px, 5.5vw, 64px);
  color: var(--cream);
  margin: 0 0 18px;
}

/* Square's Web Payments SDK injects its own iframe here (mountSquareCard()
   in squareClient.js) — a light background so its default white input
   styling doesn't disappear against the card's red/blue gradient, with
   enough min-height reserved before the SDK loads so the popup doesn't
   jump size once it does. */
.payment-card-entry {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 56px;
  margin-bottom: 14px;
}

.payment-confirm-btn {
  font-family: 'KCTallboyInked Cond', 'KCTallboyInked', serif;
  letter-spacing: var(--track-display);
  font-size: clamp(34px, 4.5vw, 56px);
  color: var(--lime);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.payment-confirm-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.payment-skip-btn {
  display: block;
  margin: 10px auto 0;
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.7;
  font-family: 'KCFunkWagon', sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.payment-skip-btn:hover { opacity: 1; }
