/* Sur le Bout de la Langue — verre dépoli sur fond sombre : panneaux translucides, couleurs douces, peu d'effets */

:root {
  --fond: #07080f;
  --texte: #f4f4fb;
  --doux: rgba(244, 244, 251, .58);
  --tres-doux: rgba(244, 244, 251, .38);

  --verre: rgba(255, 255, 255, .055);
  --verre-fort: rgba(255, 255, 255, .09);
  --verre-survol: rgba(255, 255, 255, .12);
  --bord: rgba(255, 255, 255, .11);
  --bord-fort: rgba(255, 255, 255, .22);
  --reflet: inset 0 1px 0 rgba(255, 255, 255, .09);
  --ombre: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --flou: blur(28px) saturate(150%);

  --lavande: #9d8cff;
  --rose: #ff7eb6;
  --cyan: #6fe3ff;
  --or: #ffd68a;
  --vert: #6ee7a8;
  --rouge: #ff8a8a;
  --degrade: linear-gradient(120deg, var(--lavande), var(--rose) 55%, var(--cyan));

  --rayon: 22px;
  --rayon-petit: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: var(--texte);
  background: var(--fond);
}
body { min-height: 100vh; min-height: 100dvh; position: relative; isolation: isolate; }

/* Grandes taches de couleur floues derrière le verre */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}
body::before {
  top: -30vmax; left: -20vmax;
  background: radial-gradient(circle, #5b45ff 0%, rgba(91, 69, 255, 0) 65%);
  animation: deriver 26s ease-in-out infinite alternate;
}
body::after {
  bottom: -35vmax; right: -25vmax;
  background: radial-gradient(circle, #ff4f9a 0%, rgba(255, 79, 154, 0) 60%), radial-gradient(circle at 20% 20%, #1fb8e0 0%, rgba(31, 184, 224, 0) 55%);
  animation: deriver 32s ease-in-out infinite alternate-reverse;
}
@keyframes deriver { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .tourne, .vinyle.derriere { animation: none !important; }
}

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.02em; }

/* ---------- Boutons et champs */
button {
  font: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--bord); border-radius: 999px;
  padding: .75em 1.4em;
  cursor: pointer;
  color: var(--texte);
  background: var(--verre-fort);
  box-shadow: var(--reflet);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  transition: transform .12s, background .2s, border-color .2s, opacity .2s, box-shadow .2s;
}
button:hover { background: var(--verre-survol); border-color: var(--bord-fort); }
button:active { transform: scale(.97); }
button:disabled { opacity: .4; cursor: default; transform: none; }
button:focus-visible, input:focus-visible { outline: 2px solid rgba(157, 140, 255, .7); outline-offset: 2px; }
button.principal {
  background: #f6f5ff; color: #0d0d1a; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(157, 140, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .06);
}
button.principal:hover { background: #fff; box-shadow: 0 14px 38px -10px rgba(157, 140, 255, .9); }
button.discret { background: transparent; border-color: var(--bord); box-shadow: none; color: var(--doux); }
button.discret:hover { background: var(--verre); color: var(--texte); }
button.gros { font-size: 1.1rem; padding: .95em 2em; }

input {
  font: inherit;
  padding: .85em 1.1em;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord);
  width: 100%;
  color: var(--texte);
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
  transition: border-color .2s, background .2s;
}
input::placeholder { color: var(--tres-doux); }
input:focus { outline: none; border-color: rgba(157, 140, 255, .6); background: rgba(0, 0, 0, .3); }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }

.cache { display: none !important; }
.erreur { color: var(--rouge); font-weight: 500; min-height: 1.2em; margin: 0; font-size: .95rem; }
.discret { color: var(--doux); }
p.discret { line-height: 1.5; }

