/* ============================================================
   TRIGGER — overlay de stream (source navigateur OBS)
   Scène fixe 1920x1080, fond transparent.
   Les éléments apparaissent via la classe .on (posée par overlay.js).
   Le bloc question (#card-wrap) est placé et mis à l'échelle par
   overlay.js selon les réglages de placement de l'admin.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  /* habillage aux couleurs de la DA de la chaîne : anthracite, bleu électrique, blanc */
  --ink: #141414;
  --ink-2: #1e1e1e;
  --ink-3: #2a2a2a;
  --line: #313131;
  --text: #ffffff;
  --muted: #a3a3a3;
  --brand: #0055ff;          /* bleu de la DA */
  --brand-2: #1f6aff;
  --spark: #ffb547;          /* gardé pour la bonne réponse et les points */
  --danger: #ff7480;         /* rouge des étiquettes de la DA */
  /* lettres A B C D : 4 couleurs désaturées (mêmes valeurs sur la page viewers) */
  --a: #d9737e;
  --b: #5aa7d9;
  --c: #86c06a;
  --d: #a48ad6;
  --e: #d9b86a;
  --variant: var(--spark);
  --backdrop: 0.94;
  --radius: 6px;
  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-label: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
}

/* aperçu dans un navigateur normal : damier pour voir la transparence */
body.preview {
  background:
    repeating-conic-gradient(#2a2a33 0 25%, #1f1f27 0 50%) 0 0 / 40px 40px;
}

#stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
}

#fx {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

/* ---------- fond des émissions (contemplatif, opacité réglable) ---------- */
#backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 700px at 85% 10%, rgba(0, 85, 255, 0.14), transparent 65%),
    radial-gradient(1100px 800px at 10% 95%, rgba(0, 85, 255, 0.08), transparent 60%),
    #141414;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
#backdrop.on { opacity: var(--backdrop); }

/* ---------- apparition d'un trigger ---------- */
#flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}
#flash.on { visibility: visible; }
.flash-word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 230px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--variant);
  text-shadow: 0 0 60px color-mix(in srgb, var(--variant) 60%, transparent), 0 10px 0 rgba(10, 6, 30, 0.6);
  -webkit-text-stroke: 3px rgba(10, 6, 30, 0.55);
  paint-order: stroke fill;
}
.flash-variant {
  margin: 18px 0 0;
  padding: 10px 28px;
  border-radius: 99px;
  background: rgba(23, 20, 46, 0.88);
  font: 700 38px var(--font-display);
  color: var(--text);
}
.flash-variant:empty { display: none; }
.flash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  border: 14px solid var(--variant);
  opacity: 0;
}
#flash.on .flash-word { animation: flash-word 2.3s var(--ease-out) both; }
#flash.on .flash-variant { animation: flash-sub 2.3s var(--ease-out) both; }
#flash.on .flash-ring { animation: flash-ring 1.1s var(--ease-out) both; }
@keyframes flash-word {
  0% { transform: scale(0.2) rotate(-8deg); opacity: 0; }
  14% { transform: scale(1.12) rotate(2deg); opacity: 1; }
  24% { transform: scale(0.96) rotate(-1deg); }
  34%, 78% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; filter: blur(12px); }
}
@keyframes flash-sub {
  0%, 22% { transform: translateY(40px); opacity: 0; }
  36%, 80% { transform: none; opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}
@keyframes flash-ring {
  0% { transform: scale(0.3); opacity: 1; border-width: 40px; }
  100% { transform: scale(5); opacity: 0; border-width: 2px; }
}

/* ---------- bloc question (placement libre) ---------- */
#card-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  transform-origin: 0 0;
  transition: left 0.35s var(--ease-out), top 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
#card-wrap.instant { transition: none; }

/* ---------- carte question ---------- */
.card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 30px 32px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(41, 35, 80, 0.97), rgba(26, 22, 52, 0.97));
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -30px rgba(5, 2, 20, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px) scale(0.94);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring), visibility 0s 0.6s;
}
.card.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring), visibility 0s;
}

/* trigger : carte compacte */
.card.compact { width: 760px; }

/* émission : grande carte */
.card.full {
  width: 1500px;
  gap: 28px;
  padding: 44px 56px 38px;
  border-radius: 36px;
}

/* aperçu de placement */
.preview-label { display: none; }
.card.preview { outline: 4px dashed var(--spark); outline-offset: 8px; }
.card.preview .preview-label {
  display: block;
  position: absolute;
  bottom: -60px;
  left: 0;
  margin: 0;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--spark);
  color: #2a1a00;
  font: 800 22px var(--font-display);
}

