@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-ExtraBold.ttf') format('truetype');
  font-display: swap;
  font-weight: 800;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Bold.ttf') format('truetype');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-Black.ttf') format('truetype');
  font-display: swap;
  font-weight: 900;
}
:root {
  color-scheme: dark;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #251025;
  color: #fff4e6;
  --ink: #251025;
  --amber: #ffd277;
  --paper: #fff1dc;
  --panel: #401b34;
  --surface: #301529;
  --amber-shade: #a96a32;
  --amber-text: #2e1d22;
  --cream: #fff4e6;
  --muted: #ead0dc;
  --border: #9c675e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(.quiz-flow:not([hidden])) { background: var(--surface); }
body:has(:is(.title-screen, .theatre-turn, .score-stage, #spotlight-turn, #join, #host, #solo-setup, #solo-results, #recap):not([hidden])) {
  background: linear-gradient(#200a2040, #200a2040), url('/art/main-stage.jpg') center 76% / cover fixed #351427;
}
body:has(:is(.player-screen, #achievements):not([hidden])) {
  background: linear-gradient(#200a2054, #200a2054), url('/art/dressing-room.jpg') center 76% / cover fixed #351427;
}
body:has(#shop:not([hidden])) {
  background: linear-gradient(#200a2054, #200a2054), url('/art/costume-shop.jpg') center 76% / cover fixed #351427;
}
body:has(:is(.theatre-turn, .score-stage, #spotlight-turn):not([hidden])) #pack-backdrop { opacity: .22; }
#pack-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#pack-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
#pack-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#141327ad, #141327c4 28%, #1413278c 58%, #141327ed);
}
main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: min(100%, 67rem);
  padding: clamp(1rem, 4vw, 2rem);
  padding-block-start: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-top));
  padding-block-end: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-bottom));
  padding-inline-start: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  padding-inline-end: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  margin-inline: auto;
}
main:has(.title-screen:not([hidden]), .quiz-flow:not([hidden])) {
  --page-gutter: 1.25rem;
  --page-top: 1rem;
  --page-bottom: 1rem;
  padding: calc(env(safe-area-inset-top) + var(--page-top))
    calc(env(safe-area-inset-right) + var(--page-gutter))
    calc(env(safe-area-inset-bottom) + var(--page-bottom))
    calc(env(safe-area-inset-left) + var(--page-gutter));
}
main:has(.title-screen:not([hidden])) {
  --page-gutter: clamp(1.4375rem, 4vw, 2.5rem);
  --page-top: .9375rem;
  --page-bottom: 1.5rem;
  width: 100%;
}
.screen { width: min(100%, 40rem); margin-inline: auto; }
.topbar { display: flex; justify-content: end; gap: .55rem; min-height: 3rem; }
.topbar:not(:has(button:not([hidden]))) { min-height: 0; }
#back { margin-inline-end: auto; }
.costume-bag { position: relative; width: 1.1rem; height: .85rem; border: 2px solid; border-radius: .2rem; margin-top: .25rem; }
.costume-bag::before { content: ''; position: absolute; width: .55rem; height: .38rem; border: 2px solid; border-bottom: 0; border-radius: .3rem .3rem 0 0; inset: -.45rem 0 auto; margin-inline: auto; }
#retry-connection { align-self: center; }
.seat-mascot img { width: 100%; height: 100%; object-fit: contain; }
h1 {
  font: 800 clamp(2.75rem, 8vw, 4.75rem)/.96 'Barlow Condensed', system-ui, sans-serif;
  margin: 0 0 1.4rem;
}
h1:focus { outline: none; }
.title-screen {
  display: grid;
  align-content: center;
  flex: 1;
  gap: .68rem;
  margin-block: 0;
  text-align: center;
  max-width: 32rem;
  padding-block: 1rem .45rem;
}
.title-screen h1 {
  color: var(--amber);
  font-size: clamp(4.25rem, 12svh, 6rem);
  font-weight: 900;
  line-height: .96;
  margin: 0 auto;
  padding: .5rem clamp(1.15rem, 6vw, 2.1rem) .55rem;
  width: min(82%, 24rem);
  border: 2px solid #fbc578;
  border-bottom: 5px solid #9e482e;
  border-radius: 1.55rem;
  background: linear-gradient(#a12548, #651038);
  box-shadow: 0 0 1.4rem #e7854744, inset 0 0 0 3px #b5495445;
  text-shadow: 0 5px 1px #703c4a;
  text-transform: uppercase;
}
.title-screen h1 span { display: block; }
.title-screen .title-lead { color: #fff0d4; font-size: .43em; line-height: 1.1; text-shadow: 0 2px 1px #453043; text-transform: none; }
.title-screen .title-bulbs {
  height: .6rem;
  margin-block: .08rem .18rem;
  background: radial-gradient(circle at center, #fff0b4 0 2px, #ffc46c69 3px, transparent 5px)
    left center / calc(100% / 8) 100% repeat-x;
}
.player-symbol { display: block; position: relative; width: 1.1rem; height: 1.15rem; }
.player-symbol::before, .player-symbol::after { content: ''; position: absolute; background: var(--cream); left: 50%; translate: -50%; }
.player-symbol::before { top: 0; width: .48rem; height: .48rem; border-radius: 50%; }
.player-symbol::after { bottom: .05rem; width: .98rem; height: .45rem; border-radius: .5rem .5rem .11rem .11rem; }
.actions.title-actions { gap: .5rem; }
.title-actions button span { display: inline-block; margin-inline-end: .35rem; width: 1.1em; }
.title-actions button.quiz-action { font-size: clamp(1.1rem, 4.7vw, 1.3125rem); }
.title-host { position: relative; display: grid; place-items: center; }
.title-host img { z-index: 1; width: clamp(5rem, 24svh, 12.75rem); height: auto; }
.title-host::before { content: ''; position: absolute; bottom: 5%; width: 36%; height: 11%;
  border: 1px solid #f2b477; border-bottom: 4px solid #8c283c;
  background: linear-gradient(#a73748, #691c35); box-shadow: 0 .25rem .8rem #250e22; border-radius: 45%; }
@media (max-width: 22rem) {
  .title-screen h1 { font-size: clamp(3.9rem, 13svh, 5.25rem); }
}
.panel {
  margin-block: auto;
  padding: clamp(1.2rem, 5vw, 2.4rem);
  background: var(--panel);
  border: 1px solid #a97959;
  border-radius: 1.25rem;
}
.room-entry {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: min(100%, 54rem);
  margin-block: .35rem 0;
}
.room-entry h1 { font-size: clamp(2.75rem, 8vw, 3.65rem); margin: 0 0 1rem; }
.room-entry form { display: flex; flex: 1; flex-direction: column; }
.room-entry form > button[type="submit"], #join-room { margin-block-start: auto; }
#room-code-help { margin: .15rem .25rem .85rem; color: var(--muted); }
.player-screen { width: min(100%, 46rem); margin-block: .25rem auto; }
.player-heading { display: flex; align-items: center; flex-wrap: wrap; column-gap: .85rem; margin-bottom: 1.15rem; }
.player-heading h1 { margin: 0; }
body:has(:is(.player-screen, #achievements):not([hidden])) .player-heading h1 {
  background: linear-gradient(#912342, #63172f);
  border: 1px solid #ecaa70;
  border-bottom-width: 3px;
  border-radius: .7rem;
  padding: .17rem .65rem .25rem;
}
.player-profile { display: grid; gap: 1rem; }
#open-achievements, #open-shop, #open-question-packs { grid-column: 1 / -1; }
.question-pack-actions { display: grid; gap: .65rem; margin-block: .8rem; }
.question-pack-actions button { overflow-wrap: anywhere; }
.pack-answer-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pack-answer-inputs input { width: 100%; margin-top: .2rem; }
#question-pack-delete-confirm {
  width: min(calc(100% - 2rem), 24rem);
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: var(--panel);
  color: var(--cream);
}
#question-pack-delete-confirm::backdrop { background: rgb(10 9 19 / 80%); }
.shop-content, #shop-item { display: grid; gap: .8rem; }
.shop-stage {
  overflow: hidden;
  border: 1px solid #d5a468;
  border-bottom-width: 4px;
  border-radius: 1.1rem;
  background: #611c38;
}
#shop-preview { border: 0; border-radius: 0; }
#shop-heading { font-size: clamp(2rem, 7.8vw, 3.5rem); }
#shop-name {
  margin: 0;
  padding: .3rem .55rem .4rem;
  border-top: 1px solid #d5a468;
  color: var(--cream);
  text-align: center;
  font: 800 clamp(1.55rem, 5vw, 2.125rem)/1.15 'Barlow Condensed', system-ui, sans-serif;
}
#shop-status { margin: 0; color: var(--muted); }
#shop-status:empty { display: none; }
@media (max-width: 360px) {
  .mascot-choices button.quiz-navigation.quiet {
    width: max(44px, 2rem);
    height: max(44px, 2rem);
    min-height: max(44px, 2rem);
  }
}
.achievement-card {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: .875rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--panel);
}
.achievement-details { flex: 1; min-width: min(6rem, 100%); }
.achievement-card h2, .achievement-card p { margin: 0; }
.achievement-card h2 { font: 800 1.625rem/1.2 'Barlow Condensed', system-ui, sans-serif; }
.achievement-collection { display: grid; gap: .75rem; }
.achievement-collection:empty { display: none; }
.achievement-card p, .achievement-card strong { color: var(--muted); }
.achievement-star {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.375rem;
}
.achievement-card[data-unlocked] .achievement-star { background: var(--amber); border-color: var(--amber-shade); color: var(--amber-text); }
.achievement-card[data-unlocked] strong { color: var(--amber); }
#achievement-status { margin: 0; color: var(--muted); }
#achievement-status:empty { display: none; }
.player-card, #mascot-form { display: grid; justify-items: stretch; gap: .8rem; }
.profile-mascot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 7rem;
  background: radial-gradient(ellipse at 50% 63%, #bf6e474a, #35132958 64%);
  border: 1px solid #d69a72;
  border-bottom-width: 3px;
  border-radius: 1.1rem;
}
.profile-mascot::before { content: ''; position: absolute; left: 31%; right: 31%; bottom: 3%; height: .68rem;
  border-radius: 99px; background: #e7a55f; border-bottom: .23rem solid #76283a; }
.profile-mascot img { position: relative; display: block; width: auto; height: clamp(7rem, 24svh, 13rem); max-width: 100%; object-fit: contain; }
:is(#mascot-preview, #shop-preview) {
  --preview-height: clamp(7.75rem, 32svh, 17.25rem);
  block-size: var(--preview-height);
}
:is(#mascot-preview, #shop-preview) img { height: var(--preview-height); max-height: 100%; }
.profile-mascot[aria-busy="true"] img { visibility: hidden; }
.profile-mascot[aria-busy="true"]::after {
  content: '';
  position: absolute;
  width: 1.9rem;
  aspect-ratio: 1;
  border: 3px solid #ffd27755;
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: preview-spin .75s linear infinite;
}
@keyframes preview-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .profile-mascot[aria-busy="true"]::after { animation: none; }
}
.mascot-choices { display: grid; gap: .5rem; }
@media (min-width: 45rem) { .mascot-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option-cycle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; }
.cycle-card {
  display: grid;
  gap: .1rem;
  place-content: center;
  text-align: center;
  min-height: 3rem;
  padding: .2rem .5rem;
  border: 1px solid #cda782;
  border-bottom: 3px solid #ae7e5a;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cycle-card span { color: #704f40; text-transform: uppercase; font-size: .6875rem; letter-spacing: .08em; }
.cycle-card strong { font: 800 clamp(1.3rem, 4vw, 1.7rem)/1.1 'Barlow Condensed', system-ui, sans-serif; }
.cycle-next .back-chevron { transform: rotate(180deg); }
button.quiz-navigation.quiet:is(.cycle-previous, .cycle-next) {
  border: 2px solid #e7a774;
  border-bottom: 3px solid #935436;
  background: linear-gradient(#713456, #481c42);
}
.player-data { border-top: 1px solid #8f6e87; padding-top: .45rem; margin-top: 1rem; }
.player-data summary { min-height: 2.75rem; padding-block: .65rem; cursor: pointer; }
.player-data .actions { padding-top: .3rem; }
.player-policies { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; }
.player-policies a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; }
.provider-options { display: grid; gap: .75rem; margin-top: 1rem; }
.provider-options:not(:has(.provider-sign-in:not([hidden]))) { display: none; }
.provider-sign-in { width: min(100%, 264px); }
.provider-sign-in p { margin-block: .6rem; }
.provider-sign-in p:empty { margin: 0; }
#apple-button {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#apple-button img { display: block; width: 100%; height: auto; }
@media (min-width: 44rem) {
  .player-profile { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 43.99rem) and (max-height: 45rem) {
  .profile-mascot img { height: clamp(6rem, 19svh, 10rem); }
  :is(#mascot-preview, #shop-preview) { --preview-height: clamp(7rem, 28svh, 13rem); }
}
button, input, select { font: inherit; }
button, input, select {
  min-height: 3rem;
  padding: .65rem .95rem;
  border: 1px solid #baa584;
  border-radius: .75rem;
}
button {
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  box-shadow: inset 0 -3px #b67c2e;
}
button.secondary, button.quiet {
  background: var(--panel);
  color: var(--paper);
  box-shadow: none;
}
button.quiet { min-height: 2.75rem; }
button.ink { background: var(--ink); color: var(--paper); box-shadow: none; }
button:disabled { opacity: .58; cursor: default; }
:is(input, select, button):focus-visible { outline: 3px solid #ffdf8f; outline-offset: 3px; }
input, select { color: var(--paper); background: var(--ink); width: 100%; }
form, .actions { display: grid; gap: .75rem; }
label { font-weight: 700; }
.pack-field { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.pack-field legend { padding: 0; margin-bottom: .45rem; font-weight: 700; }
.pack-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.9rem), 1fr)); gap: .5rem; }
.pack-cards label {
  position: relative;
  display: grid;
  align-content: center;
  gap: .2rem;
  min-height: 4.75rem;
  padding: .5rem .2rem;
  border: 1px solid #8f6e87;
  border-radius: .75rem;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pack-cards input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); margin: 0; padding: 0; }
.pack-cards label:has(input:checked) { border-color: var(--amber); background: #413050; }
.pack-cards label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.pack-mark { color: var(--amber); font-size: 1.5rem; }
.game-pack-cards label {
  gap: .3rem;
  min-height: clamp(5.2rem, 13vw, 7.25rem);
  border: 2px solid #ecd0a1;
  border-bottom: 4px solid #af805a;
  background: linear-gradient(#fff7e8, #f1deb8);
  color: var(--ink);
  font: 800 clamp(1.13rem, 3.3vw, 1.65rem)/1.05 'Barlow Condensed', system-ui, sans-serif;
}
.game-pack-cards .pack-mark { color: #8b4835; font-size: 1.8rem; }
.game-pack-cards label[data-pack="christmas"] { background: #25463b; border-color: #739771; border-bottom-color: #182f28; color: var(--cream); }
.game-pack-cards label[data-pack="christmas"] .pack-mark { color: #ffe2a1; }
.game-pack-cards label:has(input:checked) { border-color: #ffe8aa; border-bottom-color: #a7662c; background: #ffd277; color: var(--ink); }
.game-pack-cards label:has(input:checked) .pack-mark { color: #8b4835; }
.rounds-link, .round-row { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.rounds-link { text-align: start; }
.rounds-link small { display: block; margin-top: .25rem; color: var(--amber); }
button.game-round-card {
  background: linear-gradient(#713456, #48213d);
  border: 2px solid #d69b83;
  border-bottom: 4px solid #27132b;
  color: var(--cream);
}
.game-round-card strong { font: 800 1.55rem/1 'Barlow Condensed', system-ui, sans-serif; }
.game-round-card > span:last-child { color: var(--amber); font-size: 1.65rem; }
.category-field { display: grid; gap: .25rem; min-width: 0; }
.category-field select { min-width: 0; }
.category-field small { color: var(--amber); }
.round-sheet {
  width: min(calc(100% - 1.5rem), 29rem);
  max-height: calc(100svh - 1.5rem);
  padding: clamp(.9rem, 4vmin, 1.5rem);
  border: 1px solid #a97959;
  border-radius: 1.15rem;
  background: var(--panel);
  color: var(--paper);
  container-type: inline-size;
}
.round-sheet::backdrop { background: #100e21bb; }
#room-question-pack-summary, #room-question-pack-error { margin: 0; overflow-wrap: anywhere; }
#room-question-pack-error:empty { display: none; }
.round-sheet h2 { margin: 0; font: 800 2.2rem/1 'Barlow Condensed', system-ui, sans-serif; }
#round-form { grid-template-columns: minmax(0, 1fr); }
.round-sheet .stepper { gap: .15rem; }
.round-sheet .stepper button {
  background: #572747;
  color: var(--cream);
  border: 2px solid #d69b83;
  border-bottom: 3px solid #27132b;
  border-radius: .65rem;
}
.round-sheet .stepper output { font: 800 1.45rem/1 'Barlow Condensed', system-ui, sans-serif; color: var(--amber); }
@container (max-width: 15rem) {
  .round-sheet h2 { min-width: 0; font-size: 1.85rem; overflow-wrap: anywhere; }
  #round-form > div.round-row { flex-wrap: wrap; }
  #round-form > .round-row > strong { flex-basis: 100%; }
  #round-form .stepper { width: 100%; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
  #round-form .option-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #round-form .cycle-card { grid-area: 1 / 1 / 2 / -1; }
  #round-form .cycle-previous { grid-area: 2 / 1; justify-self: start; }
  #round-form .cycle-next { grid-area: 2 / 2; justify-self: end; }
  #round-form button.quiz-navigation {
    width: max(44px, 2rem);
    height: max(44px, 2rem);
    min-width: 44px;
    min-height: 44px;
  }
}
.stepper { display: grid; align-items: center; grid-template-columns: 2.75rem minmax(1.8rem, auto) 2.75rem; text-align: center; }
.stepper button, #close-rounds { min-height: 2.75rem; padding: 0; font-size: 1.25rem; }
#close-rounds { min-width: 2.75rem; }
#round-balance { margin: .15rem 0 .2rem; color: var(--amber); flex-wrap: wrap; }
#round-mix { width: 100%; accent-color: var(--amber); }
#round-mix::-webkit-meter-bar { background: var(--ink); border: 0; }
#round-mix::-webkit-meter-optimum-value { background: var(--amber); }
#round-mix::-moz-meter-bar { background: var(--amber); }
@media (max-width: 43.99rem) {
  .round-sheet { margin-block: auto max(.75rem, env(safe-area-inset-bottom)); }
}
.join-ticket {
  position: relative;
  display: grid;
  gap: .5rem;
  padding: clamp(.8rem, 3.5vw, 1.2rem);
  border: 2px solid #e5b974;
  border-bottom: 5px solid #b58553;
  border-radius: 1.1rem;
  background: var(--paper);
  color: var(--ink);
  cursor: text;
}
.join-ticket:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.join-ticket-label { text-align: center; color: #60422c; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.code-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 4.75rem)); justify-content: center; gap: .3rem; }
.code-slots b {
  display: grid;
  place-items: center;
  min-height: clamp(3.15rem, 9vw, 4rem);
  border-bottom: 2px solid #c9a47f;
  border-radius: .45rem;
  background: #efddbe;
  font: 800 clamp(1.65rem, 7vw, 2.65rem)/1 'Barlow Condensed', system-ui, sans-serif;
}
.join-ticket:focus-within b[data-current] { background: #ffe3a7; border-color: #ac6226; }
.join-ticket .code-input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: text; }
.field-help { color: var(--paper); }
.round-guide summary { min-height: 2.75rem; padding-block: .65rem; color: var(--amber); cursor: pointer; }
.round-guide p { margin: 0 0 .5rem; }
body:has(.lobby:not([hidden])) {
  background: #26162d linear-gradient(#241321ad, #24132135 40%, #2112264d 72%, #211226ab);
}
body:has(.lobby:not([hidden]))::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#24132198, #2413210f 41%, #21122634 74%, #211226cf),
    url('/art/green-room.jpg') 59% 61% / cover;
}
@media (max-aspect-ratio: 5/6) {
  body:has(.lobby:not([hidden]))::before {
    background-image: linear-gradient(#24132198, #2413210f 41%, #21122634 74%, #211226cf),
      url('/art/green-room-portrait.jpg');
    background-position: center, 50% 61%;
  }
}
@media (min-aspect-ratio: 17/10) {
  body:has(.lobby:not([hidden]))::before { background-position: center, 59% 87%; }
}
.lobby {
  --mascot-size: clamp(3.25rem, min(19vw, 12svh), 7rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 55rem);
  margin-inline: auto;
  text-align: center;
}
.lobby h1 {
  align-self: center;
  margin: 0;
  padding: .1em .57em .14em;
  border: 1px solid #eeac62;
  border-radius: .36em;
  background: #8f1c3a;
  box-shadow: inset 0 0 0 2px #a72c47, 0 .10em .18em #220e22;
  font-size: clamp(2.1rem, 7vw, 3.25rem);
  line-height: 1.05;
  text-shadow: 0 2px #41122b;
}
.lobby-heading { display: flex; justify-content: center; align-items: center; gap: .55rem; margin-bottom: .45rem; }
#lobby-details { display: flex; flex: 1; flex-direction: column; }
.ticket {
  display: grid;
  justify-items: center;
  gap: .25rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: .75rem;
  padding: .75rem;
  border-bottom: 4px solid #c59b66;
}
.ticket span { text-transform: uppercase; font-size: .8rem; letter-spacing: .13em; }
.ticket strong { font: 800 clamp(2.5rem, 10vw, 4.25rem)/1 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .15em; }
.ticket button { min-height: 2.75rem; margin-top: .35rem; }
.ticket button:focus-visible { outline-color: var(--ink); }
.lobby .ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  width: min(100%, 29rem);
  min-height: 3.4rem;
  padding: .2rem .7rem;
  background: #30172aed;
  color: #ffda91;
  border: 1px solid #d5a468;
  border-bottom-width: 4px;
  box-shadow: 0 2px 11px #1d101ca6;
}
.lobby .ticket strong { font-size: clamp(1.9rem, 7vw, 2.7rem); }
.lobby .ticket span { letter-spacing: .12em; font-weight: 700; }
.lobby-meta { margin: .35rem auto 0; font-size: .84rem; text-shadow: 0 2px 3px #170b1e; }
.lobby-cast { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 1rem .5rem; }
#player-count {
  align-self: center;
  background: #30162fe8;
  padding: .2rem .6rem;
  border-radius: .4rem;
  margin: 0 0 .22rem;
}
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto;
  align-items: start;
  gap: .28rem;
  margin: 0;
  padding: 0;
  list-style: none;
  isolation: isolate;
}
.roster li { display: grid; justify-items: center; align-self: start; min-width: 0; grid-row: 2; }
.roster li:nth-child(n+5) { grid-row: 1; }
.roster:not(:has(li:nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roster:not(:has(li:nth-child(5))) li { grid-row: 1; }
.seat-art {
  position: relative;
  display: block;
  width: min(100%, var(--mascot-size));
  height: var(--mascot-size);
  overflow: clip;
}
.seat-art::before {
  position: absolute;
  content: '';
  inset: auto 9% 6%;
  height: 8%;
  border-radius: 50%;
  background: #2c122899;
  box-shadow: 0 1px 3px #241325;
}
.seat-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.roster :is([data-queued], [data-arriving]) .seat-art { visibility: hidden; }
.green-room-walk-layer { position: fixed; inset: 0; overflow: hidden; z-index: 3; pointer-events: none; }
.green-room-walk { position: absolute; left: 0; }
.seat-label {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .24rem;
  max-width: 100%;
  min-width: 0;
  margin-top: -.23rem;
  color: #fff3df;
  padding: .18rem .32rem;
  border: 1px solid #a67851;
  border-radius: .5rem;
  background: #31142be8;
  font-size: clamp(.75rem, 3.4vw, .95rem);
  line-height: 1.2;
}
.seat-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster li small { flex-shrink: 0; color: var(--amber); font-size: .73em; }
.lobby-actions { margin: .45rem auto 0; width: min(100%, 29rem); padding: .5rem; border-radius: .8rem; background: #31152bdc; }
.lobby-actions #waiting { margin: .35rem 0; }
.lobby .judge-preference, .lobby #waiting { background: #31152be8; border-radius: .4rem; padding: .38rem .55rem; }
.lobby-utilities {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .3rem .65rem;
}
.lobby-utilities > * { flex: 1 0 auto; }
.room-sound {
  border: 1px solid #90615b;
  border-radius: .45rem;
  background: #29162be8;
  padding-inline: .55rem;
  text-align: start;
}
.room-sound summary, .room-sound label { min-height: 2.75rem; padding-block: .65rem; cursor: pointer; }
.room-sound label { display: block; }
.lobby-utilities button { min-height: 2.75rem; }
@media (min-width: 700px) {
  .lobby { --mascot-size: clamp(5.5rem, min(20.5vw, 18svh), 11rem); }
  .lobby:not(:has(.roster li:nth-child(5))) { --mascot-size: clamp(6rem, min(21vw, 23svh), 11rem); }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, calc(var(--mascot-size) * 4.4)); margin-inline: auto; }
  .roster:has(li:only-child) { grid-template-columns: minmax(0, 1fr); width: calc(var(--mascot-size) * 1.1); }
  .roster:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(var(--mascot-size) * 2.2); }
  .roster:has(li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(var(--mascot-size) * 3.3); }
  .seat-label { font-size: 1rem; }
}
@media (max-height: 620px) {
  main:has(.lobby:not([hidden])) { padding-block: max(.6rem, env(safe-area-inset-top))
    max(.6rem, env(safe-area-inset-bottom)); }
  .lobby, .lobby:not(:has(.roster li:nth-child(5))) { --mascot-size: clamp(2.8rem, 10svh, 4.8rem); }
  .lobby-cast { padding-block: .3rem; }
}
@media (max-width: 22rem) {
  .lobby h1 { font-size: 1.8rem; letter-spacing: -.015em; }
}
@media (min-width: 700px) and (max-height: 520px),
  (min-width: 950px) and (min-aspect-ratio: 13/10) and (max-height: 900px) {
  #lobby-details {
    display: grid;
    grid-template: 'cast ticket' auto 'cast meta' auto 'cast judge' auto 'cast actions' 1fr /
      minmax(0, 1fr) minmax(13.5rem, 18rem);
    column-gap: 1rem;
  }
  .lobby .ticket { grid-area: ticket; justify-self: center; }
  #round-summary { grid-area: meta; }
  .lobby-cast { grid-area: cast; }
  .lobby .judge-preference { grid-area: judge; align-self: center; }
  .lobby-actions { grid-area: actions; align-self: end; }
  .lobby .lobby-actions button { min-height: 2.75rem; padding-block: .5rem; }
  .lobby h1 { font-size: clamp(2.1rem, 5.5svh, 3.25rem); }
  .lobby .roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .lobby .roster li { grid-row: 2; }
  .lobby .roster li:nth-child(n+5), .lobby .roster:not(:has(li:nth-child(5))) li { grid-row: 1; }
}
.message { color: var(--amber); width: min(100%, 40rem); margin-inline: auto; }
.message:empty, #connection:empty { margin: 0; }
.match { margin-block: .5rem 1.25rem; }
.turn-header { display: flex; justify-content: space-between; gap: 1rem; color: var(--amber); font-weight: 700; }
.turn-header p { margin: 0; }
.category { margin: .6rem 0 .3rem; }
.category:empty, .turn-note:empty { display: none; }
#trivia-prompt { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.trivia-heading.has-mascot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 26vw, 9rem);
  align-items: center;
  gap: .3rem;
  overflow: clip;
}
.trivia-mascot { pointer-events: none; }
.trivia-mascot img, .trivia-mascot canvas { display: block; width: 100%; height: auto; }
.trivia-mascot[data-cue="peek"] { animation: trivia-peek 800ms both; }
.trivia-mascot[data-cue="correct"] { animation: trivia-hop 640ms both; }
.trivia-mascot[data-cue="incorrect"] { animation: trivia-recoil 500ms both; }
.trivia-mascot[data-cue="timeout"] { animation: trivia-timeout 390ms both; }
.trivia-mascot[data-cue="locked"] { animation: mascot-nod 350ms both; }
.trivia-mascot[data-cue="spotlight"] { animation: spotlight-lean 550ms both; }
.trivia-mascot[data-cue="spotlight-win"] { animation: spotlight-cheer 740ms both; }
.podium-mascot[data-cue="champion"] { animation: champion-entrance 1050ms both; }
.spotlight-result { position: relative; }
.spotlight-result:has(.trivia-mascot:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3rem, 15vw, 5.5rem);
  align-items: center;
  gap: .45rem;
}
@keyframes mascot-nod {
  22% { transform: translateY(5px) rotate(9deg) scaleY(.89); }
  44% { transform: translateY(-2px) rotate(-3deg) scaleY(1.04); }
  72% { transform: translateY(1px) rotate(1deg); }
}
@keyframes spotlight-lean {
  25% { transform: translateY(-2px) rotate(-4deg); }
  45%, 72% { transform: translateY(-5px) rotate(-10deg) scaleY(1.04); }
}
@keyframes spotlight-cheer {
  18% { transform: translateY(5px) rotate(-9deg) scaleY(.9); }
  43% { transform: translateY(-22px) rotate(11deg) scaleY(1.08); }
  72% { transform: translateY(5px) rotate(-4deg) scaleY(.95); }
}
@keyframes champion-entrance {
  0% { transform: translateY(-46%) rotate(-12deg) scale(.82); }
  22% { transform: translateY(-27%) rotate(9deg) scale(1.13); }
  44% { transform: translateY(-1px) rotate(-4deg) scale(.9); }
  72% { transform: translateY(-16px) rotate(4deg) scale(1.07); }
}
@keyframes trivia-peek {
  0%, 100% { transform: translateX(108%); }
  25% { transform: translateX(12%); }
  46%, 72% { transform: translateX(0); }
}
@keyframes trivia-hop {
  18% { transform: translateY(6px) scaleY(.9) rotate(-4deg); }
  44% { transform: translateY(-16px) scaleY(1.08) rotate(7deg); }
  71% { transform: translateY(4px) scaleY(.95) rotate(-2deg); }
}
@keyframes trivia-recoil {
  24% { transform: translateY(4px) scaleY(.92) rotate(12deg); }
  55% { transform: translateY(7px) scaleY(.95) rotate(-5deg); }
  76% { transform: translateY(2px) scaleY(1.02) rotate(2deg); }
}
@keyframes trivia-timeout {
  24% { transform: translateY(3px) scaleY(.94) rotate(-6deg); }
  65% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .trivia-mascot[data-cue], .podium-mascot-picture[data-cue] { animation: none; }
}
@media (max-width: 339px) {
  .trivia-heading.has-mascot, .spotlight-result:has(.trivia-mascot:not([hidden])) { display: block; }
  .trivia-mascot { display: none; }
}
#trivia-choices { gap: .45rem; }
#trivia-choices button {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  text-align: start;
  background: var(--paper);
  box-shadow: inset 0 -3px #c9ae8a;
}
#trivia-choices button[aria-pressed="true"], #trivia-choices button[data-correct] {
  background: var(--amber);
  box-shadow: inset 0 -3px #b67c2e;
}
#trivia-choices button:disabled { opacity: 1; }
#trivia-choices button[data-correct] span { font-size: .9em; }
.turn-note { margin-block: .75rem; }
.match-actions { margin-block: .75rem; }

button.quiz-action {
  min-height: 3.25rem;
  padding: .5625rem .875rem;
  background: linear-gradient(#ffdc82, #ffc256 53%, #ffae3b);
  border: 2px solid #ffe1a0;
  border-bottom: 4px solid #a05a20;
  border-radius: 1.05rem;
  box-shadow: inset 0 2px 0 #fff4c66b, 0 .18rem .38rem #210c2680;
  color: var(--amber-text);
  font-size: 1.0625rem;
}
button.quiz-action.secondary {
  background: linear-gradient(#743366, #54204e 57%, #3f153b);
  border: 2px solid #d18ba0;
  border-bottom: 4px solid #280e2b;
  color: var(--cream);
  box-shadow: inset 0 2px 0 #fbace326, 0 .18rem .38rem #210c2680;
}
button.quiz-action:disabled, button.quiz-navigation.quiet:disabled { opacity: .55; }
button.quiz-action:active:not(:disabled), button.quiz-navigation.quiet:active:not(:disabled) {
  transform: translateY(1px);
  opacity: .85;
}
button.quiz-navigation.quiet {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: linear-gradient(#672758, #3e1738);
  border: 2px solid #e7a774;
  border-bottom: 3px solid #9a5837;
  border-radius: 50%;
  box-shadow: inset 0 2px #fbace326;
  color: var(--cream);
  font: 400 1.625rem/1 system-ui, sans-serif;
}
button.labelled-back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.back-chevron {
  position: relative;
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
}
.back-chevron::before, .back-chevron::after {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 65%;
  border-top: .15625rem solid currentColor;
  border-radius: 1rem;
  content: '';
  transform-origin: 1px center;
}
.back-chevron::before { transform: translateY(-50%) rotate(45deg); }
.back-chevron::after { transform: translateY(-50%) rotate(-45deg); }
.quiz-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 35rem);
}
.quiz-flow .player-heading, #account .player-heading { gap: .75rem; }
.quiz-flow .player-heading { margin: 0; }
:is(.quiz-flow, #account) .player-heading h1 {
  min-width: 0;
  flex: 1;
  font-size: 2.5rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#solo-form { gap: 1rem; }
#solo-form .pack-field legend { font-size: 1.25rem; margin-bottom: .75rem; }
#solo-packs { display: flex; flex-wrap: wrap; }
#solo-packs label {
  flex: 1 1 max(30%, min(100%, 6.75rem));
  min-height: 4.875rem;
  padding: .5rem;
  color: var(--amber-text);
  background: var(--paper);
  border: 2px solid var(--border);
  border-bottom-width: 3px;
  border-radius: .625rem;
}
#solo-packs label:has(input:checked) { background: var(--amber); border-color: var(--amber-shade); }
#solo-packs .pack-mark { color: inherit; font-family: 'Barlow Condensed', system-ui, sans-serif; }
#solo-form .round-row { border-top: 1px solid var(--border); padding-top: .75rem; font-size: 1.125rem; }
#solo-form .stepper { grid-template-columns: 3rem minmax(1.8rem, auto) 3rem; }
#solo-rounds { color: var(--amber); font: 800 1.8rem/1 'Barlow Condensed', system-ui, sans-serif; }
.round-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.round-presets button.secondary { flex: 1 1 3rem; color: var(--amber-text); background: var(--paper); }
.round-presets button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber-shade); }
#solo-form .field-help { color: var(--muted); font-size: .875rem; margin: 0; }
#solo-turn { flex: 1; gap: .875rem; }
.solo-round-progress { width: 52%; color: var(--muted); font-weight: 700; }
.solo-round-progress p { margin: 0 0 .3rem; }
.solo-round-progress progress { display: block; width: 100%; height: .35rem; appearance: none; }
.solo-round-progress progress::-webkit-progress-bar { background: #493954; border-radius: 1rem; }
.solo-round-progress progress::-webkit-progress-value { background: var(--amber); border-radius: 1rem; }
.solo-round-progress progress::-moz-progress-bar { background: var(--amber); border-radius: 1rem; }
.solo-turn-navigation { display: flex; align-items: center; gap: .55rem; }
#solo-clock {
  display: grid;
  place-items: center;
  min-width: 3rem;
  min-height: 3rem;
  margin: 0;
  background: #241b35;
  border: 3px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font: 800 1.5rem/1 'Barlow Condensed', system-ui, sans-serif;
}
#solo-question { display: grid; gap: .9rem; }
.solo-prompt-card {
  border-radius: .75rem;
  background: linear-gradient(#1d142b99, #1d142b99), url('/art/quiz-night-stage.png') center / cover;
  display: grid;
  align-items: center;
  min-height: 7.875rem;
  padding: 1.05rem;
  border: 1px solid #70556a;
}
.solo-prompt-card h1 { margin: 0; font-size: 2.25rem; line-height: 1.15; overflow-wrap: anywhere; }
#solo-question:has(#solo-picture:not([hidden])) .solo-prompt-card {
  min-height: 0;
  padding: .65rem .9rem;
}
#solo-question:has(#solo-picture:not([hidden])) h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
#trivia:has(#trivia-picture:not([hidden])) #trivia-prompt {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  margin-bottom: .5rem;
}
#trivia-picture { margin-block: .3rem .6rem; }
.picture-clue {
  display: grid;
  justify-items: center;
  padding: .45rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--panel);
}
.picture-clue-image { width: 100%; min-width: 0; }
.picture-clue-image:empty { display: none; }
.picture-clue img {
  display: block;
  width: 100%;
  max-height: clamp(6.5rem, 19dvh, 13rem);
  object-fit: contain;
}
.picture-clue[data-enlarged] img { max-height: clamp(9rem, 42dvh, 28rem); }
.picture-clue-zoom { min-height: 2.75rem; margin-block-start: .25rem; }
.picture-clue-fallback { margin: .35rem; overflow-wrap: anywhere; }
#solo-choices { gap: .56rem; }
#solo-choices button {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .4rem .625rem;
  border: 1px solid #e6c7ab;
  border-bottom: 2px solid #987760;
  border-radius: .625rem;
  background: var(--paper);
  box-shadow: none;
  color: #31233c;
  font-size: 1.0625rem;
  text-align: start;
}
#solo-choices button[aria-pressed="true"] { background: #ffe4a3; border-color: #d89940; }
#solo-choices button strong { overflow-wrap: anywhere; }
#solo-choices button span {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .4375rem;
  background: #ebdbc5;
  color: #5d405d;
  font-size: .875rem;
}
#solo-choices button[aria-pressed="true"] span { background: #3d283e; color: var(--amber); }
.ordering-cards { display: grid; gap: .375rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.ordering-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .35rem;
  padding: .25rem .4rem .25rem .65rem;
  border: 1px solid #e6c7ab;
  border-bottom: 2px solid #987760;
  border-radius: .625rem;
  background: var(--paper);
  color: var(--ink);
}
.ordering-card[draggable="true"] { cursor: grab; }
.ordering-card strong { overflow-wrap: anywhere; }
button.ordering-step { min-width: 2.75rem; padding: .25rem; }
.estimate-field { display: grid; gap: .375rem; margin-block-start: .5rem; }
.audio-clue { display: grid; gap: .35rem; }
.audio-clue summary { cursor: pointer; min-height: 2.75rem; padding: .6rem .75rem; }
.audio-clue details { background: var(--panel); border: 1px solid var(--border); border-radius: .65rem; }
.audio-clue details p { margin: 0; padding: 0 .75rem .65rem; overflow-wrap: anywhere; }
.estimate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .625rem;
  padding-inline: .75rem;
  border: 1px solid #e6c7ab;
  border-bottom: 2px solid #987760;
  border-radius: .625rem;
  background: var(--paper);
  color: var(--ink);
}
.estimate-row:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.estimate-row input {
  border: 0;
  outline: none;
  padding: .375rem 0;
  background: transparent;
  color: inherit;
  font: 800 1.75rem/1.1 'Barlow Condensed', system-ui, sans-serif;
}
.solo-turn-actions { margin-block-start: auto; gap: .375rem; }
#solo-reveal { display: grid; gap: .75rem; align-content: center; flex: 1; text-align: center; padding-block: 2rem; }
.solo-reveal-title { display: grid; justify-items: center; gap: .75rem; }
#solo-reveal p, #solo-reveal h1 { margin: 0; }
#solo-outcome { font-size: 2.75rem; line-height: 1.1; }
#solo-reveal #solo-correct-choice, .typed-correct-answer {
  background: var(--paper);
  border: 2px solid var(--amber);
  border-radius: .75rem;
  color: var(--amber-text);
  padding: .875rem;
  overflow-wrap: anywhere;
  font: 800 2.125rem/1.2 'Barlow Condensed', system-ui, sans-serif;
}
#solo-explanation { color: var(--muted); font-size: 1.0625rem; }
#solo-explanation:empty, #solo-points:empty { display: none; }
#solo-points { color: var(--amber); font: 800 1.75rem/1.2 'Barlow Condensed', system-ui, sans-serif; }
.solo-reveal-star { color: var(--amber); font: 400 2.875rem/1.2 system-ui, sans-serif; }
.solo-score {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .25rem;
  min-height: 12.5rem;
  padding: 1.1875rem;
  border-radius: 1rem;
  background: linear-gradient(#60213d, #33152c);
  border: 1px solid #cd9159;
  border-bottom-width: 4px;
}
.solo-score strong { color: var(--amber); font: 800 4.875rem/1 'Barlow Condensed', system-ui, sans-serif; }
.solo-score p { margin: .4rem 0 0; text-align: center; font-size: 1.375rem; font-weight: 700; }
#solo-results .actions { gap: inherit; }
@media (min-width: 37.5rem) {
  .title-screen { max-width: 40rem; }
  .title-screen h1 { font-size: clamp(5rem, 12svh, 7rem); }
  .actions.title-actions { row-gap: .875rem; }
  .quiz-flow { width: min(100%, 46.25rem); gap: 1.375rem; }
  #solo-turn { gap: 1.25rem; }
  button.quiz-navigation.quiet { width: 3.75rem; height: 3.75rem; font-size: 2rem; }
  .quiz-navigation .back-chevron { width: 1.25rem; height: 1.25rem; }
  .quiz-navigation .back-chevron::before, .quiz-navigation .back-chevron::after { border-top-width: .1875rem; }
  #solo-form .stepper { grid-template-columns: 3.75rem minmax(1.8rem, auto) 3.75rem; }
  button.quiz-action { min-height: 4.25rem; padding: .75rem 1.125rem; font-size: 1.3125rem; }
  :is(.quiz-flow, #account) .player-heading h1 { font-size: 3.625rem; }
  .achievement-card h2 { font-size: 2.125rem; }
  #solo-packs label { min-height: 6.5rem; padding: .8125rem; font-size: 1.375rem; }
  #solo-form .field-help { font-size: 1.125rem; }
  .solo-prompt-card { min-height: 11.125rem; padding: 1.55rem; }
  .solo-prompt-card h1 { font-size: 3.1875rem; }
  #solo-choices button { min-height: 3.875rem; font-size: 1.375rem; }
  #solo-clock { min-width: 3.95rem; min-height: 3.95rem; font-size: 1.875rem; }
  #solo-outcome { font-size: 3.75rem; }
  #solo-reveal #solo-correct-choice { font-size: 2.875rem; }
  #solo-explanation { font-size: 1.3125rem; }
}
.score-stage {
  width: min(100%, 54rem);
  margin-block: auto;
  text-align: center;
}
@media (min-height: 680px) { .score-stage { padding-block-start: min(8svh, 4rem); } }
#score-eyebrow {
  display: table;
  margin: 0 auto .35rem;
  padding: .25rem .75rem;
  border: 1px solid #d39860;
  border-radius: .5rem;
  background: #591c35;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#score-headline {
  overflow-wrap: anywhere;
  text-shadow: 0 .1em .35em var(--ink);
}
#scores-status:empty { margin: 0; }
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.3rem, 2vw, 1rem);
  margin: clamp(.75rem, 4svh, 2rem) 0 1rem;
  padding: 0;
  list-style: none;
}
.podium:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
  margin-inline: auto;
}
.podium li { grid-row: 1; }
.podium li:nth-child(1) { grid-column: 2; }
.podium li:nth-child(2) { grid-column: 1; }
.podium li:nth-child(3) { grid-column: 3; }
.podium-mascot img, .podium-mascot canvas {
  display: block;
  width: 95%;
  height: clamp(3.25rem, 18svh, 9rem);
  object-fit: contain;
  object-position: center bottom;
  margin-inline: auto;
}
.podium-place {
  display: grid;
  align-content: center;
  gap: .15rem;
  min-height: 5.25rem;
  padding: .45rem .3rem;
  border: 1px solid #a97959;
  border-radius: .7rem .7rem .25rem .25rem;
  background: linear-gradient(#774151, #452235);
  box-shadow: inset 0 -.25rem #14132780;
  overflow-wrap: anywhere;
}
.podium [data-rank="1"] .podium-place {
  min-height: 6.75rem;
  background: linear-gradient(#ffdf9a, #bc792c);
  border-color: var(--amber);
  color: var(--ink);
}
.podium [data-rank="2"] .podium-place { background: linear-gradient(#766078, #423248); }
.podium [data-rank="3"] .podium-place { min-height: 4.75rem; }
.podium .rank { font: 800 1.65rem/.95 'Barlow Condensed', system-ui, sans-serif; }
.podium .nickname { font-weight: 700; }
.podium .points { font-size: .875rem; }
.score-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#play-again, #retry-scores { grid-column: 1 / -1; }
@media (min-width: 42rem) {
  .score-actions { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
  #play-again, #retry-scores { grid-column: auto; }
}
.score-list, .recap-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.score-list li, .recap-list li {
  background: var(--panel);
  border: 1px solid #8f6e87;
  border-radius: .75rem;
  padding: .75rem;
}
.score-list li { display: flex; align-items: baseline; gap: .65rem; }
.score-list li[data-rank="1"] { border-color: var(--amber); }
.score-list .nickname, .recap-list h2, .recap-list p { overflow-wrap: anywhere; }
.score-list .points { margin-inline-start: auto; white-space: nowrap; }
.score-list .rank, .score-list .points, .recap-list .round-caption { color: var(--amber); }
.recap-list h2 { font: 800 clamp(1.5rem, 5vw, 2rem)/1.1 'Barlow Condensed', system-ui, sans-serif; margin: .35rem 0 .65rem; }
.recap-list p { margin: .3rem 0; }
.recap-header { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.recap-header h1 { margin: 0; }
.judge-preference { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; }
.judge-preference input { width: 1.25rem; height: 1.25rem; min-height: 0; accent-color: var(--amber); }
#spotlight-prompt { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
#spotlight-answer {
  resize: vertical;
  width: 100%;
  min-height: 6rem;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid #ba9c88;
  border-radius: .75rem;
  padding: .75rem;
  font: inherit;
}
#spotlight-answer:focus-visible { outline: 3px solid #ffdf8f; outline-offset: 3px; }
.answer-meta { display: flex; justify-content: space-between; margin: 0; }
.spotlight-entries { display: grid; gap: .5rem; padding: 0; list-style: none; }
.spotlight-entries li { display: flex; align-items: start; gap: .5rem; }
.spotlight-card, .winning-line {
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: .75rem;
  border-radius: .75rem;
  background: var(--paper);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.spotlight-card { text-align: start; }
.spotlight-card[aria-pressed="true"], .winning-line { background: var(--amber); }
.spotlight-flag { flex: 0 0 3rem; min-height: 3rem !important; padding: .5rem; }
#spotlight-safety {
  width: min(30rem, 100% - 2rem);
  color: var(--paper);
  background: var(--panel);
  border: 1px solid #ba9c88;
  border-radius: 1rem;
  padding: 1.25rem;
}
#spotlight-safety::backdrop { background: #141327c9; }
.safety-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 42rem) {
  .ticket { grid-template-columns: 1fr auto; padding-inline: 1.5rem; }
  .ticket span, .ticket strong { grid-column: 1; }
  .ticket button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

.theatre-turn, #spotlight-turn { width: min(100%, 43rem); }
#spotlight-prompt {
  padding: .55rem .75rem;
  border: 1px solid #d39860;
  border-radius: .75rem;
  background: var(--paper);
  color: #2b142c;
  overflow-wrap: anywhere;
}
#trivia.theatre-turn { display: flex; flex-direction: column; flex: 1; gap: .5rem; margin-block: 0; }
.stage-turn-tools { display: flex; align-items: center; gap: .5rem; }
:is(.theatre-turn, #spotlight-turn) .turn-header { align-items: center; min-height: 3rem; }
.theatre-turn .solo-round-progress { width: min(56%, 14rem); }
#trivia-round-progress { height: .35rem; width: 100%; accent-color: var(--amber); }
#trivia-clock { border: 2px solid var(--amber); border-radius: 99px; padding: .52rem .65rem; background: #3a1738; }
.theatre-turn :is(.solo-prompt-card, .stage-multiplayer-question) {
  display: block;
  position: relative;
  min-height: 6.5rem;
  padding: 1.1rem .9rem .8rem;
  border: 1px solid #e6a362;
  border-bottom: 3px solid #b97859;
  border-radius: .75rem;
  background: #ffeedc;
  color: #2b142c;
  text-align: center;
}
.theatre-turn .stage-category {
  display: table;
  position: relative;
  margin: -1.67rem auto .38rem;
  border: 1px solid #da9c55;
  border-radius: .5rem;
  padding: .19rem .72rem;
  background: #622235;
  color: var(--cream);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.theatre-turn .stage-category:empty { display: none; }
.theatre-turn :is(#trivia-prompt, #solo-prompt) { font-size: clamp(1.8rem, 4.4vw, 2.95rem); line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
#solo-question .solo-prompt-card.has-mascot { padding-right: clamp(6rem, 22vw, 8.7rem); }
#solo-peek-mascot { position: absolute; top: .15rem; right: .2rem; width: clamp(5rem, 20vw, 8.2rem); }
.theatre-turn #solo-question { margin-top: .45rem; gap: .55rem; }
.stage-multiplayer-question { margin-top: .4rem; }
.theatre-turn :is(#trivia-choices, #solo-choices) { gap: .42rem; }
.theatre-turn :is(#trivia-choices, #solo-choices) button {
  min-height: 3rem;
  justify-content: flex-start;
  align-items: center;
  padding: .35rem .62rem;
  border: 1px solid #d9ab89;
  border-bottom: 2px solid #ac735a;
  border-radius: .625rem;
  background: #f9e0cb;
  box-shadow: none;
  color: #31233c;
}
.theatre-turn :is(#trivia-choices, #solo-choices) button[aria-pressed="true"] {
  border-color: #edbd73;
  background: var(--amber);
}
.theatre-turn :is(#trivia-choices, #solo-choices) button :is(.stage-letter, span:first-child) {
  display: grid;
  place-items: center;
  flex: 0 0 1.7rem;
  height: 1.7rem;
  border-radius: .45rem;
  background: #572740;
  color: var(--cream);
}
.theatre-turn #trivia-choices button strong { flex: 1; overflow-wrap: anywhere; }
.theatre-turn #trivia-choices button .stage-option-state { flex: 0 0 auto; font-size: .76rem; font-weight: 700; }
.theatre-turn #trivia-choices button[data-correct] { background: #176c4e; color: #fff4e6; border-color: #84ca98; }
.theatre-turn #trivia-choices button[data-incorrect] { background: #8d2943; color: #fff4e6; border-color: #f5a191; }
.theatre-turn #trivia-choices button[data-correct] .stage-letter { background: #10442f; }
.stage-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  padding: .35rem .75rem;
  border: 1px solid #ecb986;
  border-bottom-width: 3px;
  border-radius: .7rem;
  background: #522746;
  color: var(--cream);
  font: 800 clamp(1.55rem, 5vw, 2.75rem)/1.1 'Barlow Condensed', system-ui, sans-serif;
}
#trivia-outcome { margin-block: 0; }
.stage-outcome[data-outcome="correct"], #solo-reveal[data-outcome="correct"] .stage-outcome { background: #17553f; border-color: #84ca98; }
.stage-outcome[data-outcome="incorrect"], #solo-reveal[data-outcome="incorrect"] .stage-outcome { background: #7d243e; border-color: #ffa18f; }
.theatre-turn .stage-your-answer { padding: .35rem .6rem; border-radius: .45rem; background: #712842; }
.theatre-turn .turn-note, #solo-explanation { margin: 0; color: var(--cream); text-shadow: 0 1px 3px #220b1e; }
.theatre-turn .stage-performance {
  display: flex;
  flex: 1;
  align-items: end;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.theatre-turn .stage-performance:has(.trivia-mascot:not([hidden])) { min-height: clamp(3.1rem, 12svh, 7rem); }
.stage-performance .trivia-mascot { width: clamp(3.1rem, 16vw, 6.8rem); }
.theatre-turn .match-actions { margin-block: .15rem 0; }
.theatre-turn #solo-reveal { padding-block: .2rem; gap: .48rem; }
@media (max-height: 640px) {
  .title-screen { gap: .42rem; padding-block: .42rem; }
  .title-host img { width: clamp(4.5rem, 18svh, 7rem); }
  .title-screen h1 { font-size: clamp(3.65rem, 11.25svh, 5.25rem); }
  #account .player-heading { margin-bottom: .75rem; }
  .player-profile { gap: .75rem; }
  .theatre-turn .stage-performance:has(.trivia-mascot:not([hidden])) { min-height: 0; }
  .stage-performance .trivia-mascot { width: 3.1rem; }
  .theatre-turn :is(.solo-prompt-card, .stage-multiplayer-question) { min-height: 4.85rem; }
  #trivia:has(#trivia-outcome:not([hidden])) #trivia-choices button:not([data-correct], [data-incorrect]) { display: none; }
}
@media (min-width: 46rem) and (min-aspect-ratio: 13/10) {
  .title-screen {
    width: min(100%, 64rem);
    max-width: none;
    grid-template: 'marquee actions' auto 'host actions' auto / minmax(0, 1fr) minmax(0, .9fr);
    column-gap: clamp(1rem, 4vw, 2.25rem);
    align-items: center;
  }
  .title-screen h1 { grid-area: marquee; }
  .title-host { grid-area: host; }
  .title-actions { grid-area: actions; }
}
