.pace-setting {
  padding: 16px;
  border: 1px solid #b9ccec;
  border-radius: 14px;
  background: #f0f5ff;
}

.pace-setting .pace-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  cursor: pointer;
}

.pace-setting input[type=checkbox] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  accent-color: #213872;
}

.next-setting { margin: 9px 0; }
.next-setting input { width: 110px; }
.next-setting input:disabled { background: #e4ebf4; color: #62748c; }
.next-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 12px;
  background: #e6edff;
  color: #26355f;
  font-size: .9rem;
  font-weight: 700;
}
.next-countdown strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-stage .next-countdown { background: #ffda7d; color: #352533; }
.play-sheet .next-countdown { margin: 0 0 12px; }

.host-commands { display: grid; gap: 9px; }
.host-commands:empty { display: none; }
.button--danger { background: #fff; color: #a5243b; border-color: #c15b6d; }
.button--danger:hover { background: #fce8ec; }
[data-phase="stopping"] .rankings { max-height: 48vh; overflow-y: auto; color: #182b50; }
.host-roster { border-block: 1px solid #cfdef1; padding-block: 10px; }
.host-roster summary { cursor: pointer; font-weight: 750; }
.roster-list { list-style: none; padding: 0; margin: 8px 0 0; max-height: 260px; overflow-y: auto; }
.roster-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.roster-list li > span { min-width: 0; overflow-wrap: anywhere; }
.roster-list .button { flex-shrink: 0; color: #a5243b; padding-inline: 8px; }
.roster-list .button:hover { color: #86192e; background: #fce8ec; }
.roster-empty { margin: 8px 0 0; }

/* Projection de salle */
body[data-role=projection] {
  --stage-ink: #171b43;
  --stage-panel: #262d60;
  --stage-gold: #ffce62;
  min-height: 100dvh;
  color: #f7f6ff;
  background:
    radial-gradient(ellipse at 20% 0%, #393f83 0%, transparent 62%),
    radial-gradient(circle at 86% 70%, #432b60 0%, transparent 44%),
    var(--stage-ink);
}

body[data-role=projection] .site-header {
  background: #141737;
  border-color: #424775;
}

body[data-role=projection] .header-inner { max-width: 1600px; }
body[data-role=projection] .brand-word,
body[data-role=projection] .header-actions .button { color: #f7f6ff; }
body[data-role=projection] .brand-word > span { color: var(--stage-gold); }
body[data-role=projection] .header-role { color: #c6c9ea; }
body[data-role=projection] .header-actions .button:hover { background: #303868; }
body[data-role=projection] .header-actions .button:focus-visible { outline-color: var(--stage-gold); }
body[data-role=projection] .panel,
body[data-role=projection] .connection { color: var(--stage-ink); }
body[data-role=projection] main { padding-top: clamp(18px, 2.5vw, 40px); }

.live-lobby {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 32%);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(20px, 4.5vw, 72px);
  border: 1px solid #636a9e;
  border-radius: 28px;
  background: radial-gradient(circle at 28% 42%, #424985, #242b58 75%);
}

.live-lobby .projection-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 34%);
  align-items: center;
  gap: 14px;
}

.live-lobby .mode-chip { justify-self: start; }
.live-lobby h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.03; }
.live-lobby .projection-count {
  justify-self: start;
  padding: 10px 16px;
  background: #aff0d9;
  color: #174237;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.live-lobby .projection-title .pipin-moment {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  isolation: isolate;
  align-items: center;
  margin: 0;
}

.live-lobby .pipin-moment::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed #ffce6288;
  border-radius: 50%;
  background: radial-gradient(circle, #ffce6250, transparent 66%);
  animation: lobby-orbit 22s linear infinite;
}

.live-lobby .pipin-moment picture { width: 100%; }
.live-lobby .projection-title .pipin-moment img { width: 100%; max-width: 260px; }
@keyframes lobby-orbit { to { transform: rotate(360deg); } }

.live-stage .join-qr {
  border-color: #848cc1;
  border-radius: 18px;
  box-shadow: 0 5px 0 #121632;
}

.live-stage.projection-live {
  grid-template-columns: minmax(0, 1fr) clamp(190px, 21vw, 280px);
  gap: clamp(18px, 3vw, 44px);
}

.live-stage.projection-live.live-results--ranking {
  grid-template-columns: minmax(0, 1.3fr) minmax(298px, 1fr) clamp(162px, 15vw, 230px);
  gap: clamp(14px, 1.65vw, 26px);
}
.live-results--ranking .projection-body { padding: clamp(14px, 1.65vw, 25px); }
.live-results--ranking .projection-body h1 { font-size: clamp(1.65rem, 2.55vw, 3.25rem); overflow-wrap: anywhere; }
.live-results--ranking .game-progress { flex-wrap: wrap; }
.live-results--ranking .projection-footer { flex-wrap: wrap; }
.live-results--ranking .projection-body .answer-list { gap: 8px; }
.live-results--ranking .projection-body .answer { font-size: clamp(.95rem, 1.28vw, 1.48rem); min-height: 57px; padding: 8px 11px; }
.live-results--ranking .projection-join .join-qr { min-width: 0; }
.live-leaderboard {
  min-width: 0;
  overflow: hidden;
  padding: clamp(14px, 1.35vw, 21px);
  border: 1px solid #6570ad;
  border-radius: 24px;
  background: linear-gradient(153deg, #303565, #252a56 75%);
  box-shadow: 0 7px 0 #131637;
}
.live-leaderboard h2 { margin: 0 0 12px; color: #ffe099; font-size: clamp(1.55rem, 2.5vw, 2.65rem); line-height: 1; }
.live-leaderboard h2 span { font-size: .58em; color: #dedfff; }
.live-leaderboard ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.leaderboard-row {
  display: grid;
  grid-template-columns: 1.55em minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .37em;
  min-width: 0;
  min-height: clamp(34px, 4.1vh, 51px);
  padding: 4px clamp(6px, .7vw, 11px);
  border: 1px solid #576395;
  border-radius: 9px;
  background: #3d477d;
  color: #fbfbff;
  font-size: clamp(.83rem, 1.27vw, 1.35rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.leaderboard-row[data-rank="1"] { background: #51426e; border-color: #a58b69; }
.leaderboard-place { display: grid; place-items: center; align-self: center; min-height: 1.55em; border-radius: 5px; background: #555e95; font-weight: 850; }
.leaderboard-row[data-rank="1"] .leaderboard-place { background: #ffdb85; color: #302543; }
.leaderboard-name { min-width: 0; overflow-wrap: anywhere; font-weight: 780; }
.leaderboard-row strong { white-space: nowrap; }
.leaderboard-row abbr { text-decoration: none; color: #e1e2fc; font-size: .68em; }
[data-leader-change] { min-width: 2.05em; text-align: right; font-size: .76em; font-weight: 800; }
.leaderboard-up { color: #acf4d9; }
.leaderboard-down { color: #ffd2c9; }
.leaderboard-new { color: #f8dc93; }
.leaderboard-same { color: #ced3f5; }
.leaderboard-point-gain { display: inline-block; padding: 2px .25em; border-radius: 4px; background: #b8efd7; color: #17453b; font-size: .65em; }
[data-ranking-waiting] [data-leader-change], [data-ranking-waiting] .leaderboard-point-gain { visibility: hidden; }

.projection-live .projection-body {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 35px);
  border: 1px solid #5c6598;
  border-radius: 24px;
  background: var(--stage-panel);
  box-shadow: 0 7px 0 #131637;
}

.live-stage .game-progress { color: #e0e4ff; gap: 10px; }
.live-stage .phase-label {
  padding: 4px 10px;
  border-radius: 100px;
  background: #3b4379;
  color: #f3efff;
  font-size: .82em;
  white-space: nowrap;
}

.live-open .phase-label { background: #b1ecd5; color: #143c32; }
.live-results .phase-label { background: #ffd478; color: #43300d; }
.live-stage .projection-body h1 {
  margin: 16px 0 22px;
  font-size: clamp(1.9rem, 3.8vw, 4.1rem);
  line-height: 1.09;
}

.live-stage .projection-body .answer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-stage .projection-body .answer-list--results { grid-template-columns: 1fr; }
.live-stage .projection-body .answer { min-height: clamp(82px, 9vw, 132px); }
.live-stage .projection-body .answer-list--results { gap: 10px; }
.live-stage .projection-body .answer-list--results .answer { min-height: 62px; padding: 9px 14px; }
.live-stage .answer-list--results .choice-letter { width: 40px; height: 40px; font-size: 1.22rem; }
.live-stage .projection-join { gap: 16px; }
.live-stage .projection-join .timer { min-height: 120px; padding: 14px; }
.live-stage .projection-join .timer strong { font-size: clamp(2.8rem, 5vw, 5rem); }
.live-stage .projection-join .join-qr img { max-width: 184px; }
.live-stage .projection-join .pipin-moment img { width: clamp(90px, 10vw, 142px); }
.live-stage .projection-join .pipin-moment { filter: drop-shadow(0 0 20px #b0b8ff42); }
.live-stage .projection-footer { margin-top: 20px; }
.live-stage .projection-footer .button { color: #e3e6ff; }
.live-stage .projection-footer .button:hover { background: #393f76; }
.live-stage .explanation { color: #392b18; }
.live-stage .explanation, .play-sheet .explanation { margin: 0 0 14px; padding: 12px 15px; }

.room-progress { display: grid; gap: 8px; min-width: 0; }
.room-meter, .timer-track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #9bacc749;
}

.room-meter i, .timer-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.room-meter i { width: var(--room-share, 0%); background: #187b67; transition: width 260ms ease-out; }
.live-stage .room-meter i { background: #a9eed5; }
.live-stage .room-progress { flex: 1; max-width: 430px; }
.timer-track { margin-top: 7px; background: #733e232a; }
.timer-track i {
  width: 100%;
  background: currentColor;
  transform: scaleX(var(--time-left, 1));
  transform-origin: left;
  transition: transform 150ms linear;
}

.live-stage .timer, .play-sheet .timer {
  border-color: #d6a041;
  background: #ffd470;
  color: #352533;
  box-shadow: 0 4px 0 #a56830;
}

.live-stage .timer[data-urgent=true], .play-sheet .timer[data-urgent=true] {
  border-color: #ff866f;
  background: #ffbba9;
  color: #631f2c;
  box-shadow: 0 4px 0 #ab4549;
}

.live-stage .timer[data-expired=true], .play-sheet .timer[data-expired=true] { background: #e4e8f7; }

/* Les mêmes couleurs repèrent les réponses sur les deux écrans. */
.live-stage .answer, .play-sheet .answer {
  --tile: #a9edd6;
  --tile-edge: #68bba2;
  --tile-shadow: #3c806e;
  min-width: 0;
  background: var(--tile);
  border-color: var(--tile-edge);
  color: #151d42;
  box-shadow: 0 4px 0 var(--tile-shadow);
}

.live-stage .answer:nth-child(2), .play-sheet .answer:nth-child(2) { --tile: #ffdb79; --tile-edge: #d5a445; --tile-shadow: #9c691f; }
.live-stage .answer:nth-child(3), .play-sheet .answer:nth-child(3) { --tile: #b8ceff; --tile-edge: #819dda; --tile-shadow: #566fa8; }
.live-stage .answer:nth-child(4), .play-sheet .answer:nth-child(4) { --tile: #ffc0b3; --tile-edge: #da927c; --tile-shadow: #a96050; }
.live-stage .answer .choice-letter, .play-sheet .answer .choice-letter {
  flex-shrink: 0;
  background: #ffffff80;
  color: #161c3d;
}

.live-stage .answer-list--results .answer, .play-sheet .answer-list--results .answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
}

.live-stage .answer-list--results .answer {
  background: #323b72;
  color: #fff;
  box-shadow: 0 3px 0 #141a41;
  border-color: #626da4;
}

.play-sheet .answer-list--results .answer {
  background: #f1f3ff;
  border-color: #bec6e3;
  box-shadow: 0 3px 0 #c9d1e9;
}

.answer-list--results .choice-letter { grid-column: 1; grid-row: 1 / 3; }
.answer-list--results .answer-text { grid-column: 2; grid-row: 1; }
.answer-list--results .correct-mark { grid-column: 2; grid-row: 2; }
.answer-list--results .answer-count { grid-column: 3; grid-row: 1 / 3; }
.answer-list--results .answer::before {
  background: var(--tile, #c4d3ff);
  opacity: .43;
  transform-origin: left;
}

.live-stage .answer-list--results .answer--correct, .play-sheet .answer-list--results .answer--correct {
  background: #b4efdb;
  border-color: #64c2a5;
  color: #14392f;
}

.answer-list--results .answer--correct::before { background: #70d3b6; }

/* Téléphone */
.play-sheet { border-top-color: #ffcb58; }
.play-sheet .player-identity { min-height: 68px; margin-bottom: 8px; }
.play-sheet .player-name { margin: 0; }
.player-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.player-points {
  padding: 6px 11px;
  border-radius: 11px;
  background: #ffedb3;
  color: #634312;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.play-sheet h1 { margin-top: 17px; }
.play-sheet .answer--button { min-height: 68px; }
.play-sheet .answer--button:hover { border-color: #23305c; background: var(--tile); }
.play-sheet .answer--button:active, .play-sheet .answer--sending {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--tile-shadow);
  opacity: 1;
}

.play-sheet .answer-list[aria-busy=true] .answer:not(.answer--sending) { opacity: .57; }
.play-sheet .room-progress { margin-top: 18px; color: #355473; font-weight: 700; }
.play-sheet .waiting { margin-top: 18px; }
.play-outcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #e6ecff;
  color: #24355f;
}

.play-outcome--correct { background: #d5f5e7; color: #075940; }
.play-outcome strong { font-size: 1.18rem; }
.play-outcome span { font-size: .9rem; font-weight: 750; }
.play-revealing .vote-confirmed { margin: 14px 0; padding: 10px 12px; }
.play-revealing .vote-confirmed p { margin-top: 1px; }
.play-revealing .vote-confirmed strong { font-size: 1.06rem; }
.play-revealing .reveal-suspense { margin-top: 14px; }
.play-finish h1, .play-finish .final-detail { text-align: center; }
.play-finish .final-score { margin-bottom: 0; }
.final-detail { color: #4c5e7d; font-weight: 700; }

/* A single room stays open while the host chooses the next quiz. */
.evening-preserved { padding:14px 18px; border:1px solid #aad8c7; border-radius:13px; background:#e6f7ef; color:#245a46; font-weight:700; line-height:1.5; text-align:center; }
.host-lobby .evening-preserved { color:#245a46; }
.evening-host-wait h2 { font-size:1.8rem; }
.evening-host-wait>p { margin-bottom:12px; }
.evening-ended { max-width:720px; margin-inline:auto; padding:38px 28px; text-align:center; }
.evening-ended .pipin-moment { margin:18px auto 26px; }
.evening-ended .player-tags { justify-content:center; }
.evening-player-wait .waiting { padding:23px 18px; background:#eeeaff; color:#383369; border-color:#c7bee9; }
.evening-player-wait .waiting strong { display:block; font-size:1.25rem; }
.evening-player-wait .waiting p { margin:12px 0 0; font-size:1rem; }
.evening-player-wait .pipin-moment img { width:170px; }
.evening-projection-wait { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,29%); align-items:center; gap:clamp(26px,5vw,72px); padding:clamp(24px,4vw,60px); min-height:570px; border:1px solid #626a9a; border-radius:28px; background:#262d60; }
.evening-wait-copy { min-width:0; }
.evening-wait-copy h1 { margin:0 0 22px; max-width:760px; font-size:clamp(2.4rem,5vw,5rem); line-height:1.05; }
.evening-wait-message { margin:0 0 18px; color:#ffdb83; font-size:clamp(1.2rem,2.2vw,2rem); font-weight:750; }
.evening-wait-copy .projection-count { padding:9px 16px; font-size:1.1rem; }
.evening-wait-copy .pipin-moment { align-items:flex-start; margin:18px 0 0; }
.evening-wait-copy .pipin-moment img { width:clamp(130px,16vw,215px); }
.evening-join { min-width:0; }
.evening-join .join-qr { width:100%; margin:0; color:#173b70; }
.evening-join>p { color:#e0e2f4; font-size:.95rem; text-align:center; }
.evening-projection-finish { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:start; gap:28px; }
.evening-projection-finish .live-finish { min-width:0; width:100%; padding:clamp(18px,2.5vw,36px); }
.evening-projection-finish .evening-join { margin-top:24px; }
.evening-projection-finish .join-qr { padding:16px; }
.evening-projection-finish .join-qr img { max-width:188px; }
.evening-projection-finish .join-qr figcaption { font-size:.95rem; }
.evening-projection-finish .finish-heading { gap:14px; }
.evening-projection-finish .finish-heading h1 { font-size:clamp(2rem,3.9vw,3.9rem); }
.evening-stay { margin:24px 0 0; color:#e1e5ff; font-size:1.1rem; font-weight:650; }
.evening-projection-ended { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:70vh; text-align:center; padding:40px 24px; }
.evening-projection-ended h1 { margin:0 0 20px; font-size:clamp(2.5rem,6vw,5rem); }
.evening-projection-ended>p { margin:0; font-size:clamp(1.2rem,2.3vw,2rem); color:#ffdb83; }
.evening-projection-ended .pipin-moment img { width:200px; }
@media(max-width:800px) {
  .evening-projection-wait { grid-template-columns:1fr; min-height:0; gap:26px; padding:28px; text-align:center; }
  .evening-wait-copy .pipin-moment { align-items:center; }
  .evening-wait-copy .pipin-moment img { width:125px; }
  .evening-projection-wait .evening-join { width:min(100%,300px); justify-self:center; }
  .evening-projection-finish { grid-template-columns:1fr; gap:20px; }
  .evening-projection-finish .evening-join { width:220px; justify-self:center; margin:0; }
}
@media(max-width:420px) {
  .evening-projection-wait { padding:24px 16px; }
  .evening-wait-copy h1 { font-size:2.1rem; }
  .evening-ended { padding:26px 18px; }
  .evening-player-wait .waiting { padding:18px 14px; }
  .evening-preserved { padding:12px; font-size:.95rem; }
}

.category-poll-stage h1, .category-poll-stage h2, .category-poll-outcome strong { overflow-wrap:anywhere; }
.category-poll-choices {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:10px;
  margin:18px 0;
  padding:0;
  list-style:none;
}
.category-poll-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
  min-height:52px;
  padding:12px 16px;
  border:1px solid #c6c4e7;
  border-radius:12px;
  background:#efedff;
  color:#30255c;
  font-weight:750;
  overflow-wrap:anywhere;
}
.play-sheet .category-poll-choices { grid-template-columns:1fr; }
button.category-poll-option {
  width:100%;
  min-height:58px;
  border-width:2px;
  border-bottom-width:4px;
  font-family:inherit;
  font-size:1.1rem;
  text-align:left;
  cursor:pointer;
}
button.category-poll-option span[aria-hidden] { font-size:1.5rem; line-height:1; }
button.category-poll-option:hover, button.category-poll-option:active { background:#e1dcfd; border-color:#7766b2; }
.category-poll-choices[aria-busy=true] button:not(:disabled) { opacity:.55; }
.category-poll-stage .room-progress { margin-top:20px; }
.category-poll-stage .evening-wait-copy h1 { font-size:clamp(2rem,4.4vw,4.4rem); }
.category-poll-stage .evening-wait-copy .category-poll-option { font-size:clamp(1rem,1.6vw,1.35rem); }
.category-poll-outcome {
  display:grid;
  gap:3px;
  width:fit-content;
  max-width:100%;
  margin:0 0 16px;
  padding:9px 15px;
  border:1px solid #e5bb55;
  border-radius:12px;
  background:#ffedb8;
  color:#49330a;
  font-size:.9rem;
}
.host-lobby .category-poll-outcome { color:#49330a; }
.category-poll-outcome strong { font-size:1.2em; }

/* Révélation puis podium */
.reveal-suspense {
  isolation: isolate;
  min-height: clamp(270px, 39vh, 450px);
  padding: 24px;
  border: 1px solid #6e6bb0;
  box-shadow: none;
  background: #241f4f;
}

.reveal-suspense::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: conic-gradient(from 250deg at 50% 110%, transparent 0deg 50deg, #6363a964 60deg 73deg, transparent 82deg 95deg, #c574994a 103deg 118deg, transparent 126deg);
}

.reveal-dial {
  --reveal-angle: 360deg;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: clamp(110px, 14vw, 194px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#ffd66d var(--reveal-angle), #514984 0);
}

.reveal-dial::before { content: ''; position: absolute; z-index: -1; inset: 8px; border-radius: inherit; background: #2b2656; }
.reveal-countdown { font-size: clamp(3.4rem, 9vw, 7rem); color: #ffe08f; }
.play-sheet .reveal-suspense { min-height: 230px; }
.play-sheet .reveal-suspense .pipin-moment img { width: 72px; }

.no-correct-wait {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 190px;
  margin: 14px 0 0;
  padding: 22px 14px;
  border-block: 2px solid #ebc3dc;
  background: #fff1f8;
  color: #582a54;
  text-align: center;
}
.no-correct-wait h1, .no-correct-wait h2, .no-correct-wait p { margin: 0; }
.no-correct-wait p { font-weight: 700; }

.no-correct-scene {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(16px, 3.2vw, 44px);
  border: 1px solid #a45d99;
  border-radius: 24px;
  background: #432144;
  box-shadow: 0 7px 0 #24142f;
}
.no-correct-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(130px, 25vw, 335px);
  align-items: center;
  min-height: clamp(255px, 36vh, 440px);
  gap: clamp(8px, 2.5vw, 34px);
}
.no-correct-focus h1 {
  max-width: 10ch;
  margin: 0;
  color: #ffe0ae;
  font-size: clamp(2.65rem, 6.1vw, 7rem);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 .065em #1d112a;
}
.no-correct-pipin {
  position: relative;
  isolation: isolate;
}
.no-correct-pipin::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 12% 0 9%;
  border: clamp(4px, .6vw, 8px) double #ffc9e3;
  border-radius: 50%;
  background: #a34c86;
  transform: rotate(-14deg);
}
.no-correct-pipin .pipin-moment { margin: 0; }
.no-correct-pipin picture,
.no-correct-pipin .pipin-moment img { width: 100%; }
.live-no-correct .projection-footer { justify-content: flex-start; }
.live-stage.live-no-correct .projection-join { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .live-no-correct[data-enter] .no-correct-focus { animation: no-correct-pop 440ms ease-out both; }
}
@keyframes no-correct-pop {
  from { transform: scale(.97); }
  55% { transform: scale(1.015); }
}

@media (max-width: 700px) {
  .no-correct-focus { grid-template-columns: minmax(0, 1fr) clamp(82px, 29vw, 185px); min-height: 0; }
  .no-correct-focus h1 { font-size: clamp(2rem, 7.5vw, 3.9rem); }
  .live-stage.live-no-correct .projection-join { margin: 0; }
  .live-no-correct .projection-join .join-qr { width: min(100%, 166px); margin-inline: auto; padding: 8px; }
  .live-no-correct .projection-join .qr-title { margin-bottom: 5px; }
  .live-no-correct .projection-join figcaption { margin-top: 5px; }
  .live-no-correct .projection-join .join-qr img { max-width: 96px; }
}

.live-finish, .play-finish { position: relative; isolation: isolate; }
.live-finish { max-width: 1180px; padding: clamp(18px, 3vw, 42px); text-align: center; }
.finish-heading { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 14px; }
.finish-heading h1 { margin: 0; font-size: clamp(2.2rem, 4.8vw, 4.6rem); }
.finish-heading .pipin-moment { margin: 0; }
.finish-heading .pipin-moment img { width: clamp(82px, 13vw, 150px); }

.confetti { display: none; }
[data-enter] .confetti { display: block; position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute;
  top: 0;
  left: calc(4% + var(--piece) * 4.8%);
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: #ffcb55;
  animation: confetti-fall 1.7s calc(var(--piece) * 26ms) ease-in both;
}

.confetti i:nth-child(3n) { background: #83ddbc; }
.confetti i:nth-child(3n + 2) { background: #ff9e91; }
.live-open[data-enter] h1, .play-sheet[data-enter]:has(.answer--button) h1 { animation: question-enter 340ms ease-out both; }
.live-open[data-enter] .answer, .play-sheet[data-enter] .answer--button {
  animation: choice-enter 320ms calc(var(--card-index) * 48ms) cubic-bezier(.2,.8,.2,1) both;
}

[data-enter] .vote-confirmed, [data-enter] .play-outcome--correct { animation: receipt-pop 350ms cubic-bezier(.2,.8,.2,1) both; }
[data-enter] .answer-list--results .answer::before { animation: fill-result 650ms calc(var(--card-index) * 55ms) cubic-bezier(.2,.75,.2,1) both; }
[data-enter] .answer-list--results .answer--correct { animation: receipt-pop 430ms ease-out both; }
[data-enter] .reveal-suspense::before { animation: reveal-lights 1.3s ease-in-out infinite alternate; }

@keyframes question-enter { from { opacity: .6; transform: translateY(-10px); } }
@keyframes choice-enter { from { opacity: .6; transform: translateY(16px) scale(.98); } }
@keyframes receipt-pop { 0% { transform: scale(.97); } 55% { transform: scale(1.025); } }
@keyframes fill-result { from { transform: scaleX(0); } }
@keyframes reveal-lights { from { transform: scale(1.15) rotate(-9deg); } to { transform: scale(1.15) rotate(9deg); } }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-22px); }
  12%, 72% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), 410px) rotate(var(--turn)); }
}

body[data-role=projection] .response-bubble {
  border-color: #989deb;
  box-shadow: 0 4px 0 #171c43, 0 6px 18px #11122f70;
}

@media (min-width: 701px) and (max-height: 900px) {
  .live-stage .projection-join .join-qr img { max-width: 148px; }
  .live-stage .projection-join .pipin-moment img { width: 104px; }
}

@media (max-width: 700px) {
  .live-lobby { grid-template-columns: 1fr; gap: 22px; }
  .live-lobby .projection-title { text-align: left; }
  .live-lobby .projection-title .pipin-moment img { max-width: 150px; }
  .live-stage .projection-join { grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .live-stage .projection-join .timer { min-height: 74px; width: 96px; top: 10px; right: 10px; padding: 7px; }
  .live-stage .projection-join .timer strong { font-size: 2.2rem; }
  .live-stage .projection-join .timer-track { margin-top: 4px; }
  .live-stage.projection-live:has(.timer) .projection-body > .game-progress { min-height: 70px; padding-right: 90px; flex-wrap: wrap; }
  .live-stage .projection-body h1 { font-size: clamp(1.55rem, 5vw, 2.4rem); }
  .live-stage .projection-body .answer { min-height: 65px; font-size: 1.04rem; }
  .live-stage .projection-footer { font-size: .9rem; }
  .live-stage .projection-footer .button { font-size: .82rem; }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .live-stage.projection-live.live-results--ranking { grid-template-columns: minmax(0, 1.2fr) minmax(265px, 1fr); }
  .live-results--ranking .projection-join { grid-column: 2; flex-direction: row; align-items: center; }
  .live-results--ranking .projection-join .join-qr { padding: 8px; }
  .live-results--ranking .projection-join .join-qr img { max-width: 96px; }
}

@media (max-width: 700px) {
  .leaderboard-row { font-size: 1rem; }
  .live-results--ranking .projection-join .join-qr { justify-self: start; }
}

@media (max-width: 420px) {
  body[data-role=participant][data-screen=game] .header-inner { padding: 5px 12px; }
  body[data-role=participant][data-screen=game] .header-actions { justify-content: flex-end; width: auto; }
  body[data-role=participant][data-screen=game] .header-actions .button { padding: 7px 6px; min-height: 44px; font-size: .75rem; }
  body[data-role=participant][data-screen=game] .brand { gap: 4px; }
  body[data-role=participant][data-screen=game] .brand-word { font-size: 1.45rem; }
  body[data-role=participant][data-screen=game] .brand-mark { width: 34px; height: 33px; }
  body[data-role=participant][data-screen=game] .brand-mark > span { width: 28px; height: 22px; font-size: .85rem; }
  body[data-role=participant][data-screen=game] main { padding-top: 12px; }
  .live-stage .projection-body .answer-list { grid-template-columns: 1fr; }
  .live-lobby .projection-title { grid-template-columns: minmax(0, 1fr) 85px; }
  .live-lobby h1 { font-size: 2rem; }
  .live-stage .projection-join { gap: 8px; }
  .live-stage .projection-join .join-qr { max-width: none; padding: 8px; }
  .live-stage .projection-join .qr-title, .live-stage .projection-join figcaption { font-size: .85rem; }
  .play-sheet .answer--button { min-height: 60px; }
  .play-sheet .player-identity { min-height: 60px; }
  .play-sheet .player-identity .pipin-moment img { width: 56px !important; height: 70px; }
  .play-sheet .game-progress .timer { padding: 6px 10px; min-width: 92px; }
  .play-sheet .game-progress .timer strong { font-size: 2.05rem; }
  .play-sheet[data-phase=open] .answer-list { gap: 10px; }
  .play-sheet[data-phase=results] h1 { font-size: 1.42rem; margin: 14px 0; }
  .play-sheet .answer-list--results .answer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 8px; }
  .play-sheet .reveal-suspense .pipin-moment img { width: 54px; }
  .finish-heading { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-enter] .confetti { display: none; }
}