/* ---------- la mèche (le chrono) ---------- */
.fuse {
  position: absolute;
  left: 32px;
  right: 32px;
  top: -2px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.card.full .fuse { left: 56px; right: 56px; height: 8px; }
.fuse-left {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(115deg, #e9c58a 0 10px, #c99a55 10px 20px);
  box-shadow: 0 0 14px rgba(255, 181, 71, 0.45);
}
.card.urgent .fuse-left { background: repeating-linear-gradient(115deg, #ff9aa6 0 10px, #e2566a 10px 20px); }

/* ---------- en-tête de carte ---------- */
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  font-size: 22px;
}
.variant {
  padding: 6px 16px;
  border-radius: 99px;
  background: var(--variant);
  color: #1a1030;
  font: 800 24px var(--font-display);
  white-space: nowrap;
}
.variant:empty { display: none; }
.variant-hint { color: var(--muted); font-weight: 700; }
.category { margin-left: auto; color: var(--muted); white-space: nowrap; }
.card.full .card-head { font-size: 26px; }
.card.full .variant { font-size: 28px; }

/* ---------- question ---------- */
.q-body { display: grid; gap: 18px; justify-items: start; }
.q-img, .q-pix {
  max-width: 100%;
  max-height: 220px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
}
.q-img:not([src]), .q-img[src=''] { display: none; }
.q-pix { image-rendering: pixelated; }
.q-pix[hidden] { display: none; }
.q-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card.full .q-body { justify-items: center; text-align: center; }
.card.full .q-img, .card.full .q-pix { max-height: 330px; }
.card.full .q-text { font-size: 58px; max-width: 1300px; }

/* ---------- réponses ---------- */
.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choices:empty { display: none; }
.card.full .choices { gap: 18px; }
.choices.order { grid-template-columns: 1fr; gap: 10px; }
.choice {
  --choice: var(--muted);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid color-mix(in srgb, var(--choice) 30%, transparent);
  overflow: hidden;
  font-size: 28px;
  font-weight: 700;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-spring), border-color 0.4s, background 0.4s, filter 0.5s;
}
.card.full .choice { min-height: 104px; font-size: 40px; padding: 16px 26px 16px 16px; border-radius: 24px; }
.choices.order .choice { min-height: 60px; font-size: 26px; }
.card.full .choices.order .choice { min-height: 82px; font-size: 36px; }
.choices.tf .choice { min-height: 96px; font-size: 40px; justify-content: center; }
.card.full .choices.tf .choice { min-height: 140px; font-size: 56px; }
.ch-0 { --choice: var(--a); }
.ch-1 { --choice: var(--b); }
.ch-2 { --choice: var(--c); }
.ch-3 { --choice: var(--d); }
.ch-4 { --choice: var(--e); }
.letter {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--choice);
  color: #1a1030;
  font: 800 28px var(--font-display);
  z-index: 1;
}
.card.full .letter { width: 70px; height: 70px; font-size: 42px; border-radius: 18px; }
.choices.tf .letter { width: 60px; height: 60px; font-size: 36px; }
.c-text { flex: 1; z-index: 1; line-height: 1.15; }
.choices.tf .c-text { flex: 0 1 auto; }
.c-pct { z-index: 1; font-family: var(--font-display); font-weight: 800; opacity: 0; transition: opacity 0.4s 0.3s; }
.c-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: color-mix(in srgb, var(--choice) 22%, transparent);
  transition: width 1.1s var(--ease-out) 0.2s;
}
/* rang correct (remettre dans l'ordre) */
.rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--spark);
  color: #2a1a00;
  font: 800 26px var(--font-display);
  z-index: 1;
  transform: scale(0);
  transition: transform 0.5s var(--ease-spring);
}
.card.revealed .rank { transform: scale(1); }
.card.full .rank { width: 60px; height: 60px; font-size: 34px; }

/* entrée en cascade des réponses */
.card.on .choice { animation: choice-in 0.55s var(--ease-spring) backwards; }
.card.on .choice:nth-child(2) { animation-delay: 0.06s; }
.card.on .choice:nth-child(3) { animation-delay: 0.12s; }
.card.on .choice:nth-child(4) { animation-delay: 0.18s; }
.card.on .choice:nth-child(5) { animation-delay: 0.24s; }
@keyframes choice-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }

/* verrouillé : on retient son souffle */
.card.locked .choice { filter: saturate(0.5); opacity: 0.78; }
.card.locked .how { color: var(--spark); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* révélation */
.card.revealed .choice { filter: none; opacity: 0.38; transform: scale(0.98); }
.card.revealed .c-pct { opacity: 1; }
.card.revealed .choice.is-correct {
  opacity: 1;
  transform: scale(1.03);
  border-color: var(--spark);
  background: rgba(255, 181, 71, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.25), 0 0 50px rgba(255, 181, 71, 0.35);
}
.card.revealed .choice.is-correct .c-bar { background: rgba(255, 181, 71, 0.28); }
/* en mode « ordre », toutes les lignes restent lisibles à la révélation */
.card.revealed .choices.order .choice { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--spark) 60%, transparent); }

/* ---------- estimation ---------- */
.estimate { display: grid; gap: 22px; }
.estimate[hidden] { display: none; }
.est-big {
  margin: 0;
  text-align: center;
  font: 800 96px/1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.est-unit { font-size: 0.45em; color: var(--muted); letter-spacing: 0; }
.card.full .est-big { font-size: 150px; }
.card.revealed .est-val { color: var(--spark); text-shadow: 0 0 40px rgba(255, 181, 71, 0.45); }
.numline {
  position: relative;
  height: 90px;
  margin: 0 18px;
  opacity: 0;
  transition: opacity 0.5s 0.3s;
}
.card.revealed .numline { opacity: 1; }
.nl-track { position: absolute; left: 0; right: 0; top: 44px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.nl-dots { position: absolute; inset: 0; }
.nl-dot {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--d);
  opacity: 0.7;
  animation: dot-in 0.5s var(--ease-spring) backwards;
}
.nl-dot.out { background: var(--muted); opacity: 0.35; }
@keyframes dot-in { from { transform: translateY(-30px); opacity: 0; } }
.nl-truth { position: absolute; top: 4px; bottom: 0; width: 0; }
.nl-truth::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 20px;
  width: 6px;
  height: 60px;
  border-radius: 3px;
  background: var(--spark);
  box-shadow: 0 0 20px rgba(255, 181, 71, 0.7);
}
.nl-truth span {
  position: absolute;
  top: -18px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 800 22px var(--font-display);
  color: var(--spark);
}
.nl-min, .nl-max { position: absolute; top: 64px; margin: 0; font-size: 18px; color: var(--muted); }
.nl-min { left: 0; }
.nl-max { right: 0; }

