/* ── Zip Blitz — A ROUND'S OWN SHEETS AND BUTTONS (roundui.js) ─────────────────────────────────
   Trivia's (moved from trivia.html, 2026-11-22), worn by List Blitz too: the buttons, the give-up
   sheet (.t-confirm) and "Still there?" (.still-there). Neither page restyles them. */
/* ── Buttons ─────────────────────────────────────────────────────── */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px 20px;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700;
  border: none; border-radius: 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
}
.t-btn-primary {
  background: linear-gradient(180deg, var(--t-accent), var(--t-accent-deep));
  color: #fff; box-shadow: 0 4px 0 var(--t-shadow);
}
.t-btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--t-shadow); }
.t-btn-ghost {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--rule);
}
.t-btn-ghost:active { transform: scale(0.985); }


/* Confirm sheet (give up) */
.t-confirm-backdrop {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(31, 26, 20, 0.42);
  align-items: flex-end; justify-content: center;
}
.t-confirm-backdrop.active { display: flex; }
.t-confirm {
  width: 100%; max-width: 480px;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}
.t-confirm h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.t-confirm p { color: var(--muted); font-size: 0.96rem; line-height: 1.4; margin-bottom: 20px; }
.t-confirm .t-confirm-row { display: flex; flex-direction: column; gap: 10px; }
.t-confirm .t-btn-danger { background: var(--danger, #D1544A); color: #fff; }


/* "STILL THERE?" — the countdown's own backdrop, a card on it, nothing behind it. */
.still-there {
  display: none; position: fixed; inset: 0; z-index: 355;
  background: radial-gradient(120% 70% at 50% 28%, #ECF4F9 0%, var(--bg) 60%);
  flex-direction: column; align-items: center; justify-content: center;
  padding: 0 max(20px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
}
.still-there.active { display: flex; }
.still-there-card {
  width: 100%; max-width: 340px; box-sizing: border-box; text-align: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 24px;
  padding: 30px 22px 22px; box-shadow: 0 10px 30px rgba(31, 26, 20, 0.08);
}
.still-there-ic {
  width: 60px; height: 60px; border-radius: 50%; background: var(--t-tint);
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.still-there-ic span { width: 6px; height: 22px; border-radius: 2px; background: var(--t-accent); }
.still-there-h {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--text); margin: 0 0 10px; letter-spacing: -0.01em;
}
.still-there-sub { font-size: 0.95rem; color: var(--muted); line-height: 1.5; margin: 0 0 22px; }
.still-there-go {
  width: 100%; border: 0; border-radius: 16px; padding: 15px 0; cursor: pointer;
  background: var(--t-accent); color: #fff; font-family: var(--font-ui);
  font-size: 1.05rem; font-weight: 700; box-shadow: 0 4px 0 #0E5346;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.still-there-go:active { transform: translateY(2px); box-shadow: 0 2px 0 #0E5346; }
.still-there-next {
  margin-top: 14px; font-size: 0.82rem; font-weight: 700; color: var(--faint);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.still-there-home {
  margin-top: 22px; background: none; border: 0; padding: 10px 16px; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--muted);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}

/* THE LOADING SCREEN AND THE COUNTDOWN'S BACK PILL (moved from trivia.html): "Loading…" and the Back pill
   a player held on a loading or countdown screen leaves by. */
.countdown-back {
  position: absolute; top: max(16px, env(safe-area-inset-top)); left: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.t-loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--faint); font-weight: 600; }

/* A SMALL BUTTON, for a header: the same button, sized to sit beside an icon (List Blitz's Skip). */
.t-btn.t-btn-sm { width: auto; padding: 7px 14px; font-size: 0.85rem; border-radius: 999px; line-height: 1.1; }

/* THE COUNTDOWN'S GROUND AND ITS LINE (moved from trivia.html): where a round is entered, its pill draining
   (ROUNDUI.enter; the old 3-2-1 digits are retired, George 2026-11-22). ROUNDUI.reentry puts the pill alone
   on it, at the countdown pill's own place (countpill.css .countdown-tier, its --pill-top). */
.countdown-overlay {
  display: none; position: fixed; inset: 0;
  background: radial-gradient(120% 70% at 50% 28%, #ECF4F9 0%, var(--bg) 60%);
  z-index: 350; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.countdown-overlay.active { display: flex; }
.countdown-sub {
  font-size: 0.82rem; color: var(--muted); letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
}

/* BACK INTO A ROUND (ROUNDUI.reentry): the round's pill alone on the countdown's ground; whatever else a
   page keeps on that overlay (trivia's Back, line, challenger, lineup) is not part of coming back. */
.countdown-overlay.ui-reentry > :not(.countdown-tier) { visibility: hidden; }
