/* T'en sais rien, Micheline ! — écran plateau (scène 1920×1080 mise à l'échelle) */
:root {
  --pink: #ff2d95; --yellow: #ffe600; --cyan: #00e5ff; --green: #7dff4d; --orange: #ff8a00; --violet: #b388ff; --red: #ff3b3b;
  --ink: #12061f; --night: #0b0414;
  --title: "Bangers", "Impact", sans-serif; --fat: "Bowlby One", "Impact", sans-serif; --text: "Rubik", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: var(--text); color: #fff; }
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 1920px; height: 1080px; transform-origin: center center; overflow: hidden; background: var(--night); flex: none; }

/* ---------------------------------------------------------------- décor */
#bg { position: absolute; inset: -20px; background: url(/assets/img/studio.jpg) center/cover; filter: brightness(.55) saturate(1.2) blur(2px); transition: filter .6s; }
.phase-titre #bg, .phase-lobby #bg { filter: brightness(.7) saturate(1.3) blur(0); }
.phase-attaque #bg { filter: brightness(.35) saturate(1.6) hue-rotate(-30deg) blur(3px); }
.phase-pub #bg { filter: brightness(.25) saturate(0) blur(4px); }
#stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 50;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
              repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
#spots i { position: absolute; top: -200px; width: 420px; height: 1400px; background: linear-gradient(rgba(255,255,255,.16), transparent 70%);
  filter: blur(18px); transform-origin: top center; mix-blend-mode: screen; animation: sweep 9s ease-in-out infinite alternate; }
#spots i:nth-child(1) { left: 300px; animation-delay: -2s; background: linear-gradient(rgba(255,45,149,.22), transparent 70%); }
#spots i:nth-child(2) { left: 900px; animation-duration: 11s; }
#spots i:nth-child(3) { left: 1500px; animation-delay: -5s; background: linear-gradient(rgba(0,229,255,.2), transparent 70%); }
@keyframes sweep { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }

/* ---------------------------------------------------------------- Dolorès */
#dolores { position: absolute; left: -40px; bottom: 120px; width: 760px; height: 860px; z-index: 5; pointer-events: none;
  transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .5s; }
#dwrap { position: absolute; inset: 0; transform-origin: 50% 95%; }
#dimg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 0 30px rgba(255,45,149,.35)) drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
#dimg.swap { animation: swap .28s ease-out; }
@keyframes swap { 0% { transform: scale(.94) rotate(-2deg); } 60% { transform: scale(1.04) rotate(1deg); } 100% { transform: none; } }
.phase-titre #dolores { transform: translateX(40px) scale(1.04); }
.phase-lobby #dolores { transform: translateX(-30px) scale(.92); transform-origin: bottom left; }
.phase-fin #dolores { transform: translateX(-20px) scale(.95); }
.phase-attaque #dolores { transform: translateX(-160px) scale(.85) rotate(-4deg); }
.phase-pub #dolores { transform: translateX(-560px); opacity: .0; }

/* ---------------------------------------------------------------- barre du haut */
#topbar { position: absolute; top: 18px; left: 24px; right: 24px; height: 90px; display: flex; align-items: center; gap: 24px; z-index: 20; }
#minilogo { height: 86px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); transition: opacity .4s; }
.phase-titre #minilogo, .phase-lobby #minilogo, .phase-intro #minilogo { opacity: 0; }
#qinfo { flex: 1; display: flex; gap: 16px; align-items: center; justify-content: center; font-family: var(--title); font-size: 40px; letter-spacing: 2px; }
#qinfo .tag { background: rgba(0,0,0,.55); border: 3px solid var(--yellow); border-radius: 14px; padding: 2px 18px; color: var(--yellow); }
#qinfo .tag.val { border-color: var(--green); color: var(--green); font-family: var(--fat); font-size: 30px; padding: 8px 18px; }
#qinfo .tag.vach { border-color: var(--red); background: #000; color: #fff; font-family: var(--fat); font-size: 28px; padding: 8px 16px; animation: vachin .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes vachin { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(-2deg); opacity: 1; } }
#roomtag { font-family: var(--fat); font-size: 22px; background: rgba(0,0,0,.6); border-radius: 14px; padding: 10px 16px; color: #fff; text-align: right; line-height: 1.15; }
#roomtag b { color: var(--yellow); font-size: 34px; letter-spacing: 4px; }
#roomtag:empty { display: none; }

/* ---------------------------------------------------------------- zone centrale */
#main { position: absolute; left: 640px; right: 40px; top: 120px; bottom: 350px; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phase-titre #main { left: 700px; top: 40px; bottom: 200px; }
.phase-lobby #main { left: 600px; top: 20px; bottom: 210px; }
.phase-fin #main { bottom: 170px; }
.phase-fin #caption { bottom: 36px; }
.phase-attaque #main, .phase-pub #main, .phase-fin #main, .phase-manche #main, .phase-intro #main { left: 470px; }
.phase-pub #main { left: 80px; }