/* ---------- pied de carte ---------- */
.card-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 22px;
  color: var(--muted);
}
.card-foot p { margin: 0; }
.how { flex: 1; font-weight: 700; }
.how b { color: var(--text); }
.count-n { color: var(--text); font-family: var(--font-display); font-size: 1.25em; display: inline-block; }
.count-n.bump { animation: bump 0.3s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.35); color: var(--spark); } }
.secs {
  min-width: 2.2ch;
  text-align: right;
  font: 800 46px/1 var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.card.urgent .secs { color: var(--danger); animation: tick 1s steps(1) infinite; }
@keyframes tick { 0% { transform: scale(1.18); } 30% { transform: scale(1); } }
.card.full .card-foot { font-size: 28px; }
.card.full .secs { font-size: 64px; }
.card.revealed .secs, .card.locked .secs { visibility: hidden; }

/* gagnants */
.winners {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -4px;
}
.card.revealed .winners { display: flex; }
.winner {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 22px;
  font-weight: 700;
  animation: choice-in 0.5s var(--ease-spring) backwards;
}
.winner b { color: var(--spark); font-family: var(--font-display); }
.winner small { color: var(--muted); font-size: 0.85em; }
.winner.first { background: rgba(255, 181, 71, 0.18); }
.winners .nobody { color: var(--muted); font-size: 22px; margin: 0; }
.card.full .winner { font-size: 28px; }

/* ---------- bandeau d'émission (au-dessus de la carte) ---------- */
#show-head {
  display: none;
  align-items: baseline;
  justify-content: space-between;
  width: 1500px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#card-wrap.mode-show #show-head { display: flex; }
#show-head.on { opacity: 1; transform: none; }
#show-head p { margin: 0; }
.sh-title { font: 700 36px var(--font-display); color: var(--muted); }
.sh-count { font-family: var(--font-display); font-weight: 800; }
.sh-index { font-size: 84px; line-height: 1; color: var(--spark); }
.sh-total { font-size: 36px; color: var(--muted); margin-left: 6px; }
.sh-total::before { content: '/ '; }

/* ---------- écrans plein cadre (intro, classement, podium) ---------- */
.screen {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 80px 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0s 0.7s;
}
.screen.on { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease-out), visibility 0s; }

.intro-season { margin: 0 0 20px; font-size: 34px; color: var(--muted); font-weight: 700; }
.intro-title {
  margin: 0;
  font: 800 150px/0.95 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
#intro.on .intro-title { animation: title-in 1.4s var(--ease-spring) both; }
@keyframes title-in { from { transform: scale(0.7); opacity: 0; filter: blur(20px); } }
.intro-packs { margin: 26px 0 60px; font-size: 32px; color: var(--muted); }

.join { display: flex; align-items: center; gap: 30px; text-align: left; }
.join p { margin: 0; }
.join-qr { width: 190px; height: 190px; padding: 12px; border-radius: 18px; background: #fff; flex: none; }
.join-qr:empty { display: none; }
.join-qr svg { width: 100%; height: 100%; display: block; }
.join-label { font-size: 30px; color: var(--muted); }
.join-url { font: 800 52px var(--font-display); color: var(--spark); }

#show-join {
  position: absolute;
  right: 56px;
  bottom: 40px;
  z-index: 21;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.6s;
}
#show-join.on { opacity: 1; }
#show-join .join-qr { width: 110px; height: 110px; padding: 8px; border-radius: 12px; }
#show-join .join-url { font-size: 26px; }

/* classement intermédiaire */
.board-title, .podium-title { margin: 0 0 40px; font: 800 72px var(--font-display); letter-spacing: -0.02em; }
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 1100px;
  display: grid;
  gap: 12px;
}
.board-list li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  padding: 14px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 38px;
  font-weight: 700;
  text-align: left;
}
.board-list li .r { font-family: var(--font-display); color: var(--muted); }
.board-list li .p { font-family: var(--font-display); color: var(--spark); font-variant-numeric: tabular-nums; }
.board-list li:first-child { background: rgba(255, 181, 71, 0.16); }
#board.on .board-list li { animation: row-in 0.6s var(--ease-spring) both; animation-delay: calc(var(--i) * 0.09s + 0.2s); }
@keyframes row-in { from { opacity: 0; transform: translateX(-80px); } }

