/* ===========================================================
   Shared "enter league code" / PIN prompt overlay
   Used by draft-board.html, player-entry.html, team-picks.html
   =========================================================== */

/* This class was previously only ever attached to elements created and
   later .remove()'d from the DOM (see league-gate.js), never toggled
   via the hidden attribute -- so the missing [hidden] override never
   surfaced. The break-confirm overlay in player-entry.html toggles
   hidden instead, and without this rule "display: flex" below beats
   the browser's default [hidden] { display: none }, so the overlay
   never actually disappears. */
.league-gate-overlay[hidden] { display: none; }
.league-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.league-gate-card {
  background: var(--panel-grad);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--panel-sheen), 0 0 40px -12px rgba(212, 175, 55, 0.3), var(--shadow-panel);
}

.league-gate-icon { font-size: 36px; margin-bottom: 8px; line-height: 1; }
.league-gate-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.league-gate-hint { margin: 0 0 18px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* How-To/FAQ card -- taller and left-aligned unlike the short confirm
   prompts above, since it holds a scrollable list of Q&A instead of one
   or two lines of text. */
.faq-card { max-width: 420px; text-align: left; display: flex; flex-direction: column; max-height: 82vh; }
.faq-card .league-gate-title { text-align: center; }
.faq-scroll { overflow-y: auto; margin: 0 0 16px; padding-right: 4px; }
.faq-item + .faq-item { margin-top: 14px; }
.faq-q { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.faq-a { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.league-gate-input {
  width: 100%;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-alt-grad);
  box-shadow: var(--panel-sheen);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
/* Used for free-text entry (e.g. the board-message composer) where the
   uppercase/letter-spacing/centering above -- meant for league codes and
   PINs -- would misrepresent what's actually being typed. */
.league-gate-input.free-text {
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  font-size: 15px;
  font-weight: 600;
}
.league-gate-input:focus { border-color: var(--gold-dim); }

.league-gate-error {
  font-size: 12.5px;
  color: #f28b82;
  margin-bottom: 10px;
  line-height: 1.4;
}

.league-gate-continue {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #201703;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 10px;
}
.league-gate-continue:disabled { background: var(--panel-alt); color: var(--text-faint); cursor: not-allowed; }
.league-gate-continue:not(:disabled):active { transform: translateY(1px); }

.league-gate-secondary {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  cursor: pointer;
}
.league-gate-secondary + .league-gate-secondary { margin-top: 10px; }
.league-gate-secondary:hover { border-color: var(--gold-dim); color: var(--gold); }

.created-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel-alt-grad);
  box-shadow: var(--panel-sheen);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
  text-align: left;
}
.created-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-faint); }
.created-value { font-size: 18px; font-weight: 800; color: var(--gold-bright); letter-spacing: 1px; font-variant-numeric: tabular-nums; }

.created-email-row { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.created-email-row .league-gate-input { margin: 0; }
.created-email-status { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; text-align: left; }
