/*
 * party-time.css — Party Time (PARTY-TIME-DESIGN.md "THEME — AIM").
 * Scoped to .pt-phone (player phones + host remote inside the site shell)
 * and .pt-tv-body (the standalone TV page). Tokens are --pt-*; use
 * var(--pt-token, fallback) per house style.
 */

.pt-phone,
.pt-tv-body {
  --pt-desk: #008080;
  /* Window face: the Windows XP / AIM beige (owner's reference), not Win95 grey */
  --pt-chrome: #ece9d8;
  --pt-chrome-light: #ffffff;
  --pt-chrome-dark: #aca899;
  --pt-chrome-darker: #716f64;
  --pt-title-a: #000080;
  --pt-title-b: #1084d0;
  --pt-title-ink: #ffffff;
  --pt-ink: #000000;
  --pt-muted-ink: #555555;
  --pt-paper: #ffffff;
  --pt-aim-yellow: #ffcc00;
  --pt-good: #1a7f37;
  --pt-bad: #b42318;
  --pt-her: #c2185b;
  --pt-trivia: #1565c0;
  --pt-opt-a: #e53935;
  --pt-opt-b: #1e88e5;
  --pt-opt-c: #fbc02d;
  --pt-opt-d: #43a047;
  --pt-font: Tahoma, Verdana, "Segoe UI", sans-serif;
  font-family: var(--pt-font);
  color: var(--pt-ink);
}

/* The platform's "X disconnected…" banners are noise at a party where
   phones sleep between questions — hidden while a Party Time screen shows. */
body.pt-active .qw-banner-slot { display: none !important; }

/* No Quackwave chrome on any /birthday phone screen (join, host setup, game):
   html.pt-route = a /birthday address (marked by the shell before first paint);
   body.pt-active / .pt-phone = a Party Time screen (e.g. /room/1991). */
body:has(.pt-phone) .navbar { display: none !important; }
body:has(.pt-phone) #report-issue-btn { display: none !important; }
html.pt-route .navbar, html.pt-route #report-issue-btn,
body.pt-active .navbar, body.pt-active #report-issue-btn { display: none !important; }
body:has(.pt-phone) #main-content { margin-top: 12px !important; }

/* ── Window chrome (Win95/AIM) ─────────────────────────────────────────── */

