:root {
  --bg: #0f0b17;
  --bg-soft: #181225;
  --card: #1c1530;
  --card-hover: #271d44;
  --line: #3a2f55;
  --text: #f6f1ff;
  --muted: #aa9fc7;
  --pink: #ff4fa3;
  --violet: #8b5cf6;
  --mauve: #c084fc;
  --lilac: #f0abfc;
  --accent: var(--pink);
  --good: #3ddc97;
  --bad: #ff6b7a;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow: 0 0 28px rgba(255, 79, 163, 0.35), 0 0 60px rgba(139, 92, 246, 0.25);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --grad: linear-gradient(135deg, var(--pink), var(--violet));
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Fond animé ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { background: var(--violet); top: -28vmax; left: -16vmax; }
.bg-blobs span:nth-child(2) { background: var(--pink); top: 18vmax; right: -30vmax; opacity: 0.16; animation-delay: -8s; }
.bg-blobs span:nth-child(3) { background: var(--mauve); bottom: -40vmax; left: 8vmax; opacity: 0.14; animation-delay: -16s; }
@keyframes drift { to { transform: translate(9vmax, 6vmax) scale(1.18); } }

/* ---------- Structure ---------- */
.top { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-logo { animation: spin 14s linear infinite; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name span {
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 16px 32px; outline: none; }
main:focus-visible { outline: none; }

.bottom {
  padding: 18px 16px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* En plein écran, rien d'autre que le jeu : le pied de page disparaît. */
html:fullscreen .bottom, html.fs .bottom { display: none; }
@media (display-mode: fullscreen) { .bottom { display: none; } }

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* ---------- Accueil ---------- */
.hero { padding: 14px 0 6px; position: relative; animation: rise 0.6s var(--ease) both; }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 8.5vw, 4.2rem); letter-spacing: -0.035em; text-wrap: balance; margin-top: 8px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.hero p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; max-width: 640px; }

.section-title { margin: 26px 0 14px; font-size: 1.05rem; color: var(--muted); font-weight: 600; font-family: Inter, system-ui, sans-serif; letter-spacing: 0; }

.theme-grid { display: grid; gap: 12px; }

.theme {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 16px;
  background: linear-gradient(160deg, var(--card), #150f26);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  animation: rise 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
  transition: transform 0.18s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.theme::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-120%);
}
.theme:hover, .theme:focus-visible { transform: translateY(-3px); border-color: var(--pink); box-shadow: var(--glow); }
.theme:hover::after { animation: sheen 0.9s var(--ease); }
.theme .emoji { grid-row: 1 / span 3; font-size: 2.2rem; transition: transform 0.25s var(--ease); }
.theme:hover .emoji { animation: wobble 0.8s ease-in-out; }
.theme .name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.theme .desc { color: var(--muted); font-size: 0.92rem; }
.theme .record { color: var(--lilac); font-size: 0.85rem; font-weight: 600; }

/* ---------- Égaliseur ---------- */
.eq { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.eq i {
  display: block;
  width: 6px;
  height: var(--h, 60%);
  border-radius: 4px;
  background: linear-gradient(to top, var(--violet), var(--pink));
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.hero-eq { margin-top: 18px; height: 44px; opacity: 0.9; }
.load-eq { justify-content: center; height: 54px; }
.party-eq { justify-content: center; margin: 4px auto 0; height: 34px; }
@keyframes eq { 0% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
.party.paused .eq i { animation-play-state: paused; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
  transition: transform 0.12s var(--ease), filter 0.12s, box-shadow 0.2s;
}
.btn:hover { filter: brightness(1.1); box-shadow: var(--glow); }
.btn:active { transform: scale(0.97); }
.btn.big { padding: 18px 32px; font-size: 1.15rem; }
.btn.big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 3.2s var(--ease) infinite; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--pink); box-shadow: none; }
.btn[disabled] { opacity: 0.45; cursor: default; box-shadow: none; }

.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.center { justify-content: center; }

.panel { margin-top: 22px; padding: 28px 20px; background: linear-gradient(160deg, var(--card), #150f26); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); animation: zoom 0.45s var(--ease) both; }
.panel h2 { font-size: 1.7rem; }
.panel p { color: var(--muted); }
.options .big-emoji { font-size: 3rem; animation: bob 2.6s ease-in-out infinite; }

.notice { margin-top: 24px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 107, 122, 0.12); border: 1px solid rgba(255, 107, 122, 0.4); }

.seg-wrap { display: grid; gap: 8px; justify-items: center; }
.seg-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.seg-group { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seg { padding: 10px 18px; min-width: 56px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-weight: 700; cursor: pointer; transition: transform 0.12s var(--ease), border-color 0.2s; }
.seg:hover { border-color: var(--mauve); }
.seg:active { transform: scale(0.95); }
.seg[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }

.spinner { width: 54px; height: 54px; margin: 8px auto 0; border-radius: 50%; background: radial-gradient(circle, var(--lilac) 0 14%, #0f0b17 15% 58%, var(--pink) 59%); animation: spin 1.2s linear infinite; }

/* ---------- Disque ---------- */
.hud { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; color: var(--muted); font-weight: 600; }
.hud .score { color: var(--lilac); }

.bar { height: 8px; margin-top: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 14px rgba(255, 79, 163, 0.7); transition: width 0.25s linear; }

.stage {
  position: relative;
  margin: 22px auto 18px;
  width: min(72vw, 280px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(139, 92, 246, 0.25);
  animation: glow 3s ease-in-out infinite alternate;
}
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage.revealed img { animation: land 0.7s var(--ease) both; }
.stage.revealed { animation: none; box-shadow: var(--shadow), var(--glow); }
@keyframes glow { to { box-shadow: var(--shadow), 0 0 70px rgba(255, 79, 163, 0.4); } }

.vinyl {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--lilac) 0 9%, #0f0b17 10% 14%, transparent 15%),
    repeating-radial-gradient(circle, #1d1430 0 3px, #130d20 3px 6px);
  border: 2px solid var(--line);
  animation: spin 3s linear infinite;
}
.vinyl.paused { animation-play-state: paused; }

/* ---------- Manche solo ---------- */
.round { display: block; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.chip.found { border-style: solid; border-color: var(--good); color: var(--good); background: rgba(61, 220, 151, 0.1); animation: pop 0.35s var(--ease); }

.feedback { min-height: 1.6em; text-align: center; font-weight: 700; margin-bottom: 8px; }
.feedback.good { color: var(--good); }
.feedback.bad { color: var(--bad); }

.guess { display: flex; gap: 10px; }
.guess input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 1.05rem; }
.guess input:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.3); }
.guess.shake { animation: shake 0.35s; }

.under { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.reveal { text-align: center; margin-top: 6px; animation: rise 0.4s var(--ease) both; }
.reveal .t { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.reveal .a { color: var(--muted); font-size: 1.1rem; margin-top: 2px; }
.reveal .gain { margin-top: 10px; color: var(--lilac); font-weight: 800; }
.reveal .link { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Mode soirée ---------- */
.party { text-align: center; animation: fade 0.9s ease both; }
.party .hud { margin-top: 4px; }
.party-left { position: relative; }
.party-right { display: block; }

.count {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(3.5rem, min(24vw, 13vh), 10rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--lilac), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 79, 163, 0.45));
}
.count.tick { animation: tick 0.5s var(--ease); }
.count.urgent { background: linear-gradient(135deg, #ff9bd2, var(--pink)); -webkit-background-clip: text; background-clip: text; animation: tick 0.5s var(--ease), urgent 1s ease-in-out infinite; }

.party .stage-box { position: relative; width: min(62vw, 32vh, 460px); margin: 12px auto; }
.party .stage { width: 100%; margin: 0; }
.glow { position: absolute; inset: -14%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 79, 163, calc(0.22 + 0.55 * var(--u, 0.1))) 0%, rgba(139, 92, 246, calc(0.12 + 0.3 * var(--u, 0.1))) 42%, transparent 68%);
  animation: glowpulse var(--gp, 1.2s) ease-in-out infinite alternate; }
.party .waves { position: absolute; inset: 0; pointer-events: none; }
.party .waves i { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; margin: -39% 0 0 -39%; border-radius: 50%; border: 2px solid var(--mauve); opacity: 0; animation: wave 2.7s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.party .waves i:nth-child(2) { animation-delay: 0.9s; border-color: var(--pink); }
.party .waves i:nth-child(3) { animation-delay: 1.8s; }
.party .vinyl { position: relative; z-index: 1; }
.party .stage { position: relative; z-index: 1; }
.party.paused .waves i, .party.paused .glow { animation-play-state: paused; }
.party .stage-box, .party .count, .party .status, .party .party-answer, .party .party-eq { transition: opacity 0.7s ease; }
.party.swap .stage-box, .party.swap .count, .party.swap .status, .party.swap .party-answer, .party.swap .party-eq { opacity: 0; }
.party.enter .stage-box, .party.enter .count, .party.enter .status, .party.enter .party-answer, .party.enter .party-eq { animation: fade 0.7s ease both; }
.status { min-height: 1.6em; color: var(--muted); font-size: 1.1rem; font-weight: 600; }
.party-answer { margin-top: 6px; min-height: 4.2em; }
.party-answer .pt { font-family: var(--display); font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.1; animation: rise 0.5s var(--ease) both; }
.party-answer .pa { margin-top: 6px; color: var(--mauve); font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 700; animation: rise 0.5s var(--ease) 0.12s both; }

.party-answer .pf { margin-top: 4px; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.5rem); font-weight: 600; animation: rise 0.5s var(--ease) 0.24s both; }
html.fs .party-answer .pf { font-size: clamp(1.2rem, 3.6vh, 3rem); }
.controls { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.3rem; cursor: pointer; transition: transform 0.12s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.icon-btn:hover { border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 79, 163, 0.35); }
.icon-btn:active { transform: scale(0.92); }

.volume-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.volume { width: min(60vw, 280px); accent-color: var(--pink); }

/* Confettis à la révélation */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.burst i { position: absolute; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: burst 1.2s var(--ease) forwards; }

/* ---------- Fin de partie ---------- */
.final { text-align: center; padding: 18px 0 6px; animation: zoom 0.5s var(--ease) both; }
.final .big { font-family: var(--display); font-size: clamp(2.6rem, 14vw, 4.4rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--lilac), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final .max { color: var(--muted); }
.final .msg { margin-top: 12px; font-size: 1.1rem; }
.final .record-new { margin-top: 8px; color: var(--pink); font-weight: 800; animation: pop 0.6s var(--ease); }

.recap { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.recap li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; animation: rise 0.4s var(--ease) both; }
.recap img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }
.recap .rt { font-weight: 700; }
.recap .ra { color: var(--muted); font-size: 0.9rem; }
.recap .rp { font-weight: 800; color: var(--lilac); text-align: right; }
.recap .ticks { font-size: 0.8rem; color: var(--muted); }
.recap .ticks .ok { color: var(--good); }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }
@keyframes land { 0% { transform: scale(0.7) rotate(-4deg); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.1); } }
@keyframes wave { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes glowpulse { from { transform: scale(0.92); opacity: 0.75; } to { transform: scale(1.08); opacity: 1; } }
@keyframes tick { 0% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes urgent { 50% { filter: drop-shadow(0 0 34px rgba(255, 79, 163, 0.9)); } }
@keyframes burst { from { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1.1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

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

/* ---------- Ordinateur ---------- */
@media (min-width: 760px) {
  .top { padding: 20px 32px; }
  .bottom { padding: 24px 32px; }
  main { padding: 8px 32px 56px; }

  .hero { padding: 24px 0 16px; max-width: 820px; }
  .hero p { font-size: 1.2rem; }

  .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .theme { grid-template-columns: 1fr; gap: 6px; padding: 26px 22px; align-content: start; }
  .theme .emoji { grid-row: auto; font-size: 3rem; margin-bottom: 6px; }
  .theme .name { font-size: 1.3rem; }
  .theme .desc { font-size: 1rem; }

  .panel { max-width: 640px; margin-left: auto; margin-right: auto; margin-top: 56px; padding: 40px 32px; }

  .round { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; column-gap: 48px; align-items: start; }
  .round .hud, .round .bar { grid-column: 1 / -1; }
  .round-left .stage { width: 100%; margin: 28px 0 0; }
  .round-right { margin-top: 28px; }
  .round .chips { justify-content: flex-start; }
  .round .feedback { text-align: left; }
  .round .under { justify-content: flex-start; }
  .round .reveal { text-align: left; }

  .final { padding: 40px 0 10px; }
  .recap { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Mode soirée sur grand écran : tout tient dans la fenêtre. */
@media (min-width: 760px) and (orientation: landscape) {
  .party { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .party .hud, .party .bar { grid-column: 1 / -1; }
  .party-left { display: grid; place-items: center; }
  .party .stage-box { width: min(100%, 46vh, 460px); margin: 12px auto; }
  .count { font-size: clamp(3.5rem, 20vh, 9rem); margin-top: 0; }
  .party-answer { min-height: 0; }
  .party-answer .pt { font-size: clamp(1.6rem, 5.5vh, 3rem); }
  .party-answer .pa { font-size: clamp(1.1rem, 3.5vh, 1.8rem); }
  .controls, .volume-row { margin-top: 14px; }
}

@media (max-height: 560px) {
  .top { padding-top: 8px; padding-bottom: 8px; }
  .bottom { padding-top: 8px; padding-bottom: 8px; }
  main { padding-bottom: 8px; }
  .party .stage-box { width: min(100%, 38vh, 460px); margin: 6px auto; }
  .count { font-size: clamp(3rem, 17vh, 6rem); }
  .party-answer .pt { font-size: clamp(1.4rem, 5vh, 2rem); }
  .controls, .volume-row { margin-top: 8px; }
}

/* ---------- Plein écran : tout l'écran sert ---------- */
html.fs main { max-width: none; padding: 0 4vw 2vh; display: flex; }
html.fs .top { padding: 1.2vh 3vw; }
html.fs .party { width: 100%; min-height: calc(100dvh - 9vh); display: flex; flex-direction: column; justify-content: space-evenly; }
html.fs .party .hud { font-size: clamp(1rem, 2.4vh, 1.8rem); }
html.fs .party .bar { height: clamp(8px, 1.3vh, 16px); }
html.fs .party .stage-box { width: min(68vw, 38vh); margin: 2vh auto; }
html.fs .count { font-size: clamp(5rem, 24vh, 22rem); margin-top: 1vh; }
html.fs .status { font-size: clamp(1.1rem, 3vh, 2.2rem); }
html.fs .party-answer { margin-top: 1vh; min-height: 0; }
html.fs .party-answer .pt { font-size: clamp(2.2rem, 7.5vh, 7rem); }
html.fs .party-answer .pa { font-size: clamp(1.4rem, 4.5vh, 4rem); margin-top: 1vh; }
html.fs .icon-btn { width: clamp(52px, 8vh, 96px); height: clamp(52px, 8vh, 96px); font-size: clamp(1.3rem, 3.4vh, 2.4rem); }
html.fs .controls { gap: 2vh; margin-top: 2vh; }
html.fs .volume-row { margin-top: 2vh; font-size: clamp(1rem, 3vh, 2rem); }
html.fs .volume { width: min(50vw, 420px); }
@media (orientation: landscape) {
  html.fs .party { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr; column-gap: 5vw; align-items: center; }
  html.fs .party .hud, html.fs .party .bar { grid-column: 1 / -1; }
  html.fs .party-left { display: grid; place-items: center; align-content: center; gap: 2vh; }
  html.fs .party .stage-box { width: min(38vw, 62vh); margin: 0 auto; }
  html.fs .party-right { display: flex; flex-direction: column; justify-content: center; gap: 1vh; }
  html.fs .count { font-size: clamp(5rem, 30vh, 26rem); }
  html.fs .party-answer .pt { font-size: clamp(2.4rem, 9vh, 8rem); }
  html.fs .party-answer .pa { font-size: clamp(1.6rem, 5.5vh, 5rem); }
}

/* Pages légales */
.legal{max-width:720px;margin:0 auto;padding:24px 16px 48px;line-height:1.6}
.legal h1{font-family:'Bricolage Grotesque',sans-serif;font-size:2rem;margin:.4em 0 .2em}
.legal h2{font-size:1.1rem;margin:1.6em 0 .4em}
.legal ul{padding-left:1.2em}
.legal .updated,.legal .crumbs{opacity:.7;font-size:.9rem}
.legal a{color:#f0abfc}
.footer-legal{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin:6px 0}
.footer-legal a{color:inherit;opacity:.8}
.site-version{opacity:.55;font-size:.8rem}
