.host .logo.big { font-size: clamp(3rem, 8vw, 6rem); }
.setup { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.small { font-size: .9rem; }
.round-label { margin: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Salon ---------- */
#s-lobby { padding: 32px; }
.lobby { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 32px; width: 100%; align-items: start; }
.join-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.join-panel .step { margin: 0; }
.pin-big { font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; letter-spacing: .12em; line-height: 1; font-variant-numeric: tabular-nums; }
#qr { width: min(280px, 70vw); border-radius: 14px; background: #fff; padding: 8px; }
.lobby-head, .board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lobby-head h2, .board-head h2 { margin: 0; font-size: 2rem; }
.chips { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--panel-strong); font-weight: 800; font-size: 1.25rem; animation: pop .35s ease-out;
  cursor: pointer; transition: opacity .2s;
}
.chips li.off { opacity: .4; }
.chips li:hover { outline: 2px solid var(--bad); }
.chips.small li { font-size: 1rem; cursor: default; padding: 6px 14px 6px 6px; }
.chips.small li:hover { outline: none; }
.chips.small li .avatar { width: 28px; height: 28px; font-size: .85rem; }
.hint { margin: 0; }
.lobby-side #btn-animator { margin-top: 24px; }
.animator-box { margin-top: 24px; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; border: 2px dashed var(--accent-2); }
.animator-box[hidden] { display: none; }
.animator-box p { margin: 0; }
#animator-qr { width: min(200px, 60vw); border-radius: 10px; background: #fff; padding: 6px; }
.crown { font-size: .9em; }

/* ---------- Roue ---------- */
.wheel-wrap { position: relative; width: min(62vh, 80vw); aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; transition: transform 4.3s cubic-bezier(.17, .67, .12, 1); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.wheel text { font-size: 13px; dominant-baseline: middle; text-anchor: middle; }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2;
  border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 40px solid #fff;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
}
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%;
  background: var(--bg-2); border: 6px solid #fff; display: grid; place-items: center; font-size: clamp(1.5rem, 4vh, 3rem);
}
.spin-title { margin: 0; font-size: 2rem; }

/* ---------- Écoute ---------- */
.mystery { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; justify-content: center; }
.countdown { position: relative; width: 220px; height: 220px; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 10; }
.countdown .track { stroke: var(--panel-strong); }
.countdown .bar { stroke: var(--accent-2); stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke .3s; }
.countdown.hurry .bar { stroke: var(--bad); }
.countdown span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown.hurry span { animation: pulse .5s infinite; color: var(--bad); }
.big-q { font-size: clamp(2.2rem, 5vw, 4rem); margin: 20px 0 0; }
.answered p { font-size: 1.4rem; margin: 0; }
.answered .chips { justify-content: center; margin: 12px 0 0; }

/* ---------- Révélation ---------- */
#s-reveal { padding: 32px; }
.reveal { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 32px; width: 100%; align-items: start; }
.answer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: pop .5s ease-out; }
.answer img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.answer img[src=""] { display: none; }
.answer .year { font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 900; line-height: 1; margin-top: 12px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.answer h2 { margin: 6px 0 0; font-size: 1.6rem; }
.answer p { margin: 0; font-size: 1.2rem; }

.ranking { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ranking li {
  display: grid; grid-template-columns: 44px 40px 1fr auto auto; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px;
  font-size: 1.2rem; font-weight: 700; animation: pop .4s ease-out backwards;
}
.ranking .pos { font-weight: 900; font-size: 1.4rem; color: var(--muted); text-align: center; }
.ranking li:nth-child(1) .pos { color: #ffd34d; }
.ranking li:nth-child(2) .pos { color: #d9e1ea; }
.ranking li:nth-child(3) .pos { color: #e09a5b; }
.ranking .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .guess { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.ranking .guess.exact { color: var(--ok); } .ranking .guess.decade { color: var(--warn); }
.ranking .pts { font-weight: 900; min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.ranking .gain { color: var(--ok); font-size: .95rem; margin-right: 6px; }
.ranking.compact { width: 100%; max-width: 640px; }
.ranking.compact li { grid-template-columns: 44px 40px 1fr auto; font-size: 1rem; }

/* ---------- Podium ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; width: 100%; max-width: 720px; }
.podium .step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: pop .6s ease-out backwards; }
.podium .step .who { font-weight: 900; font-size: 1.4rem; text-align: center; word-break: break-word; }
.podium .step .avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.podium .block {
  width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center;
  font-size: 3rem; font-weight: 900; background: linear-gradient(var(--panel-strong), transparent);
  border: 1px solid var(--line); border-bottom: 0;
}
.podium .p1 { order: 2; animation-delay: .9s; } .podium .p1 .block { height: 220px; background: linear-gradient(#ffd34d, #b8860b); color: #3a2400; }
.podium .p2 { order: 1; animation-delay: .5s; } .podium .p2 .block { height: 160px; background: linear-gradient(#d9e1ea, #7d8a99); color: #1d2733; }
.podium .p3 { order: 3; animation-delay: .1s; } .podium .p3 .block { height: 110px; background: linear-gradient(#e09a5b, #8a4b1c); color: #2b1300; }
.podium .score { color: var(--muted); font-weight: 700; }

.mute {
  position: fixed; bottom: 16px; right: 16px; z-index: 20; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 1.3rem;
}

@media (max-width: 860px) {
  .lobby, .reveal { grid-template-columns: 1fr; }
  #s-lobby, #s-reveal { padding: 16px; }
  .ranking li { grid-template-columns: 32px 32px 1fr auto; font-size: 1rem; gap: 10px; }
  .ranking .guess { display: none; }
  .countdown { width: 160px; height: 160px; }
  .countdown span { font-size: 3.6rem; }
}