.pt-window {
  background: var(--pt-chrome, #c0c0c0);
  border: 2px solid;
  border-color: var(--pt-chrome-light, #fff) var(--pt-chrome-darker, #404040) var(--pt-chrome-darker, #404040) var(--pt-chrome-light, #fff);
  box-shadow: 1px 1px 0 var(--pt-ink, #000);
  margin: 0 auto 12px;
}

.pt-titlebar {
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif; /* XP title bars */
  background: linear-gradient(90deg, var(--pt-title-a, #000080), var(--pt-title-b, #1084d0));
  color: var(--pt-title-ink, #fff);
  font-weight: bold;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pt-window-body { padding: 12px; }

.pt-inset {
  background: var(--pt-paper, #fff);
  border: 2px solid;
  border-color: var(--pt-chrome-dark, #808080) var(--pt-chrome-light, #fff) var(--pt-chrome-light, #fff) var(--pt-chrome-dark, #808080);
  padding: 8px;
}

.pt-muted { color: var(--pt-muted-ink, #555); }
.pt-small { font-size: 0.85em; }
.pt-center { text-align: center; }
.pt-error { color: var(--pt-bad, #b42318); margin-top: 8px; }
.pt-warn {
  background: var(--pt-aim-yellow, #fc0);
  border: 1px solid var(--pt-ink, #000);
  padding: 6px 8px;
}
.pt-errors { background: var(--pt-paper, #fff); border: 2px solid var(--pt-bad, #b42318); padding: 8px; }
.pt-errors ul { margin: 6px 0 0; padding-left: 20px; }

/* ── Buttons & inputs ──────────────────────────────────────────────────── */

.pt-btn {
  font-family: inherit;
  font-size: 1rem;
  background: var(--pt-chrome, #c0c0c0);
  color: var(--pt-ink, #000);
  border: 2px solid;
  border-color: var(--pt-chrome-light, #fff) var(--pt-chrome-darker, #404040) var(--pt-chrome-darker, #404040) var(--pt-chrome-light, #fff);
  padding: 10px 14px;
  min-height: 48px;
  cursor: pointer;
  touch-action: manipulation;
}
.pt-btn:active { border-color: var(--pt-chrome-darker, #404040) var(--pt-chrome-light, #fff) var(--pt-chrome-light, #fff) var(--pt-chrome-darker, #404040); }
.pt-btn:disabled { color: var(--pt-chrome-dark, #808080); cursor: default; }
.pt-btn-primary { font-weight: bold; background: var(--pt-aim-yellow, #fc0); width: 100%; margin-top: 10px; }
.pt-btn-big { width: 100%; min-height: 64px; font-size: 1.15rem; font-weight: bold; margin-top: 8px; }
.pt-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pt-btn-row .pt-btn { flex: 1 1 0; }
.pt-btn-danger { color: var(--pt-bad, #b42318); }
/* Host page while a party runs: "Start a NEW party" is full width but plain, under a rule. */
#create-game-form .pt-btn-danger { width: 100%; margin-top: 10px; font-weight: bold; }
.pt-rule { border: 0; border-top: 1px solid var(--pt-chrome-dark, #808080); margin: 14px 0 6px; }
/* The host page has its own "Back to the host remote"; the shell's generic rejoin card would be a second, vaguer way back. */
body:has(#pt-host-setup) #qw-rejoin-landing { display: none; }

.pt-label { display: block; font-weight: bold; margin: 8px 0 4px; }
.pt-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.1rem;
  padding: 8px;
  background: var(--pt-paper, #fff);
  border: 2px solid;
  border-color: var(--pt-chrome-dark, #808080) var(--pt-chrome-light, #fff) var(--pt-chrome-light, #fff) var(--pt-chrome-dark, #808080);
}

/* ── Phone (players + host remote) ─────────────────────────────────────── */

.pt-phone { max-width: 520px; margin: 0 auto; padding-bottom: 24px; }
/* Phone/remote headings: the XP headline bar (see .pt-aim-logo), sized in px */
.pt-phone .pt-signon-logo { font-size: 1.45rem; border-width: 2px; border-radius: 6px; padding: 10px 12px; margin: 4px 0 12px; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45); }

.pt-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--pt-title-ink, #fff);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.pt-badge-her { background: var(--pt-her, #c2185b); }
.pt-badge-trivia { background: var(--pt-trivia, #1565c0); }
.pt-badge-sample { background: var(--pt-bad, #b42318); }

.pt-options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.pt-option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  text-align: left;
  font: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--pt-paper, #fff);
  color: var(--pt-ink, #000);
  border: 2px solid;
  border-color: var(--pt-chrome-light, #fff) var(--pt-chrome-darker, #404040) var(--pt-chrome-darker, #404040) var(--pt-chrome-light, #fff);
  padding: 8px 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.pt-option:disabled { cursor: default; }
.pt-option.is-picked { outline: 4px solid var(--pt-title-a, #000080); }
.pt-option.is-dim { opacity: 0.45; }
.pt-option.is-correct { background: #d7f5dd; outline: 4px solid var(--pt-good, #1a7f37); }
.pt-letter {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: bold;
  border: 2px solid var(--pt-ink, #000);
}
.pt-letter-0 { background: var(--pt-opt-a, #e53935); }
.pt-letter-1 { background: var(--pt-opt-b, #1e88e5); }
.pt-letter-2 { background: var(--pt-opt-c, #fbc02d); color: var(--pt-ink, #000); }
.pt-letter-3 { background: var(--pt-opt-d, #43a047); }

.pt-timerbar { height: 10px; background: var(--pt-paper, #fff); border: 1px solid var(--pt-chrome-darker, #404040); margin: 8px 0; }
.pt-timerbar > span { display: block; height: 100%; background: var(--pt-title-b, #1084d0); transition: width 0.25s linear; }

.pt-result { font-size: 1.6rem; font-weight: bold; text-align: center; margin: 8px 0; }
.pt-result.is-good { color: var(--pt-good, #1a7f37); }
.pt-result.is-bad { color: var(--pt-bad, #b42318); }

.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dotted var(--pt-chrome-dark, #808080); }
.pt-list li.is-me { font-weight: bold; background: #ffffcc; }
.pt-away { color: var(--pt-muted-ink, #555); font-style: italic; }

.pt-board { display: grid; gap: 6px; margin-top: 8px; }
.pt-board-cat { font-weight: bold; font-size: 0.85rem; text-align: center; color: var(--pt-title-ink, #fff); background: var(--pt-title-a, #000080); padding: 6px 2px; }
.pt-board .pt-btn { min-height: 48px; font-weight: bold; padding: 4px; }

.pt-host-bar { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; margin-bottom: 8px; }
.pt-host-answer { font-weight: bold; color: var(--pt-good, #1a7f37); }
.pt-loading { text-align: center; }

/* ── TV (standalone page) ──────────────────────────────────────────────── */

.pt-tv-body {
  margin: 0;
  min-height: 100vh;
  background: var(--pt-desk, #008080);
  overflow: hidden;
  font-size: 2.2vh;
}
#pt-tv { position: relative; height: 100vh; box-sizing: border-box; padding: 2.5vh 3vw; display: flex; flex-direction: column; gap: 2vh; }
.pt-tv-body .pt-window { margin: 0; }
.pt-tv-body .pt-titlebar { font-size: 2.2vh; padding: 0.8vh 1.2vh; }
.pt-tv-body .pt-window-body { padding: 2vh; }

.pt-tv-top { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: bold; font-size: 2.4vh; }
.pt-tv-main { flex: 1 1 auto; display: flex; gap: 2vw; min-height: 0; }
.pt-tv-stage { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.pt-tv-stage > .pt-window { flex: 1 1 auto; display: flex; flex-direction: column; }
.pt-tv-stage .pt-window-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.pt-tv-side { flex: 0 0 24vw; display: flex; flex-direction: column; }
.pt-tv-side > .pt-window { flex: 1 1 auto; overflow: hidden; }

.pt-tv-title { font-size: 7vh; font-weight: bold; text-align: center; color: var(--pt-title-a, #000080); margin: 0; }
.pt-tv-sub { font-size: 3vh; text-align: center; margin: 1vh 0 0; }
.pt-tv-prompt { font-size: 5vh; font-weight: bold; margin: 1vh 0 2vh; line-height: 1.2; }
.pt-tv-rule { font-size: 2.4vh; font-style: italic; color: var(--pt-her, #c2185b); }
.pt-tv-body .pt-badge { font-size: 2vh; padding: 0.4vh 1vh; }

.pt-tv-qbody { display: flex; gap: 2vw; align-items: stretch; }
.pt-tv-media { flex: 0 0 34%; display: flex; align-items: center; justify-content: center; }
.pt-tv-media img { max-width: 100%; max-height: 38vh; border: 2px solid var(--pt-ink, #000); background: #fff; }
.pt-tv-options { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vh; }
.pt-tv-body .pt-option { min-height: 10vh; font-size: 3.4vh; cursor: default; gap: 1.5vw; align-items: flex-start; flex-direction: column; justify-content: center; }
.pt-tv-body .pt-option-head { display: flex; align-items: center; gap: 1.2vw; }
.pt-tv-body .pt-letter { width: 5vh; height: 5vh; font-size: 3vh; }
.pt-tv-pickers { font-size: 2vh; font-weight: normal; color: var(--pt-muted-ink, #555); }

.pt-tv-status { display: flex; justify-content: space-between; align-items: center; font-size: 2.6vh; font-weight: bold; margin-top: 1.5vh; }
.pt-tv-body .pt-timerbar { height: 1.6vh; }
.pt-tv-ask {
  font-size: 4.5vh;
  font-weight: bold;
  text-align: center;
  color: var(--pt-her, #c2185b);
  background: var(--pt-aim-yellow, #fc0);
  border: 2px solid var(--pt-ink, #000);
  padding: 1vh;
  margin-top: 1.5vh;
}

.pt-buddies { list-style: none; margin: 0; padding: 0; font-size: 2.4vh; }
.pt-buddies li { display: flex; justify-content: space-between; align-items: center; padding: 0.5vh 0.4vw; }
.pt-buddy-dot { display: inline-block; width: 1.4vh; height: 1.4vh; border-radius: 50%; background: var(--pt-good, #1a7f37); margin-right: 0.6vw; border: 1px solid var(--pt-ink, #000); }
.pt-buddy-dot.is-away { background: var(--pt-aim-yellow, #fc0); }
.pt-buddy-dot.is-answered { background: var(--pt-title-a, #000080); }
.pt-buddy-group { font-weight: bold; margin: 0.6vh 0; }

.pt-join { display: flex; flex-wrap: wrap; gap: 3vw; align-items: center; justify-content: center; min-width: 0; }
.pt-join img { width: min(32vh, 22vw); height: min(32vh, 22vw); flex: 0 0 auto; background: #fff; border: 2px solid var(--pt-ink, #000); }
.pt-join > div { min-width: 0; }
.pt-join-url { font-size: min(5vh, 3vw); font-weight: bold; color: var(--pt-title-a, #000080); overflow-wrap: anywhere; }
.pt-join-code { font-size: min(3vh, 2vw); margin-top: 1vh; }

.pt-tv-board { display: grid; gap: 1vh; height: 100%; }
.pt-tv-board .pt-board-cat { font-size: 2.6vh; display: grid; place-items: center; padding: 1vh; }
.pt-tv-cell {
  display: grid;
  place-items: center;
  background: var(--pt-title-a, #000080);
  color: var(--pt-aim-yellow, #fc0);
  font-size: 5vh;
  font-weight: bold;
  border: 2px solid var(--pt-ink, #000);
}
.pt-tv-cell.is-used { background: var(--pt-chrome-dark, #808080); color: transparent; }
.pt-tv-picker { font-size: 3.6vh; font-weight: bold; text-align: center; margin-bottom: 1vh; }

.pt-tv-scores { list-style: none; margin: 0; padding: 0; font-size: 3.4vh; }
.pt-tv-scores li { display: flex; justify-content: space-between; padding: 0.8vh 1vw; border-bottom: 1px dotted var(--pt-chrome-dark, #808080); }
.pt-tv-scores li:nth-child(1) { font-size: 4.6vh; font-weight: bold; background: #fff6b3; }
.pt-tv-scores li:nth-child(2), .pt-tv-scores li:nth-child(3) { font-weight: bold; }

.pt-gain { color: var(--pt-good, #1a7f37); font-weight: bold; }

.pt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 10;
}
.pt-overlay .pt-window { width: min(72vw, 1200px); } /* same width as the waiting dialog it covers */
.pt-overlay .pt-btn-primary { font-size: 3vh; min-height: 8vh; }

/* ── Jeopardy redesign (2026-10-16) ────────────────────────────────────── */

.pt-phone,
.pt-tv-body {
  --pt-team-a: #c2185b;
  --pt-team-b: #1565c0;
  --pt-dd: #6a1b9a;
  --pt-loss-ink: #b42318;
}

.pt-team-0 { --pt-team: var(--pt-team-a, #c2185b); }
.pt-team-1 { --pt-team: var(--pt-team-b, #1565c0); }
.pt-gain { color: var(--pt-good, #1a7f37); font-weight: bold; }
.pt-loss { color: var(--pt-loss-ink, #b42318); font-weight: bold; }
.pt-big { font-size: 1.2rem; font-weight: bold; }
.pt-prompt { font-size: 1.1rem; font-weight: bold; margin: 8px 0; }
.pt-live { color: var(--pt-good, #1a7f37); }
.pt-badge-dd { background: var(--pt-dd, #6a1b9a); }
.pt-team-line strong { color: var(--pt-team, inherit); }

/* Phone score bar */
.pt-scorebar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.pt-score {
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid var(--pt-team, #000); background: var(--pt-paper, #fff); padding: 4px;
}
.pt-score.has-control { box-shadow: inset 0 0 0 3px var(--pt-aim-yellow, #fc0); }
.pt-score-name { font-size: 0.8rem; font-weight: bold; color: var(--pt-team, #000); }
.pt-score-val { font-size: 1.1rem; font-weight: bold; }

/* Buzzer */
.pt-buzz {
  display: block; width: min(70vw, 280px); height: min(70vw, 280px); margin: 16px auto 8px;
  border-radius: 50%; border: 6px solid var(--pt-ink, #000);
  font: bold 2.4rem var(--pt-font, sans-serif); color: #fff;
  background: var(--pt-chrome-dark, #808080);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.pt-buzz.is-open { background: #e53935; box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.35); }
.pt-buzz.is-sent { background: var(--pt-good, #1a7f37); }
.pt-buzz.is-lockout { background: #5d4037; }

/* Options with names */
.pt-option-text { display: flex; flex-direction: column; }
.pt-pickers { font-size: 0.8rem; font-weight: normal; color: var(--pt-muted-ink, #555); }
.pt-btn.is-picked { outline: 3px solid var(--pt-title-a, #000080); background: var(--pt-aim-yellow, #fc0); }

/* Host remote */
.pt-input-row { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.pt-input-row .pt-input { flex: 1 1 auto; min-width: 0; }
.pt-team-box { border-left: 6px solid var(--pt-team, var(--pt-chrome-dark, #808080)); background: var(--pt-paper, #fff); padding: 8px; margin: 10px 0; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip {
  font: inherit; font-size: 0.95rem; padding: 6px 10px; min-height: 40px;
  background: var(--pt-paper, #fff); border: 2px solid var(--pt-team, #000); cursor: pointer;
}
.pt-chip.is-away { opacity: 0.55; font-style: italic; }
.pt-board .pt-cell { min-height: 44px; font-size: 0.8rem; padding: 2px; }
.pt-board .pt-board-cat { font-size: 0.6rem; padding: 4px 1px; overflow-wrap: anywhere; }
.pt-host-tools { margin-top: 16px; border-top: 2px dotted var(--pt-chrome-dark, #808080); padding-top: 8px; }
.pt-list li.pt-team-0, .pt-list li.pt-team-1 { border-left: 4px solid var(--pt-team); padding-left: 6px; }

/* TV */
#pt-tv-side:empty { display: none; }
.pt-tv-side { gap: 2vh; }
.pt-tv-scores-top { display: flex; gap: 2vw; }
.pt-tv-score {
  display: flex; gap: 1vw; align-items: baseline; padding: 0.6vh 1.2vw;
  background: var(--pt-paper, #fff); color: var(--pt-ink, #000); border: 3px solid var(--pt-team, #000); font-size: 3vh;
}
.pt-tv-score span { color: var(--pt-team, #000); font-weight: bold; }
.pt-tv-score.has-control { box-shadow: 0 0 0 0.6vh var(--pt-aim-yellow, #fc0); }
.pt-tv-cluehead { font-size: 2.6vh; }
.pt-tv-picker { color: var(--pt-team, #000080); }
.pt-tv-ask.pt-team-0, .pt-tv-ask.pt-team-1 { color: #fff; background: var(--pt-team); }
.pt-tv-open { color: #fff; background: #e53935; }
.pt-tv-body .pt-option.is-wrong { opacity: 0.5; text-decoration: line-through; }
.pt-tv-body .pt-option.is-picked { outline: 0.6vh solid var(--pt-title-a, #000080); }
.pt-tv-dd {
  font-size: 10vh; font-weight: bold; text-align: center; color: var(--pt-aim-yellow, #fc0);
  background: var(--pt-dd, #6a1b9a); border: 4px solid var(--pt-ink, #000); padding: 2vh; margin: 1vh 0;
  text-shadow: 0.4vh 0.4vh 0 #000;
}
.pt-tv-media-video video { width: 100%; max-height: 70vh; background: #000; border: 3px solid var(--pt-ink, #000); }
.pt-tv-side .pt-tv-media { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; background: var(--pt-chrome, #c0c0c0); border: 2px solid var(--pt-ink, #000); }
.pt-tv-side .pt-tv-media img { max-height: 60vh; }
.pt-tv-final-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; margin-top: 2vh; }
.pt-tv-final-card { background: var(--pt-paper, #fff); border: 4px solid var(--pt-team, #000); padding: 2vh; text-align: center; }
.pt-tv-final-card h3 { margin: 0; font-size: 4vh; color: var(--pt-team, #000); }
.pt-tv-final-card.is-right { background: #d7f5dd; }
.pt-tv-final-card.is-wrong { background: #fbe0de; }
.pt-tv-final-wager { font-size: 6vh; font-weight: bold; margin: 1vh 0 0; }
.pt-team-window .pt-titlebar { background: var(--pt-team); }
.pt-tv-side:has(.pt-tv-media) { flex-basis: 40vw; }

.pt-chip-wrap { display: inline-flex; align-items: stretch; }
.pt-chip-wrap .pt-chip { border-right: none; }
.pt-chip-x {
  font: inherit; min-width: 40px; min-height: 40px; cursor: pointer;
  background: var(--pt-paper, #fff); color: var(--pt-loss-ink, #b42318);
  border: 2px solid var(--pt-team, #000); border-left: 1px dotted var(--pt-chrome-dark, #808080);
}

/* ══════════════════════════════════════════════════════════════════════════
   Redesign (2026-10-17, mockup approved): AIM look for sign-on / team picks,
   90s fast-food (Memphis) look for the game.
   ══════════════════════════════════════════════════════════════════════════ */

/* Self-hosted (the production CSP blocks Google Fonts): latin subsets from
   Google Fonts, SIL OFL 1.1 — licenses in public/fonts/party-time/. Lexend is
   a variable font (one file covers 400–800). Other characters fall back to
   the system faces in each stack. */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/party-time/bungee.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bowlby One"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/party-time/bowlby-one.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/party-time/bitter-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/party-time/lexend.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --pt-memphis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M12 42q12-16 24 0t24 0t24 0' fill='none' stroke='%23ffc93c' stroke-width='7' stroke-linecap='round'/%3E%3Cpolygon points='152,18 182,64 122,64' fill='%23e8318a'/%3E%3Ccircle cx='58' cy='150' r='13' fill='none' stroke='%236a2ca0' stroke-width='7'/%3E%3Ccircle cx='192' cy='128' r='6' fill='%23111111'/%3E%3Crect x='118' y='158' width='38' height='11' transform='rotate(-30 137 163)' fill='%236a2ca0'/%3E%3Cpath d='M18 204l10-13l10 13l10-13l10 13' fill='none' stroke='%23111111' stroke-width='5' stroke-linejoin='round'/%3E%3Ccircle cx='104' cy='102' r='5' fill='%23ffc93c'/%3E%3Cpath d='M170 196q10-12 20 0' fill='none' stroke='%23e8318a' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pt-phone,
.pt-tv-body {
  --pt-mteal: #19aea3;
  --pt-mpurple: #6a2ca0;
  --pt-mag: #e8318a;
  --pt-yel: #ffc93c;
  --pt-grn: #22b35c;
  --pt-blu: #2f6df6;
  --pt-jblue: #0c1aa8;
  --pt-jblue-used: #070f66;
  --pt-gold: #ffcf3f;
  --pt-k: #111111;
  --pt-display: "Bungee", "Arial Black", Impact, sans-serif;
  --pt-money: "Bowlby One", Impact, "Arial Black", sans-serif;
  --pt-clue: "Bitter", Georgia, "Times New Roman", serif;
  --pt-ui: "Lexend", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Team pairs: Rad Squad (team 0) = yellow plate / pink name; team 1 = the reverse. */
.pt-team-0 { --pt-team: #ffc93c; --pt-team-bg: #ffc93c; --pt-team-fg: #e8318a; }
.pt-team-1 { --pt-team: #e8318a; --pt-team-bg: #e8318a; --pt-team-fg: #ffc93c; }

/* Answer colors + shapes (same on the TV, phones, and host remote) */
.c-0 { background: var(--pt-mag, #e8318a); color: #fff; }
.c-1 { background: var(--pt-blu, #2f6df6); color: #fff; }
.c-2 { background: var(--pt-yel, #ffc93c); color: #111; }
.c-3 { background: var(--pt-grn, #22b35c); color: #fff; }
.shape { display: inline-block; background: #fff; }
.c-2 .shape { background: #111; }
.s-tri { clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.s-dia { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s-cir { border-radius: 50%; }
.s-sq { border-radius: 8%; transform: scale(0.86); }
.g-0 { color: #e8318a; } .g-1 { color: #2f6df6; } .g-2 { color: #c99300; } .g-3 { color: #1a8f48; }

/* ── TV ────────────────────────────────────────────────────────────────── */
.pt-tv-body.is-aim { background: #008080; }
.pt-tv-body.is-game { background-color: #19aea3; background-image: var(--pt-memphis); background-size: 11vw 11vw; }
.pt-tv-body.is-aim #pt-tv-top:empty { display: none; }
.pt-tv-body.is-game #pt-tv-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5vw; }
.pt-brand { font-family: var(--pt-display); text-transform: uppercase; font-size: 3vh; color: #fff; text-shadow: 0.35vh 0.35vh 0 #111; letter-spacing: 0.1vh; }
.pt-room { justify-self: end; font: 600 2vh var(--pt-ui); color: #fff; background: #111; padding: 0.7vh 1.2vw; }
.pt-plaques { display: flex; gap: 2vw; }
.pt-plaque { position: relative; display: flex; align-items: baseline; gap: 1.2vw; background: var(--pt-team-bg); border: 0.5vh solid #111; box-shadow: 0.7vh 0.7vh 0 #111; padding: 0.7vh 1.6vw; }
.pt-plaque .nm { font-family: var(--pt-display); font-size: 2.8vh; color: var(--pt-team-fg); text-shadow: 0.2vh 0.2vh 0 #111; }
.pt-plaque .amt, .pt-pplaque .amt, .pt-white-money {
  font-family: var(--pt-money); color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: -0.04em -0.04em 0 #111, 0.04em -0.04em 0 #111, -0.04em 0.04em 0 #111, 0.04em 0.04em 0 #111, 0.09em 0.09em 0 #111;
}
.pt-plaque .amt { font-size: 4vh; }
.pt-plaque.control::before, .pt-pplaque.control::before {
  content: "PICKS"; position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--pt-display); background: #111; color: #fff; letter-spacing: 0.05em;
}
.pt-plaque.control::before { top: -2.3vh; font-size: 1.5vh; padding: 0.25vh 0.8vw; }

.pt-sticker {
  justify-self: start; display: inline-block; font-family: var(--pt-display); font-size: 3vh;
  background: var(--pt-yel); color: #111; border: 0.45vh solid #111; box-shadow: 0.6vh 0.6vh 0 #111;
  padding: 0.6vh 1.4vw; transform: rotate(-1.5deg);
}
.pt-sticker.pt-team-0, .pt-sticker.pt-team-1 { background: var(--pt-team-bg); color: var(--pt-team-fg); text-shadow: 0.2vh 0.2vh 0 #111; }
.pt-sticker.is-pink { background: var(--pt-mag); color: #fff; }

.pt-board-area { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 2vh; }
.pt-jboard { height: 100%; display: grid; gap: 0.7vh; background: #111; border: 0.7vh solid #111; box-shadow: 1.2vh 1.2vh 0 #111; }
.pt-jcat { background: var(--pt-jblue); color: #fff; font-family: var(--pt-display); font-size: 2.6vh; display: grid; place-items: center; text-align: center; padding: 1.4vh 0.5vw; line-height: 1.1; text-transform: uppercase; }
.pt-jval { background: var(--pt-jblue); color: var(--pt-gold); font-family: var(--pt-money); font-size: 5.4vh; display: grid; place-items: center; text-shadow: 0.45vh 0.45vh 0 #000; }
.pt-jval.used { background: var(--pt-jblue-used); color: transparent; text-shadow: none; }

.pt-clue-area { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 2vh; }
.pt-clue-head { display: flex; flex-wrap: wrap; gap: 1.2vw; align-items: center; }
.pt-clue-head .pt-sticker { justify-self: auto; }
.pt-cluecard { background: var(--pt-jblue); border: 0.7vh solid #111; box-shadow: 1.2vh 1.2vh 0 #111; display: grid; place-items: center; padding: 2vh 3vw; min-height: 0; overflow: hidden; }
.pt-cluecard .q { font: 800 6.6vh var(--pt-clue); color: #fff; text-transform: uppercase; text-align: center; line-height: 1.2; text-wrap: balance; text-shadow: 0.4vh 0.4vh 0 #111; }
.pt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8vh 1.6vw; }
.pt-tile { box-sizing: border-box; display: flex; align-items: center; gap: 1.4vw; padding: 1.6vh 1.4vw; border: 0.6vh solid #111; box-shadow: 0.9vh 0.9vh 0 #111; font: 800 4.2vh var(--pt-ui); min-width: 0; }
.pt-tile .shape { flex: 0 0 auto; width: 5vh; height: 5vh; }
.pt-tile .txt { min-width: 0; overflow-wrap: anywhere; }
.pt-tile .who { margin-left: auto; font: 600 2.2vh var(--pt-ui); background: #111; color: #fff; padding: 0.5vh 0.8vw; white-space: nowrap; }
/* Ruled out / not the answer: solid grey, same as the phones (no see-through) */
.pt-tile.dim, .pt-tile.is-wrong { filter: grayscale(1) brightness(1.25) contrast(0.6); box-shadow: 0.4vh 0.4vh 0 #111; }
.pt-tile.is-wrong .txt { text-decoration: line-through; }
.pt-tile.is-picked { outline: 0.8vh solid #fff; outline-offset: 0.4vh; }
.pt-tile.win { outline: 1vh solid var(--pt-yel); outline-offset: 0.6vh; animation: pt-win 0.9s cubic-bezier(.2,1.4,.4,1) both; }
.pt-tiles.enter .pt-tile { animation: pt-tile-in 0.32s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--pt-enter-delay, 0s) + var(--i, 0) * 90ms); }
.pt-status { justify-self: center; font-family: var(--pt-display); font-size: 3.2vh; padding: 0.9vh 2.4vw; border: 0.55vh solid #111; box-shadow: 0.8vh 0.8vh 0 #111; background: #111; color: #fff; text-align: center; }
.pt-status.open { background: #e5383b; animation: pt-pulse 1s ease-in-out infinite; }
.pt-status.pt-team-0, .pt-status.pt-team-1 { background: var(--pt-team-bg); color: var(--pt-team-fg); text-shadow: 0.2vh 0.2vh 0 #111; }

.pt-splash { position: relative; height: 100%; display: grid; place-items: center; border: 0.7vh solid #111; box-shadow: 1.2vh 1.2vh 0 #111; overflow: hidden; background: var(--pt-mpurple); }
.pt-splash::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg, #6a2ca0 0 9deg, #e8318a 9deg 18deg); animation: pt-spin 40s linear infinite; }
.pt-splash.is-final::before { background: repeating-conic-gradient(from 0deg, #0c1aa8 0 9deg, #19aea3 9deg 18deg); }
.pt-splash.is-champs::before { background: repeating-conic-gradient(from 0deg, #ffc93c 0 9deg, #e8318a 9deg 18deg); }
.pt-splash-inner { position: relative; display: grid; justify-items: center; gap: 3vh; padding: 3vh 3vw; }
.pt-splash-inner .pt-sticker { justify-self: center; }
.pt-big-word { font-family: var(--pt-money); font-size: 16vh; line-height: 0.95; color: var(--pt-gold); text-align: center; text-shadow: 1.3vh 1.3vh 0 #111; -webkit-text-stroke: 0.4vh #111; animation: pt-pop 0.6s cubic-bezier(.2,1.4,.4,1) both; }
.after-zoom .pt-big-word { animation-delay: 1.2s; }
/* Daily Double clue (host reads it aloud): magenta card, the team's wager plate below. */
.pt-clue-area.is-dd .pt-cluecard { background: #c2187a; }
.pt-dd-wager { justify-self: center; display: flex; align-items: baseline; gap: 2vw; background: var(--pt-team-bg); border: 0.6vh solid #111; box-shadow: 0.9vh 0.9vh 0 #111; padding: 1vh 2.4vw; }
.pt-dd-wager .nm { font-family: var(--pt-display); font-size: 4.2vh; color: var(--pt-team-fg); text-shadow: 0.3vh 0.3vh 0 #111; }
.pt-dd-wager .amt { font-family: var(--pt-money); font-size: 5.6vh; color: #fff; text-shadow: 0.4vh 0.4vh 0 #111; -webkit-text-stroke: 0.2vh #111; white-space: nowrap; }
.pt-splash-cat { font-family: var(--pt-display); font-size: 7vh; color: #fff; text-align: center; text-shadow: 0.6vh 0.6vh 0 #111; text-wrap: balance; }
.pt-chip-row { display: flex; gap: 1.5vw; flex-wrap: wrap; justify-content: center; }

.pt-fcards { display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; }
.pt-fcard { background: var(--pt-team-bg); border: 0.7vh solid #111; box-shadow: 1vh 1vh 0 #111; padding: 2vh 1.5vw; text-align: center; display: grid; gap: 1.2vh; justify-items: center; align-content: center; }
.pt-fcard.is-shown { animation: pt-pop 0.5s cubic-bezier(.2,1.4,.4,1) both; }
.pt-fcard h3 { margin: 0; font-family: var(--pt-display); font-size: 4vh; color: var(--pt-team-fg); text-shadow: 0.2vh 0.2vh 0 #111; }
.pt-fcard .ans { font: 800 3vh var(--pt-ui); background: #fff; color: #111; border: 0.4vh solid #111; padding: 0.6vh 1vw; }
.pt-fcard .delta { font-size: 7vh; }
.pt-fcard .verdict { font-family: var(--pt-display); font-size: 3vh; background: #111; color: #fff; padding: 0.4vh 1vw; }
.pt-answer-line { justify-self: center; font: 800 3.4vh var(--pt-ui); background: #fff; border: 0.5vh solid #111; box-shadow: 0.7vh 0.7vh 0 #111; padding: 0.8vh 1.6vw; }

.pt-champ-plaques { display: flex; gap: 3vw; }
.pt-champ-plaques .pt-plaque .nm { font-size: 4vh; }
.pt-champ-plaques .pt-plaque .amt { font-size: 6vh; }

.pt-tv-body.is-game .pt-tv-side > .pt-media-frame { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; background: #fff; border: 0.7vh solid #111; box-shadow: 1.2vh 1.2vh 0 #111; padding: 1vh; }
.pt-media-frame img { max-width: 100%; max-height: 62vh; }
.pt-media-frame video { width: 100%; max-height: 70vh; background: #000; }
.pt-media-frame .pt-listen { font-family: var(--pt-display); font-size: 5vh; color: #111; }

.pt-zoom { position: absolute; z-index: 20; background: var(--pt-jblue); border: 0.7vh solid #111; display: grid; place-items: center; transform-origin: 0 0; overflow: hidden; }
.pt-zoom span { font-family: var(--pt-money); font-size: 18vh; color: var(--pt-gold); text-shadow: 1.2vh 1.2vh 0 #000; text-align: center; line-height: 1; }
.pt-zoom.is-dd span { font-size: 13vh; }

/* AIM lobby */
/* The AIM headline bar (owner's pick "C"): glossy XP blue, white Trebuchet.
   TV logo here; the phone/remote headings (.pt-signon-logo) use the same look. */
.pt-aim-logo, .pt-signon-logo {
  background: linear-gradient(180deg, #3d8dff 0%, #0058ee 45%, #0046c8 100%);
  border: 0.3vh solid #0035a8; border-radius: 1.2vh;
  font: bold 7vh/1.1 "Trebuchet MS", Tahoma, Verdana, sans-serif; color: #fff;
  text-shadow: 0.3vh 0.3vh 0 rgba(0, 0, 0, 0.45);
  padding: 2vh 2vw; text-align: center; text-wrap: balance; letter-spacing: normal;
}
.pt-buddy-grp { justify-self: start; font-weight: bold; margin-top: 0.8vh; padding: 0 0.6vw; border: 0.2vh solid #000; background: var(--pt-team-bg); color: var(--pt-team-fg); text-shadow: 0.1vh 0.1vh 0 #111; }
.pt-buddies-list { background: #fff; border: 0.25vh solid; border-color: #808080 #fff #fff #808080; padding: 1vh 1vw; display: grid; gap: 0.6vh; align-content: start; font-size: 2.6vh; }

@keyframes pt-tile-in { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes pt-win { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1.03); } }
@keyframes pt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@keyframes pt-pop { from { transform: scale(0.2) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Phones (players in the game; host remote keeps its AIM panels) ───── */
body:has(.pt-phone.is-game) { background-color: #19aea3 !important; background-image: var(--pt-memphis) !important; background-size: 110px 110px !important; }
.pt-play { display: grid; gap: 14px; padding: 4px 0 28px; }
.pt-pplaques { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.pt-pplaque { position: relative; background: var(--pt-team-bg); border: 4px solid #111; box-shadow: 5px 5px 0 #111; display: grid; justify-items: center; padding: 6px 4px; min-width: 0; }
.pt-pplaque .nm { font-family: var(--pt-display); font-size: 14px; color: var(--pt-team-fg); text-shadow: 1px 1px 0 #111; text-align: center; overflow-wrap: anywhere; }
.pt-pplaque .amt { font-size: 24px; }
.pt-pplaque.control::before { top: -13px; font-size: 10px; padding: 1px 8px; }
.pt-phone .pt-sticker { justify-self: center; font-size: 17px; border-width: 3px; box-shadow: 4px 4px 0 #111; padding: 4px 12px; }
.pt-card { background: #fff; border: 4px solid #111; box-shadow: 5px 5px 0 #111; padding: 14px; text-align: center; font: 600 17px var(--pt-ui); color: #111; }
.pt-card small { display: block; font-weight: 400; font-size: 14px; color: #444; margin-top: 4px; }
.pt-card.big { font-family: var(--pt-display); font-weight: normal; font-size: 22px; }
.pt-you-team { justify-self: center; font: 800 16px var(--pt-ui); background: var(--pt-team-bg); color: var(--pt-team-fg); border: 3px solid #111; padding: 4px 12px; text-shadow: 1px 1px 0 #111; }
.pt-play .pt-buzz { border-width: 8px; box-shadow: 8px 8px 0 #111; font-family: var(--pt-money); font-size: 3rem; text-shadow: 3px 3px 0 #111; }
.pt-play .pt-buzz.is-open { background: #e5383b; box-shadow: 8px 8px 0 #111, 0 0 0 14px rgba(229, 56, 59, 0.35); }
.pt-play .pt-buzz.is-sent { background: var(--pt-grn); }
.pt-play #pt-buzz-hint { font-family: var(--pt-display); font-size: 22px; color: #fff; text-shadow: 2px 2px 0 #111; }
.pt-ptiles { display: grid; gap: 12px; }
.pt-ptile {
  box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px;
  padding: 12px 14px; border: 4px solid #111; box-shadow: 5px 5px 0 #111; font: 800 19px var(--pt-ui);
  text-align: left; cursor: pointer; touch-action: manipulation;
}
.pt-ptile .shape { flex: 0 0 auto; width: 28px; height: 28px; }
.pt-ptile .t { display: grid; min-width: 0; overflow-wrap: anywhere; }
.pt-ptile .t small { font: 600 13px var(--pt-ui); opacity: 0.95; }
.pt-ptile.mine { outline: 5px solid #fff; outline-offset: 3px; }
.pt-ptile.is-correct { outline: 6px solid var(--pt-yel); outline-offset: 3px; }
.pt-ptile.is-dim { filter: grayscale(1) brightness(1.25) contrast(0.6); text-decoration: line-through; box-shadow: 2px 2px 0 #111; }
.pt-ptile:disabled { cursor: default; }
.pt-ptile:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #111; }
.pt-presult { font-family: var(--pt-display); font-size: 28px; text-align: center; color: #fff; text-shadow: 3px 3px 0 #111; }

@media (prefers-reduced-motion: reduce) {
  .pt-tiles.enter .pt-tile, .pt-splash::before, .pt-big-word, .pt-status.open, .pt-tile.win, .pt-fcard.is-shown, .pt-answer-card { animation: none !important; }
}
.pt-tv-stage > .pt-board-area,
.pt-tv-stage > .pt-clue-area,
.pt-tv-stage > .pt-splash { flex: 1 1 auto; min-height: 0; }
.pt-tv-side:has(.pt-media-frame) { flex-basis: 40vw; }
.pt-tv-side > .pt-media-frame { flex: 1 1 auto; }
/* A video clue (the sisters' Daily Doubles) is the star: most of the screen, the clue card a narrow column. */
.pt-tv-side:has(.pt-media-frame video) { flex-basis: 64vw; }
/* At the reveal the answer and rulings need the room: the video steps back. */
.pt-tv-body.is-reveal .pt-tv-side:has(.pt-media-frame video) { flex-basis: 42vw; }
/* Money never wraps (a negative score read as a stray dash over "$1,000"). */
.pt-plaque .amt, .pt-pplaque .amt, .pt-white-money { white-space: nowrap; }
.pt-media-frame video { max-height: 78vh; }
.pt-bud { display: flex; align-items: center; gap: 0.6vw; padding-left: 1vw; color: #111; }
/* Host remote: tools as a 2×2 grid (no 3-line "Go to Final"); category heads never split mid-word */
.pt-host-tools > .pt-btn-row { display: grid; grid-template-columns: 1fr 1fr; }
.pt-board .pt-board-cat { font-size: 0.5rem; overflow-wrap: normal; word-break: normal; }
.pt-window-body .pt-ptile { min-height: 52px; font-size: 17px; }
/* TV key prompt (locked TV page) */
.pt-tv-gate { min-height: 100vh; display: grid; place-items: center; padding: 2vh 2vw; box-sizing: border-box; }
.pt-tv-gate .pt-window { width: min(560px, 92vw); font-size: 18px; }
.pt-tv-gate form { display: grid; gap: 10px; }

/* AIM screens on phones (sign-on, lobby, host remote) sit on the teal desktop */
body:has(.pt-phone:not(.is-game)) { background: #008080 !important; }
/* Host remote: tiles inside a window get a dark selection ring (white is lost on the beige) */
.pt-window-body .pt-ptile.mine, .pt-window-body .pt-ptile.is-correct { outline: 4px solid #111; outline-offset: 2px; }
.pt-ptiles.compact { gap: 8px; margin-top: 6px; }
.pt-ptiles.compact .pt-ptile { min-height: 44px; padding: 8px 10px; gap: 10px; font-size: 15px; border-width: 3px; box-shadow: 3px 3px 0 #111; }
.pt-ptiles.compact .pt-ptile .shape { width: 20px; height: 20px; }

/* TV waiting: a compact centered dialog instead of a full-screen window */
.pt-tv-stage > .pt-window.pt-dialog { flex: 0 0 auto; align-self: center; margin: auto; width: min(72vw, 1200px); }
.pt-tv-stage > .pt-window.pt-dialog .pt-window-body { padding: 3vh 2.5vw; }

/* Splash moments fill the whole TV; the top row (brand, scores, room) floats over them */
.pt-tv-body.is-splash .pt-tv-stage > .pt-splash { position: fixed; inset: 0; z-index: 1; border: 0; box-shadow: none; padding-top: 9vh; }
.pt-tv-body.is-splash #pt-tv-top { position: relative; z-index: 3; }

/* TV Sign On window: headline bar on top, QR + address centered in the space below */
.pt-tv-stage > .pt-window.pt-signon-win .pt-window-body { justify-content: flex-start; gap: 2vh; }
.pt-signon-win .pt-join { flex: 1 1 auto; align-content: center; }

/* Team name ideas: player suggest box, host's tappable suggestion chips */
.pt-suggest { margin: 12px 0; padding: 10px; background: var(--pt-paper, #fff); border: 2px solid; border-color: var(--pt-chrome-dark, #aca899) #fff #fff var(--pt-chrome-dark, #aca899); }
.pt-suggest .pt-label { margin-top: 0; }
.pt-ideas { margin: 4px 0 6px; padding-left: 20px; }
.pt-team-name-line { margin: 0 0 6px; font-size: 1.05rem; }
.pt-chip.pt-sugg small { font-size: 0.75em; opacity: 0.7; }
.pt-chip.pt-sugg.is-picked { background: var(--pt-aim-yellow, #fc0); font-weight: bold; }

/* Free answers on the TV: the answer card and each team's ruling at the reveal */
.pt-answer-row { display: flex; flex-wrap: wrap; gap: 1.5vh 1.6vw; justify-content: center; align-items: center; }
.pt-answer-card {
  display: flex; align-items: center; gap: 1.4vw; max-width: 100%;
  background: #fff; color: #111; border: 0.6vh solid #111; box-shadow: 0.9vh 0.9vh 0 #111;
  padding: 1.2vh 2.2vw; font: 800 5.2vh var(--pt-ui);
  animation: pt-pop 0.5s cubic-bezier(.2,1.4,.4,1) both;
}
.pt-answer-card .lbl { font: 400 2.4vh var(--pt-display); background: var(--pt-yel); border: 0.35vh solid #111; padding: 0.3vh 0.8vw; }
.pt-answer-card .txt { min-width: 0; overflow-wrap: break-word; word-break: normal; hyphens: none; }
.pt-rulings { display: flex; flex-wrap: wrap; gap: 1vw; justify-content: center; }
.pt-ruling {
  font-family: var(--pt-display); font-size: 3vh; padding: 0.8vh 1.4vw;
  background: var(--pt-team-bg); color: var(--pt-team-fg); text-shadow: 0.2vh 0.2vh 0 #111;
  border: 0.45vh solid #111; box-shadow: 0.6vh 0.6vh 0 #111;
}
.pt-ruling.is-wrong { filter: grayscale(0.7) brightness(1.1); }

/* Free answers on the phones: "your turn" card, the answer, and the host's Correct / Wrong buttons */
.pt-card.pt-your-turn { background: var(--pt-yel); }
.pt-answer-text { display: block; margin-top: 4px; font: 800 24px var(--pt-ui); color: #111; overflow-wrap: anywhere; }
.pt-judge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.pt-judge-row .pt-btn { min-height: 64px; font-size: 1.2rem; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); }
.pt-btn.pt-btn-right { background: #22b35c; }
.pt-btn.pt-btn-wrong { background: #e5383b; }
.pt-judge-row .pt-btn.is-picked { outline: 4px solid #111; outline-offset: 2px; }
.pt-btn.pt-btn-small { min-height: 36px; padding: 4px 10px; font-size: 0.85rem; flex: 0 0 auto; }
.pt-host-answer-box { background: var(--pt-paper, #fff); border: 2px solid; border-color: var(--pt-chrome-dark, #aca899) #fff #fff var(--pt-chrome-dark, #aca899); padding: 8px 10px; margin: 8px 0; }
.pt-list li { gap: 8px; align-items: center; }
.pt-list li.is-ignored { opacity: 0.55; }
/* Phones: buzzers just opened — a full-screen green flash (the phone is the cue, not the TV). */
@keyframes pt-go-flash { from { opacity: 0.85; } to { opacity: 0; } }
body.pt-go-flash::after { content: ''; position: fixed; inset: 0; background: #22c55e; pointer-events: none; z-index: 9998; animation: pt-go-flash 0.6s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { body.pt-go-flash::after { animation-duration: 0.01s; } }
