/* LA TOUNE — écran de jeu (Mode salon). Pensé pour la télé : gros, lisible à 3 mètres. */
body.jeu {
  min-height: 100dvh;
  background: var(--bleu);
  color: #fff;
  font-size: clamp(16px, 1.05vw + 10px, 22px);
}

/* Fond vivant : trois masses de couleur qui respirent */
.jeu-fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #3A5BFF 0%, var(--bleu) 45%, var(--bleu-fonce) 100%); }
.jeu-fond span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: respire 18s var(--doux) infinite alternate; }
.jeu-fond span:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--rose); left: -14vmax; top: 40%; }
.jeu-fond span:nth-child(2) { width: 38vmax; height: 38vmax; background: var(--violet); right: -12vmax; top: -10vmax; animation-delay: -6s; }
.jeu-fond span:nth-child(3) { width: 28vmax; height: 28vmax; background: var(--menthe); right: 10%; bottom: -16vmax; opacity: .35; animation-delay: -11s; }
@keyframes respire { to { transform: translate(4vmax, -3vmax) scale(1.12); } }
.jeu-fond::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.3px); background-size: 26px 26px; mask-image: linear-gradient(#000, transparent 85%); }

.jeu-entete { display: flex; align-items: center; justify-content: space-between; padding: clamp(14px, 2vw, 26px) clamp(16px, 3vw, 44px); }
.logo { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-size: clamp(1.4rem, 2vw, 1.9rem); }
.logo .titre { letter-spacing: -.05em; }
.logo-disque { width: 1.25em; height: 1.25em; border-radius: 50%; background: radial-gradient(circle, var(--rose) 0 22%, #111 23% 30%, #222 31% 100%); box-shadow: inset 0 0 0 .12em #2c2c2c, inset 0 0 0 .2em #161616, 0 4px 0 rgba(0,0,0,.25); animation: tourne 4s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.entete-droite { display: flex; gap: 10px; }
.btn-icone { width: 48px; height: 48px; border-radius: 16px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .15s var(--ressort); }
.btn-icone:active { transform: translateY(3px); }
.btn-icone svg { width: 24px; height: 24px; }
#b-son[aria-pressed="false"] .onde { opacity: .15; }

.jeu-scene { padding: 0 clamp(16px, 3vw, 44px) 140px; max-width: 1500px; margin: 0 auto; }
.sur-titre { margin: 0 0 .5em; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78em; color: var(--jaune); }
.btn--jaune { --fond: var(--jaune); }

/* ---------- Configuration ---------- */
.config { display: grid; gap: clamp(18px, 2vw, 28px); padding-top: 6px; }
.config-tete { display: flex; align-items: center; gap: clamp(10px, 3vw, 40px); }
.config-mascotte { width: clamp(120px, 16vw, 230px); height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-12px) rotate(-3deg); } }
.config-h1 { margin: 0; font-size: clamp(2.3rem, 5.6vw, 5.4rem); }
.config-h1 em, .fin-h1 em { font-style: normal; color: var(--jaune); }

.bloc { background: #fff; color: var(--encre); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 34px); box-shadow: var(--relief); }
.bloc-h { display: flex; align-items: center; gap: .55em; margin: 0 0 .2em; font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.03em; }
.bloc-n { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--bleu); color: #fff; font-size: .7em; box-shadow: 0 3px 0 var(--bleu-nuit); }
.bloc-aide { margin: 0 0 1em; color: var(--gris); }
.rev-points .bloc-aide { color: rgba(255,255,255,.75); }
.vide { margin: .8em 0 0; color: var(--gris); font-style: italic; }

.ajout { display: flex; gap: 10px; flex-wrap: wrap; }
.ajout input { flex: 1 1 220px; min-width: 0; font: inherit; font-weight: 600; padding: .85em 1.1em; border-radius: 999px; border: 3px solid #E6E4F4; background: #F6F5FD; color: var(--encre); outline: none; transition: border-color .2s; }
.ajout input:focus { border-color: var(--bleu); background: #fff; }

.joueurs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.joueur { display: inline-flex; align-items: center; gap: .45em; padding: .3em .35em .3em .3em; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; box-shadow: 0 4px 0 rgba(0,0,0,.18), var(--interieur); animation: pop .35s var(--ressort); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.joueur-av { width: 2em; height: 2em; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1em; display: grid; place-items: center; }
.joueur-x { width: 1.8em; height: 1.8em; border-radius: 50%; border: 0; background: rgba(0,0,0,.16); color: #fff; display: grid; place-items: center; }
.joueur-x svg { width: .9em; height: .9em; }

.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.genre { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 10px 14px; border-radius: var(--r-m); border: 3px solid transparent; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--encre); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 30%, #ddd); transition: transform .2s var(--ressort), background .2s, border-color .2s; }
.genre img { width: 76px; height: 76px; object-fit: contain; transition: transform .35s var(--ressort); filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.genre:hover img { transform: scale(1.1) rotate(-6deg); }
.genre-nom { font-family: var(--f-titre); font-weight: 800; font-size: 1.05em; letter-spacing: -.02em; text-align: center; line-height: 1.05; }
.genre-n { display: inline-flex; align-items: center; gap: .3em; font-size: .78em; font-weight: 600; color: var(--gris); }
.genre-n svg { width: 1em; height: 1em; }
.genre.actif { background: var(--c); color: #fff; border-color: rgba(255,255,255,.6); transform: translateY(-3px); box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 60%, #000); }
.genre.actif .genre-n { color: #fff; }
.genre.actif::after { content: ''; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23120F2E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.genre.verrou { filter: saturate(.35); opacity: .75; }
.genre.verrou:hover { filter: none; opacity: 1; }

.epoques, .apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pastille, .app-choix { border: 0; padding: .7em 1.15em; border-radius: 999px; background: #F1F0FA; color: var(--encre); font-weight: 700; box-shadow: 0 4px 0 #DAD8EC; transition: transform .18s var(--ressort), background .2s; }
.pastille.actif { background: var(--encre); color: #fff; box-shadow: 0 4px 0 #000; transform: translateY(-2px); }
.app-choix { display: inline-flex; align-items: center; gap: .55em; font-size: 1.05em; padding: .8em 1.3em; }
.app-point { width: .85em; height: .85em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.app-choix.actif { background: var(--c); color: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 55%, #000); transform: translateY(-2px); }
.app-choix.actif .app-point { background: #fff; }

.reglages { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.reglage { display: grid; gap: 8px; }
.reglage-nom { font-weight: 700; }
.segment { display: inline-flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 999px; background: #F1F0FA; width: fit-content; }
.segment button { border: 0; background: transparent; padding: .55em 1em; border-radius: 999px; font-weight: 800; font-family: var(--f-titre); color: var(--gris); transition: background .2s, color .2s; }
.segment button.actif { background: var(--bleu); color: #fff; box-shadow: 0 3px 0 var(--bleu-nuit); }
.segment button[disabled] { opacity: .35; cursor: not-allowed; }

.interrupteur { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; }
.interrupteur-piste { flex: none; position: relative; width: 58px; height: 34px; border-radius: 99px; background: #DAD8EC; transition: background .25s; box-shadow: inset 0 3px 0 rgba(0,0,0,.08); }
.interrupteur-piste::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.15); transition: transform .3s var(--ressort); }
.interrupteur input:checked + .interrupteur-piste { background: var(--menthe); }
.interrupteur input:checked + .interrupteur-piste::after { transform: translateX(24px); }
.interrupteur input:focus-visible + .interrupteur-piste { outline: 4px solid var(--jaune); outline-offset: 2px; }
.interrupteur strong { display: block; }
.interrupteur small { display: block; color: var(--gris); font-size: .85em; }
.rev-points .interrupteur small { color: rgba(255,255,255,.7); }

.offre-pass { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: var(--r-l); background: var(--jaune); color: var(--encre); text-decoration: none; box-shadow: var(--relief); }
.offre-pass img { width: 56px; height: 56px; flex: none; }
.offre-pass b { margin-left: auto; white-space: nowrap; font-family: var(--f-titre); }

.barre-lancer { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 24px; border-radius: 999px; background: rgba(18, 15, 46, .78); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); width: max-content; max-width: calc(100% - 24px); }
.dispo { white-space: nowrap; }
.dispo strong { font-family: var(--f-titre); font-size: 1.3em; color: var(--jaune); }

/* ---------- Carte surprise ---------- */
.carte-scene { min-height: calc(100dvh - 120px); display: grid; place-content: center; justify-items: center; gap: 26px; text-align: center; }
.carte-flip { position: relative; width: min(520px, 86vw); aspect-ratio: 3 / 4; max-height: 62dvh; perspective: 1400px; }
.carte-face { position: absolute; inset: 0; border-radius: var(--r-xl); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 34px; transition: transform .9s var(--ressort); box-shadow: var(--relief-fort); }
.carte-dos { background: repeating-linear-gradient(45deg, var(--rose) 0 22px, #ff66b0 22px 44px); }
.carte-dos .titre { font-size: 8rem; color: #fff; text-shadow: 0 8px 0 rgba(0,0,0,.15); }
.carte-dos img { width: 140px; height: 140px; }
.carte-avant { background: #fff; color: var(--encre); transform: rotateY(180deg); }
.carte-avant h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.carte-avant p { margin: 0; font-size: 1.15em; line-height: 1.45; max-width: 26ch; }
.carte-icone { font-size: 5rem; line-height: 1; filter: drop-shadow(0 10px 8px rgba(0,0,0,.2)); }
.carte-flip.tourne .carte-dos { transform: rotateY(-180deg); }
.carte-flip.tourne .carte-avant { transform: rotateY(0); }

/* ---------- Manche ---------- */
.manche { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.manche-haut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.compteur { display: flex; align-items: baseline; gap: 6px; }
.compteur .titre { font-size: clamp(3.4rem, 7vw, 6.5rem); color: var(--jaune); text-shadow: 0 6px 0 rgba(0,0,0,.18); }
.compteur small { font-weight: 700; opacity: .75; font-size: 1.3em; }
.manche-infos { display: flex; flex-wrap: wrap; gap: 10px; }
.manche-infos .puce { font-size: 1em; padding: .5em 1.1em; }
.manche-infos .puce[style] { background: var(--c); }
.puce--finale { background: var(--jaune); color: var(--encre); }
.puce--carte { background: #fff; color: var(--encre); }

.manche-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: center; }
.jukebox { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); padding: clamp(18px, 2.6vw, 36px); border-radius: var(--r-xl); background: #fff; color: var(--encre); box-shadow: var(--relief-fort); }
.qr-cadre { flex: none; padding: 12px; border-radius: var(--r-l); background: conic-gradient(from 0deg, var(--rose), var(--jaune), var(--menthe), var(--bleu), var(--violet), var(--rose)); animation: tourne-teinte 6s linear infinite; }
@keyframes tourne-teinte { to { filter: hue-rotate(360deg); } }
.qr { width: clamp(180px, 22vw, 330px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.jukebox-texte h2 { margin: 0 0 .35em; font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.jukebox-texte p { margin: 0 0 1em; color: var(--gris); line-height: 1.45; }
.lien-ici { font-size: .85em; font-weight: 600; color: var(--bleu); text-underline-offset: 3px; }
.revelation .lien-ici { color: var(--bleu); }

.chrono-zone { display: grid; justify-items: center; gap: 18px; text-align: center; }
.chrono { position: relative; width: clamp(170px, 20vw, 280px); aspect-ratio: 1; }
.chrono svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.chrono-fond { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.18); stroke-width: 10; }
.chrono-arc { fill: none; stroke: var(--jaune); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset .1s linear; }
.chrono-n { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3.5rem, 6vw, 6rem); }
.chrono.fini .chrono-n { font-size: clamp(2rem, 3.4vw, 3.2rem); color: var(--jaune); animation: secoue .5s; }
.chrono.fini .chrono-arc { stroke: var(--rose); }
@keyframes secoue { 25% { transform: rotate(-6deg) scale(1.1); } 75% { transform: rotate(6deg) scale(1.1); } }
.indices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 0; }
.indice { padding: .55em 1.1em; border-radius: 999px; background: rgba(255,255,255,.16); animation: pop .4s var(--ressort); }
.indice b { color: var(--jaune); }
.manche-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }

.tableau { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tableau li { display: flex; align-items: center; gap: .55em; padding: .45em 1em .45em .45em; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.tab-rang { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--c); font-weight: 800; font-size: .85em; }
.tab-nom { font-weight: 700; }
.tableau b { font-size: 1.35em; color: var(--jaune); }
.feu { display: inline-block; animation: flamme .6s ease-in-out infinite alternate; }
@keyframes flamme { to { transform: scale(1.18) rotate(6deg); } }

/* ---------- Révélation ---------- */
.revelation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.rev-carte { position: relative; padding: clamp(28px, 3.4vw, 52px); padding-top: 120px; margin-top: 80px; border-radius: var(--r-xl); background: #fff; color: var(--encre); text-align: center; box-shadow: var(--relief-fort); animation: arrive .7s var(--ressort); }
@keyframes arrive { from { transform: translateY(40px) scale(.9) rotate(-2deg); opacity: 0; } }
.rev-mascotte { position: absolute; left: 50%; top: -90px; width: 200px; height: 200px; transform: translateX(-50%); filter: drop-shadow(0 16px 20px rgba(0,0,0,.25)); animation: saut 1.2s var(--ressort) .2s both; }
@keyframes saut { from { transform: translate(-50%, 40px) scale(.4); opacity: 0; } }
.rev-carte .sur-titre { color: var(--rose); }
.rev-titre { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4.6rem); overflow-wrap: anywhere; }
.rev-artiste { margin: .3em 0 0; font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2.2rem); color: var(--bleu); }
.rev-annee span { display: inline-block; margin: .6em 0 1em; padding: .3em 1em; border-radius: 999px; background: var(--jaune); font-family: var(--f-titre); font-weight: 800; font-size: 1.3em; box-shadow: 0 4px 0 #D9A900; }
.rev-points { display: grid; gap: 14px; }
.rev-points h3 { margin: 0; font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.pts-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pts-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2em; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r-m); background: rgba(255,255,255,.1); box-shadow: inset 5px 0 0 var(--c); }
.pts-qui { display: flex; align-items: center; gap: .5em; font-weight: 700; min-width: 0; }
.pts-av { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--c); flex: none; }
.pts-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pts-btns button { border: 0; padding: .55em .95em; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-family: var(--f-titre); transition: transform .15s var(--ressort), background .2s; }
.pts-btns button.actif { background: var(--menthe); color: var(--encre); transform: translateY(-2px); box-shadow: 0 4px 0 #14A97A; }
.pts-btns button.joker.actif { background: var(--jaune); box-shadow: 0 4px 0 #D9A900; }
.pts-total { text-align: right; font-size: 1.6em; color: var(--jaune); }
.saute { animation: saute .35s var(--ressort); }
@keyframes saute { 40% { transform: scale(1.45); } }
.choix { display: grid; gap: 6px; font-weight: 700; }
.choix select { font: inherit; padding: .7em 1em; border-radius: var(--r-s); border: 0; background: #fff; color: var(--encre); }
.choix-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rev-points > .btn { justify-self: start; margin-top: 8px; }

/* ---------- Fin ---------- */
.fin { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 10px; }
.fin-mascotte { width: clamp(160px, 18vw, 260px); height: auto; animation: flotte 4s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
.fin-h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 6vw, 5.6rem); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 22px); height: clamp(260px, 36vh, 400px); width: min(820px, 100%); }
.marche { flex: 1; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center; height: 100%; }
.marche-av { font-size: clamp(2.2rem, 4vw, 3.4rem); animation: pop .6s var(--ressort) both; }
.marche-nom { font-weight: 800; font-family: var(--f-titre); font-size: 1.2em; }
.marche-pts { color: var(--jaune); font-size: 1.6em; margin-bottom: 8px; }
.marche-bloc { align-self: end; width: 100%; height: var(--h); display: grid; place-items: start center; padding-top: 14px; border-radius: 22px 22px 8px 8px; background: var(--c); font-size: clamp(3rem, 6vw, 5rem); color: rgba(255,255,255,.95); box-shadow: var(--interieur), 0 10px 0 rgba(0,0,0,.2); animation: monte 1s var(--ressort) both; transform-origin: bottom; }
.marche-1 .marche-bloc { animation-delay: .5s; }
.marche-2 .marche-bloc { animation-delay: .25s; }
@keyframes monte { from { transform: scaleY(0); } }
.tableau--fin { justify-content: center; margin-top: 16px; }
.fin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* ---------- Superposition (offre) ---------- */
.voile[hidden] { display: none; }
.voile { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(14, 26, 107, .6); backdrop-filter: blur(10px); }
.offre { width: min(520px, 100%); display: grid; justify-items: center; gap: 14px; padding: 30px; padding-top: 0; border-radius: var(--r-xl); background: #fff; color: var(--encre); text-align: center; box-shadow: var(--relief-fort); animation: arrive .5s var(--ressort); }
.offre > img { width: 160px; height: 160px; margin-top: -70px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.25)); }
.offre h2 { margin: 0; font-size: 2.3rem; }
.offre p { margin: 0; color: var(--gris); line-height: 1.5; }

.confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .manche-corps, .revelation { grid-template-columns: 1fr; }
  .jukebox { flex-direction: column; text-align: center; }
  .rev-carte { margin-top: 90px; }
}
@media (max-width: 560px) {
  .config-tete { flex-direction: column; text-align: center; }
  .genres { grid-template-columns: repeat(2, 1fr); }
  .pts-ligne { grid-template-columns: 1fr auto; }
  .pts-btns { grid-column: 1 / -1; justify-content: flex-start; grid-row: 2; }
  .barre-lancer { padding-left: 16px; gap: 10px; }
  .barre-lancer .btn--geant { font-size: 1.05rem; padding: .85em 1.2em; }
  .choix-duo { grid-template-columns: 1fr; }
  .offre-pass { flex-wrap: wrap; }
  .offre-pass b { margin-left: 0; }
}

/* ---------- Ajouts de la passe Codex : accessibilité et Quitte ou double ---------- */
.saut-contenu { position: fixed; left: 16px; top: -80px; z-index: 70; padding: .7em 1.2em; border-radius: 999px; background: var(--jaune); color: var(--encre); font-weight: 800; text-decoration: none; transition: top .2s; }
.saut-contenu:focus { top: 16px; }
.dispo small { display: block; font-size: .78em; color: rgba(255,255,255,.75); font-weight: 600; }
.mises { display: grid; gap: 14px; justify-items: start; margin: 0; padding: clamp(18px, 2.4vw, 30px); border: 0; border-radius: var(--r-l); background: #fff; color: var(--encre); box-shadow: var(--relief); }
.mises legend { float: left; width: 100%; margin-bottom: 4px; font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -.02em; }
.mises label { display: inline-flex; align-items: center; gap: .6em; padding: .6em 1.1em; border-radius: 999px; background: #F1F0FA; font-weight: 700; cursor: pointer; }
.mises label:has(input:checked) { background: var(--jaune); }
.mises input { width: 1.2em; height: 1.2em; accent-color: var(--encre); }
.mises p { margin: 0; font-weight: 700; color: var(--sapin); }
.mise-confirmee { padding: .55em .95em; border-radius: 999px; background: var(--jaune); color: var(--encre); font-weight: 800; font-family: var(--f-titre); }
.jeu-scene:focus, .jeu-scene [tabindex="-1"]:focus { outline: none; }

/* Lisibilité des choix actifs (texte blanc sur couleurs vives) */
.genre.actif { background: color-mix(in srgb, var(--c) 78%, #120F2E); }
.app-choix.actif { background: color-mix(in srgb, var(--c) 72%, #120F2E); }
body.jeu .sur-titre { color: #fff; }
.ajout input::placeholder { color: #66637F; }

/* ---------- Version personnelle : platine qui fait jouer l'extrait ---------- */
.platine { flex: none; position: relative; width: clamp(180px, 22vw, 320px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1b1b22 0 3px, #26262f 3px 5px); box-shadow: inset 0 0 0 8px #15151b, 0 20px 40px -12px rgba(9,13,80,.6); }
.platine::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 8%, rgba(255,255,255,.12) 12%, transparent 18% 50%, rgba(255,255,255,.09) 56%, transparent 62%); }
.platine span { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #111 0 7%, var(--rose) 8% 100%); }
.platine.joue { animation: tourne 1.8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.jukebox--perso .lien-ici { color: var(--bleu); }

/* Pointage : quand la colonne est étroite (iPad, téléphone), les boutons passent sous le nom */
.rev-points { container-type: inline-size; }
.pts-qui { overflow-wrap: anywhere; }
@container (max-width: 640px) {
  .pts-ligne { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .pts-btns { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .pts-total { grid-column: 2; grid-row: 1; }
}

/* ---------- Compte et boutique ---------- */
.entete-droite { align-items: center; }
.compte-btn { display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 16px 0 8px; border: 0; border-radius: 16px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
a.compte-btn { padding-left: 12px; background: #fff; color: var(--encre); }
.compte-btn img { width: 32px; height: 32px; border-radius: 50%; }
.compte-btn svg { width: 20px; height: 20px; }
.offre-pass { border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.boutique { width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding-top: 30px; }
.boutique > img { margin-top: 0; width: 120px; height: 120px; }
.boutique-grille { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.b-cat { display: grid; justify-items: center; gap: 2px; padding: 10px 8px 12px; border-radius: var(--r-m); border: 3px solid transparent; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--encre); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 30%, #ddd); transition: transform .2s var(--ressort); }
.b-cat img { width: 56px; height: 56px; object-fit: contain; }
.b-cat span { font-family: var(--f-titre); font-weight: 800; line-height: 1.05; text-align: center; }
.b-cat small { color: var(--gris); font-weight: 600; }
.b-cat.actif { background: color-mix(in srgb, var(--c) 78%, #120F2E); color: #fff; transform: translateY(-3px); }
.b-cat.actif small { color: #fff; }
.boutique-total { min-height: 1.5em; font-family: var(--f-titre); font-weight: 800; font-size: 1.25em; color: var(--encre) !important; }
.boutique-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.boutique-note { font-size: .88em; }
@media (max-width: 560px) { .compte-btn span { display: none; } .compte-btn { padding: 0 8px; } }
