/* ============================================================
   GiverGames account.css  --  Passport & sign-in page styles
   Uses the same design tokens as style.css.
   ============================================================ */

/* The hidden attribute always wins on this page. Several blocks set their own
   display (flex), which otherwise beats [hidden] and leaves them on screen. */
[hidden] { display: none !important; }

/* ---- Auth overlay (sign-in / sign-up) ---- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,39,44,0.72);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.auth-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.auth-card .auth-sub {
  font-size: .9rem;
  color: var(--grey);
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--grey);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 5px;
  letter-spacing: .02em;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
  transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--teal); }
.auth-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  margin-top: 4px;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn--primary {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(253,205,44,.35);
}
.auth-btn--primary:hover { background: var(--yellow-dk); }
.auth-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}
.auth-btn--apple {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  margin-top: 10px;
}
.auth-btn--ghost {
  background: transparent;
  color: var(--grey);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: underline;
  padding: 8px;
}
.auth-toggle {
  text-align: center;
  margin-top: 18px;
  font-size: .85rem;
  color: var(--grey);
}
.auth-toggle a {
  color: var(--teal-dk);
  font-weight: 700;
  text-decoration: none;
}
.auth-error {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  color: #842029;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
}
.auth-error.visible { display: block; }
.auth-code { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; }
.auth-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.auth-divider[hidden], #codeForm[hidden], #resetEmailForm[hidden], #resetCodeForm[hidden], .auth-btn[hidden], .auth-forgot[hidden] { display: none; }
.auth-forgot { display: inline-block; margin-top: 7px; font-size: .82rem; font-weight: 700; color: var(--teal-dk); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
/* App only: no Google/Apple buttons (or the "or" divider) until their credentials are set up. */
.gg-app #googleBtn, .gg-app #appleBtn, .gg-app .auth-divider { display: none !important; }

/* ---- Passport page ---- */
.passport-page {
  background: var(--off-white);
  min-height: 100vh;
}

.passport-hero {
  background: var(--ink);
  padding: 48px 24px 40px;
  text-align: center;
}
.passport-hero h1 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.passport-hero .passport-email {
  color: rgba(255,255,255,0.55);
  font-size: .85rem;
}
.passport-streak {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 20px;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}
.passport-streak .flame { font-size: 1.1rem; }

.passport-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.pp-section {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.pp-section h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* Boards */
.pp-boards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 520px) { .pp-boards { grid-template-columns: 1fr; } }
.pp-board {
  background: var(--off-white);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.pp-board-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.pp-board-pts {
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}
.pp-board-tickets {
  font-size: .75rem;
  color: var(--teal-dk);
  font-weight: 600;
  margin-top: 4px;
}

/* Handles */
.pp-handles { display: flex; flex-direction: column; gap: 12px; }
.pp-handle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pp-handle-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  color: var(--charcoal);
  outline: none;
}
.pp-handle-row input:focus { border-color: var(--teal); }
.pp-handle-row button {
  background: var(--teal);
  color: #06222a;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  flex-shrink: 0;
}
.pp-handle-row button:hover { background: var(--teal-dk); color: #fff; }
.pp-platform-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: .06em;
  text-transform: uppercase;
  min-width: 70px;
}

/* Badges & stamps */
.pp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pp-badge {
  background: var(--off-white);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--charcoal);
}
.pp-badge .badge-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pp-badge-empty {
  color: var(--grey);
  font-size: .88rem;
}

/* Week plays */
.pp-plays { display: flex; flex-direction: column; gap: 8px; }
.pp-play-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
}
.pp-play-game { font-weight: 600; color: var(--charcoal); }
.pp-play-pts  { font-weight: 800; color: var(--teal-dk); }
.pp-play-time { color: var(--grey); font-size: .78rem; }

/* Bonus plays */
.pp-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.pp-bonus-row:first-child { border-top: none; padding-top: 0; }
.pp-bonus-label { font-size: .9rem; font-weight: 600; }
.pp-bonus-sub   { font-size: .78rem; color: var(--grey); margin-top: 2px; }
.pp-bonus-action {
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}
.pp-bonus-action:hover { background: var(--yellow-dk); }
.pp-bonus-done {
  font-size: .82rem;
  color: var(--teal-dk);
  font-weight: 700;
}

/* GiveSendGo tap */
.pp-gsg-tap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0faf9;
  border: 1px solid rgba(14,169,158,.2);
  border-radius: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: .88rem;
  margin-top: 12px;
}
.pp-gsg-tap:hover { background: #e0f5f3; }

/* Lifetime */
.pp-lifetime {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pp-lt-stat { flex: 1; min-width: 100px; }
.pp-lt-val  { font-size: 1.8rem; font-weight: 800; color: var(--charcoal); line-height: 1; }
.pp-lt-lbl  { font-size: .75rem; color: var(--grey); font-weight: 600; margin-top: 4px; }

/* Celebration overlay */
.gg-celebration {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gg-celebration[hidden] { display: none; }
.gg-cel-card {
  background: #fff8e7;
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  pointer-events: auto;
  max-width: 320px;
  animation: cel-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cel-pop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.gg-cel-points {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal-dk);
  line-height: 1;
  margin-bottom: 4px;
}
.gg-cel-total  { font-size: .9rem; color: var(--grey); margin-bottom: 16px; }
.gg-cel-badge  { font-size: 2.5rem; margin-bottom: 8px; }
.gg-cel-name   { font-size: 1rem; font-weight: 800; color: var(--charcoal); }
.gg-cel-close  {
  display: block;
  margin: 16px auto 0;
  background: var(--teal);
  color: #06222a;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Confetti canvas */
#gg-confetti {
  position: fixed;
  inset: 0;
  z-index: 499;
  pointer-events: none;
}

/* Add a game code (a guest's Site & App code) */
.pp-add-help { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; color: var(--grey); }
.pp-add-form { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-add-form .auth-field { flex: 1 1 180px; min-width: 0; margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.pp-add-form .auth-btn { flex: 0 0 auto; width: auto; margin: 0; padding-left: 22px; padding-right: 22px; }
.pp-add-msg { margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.pp-add-msg:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Link your social accounts */
.pp-link-help { font-size: .88rem; color: var(--grey); margin: 0 0 16px; line-height: 1.5; }
.pp-link-block + .pp-link-block { margin-top: 14px; }
.pp-link-status p { margin: 8px 0 0; font-size: .9rem; line-height: 1.5; }
.pp-link-ok { color: var(--teal-dk); font-weight: 600; }
.pp-link-err { color: #B23030; font-weight: 600; }
.pp-link-pending { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #FFF6E2; border: 2px dashed rgba(20,38,61,.25); }
.pp-link-pending p { margin: 0; color: var(--charcoal); }
.pp-link-k { font: 500 .72rem/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #4E5F73 !important; margin-bottom: 8px !important; }
.pp-link-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pp-link-code code { font: 500 1.25rem/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: .08em; color: #14263D; user-select: all; -webkit-user-select: all; }
.pp-link-code button { border: 2px solid #14263D; background: transparent; color: #14263D; border-radius: 999px; padding: 6px 16px; font: 700 .85rem Inter, sans-serif; cursor: pointer; }