/* podium */
.podium-steps { display: flex; align-items: flex-end; gap: 30px; height: 520px; }
.step {
  width: 330px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  height: 100%;
  align-content: end;
}
.step-who { font: 800 42px/1.1 var(--font-display); word-break: break-word; }
.step-who small { display: block; margin-top: 6px; font: 700 30px var(--font-body); color: var(--spark); }
.step-block {
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, var(--step), color-mix(in srgb, var(--step) 30%, #17142e));
  display: grid;
  place-items: start center;
  padding-top: 20px;
  font: 800 110px var(--font-display);
  color: rgba(23, 20, 46, 0.75);
  transform-origin: bottom;
}
.step.s1 { --step: #ffb547; } .step.s1 .step-block { height: 340px; }
.step.s2 { --step: #c9a6ff; } .step.s2 .step-block { height: 250px; }
.step.s3 { --step: #6fd3ff; } .step.s3 .step-block { height: 180px; }
#podium.on .step-block { animation: rise 1s var(--ease-spring) both; }
#podium.on .step.s3 .step-block { animation-delay: 0.3s; }
#podium.on .step.s2 .step-block { animation-delay: 0.9s; }
#podium.on .step.s1 .step-block { animation-delay: 1.6s; }
#podium.on .step-who { animation: who-in 0.6s var(--ease-out) both; }
#podium.on .step.s3 .step-who { animation-delay: 0.9s; }
#podium.on .step.s2 .step-who { animation-delay: 1.5s; }
#podium.on .step.s1 .step-who { animation-delay: 2.3s; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes who-in { from { opacity: 0; transform: translateY(30px); } }
.podium-rest {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: 28px;
  color: var(--muted);
  max-width: 1500px;
}
.podium-rest b { color: var(--text); }

/* ---------- pause ---------- */
/* pendant une question : seul le bloc question est voilé */
.card-pause {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: inherit;
  background: rgba(15, 12, 32, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0s 0.35s;
}
.card.paused .card-pause { opacity: 1; visibility: visible; transition: opacity 0.35s, visibility 0s; }
.card-pause b { font: 800 72px/1 var(--font-display); letter-spacing: -0.02em; animation: breathe 2.4s ease-in-out infinite; }
.card-pause small { font-size: 26px; color: var(--muted); font-weight: 700; }
.card.compact .card-pause b { font-size: 56px; }
.card.compact .card-pause small { font-size: 22px; }
.card.band .card-pause { grid-auto-flow: column; align-items: baseline; gap: 22px; }
.card.band .card-pause b { font-size: 60px; }

/* sans bloc question à l'écran (écran titre, classement…) : pastille en bas */
#pause {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 60;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 30px;
  border-radius: 99px;
  background: rgba(15, 12, 32, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.12);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s 0.4s;
}
#pause.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s; }
#pause p { margin: 0; font: 800 40px var(--font-display); }
#pause small { font-size: 24px; color: var(--muted); }

/* ---------- émission en bandeau (cam plein écran) ---------- */
#card-wrap.mode-band #show-head { width: 1860px; margin-bottom: 8px; padding: 0 12px; align-items: center; }
#card-wrap.mode-band .sh-title {
  padding: 6px 18px;
  border-radius: 99px;
  background: rgba(15, 12, 32, 0.8);
  font-size: 22px;
  color: var(--text);
}
#card-wrap.mode-band .sh-count { padding: 2px 18px; border-radius: 99px; background: rgba(15, 12, 32, 0.8); }
#card-wrap.mode-band .sh-index { font-size: 36px; }
#card-wrap.mode-band .sh-total { font-size: 22px; }
.card.band {
  width: 1860px;
  gap: 10px;
  padding: 16px 28px 10px;
  border-radius: 22px;
}
.card.band .fuse { left: 28px; right: 28px; height: 6px; }
/* catégorie en haut à droite, sans prendre de hauteur */
.card.band .card-head { position: absolute; top: 12px; right: 28px; min-height: 0; font-size: 20px; z-index: 2; }
.card.band .card-head .variant:empty + .variant-hint:empty + .category:empty { display: none; }
/* média à gauche, question à droite */
.card.band .q-body {
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  justify-items: start;
  padding-right: 220px;
}
/* l'image sort du bandeau : sa propre fenêtre (#media-win), placée dans Admin → Overlay */
.q-media { display: contents; }
#media-win {
  --s: 1;
  position: absolute;
  left: 586px;
  top: 300px;
  z-index: 21;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(41, 35, 80, 0.97), rgba(26, 22, 52, 0.97));
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -24px rgba(5, 2, 20, 0.9);
  transform-origin: 0 0;
  transform: translateY(30px) scale(calc(var(--s) * 0.92));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring), filter 0.35s, visibility 0s 0.6s;
}
#media-win.on { opacity: 1; visibility: visible; transform: scale(var(--s)); transition: opacity 0.45s 0.12s var(--ease-out), transform 0.6s 0.12s var(--ease-spring), filter 0.35s, visibility 0s; }
#media-win .q-media { display: block; }
#media-win .q-img, #media-win .q-pix { display: block; max-height: 400px; max-width: 720px; border-radius: 14px; }
#media-win .q-img:not([src]), #media-win .q-img[src=''] { display: none; }
#media-win .q-pix[hidden] { display: none; }
#media-win.paused { filter: blur(14px) brightness(0.5); }
#media-win.revealed { border-color: rgba(255, 181, 71, 0.55); }
#media-win.preview { outline: 4px dashed var(--spark); outline-offset: 8px; }
.card.band .q-text { flex: 1; font-size: 38px; max-width: none; text-wrap: balance; }
.card.band .hint-line:empty { display: none; }
.card.band .q-audio { flex: none; padding: 8px 14px; gap: 14px; }
.card.band .eq { height: 52px; gap: 4px; }
.card.band .eq span { width: 7px; }
.card.band .q-audio-label { font-size: 22px; min-width: 6.5em; }
/* réponses sur une seule ligne */
.card.band .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card.band .choices.tf { grid-template-columns: 1fr 1fr; }
.card.band .choices.order { grid-template-columns: 1fr; }
.card.band .choice { min-height: 64px; font-size: 28px; padding: 8px 16px 8px 8px; border-radius: 16px; }
.card.band .choices.tf .choice { min-height: 64px; font-size: 34px; }
.card.band .choices.order .choice { min-height: 54px; font-size: 26px; }
.card.band .letter { width: 46px; height: 46px; font-size: 28px; border-radius: 12px; }
.card.band .rank { width: 46px; height: 46px; font-size: 26px; }
.card.band .est-big { font-size: 90px; }
.card.band .card-foot { font-size: 21px; }
.card.band .secs { font-size: 40px; }
.card.band .winner { font-size: 21px; padding: 6px 12px; }
.card.band .winners { margin-top: -2px; }
/* l'étiquette d'aperçu passe au-dessus (le bandeau touche le bas de l'écran) */
.card.band .preview-label { bottom: auto; top: -54px; left: 50%; transform: translateX(-50%); }
/* en bandeau, pas d'adresse en haut à droite : elle chevaucherait la fenêtre image */
.band-mode #show-join { display: none; } /* l'adresse est déjà dans le pied du bandeau (« Réponds sur … ») */