/* Panneau de verre (réutilisé partout) */
.carte, .panneau, .trouvailles, .liste-classement li, .reponse-mini, .entete-animateur, .barre-joueur {
  background: var(--verre);
  border: 1px solid var(--bord);
  box-shadow: var(--reflet), var(--ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Page pour rejoindre */
.centre {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.25rem; gap: 1.1rem;
}
.logo-image { width: 84px; height: 84px; filter: drop-shadow(0 12px 30px rgba(157, 140, 255, .35)); }
.logo {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; margin: -.3rem 0 .2rem;
  line-height: 1.05; text-wrap: balance;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.carte {
  border-radius: 28px; padding: 1.5rem;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: .9rem;
}
.code-saisie {
  text-align: center; font-size: 1.9rem; font-weight: 600; letter-spacing: .45em; padding-left: 1.45em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.code-saisie::placeholder { letter-spacing: .3em; font-weight: 500; }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; padding: .2rem 0; }
.avatar {
  font-size: 1.5rem; padding: 0; aspect-ratio: 1; border-radius: 50%;
  background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none;
  display: grid; place-items: center; opacity: .55; filter: saturate(.6);
}
.avatar:hover { opacity: .9; background: var(--verre); }
.avatar.choisi { opacity: 1; filter: none; background: var(--verre-survol); border-color: var(--bord-fort); box-shadow: 0 0 0 3px rgba(157, 140, 255, .25); }
.carte button.principal { margin-top: .3rem; }
.lien-ecran { color: var(--doux); font-size: .92rem; text-decoration: none; border-bottom: 1px solid var(--bord); padding-bottom: 2px; transition: color .2s; }
.lien-ecran:hover { color: var(--texte); }

/* ---------- Vinyle */
.vinyle {
  width: 120px; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255, 255, 255, .05) 34.5% 35%, transparent 35.5% 44%, rgba(255, 255, 255, .04) 44.5% 45%, transparent 45.5% 56%, rgba(255, 255, 255, .05) 56.5% 57%, transparent 57.5% 67%, rgba(255, 255, 255, .04) 67.5% 68%, transparent 68.5%),
    conic-gradient(from 40deg, #0c0c12 0 12%, #23232e 18%, #0c0c12 26% 62%, #23232e 68%, #0c0c12 76%);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  flex-shrink: 0;
}
.vinyle-etiquette {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--fond) 0 7%, transparent 8%), var(--degrade);
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.vinyle.grand { width: min(36vh, 280px); }
.tourne { animation: tourner 2.4s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

/* ---------- Page joueur */
.ecran-jeu { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.barre-joueur {
  display: flex; justify-content: space-between; align-items: center;
  margin: .6rem; margin-top: max(.6rem, env(safe-area-inset-top));
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; font-weight: 600;
  position: sticky; top: .6rem; z-index: 5;
}
.score { background: rgba(255, 255, 255, .1); padding: .3em .9em; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 650; }
.jauge { height: 3px; margin: 0 1.6rem; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.jauge > div { height: 100%; width: 100%; background: var(--degrade); border-radius: 3px; }
.ecran-jeu-contenu { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.1rem 1.5rem; transition: background .4s; }
.fond-vert { background: radial-gradient(ellipse at 50% 35%, rgba(110, 231, 168, .18), transparent 70%); }
.fond-rouge { background: radial-gradient(ellipse at 50% 35%, rgba(255, 138, 138, .14), transparent 70%); }

.message { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem; }
.message h2 { margin: 0; font-size: 1.6rem; }
.message p { margin: 0; }
.gros-avatar {
  font-size: 3.6rem; width: 112px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--verre-fort); border: 1px solid var(--bord); box-shadow: var(--reflet), var(--ombre);
}
.grand-symbole { font-size: 4.2rem; line-height: 1; }
.grand-rang {
  font-size: 5.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.decompte { font-size: 6rem; font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }

.puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.centre-puces { justify-content: center; }
.puce {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--verre-fort); border: 1px solid var(--bord);
  padding: .35em .85em; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--texte);
  box-shadow: none; backdrop-filter: none;
}
.puce img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-left: -.35em; }
.puce.ok { background: rgba(110, 231, 168, .14); border-color: rgba(110, 231, 168, .4); color: var(--vert); }
.puce.ko { opacity: .5; }
.programme { display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 380px; margin-top: .5rem; }
.programme .puces { justify-content: center; }

.reponse-mini { display: flex; align-items: center; gap: .9rem; padding: .6rem 1.1rem .6rem .6rem; border-radius: 18px; text-align: left; max-width: 100%; margin-top: .4rem; }
.reponse-mini img { width: 60px; height: 60px; border-radius: 10px; }
.reponse-mini div { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.reponse-mini span { color: var(--doux); font-size: .92rem; }

/* Choix : quatre plaques de verre teintées */
.choix-grille { display: grid; grid-template-columns: 1fr; gap: .7rem; flex: 1; }
.choix {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  font-size: 1.08rem; font-weight: 550; border-radius: 18px; padding: 1rem 1.2rem; min-height: 64px;
  --teinte: 255, 255, 255;
  background: linear-gradient(135deg, rgba(var(--teinte), .2), rgba(var(--teinte), .07));
  border: 1px solid rgba(var(--teinte), .35);
  box-shadow: var(--reflet), 0 18px 40px -22px rgba(var(--teinte), .6);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
button.choix:hover { background: linear-gradient(135deg, rgba(var(--teinte), .28), rgba(var(--teinte), .1)); border-color: rgba(var(--teinte), .55); }
.choix .forme {
  font-size: 1rem; width: 2.2em; aspect-ratio: 1; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: rgb(var(--teinte)); background: rgba(var(--teinte), .14);
}
.choix-texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rose { --teinte: 255, 126, 182; }
.bleu { --teinte: 120, 160, 255; }
.jaune { --teinte: 255, 205, 110; }
.vert { --teinte: 110, 231, 168; }

/* Saisie */
.zone-saisie { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 520px; margin: 0 auto; }
.statut-trouve { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.case-trouve {
  background: rgba(255, 255, 255, .03); border: 1px dashed var(--bord-fort); border-radius: 18px;
  padding: .85rem 1rem; display: flex; flex-direction: column; gap: .25rem; min-height: 78px;
}
.case-trouve strong { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.case-trouve.ok { background: rgba(110, 231, 168, .1); border: 1px solid rgba(110, 231, 168, .45); animation: pop .4s; }
.case-trouve.ok strong { color: var(--vert); }
.etiquette { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--tres-doux); font-weight: 600; }
.saisie { display: flex; gap: .5rem; }
.saisie input { min-width: 0; font-size: 1.15rem; border-radius: 999px; padding-left: 1.3em; }
.saisie button { flex-shrink: 0; }
.essais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.essais li { padding: .45rem 1rem; border-radius: 12px; font-size: .95rem; }
.essais li.ok { color: var(--vert); background: rgba(110, 231, 168, .07); }
.essais li.ko { color: var(--tres-doux); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .2); }
.aide { font-size: .82rem; text-align: center; margin: 0; }
.bravo {
  text-align: center; font-size: 1.1rem; font-weight: 600; padding: 1.1rem; border-radius: 18px;
  color: var(--vert); background: rgba(110, 231, 168, .1); border: 1px solid rgba(110, 231, 168, .35);
}
@keyframes pop { 50% { transform: scale(1.04); } }

/* ---------- Grand écran */
.animateur { min-height: 100vh; display: flex; flex-direction: column; }
.entete-animateur {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 1rem 1.5rem 0; padding: .5rem .6rem .5rem 1.1rem; border-radius: 999px;
}
.marque { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.marque img { width: 30px; height: 30px; }
#progression { font-weight: 500; color: var(--doux); font-variant-numeric: tabular-nums; }
.actions { display: flex; align-items: center; gap: .4rem; }
.actions button { padding: .5em 1.1em; font-size: .88rem; }

/* Interrupteur façon iOS */
.interrupteur { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--doux); cursor: pointer; margin-right: .5rem; user-select: none; }
.interrupteur input {
  appearance: none; -webkit-appearance: none; width: 36px; height: 20px; padding: 0; margin: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .14); border: 0; box-shadow: none; position: relative; cursor: pointer; transition: background .2s;
}
.interrupteur input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.interrupteur input:checked { background: var(--lavande); }
.interrupteur input:checked::after { transform: translateX(16px); }

.scene { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
.scene .message h2 { font-size: 2.2rem; }
.surtitre { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--doux); font-weight: 600; margin: 0; }

/* Accueil */
.accueil { display: grid; grid-template-columns: minmax(300px, 1fr) 2.2fr; gap: 1.5rem; flex: 1; align-items: start; }
.panneau { border-radius: 28px; padding: 1.6rem; }
.panneau-rejoindre { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; position: sticky; top: 1.5rem; }
.panneau-rejoindre p { margin: 0; }
.panneau-rejoindre h3 { margin: .9rem 0 .2rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--doux); }
.qr { width: min(220px, 62%); background: #fff; border-radius: 20px; padding: 12px; margin: .4rem 0; box-shadow: 0 20px 50px -20px rgba(157, 140, 255, .6); }
.adresse { font-weight: 500; color: var(--doux); font-size: .95rem; }
.code-salle {
  font-size: 4rem; font-weight: 700; letter-spacing: .18em; padding-left: .18em; line-height: 1.05;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.liste-joueurs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.joueur-puce { padding: .4em 1em .4em .7em; font-weight: 500; animation: pop .4s; backdrop-filter: none; }
.joueur-puce:hover { background: rgba(255, 138, 138, .14); border-color: rgba(255, 138, 138, .4); }
.joueur-puce.deconnecte { opacity: .4; }
.avatar-mini { font-size: 1.2em; margin-right: .3em; }

.panneau-musique { display: flex; flex-direction: column; gap: 1.1rem; }
.panneau-musique h2 { margin: 0; font-size: 1.5rem; }
.panneau-musique > .selection > strong { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--doux); }

/* Onglets : piste de verre avec pastille blanche */
.onglets { display: inline-flex; align-self: flex-start; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--bord); }
.onglet { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; color: var(--doux); padding: .55em 1.3em; }
.onglet:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: var(--texte); }
.onglet.actif { background: #f6f5ff; color: #0d0d1a; }

.contenu-onglet {
  max-height: 44vh; overflow-y: auto; padding: 0 .4rem 1.6rem 0; display: flex; flex-direction: column; gap: 1rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}
.contenu-onglet > p { margin: 0; font-size: .88rem; }
.groupe h4 { margin: 0 0 .55rem; color: var(--tres-doux); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .45rem; }
.tuile, .resultat {
  border-radius: var(--rayon-petit); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .07);
  box-shadow: none; backdrop-filter: none; text-align: left; display: flex; align-items: center;
}
.tuile { gap: .6rem; padding: .7em .9em; font-weight: 500; font-size: .92rem; }
.tuile:hover, .resultat:hover { background: rgba(255, 255, 255, .09); border-color: var(--bord-fort); }
.tuile.choisi, .resultat.choisi {
  background: linear-gradient(135deg, rgba(157, 140, 255, .26), rgba(255, 126, 182, .14));
  border-color: rgba(185, 170, 255, .6);
  box-shadow: 0 10px 26px -14px rgba(157, 140, 255, .9), var(--reflet);
}
.tuile-emoji { font-size: 1.2rem; }
.resultats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .45rem; }
.resultats > p { grid-column: 1 / -1; margin: 0; }
.resultat { gap: .8rem; padding: .5rem; font-weight: 400; }
.resultat img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.resultat img.rond { border-radius: 50%; }
.resultat-texte { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.resultat-texte strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.resultat-texte small { color: var(--doux); }
.selection { display: flex; flex-direction: column; gap: .6rem; border-top: 1px solid var(--bord); padding-top: 1.1rem; }
.selection .discret { font-size: .9rem; }
.puce-retirer { cursor: pointer; backdrop-filter: none; }
.puce-retirer:hover { background: rgba(255, 138, 138, .14); border-color: rgba(255, 138, 138, .4); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem 1.4rem; }
.option { display: flex; flex-direction: column; gap: .4rem; }
.option > span { font-size: .74rem; color: var(--tres-doux); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.segments { display: flex; background: rgba(0, 0, 0, .25); border: 1px solid var(--bord); border-radius: 999px; padding: 3px; }
.segments button {
  flex: 1; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none;
  color: var(--doux); padding: .5em .4em; font-weight: 500; font-size: .88rem;
}
.segments button:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: var(--texte); }
.segments button.actif { background: #f6f5ff; color: #0d0d1a; font-weight: 600; }
#lancer { align-self: stretch; margin-top: .2rem; }

/* Écoute */
.ecoute { flex: 1; display: grid; grid-template-columns: 1fr minmax(260px, 22vw); gap: 1.5rem; }
.ecoute-centre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; }
.disque-chrono { position: relative; display: grid; place-items: center; padding: 22px; }
.anneau {
  --p: 100%;
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lavande), var(--rose) calc(var(--p) * .6), var(--cyan) var(--p), rgba(255, 255, 255, .07) 0);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 4px), #000 calc(50% - 3px));
  mask: radial-gradient(circle, transparent calc(50% - 4px), #000 calc(50% - 3px));
  filter: drop-shadow(0 0 12px rgba(157, 140, 255, .5));
}
/* Pendant l'écoute, l'étiquette du disque devient un cadran sombre pour lire le compte à rebours */
.disque-chrono .vinyle-etiquette { width: 40%; background: radial-gradient(circle at 35% 30%, #23232f, #0d0d15); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08); }
.chiffre { position: absolute; font-size: 3rem; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.egaliseur { width: min(640px, 90%); height: 70px; opacity: .9; }
.consigne { font-size: 1.45rem; font-weight: 500; margin: 0; text-align: center; color: var(--doux); }
.choix-grille.ecran { grid-template-columns: 1fr 1fr; width: min(1100px, 100%); flex: none; }
.choix-grille.ecran .choix { font-size: 1.35rem; padding: 1.2rem 1.4rem; }
.choix-grille.petite .choix { font-size: 1rem; min-height: 48px; padding: .6rem .9rem; }
.choix-grille.petite .choix .forme { width: 1.9em; font-size: .85rem; }
.choix.mauvaise { opacity: .3; filter: saturate(.4); }
.choix.bonne { box-shadow: 0 0 0 2px rgba(var(--teinte), .9), 0 18px 40px -16px rgba(var(--teinte), .8); }
.compte { font-weight: 600; background: rgba(0, 0, 0, .25); padding: .15em .7em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.boutons-manche { display: flex; gap: .5rem; }
.trouvailles { border-radius: 28px; padding: 1.2rem; overflow: hidden; align-self: start; }
.trouvailles h3 { margin: 0 0 1rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--doux); }
.trouvailles ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.trouvaille { display: flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); padding: .5rem .7rem; border-radius: var(--rayon-petit); animation: entree .35s; }
.trouvaille .nom { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: .72rem; font-weight: 600; padding: .25em .65em; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--doux); }
.tag.ok { background: rgba(110, 231, 168, .16); color: var(--vert); }
.tag.ok2 { background: rgba(111, 227, 255, .14); color: var(--cyan); }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }

/* Révélation : la pochette sert aussi de lumière d'ambiance */
.revelation { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; padding: 0 2vw; }
.pochette-bloc { position: relative; width: min(52vh, 440px); aspect-ratio: 1; margin-right: min(16vh, 140px); }
.pochette { position: relative; width: 100%; height: 100%; border-radius: 18px; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); animation: apparait .7s cubic-bezier(.2, .8, .2, 1); z-index: 1; }
.pochette.vide { display: grid; place-items: center; font-size: 5rem; background: var(--verre-fort); border: 1px solid var(--bord); }
.vinyle.derriere { position: absolute; width: 94%; top: 3%; left: 0; animation: sortir 1s .35s cubic-bezier(.2, .8, .2, 1) forwards, tourner 2.4s linear infinite; }
@keyframes sortir { to { left: 36%; } }
@keyframes apparait { from { opacity: 0; transform: scale(.94); filter: blur(8px); } }
.revelation-texte { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.titre-chanson { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; margin: 0; line-height: 1.02; animation: monte .6s .2s both; }
.artiste-chanson {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem); font-weight: 500; margin: 0; animation: monte .6s .35s both;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
.revelation-texte > .discret { margin: 0; font-size: 1.1rem; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } }
.resultats-manche { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.resultats-manche li { display: flex; align-items: center; gap: .35rem; background: var(--verre-fort); border: 1px solid var(--bord); padding: .45rem .95rem .45rem .7rem; border-radius: 999px; animation: entree .4s both; }
.gain { color: var(--vert); font-weight: 600; font-variant-numeric: tabular-nums; }
.suite { display: flex; flex-direction: column; gap: .5rem; align-self: flex-start; margin-top: 1rem; }
.barre-auto { height: 2px; border-radius: 2px; background: var(--degrade); width: 100%; opacity: .8; }
@keyframes vider { to { width: 0; } }

/* Classement */
.classement { width: min(860px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.classement h2 { text-align: center; font-size: 2.2rem; margin: 0 0 .4rem; }
.liste-classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.liste-classement li {
  display: grid; grid-template-columns: 2.6rem 2.4rem 1fr 4rem 5rem 6rem; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 18px; font-size: 1.25rem; animation: entree .45s both;
}
.liste-classement li:first-child { background: linear-gradient(120deg, rgba(255, 214, 138, .16), rgba(255, 255, 255, .05)); border-color: rgba(255, 214, 138, .4); }
.rang { font-weight: 600; color: var(--tres-doux); font-variant-numeric: tabular-nums; }
li:first-child > .rang { color: var(--or); }
.liste-classement .nom { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-classement .nom small { font-size: .8em; color: var(--doux); }
.liste-classement .score { text-align: right; font-weight: 650; background: none; padding: 0; }
.mouvement { font-size: .85rem; font-weight: 600; }
.mouvement.monte { color: var(--vert); }
.mouvement.descend { color: var(--rouge); }
.classement .suite { align-self: center; }

/* Podium */
.podium-ecran { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; }
.podium-ecran h2 { font-size: 2.4rem; margin: 0; }
.podium { display: flex; align-items: flex-end; gap: 1rem; }
.marche { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: min(210px, 28vw); animation: monte .7s both; }
.marche-1 { animation-delay: .6s; }
.marche-2 { animation-delay: .3s; }
.podium-avatar { font-size: 3.6rem; }
.podium-nom { font-size: 1.4rem; font-weight: 650; max-width: 100%; overflow-wrap: anywhere; }
.podium-score { color: var(--doux); font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.socle {
  width: 100%; display: grid; place-items: center; font-size: 2.6rem; border-radius: 22px 22px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid var(--bord); border-bottom: 0; box-shadow: var(--reflet);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.marche-1 .socle { height: 200px; background: linear-gradient(180deg, rgba(255, 214, 138, .35), rgba(255, 214, 138, .04)); border-color: rgba(255, 214, 138, .4); }
.marche-2 .socle { height: 140px; }
.marche-3 .socle { height: 100px; }
.boutons-fin { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }

.voile { position: fixed; inset: 0; background: rgba(7, 8, 15, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; place-items: center; z-index: 50; }
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

@media (max-width: 900px) {
  .accueil, .ecoute, .revelation { grid-template-columns: minmax(0, 1fr); }
  .panneau-rejoindre { position: static; }
  .pochette-bloc { width: min(70vw, 320px); margin: 0 auto; }
  .vinyle.derriere { display: none; }
  .liste-classement li { grid-template-columns: 2rem 2rem 1fr 3.5rem 4.5rem; font-size: 1rem; }
  .liste-classement .gain { display: none; }
  .interrupteur { display: none; }
  .entete-animateur { margin: .6rem .6rem 0; }
  .scene { padding: 1rem .8rem; }
  .revelation { gap: 1.5rem; padding: 0; }
  .titre-chanson, .artiste-chanson { overflow-wrap: anywhere; }
  .suite { align-self: stretch; }
}

/* Petits téléphones : la page pour rejoindre tient sans défiler */
@media (max-height: 740px), (max-width: 360px) {
  .centre { padding: 1.2rem 1rem; gap: .8rem; }
  .logo-image { width: 60px; height: 60px; }
  .logo { font-size: 2rem; }
  .carte { padding: 1.1rem; border-radius: 24px; gap: .7rem; }
  .code-saisie { font-size: 1.6rem; padding-top: .6em; padding-bottom: .6em; }
  .avatar { font-size: 1.3rem; }
  .gros-avatar { width: 88px; font-size: 2.8rem; }
  .decompte { font-size: 4.5rem; }
  .grand-rang { font-size: 4.5rem; }
}

/* Téléphones : rien ne doit dépasser de l'écran */
@media (max-width: 560px) {
  .panneau { padding: 1.1rem; border-radius: 22px; }
  .marque { font-size: 0; gap: 0; }
  .entete-animateur { padding-left: .8rem; gap: .5rem; }
  #progression { font-size: .85rem; white-space: nowrap; }
  .actions { gap: .2rem; }
  .actions button { padding: .5em .8em; }
  .code-salle { font-size: 3rem; }
  .onglets { align-self: stretch; }
  .onglet { flex: 1 1 auto; min-width: 0; padding: .55em .3em; font-size: .84rem; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile { padding: .6em .7em; font-size: .88rem; }
  .options, .resultats { grid-template-columns: minmax(0, 1fr); }
  .segments button { padding: .5em .2em; font-size: .82rem; }
  .boutons-manche, .boutons-fin { flex-wrap: wrap; justify-content: center; }
  .choix-grille.ecran { grid-template-columns: minmax(0, 1fr); }
  .choix-grille.ecran .choix { font-size: 1.05rem; padding: .8rem 1rem; }
  .disque-chrono .vinyle.grand { width: min(30vh, 200px); }
  .consigne { font-size: 1.15rem; }
  .classement h2, .podium-ecran h2, .scene .message h2 { font-size: 1.7rem; }
  .liste-classement li { grid-template-columns: 1.6rem 1.8rem minmax(0, 1fr) auto auto; padding: .6rem .8rem; gap: .4rem; }
  .podium { gap: .5rem; }
  .podium-avatar { font-size: 2.6rem; }
  .podium-nom { font-size: 1rem; }
  .marche-1 .socle { height: 150px; }
  .marche-2 .socle { height: 105px; }
  .marche-3 .socle { height: 75px; }
  .socle { font-size: 2rem; }
}

.accroche { margin: -.6rem 0 .4rem; font-size: .98rem; }