.panel { background: linear-gradient(160deg, rgba(40,10,70,.92), rgba(18,6,31,.94)); border: 4px solid var(--pink); border-radius: 30px;
  box-shadow: 0 0 40px rgba(255,45,149,.45), inset 0 0 30px rgba(255,255,255,.05); padding: 34px 44px; }
.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.3) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.slidein { animation: slidein .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes slidein { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.wobble { animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03); } }

/* écran titre */
.title-logo { width: 1250px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.7)); }
.press { margin-top: 30px; max-width: 1100px; text-align: center; font-family: var(--title); font-size: 46px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 4px 0 #000;
  animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tagline { font-family: var(--text); font-weight: 700; font-size: 30px; color: #fff; opacity: .9; margin-top: 8px; text-shadow: 0 2px 6px #000; }

/* salon */
.lobby { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; width: 100%; align-items: stretch; }
.lobby .logo { grid-column: 1 / 3; justify-self: center; width: 560px; margin-bottom: -4px; }
.card { background: rgba(14,4,26,.88); border: 4px solid var(--cyan); border-radius: 26px; padding: 24px 28px; box-shadow: 0 0 30px rgba(0,229,255,.25); }
.card.kbd { border-color: var(--yellow); box-shadow: 0 0 30px rgba(255,230,0,.2); }
.card h2 { font-family: var(--title); font-size: 48px; letter-spacing: 2px; margin: 0 0 12px; color: var(--cyan); }
.card.kbd h2 { color: var(--yellow); }
.join { display: flex; gap: 24px; align-items: center; }
.join img.qr { flex: none; width: 240px; height: 240px; background: #fff; border-radius: 14px; padding: 8px; }
.join .how { font-size: 26px; line-height: 1.35; }
.join .url { font-family: var(--fat); font-size: 22px; color: var(--yellow); white-space: nowrap; }
.join .code { font-family: var(--fat); font-size: 86px; letter-spacing: 12px; color: #fff; line-height: 1; text-shadow: 0 6px 0 var(--pink); }
.kbdlist { display: flex; flex-direction: column; gap: 10px; min-height: 150px; font-size: 26px; }
.kbdlist .row { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border-radius: 14px; padding: 8px 14px; }
.key { display: inline-grid; place-items: center; min-width: 54px; height: 54px; border-radius: 12px; background: #fff; color: #111; font-family: var(--fat);
  font-size: 30px; box-shadow: 0 5px 0 #888; text-transform: uppercase; padding: 0 8px; }
.btn { font-family: var(--title); font-size: 36px; letter-spacing: 2px; border: none; border-radius: 18px; padding: 12px 26px; cursor: pointer; color: var(--ink);
  background: var(--yellow); box-shadow: 0 6px 0 #9a8a00; transition: transform .1s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #9a8a00; }
.btn.pink { background: var(--pink); color: #fff; box-shadow: 0 6px 0 #9b1158; }
.btn.big { font-size: 64px; padding: 14px 54px; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; font-size: 28px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.settings { grid-column: 1 / 3; display: flex; gap: 30px; align-items: center; justify-content: center; font-size: 26px; flex-wrap: wrap; }
.seg { display: inline-flex; background: rgba(0,0,0,.5); border-radius: 16px; padding: 5px; gap: 4px; }
.seg button { font-family: var(--text); font-weight: 700; font-size: 24px; border: none; border-radius: 12px; padding: 8px 16px; background: transparent; color: #fff; cursor: pointer; }
.seg button.on { background: var(--cyan); color: var(--ink); }
.seg button[disabled] { opacity: .3; }
.startrow { grid-column: 1 / 3; display: flex; justify-content: center; align-items: center; gap: 30px; }
.small { font-size: 22px; opacity: .8; }

/* présentation / manche */
.bigtitle { font-family: var(--title); font-size: 150px; letter-spacing: 6px; line-height: .95; text-align: center;
  color: var(--yellow); -webkit-text-stroke: 6px #000; paint-order: stroke fill; text-shadow: 0 10px 0 var(--pink), 0 0 60px rgba(255,45,149,.6); }
.subtitle { font-family: var(--title); font-size: 64px; letter-spacing: 3px; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-align: center; margin-top: 16px; }
.contestants { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-top: 30px; }
.contestant { width: 230px; text-align: center; background: rgba(0,0,0,.6); border-radius: 24px; padding: 16px; border: 4px solid var(--c); }
.contestant .av { font-size: 96px; line-height: 1.1; }
.contestant .nm { font-family: var(--fat); font-size: 26px; color: var(--c); }
.contestant .alias { font-family: var(--title); font-size: 30px; color: #fff; opacity: .85; }

/* QCM */
.qnum { font-family: var(--title); font-size: 50px; color: var(--cyan); letter-spacing: 3px; }
.qtitle { font-family: var(--title); font-size: 120px; line-height: 1; text-align: center; color: #fff; -webkit-text-stroke: 5px #000; paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--pink); max-width: 1250px; }
.qtitle span { display: inline-block; animation: letter .5s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes letter { from { transform: translateY(-120px) rotate(-30deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.qvalue { margin-top: 26px; font-family: var(--fat); font-size: 46px; color: var(--green); background: rgba(0,0,0,.6); padding: 6px 28px; border-radius: 20px; border: 3px solid var(--green); }
.question { width: 100%; font-family: var(--text); font-weight: 900; font-size: 46px; line-height: 1.22; text-align: center; }
.choices { margin-top: 26px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice { position: relative; display: flex; align-items: center; gap: 18px; min-height: 104px; border-radius: 22px; padding: 14px 22px 14px 14px;
  font-weight: 900; font-size: 36px; line-height: 1.1; color: var(--ink); background: var(--cc); box-shadow: 0 8px 0 rgba(0,0,0,.45); }
.choice .n { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 16px; background: rgba(0,0,0,.82); color: var(--cc);
  font-family: var(--fat); font-size: 44px; }
.choice:nth-child(1) { --cc: var(--pink); color: #fff; } .choice:nth-child(2) { --cc: var(--yellow); }
.choice:nth-child(3) { --cc: var(--cyan); } .choice:nth-child(4) { --cc: var(--green); }
.choice.out { filter: grayscale(1) brightness(.45); }
.choice.out::after { content: "✖"; position: absolute; right: 18px; font-size: 64px; color: var(--red); text-shadow: 0 0 10px #000; }
.choice.good { animation: good 1s ease-out both; outline: 8px solid #fff; outline-offset: 4px; filter: none; }
@keyframes good { 0% { transform: scale(1); } 30% { transform: scale(1.08); } 100% { transform: scale(1.03); } }
.choice.bad { filter: brightness(.55) saturate(.6); }
.choice .who { position: absolute; right: 10px; top: -26px; display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff; border: 3px solid var(--c); border-radius: 30px; padding: 2px 12px 2px 6px;
  font-size: 24px; font-weight: 700; font-family: var(--text); white-space: nowrap; }
.chip .e { font-size: 30px; }
.chip .d { font-family: var(--fat); font-size: 20px; }
.chip .d.p { color: var(--green); } .chip .d.m { color: var(--red); }
.buzzing { margin-top: 18px; font-family: var(--title); font-size: 56px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 4px 0 #000; min-height: 66px; }

/* Ça ou Ça */
.cc-head { font-family: var(--title); font-size: 96px; color: var(--yellow); -webkit-text-stroke: 4px #000; paint-order: stroke fill; letter-spacing: 3px; }
.cc-sub { font-family: var(--text); font-weight: 900; font-size: 44px; margin-bottom: 20px; text-align: center; }
.cc-board { width: 100%; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: center; }
.cc-cat { border-radius: 26px; padding: 26px 18px; text-align: center; font-family: var(--title); font-size: 58px; letter-spacing: 2px; color: var(--ink); box-shadow: 0 8px 0 rgba(0,0,0,.4); }
.cc-cat .k { display: block; font-family: var(--fat); font-size: 30px; opacity: .75; }
.cc-cat.a { background: var(--pink); color: #fff; } .cc-cat.b { background: var(--cyan); }
.cc-cat.lit { outline: 8px solid #fff; transform: scale(1.06); transition: transform .2s; }
.cc-word { text-align: center; font-family: var(--fat); font-size: 62px; line-height: 1.05; background: #fff; color: var(--ink); border-radius: 24px; padding: 30px 18px; box-shadow: 0 10px 0 var(--violet); }
.cc-both { grid-column: 2; text-align: center; font-family: var(--title); font-size: 40px; color: var(--yellow); }
.cc-progress { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }
.cc-progress i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); }
.cc-progress i.done { background: var(--yellow); } .cc-progress i.cur { background: #fff; box-shadow: 0 0 14px #fff; }
.cc-victim { margin-top: 20px; font-size: 34px; font-weight: 700; }

/* Charabia */
.gib-head { font-family: var(--title); font-size: 110px; letter-spacing: 6px; color: var(--cyan); -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.gib { font-family: var(--title); font-size: 96px; line-height: 1.05; text-align: center; color: #fff; -webkit-text-stroke: 4px #000; paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--violet); max-width: 1250px; }
.gib-cat { margin-top: 10px; font-size: 32px; font-weight: 700; color: var(--yellow); }
.hints { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; align-items: center; min-height: 160px; }
.hint { font-size: 34px; font-weight: 700; background: rgba(0,0,0,.6); border-left: 8px solid var(--yellow); border-radius: 12px; padding: 8px 22px; }
.gib-answer { margin-top: 20px; font-family: var(--fat); font-size: 62px; color: var(--green); text-align: center; }
.typebox { margin-top: 18px; display: flex; gap: 16px; align-items: center; font-size: 30px; font-weight: 700; }
.typebox input { font: 700 40px var(--text); width: 900px; border-radius: 16px; border: 4px solid var(--yellow); padding: 12px 18px; background: #fff; color: #111; }
.foundlist { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Le Mytho */
.myth-head { font-family: var(--title); font-size: 100px; letter-spacing: 5px; color: var(--orange); -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.myth-phrase { font-weight: 900; font-size: 44px; line-height: 1.25; text-align: center; }
.myth-phrase .blank { display: inline-block; min-width: 220px; border-bottom: 6px solid var(--yellow); color: var(--yellow); }
.myth-opts { margin-top: 24px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.myth-opt { position: relative; background: #fff; color: var(--ink); border-radius: 20px; padding: 16px 22px; font-weight: 900; font-size: 34px; box-shadow: 0 6px 0 var(--orange); min-height: 84px; }
.myth-opt.lie { background: #3a1030; color: #fff; box-shadow: 0 6px 0 var(--red); }
.myth-opt.truth { background: var(--green); box-shadow: 0 6px 0 #2d7a10; outline: 6px solid #fff; }
.myth-opts.many { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.myth-opts.many .myth-opt { font-size: 27px; padding: 10px 16px; min-height: 66px; }
.myth-opt .owner { display: block; font-size: 22px; font-weight: 700; margin-top: 6px; }
.myth-opt .votes { position: absolute; right: 10px; top: -22px; display: flex; gap: 4px; }
.waitlist { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.waitlist .chip.done { background: var(--c); color: #000; }

/* pub */
.ad { width: 1400px; height: 580px; border-radius: 30px; background: linear-gradient(135deg, #fff6c9, #ffd1ec); color: var(--ink); position: relative; overflow: hidden;
  box-shadow: 0 0 0 10px #fff, 0 30px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; }
.ad::before { content: "PUBLICITÉ"; position: absolute; top: 18px; left: 26px; font-family: var(--fat); font-size: 22px; letter-spacing: 3px; color: #c2185b; }
.ad .brand { font-family: var(--fat); font-size: 92px; line-height: 1; color: #c2185b; text-shadow: 4px 4px 0 #ffe600; }
.ad .slogan { margin-top: 30px; font-family: var(--title); font-size: 56px; letter-spacing: 2px; }
.ad .stars { position: absolute; inset: 0; background: radial-gradient(circle at 15% 80%, rgba(255,230,0,.5) 0 60px, transparent 61px), radial-gradient(circle at 88% 22%, rgba(0,229,255,.45) 0 80px, transparent 81px); }
.ad.annonce .brand { font-size: 70px; }
.ad .adtxt { position: relative; }
.ad.withimg { flex-direction: row; gap: 36px; text-align: left; padding: 40px 50px; }
.ad.withimg .prod { position: relative; flex: none; width: 690px; height: 460px; object-fit: cover; border-radius: 26px; border: 6px solid #000; box-shadow: 0 14px 0 rgba(0,0,0,.25); transform: rotate(-2deg); animation: prodpop .7s .2s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes prodpop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.ad.withimg .brand { font-size: 74px; }
.ad.withimg .slogan { font-size: 46px; margin-top: 22px; }

/* Micheline Attaque */
.atk-head { font-family: var(--title); font-size: 170px; line-height: .9; text-align: center; color: var(--red); -webkit-text-stroke: 7px #000; paint-order: stroke fill;
  text-shadow: 0 12px 0 var(--yellow); animation: shake .25s infinite; }
@keyframes shake { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-4px,2px) rotate(-1deg); } 75% { transform: translate(4px,-2px) rotate(1deg); } }
.atk-clue { font-family: var(--title); font-size: 60px; letter-spacing: 2px; color: var(--yellow); text-align: center; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.atk-arena { position: relative; width: 1360px; height: 470px; margin-top: 8px; }
.atk-center { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 300px; height: 300px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: radial-gradient(circle, #fff 0 60%, #ffd6ec 100%); color: var(--ink);
  font-family: var(--fat); font-size: 44px; line-height: 1.05; padding: 30px; box-shadow: 0 0 0 12px var(--pink), 0 0 80px rgba(255,45,149,.8); z-index: 2; }
.atk-word { position: absolute; top: 330px; left: 0; font-family: var(--fat); font-size: 72px; line-height: 1; white-space: nowrap; color: var(--ink);
  background: var(--yellow); border: 6px solid #000; border-radius: 30px; padding: 14px 40px; box-shadow: 0 10px 0 rgba(0,0,0,.5);
  animation: fly 1.75s linear both; z-index: 3; }
@keyframes fly {
  0% { left: 100%; transform: translateX(0) scale(.6) rotate(10deg); opacity: 0; }
  16% { left: 50%; transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
  80% { left: 50%; transform: translateX(-50%) scale(1.05) rotate(2deg); opacity: 1; }
  100% { left: 0%; transform: translateX(-100%) scale(.6) rotate(-10deg); opacity: 0; } }
.atk-word.ok, .atk-word.rate { animation: land .35s cubic-bezier(.2,1.6,.4,1) both; left: 50%; transform: translateX(-50%); }
.atk-word.ok { background: var(--green); } .atk-word.rate { background: #fff; }
@keyframes land { from { transform: translateX(-50%) scale(.4); } to { transform: translateX(-50%) scale(1.1); } }
.atk-result { position: absolute; left: 50%; top: 440px; transform: translateX(-50%); font-family: var(--title); font-size: 50px; color: var(--green); white-space: nowrap; text-shadow: 0 4px 0 #000; }
.atk-result.rate { color: #fff; }
.atk-progress { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.atk-progress i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); } .atk-progress i.done { background: var(--red); }

/* fin */
.final { display: flex; align-items: flex-end; gap: 30px; justify-content: center; margin-top: 30px; }
.step { width: 300px; text-align: center; }
.step .av { font-size: 110px; }
.step .nm { font-family: var(--fat); font-size: 30px; color: var(--c); }
.step .sc { font-family: var(--fat); font-size: 30px; white-space: nowrap; }
.step .block { margin-top: 10px; border-radius: 18px 18px 0 0; background: var(--c); color: var(--ink); font-family: var(--title); font-size: 80px; display: grid; place-items: center; }
.rest { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.endbtns { margin-top: 26px; display: flex; gap: 24px; justify-content: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -40px; width: 18px; height: 28px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(1200px) rotate(720deg); } }

/* ---------------------------------------------------------------- minuterie */
#timer { position: absolute; left: 700px; right: 80px; bottom: 318px; height: 40px; z-index: 12; display: none; align-items: center; gap: 18px; }
#timer.on { display: flex; }
#timer .track { flex: 1; height: 22px; background: rgba(0,0,0,.6); border-radius: 12px; overflow: hidden; border: 3px solid rgba(255,255,255,.3); }
#timer .bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--yellow) 40%, var(--green)); transform-origin: left; }
#timer .secs { font-family: var(--fat); font-size: 34px; width: 60px; text-align: right; }
#timer .val { font-family: var(--fat); font-size: 30px; color: var(--green); min-width: 220px; }
.phase-attaque #timer, .phase-caouca #timer { left: 700px; }

/* ---------------------------------------------------------------- sous-titres de Dolorès */
#caption { position: absolute; left: 560px; right: 60px; bottom: 200px; min-height: 84px; z-index: 30; display: flex; gap: 16px; align-items: center;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 26px; padding: 14px 26px; font-weight: 700; font-size: 31px; line-height: 1.2;
  box-shadow: 0 8px 0 var(--pink), 0 20px 40px rgba(0,0,0,.5); transform-origin: left center; transition: opacity .25s, transform .25s; }
#caption::before { content: ""; position: absolute; left: -30px; bottom: 26px; border: 18px solid transparent; border-right: 30px solid rgba(255,255,255,.96); border-left: 0; }
#caption b { flex: none; font-family: var(--title); font-weight: 400; font-size: 32px; color: var(--pink); letter-spacing: 1px; }
#caption.off { opacity: 0; transform: scale(.9); pointer-events: none; }
.phase-titre #caption, .phase-lobby #caption { opacity: 0; }
#caption.old { opacity: .55; }
.phase-pub #caption { left: 80px; } .phase-pub #caption::before { display: none; }

/* ---------------------------------------------------------------- pupitres des joueurs */
#podiums { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 25; display: flex; gap: 14px; justify-content: center; align-items: flex-end; padding: 0 20px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); }
.pod { position: relative; width: 220px; height: 134px; border-radius: 22px 22px 14px 14px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.5));
  border: 4px solid var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .2s, filter .3s; }
.pod .av { font-size: 54px; line-height: 1; }
.pod .nm { font-weight: 900; font-size: 22px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); }
.pod .sc { font-family: var(--fat); font-size: 26px; }
.pod .sc.neg { color: var(--red); }
.pod .k { position: absolute; top: -18px; left: -12px; transform: scale(.75); }
.pod .dev { position: absolute; top: 6px; right: 10px; font-size: 22px; opacity: .8; }
.pod .vach { position: absolute; top: 4px; left: 12px; font-size: 22px; }
.pod .st { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--title); font-size: 30px; white-space: nowrap; padding: 0 12px; border-radius: 12px; }
.pod.s-buzz { transform: translateY(-22px) scale(1.08); box-shadow: 0 0 40px var(--c); animation: buzzpod .15s 4; }
@keyframes buzzpod { 50% { transform: translateY(-22px) scale(1.12) rotate(2deg); } }
.pod.s-buzz .st, .pod.s-tape .st { background: var(--c); color: #000; }
.pod.s-answered .st { background: #fff; color: #000; }
.pod.s-ok { box-shadow: 0 0 40px var(--green); } .pod.s-ok .st { background: var(--green); color: #000; }
.pod.s-ko { box-shadow: 0 0 40px var(--red); } .pod.s-ko .st { background: var(--red); color: #fff; }
.pod.s-victime .st { background: #fff; color: #000; } .pod.s-joue .st { background: var(--yellow); color: #000; }
.pod.s-trouve .st { background: var(--green); color: #000; }
.pod.off { filter: grayscale(1) brightness(.5); }
.pod .delta { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-family: var(--fat); font-size: 40px; animation: delta 2.4s ease-out both; text-shadow: 0 3px 0 #000, 0 0 12px #000; z-index: 3; white-space: nowrap; }
.pod .delta.p { color: var(--green); } .pod .delta.m { color: var(--red); }
@keyframes delta { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%); } }
.phase-titre #podiums, .phase-fin #podiums { display: none; }
.pod.empty { border-style: dashed; opacity: .5; font-size: 22px; text-align: center; padding: 10px; }

/* ---------------------------------------------------------------- bannière, calques */
#banner { position: absolute; left: 0; right: 0; top: 150px;   /* au-dessus de la question, jamais sur les choix (la victime d'une vacherie répond au clavier) */
  z-index: 45; display: none; justify-content: center; pointer-events: none; }
#banner.on { display: flex; }
.vach-banner { font-family: var(--title); font-size: 90px; letter-spacing: 3px; color: #fff; background: #000; border: 8px solid #fff; border-radius: 30px; padding: 10px 50px; transform: rotate(-4deg);
  animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; text-align: center; }
.vach-banner small { display: block; font-size: 46px; color: var(--yellow); }
.vach-banner.out { animation: vachout .45s ease-in both; }
@keyframes vachout { from { transform: rotate(-4deg); opacity: 1; } to { transform: translateY(-260px) scale(.35) rotate(-10deg); opacity: 0; } }
.cow { position: absolute; top: -80px; font-size: 200px; animation: cow 3s linear both; }
@keyframes cow { from { left: -260px; } to { left: 2000px; } }
#overlay { position: absolute; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(5,0,12,.78); }
#overlay.on { display: flex; }
.modal { background: #170728; border: 5px solid var(--yellow); border-radius: 30px; padding: 40px 54px; min-width: 900px; text-align: center; box-shadow: 0 0 60px rgba(255,230,0,.3); }
.modal h2 { font-family: var(--title); font-size: 70px; letter-spacing: 2px; margin: 0 0 16px; color: var(--yellow); }
.modal p { font-size: 32px; margin: 10px 0; }
.modal input { font: 700 46px var(--text); width: 640px; border-radius: 16px; border: 4px solid var(--pink); padding: 12px 18px; text-align: center; }
.modal .keys { display: flex; gap: 14px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.modal .err { color: var(--red); font-weight: 700; min-height: 40px; }
.modal .targets { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.modal .targets .chip { font-size: 30px; cursor: pointer; }
#hint { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 30; font-size: 17px; opacity: .6; text-align: center; white-space: nowrap; }
#netstate { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 70; background: var(--red); color: #fff; font-weight: 700; font-size: 26px; padding: 6px 20px; border-radius: 14px; display: none; }
#netstate.on { display: block; }
.pausebig { font-family: var(--title); font-size: 130px; color: var(--yellow); }

/* ---------------------------------------------------------------- tour V2 : duel, menu, quitte ou double, sondage, image/son */
.popb { animation: pop .5s cubic-bezier(.2,1.6,.4,1) backwards; }      /* comme .pop, mais laisse la main aux transform d'état */
.contestants.duo { align-items: center; gap: 44px; }
.contestants.duo .contestant { width: 300px; }
.contestants.duo .contestant .av { font-size: 130px; }
.vs { font-family: var(--title); font-size: 140px; color: var(--red); -webkit-text-stroke: 6px #000; paint-order: stroke fill; text-shadow: 0 8px 0 var(--yellow); transform: rotate(-8deg); }

.qtag { margin-top: 18px; font-family: var(--fat); font-size: 30px; color: #fff; background: rgba(0,0,0,.65); border: 3px solid var(--cyan); border-radius: 18px; padding: 6px 22px; }
.qtag.surprise { border-color: var(--red); color: var(--yellow); }
.subq { margin-top: 10px; text-align: center; font-family: var(--title); font-size: 36px; letter-spacing: 1px; color: var(--yellow); }
.choice .pts:empty { display: none; }
.choice .pts { margin-left: auto; flex: none; font-family: var(--fat); font-size: 24px; background: rgba(0,0,0,.82); color: #fff; border-radius: 12px; padding: 4px 12px; }

/* questions image / son : l'image à gauche, la question et les choix en colonne à droite */
.qmedia { width: 100%; display: grid; grid-template-columns: 600px 1fr; gap: 26px; align-items: center; }
.mbox { position: relative; width: 600px; height: 440px; border-radius: 26px; overflow: hidden; border: 6px solid #fff; background: #000;
  box-shadow: 0 0 40px rgba(0,229,255,.35), 0 12px 0 rgba(0,0,0,.4); }
.mbox .mimg { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%; transition: transform .35s linear, filter .35s linear; }
.mbox.silhouette { background: radial-gradient(circle at 50% 45%, #fff8d6, #ffc2e4 75%); }
.mbox.silhouette .mimg { object-fit: contain; padding: 14px; filter: brightness(0); transition: filter 1.1s ease-out; }
.mbox.silhouette.lit .mimg { filter: none; }
.mbox.pixel .mimg { display: none; }
.mbox canvas { width: 100%; height: 100%; display: block; }
.mbox.son { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #4a1680, #12061f 80%); }
.mbox .spk { font-size: 130px; line-height: 1; }
.mbox.son.playing .spk { animation: wobble .6s ease-in-out infinite; }
.eq { display: flex; gap: 10px; align-items: flex-end; height: 70px; }
.eq i { width: 20px; height: 14px; background: var(--cyan); border-radius: 6px; }
.eq i:nth-child(2n) { background: var(--pink); } .eq i:nth-child(3n) { background: var(--yellow); }
.mbox.son.playing .eq i { animation: eq .5s ease-in-out infinite alternate; }
.mbox.son.playing .eq i:nth-child(2n) { animation-delay: -.2s; } .mbox.son.playing .eq i:nth-child(3n) { animation-delay: -.35s; }
@keyframes eq { from { height: 10px; } to { height: 70px; } }
.mbox .mlabel { font-weight: 700; font-size: 24px; opacity: .85; min-height: 30px; }
.mbox .replay { font-size: 30px; padding: 8px 22px; }
.mside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mside .panel { padding: 18px 24px; }
.mside .question { font-size: 32px; }
.choices.col { margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
.choices.col .choice { min-height: 70px; font-size: 27px; padding: 8px 16px 8px 10px; gap: 14px; }
.choices.col .choice .n { width: 52px; height: 52px; font-size: 32px; border-radius: 12px; }
.choices.col .choice .who { position: static; transform: none; flex: none; margin-left: auto; max-width: 50%; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.choices.col .chip { font-size: 19px; padding: 1px 9px 1px 4px; border-width: 2px; }
.choices.col .chip .e { font-size: 22px; }
.choices.col .chip .d { font-size: 17px; }
.mside .buzzing { margin-top: 0; font-size: 40px; min-height: 48px; }

/* le menu de Dolorès */
.menu-head { font-family: var(--title); font-size: 96px; letter-spacing: 3px; color: var(--orange); -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 0 8px 0 var(--pink); }
.menu-who { margin: 6px 0 34px; font-size: 32px; font-weight: 700; min-height: 44px; text-align: center; }
.menu-cards { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.mcard { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 290px; padding: 40px 22px 24px; border-radius: 28px;
  text-align: center; background: linear-gradient(170deg, #fff8e1, #ffe0b2); color: var(--ink); border: 6px solid #000; box-shadow: 0 10px 0 rgba(0,0,0,.45);
  transition: transform .3s, filter .3s, opacity .3s; animation: pop .5s cubic-bezier(.2,1.6,.4,1) backwards; }
.mcard .key { position: absolute; top: -28px; left: calc(50% - 27px); }
.mcard .mt { font-family: var(--title); font-size: 46px; line-height: 1.05; letter-spacing: 1px; }
.mcard .mv { font-family: var(--fat); font-size: 26px; color: #2d7a10; }
.mcard .ms { font-weight: 700; font-style: italic; font-size: 22px; }
.mcard.surprise { background: linear-gradient(170deg, #ff6b6b, #c2185b); color: #fff; }
.mcard.surprise .mv { color: var(--yellow); }
.mcard.on { transform: scale(1.08) rotate(-1.5deg); box-shadow: 0 0 0 8px var(--yellow), 0 0 60px rgba(255,230,0,.7); }
.mcard.off { opacity: .35; filter: grayscale(.8); transform: scale(.94); }

/* quitte ou double */
.qod-head { font-family: var(--title); font-size: 120px; line-height: .9; text-align: center; color: var(--red); -webkit-text-stroke: 6px #000; paint-order: stroke fill; text-shadow: 0 10px 0 var(--yellow); }
.qod-who { margin-top: 18px; font-size: 34px; font-weight: 700; display: flex; gap: 14px; align-items: center; }
.qod-who .chip { font-size: 32px; }
.qod-bareme, .qod-band { margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: center; }
.qod-bareme span.w, .qod-bareme span.l, .qod-band span.w, .qod-band span.l { font-size: 30px; font-weight: 700; background: rgba(0,0,0,.7); border-radius: 16px; padding: 8px 18px; border: 3px solid var(--green); }
.qod-bareme span.l, .qod-band span.l { border-color: var(--red); }
.qod-bareme b, .qod-band b { font-family: var(--fat); font-weight: 400; }
.qod-band { margin: 0 0 14px; }
.qod-band span.w, .qod-band span.l { font-size: 24px; padding: 4px 14px; }
.qod-btns { margin-top: 30px; display: flex; gap: 26px; }
.qbtn { display: flex; align-items: center; gap: 14px; font-family: var(--title); font-size: 46px; letter-spacing: 1px; padding: 16px 30px; border-radius: 22px; box-shadow: 0 8px 0 rgba(0,0,0,.45); }
.qbtn.yes { background: var(--green); color: var(--ink); } .qbtn.no { background: #fff; color: var(--ink); }
.qod-how { margin-top: 16px; font-size: 28px; font-weight: 700; min-height: 34px; color: var(--yellow); }

/* Pensez comme Micheline : le tableau du sondage */
.pz-head { font-family: var(--title); font-size: 110px; line-height: .95; text-align: center; color: var(--cyan); -webkit-text-stroke: 5px #000; paint-order: stroke fill; text-shadow: 0 10px 0 var(--violet); }
.pz-consigne { width: 100%; padding: 16px 30px; font-weight: 900; font-size: 38px; text-align: center; line-height: 1.15; }
.pz-board { margin-top: 18px; width: 100%; display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; gap: 12px 18px; perspective: 800px; }
.pz-row { position: relative; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 14px 0 8px; border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, #1d3fa8, #0d1f63); border: 3px solid #6f8cff; box-shadow: 0 5px 0 rgba(0,0,0,.45); }
.pz-row .n { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #0a1640; border: 3px solid var(--yellow); font-family: var(--fat); font-size: 26px; color: var(--yellow); }
.pz-row .t { flex: 1; min-width: 0; font-weight: 900; font-size: 25px; line-height: 1.05; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pz-row .who { flex: none; display: flex; gap: 4px; }
.pz-row .pts { flex: none; font-family: var(--fat); font-size: 30px; color: var(--yellow); min-width: 46px; text-align: right; }
.pz-row.open { animation: flip .5s ease-out; background: linear-gradient(180deg, #fff 0%, #ffe9a8 100%); color: var(--ink); border-color: #fff; }
.pz-row.open .pts { color: #c2185b; }
.pz-row.hit { box-shadow: 0 0 0 4px var(--green), 0 0 30px rgba(125,255,77,.6); }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: none; } }
.face { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #000; border: 3px solid var(--c); font-size: 26px; line-height: 1; }
.pz-extra { margin-top: 14px; width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; min-height: 50px; }
.pz-extra .waitlist { margin-top: 0; }
.pz-acc { font-size: 27px; font-weight: 700; background: rgba(0,0,0,.72); border: 3px solid var(--green); border-radius: 18px; padding: 6px 18px; display: flex; gap: 10px; align-items: center; }
.pz-acc b { font-family: var(--fat); color: var(--green); font-weight: 400; }
.pz-aut { font-size: 24px; font-weight: 700; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* Ça ou Ça ? à deux : chacune ses mots */
.cc-turn { margin-top: 12px; font-family: var(--title); font-size: 44px; letter-spacing: 1px; color: var(--yellow); min-height: 52px; text-shadow: 0 4px 0 #000; }
.cc-turn:empty { min-height: 0; margin: 0; }
.cc-victim .tour .chip { background: var(--c); color: #000; box-shadow: 0 0 24px var(--c); }
.cc-victim .attend { opacity: .55; }