/* ---------- aides ---------- */
#preview-hint, #conn {
  position: absolute;
  left: 30px;
  top: 24px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 18px;
  color: #ddd;
  z-index: 100;
  display: none;
}
#preview-hint code { color: var(--spark); }
body.preview #preview-hint { display: block; }
#conn { top: auto; bottom: 24px; color: var(--spark); }
#conn.on { display: block; }

/* (la pause est gérée par .card-pause : pas de filtre sur toute la carte, le libellé reste net) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   LOT 2 — fil d'événements, jokers, équipes, tirage
   ============================================================ */
/* fil d'événements */
#feed {
  position: absolute;
  z-index: 30;
  width: 520px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
#feed.pos-tl { left: 40px; top: 40px; }
#feed.pos-tr { right: 40px; top: 40px; justify-items: end; }
#feed.pos-bl { left: 40px; bottom: 40px; }
#feed.pos-br { right: 40px; bottom: 40px; justify-items: end; }
#feed.pos-off { display: none; }
body.preview #feed.pos-tl { top: 90px; }
.feed-badges { display: flex; gap: 8px; margin: 0; }
.feed-badges span {
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(23, 20, 46, 0.86);
  font: 700 20px var(--font-body);
  color: var(--muted);
}
.feed-badges span:empty, .feed-happy[hidden] { display: none; }
.feed-happy { color: var(--spark) !important; border: 2px solid var(--spark); }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#feed.pos-bl .feed-list, #feed.pos-br .feed-list { order: -1; }
.feed-list li {
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(23, 20, 46, 0.9);
  border-left: 4px solid var(--fc, var(--muted));
  font: 700 20px var(--font-body);
  color: var(--text);
  animation: feed-in 0.4s var(--ease-spring) backwards;
  transition: opacity 0.6s, transform 0.6s;
}
.feed-list li.out { opacity: 0; transform: translateX(-20px); }
.feed-list li.k-joker { --fc: var(--d); }
.feed-list li.k-collective { --fc: var(--spark); }
.feed-list li.k-shop { --fc: var(--b); }
.feed-list li.k-sparks { --fc: var(--spark); }
.feed-list li.k-presence { --fc: var(--c); }
.feed-list li.k-error { --fc: var(--danger); color: var(--muted); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }

/* bannière de joker collectif */
#banner {
  position: absolute;
  left: 50%;
  top: 70px;
  z-index: 55;
  transform: translateX(-50%);
  pointer-events: none;
}
.banner-text {
  display: block;
  padding: 18px 40px;
  border-radius: 99px;
  background: var(--spark);
  color: #2a1a00;
  font: 800 44px var(--font-display);
  white-space: nowrap;
  box-shadow: 0 0 60px rgba(255, 181, 71, 0.55), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
#banner.on .banner-text { animation: banner 3.2s var(--ease-out) both; }
@keyframes banner {
  0% { opacity: 0; transform: translateY(-40px) scale(0.6); }
  12% { opacity: 1; transform: translateY(0) scale(1.08); }
  20%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* 50/50 : les réponses retirées s'effacent */
.choice.removed {
  opacity: 0.18 !important;
  filter: grayscale(1) !important;
  transform: scale(0.96) !important;
}
.choice.removed .c-text { text-decoration: line-through; text-decoration-thickness: 3px; }

/* indice */
.hint-line {
  margin: 0;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.14);
  border: 2px dashed rgba(255, 181, 71, 0.6);
  color: var(--spark);
  font: 700 26px var(--font-display);
}
.hint-line:empty { display: none; }
.card.full .hint-line { font-size: 34px; }
.card.hint-new .hint-line { animation: choice-in 0.6s var(--ease-spring) backwards; }

/* +5 s */
.secs.plus { animation: plus 0.9s var(--ease-spring); color: var(--spark); }
@keyframes plus { 30% { transform: scale(1.5); } }

/* joker dans les gagnants */
.winner .jk { font-size: 0.75em; padding: 2px 8px; border-radius: 99px; background: rgba(201, 166, 255, 0.25); color: var(--d); }

/* barre des équipes (révélation) */
.teambar { display: none; gap: 10px; flex-wrap: wrap; }
.card.revealed .teambar.has { display: flex; }
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid color-mix(in srgb, var(--tc) 50%, transparent);
  font: 700 22px var(--font-body);
  animation: choice-in 0.5s var(--ease-spring) backwards;
}
.team-chip .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tc); }
.team-chip b { font-family: var(--font-display); color: var(--text); }
.team-chip .gain { color: var(--spark); font-family: var(--font-display); }
.team-chip.win { background: color-mix(in srgb, var(--tc) 22%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--tc) 40%, transparent); }
.card.full .team-chip { font-size: 28px; }

/* classement des équipes (écran de classement d'émission) */
.board-teams { display: flex; gap: 16px; justify-content: center; margin: -10px 0 30px; }
.board-teams:empty { display: none; }
.board-teams .team-chip { font-size: 30px; padding: 12px 24px; }
.podium-team { margin: -20px 0 30px; font: 800 40px var(--font-display); color: var(--tc, var(--spark)); }
.podium-team:empty { display: none; }

/* tirage des équipes */
.draw-title { margin: 0 0 40px; font: 800 80px var(--font-display); letter-spacing: -0.02em; }
.draw-cols { display: flex; gap: 28px; justify-content: center; align-items: flex-start; width: 100%; }
.draw-col {
  flex: 1;
  max-width: 400px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 8px solid var(--tc);
}
.draw-col h3 { margin: 0 0 16px; font: 800 44px var(--font-display); color: var(--tc); }
.draw-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 620px; overflow: hidden; }
.draw-col li { font: 700 26px var(--font-body); animation: draw-in 0.5s var(--ease-spring) backwards; }
.draw-col .more { color: var(--muted); }
@keyframes draw-in { from { opacity: 0; transform: translateY(-40px) scale(1.3); } }
/* la droite des estimations ne prend de la place qu'à la révélation */
.card:not(.revealed) .numline { display: none; }

/* ---------- blind test ---------- */
.q-audio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.q-audio[hidden] { display: none; }
.card.full .q-audio { justify-content: center; padding: 22px 30px; }
/* barre de progression de l'écoute (--listen : 0 → 1) */
.q-audio::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--b), var(--d));
  transform-origin: left;
  transform: scaleX(var(--listen, 0));
  opacity: 0.9;
}
.q-audio.answering::after, .q-audio.revealing::after { opacity: 0; }
.eq { display: flex; align-items: center; gap: 5px; height: 70px; }
.card.full .eq { height: 110px; gap: 7px; }
.eq span {
  width: 8px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--b), var(--d));
  transform: scaleY(0.1);
  transition: transform 0.08s linear, opacity 0.3s;
}
.card.full .eq span { width: 12px; }
.q-audio:not(.playing) .eq span { transform: scaleY(0.1) !important; }
.q-audio.answering .eq span { opacity: 0.35; }
.q-audio-label { margin: 0; font: 700 24px var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.card.full .q-audio-label { font-size: 30px; min-width: 7.5em; }
.q-audio.playing .q-audio-label { color: var(--b); }
.q-audio.answering .q-audio-label { color: var(--spark); }
.q-audio.blocked .q-audio-label { color: var(--danger); }
.q-audio.revealing .q-audio-label:empty { display: none; }

/* ---------- top 10 de la saison ---------- */
#top .top-title { margin-bottom: 8px; }
.top-season { margin: 0 0 30px; font: 700 30px var(--font-display); color: var(--muted); text-align: center; }
.top-season:empty { display: none; }
.top-list { gap: 10px; }
.top-list li { padding-top: 12px; padding-bottom: 12px; font-size: 34px; }
.top-list li.p2 { background: rgba(244, 238, 255, 0.10); }
.top-list li.p3 { background: rgba(205, 140, 90, 0.14); }
#top.on .top-list li { animation: row-in 0.6s var(--ease-spring) both; animation-delay: calc(var(--i) * 0.08s + 0.2s); }


/* =============================================================
   HABILLAGE DA (anthracite + bleu électrique, angles vifs,
   étiquettes condensées en capitales, petits repères d'angle)
   Les règles ci-dessous priment sur le style de base.
   ============================================================= */

/* ---------- cartes : fond anthracite, filet, barre bleue à gauche ---------- */
.card {
  border-radius: var(--radius);
  background: rgba(24, 24, 24, 0.96);
  border: 1px solid var(--line);
  box-shadow: inset 5px 0 0 var(--brand), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.card.full, .card.band { border-radius: var(--radius); }
/* repères d'angle (comme sur les cadres de la DA) */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid #5a5a5a;
  pointer-events: none;
}
.card::before { right: 8px; bottom: 8px; border-right-width: 2px; border-bottom-width: 2px; }
.card::after { right: 8px; top: 8px; border-right-width: 2px; border-top-width: 2px; }
.card.band::after { display: none; }
.card.preview { outline-color: var(--brand); }
.card.preview .preview-label { border-radius: 2px; background: var(--brand); color: #fff; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; }

/* mèche : bleu électrique, rouge en fin de chrono */
.fuse { border-radius: 0; background: rgba(255, 255, 255, 0.07); }
.fuse-left {
  border-radius: 0;
  background: repeating-linear-gradient(115deg, #3d7dff 0 10px, var(--brand) 10px 20px);
  box-shadow: 0 0 14px rgba(0, 85, 255, 0.6);
}
.card.urgent .fuse-left { background: repeating-linear-gradient(115deg, #ff9aa3 0 10px, #e2566a 10px 20px); box-shadow: 0 0 14px rgba(255, 116, 128, 0.6); }

/* étiquettes : capitales condensées */
.variant { border-radius: 2px; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.category, .variant-hint { font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.q-text { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; }

/* réponses : tuiles sobres, lettre sur carré bleu */
.choice {
  border-radius: 4px;
  background: #222222;
  border: 1px solid #343434;
}
.card.full .choice, .card.band .choice { border-radius: 4px; }
.letter, .card.full .letter, .card.band .letter, .choices.tf .letter {
  border-radius: 2px;
  background: var(--choice);
  color: #111;
  font-family: var(--font-label);
  font-weight: 700;
}
.c-bar { background: color-mix(in srgb, var(--choice) 24%, transparent); }
.c-pct { font-family: var(--font-label); font-weight: 600; }
.card.revealed .choice.is-correct { border-color: var(--spark); }
.card.revealed .choice.is-correct .letter { background: var(--spark); color: #1a1205; }
.card.revealed .choice.is-correct .c-bar { background: rgba(255, 181, 71, 0.3); }
.rank { border-radius: 2px; }

/* pied de carte */
.secs { font-family: var(--font-label); font-weight: 600; }
.card.urgent .secs { color: var(--danger); }
.count-n { font-family: var(--font-label); }
.how b { color: #fff; }

/* gagnants */
.winner { border-radius: 2px; background: #262626; }
.winner.first { background: rgba(255, 181, 71, 0.16); }
.winner .jk { border-radius: 2px; }

/* blind test */
.q-audio { border-radius: 4px; background: #111; }
.eq span { border-radius: 1px; background: linear-gradient(180deg, #5c94ff, var(--brand)); }
.q-audio.playing .q-audio-label { color: #5c94ff; }
.q-audio::after { background: var(--brand); }
.q-audio-label { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* fenêtre image */
#media-win { border-radius: var(--radius); background: rgba(24, 24, 24, 0.96); border: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--brand), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
#media-win .q-img, #media-win .q-pix { border-radius: 2px; }
#media-win.revealed { border-color: var(--spark); }
#media-win.preview { outline-color: var(--brand); }

/* ---------- bandeau d'émission : onglets façon « SYSTEM LOG » ---------- */
#card-wrap.mode-band #show-head { padding: 0; margin-bottom: 0; align-items: flex-end; }
#card-wrap.mode-band .sh-title, #card-wrap.mode-band .sh-count {
  border-radius: 0;
  padding: 6px 16px 4px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#card-wrap.mode-band .sh-title { background: var(--brand); color: #fff; font-weight: 600; font-size: 22px; }
#card-wrap.mode-band .sh-count { background: rgba(24, 24, 24, 0.96); border: 1px solid var(--line); border-bottom: 0; }
#card-wrap.mode-band .sh-index { font-family: var(--font-label); font-weight: 700; font-size: 34px; color: #fff; }
#card-wrap.mode-band .sh-total { font-family: var(--font-label); font-size: 22px; }
#card-wrap.mode-band .card.band { border-top-left-radius: 0; border-top-right-radius: 0; }
/* grand bloc */
.sh-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; }
.sh-index { font-family: var(--font-label); color: #fff; }

/* pause */
.card-pause { background: rgba(14, 14, 14, 0.72); }
.card-pause b { box-shadow: 0 0 40px rgba(0, 85, 255, 0.55); animation: none; }
.card-pause b, #pause p { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--brand); color: #fff; padding: 2px 18px 0; }
.card-pause small, #pause small { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; }
#pause { border-radius: 0; background: rgba(20, 20, 20, 0.94); border: 1px solid var(--line); padding: 10px 22px 10px 10px; align-items: center; }

/* ---------- écrans plein cadre : titre en bloc bleu ---------- */
.intro-title, .board-title, .podium-title, .draw-title, #top .top-title {
  display: inline-block;
  justify-self: center;
  padding: 8px 30px 2px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.intro-title { font-size: 130px; }
.intro-season, .intro-packs, .top-season { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; }
.board-list li { border-radius: 2px; background: #1f1f1f; border: 1px solid #2e2e2e; }
.board-list li:first-child { background: rgba(0, 85, 255, 0.22); border-color: rgba(0, 85, 255, 0.6); }
.board-list li .r, .board-list li .p { font-family: var(--font-label); }
.top-list li.p2 { background: #262626; }
.top-list li.p3 { background: #232323; }
.step-block { border-radius: 2px 2px 0 0; font-family: var(--font-label); color: rgba(255, 255, 255, 0.9); }
.step.s1 { --step: var(--spark); }   /* le gagnant garde l'ambre du jeu */
.step.s2 { --step: #0055ff; }
.step.s3 { --step: #3d6fd1; }
.step.s1 .step-block { color: #2a1a00; box-shadow: 0 0 60px rgba(255, 181, 71, 0.35); }
.step.s1 .step-who { color: var(--spark); }
.step-block { background: linear-gradient(180deg, var(--step), color-mix(in srgb, var(--step) 25%, #141414)); }
.step-who small { color: var(--spark); }
.join-qr { border-radius: 2px; }
.join-url { font-family: var(--font-label); letter-spacing: 0.02em; }

/* fil d'événements et annonces */
.feed-badges span, .feed-list li { border-radius: 2px !important; }
.banner-text { border-radius: 2px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em; }
.team-chip { border-radius: 2px; }
.feed-list li { background: rgba(20, 20, 20, 0.92); }
.feed-badges span { background: rgba(20, 20, 20, 0.92) !important; }

/* couleur de la catégorie (Éditeur → Catégories) : petit carré devant son nom */
.category { display: inline-flex; align-items: center; gap: 10px; }
.category::before { content: ''; width: 14px; height: 14px; border-radius: 2px; background: var(--cat, transparent); flex: none; }
.category:empty::before { display: none; }

/* question annulée par l'animateur */
.card.cancelled .choices, .card.cancelled .winners { filter: grayscale(1); opacity: 0.45; }
.card.cancelled .how { color: var(--danger); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- « Qui suis-je ? » : indices ---------- */
.q-clues {
  list-style: none;
  margin: 2px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.q-clues[hidden] { display: none; }
.clue {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 26px/1.2 var(--font-body, Inter, sans-serif);
  color: #fff;
  transition: opacity 0.3s, border-color 0.3s, background 0.3s;
}
.cl-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand, #0055ff);
  font: 700 22px/1 var(--font-display, Oswald, sans-serif);
}
.clue.soon { opacity: 0.35; }
.clue.soon .cl-n { background: rgba(255, 255, 255, 0.12); }
.clue.soon .cl-t { font-style: italic; font-weight: 500; }
.clue.current { border-color: rgba(61, 125, 255, 0.7); background: rgba(0, 85, 255, 0.14); }
.clue.new { animation: clue-in 0.55s var(--ease-spring, cubic-bezier(.3,1.4,.5,1)); }
@keyframes clue-in {
  from { opacity: 0; transform: translateX(-24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.card.full .q-clues { max-width: 1300px; margin-inline: auto; width: 100%; }
/* bandeau : les indices s'empilent en colonnes, sur une ligne */
.card.band .q-clues { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 12px; gap: 10px; }
.card.band .clue { font-size: 21px; padding: 6px 12px 6px 6px; min-height: 52px; }
.card.band .cl-n { width: 32px; height: 32px; font-size: 19px; }
.card.band .q-clues { align-self: stretch; width: 100%; }

/* ---------- roue des catégories / vote du chat ---------- */
#wheel { padding: 50px 120px; gap: 14px; }
#wheel .wheel-title {
  display: inline-block;
  justify-self: center;
  margin: 0;
  padding: 8px 30px 2px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.wheel-by { margin: 0 0 6px; font-family: var(--font-label); font-size: 28px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.wheel-by b { color: var(--spark); }
.wheel-spin { position: relative; width: 640px; height: 640px; }
#wheel.vote .wheel-spin { display: none; }
#wheel:not(.vote) .wheel-vote { display: none; }
.wheel-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
.wheel-rim { fill: #141414; stroke: #313131; stroke-width: 4; }
.wheel-rot { transform-origin: 0 0; }
.wseg path { stroke: #141414; stroke-width: 4; transition: filter 0.5s, opacity 0.5s; }
.wseg text { fill: #fff; font-family: var(--font-label); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 5px; }
#wheel.done .wseg:not(.win) path { filter: saturate(0.25) brightness(0.45); }
#wheel.done .wseg.win path { filter: brightness(1.15); }
.wheel-hub { fill: #1e1e1e; stroke: var(--brand); stroke-width: 6; }
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 54px solid #fff;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  z-index: 2;
}
.wheel-result {
  margin: 4px 0 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring);
}
.wheel-result span { font-family: var(--font-label); font-size: 26px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.wheel-result b {
  font-family: var(--font-label);
  font-size: 66px;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 26px 2px;
  background: var(--win, var(--brand));
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
#wheel.done .wheel-result { opacity: 1; transform: none; }
/* roue : le résultat se superpose sous la roue sans la pousser */
#wheel:not(.vote) .wheel-result { position: absolute; left: 0; right: 0; bottom: 34px; }
#wheel:not(.vote) .wheel-spin { margin-bottom: 70px; transition: transform 0.6s var(--ease-out); }
#wheel:not(.vote).done .wheel-spin { transform: scale(0.86) translateY(-30px); }

/* vote : une carte par catégorie */
.wheel-vote { display: grid; gap: 26px; justify-items: center; margin-top: 30px; }
.wv-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; justify-content: center; }
.wv-list li {
  position: relative;
  width: 440px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 18px 18px;
  padding: 26px 28px 24px;
  background: #1e1e1e;
  border: 2px solid #313131;
  border-top: 8px solid var(--c);
  text-align: left;
  animation: row-in 0.6s var(--ease-spring) both;
  animation-delay: calc(var(--i) * 0.12s + 0.25s);
  transition: opacity 0.45s, transform 0.6s var(--ease-spring), border-color 0.4s, filter 0.45s;
}
.wv-n {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--c);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 48px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.wv-name { font-family: var(--font-label); font-weight: 700; font-size: 44px; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.wv-bar { grid-column: 1 / -1; height: 14px; background: #2a2a2a; overflow: hidden; margin-right: 92px; }
.wv-bar i { display: block; height: 100%; width: 0; background: var(--c); transition: width 0.45s var(--ease-out); }
.wv-pct { position: absolute; right: 28px; bottom: 16px; font-family: var(--font-label); font-size: 34px; font-weight: 700; }
.wv-list li.win { transform: scale(1.08); border-color: var(--c); box-shadow: 0 0 60px -10px var(--c); }
.wv-list li.lose { opacity: 0.35; filter: saturate(0.3); transform: scale(0.95); }
.wv-how { margin: 0; font-size: 30px; color: var(--muted); }
.wv-how b { color: #fff; }
.wv-time { color: var(--spark); font-weight: 700; }
#wheel.vote.done .wv-how { opacity: 0; transition: opacity 0.3s; }

/* ============================================================
   PLACEMENT LIBRE (Admin → Overlay)
   ============================================================ */
/* zones des petits éléments : position et taille posées par overlay.js */
.zone {
  position: absolute;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  transform-origin: 0 0;
  pointer-events: none;
}
.zone[data-ax='center'] { justify-content: center; }
.zone[data-ax='end'] { justify-content: flex-end; }
.zone[data-ay='end'] { align-items: flex-end; }
#z-feed { z-index: 30; }
#z-join { z-index: 21; }
#z-banner { z-index: 55; }
#z-pause { z-index: 60; }
/* les éléments suivent leur zone au lieu d'une position fixe */
.zone > #feed, .zone > #feed[class] { position: relative; inset: auto; }
.zone[data-ax='end'] > #feed { justify-items: end; }
.zone[data-ax='center'] > #feed { justify-items: center; }
body.preview .zone > #feed.pos-tl { top: auto; }
.zone > #show-join { position: relative; right: auto; bottom: auto; }
.zone > #banner { position: relative; left: auto; top: auto; transform: none; }
.zone > #pause { position: relative; left: auto; bottom: auto; transform: translateY(20px); }
.zone > #pause.on { transform: none; }
/* annonce figée pendant l'aperçu de placement */
#banner.hold .banner-text { animation: none; opacity: 1; transform: none; }
#banner .banner-text { opacity: 0; }
#banner.on .banner-text, #banner.hold .banner-text { opacity: 1; }
/* aperçu de placement : cadre pointillé */
.zone.layout-preview, .screen.layout-preview { outline: 4px dashed var(--spark); outline-offset: 6px; }
.screen.layout-preview { outline-offset: -4px; }
.zone.layout-preview > #show-join { display: flex !important; }

/* fond assombri limité à la zone d'un écran */
#backdrop.zone-bg { border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.zone > #pause, .zone > #pause small { white-space: nowrap; }
/* annonce : reste dans sa zone (passe sur deux lignes si elle est trop longue) */
.zone > #banner { max-width: 100%; }
.zone > #banner .banner-text { text-align: center; white-space: normal; text-wrap: balance; }
#preview-hint { pointer-events: auto; }
#preview-hint .preview-back { margin-right: 10px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; color: #fff; font-weight: 700; text-decoration: none; }
#preview-hint .preview-back:hover { border-color: var(--brand); }
