/* =========================================================
   Équipop — feuille de style
   Mobile d'abord : les styles de base visent le téléphone,
   les media queries en bas élargissent pour tablette / PC.
   ========================================================= */

/* Polices hébergées sur le site (plus rapide, et rien n'est envoyé à Google) */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fredoka.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format("woff2"); }

/* ---------- 1. Variables ---------- */
:root {
  --bg: #0f0b1f;
  --bg-alt: #160f2e;
  --surface: #1f1740;
  --surface-2: #2a2054;
  --border: #3a2f6b;
  --text: #f4f1ff;
  --muted: #b3a9d9;

  --pink: #ff5e8a;
  --violet: #7c5cff;
  --cyan: #2fd4e0;
  --yellow: #ffcc3d;
  --green: #3ddc84;
  --red: #ff4d5e;

  --grad: linear-gradient(135deg, var(--pink), var(--violet));
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --font-title: "Fredoka", "Trebuchet MS", sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; } /* l'attribut hidden l'emporte toujours */

/* ---------- 3. Boutons & puces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 94, 138, .35); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet); }
.btn--small { padding: .45em 1em; font-size: .9rem; }
.btn--big { padding: 1em 2em; font-size: 1.15rem; }
.btn--green { background: var(--green); color: #0b2a17; }
.btn--red { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.chip {
  padding: .45em 1em; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: .9rem;
}
.chip.is-active { background: var(--violet); border-color: var(--violet); }

.badge {
  display: inline-block; padding: .35em .9em; border-radius: 999px;
  background: rgba(124, 92, 255, .18); color: #cfc3ff; font-size: .85rem; font-weight: 600;
  margin-bottom: 1rem;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}

/* ---------- 4. En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 11, 31, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .5em; font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.nav-toggle { background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.nav {
  position: absolute; top: 64px; left: 0; right: 0;
  display: none; flex-direction: column; padding: 8px 16px 16px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.nav.is-open { display: flex; }
.nav a { padding: .7em 0; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; text-align: center; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); }
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__stats { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); }
.hero__stats strong { color: var(--text); font-family: var(--font-title); font-size: 1.4rem; margin-right: .2em; }
.hero__blobs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: float 12s ease-in-out infinite alternate;
}
.hero__blobs span:nth-child(1) { width: 320px; height: 320px; background: var(--pink); top: -80px; left: -80px; }
.hero__blobs span:nth-child(2) { width: 280px; height: 280px; background: var(--violet); bottom: -100px; right: -60px; animation-delay: -4s; }
.hero__blobs span:nth-child(3) { width: 200px; height: 200px; background: var(--cyan); top: 40%; left: 55%; opacity: .25; animation-delay: -8s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }

/* Choix du public : entreprise / particuliers */
body:not([data-audience="perso"]) .aud-perso,
body[data-audience="perso"] .aud-pro { display: none; }
.aud-switch {
  display: inline-flex; padding: 4px; margin-bottom: 1.2rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.aud-switch__btn {
  padding: .55em 1.1em; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.aud-switch__btn.is-active { background: var(--grad); color: #fff; }
.hero__inner .badge { display: table; margin: 0 auto 1rem; }
.audiences { display: grid; gap: 16px; }
.audience { border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 10px; }
.audience__icon { font-size: 2.6rem; }
.audience ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--muted); }
.audience .btn { align-self: flex-start; }

/* ---------- 6. Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.section__lead { color: var(--muted); max-width: 620px; margin-bottom: 2rem; }

/* ---------- 7. Joueurs ---------- */
.players__form { display: flex; flex-direction: column; gap: 10px; }
.players__form input, .field {
  flex: 1; padding: .8em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); outline: none;
}
.players__form input:focus, .field:focus { border-color: var(--violet); }
.players__list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.players__list li {
  display: flex; align-items: center; gap: .4em;
  padding: .4em .5em .4em .9em; border-radius: 999px; background: var(--surface-2);
  animation: pop .25s ease;
}
.players__list li button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0 .3em; }
.players__list li button:hover { color: var(--red); }
.players__list .empty { background: none; color: var(--muted); padding: 0; }
.players__footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; color: var(--muted); }
.players__footer div { display: flex; gap: 8px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- 8. Grille de cartes ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--violet));
}
.tile:hover { transform: translateY(-4px); border-color: var(--c, var(--violet)); box-shadow: var(--shadow); }
.tile__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c, var(--violet)) 22%, transparent);
}
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tile__meta span { font-size: .78rem; padding: .25em .7em; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tile.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- 9. Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-top: 28px; }
.steps__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); font-family: var(--font-title); font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- 10. Pied de page ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); text-align: center; }
.footer__small { font-size: .85rem; }

/* ---------- 11. Fenêtre modale ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 3, 14, .8); backdrop-filter: blur(6px);
  display: flex; align-items: stretch; justify-content: center;
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 960px; background: var(--bg-alt);
  display: flex; flex-direction: column; animation: slideUp .3s ease;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal__head h2 { margin: 0; font-size: 1.4rem; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.modal__body { flex: 1; overflow-y: auto; padding: 20px 16px 32px; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }

/* ---------- 12. Éléments communs aux outils/jeux ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }
.big-text { font-family: var(--font-title); font-size: clamp(1.6rem, 6vw, 2.8rem); line-height: 1.2; }
.huge { font-family: var(--font-title); font-size: clamp(3.5rem, 18vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }
select.field { appearance: auto; }

/* Équipes */
.teams { display: grid; grid-template-columns: 1fr; gap: 12px; }
.team { border-radius: var(--radius); padding: 16px; background: var(--surface); border-top: 5px solid var(--c); animation: pop .3s ease both; }
.team h3 { color: var(--c); margin-bottom: .4em; }
.team ul { margin: 0; padding-left: 1.1em; }

/* Roue */
.wheel-wrap { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; transition: transform 4.5s cubic-bezier(.17, .67, .2, 1); }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 30px solid var(--yellow); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); z-index: 2;
}
.wheel-result { min-height: 2.6em; }

/* Chrono */
.timer-display.is-low { color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); width: 100%; transition: width .25s linear; }

/* Scores */
.score-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); }
.score-row__name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row__pts { font-family: var(--font-title); font-size: 1.6rem; min-width: 2.5ch; text-align: center; }
.score-row.is-first { outline: 2px solid var(--yellow); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem; font-weight: 700; background: var(--surface-2); }
.round-btn--plus { background: var(--green); color: #0b2a17; }

/* Dés */
.dice { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.die {
  width: 90px; height: 90px; border-radius: 18px; background: #fff; color: #1a1033;
  display: grid; place-items: center; font-size: 3.5rem; box-shadow: var(--shadow);
}
.die.is-rolling { animation: roll .5s ease; }
@keyframes roll { 0% { transform: rotate(0) scale(.8); } 50% { transform: rotate(200deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }

/* Cartes de question */
.qcard {
  border-radius: 24px; padding: 32px 24px; text-align: center;
  background: var(--grad); box-shadow: var(--shadow); animation: pop .3s ease;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.qcard__tag { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600; }

/* Quiz */
.answers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.answer {
  padding: 16px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left; font-weight: 600; font-size: 1.05rem;
}
.answer:hover { border-color: var(--violet); }
.answer.is-good { background: var(--green); border-color: var(--green); color: #0b2a17; }
.answer.is-bad { background: var(--red); border-color: var(--red); opacity: .8; }

/* Tu préfères */
.wyr { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wyr__opt {
  position: relative; overflow: hidden; border: 0; border-radius: var(--radius); padding: 28px 20px;
  font-family: var(--font-title); font-size: 1.35rem; cursor: pointer; color: #fff; min-height: 130px;
}
.wyr__opt:nth-child(1) { background: var(--pink); }
.wyr__opt:nth-child(3) { background: var(--violet); }
.wyr__or { text-align: center; font-family: var(--font-title); color: var(--muted); }
.wyr__bar { position: absolute; left: 0; bottom: 0; height: 8px; background: rgba(255,255,255,.7); transition: width .4s; }
.wyr__count { display: block; font-family: var(--font-text); font-size: .9rem; margin-top: 8px; opacity: .9; }

/* Duel réflexe */
.duel { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; height: min(70vh, 560px); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.duel__side {
  border-radius: var(--radius); display: grid; place-items: center; text-align: center; cursor: pointer;
  font-family: var(--font-title); font-size: 1.4rem; padding: 12px; transition: background .1s;
}
.duel__side:first-child { transform: rotate(180deg); }
.duel__side.p1 { background: color-mix(in srgb, var(--pink) 35%, var(--surface)); }
.duel__side.p2 { background: color-mix(in srgb, var(--cyan) 35%, var(--surface)); }
.duel.is-go .duel__side { background: var(--green); color: #0b2a17; }
.duel__side.is-win { background: var(--yellow) !important; color: #1a1033; }
.duel__side.is-lose { background: var(--surface) !important; color: var(--muted); }
.duel__score { display: block; font-size: 2.5rem; }

/* Bombe */
.bomb { font-size: 7rem; text-align: center; line-height: 1; }
.bomb.is-ticking { animation: shake .3s infinite; }
.bomb.is-boom { animation: boom .6s ease; }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes boom { 0% { transform: scale(1); } 50% { transform: scale(2); } 100% { transform: scale(1.3); } }

/* Compte à rebours "Qui de nous" */
.countdown { font-family: var(--font-title); font-size: 6rem; text-align: center; animation: pop .4s ease; }

/* Blind test */
.bt-stage {
  min-height: 190px; border-radius: 24px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, #e05cff 35%, var(--surface)), var(--surface));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  animation: pop .3s ease;
}
.bt-cover { width: 140px; height: 140px; border-radius: 16px; box-shadow: var(--shadow); object-fit: cover; }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.eq span { width: 10px; height: 12px; border-radius: 6px; background: var(--grad); }
.eq.is-playing span { animation: eq 0.9s ease-in-out infinite alternate; }
.eq span:nth-child(2n) { animation-delay: -.3s !important; }
.eq span:nth-child(3n) { animation-delay: -.6s !important; animation-duration: .7s !important; }
.eq span:nth-child(5n) { animation-delay: -.15s !important; animation-duration: 1.1s !important; }
@keyframes eq { from { height: 10px; } to { height: 70px; } }
.bt-scores { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bt-score {
  display: inline-flex; gap: .5em; align-items: center; padding: .5em 1em; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, var(--surface)); font-weight: 600;
  user-select: none; -webkit-user-select: none;
}
.bt-score strong { font-family: var(--font-title); font-size: 1.15rem; }
.bt-score:active { transform: scale(.95); }

/* ===== Jeux de société ===== */
.section--board { background: radial-gradient(ellipse at 20% 0%, rgba(255, 204, 61, .12), transparent 60%), var(--bg-alt); }
.grid--board .tile { padding: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 20%, var(--surface)), var(--surface) 60%); }
.grid--board .tile__icon { width: 72px; height: 72px; font-size: 2.4rem; }
.grid--board .tile:first-child { border-color: color-mix(in srgb, var(--c) 60%, var(--border)); }

.pawn-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex-shrink: 0; display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.team-inputs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.team-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--c); }
.team-input .field { flex: 1; min-width: 0; }
.team-input__name { flex: 1; font-weight: 600; }
.team-input__name + .field { max-width: 160px; }

/* Plateau */
.plateau { display: grid; gap: 16px; }
.board { display: grid; gap: 5px; padding: 10px; border-radius: 20px; background: #120c28; border: 1px solid var(--border); }
.cell {
  position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 30%, #1a1238); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}
.cell--plain { background: #1c1540; border-color: #2a2054; }
.cell--start, .cell--end { background: color-mix(in srgb, var(--c) 55%, #1a1238); }
.cell--end { box-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); }
.cell__n { position: absolute; top: 2px; left: 5px; font-size: .62rem; color: rgba(255,255,255,.45); }
.cell__icon { font-size: clamp(1rem, 3.6vw, 1.5rem); opacity: .9; }
.cell__pawns { position: absolute; inset: auto 2px 2px 2px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.pawn {
  width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid #fff;
  display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #1a1033;
  box-shadow: 0 3px 6px rgba(0,0,0,.5); animation: hop .25s ease;
}
.pawn.is-turn { outline: 3px solid var(--c); outline-offset: 2px; z-index: 2; }
@keyframes hop { 40% { transform: translateY(-10px) scale(1.15); } }
.pl-side { display: flex; flex-direction: column; gap: 14px; }
.pl-turn { display: flex; align-items: center; gap: 10px; justify-content: center; font-family: var(--font-title); font-size: 1.35rem; }
.pl-side .die { width: 76px; height: 76px; font-size: 3rem; }
.pl-teams { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-teams li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; }
.pl-teams li.is-turn { outline: 2px solid var(--c); }
.pl-teams__name { width: 34%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-teams__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pl-teams__bar span { display: block; height: 100%; background: var(--c); transition: width .3s; }

/* Carte défi par-dessus le jeu */
.bg-pop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 14, .7); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.bg-pop__card {
  width: min(100%, 520px); max-height: calc(100vh - 32px); overflow-y: auto; text-align: center;
  background: var(--bg-alt); border: 2px solid var(--c); border-radius: 24px; padding: 24px 20px;
  box-shadow: 0 0 60px color-mix(in srgb, var(--c) 40%, transparent); animation: cardIn .4s cubic-bezier(.2, 1.4, .4, 1);
  display: flex; flex-direction: column; gap: 12px;
}
.bg-pop__card h3 { color: var(--c); font-size: 1.6rem; margin: 0; }
.bg-pop__card p { margin: 0; }
.bg-pop__card .answers { grid-template-columns: 1fr; }
.bg-pop__icon { font-size: 3.2rem; line-height: 1; }
.secret { font-family: var(--font-title); font-size: 1.8rem; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 25%, var(--surface)); }
.cd { display: flex; flex-direction: column; gap: 6px; }
.cd-bar { height: 100%; width: 100%; background: var(--c); transition: width 1s linear; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }

/* L'Intrus */
.rules { margin: 0; padding-left: 1.3em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.rules strong { color: var(--text); }
.pass-card, .secret-card { border-radius: 24px; padding: 32px 20px; background: var(--surface); border: 2px dashed var(--border); }
.secret-card { background: var(--grad); border: 0; animation: cardIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.secret-card.is-intrus { background: linear-gradient(135deg, #1a1033, #3a1f4f); border: 2px solid var(--pink); }
.talk-order { margin: 0; padding: 0; list-style: none; counter-reset: o; display: flex; flex-wrap: wrap; gap: 8px; }
.talk-order li { counter-increment: o; padding: .45em .9em; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.talk-order li::before { content: counter(o) ". "; color: var(--pink); }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.vote-btn { padding: 22px 10px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); font-family: var(--font-title); font-size: 1.15rem; cursor: pointer; }
.vote-btn:hover { border-color: var(--pink); transform: translateY(-2px); }
.reveal-role { font-family: var(--font-title); font-size: clamp(2.2rem, 10vw, 4rem); padding: 24px; border-radius: 24px; background: var(--surface); animation: cardIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.reveal-role.is-intrus { background: var(--grad); }
.role-chip { padding: .35em .8em; border-radius: 999px; background: var(--surface-2); }
.role-chip.is-intrus { background: var(--pink); color: #fff; font-weight: 600; }

/* Le Bon Chiffre : ligne graduée */
.numline { position: relative; height: 190px; margin: 0 8px; }
.numline__axis { position: absolute; left: 0; right: 0; top: 50%; height: 4px; border-radius: 4px; background: var(--surface-2); }
.numline__answer { position: absolute; top: 8%; bottom: 8%; width: 4px; margin-left: -2px; background: var(--yellow); border-radius: 4px; box-shadow: 0 0 16px var(--yellow); }
.numline__answer span { position: absolute; top: -6px; left: 50%; transform: translate(-50%, -100%); font-size: 1.4rem; }
.numline__mark { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin: -7px 0 0 -9px; border-radius: 50%; background: var(--c); border: 3px solid #fff; transition: left 1.2s cubic-bezier(.2, .8, .2, 1); }
.numline__label {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center;
  font-size: .75rem; line-height: 1.2; padding: 3px 7px; border-radius: 8px; background: var(--c); color: #1a1033;
  bottom: calc(100% + 6px + var(--row) * 38px);
}
.gain { font-family: var(--font-title); color: var(--green); font-size: 1.2rem; animation: pop .4s ease; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.podium__step {
  width: 30%; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-start;
  padding: 14px 8px; border-radius: 16px 16px 6px 6px; background: color-mix(in srgb, var(--c) 35%, var(--surface)); border-top: 4px solid var(--c);
  animation: rise .7s cubic-bezier(.2, 1.2, .4, 1) both;
}
.podium__step--1 { order: 2; height: 200px; animation-delay: .4s; }
.podium__step--2 { order: 1; height: 160px; animation-delay: .2s; }
.podium__step--3 { order: 3; height: 125px; }
.podium__medal { font-size: 2.2rem; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }

/* Ciné Pixel */
.cine { display: grid; gap: 16px; }
.cine__screen {
  position: relative; justify-self: center; width: min(100%, 340px); padding: 10px; border-radius: 18px;
  background: #07040f; box-shadow: 0 0 0 3px #2a2054, 0 20px 50px rgba(0,0,0,.5);
}
.cine__screen canvas { display: block; width: 100%; height: auto; border-radius: 10px; image-rendering: pixelated; }
.cine__screen canvas.is-flash { animation: flash .35s ease; }
.cine__screen canvas.is-reveal { animation: cardIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes flash { from { filter: brightness(1.8); } }
.cine__stake {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .3em .9em; border-radius: 999px; background: rgba(0,0,0,.75); color: var(--yellow);
  font-family: var(--font-title); font-size: 1.05rem;
}
.cine__stake:empty { display: none; }
.cine__levels { display: flex; gap: 4px; }
.cine__levels span { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); transition: background .3s; }
.cine__levels span.is-on { background: var(--yellow); }
.cine__title { font-family: var(--font-title); font-size: clamp(1.5rem, 5vw, 2.2rem); text-align: center; color: var(--yellow); animation: pop .4s ease; }
.answers--one { grid-template-columns: 1fr !important; }
.bt-score:disabled { opacity: .55; cursor: default; }
.bt-score.is-out { text-decoration: line-through; opacity: .4; }

/* ===== Partie en ligne : bannière de la page d'accueil ===== */
.section--online { padding-top: 24px; }
.online-banner {
  display: grid; gap: 24px; padding: 28px 20px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 85% 30%, rgba(47, 212, 224, .25), transparent 50%), linear-gradient(135deg, #2a1660, #1a1238);
  border: 1px solid #4a3a8a;
}
.online-banner .section__lead { margin-bottom: 1rem; }
.online-banner__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 8px; }
.online-banner__list li { padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .9rem; }
.online-banner__visual { position: relative; height: 220px; display: grid; place-items: center; }
.ob-screen {
  width: 220px; height: 130px; border-radius: 14px; background: #0f0b1f; border: 4px solid #3a2f6b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: var(--shadow);
}
.ob-screen span { font-family: var(--font-title); font-size: 2.4rem; letter-spacing: .2em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-screen small { color: var(--muted); }
.ob-phone {
  position: absolute; bottom: 0; left: 50%; width: 70px; height: 120px; padding: 10px 7px; border-radius: 14px;
  background: #0f0b1f; border: 3px solid #4a3a8a; display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  transform: translateX(calc(-50% + var(--x))) rotate(var(--r)); animation: phoneFloat 3s ease-in-out infinite alternate;
}
.ob-phone:last-child { animation-delay: -1.5s; }
.ob-phone i { border-radius: 5px; background: var(--c); }
@keyframes phoneFloat { to { translate: 0 -10px; } }

/* ===== Partie en ligne : écran hôte ===== */
.on-lobby { display: grid; gap: 20px; }
.on-join { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; border-radius: 20px; background: var(--surface); }
.on-join .label { margin: 0; }
.on-url { font-family: var(--font-title); font-size: 1.15rem; margin: 0; word-break: break-all; }
.on-code { display: flex; gap: 8px; }
.on-code span {
  width: 58px; height: 70px; display: grid; place-items: center; border-radius: 14px;
  font-family: var(--font-title); font-size: 2.6rem; background: var(--grad); color: #fff; box-shadow: var(--shadow);
}
.on-qr { width: 170px; background: #fff; padding: 6px; border-radius: 12px; margin-top: 6px; }
.on-qr svg { display: block; width: 100%; height: auto; }
.on-warn { font-size: .82rem; color: var(--yellow); background: rgba(255, 204, 61, .1); border-radius: 10px; padding: 8px 10px; margin: 6px 0 0; }
.on-players { padding: 14px; border-radius: 16px; background: var(--surface); }
.on-players__list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.on-player { display: inline-flex; align-items: center; gap: 6px; padding: .4em .9em; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); font-weight: 600; animation: pop .3s ease; }
.on-player small { color: var(--muted); }
.on-player.is-off { opacity: .4; }
.on-waiting { animation: pulse 1.6s infinite; }
.on-games { display: grid; gap: 8px; }
.on-game {
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 2px solid transparent;
}
.on-game:hover, .on-game.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); }
.on-game__icon { font-size: 1.8rem; }
.on-game strong { display: block; }
.on-game .muted { font-size: .85rem; }

.on-qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.on-code-mini { font-size: .85rem; color: var(--muted); }
.on-code-mini strong { color: var(--text); letter-spacing: .1em; }
.on-question { font-family: var(--font-title); font-size: clamp(1.4rem, 4.5vw, 2.3rem); text-align: center; margin: 18px 0; line-height: 1.2; }
.on-opts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.on-opt {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  background: var(--c); color: #fff; font-weight: 700; font-size: 1.1rem; transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.on-opt__shape { font-size: 1.5rem; }
.on-opt__txt { flex: 1; }
.on-opt__n { font-family: var(--font-title); }
.on-opt.is-dim { opacity: .3; }
.on-opt.is-good { transform: scale(1.03); box-shadow: 0 0 0 4px #fff, 0 0 30px var(--c); }
.on-opts--small .on-opt { padding: 12px; font-size: .95rem; }
.on-cine { display: grid; gap: 14px; align-items: start; }
.on-cine .cine__screen { width: min(100%, 300px); }
.on-qfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.on-who { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.on-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 2px solid var(--c); transition: background .2s;
}
.on-dot.is-in { background: var(--c); color: #1a1033; animation: pop .3s ease; }
.on-wyr { display: grid; gap: 12px; }
.on-wyr__side { padding: 22px; border-radius: 18px; background: var(--c); color: #fff; text-align: center; font-family: var(--font-title); font-size: 1.3rem; }
.on-wyr__side p { margin: 6px 0; }
.on-wyr__or { text-align: center; font-family: var(--font-title); color: var(--muted); align-self: center; }
.on-wyr__pct { font-size: 2.4rem; animation: pop .4s ease; }
.on-wyr__names { font-family: var(--font-text); font-size: .85rem; opacity: .9; }
.on-lb { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; animation: slideUp .4s ease; }
.on-lb .label { margin: 0 0 4px; }
.on-lb__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); animation: slideUp .4s ease both; }
.on-lb__rank { font-family: var(--font-title); width: 1.6em; color: var(--muted); }
.on-lb__name { flex: 1; font-weight: 600; }
.on-lb .row { margin-top: 8px; }

/* ===== Manette (téléphone) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pad-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pad-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.pad-head .logo { font-size: 1.15rem; }
.pad-me { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pad-me strong { font-family: var(--font-title); padding: .1em .6em; border-radius: 999px; background: var(--surface-2); }
.pad-main { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; }
.pad-join { display: flex; flex-direction: column; gap: 14px; margin: auto 0; }
.pad-join .field { width: 100%; font-size: 1.1rem; }
.pad-code { text-align: center; font-family: var(--font-title); font-size: 2.2rem !important; letter-spacing: .4em; text-transform: uppercase; }
.pad-big { font-size: 4.5rem; text-align: center; line-height: 1; }
.pad-float { animation: phoneFloat 1.5s ease-in-out infinite alternate; }
.pad-state { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.pad-state .big-text { margin: 0; }
.pad-prompt { font-family: var(--font-title); font-size: 1.25rem; text-align: center; margin: 0; }
.pad-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 60vh; }
.pad-grid--two { grid-template-columns: 1fr; }
.pad-btn {
  border: 0; border-radius: 18px; background: var(--c); color: #fff; cursor: pointer; padding: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: 0 6px 0 rgba(0,0,0,.25);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pad-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.pad-btn__shape { font-size: 2.6rem; line-height: 1; }
.pad-btn__txt { line-height: 1.25; }
.pad-chosen { font-family: var(--font-title); font-size: 1.3rem; margin: 0; }
.pad-number { display: flex; flex-direction: column; gap: 12px; margin: auto 0; align-items: stretch; text-align: center; }
.pad-number .field { font-size: 2rem; text-align: center; font-family: var(--font-title); }
.pad-result.is-ok .big-text { color: var(--green); }
.pad-result.is-ko .big-text { color: var(--red); }
.pad-gain { font-family: var(--font-title); font-size: 3rem; color: var(--green); margin: 0; animation: pop .4s ease; }

/* ===== Nouveaux jeux ===== */

/* Mémo Party : cartes qui se retournent en 3D */
.memo-wrap { display: grid; gap: 16px; }
.memo { display: grid; gap: 8px; perspective: 900px; }
.memo-card { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; }
.memo-card__inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.memo-card.is-up .memo-card__inner { transform: rotateY(180deg); }
.memo-card__back, .memo-card__front {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden;
}
.memo-card__back {
  background: var(--grad); color: rgba(255,255,255,.85); font-family: var(--font-title); font-size: clamp(1.2rem, 4vw, 2rem);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.3);
}
.memo-card__front { background: #fff; transform: rotateY(180deg); font-size: clamp(1.6rem, 6vw, 3rem); box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.memo-card.is-match .memo-card__front { background: #d9ffe9; box-shadow: 0 0 0 3px var(--green), 0 0 20px var(--green); animation: pop .4s ease; }
.memo-side { display: flex; flex-direction: column; gap: 8px; }

/* Croquis Express */
.croquis { display: flex; flex-direction: column; gap: 10px; }
.croquis__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cr-peek { user-select: none; -webkit-user-select: none; touch-action: none; min-width: 0; }
.cr-peek.is-on { background: var(--yellow); color: #1a1033; border-color: var(--yellow); font-weight: 700; }
.croquis__board { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px var(--border); }
.croquis__board canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.croquis__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; }
.cr-color { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--border); }
.cr-color.is-active { border-color: #fff; transform: scale(1.15); }
.cr-size, .cr-tool { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.cr-size span { display: block; border-radius: 50%; background: var(--text); }
.cr-size.is-active, .cr-tool.is-active { border-color: var(--yellow); background: var(--surface-2); }
.cr-sep { width: 1px; height: 26px; background: var(--border); margin: 0 4px; }

/* Duel de Calcul */
.calc { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; height: min(72vh, 600px); user-select: none; -webkit-user-select: none; }
.calc__side { border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.calc__side--0 { background: color-mix(in srgb, var(--pink) 25%, var(--surface)); transform: rotate(180deg); }
.calc__side--1 { background: color-mix(in srgb, var(--cyan) 25%, var(--surface)); }
.calc__side.is-wrong { background: var(--red); animation: shake .3s 2; }
.calc__side.is-win { background: var(--yellow); color: #1a1033; }
.calc__side.is-lose { opacity: .4; }
.calc__head { display: flex; justify-content: space-between; font-family: var(--font-title); font-size: 1.1rem; }
.calc__bar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.3); overflow: hidden; }
.calc__bar div { height: 100%; width: 0; background: var(--green); transition: width .3s; }
.calc__op { flex: 1; display: grid; place-items: center; font-family: var(--font-title); font-size: clamp(2rem, 9vw, 3.5rem); }
.calc__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc__btn {
  padding: 16px 0; border-radius: 14px; border: 0; background: var(--bg); color: var(--text); cursor: pointer;
  font-family: var(--font-title); font-size: 1.6rem; box-shadow: 0 5px 0 rgba(0,0,0,.35); touch-action: manipulation;
}
.calc__btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }

/* Le Pendu Party */
.pendu { display: grid; gap: 16px; }
.pendu__left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pendu__draw { width: 160px; height: 200px; border-radius: 18px; background: #120c28; padding: 14px; box-shadow: inset 0 0 0 1px var(--border); }
.pendu-svg { width: 100%; height: 100%; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 4px var(--pink)); }
.pendu-svg > * { animation: fadeIn .4s ease; }
.pendu__lives { color: var(--muted); font-size: .9rem; }
.pendu__word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pendu__word span {
  width: clamp(26px, 7vw, 42px); height: clamp(36px, 9vw, 54px); display: grid; place-items: center;
  border-bottom: 4px solid var(--border); font-family: var(--font-title); font-size: clamp(1.3rem, 5vw, 2rem);
}
.pendu__word span.is-on { border-color: var(--violet); animation: pop .3s ease; }
.pendu__word span.is-missed { color: var(--red); }
.kbd { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.kbd__key {
  aspect-ratio: 1; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer;
  font-family: var(--font-title); font-size: clamp(.9rem, 3vw, 1.2rem);
}
.kbd__key:nth-child(n+21) { transform: translateX(50%); }
.kbd__key.is-good { background: var(--green); color: #0b2a17; }
.kbd__key.is-bad { background: var(--red); opacity: .5; }
.kbd__key:disabled { cursor: default; }

/* Écho */
.echo { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.echo.is-wrong .echo__pads { animation: shake .3s 2; }
.echo__pads { position: relative; width: min(84vw, 340px); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.echo__pad {
  border: 0; cursor: pointer; background: color-mix(in srgb, var(--c) 40%, #120c28); transition: background .1s, box-shadow .1s, transform .1s;
  touch-action: manipulation;
}
.echo__pad:nth-child(1) { border-radius: 100% 12px 12px 12px; }
.echo__pad:nth-child(2) { border-radius: 12px 100% 12px 12px; }
.echo__pad:nth-child(3) { border-radius: 12px 12px 12px 100%; }
.echo__pad:nth-child(4) { border-radius: 12px 12px 100% 12px; }
.echo__pad.is-lit { background: var(--c); box-shadow: 0 0 40px var(--c); transform: scale(1.03); }
.echo__center {
  position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; font-family: var(--font-title); font-size: 2.2rem; box-shadow: 0 0 0 6px var(--bg-alt); pointer-events: none;
}
.bt-score.is-active { box-shadow: 0 0 0 3px #fff; }

/* Morpion Ultime */
.ultimate-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ultimate { width: min(100%, 520px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 18px; background: #120c28; }
.ult-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px; border-radius: 10px; background: var(--surface); transition: box-shadow .2s, background .2s; }
.ult-grid.is-playable { background: color-mix(in srgb, var(--pc) 18%, var(--surface)); box-shadow: 0 0 0 2px var(--pc), 0 0 18px color-mix(in srgb, var(--pc) 50%, transparent); }
.ult-cell { border: 0; border-radius: 5px; background: var(--bg-alt); cursor: pointer; font-family: var(--font-title); font-size: clamp(.9rem, 3.5vw, 1.4rem); font-weight: 700; padding: 0; }
.ult-cell.is-set { animation: pop .25s ease; }
.ult-grid:not(.is-playable) .ult-cell { cursor: default; }
.ult-win { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 14vw, 6rem); font-weight: 700; pointer-events: none; text-shadow: 0 0 20px currentColor; }
.ult-grid.is-won .ult-cell { opacity: .2; }

/* Le Coffre-fort */
.coffre { display: grid; gap: 18px; }
.coffre__vault { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vault {
  position: relative; width: min(100%, 320px); padding: 22px 16px 18px; border-radius: 24px;
  background: linear-gradient(145deg, #4a4f63, #262a38); box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 14px 30px rgba(0,0,0,.5), 0 0 0 6px #1a1d27;
  display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1);
}
.vault.is-open { transform: perspective(800px) rotateY(-28deg); box-shadow: 0 0 60px var(--yellow), 0 0 0 6px var(--yellow); }
.vault__dial {
  width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #c9ccd6 0 30%, #8a8fa0 31% 60%, #5b6070 61%);
  box-shadow: 0 4px 10px rgba(0,0,0,.5); position: relative; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1);
}
.vault__dial span { position: absolute; top: 6px; left: 50%; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--red); }
.vault__slots { display: flex; gap: 8px; }
.vault__slots span {
  width: 44px; height: 54px; border-radius: 10px; background: #0d0f15; display: grid; place-items: center;
  font-family: var(--font-title); font-size: 1.8rem; color: var(--green); box-shadow: inset 0 2px 6px rgba(0,0,0,.7); text-shadow: 0 0 10px var(--green);
}
.vault__slots span.is-on { animation: pop .2s ease; }
.keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.keypad__k {
  height: 54px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer;
  font-family: var(--font-title); font-size: 1.5rem; box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.keypad__k:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.keypad__k:disabled { opacity: .3; cursor: default; }
.keypad__k--ok { background: var(--green); color: #0b2a17; }
.keypad__k--del { background: var(--surface); }
.coffre__log { padding: 14px; border-radius: 18px; background: var(--surface); max-height: 420px; overflow-y: auto; }
.coffre__list { display: flex; flex-direction: column; gap: 6px; }
.co-try { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); border-left: 4px solid var(--c); animation: slideUp .3s ease; }
.co-try__team { flex: 1; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-try__code { font-family: var(--font-title); font-size: 1.3rem; letter-spacing: .1em; }
.co-try__hint { min-width: 80px; text-align: right; }

/* En ligne : Dico des Menteurs, Petit Bac, Réflexe */
.dico-word { text-align: center; padding: 18px; border-radius: 22px; background: var(--grad); margin: 14px 0; }
.dico-word p { font-family: var(--font-title); font-size: clamp(2rem, 8vw, 3.6rem); margin: 4px 0 0; word-break: break-word; }
.dico-word--small p { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.dico-list { display: flex; flex-direction: column; gap: 8px; }
.dico-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); transition: background .3s; }
.dico-opt__n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-title); }
.dico-opt__txt { flex: 1; }
.dico-opt__res { text-align: right; font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; }
.dico-opt__res small { color: var(--muted); font-weight: 400; }
.dico-opt.is-real { background: color-mix(in srgb, var(--green) 30%, var(--surface)); box-shadow: 0 0 0 2px var(--green); }
.dico-opt.is-fake .dico-opt__res { color: var(--pink); }
.bac-letter {
  width: 120px; height: 120px; margin: 14px auto; border-radius: 28px; display: grid; place-items: center;
  background: var(--grad); font-family: var(--font-title); font-size: 4.5rem; box-shadow: var(--shadow); animation: cardIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
.bac-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.bac-cats span { padding: .4em 1em; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.bac-scroll { overflow-x: auto; margin: 8px 0 12px; }
.bac-table { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .9rem; }
.bac-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .8rem; padding: 0 4px; }
.bac-table td { white-space: nowrap; }
.bac-cell { width: 100%; padding: 6px 8px; border-radius: 8px; border: 0; cursor: pointer; text-align: left; font-weight: 600; }
.bac-cell.is-ok { background: color-mix(in srgb, var(--green) 30%, var(--surface)); color: var(--text); }
.bac-cell.is-ko { background: color-mix(in srgb, var(--red) 25%, var(--surface)); color: var(--muted); text-decoration: line-through; }
.bac-cell.is-empty { background: var(--surface); color: var(--muted); cursor: default; }
.flash-zone {
  margin-top: 14px; height: 200px; border-radius: 24px; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--red) 40%, var(--surface)); font-family: var(--font-title); font-size: clamp(1.6rem, 6vw, 2.6rem);
  transition: background .1s;
}
.flash-zone.is-go { background: var(--green); color: #0b2a17; }

/* Manette : nouveaux types de réponse */
.pad-grid--list { grid-template-columns: 1fr !important; min-height: 0; }
.pad-grid--list .pad-btn { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; }
.pad-grid--list .pad-btn__shape { font-size: 1.4rem; }
.pad-btn.is-mine { opacity: .35; cursor: default; }
.pad-tap {
  flex: 1; min-height: 60vh; border: 0; border-radius: 28px; background: var(--red); color: #fff; cursor: pointer;
  font-family: var(--font-title); font-size: 2.6rem; touch-action: manipulation; transition: background .05s;
}
.pad-tap.is-go { background: var(--green); color: #0b2a17; }
.pad-letter {
  width: 90px; height: 90px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center;
  background: var(--grad); font-family: var(--font-title); font-size: 3.4rem;
}
.pad-text { display: flex; flex-direction: column; gap: 10px; }
.pad-text .field { width: 100%; font-size: 1.05rem; }
.pad-text textarea.field { resize: none; }

/* ===== 3ᵉ série de jeux ===== */

/* Défis Express */
.defi-card {
  border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 16px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, var(--surface)), var(--surface) 75%);
  border: 2px solid var(--c); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 30%, transparent); animation: cardIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
.defi-card__head { display: flex; justify-content: space-between; font-weight: 600; }
.defi-card__pts { color: var(--yellow); }
.defi-card__txt { font-family: var(--font-title); font-size: clamp(1.4rem, 4.5vw, 2.1rem); line-height: 1.25; margin: 0; }
.defi-card__time { display: flex; flex-direction: column; gap: 8px; }

/* Emoji Mystère */
.emoji-big { font-size: clamp(3.5rem, 15vw, 7rem); text-align: center; letter-spacing: .1em; margin: 18px 0; line-height: 1.2; animation: cardIn .5s cubic-bezier(.2, 1.4, .4, 1); }

/* Plus ou Moins : cartes à jouer */
.pm { display: grid; gap: 18px; }
.pm__table {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; border-radius: 26px;
  background: radial-gradient(ellipse at 50% 30%, #1f7a4d, #0e3d27); box-shadow: inset 0 0 0 8px #6b4423, inset 0 0 0 10px #3d2614, 0 14px 30px rgba(0,0,0,.4);
}
.pm__cards { position: relative; width: 130px; height: 185px; }
.pm__cards.is-shake { animation: shake .3s 2; }
.pcard {
  position: absolute; inset: 0; border-radius: 12px; background: #fff; color: #1a1033; box-shadow: 0 8px 18px rgba(0,0,0,.45);
  display: grid; place-items: center; font-family: var(--font-title);
}
.pcard.is-red { color: #d6283c; }
.pcard.is-new { animation: dealIn .5s cubic-bezier(.2, 1.2, .4, 1); }
.pcard__mid { font-size: 4rem; }
.pcard__corner { position: absolute; top: 8px; left: 10px; font-size: 1.15rem; line-height: 1; text-align: center; }
.pcard__corner--b { top: auto; left: auto; bottom: 8px; right: 10px; transform: rotate(180deg); }
@keyframes dealIn { from { transform: translate(140px, -40px) rotate(25deg); opacity: 0; } }
.pm__pot { font-family: var(--font-title); font-size: 1.3rem; color: #fff; padding: .3em 1em; border-radius: 999px; background: rgba(0,0,0,.3); }
.pm__pot strong { color: var(--yellow); font-size: 1.6rem; }
.pm__btn { color: #fff; min-width: 140px; }
.pm__btn--up { background: var(--green); color: #0b2a17; }
.pm__btn--down { background: var(--red); }
.pm__scores { display: flex; flex-direction: column; gap: 8px; }
.pm__scores .pl-teams__bar { flex: 1; }

/* En ligne : Classe-les !, Le Plus Probable */
.order-list { display: flex; flex-direction: column; gap: 8px; max-width: 620px; margin: 0 auto; }
.order-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--c); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.order-item.is-revealed { animation: slideUp .45s ease both; }
.order-item__name { flex: 1; font-size: 1.1rem; }
.order-item__info { font-family: var(--font-title); }
.order-item__rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.25); font-family: var(--font-title); }
.vote-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); }
.vote-bar__name { width: 30%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-bar__track { flex: 1; height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vote-bar__track span { display: block; height: 100%; background: var(--c); border-radius: 99px; animation: growX .8s ease both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }

/* Manette : classement */
.pad-order { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pad-order__item {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 16px; border: 0; cursor: pointer; text-align: left;
  background: var(--c); color: #fff; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: 0 5px 0 rgba(0,0,0,.25);
}
.pad-order__item.is-picked { opacity: .55; box-shadow: none; transform: translateY(4px); }
.pad-order__pos { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.25); font-family: var(--font-title); font-size: 1.2rem; }

/* ===== L'Affaire Belvédère (enquête) ===== */
.enq { display: grid; gap: 18px; }
.enq__main { display: flex; flex-direction: column; gap: 10px; }
.enq__main > .label { margin: 6px 0 0; }
.enq__intro {
  padding: 16px 18px; border-radius: 18px; color: #f5e9c8;
  background: linear-gradient(135deg, #2b1d0e, #4a2f14); border: 1px solid #8a6a2f; box-shadow: inset 0 0 30px rgba(0,0,0,.4);
}
.enq__intro .qcard__tag { color: #e8c46a; }
.enq__intro p { margin: 6px 0 0; font-style: italic; }
.enq__suspects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.enq-sus {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 2px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.enq-sus__face { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg); box-shadow: 0 0 0 3px var(--c); }
.enq-sus small { color: var(--muted); font-size: .72rem; line-height: 1.2; }
.enq__map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 18px; background: #1b1430; border: 1px solid var(--border); }
.enq-place {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 4px; border-radius: 10px;
  background: linear-gradient(160deg, #2c2150, #221a40); font-size: .85rem; text-align: center; border: 2px solid transparent; transition: all .25s;
}
.enq-place__icon { font-size: 1.6rem; }
.enq__objects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.enq-obj { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--surface); font-size: 1.4rem; text-align: center; border: 2px solid transparent; transition: all .25s; }
.enq-obj small { font-size: .62rem; color: var(--muted); line-height: 1.1; }
.enq [data-id].is-hyp { border-color: var(--yellow); box-shadow: 0 0 18px rgba(255, 204, 61, .55); transform: scale(1.05); }
.enq__side { display: flex; flex-direction: column; gap: 10px; }
.enq-turn { font-family: var(--font-title); font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.enq-hyp { padding: 12px; border-radius: 14px; background: var(--surface); }
.enq-hyp .label { margin: 0 0 6px; }
.enq-hyp__cards { display: flex; flex-wrap: wrap; gap: 6px; }
.enq-tag { display: inline-flex; align-items: center; gap: 4px; padding: .2em .65em; border-radius: 999px; background: color-mix(in srgb, var(--c) 25%, var(--surface-2)); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.enq-wait { margin: 8px 0 4px; animation: pulse 1.6s infinite; }
.enq-players { display: flex; flex-direction: column; gap: 4px; }
.enq-player { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: .9rem; }
.enq-player__name { flex: 1; font-weight: 600; }
.enq-player small { color: var(--muted); }
.enq-player.is-turn { outline: 2px solid var(--c); }
.enq-player.is-out { opacity: .5; }
.enq-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; font-size: .88rem; }
.enq-log li { padding: 8px 10px; border-radius: 10px; background: var(--bg-alt); line-height: 1.6; animation: slideUp .3s ease; }
.enq-reveal { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.enq-reveal__cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; perspective: 900px; }
.enq-card {
  width: 140px; height: 190px; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #f8edd0, #e6d3a3); color: #2b1d0e; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 4px #8a6a2f;
  animation: flipIn .8s cubic-bezier(.2, 1.2, .4, 1) both;
}
.enq-card__icon { font-size: 3.4rem; }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
.enq-story { font-size: 1.15rem; font-style: italic; max-width: 620px; color: #f5e9c8; margin: 0; }

/* Manette de l'enquête */
.cl-panel { padding: 16px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cl-panel p { margin: 0; }
.cl-panel__title { font-family: var(--font-title); font-size: 1.25rem; }
.cl-panel--turn { background: linear-gradient(160deg, color-mix(in srgb, var(--violet) 35%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--violet); }
.cl-panel--alert { background: linear-gradient(160deg, color-mix(in srgb, var(--yellow) 30%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--yellow); animation: cardIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.cl-panel--accuse { background: linear-gradient(160deg, color-mix(in srgb, var(--red) 30%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--red); }
.cl-form { display: flex; flex-direction: column; gap: 8px; }
.cl-select .field { width: 100%; font-size: 1rem; }
.cl-select .label { margin-bottom: 2px; }
.cl-hyp { font-weight: 700; }
.cl-show { display: flex; flex-direction: column; gap: 8px; }
.cl-card {
  padding: 16px; border-radius: 14px; border: 0; cursor: pointer; font-family: var(--font-title); font-size: 1.2rem;
  background: linear-gradient(160deg, #f8edd0, #e6d3a3); color: #2b1d0e; box-shadow: 0 5px 0 #8a6a2f;
}
.cl-card:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a6a2f; }
.cl-reveal { align-self: center; padding: 18px 26px; border-radius: 16px; font-family: var(--font-title); font-size: 1.5rem; background: linear-gradient(160deg, #f8edd0, #e6d3a3); color: #2b1d0e; animation: flipIn .7s cubic-bezier(.2, 1.2, .4, 1); }
.cl-notebook { padding: 14px; border-radius: 18px; background: #f3ecd8; color: #2b1d0e; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px #d6c79f; }
.cl-notebook__title { font-family: var(--font-title); font-size: 1.15rem; margin: 0 0 4px; }
.cl-notebook__title small { font-family: var(--font-text); font-size: .75rem; color: #7a6a45; display: block; }
.cl-sec { color: #7a6a45 !important; margin: 8px 0 2px !important; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem !important; }
.cl-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.6); color: #2b1d0e; font-size: .95rem; border-bottom: 1px dashed #d6c79f;
}
.cl-row__icon { font-size: 1.3rem; }
.cl-row__name { flex: 1; font-weight: 600; display: flex; flex-direction: column; }
.cl-row__name small { font-weight: 400; color: #7a6a45; font-size: .75rem; }
.cl-row__mark { font-size: 1.2rem; min-width: 1.5em; text-align: center; }
.cl-row.is-x .cl-row__name, .cl-row.is-mine .cl-row__name { text-decoration: line-through; opacity: .6; }
.cl-row.is-mine { background: rgba(124, 92, 255, .12); cursor: default; }
.cl-row.is-v { background: rgba(61, 220, 132, .25); }
.cl-row.is-q { background: rgba(255, 204, 61, .3); }
.cl-solution { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-title); font-size: 1.2rem; }

/* Enchaînement automatique */
.btn.is-auto { position: relative; overflow: hidden; }
.btn.is-auto::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p, 100%);
  background: rgba(255,255,255,.85); transition: width 1s linear;
}
.auto-count {
  display: inline-grid; place-items: center; min-width: 1.8em; height: 1.8em; margin-left: .4em; border-radius: 50%;
  background: rgba(0,0,0,.25); font-family: var(--font-title); font-size: .9em;
}
.on-settings { --c: var(--violet); }
.on-settings .field { width: auto; padding: .4em .6em; }
.on-next-game { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 10px; }
.on-next-game__icon {
  width: 130px; height: 130px; border-radius: 34px; display: grid; place-items: center; font-size: 4.5rem;
  background: color-mix(in srgb, var(--c) 30%, var(--surface)); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 50%, transparent);
  animation: cardIn .6s cubic-bezier(.2, 1.4, .4, 1);
}
.on-next-game .big-text { font-size: 3rem; color: var(--c); animation: pulse 1s infinite; }

/* ===== Chromo ! (jeu de cartes) ===== */
.ch-card {
  position: relative; width: 100%; aspect-ratio: 5 / 7.4; border-radius: 12%/8%; background: var(--c); color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.4), inset 0 0 0 4px rgba(255,255,255,.9); overflow: hidden;
  font-family: var(--font-title); user-select: none;
}
.ch-card::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 6px, transparent 6px 14px);
}
.ch-card__mid { position: absolute; inset: 18% 14%; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); transform: rotate(-12deg); }
.ch-card__mid span { color: var(--c); font-size: clamp(1.1rem, 4.5vw, 2.4rem); line-height: 1; transform: rotate(12deg); }
.ch-card__corner { position: absolute; top: 6%; left: 9%; font-size: clamp(.65rem, 2.2vw, 1rem); line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ch-card__corner--b { top: auto; left: auto; bottom: 6%; right: 9%; transform: rotate(180deg); }
.ch-card.is-wild { background: conic-gradient(#ff5e8a 0 25%, #7c5cff 0 50%, #2fd4e0 0 75%, #ffcc3d 0); }
.ch-card.is-wild .ch-card__mid { background: #1a1033; }
.ch-card.is-wild .ch-card__mid span { color: #fff; }
.ch-card.is-back { background: linear-gradient(135deg, #1a1033, #3a2f6b); }
.ch-card.is-back .ch-card__mid { background: var(--grad); }
.ch-card.is-back .ch-card__mid span { color: #fff; }
.ch-card.is-new { animation: dealIn .45s cubic-bezier(.2, 1.2, .4, 1); }

.ch { display: flex; flex-direction: column; gap: 14px; }
.ch__players { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.ch-dir { color: var(--muted); font-size: 1.2rem; }
.ch-player { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 2px solid transparent; min-width: 90px; }
.ch-player.is-turn { border-color: var(--c); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 50%, transparent); }
.ch-player__name { font-weight: 600; }
.ch-player__cards { display: flex; align-items: center; }
.ch-player__cards i { width: 10px; height: 15px; margin-left: -4px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 0 1px var(--bg); }
.ch-player__cards b { margin-left: 6px; font-family: var(--font-title); }
.ch-player__alert { position: absolute; top: -10px; right: -6px; padding: 2px 6px; border-radius: 6px; background: var(--red); font-size: .7rem; font-weight: 700; animation: pulse 1s infinite; }
.ch__table {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border-radius: 26px;
  background: radial-gradient(ellipse at 50% 30%, #3b2a7a, #1a1238); box-shadow: inset 0 0 0 2px #4a3a8a;
}
.ch__center { display: flex; align-items: center; gap: 26px; }
.ch__pile { width: 90px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.ch__discard { width: 130px; }
.ch__color { font-size: 1.05rem; }
.ch__msg { min-height: 2.6em; margin: 0; text-align: center; font-weight: 600; max-width: 560px; }
.ch__turn { font-family: var(--font-title); font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }

/* Manette Chromo */
.ch-pad { display: flex; flex-direction: column; gap: 10px; }
.ch-pad__top { display: flex; gap: 12px; align-items: flex-start; }
.ch-pad__discard { width: 74px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ch-pad__color { font-size: .75rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.ch-pad__others { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-pad__others span { padding: .3em .7em; border-radius: 999px; background: var(--surface); font-size: .85rem; border: 2px solid transparent; }
.ch-pad__others span.is-turn { border-color: var(--c); }
.ch-pad__msg { margin: 0; font-size: .9rem; color: var(--muted); min-height: 2.4em; }
.ch-pad__status { text-align: center; padding: 10px; border-radius: 14px; background: var(--surface); font-family: var(--font-title); font-size: 1.15rem; }
.ch-pad__status.is-mine { background: var(--grad); animation: pop .3s ease; }
.ch-pad__status small { opacity: .8; font-size: .75em; }
.ch-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ch-hand__card { border: 0; padding: 0; background: none; cursor: pointer; transition: transform .15s, opacity .15s; }
.ch-hand__card:disabled { opacity: .4; cursor: default; filter: saturate(.6); }
.ch-hand__card.is-ok { transform: translateY(-6px); }
.ch-hand__card.is-ok:active { transform: translateY(-2px) scale(.96); }
.ch-hand__card.is-drawn { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 10px; }
.ch-shout { background: var(--surface-2); color: var(--text); }
.ch-shout.is-on { background: var(--yellow); color: #1a1033; animation: pulse 1s infinite; }
.ch-pick { padding: 12px; border-radius: 16px; background: var(--surface); text-align: center; display: flex; flex-direction: column; gap: 8px; animation: cardIn .3s ease; }
.ch-pick p { margin: 0; font-weight: 600; }
.ch-pick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-pick__btn { padding: 18px 8px; border-radius: 14px; border: 0; background: var(--c); color: #fff; font-family: var(--font-title); font-size: 1.1rem; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* Baccalauréat */
.bac-letter--big { width: 150px; height: 150px; font-size: 6rem; }
.bac-letter--big.is-done { animation: cardIn .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 60px rgba(255, 94, 138, .6); }
.bac-letter--mini { width: 44px; height: 44px; margin: 0; border-radius: 12px; font-size: 1.6rem; display: grid; place-items: center; }
.ba-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--c); }
.ba-row__name { flex: 1; font-weight: 600; min-width: 100px; }
.ba-row__btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Loto / Bingo ===== */
.loto { display: grid; gap: 16px; }
.loto__main { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loto__stage { font-size: 1.1rem; }
.loto__stage strong { color: var(--yellow); font-family: var(--font-title); font-size: 1.3rem; }
.loto__ball-wrap { perspective: 600px; }
.loto__ball {
  width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffe27a 9%, #ffb703 60%, #c77d00);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset -10px -14px 30px rgba(0,0,0,.25);
}
.loto__ball span {
  width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #1a1033; display: grid; place-items: center; align-content: center;
  font-family: var(--font-title); font-size: 2.8rem; line-height: 1; box-shadow: inset 0 2px 6px rgba(0,0,0,.2);
}
.loto__ball small { display: block; font-size: 1rem; color: var(--pink); }
.loto__ball.is-new { animation: ballIn .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ballIn { from { transform: translateY(-140px) rotate(-200deg) scale(.4); opacity: 0; } }
.loto__last { display: flex; gap: 8px; min-height: 44px; }
.loto__last span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-title); font-size: .95rem; }
.loto__board { display: grid; gap: 4px; padding: 10px; border-radius: 16px; background: var(--surface); }
.loto__board span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: .8rem; color: var(--muted); background: var(--bg-alt); transition: all .3s; }
.loto__board span.is-on { background: var(--yellow); color: #1a1033; font-weight: 700; transform: scale(1.08); }
.loto__winners p { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface); animation: slideUp .3s ease; }
.loto__win { box-shadow: inset 4px 0 0 var(--c); }
.loto__bad { color: var(--muted); font-size: .9rem; }

/* Carton sur le téléphone */
.bg-pad { display: flex; flex-direction: column; gap: 12px; }
.bg-pad__top { display: flex; align-items: center; gap: 14px; }
.bg-pad__ball {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, #ffe27a 11%, #ffb703 70%); color: #1a1033; font-family: var(--font-title); font-size: 1.6rem;
}
.bg-pad__ball.is-new { animation: pop .4s ease; }
.bg-card { display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: #fff7e0; box-shadow: inset 0 0 0 3px #e8c46a; }
.bg-card--loto { grid-template-columns: repeat(9, 1fr); }
.bg-card--bingo { grid-template-columns: repeat(5, 1fr); }
.bg-card__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bg-card__head span { text-align: center; font-family: var(--font-title); font-size: 1.4rem; color: #fff; background: var(--pink); border-radius: 8px; }
.bg-cell {
  aspect-ratio: 1; border: 0; border-radius: 8px; background: #fff; color: #1a1033; display: grid; place-items: center;
  font-family: var(--font-title); font-size: clamp(.9rem, 4vw, 1.3rem); cursor: pointer; position: relative; box-shadow: 0 2px 0 #e8c46a;
}
.bg-cell.is-blank { background: repeating-linear-gradient(45deg, #f3e2b3 0 4px, #fff7e0 4px 8px); box-shadow: none; cursor: default; }
.bg-cell.is-called { animation: pulse 1.2s infinite; background: #fff1b8; }
.bg-cell.is-daub::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; background: rgba(255, 77, 94, .6); mix-blend-mode: multiply; animation: pop .25s ease;
}
.bg-cell.is-free { color: var(--pink); }
.bg-claim { background: var(--grad); color: #fff; font-size: 1.4rem; padding: 1em; }
.bg-claim.is-bad { background: var(--red); }
.bg-claim.is-win { background: var(--yellow); color: #1a1033; }

/* ===== La Nuit des Loups ===== */
.lg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 20px 10px; border-radius: 26px; overflow: hidden; transition: background 1.2s; background: linear-gradient(180deg, #7ec8ff 0%, #ffe8b0 100%); color: #1a1033; }
.lg.is-night { background: linear-gradient(180deg, #050314 0%, #1a1238 100%); color: var(--text); }
.lg__sky { position: absolute; top: 14px; right: 24px; }
.lg__moon { display: block; width: 60px; height: 60px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 40px #ffd23f; transition: all 1.2s; }
.lg.is-night .lg__moon { background: #f2f2e6; box-shadow: 0 0 50px rgba(255,255,255,.6), inset -12px -6px 0 #d9d9c6; }
.lg__phase { font-family: var(--font-title); font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 10px 0 0; position: relative; }
.lg__text { font-size: 1.15rem; max-width: 640px; margin: 0; position: relative; }
.lg__timer span { font-family: var(--font-title); font-size: 2.4rem; }
.lg__village { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; }
.lg-hut { width: 96px; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; gap: 2px; border-bottom: 4px solid var(--c); }
.lg-hut__icon { font-size: 1.8rem; }
.lg-hut small { font-size: .7rem; opacity: .85; min-height: 1em; }
.lg-hut.is-dead { opacity: .5; filter: grayscale(.8); }
.lg .enq-log { width: 100%; max-width: 560px; text-align: left; max-height: 180px; }
.lg .enq-log li { background: rgba(0,0,0,.25); color: inherit; }

/* Rôle et choix sur le téléphone */
.lg-card {
  margin-top: 12px; padding: 22px; border-radius: 22px; text-align: center; user-select: none; -webkit-user-select: none; touch-action: none;
  background: linear-gradient(160deg, #2a1660, #120c28); border: 2px dashed #4a3a8a; cursor: pointer;
}
.lg-card.is-open { border-style: solid; border-color: var(--yellow); background: linear-gradient(160deg, #3b2a7a, #1a1238); }
.lg-card__icon { font-size: 3.6rem; }
.lg-card__name { font-family: var(--font-title); font-size: 1.6rem; margin: 6px 0; }
.lg-card__desc { color: var(--muted); margin: 0; }
.lg-card__mates { margin: 10px 0 0; font-weight: 600; color: var(--yellow); }
.lg-opts { display: flex; flex-direction: column; gap: 8px; }
.lg-opt { padding: 16px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); font-family: var(--font-title); font-size: 1.15rem; cursor: pointer; }
.lg-opt:active { transform: scale(.97); }
.lg-night-panel { background: linear-gradient(160deg, #1a1238, #050314); box-shadow: 0 0 0 2px #3a2f6b; }
.lg-roles { display: flex; flex-direction: column; gap: 6px; }
.lg-roles span { padding: 6px 12px; border-radius: 10px; background: var(--surface); }
.lg-roles small { color: var(--muted); }

/* ===== Dessine et devine en direct ===== */
.dd__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.dd__hint { font-family: var(--font-title); font-size: clamp(1.2rem, 4vw, 2rem); letter-spacing: .15em; }
.dd__body { display: grid; gap: 12px; margin-top: 10px; }
.dd__board { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px var(--border); }
.dd__board canvas { display: block; width: 100%; height: auto; }
.dd__who { position: absolute; left: 10px; bottom: 10px; padding: .4em .9em; border-radius: 999px; background: rgba(26, 16, 51, .85); font-weight: 600; }
.dd__side { display: flex; flex-direction: column; gap: 8px; }
.dd__scores { display: flex; flex-direction: column; gap: 4px; }
.dd__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; max-height: 260px; overflow: hidden; }
.dd__feed li { padding: 6px 10px; border-radius: 8px; background: var(--surface); animation: slideUp .25s ease; }
.dd-pad { display: flex; flex-direction: column; gap: 10px; }
.dd-pad__word { text-align: center; padding: 10px; border-radius: 14px; background: var(--grad); font-size: 1.1rem; }
.dd-pad__hint { text-align: center; font-family: var(--font-title); font-size: 1.5rem; letter-spacing: .15em; margin: 0; }
.dd-pad__canvas { width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--border); touch-action: none; }
.dd-pad__form { display: flex; gap: 8px; }
.dd-pad__form .field { flex: 1; font-size: 1.1rem; }

/* ===== Le Portrait Mystère ===== */
.pm-svg { display: block; width: 100%; height: auto; }
.pm { display: grid; gap: 16px; }
.pm__board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 10px; border-radius: 20px; background: linear-gradient(160deg, #2a1660, #1a1238); box-shadow: inset 0 0 0 2px #4a3a8a; }
.pm-tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; border-radius: 12px; border: 0;
  background: #fff; color: #1a1033; font-weight: 600; font-size: .78rem; cursor: pointer; transition: transform .25s, opacity .25s, filter .25s;
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.pm-tile svg { border-radius: 9px; }
.pm-tile.is-off { opacity: .28; filter: grayscale(1); transform: scale(.92) rotateX(25deg); }
.pm-tile.is-pick { box-shadow: 0 0 0 4px var(--red), 0 0 20px var(--red); transform: scale(1.06); }
.pm-tile.is-mystery { box-shadow: 0 0 0 4px var(--yellow), 0 0 30px var(--yellow); transform: scale(1.1); z-index: 2; }
.pm__side { display: flex; flex-direction: column; gap: 10px; }
.pm-mystery {
  align-self: center; width: 150px; padding: 10px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(160deg, #3b2a7a, #1a1238); box-shadow: 0 0 0 3px var(--yellow), 0 10px 30px rgba(0,0,0,.4);
}
.pm-mystery > span { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-title); font-size: 4rem; background: repeating-linear-gradient(45deg, #2a1660 0 8px, #3a2f6b 8px 16px); }
.pm-mystery small { font-weight: 600; }
.pm-mystery.is-revealed { animation: cardIn .6s cubic-bezier(.2, 1.4, .4, 1); }
.pm-last { padding: 14px; border-radius: 16px; background: var(--surface); text-align: center; }
.pm-q { font-family: var(--font-title); font-size: 1.2rem; margin: 4px 0; }
.pm-answer { font-family: var(--font-title); font-size: 2rem; margin: 0; animation: pop .4s ease; }
.pm-answer.is-yes { color: var(--green); }
.pm-answer.is-no { color: var(--red); }
.pm-pad { display: flex; flex-direction: column; gap: 10px; }
.pm-mysteries { display: flex; gap: 10px; justify-content: center; }
.pm-mysteries .pm-mystery { width: 130px; }
.pm-players { display: flex; flex-direction: column; gap: 6px; }
.pm-player { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 2px solid transparent; }
.pm-player.is-turn { border-color: var(--c); }
.pm-player.is-out { opacity: .45; }
.pm-player__top { display: flex; align-items: center; gap: 8px; }
.pm-player__top strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-player__top small { color: var(--muted); }
.pm-player__bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pm-player__bar span { display: block; height: 100%; background: var(--c); transition: width .4s; }
.pm-pad__mine { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--yellow); }
.pm-pad__mine svg { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; }
.pm-pad__mine span { display: flex; flex-direction: column; }
.pm-pad__mine small { color: var(--muted); }
.pm-pad__last.is-about { box-shadow: inset 3px 0 0 var(--violet); }
@media (min-width: 420px) { .pm-pad__board { grid-template-columns: repeat(5, 1fr); } }
.pm-pad__last { padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: .95rem; animation: pop .3s ease; }
.pm-pad__last small { color: var(--muted); }
.pm-pad__last.is-yes strong { color: var(--green); }
.pm-pad__last.is-no strong { color: var(--red); }
.pm-pad__board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pm-pad__board .pm-tile { font-size: .7rem; }
.pm-pad__hist { padding: 10px; border-radius: 12px; background: var(--surface); font-size: .9rem; }
.pm-pad__hist p { margin: 4px 0; }
.pm-reveal { width: 150px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 4px var(--yellow); animation: cardIn .5s ease; }

/* Scène Mystère & Logo Mystère */
.rv-frame { position: relative; justify-self: center; width: 100%; max-width: 560px; padding: 10px; border-radius: 18px; background: #07040f; box-shadow: 0 0 0 3px #2a2054, 0 20px 50px rgba(0,0,0,.5); }
.rv-clip { overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.rv-clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.3, .8, .3, 1), filter 1s ease; }
.rv-frame--scene .rv-clip { aspect-ratio: 16 / 10; }
.rv-frame--scene .rv-clip img { transform-origin: 50% 50%; }
.rv-frame--logo { max-width: 340px; background: #fff; box-shadow: 0 0 0 3px #2a2054, 0 20px 50px rgba(0,0,0,.4); }
.rv-frame--logo .rv-clip { aspect-ratio: 1; padding: 14%; }
.rv-frame--logo .rv-clip img { object-fit: contain; }
.on-cine .rv-frame { max-width: 520px; }
.on-cine .rv-frame--logo { max-width: 300px; }

/* ===== Jouer avec tout le monde ===== */
.online-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 999px; text-decoration: none;
  background: rgba(61, 220, 132, .12); color: var(--green); font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.online-pill[hidden] { display: none; }
.online-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.header__inner .online-pill { margin-left: 12px; }
.online-pill--big { font-size: .95rem; padding: .45em 1em; }
.world { margin-top: 18px; padding: 22px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.world__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.world__head h3 { margin: 0; font-size: 1.5rem; }
.world p { margin: 0; }
.pub-rooms { display: grid; gap: 8px; }
.pub-room { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--bg-alt); animation: slideUp .3s ease; }
.pub-room__icon { font-size: 1.6rem; }
.pub-room__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pub-room__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-room__info small { color: var(--muted); }
.pub-empty { font-size: .9rem; }
.on-public { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); cursor: pointer; }
.on-public.is-on { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.on-public input { margin-top: 4px; }
.on-public span { display: flex; flex-direction: column; gap: 2px; }
.on-public small { color: var(--muted); }
.pad-world { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pad-world .label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (min-width: 640px) { .pub-rooms { grid-template-columns: 1fr 1fr; } }

/* Écran du jeu recopié sur le téléphone */
.mirror-btn { margin-left: auto; margin-right: 6px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 1.2rem; cursor: pointer; }
.mirror-btn.is-on { background: var(--grad); border-color: transparent; }
.mirror { padding: 8px 10px 0; }
.mirror[hidden] { display: none; }
.mirror__view { position: relative; overflow-y: auto; overflow-x: hidden; border-radius: 14px; background: var(--bg-alt); box-shadow: 0 0 0 1px var(--border); }
.mirror__inner { width: 640px; padding: 12px; transform-origin: top left; pointer-events: none; }

/* ===== Classement de la partie + classement général ===== */
.on-lb__total { min-width: 3.2em; text-align: right; color: var(--muted); font-size: .8rem; }
.on-lb .label .muted { font-weight: 400; font-size: .75rem; }
.overall { width: 100%; max-width: 460px; margin: 6px auto 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.overall .label { margin: 0 0 4px; }
.overall__row { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.overall__row > span:first-child { width: 1.6em; color: var(--muted); }
.overall__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Manette intégrée : l'hôte joue sur le même appareil ===== */
.self-pad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; height: 46vh; display: flex; flex-direction: column;
  background: var(--bg); border-top: 2px solid var(--violet); box-shadow: 0 -10px 30px rgba(0,0,0,.5); transition: height .3s ease;
}
.self-pad.is-big { height: 78vh; }
.self-pad__bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; font-size: .9rem; background: var(--surface); }
.self-pad__bar span { flex: 1; }
.self-pad__btn { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; }
.self-pad iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
body.has-self-pad .modal { padding-bottom: 46vh; }
body.has-self-pad .modal__box { max-height: 100%; }
@media (min-width: 900px) {
  .self-pad { left: auto; width: 400px; height: 100vh; border-top: 0; border-left: 2px solid var(--violet); }
  .self-pad.is-big { height: 100vh; }
  body.has-self-pad .modal { padding-bottom: 24px; padding-right: 410px; }
}
/* page manette dans ce panneau : en-tête réduit */
body.is-embed .pad-head .logo, body.is-embed .pad-head .lang-switch, body.is-embed .mirror-btn, body.is-embed .pad-world { display: none; }

/* ===== Téléphone : confort de jeu ===== */
/* pas de zoom ni de flash gris quand on tape vite sur un bouton */
button, a, .pad-btn, .pm-tile, .ch-hand__card, .bg-cell, .lg-opt { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* écrans à encoche (iPhone, Android) */
.pad-body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.pad-head { padding-top: max(8px, env(safe-area-inset-top)); flex-wrap: wrap; }
/* chrono de la question, en haut de l'écran */
.pad-timer { flex-basis: 100%; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.pad-timer[hidden] { display: none; }
.pad-timer > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); background-size: 300% 100%; transform-origin: left; }
@keyframes padTimer { from { transform: scaleX(1); background-position: 0 0; } to { transform: scaleX(0); background-position: 100% 0; } }
/* résultat : série et places gagnées */
.pad-streak { margin: 0; padding: .35em .9em; border-radius: 999px; background: rgba(255, 138, 61, .18); color: #ffb37a; font-weight: 700; animation: pop .4s ease; }
.pad-move { margin: 0; font-family: var(--font-title); font-size: 1.1rem; }
.pad-move.is-up { color: var(--green); }
.pad-move.is-down { color: var(--muted); }
/* champs texte : pas de zoom automatique sur iPhone (police ≥ 16 px) */
.pad-body .field { font-size: max(16px, 1rem); }

/* ===== Téléphone : en-tête compact et place pour l'écran du jeu ===== */
.pad-head { gap: 6px; padding: 8px 10px; position: sticky; top: 0; z-index: 20; background: rgba(15, 11, 31, .92); backdrop-filter: blur(8px); }
.pad-head .logo { flex-shrink: 0; }
.pad-me { min-width: 0; }
.pad-me span:not(.pawn-dot) { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .pad-head .logo { font-size: 0; gap: 0; }                 /* on garde seulement l'icône */
  .pad-head .lang-switch { padding: 2px; margin-right: 0; }
  .pad-head .lang-switch button { padding: .25em .4em; font-size: .75rem; }
  .pad-head .lang-switch button:not(.is-active) { display: none; } /* langue active seulement… */
  .pad-head .lang-switch:hover button, .pad-head .lang-switch:focus-within button { display: flex; } /* …les autres au toucher */
  .mirror-btn { width: 36px; height: 36px; font-size: 1.05rem; }
  .pad-me { font-size: .9rem; gap: 6px; }
}
/* en-tête du site sur téléphone */
@media (max-width: 520px) {
  .header__inner { gap: 6px; }
  .header .logo { font-size: 0; gap: 0; }
  .header .lang-switch { margin-left: auto; margin-right: 0; padding: 2px; }
  .header .lang-switch button { padding: .25em .4em; font-size: .75rem; }
  .header .lang-switch button:not(.is-active) { display: none; }
  .header .lang-switch:hover button, .header .lang-switch:focus-within button { display: flex; }
  .header__inner .online-pill { margin-left: 0; order: 3; font-size: .8rem; padding: .3em .6em; }
  .header__inner .online-pill > span:last-child { display: none; }  /* « en ligne » : juste le point vert + le nombre */
  .header__inner .nav-toggle { order: 4; }
}

/* quand l'écran du jeu est affiché, les boutons de réponse prennent moins de place */
body.mirror-on .pad-main { padding-top: 10px; gap: 10px; }
body.mirror-on .pad-grid { min-height: 0; grid-auto-rows: minmax(84px, auto); }
body.mirror-on .pad-btn { padding: 10px; gap: 4px; }
body.mirror-on .pad-btn__shape { font-size: 1.7rem; }
body.mirror-on .pad-tap { min-height: 34vh; }
body.mirror-on .pad-prompt { font-size: 1.05rem; }
body.mirror-on .pad-big { font-size: 3rem; }
body.mirror-on .pad-state { margin: 10px 0; gap: 8px; }
.mirror__view { max-height: 46vh; }
/* propositions masquées dans la recopie pendant qu'on répond (elles sont en boutons en dessous) */
body.pad-asking .mirror .on-opts,
body.pad-asking .mirror .on-wyr,
body.pad-asking .mirror .order-list,
body.pad-asking .mirror .dico-list,
body.pad-asking .mirror .on-qfoot { display: none !important; }

/* Sélecteur de langue */
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-left: auto; margin-right: 10px; }
.lang-switch button { display: flex; align-items: center; gap: 4px; padding: .3em .55em; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 700; cursor: pointer; }
.lang-switch button.is-active { background: var(--grad); color: #fff; }
.lang-switch span { display: none; }
@media (min-width: 640px) { .lang-switch span { display: inline; } }
.pad-head .lang-switch { margin-right: 8px; }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }

/* ---------- 13. Responsive (tablette et +) ---------- */
@media (min-width: 640px) {
  .players__form { flex-direction: row; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .teams { grid-template-columns: repeat(2, 1fr); }
  .answers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 24px; align-items: center; }
  .modal__box { border-radius: 24px; max-height: calc(100vh - 48px); border: 1px solid var(--border); }
  .modal__body { padding: 24px 28px 36px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; gap: 28px; padding: 0; background: none; border: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .teams { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .wyr { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .team-inputs { grid-template-columns: repeat(2, 1fr); }
  .audiences { grid-template-columns: 1fr 1fr; }
  .on-opts { grid-template-columns: 1fr 1fr; }
  .on-opts--col { grid-template-columns: 1fr; }
  .on-cine { grid-template-columns: 300px 1fr; }
  .on-wyr { grid-template-columns: 1fr auto 1fr; }
  .memo-wrap { grid-template-columns: 1fr 230px; align-items: start; }
  .pendu { grid-template-columns: 180px 1fr; align-items: start; }
  .coffre { grid-template-columns: 1fr 1fr; align-items: start; }
  .pm { grid-template-columns: 1fr 260px; align-items: start; }
  .enq { grid-template-columns: 1fr 300px; align-items: start; }
  .loto { grid-template-columns: 320px 1fr; align-items: start; }
  .loto__winners { grid-column: 1 / -1; }
  .dd__body { grid-template-columns: 1fr 260px; }
  .pm { grid-template-columns: 1fr 280px; align-items: start; }
  .cine:has(.rv-frame--scene) { grid-template-columns: 1.4fr 1fr; }
  .on-cine:has(.rv-frame--scene) { grid-template-columns: 1.5fr 1fr; }
  .enq__suspects { grid-template-columns: repeat(6, 1fr); }
  .plateau { grid-template-columns: 1fr 260px; align-items: start; }
  .cine { grid-template-columns: 340px 1fr; align-items: start; }
  .online-banner { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 40px; }
  .on-lobby { grid-template-columns: 300px 1fr; align-items: start; }
  .bg-pop__card .answers { grid-template-columns: 1fr 1fr; }
  .wyr__or { align-self: center; }
  .duel { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .duel__side:first-child { transform: none; }
  .calc { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .calc__side--0 { transform: none; }
}

/* Respecte les personnes qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Salle en ligne : lancement simplifié ===== */
/* « Je joue aussi » : l'hôte joue depuis le même appareil */
.on-me { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--violet) 16%, var(--surface)); border: 2px solid var(--violet); }
.on-me__title { font-weight: 700; }
.on-me__row { display: flex; gap: 8px; }
.on-me__row .field { flex: 1; min-width: 0; }
.on-me.is-on { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.on-me.is-on .btn { background: var(--green); }
/* réglages du jeu ouverts juste sous la tuile choisie */
.on-games > #on-options { grid-column: 1 / -1; }
.on-games > #on-options .panel { border: 2px solid var(--c); }
/* bouton « Changer de jeu » dans l'en-tête de la fenêtre */
.modal__head { gap: 8px; }
.modal__head h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-stop { white-space: nowrap; border-color: var(--red); }
.on-stop.is-armed { background: var(--red); color: #fff; }
/* Portrait Mystère : choix du mode */
.pm-modes { display: grid; gap: 8px; }
.pm-mode { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer; background: var(--surface-2); border: 2px solid transparent; color: var(--text); font: inherit; }
.pm-mode small { color: var(--muted); }
.pm-mode.is-active { border-color: var(--c, var(--violet)); background: color-mix(in srgb, var(--c, var(--violet)) 18%, var(--surface)); }
@media (min-width: 640px) { .pm-modes { grid-template-columns: 1fr 1fr; } }
/* téléphone : salon compact, tout tient sans défiler longtemps */
@media (max-width: 760px) {
  .on-lobby { gap: 12px; }
  .on-join { padding: 12px; gap: 6px; }
  .on-join .label, .on-url, .on-qr-hint { display: none; }
  .on-code span { width: 42px; height: 50px; font-size: 1.8rem; border-radius: 10px; }
  .on-qr { width: 110px; }
  .modal__head { padding: 10px 12px; }
  .modal__head h2 { font-size: 1.1rem; }
  body.has-self-pad .modal__body { padding-top: 12px; }
}
/* manette de l'hôte repliée pendant le salon : un simple bandeau, touchable pour l'ouvrir */
.self-pad.is-mini { height: 46px; }
.self-pad.is-mini iframe { visibility: hidden; }
.self-pad.is-mini .self-pad__bar { cursor: pointer; }
body.has-self-pad.pad-mini .modal { padding-bottom: 46px; }
@media (min-width: 900px) {
  .self-pad.is-mini { height: 100vh; }
  .self-pad.is-mini iframe { visibility: visible; }
  body.has-self-pad.pad-mini .modal { padding-bottom: 24px; }
}
/* manette de l'hôte en plein écran pendant la partie (téléphone) */
.self-pad.is-full { top: 0; height: 100vh; height: 100dvh; z-index: 300; border-top: 0; padding-top: env(safe-area-inset-top); }
body.has-self-pad.pad-full .modal { padding-bottom: 0; }
.self-pad__slot { display: contents; }
.self-pad__bar .on-stop { padding: 6px 10px; font-size: .8rem; min-height: 0; }
.self-pad__bar > span:first-child { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* écran partagé un peu plus grand pour la manette */
@media (max-width: 899px) { .self-pad:not(.is-mini):not(.is-full) { height: 55vh; } body.has-self-pad:not(.pad-mini):not(.pad-full) .modal { padding-bottom: 55vh; } }
/* manette intégrée : l'écran du jeu recopié prend un peu moins de place */
body.is-embed .mirror { padding-top: 6px; }
/* jeux où le téléphone a déjà son propre plateau (portraits, cartes, grille, dessin) :
   l'écran recopié devient un petit aperçu, le plateau garde la place */
body:has(#screen .pm-pad, #screen .ch-pad, #screen .bg-pad, #screen .dd-pad) .mirror__view { max-height: 22vh; }

/* =========================================================
   Accueil simplifié
   ========================================================= */
.home-hero { position: relative; overflow: hidden; padding: 40px 0 48px; }
.home-hero__inner { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.home-hero__txt { text-align: center; }
.home-hero__txt .badge { display: table; margin: 0 auto 14px; }
.home-hero h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); margin-bottom: .35em; }
.home-hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 0 auto 24px; }
.home-hero__cta { display: grid; gap: 12px; justify-items: center; }
.home-hero__go { font-size: 1.3rem; padding: 1.05em 2.4em; animation: goPulse 2.4s ease-in-out infinite; }
@keyframes goPulse { 50% { box-shadow: 0 6px 34px rgba(255, 94, 138, .65); } }
.home-join { display: flex; gap: 8px; }
.home-join .field { width: 120px; text-align: center; letter-spacing: .25em; text-transform: uppercase; font-family: var(--font-title); font-size: 1.1rem; }
.home-steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.home-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: .8rem; }

/* illustration : un écran + deux téléphones */
.home-hero__visual { position: relative; height: 230px; max-width: 420px; width: 100%; margin: 0 auto; }
.hv-screen { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 78%; aspect-ratio: 16 / 10; border-radius: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 3px solid var(--border); box-shadow: var(--shadow); display: grid; place-content: center; gap: 8px; text-align: center; }
.hv-screen__q { font-family: var(--font-title); font-size: 1.1rem; }
.hv-screen__code { font-family: var(--font-title); letter-spacing: .3em; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hv-phone { position: absolute; bottom: 0; width: 78px; height: 140px; padding: 14px 8px; border-radius: 16px; background: var(--bg); border: 3px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; box-shadow: var(--shadow); animation: phoneFloat 3s ease-in-out infinite alternate; }
.hv-phone i { border-radius: 6px; background: var(--c); }
.hv-phone--1 { left: 4%; rotate: -10deg; }
.hv-phone--2 { right: 4%; rotate: 9deg; animation-delay: -1.5s; }
.hv-bubble { position: absolute; padding: .3em .8em; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: phoneFloat 2.6s ease-in-out infinite alternate; }
.hv-bubble--1 { left: 26%; bottom: 30px; color: var(--green); }
.hv-bubble--2 { right: 24%; top: -8px; animation-delay: -1.2s; }

/* en-têtes de section avec action à droite */
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.home-head .section__lead { margin-bottom: 0; }
.home-online { padding-top: 32px; }

/* catalogue des jeux en ligne : grandes cartes colorées */
.home-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hg {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px; min-height: 132px; border-radius: 18px; cursor: pointer; border: 0; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #000) 0%, color-mix(in srgb, var(--c) 45%, var(--bg)) 100%);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .15s, box-shadow .15s;
}
.hg:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 45%, transparent); }
.hg:active { transform: scale(.97); }
.hg__icon { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.hg__name { font-family: var(--font-title); font-size: 1.08rem; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hg__desc { font-size: .8rem; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg__tag { position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: rgba(0,0,0,.35); }

/* salles publiques */
.home-world { margin-top: 28px; padding: 18px; border-radius: 18px; background: var(--surface); display: grid; gap: 12px; }
.home-world h3 { margin: 0 0 4px; }
.home-world p { margin: 0; }
.home-world .btn { justify-self: start; }
.home-world .pub-rooms:empty { display: none; }

/* onglets « sur un seul écran » */
.home-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.home-tab { flex: 1; white-space: nowrap; padding: .65em 1em; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.home-tab.is-active { background: var(--grad); color: #fff; }
.home-players { margin-bottom: 16px; padding: 12px 16px; }
.home-players summary { cursor: pointer; font-weight: 600; list-style: none; }
.home-players summary::-webkit-details-marker { display: none; }
.home-players summary::after { content: "＋"; float: right; color: var(--muted); }
.home-players[open] summary::after { content: "－"; }
.home-players .players { margin-top: 12px; padding: 0; background: none; box-shadow: none; border: 0; }
/* tuiles plus légères : description courte, sans étiquettes sur téléphone */
.home-grid .tile p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-grid .tile { padding: 14px; }
  .home-grid .tile__icon { width: 48px; height: 48px; font-size: 1.6rem; margin-bottom: 8px; }
  .home-grid .tile h3 { font-size: 1rem; }
  .home-grid .tile p { font-size: .8rem; margin: 0; }
  .home-grid .tile__meta { display: none; }
  .home-tab { padding: .6em .7em; font-size: .9rem; }
}
@media (min-width: 640px) {
  .home-games { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hg { min-height: 150px; padding: 18px; }
  .home-world { grid-template-columns: 1fr auto; align-items: center; }
  .home-world .pub-rooms { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .home-hero { padding: 72px 0 80px; }
  .home-hero__inner { grid-template-columns: 1.2fr 1fr; }
  .home-hero__txt { text-align: left; }
  .home-hero__txt .badge { margin: 0 0 14px; }
  .home-hero__lead { margin-left: 0; }
  .home-hero__cta { justify-items: start; }
  .home-steps { justify-content: flex-start; }
  .home-hero__visual { height: 300px; }
  .home-games { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Réglages d'un jeu : longueur + temps (boutons segmentés) ===== */
.opt-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.seg button { flex: 1; padding: .55em .4em; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; font-size: .92rem; }
.seg button.is-active { background: var(--c, var(--violet)); color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--c, var(--violet)) 40%, transparent); }

/* ===== Popi, l'animateur ===== */
.popi-box { display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.popi { overflow: visible; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.popi__all { transform-origin: 60px 110px; animation: popiBob 2.4s ease-in-out infinite; }
.popi__eyes { transform-origin: 60px 64px; animation: popiBlink 4.5s infinite; }
.popi__antenna { transform-origin: 60px 26px; animation: popiAntenna 3s ease-in-out infinite; }
.popi__arm { transform-box: fill-box; }
.popi__arm--l { transform-origin: 100% 100%; }
.popi__arm--r { transform-origin: 0% 100%; }
.popi__talk { opacity: 0; transform-origin: 60px 88px; }
.is-talking .popi__smile { opacity: 0; }
.is-talking .popi__talk { opacity: 1; animation: popiTalk .22s ease-in-out infinite alternate; }
.is-party .popi__all { animation: popiJump .5s ease-in-out 3; }
.is-party .popi__arm--l { animation: popiWaveL .35s ease-in-out 6 alternate; }
.is-party .popi__arm--r { animation: popiWaveR .35s ease-in-out 6 alternate; }
.is-wow .popi__all { animation: popiWow .6s ease 2; }
.is-wow .popi__eyes { transform: scale(1.15); animation: none; }
.is-think .popi__all { animation: none; transform: rotate(-8deg); transition: transform .3s; }
.is-think .popi__pupil { transform: translate(3px, -3px); }
.is-happy .popi__arm--r { animation: popiWaveR .4s ease-in-out 4 alternate; }
@keyframes popiBob { 50% { transform: translateY(-4px) scale(1.02, .98); } }
@keyframes popiBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes popiAntenna { 50% { transform: rotate(10deg); } }
@keyframes popiTalk { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes popiJump { 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes popiWow { 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(.95) rotate(4deg); } }
@keyframes popiWaveL { to { transform: rotate(-35deg); } }
@keyframes popiWaveR { to { transform: rotate(35deg); } }
.popi-bubble {
  position: relative; max-width: 260px; padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  background: #fff; color: #1a1033; font-weight: 700; font-size: .95rem; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: popiBubble .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 0 100%;
}
@keyframes popiBubble { from { transform: scale(.3); opacity: 0; } }
/* sur l'écran de l'hôte : en bas à gauche de la fenêtre du jeu */
.modal__box { position: relative; }
.popi-box--host { position: absolute; left: 12px; bottom: 12px; z-index: 6; }
@media (max-width: 640px) { .popi-box--host .popi { width: 58px; height: 58px; } .popi-box--host .popi-bubble { max-width: 200px; font-size: .85rem; } }
/* sur le téléphone : bulle en haut de l'écran, qui disparaît toute seule */
.popi-box--toast { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; z-index: 400; width: max-content; max-width: calc(100vw - 24px); align-items: center; animation: popiDrop .4s cubic-bezier(.3, 1.5, .5, 1); transition: opacity .4s, transform .4s; }
.popi-box--toast .popi-bubble { border-radius: 18px; font-size: .9rem; }
.popi-box--toast.is-gone { opacity: 0; transform: translateY(-30px); }
@keyframes popiDrop { from { transform: translateY(-40px); opacity: 0; } }
/* accueil : Popi présente le site */
.hv-popi { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; z-index: 2; }
.hv-popi .popi-box { flex-direction: column-reverse; align-items: center; }
.hv-popi .popi-bubble { border-radius: 18px; font-size: .85rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .popi *, .popi-box { animation: none !important; } }
.popi-box--hero .popi { width: 104px; height: 104px; }
@media (min-width: 900px) { .popi-box--hero .popi { width: 130px; height: 130px; } .hv-popi { bottom: -30px; } }

/* ===== Décompte 3, 2, 1, GO avant chaque jeu ===== */
.cd-overlay { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 45%, #0f0b1f) 0%, rgba(15, 11, 31, .96) 70%); color: #fff; animation: cdIn .25s ease; pointer-events: none; }
.cd-overlay.is-out { animation: cdOut .4s ease forwards; }
.cd-overlay__game { font-family: var(--font-title); font-size: clamp(1.2rem, 4vw, 2rem); opacity: .9; text-align: center; padding: 0 16px; }
.cd-overlay__game span { font-size: 1.4em; vertical-align: -.15em; }
.cd-overlay__n { font-family: var(--font-title); font-weight: 700; font-size: clamp(7rem, 32vw, 15rem); line-height: 1; text-shadow: 0 0 40px var(--c); animation: cdPop .9s cubic-bezier(.2, 1.4, .4, 1); }
.cd-overlay__n.is-go { background: linear-gradient(135deg, #ffcc3d, #ff5e8a); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(5rem, 24vw, 11rem); }
@keyframes cdIn { from { opacity: 0; } }
@keyframes cdOut { to { opacity: 0; transform: scale(1.08); } }
@keyframes cdPop { 0% { transform: scale(2.2); opacity: 0; } 35% { transform: scale(.92); opacity: 1; } 60% { transform: scale(1); } 100% { transform: scale(.85); opacity: .35; } }
/* chrono en secondes (écran et téléphone) */
#on-time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.pad-secs { margin-left: auto; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; padding: .1em .55em; border-radius: 999px; background: var(--surface-2); }
.pad-secs[hidden] { display: none; }
.pad-secs.is-hurry { background: var(--red); color: #fff; animation: cdHurry 1s ease infinite; }
@keyframes cdHurry { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .cd-overlay, .cd-overlay__n, #on-time.is-hurry, .pad-secs.is-hurry { animation: none; } }

/* ===== Popi ne cache plus les joueurs ===== */
/* écran de l'hôte : il n'apparaît que le temps de parler, puis s'efface */
.popi-box--host { transition: opacity .35s, transform .35s; }
.popi-box--host:not(:has(.popi-bubble:not([hidden]))) { opacity: 0; transform: translateX(-30px); }
/* l'hôte joue aussi depuis son téléphone : Popi parle déjà dans sa manette */
body.has-self-pad .popi-box--host { display: none; }
/* téléphone : la bulle se place sous le bandeau (prénom + score) */
.popi-box--toast { top: var(--popi-top, calc(8px + env(safe-area-inset-top))); }

/* ===== Blind test : vinyle qui tourne (remplace l'égaliseur qui clignotait) ===== */
.eq.vinyl { position: relative; display: grid; place-items: center; width: 132px; height: 132px; gap: 0; }
.vinyl__disc { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 0 25%, rgba(255,255,255,.06) 25.5% 26.5%, transparent 27% 37%, rgba(255,255,255,.05) 37.5% 38.5%, transparent 39% 49%, rgba(255,255,255,.05) 49.5% 50.5%, transparent 51%),
    conic-gradient(from 30deg, #18122c, #2c2148 15%, #18122c 30%, #2c2148 55%, #18122c 70%, #2c2148 85%, #18122c);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.04);
  animation: vinylSpin 2.6s linear infinite; animation-play-state: paused; }
.vinyl__label { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad); box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.vinyl__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(224,92,255,.55), transparent 68%); opacity: 0; }
.vinyl__note { position: absolute; left: 50%; bottom: 60%; font-style: normal; font-size: 1.5rem; color: #ffcc3d; opacity: 0; pointer-events: none; }
.eq.vinyl.is-playing .vinyl__disc { animation-play-state: running; }
.eq.vinyl.is-playing .vinyl__glow { animation: vinylGlow 2.4s ease-in-out infinite; }
.eq.vinyl.is-playing .vinyl__note { animation: vinylNote 3s ease-out infinite; }
.eq.vinyl .vinyl__note:nth-of-type(2) { animation-delay: 1s; color: #ff5e8a; }
.eq.vinyl .vinyl__note:nth-of-type(3) { animation-delay: 2s; color: #3ddc84; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
@keyframes vinylGlow { 0%, 100% { opacity: .35; transform: scale(1.05); } 50% { opacity: .8; transform: scale(1.22); } }
@keyframes vinylNote {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 40px)), -70px) scale(1.15) rotate(15deg); }
}
.eq.vinyl .vinyl__note:nth-of-type(1) { --x: 46px; }
.eq.vinyl .vinyl__note:nth-of-type(2) { --x: -48px; }
.eq.vinyl .vinyl__note:nth-of-type(3) { --x: 10px; }
@media (prefers-reduced-motion: reduce) { .eq.vinyl * { animation: none !important; } }

/* hôte qui joue sur son téléphone : les réponses sont déjà en boutons dans sa manette */
@media (max-width: 899px) {
  body.has-self-pad .is-asking .on-opts,
  body.has-self-pad .is-asking .on-wyr { display: none; }
}

/* ===== Chromo ! : cartes et table réalistes ===== */
.ch-card {
  container-type: inline-size; background: #fdfdfb; color: #fff; border-radius: 9% / 6.2%;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.45); font-family: "Arial Black", var(--font-title), sans-serif; font-weight: 900;
}
.ch-card::before {
  inset: 6.5%; border-radius: 6% / 4.2%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 55%), var(--c);
}
.ch-card__mid {
  inset: auto; left: 50%; top: 50%; width: 64%; height: 86%; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%) rotate(32deg); box-shadow: inset 0 0 0 .6cqw rgba(0,0,0,.08);
}
.ch-card__mid span {
  color: var(--c); font-size: 44cqw; transform: rotate(-32deg); letter-spacing: -.04em;
  -webkit-text-stroke: .7cqw #141414; text-shadow: 1.6cqw 1.6cqw 0 #141414;
}
.ch-card__corner {
  top: 8.5%; left: 11%; z-index: 1; font-size: 15cqw; color: #fff;
  -webkit-text-stroke: .5cqw #141414; text-shadow: .8cqw .8cqw 0 #141414;
}
.ch-card__corner--b { bottom: 8.5%; right: 11%; }
/* joker : face noire, ovale aux quatre couleurs */
.ch-card.is-wild { background: #fdfdfb; }
.ch-card.is-wild::before { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), #161616; }
.ch-card.is-wild .ch-card__mid { background: conic-gradient(from -32deg, #e53935 0 25%, #1e6fd9 0 50%, #f5b800 0 75%, #2e9e44 0); }
.ch-card.is-wild .ch-card__mid span { color: #fff; }
.ch-card.is-wild .ch-card__corner:empty { width: 12%; height: 15%; border-radius: 50%; background: conic-gradient(#e53935 0 25%, #1e6fd9 0 50%, #f5b800 0 75%, #2e9e44 0); box-shadow: 0 0 0 .6cqw #fff; }
/* dos de carte */
.ch-card.is-back::before { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 55%), #161616; }
.ch-card.is-back .ch-card__mid { background: #e53935; box-shadow: none; }
.ch-card.is-back .ch-card__mid span { color: #f5b800; font-size: 15cqw; transform: rotate(-58deg); text-shadow: .8cqw .8cqw 0 #141414; -webkit-text-stroke: .4cqw #141414; }

/* la table : tapis vert avec rebord en bois */
.ch__table {
  background: radial-gradient(ellipse at 50% 38%, #24985a, #0f5a32 70%, #0b4627);
  box-shadow: inset 0 0 0 10px #6b3e1f, inset 0 0 0 13px #4a2a14, inset 0 0 70px rgba(0,0,0,.55), 0 12px 30px rgba(0,0,0,.4);
  padding: 34px 18px 22px; color: #fff;
}
.ch__center { position: relative; gap: 40px; padding: 18px 26px; }
.ch__ring {
  position: absolute; inset: -6px -10px; border-radius: 50%; border: 4px dashed var(--c, #fff); opacity: .75;
  animation: chRing 14s linear infinite; pointer-events: none; transition: border-color .4s;
}
.ch__ring.is-rev { animation-direction: reverse; }
@keyframes chRing { to { transform: rotate(360deg); } }
.ch__pile { width: 96px; color: rgba(255,255,255,.8); }
.ch__pile .ch-card { box-shadow: 2px 2px 0 #d8d8d2, 4px 4px 0 #b9b9b2, 6px 6px 0 #9a9a92, 0 14px 24px rgba(0,0,0,.5); }
.ch__discard { position: relative; width: 120px; aspect-ratio: 5 / 7.4; }
.ch__dcard { position: absolute; inset: 0; transform: translateX(var(--x)) rotate(var(--r)); }
.ch__color strong { padding: .15em .6em; border-radius: 999px; background: rgba(0,0,0,.35); }
.ch__msg { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ch__table .hint, .ch__turn { color: #fff; }
/* joueurs : éventail de dos de cartes */
.ch-player { background: rgba(0,0,0,.25); }
.ch-player__cards { height: 30px; padding: 0 8px; }
.ch-player__cards i {
  width: 16px; height: 24px; margin-left: -9px; border-radius: 3px; transform: rotate(var(--r)); transform-origin: 50% 120%;
  background: radial-gradient(ellipse 40% 30% at 50% 50%, #e53935 92%, transparent 100%), #161616; box-shadow: 0 0 0 1.5px #fdfdfb, 0 2px 4px rgba(0,0,0,.4);
}
.ch-player__cards i:first-child { margin-left: 0; }
.ch-player__n { font-family: var(--font-title); font-size: .85rem; opacity: .85; }

/* téléphone : la main en éventail, on fait défiler si elle est grande */
.ch-hand { display: flex; gap: 0; overflow-x: auto; overflow-y: visible; padding: 22px 12px 12px; justify-content: safe center; scroll-snap-type: x proximity; }
.ch-hand__card { flex: 0 0 82px; margin-left: var(--ov, 0px); scroll-snap-align: start; transition: transform .18s, opacity .18s, margin .18s; }
.ch-hand__card:first-child { margin-left: 0; }
.ch-hand__card:disabled { opacity: 1; filter: brightness(.55) saturate(.7); }
.ch-hand__card.is-ok { transform: translateY(-16px); z-index: 1; }
.ch-hand__card.is-ok .ch-card { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.55), 0 10px 18px rgba(0,0,0,.5); }
.ch-pad__discard { width: 84px; }
.ch-pad { background: radial-gradient(ellipse at 50% 0%, rgba(36,152,90,.35), transparent 70%); border-radius: 20px; }

/* ===== L'Affaire Belvédère : plus claire ===== */
.enq-how { padding: 14px 18px; border-radius: 18px; background: #f3ecd8; color: #2b1d0e; box-shadow: inset 0 0 0 1px #d6c79f; }
.enq-how__title { margin: 0 0 6px; font-family: var(--font-title); font-size: 1.15rem; }
.enq-how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .92rem; line-height: 1.4; }
.enq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: st; }
.enq-steps li { counter-increment: st; padding: 8px 6px; border-radius: 12px; background: var(--surface); text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); transition: all .3s; }
.enq-steps li::before { content: counter(st); display: block; font-family: var(--font-title); font-size: 1.1rem; }
.enq-steps li.is-done { color: var(--text); opacity: .55; }
.enq-steps li.is-now { background: var(--yellow); color: #1a1033; box-shadow: 0 0 18px rgba(255, 204, 61, .5); transform: scale(1.04); }

.cl-help { padding: 10px 14px; border-radius: 16px; background: #f3ecd8; color: #2b1d0e; }
.cl-help summary { font-family: var(--font-title); font-size: 1.05rem; cursor: pointer; }
.cl-help ol { margin: 8px 0 2px; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; line-height: 1.4; }
.cl-info { padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); line-height: 1.45; animation: slideUp .3s ease; }
.cl-progress { padding: 10px 14px; border-radius: 14px; background: var(--surface); text-align: center; font-size: .92rem; }
.cl-progress.is-solved { background: linear-gradient(135deg, #3ddc84, #2fb36e); color: #08210f; animation: pop .4s ease; }
.cl-hand { padding: 10px 12px; border-radius: 16px; background: var(--surface); }
.cl-hand__cards { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-hand__card { padding: 6px 10px; border-radius: 10px; background: linear-gradient(160deg, #f8edd0, #e6d3a3); color: #2b1d0e; font-weight: 700; font-size: .88rem; box-shadow: 0 3px 0 #8a6a2f; }
.cl-pick__title { margin: 6px 0 4px; font-family: var(--font-title); font-size: 1rem; }
.cl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cl-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; background: linear-gradient(160deg, #f8edd0, #e6d3a3); color: #2b1d0e; box-shadow: 0 3px 0 #8a6a2f; font: inherit;
}
.cl-tile__icon { font-size: 1.6rem; line-height: 1; }
.cl-tile__name { font-size: .76rem; font-weight: 700; line-height: 1.15; text-align: center; }
.cl-tile__mark { position: absolute; top: 2px; right: 4px; font-size: .8rem; }
.cl-tile.is-out { opacity: .45; filter: grayscale(.6); }
.cl-tile.is-on { border-color: var(--yellow); background: linear-gradient(160deg, #fff6d8, #ffd970); box-shadow: 0 0 0 3px rgba(255, 204, 61, .45), 0 3px 0 #8a6a2f; transform: translateY(-2px); opacity: 1; filter: none; }
.cl-sentence { margin: 8px 0 0; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: .92rem; text-align: center; }
.ch-card.is-back { background: #fdfdfb; }

/* ===== Animations dans les jeux ===== */
/* question qui arrive + réponses qui tombent une à une */
.on-question { animation: qIn .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(-14px) scale(.94); filter: blur(4px); } }
.on-opt { animation: optIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.on-opt:nth-child(2) { animation-delay: .08s; }
.on-opt:nth-child(3) { animation-delay: .16s; }
.on-opt:nth-child(4) { animation-delay: .24s; }
@keyframes optIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
/* révélation : la bonne réponse brille, les autres tremblent et s'effacent */
.on-opt.is-good { animation: goodPop .7s cubic-bezier(.2, 1.5, .4, 1) both, goodGlow 1.6s ease-in-out .7s infinite; }
@keyframes goodPop { 0% { transform: scale(1); } 40% { transform: scale(1.09) rotate(-1deg); } 100% { transform: scale(1.03); } }
@keyframes goodGlow { 50% { box-shadow: 0 0 0 4px #fff, 0 0 46px var(--c); } }
.on-opt.is-dim { animation: dimShake .45s ease both; }
@keyframes dimShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 100% { transform: none; opacity: .3; } }
/* classement : lignes qui montent ou descendent, points gagnés qui s'envolent */
.on-lb__row { position: relative; }
.on-lb__row.is-up { box-shadow: inset 3px 0 0 var(--green); }
.on-lb__row.is-down { box-shadow: inset 3px 0 0 var(--red); }
.on-lb__row .gain { animation: gainFly 1.2s cubic-bezier(.2, 1.2, .4, 1) both .3s; }
@keyframes gainFly { 0% { opacity: 0; transform: translateY(14px) scale(.5); } 40% { opacity: 1; transform: translateY(-6px) scale(1.25); } 100% { transform: none; } }
.on-lb__row:first-of-type strong { color: var(--yellow); }
/* podium : la couronne du gagnant saute, un projecteur l'éclaire */
.podium__step--1 { position: relative; }
.podium__step--1::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 220px; height: 260px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255, 220, 120, .28), transparent 70%); animation: fadeIn 1s ease 1s both; }
.podium__step--1 .podium__medal { animation: crown 1.1s cubic-bezier(.3, 1.6, .5, 1) 1s both, crownBob 2s ease-in-out 2.1s infinite; }
@keyframes crown { from { transform: translateY(-80px) scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes crownBob { 50% { transform: translateY(-6px) rotate(6deg); } }

/* téléphone : les boutons de réponse arrivent un par un */
.pad-grid .pad-btn { animation: optIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.pad-grid .pad-btn:nth-child(2) { animation-delay: .06s; }
.pad-grid .pad-btn:nth-child(3) { animation-delay: .12s; }
.pad-grid .pad-btn:nth-child(4) { animation-delay: .18s; }
/* téléphone : bonne réponse = explosion de confettis, mauvaise = l'écran tremble */
.pad-result { position: relative; }
.pad-result.is-ok .pad-big { animation: okJump .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes okJump { 0% { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
.pad-result.is-ko .pad-big { animation: koShake .6s ease both; }
@keyframes koShake { 15%, 45%, 75% { transform: translateX(-10px) rotate(-6deg); } 30%, 60%, 90% { transform: translateX(10px) rotate(6deg); } }
.pad-result.is-ok { animation: okFlash .8s ease; border-radius: 24px; }
@keyframes okFlash { from { background: rgba(61, 220, 132, .35); } }
.pad-result.is-ko { animation: koFlash .8s ease; border-radius: 24px; }
@keyframes koFlash { from { background: rgba(255, 77, 94, .3); } }
.pad-burst { position: absolute; left: 50%; top: 70px; width: 0; height: 0; pointer-events: none; }
.pad-burst i { position: absolute; width: 10px; height: 14px; border-radius: 3px; background: var(--c); animation: burst 1.1s cubic-bezier(.1, .8, .3, 1) both; }
@keyframes burst {
  from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; }
  to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(260deg) scale(.4); opacity: 0; }
}
.pad-gain { animation: gainFly 1s cubic-bezier(.2, 1.2, .4, 1) both .15s; }
.pad-streak { animation: pop .4s ease .5s both, streakFire 1.2s ease-in-out .9s infinite; }
@keyframes streakFire { 50% { box-shadow: 0 0 18px rgba(255, 138, 61, .6); } }
.pad-move.is-up { animation: moveUp .7s cubic-bezier(.2, 1.4, .4, 1) .6s both; }
@keyframes moveUp { from { opacity: 0; transform: translateY(16px); } }

/* Chromo : cartes qui arrivent dans la main (donne, pioche, +2) */
.ch-hand__card.is-fresh { animation: handIn .55s cubic-bezier(.2, 1.3, .4, 1) calc(var(--i, 0) * 70ms) both; }
@keyframes handIn { from { transform: translate(-40px, -120px) rotate(-25deg) scale(.6); opacity: 0; } }
.ch-hand__card.is-ok.is-fresh { animation-name: handInOk; }
@keyframes handInOk { from { transform: translate(-40px, -120px) rotate(-25deg) scale(.6); opacity: 0; } to { transform: translateY(-16px); } }
.ch-player.is-turn { animation: turnGlow 1.4s ease-in-out infinite; }
@keyframes turnGlow { 50% { box-shadow: 0 0 30px color-mix(in srgb, var(--c) 75%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  .on-question, .on-opt, .on-opt.is-good, .on-opt.is-dim, .pad-grid .pad-btn, .pad-result, .pad-result .pad-big, .pad-burst, .ch-hand__card.is-fresh,
  .podium__step--1 .podium__medal, .ch-player.is-turn, .on-lb__row .gain { animation: none !important; }
}

/* Quiz : thème de la question */
.on-qtheme { margin: 10px auto -8px; width: fit-content; padding: .2em .8em; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; animation: pop .4s ease both; }

/* ===== Popi le chat : queue, oreilles, moustaches ===== */
.popi__tail { animation: catTail 1.6s ease-in-out infinite alternate; }
@keyframes catTail { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
.popi__ear--l { animation: catEarL 5s ease-in-out infinite; }
.popi__ear--r { animation: catEarR 6.5s ease-in-out 1.2s infinite; }
@keyframes catEarL { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-14deg); } 94% { transform: rotate(4deg); } }
@keyframes catEarR { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(14deg); } 94% { transform: rotate(-4deg); } }
.popi__whisk--l { animation: catWhiskL 3.2s ease-in-out infinite; }
.popi__whisk--r { animation: catWhiskR 3.2s ease-in-out infinite; }
@keyframes catWhiskL { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(6deg); } }
@keyframes catWhiskR { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(-6deg); } }
/* quand il parle : moustaches qui bougent, queue plus rapide */
.is-talking .popi__whisk--l { animation: catWhiskL .5s ease-in-out infinite; }
.is-talking .popi__whisk--r { animation: catWhiskR .5s ease-in-out infinite; }
.is-talking .popi__tail { animation-duration: .7s; }
/* fête : le nœud papillon tourne, les oreilles se dressent */
.is-party .popi__bow { animation: catBow .5s ease-in-out 4 alternate; }
@keyframes catBow { to { transform: rotate(14deg) scale(1.12); } }
.is-party .popi__ear--l, .is-wow .popi__ear--l { animation: none; transform: rotate(8deg); transition: transform .2s; }
.is-party .popi__ear--r, .is-wow .popi__ear--r { animation: none; transform: rotate(-8deg); transition: transform .2s; }
.is-think .popi__ear--l { animation: none; transform: rotate(-18deg); }
@media (prefers-reduced-motion: reduce) { .popi__tail, .popi__ear, .popi__whisk, .popi__bow { animation: none !important; } }

/* ===== Jouer seulement avec le téléphone : page figée, rien d'inutile ===== */
/* la page d'accueil ne bouge plus derrière le jeu */
body.no-scroll { position: fixed; left: 0; right: 0; overflow: hidden; }
.modal, .modal__body { overscroll-behavior: contain; }
/* manette plein écran : l'écran de l'hôte caché derrière ne défile plus */
body.pad-full .modal__body { overflow: hidden; }
/* dans la manette, le défilement ne « passe » jamais à la page en dessous */
html:has(.pad-body) { overscroll-behavior: none; }
.pad-body { overscroll-behavior: none; }
/* recopie de l'écran du jeu : les boutons de l'écran principal ne servent à rien sur le téléphone */
.mirror__inner button, .mirror__inner .btn, .mirror__inner .on-qfoot, .mirror__inner .hint { display: none !important; }
/* manette de l'hôte (intégrée) : pas de logo qui ferait quitter la partie, pas de langues */
.is-embed .pad-head .logo, .is-embed .lang-switch { display: none !important; }

/* ===== Une seule barre de temps ===== */
/* téléphone : pendant une question, son propre chrono suffit (pas celui recopié de l'écran) */
body.pad-asking .mirror__inner .progress,
body.pad-asking .mirror__inner .on-qhead .big-text { display: none !important; }
/* l'hôte joue depuis son téléphone : le chrono de sa manette suffit */
@media (max-width: 899px) {
  body.has-self-pad .is-asking > .progress,
  body.has-self-pad .is-asking #on-time { display: none; }
}

/* ===== Résultats sur une seule page (sans défiler) ===== */
#modal-body.is-results { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.is-results .res-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* ce qui vient de se passer, en version courte : la bonne réponse seulement */
.is-results .on-qhead .big-text, .is-results > .res-main > .progress, .is-results .on-qfoot { display: none; }
.is-results .on-qhead { margin-bottom: 0; }
.is-results .on-question { font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin: 4px 0; }
.is-results .on-qtheme { margin: 0 auto; }
.is-results .on-opts { margin-top: 4px; gap: 6px; grid-template-columns: 1fr; }
.is-results .on-opt.is-dim { display: none; }
.is-results .on-opt { padding: 12px 14px; }
.is-results .bt-stage { min-height: 0; padding: 12px; gap: 10px; flex-direction: row; text-align: left; }
.is-results .bt-cover { width: 84px; height: 84px; }
.is-results .center.muted { display: none; }
/* le classement, compact */
.is-results .on-lb { margin: 0; padding: 12px; gap: 6px; position: sticky; top: 0; }
.on-lb__title { margin: 0; font-family: var(--font-title); font-size: 1.1rem; }
.on-lb__rows { display: flex; flex-direction: column; gap: 4px; }
.on-lb__row { padding: 6px 10px; }
.on-lb__rank { width: 1.8em; text-align: center; }
.on-lb__row strong { font-family: var(--font-title); font-size: 1.15rem; min-width: 2.6em; text-align: right; }
.on-lb__more { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.on-lb__go { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.on-lb__go .btn { flex: 1; }
@media (max-width: 760px) {
  #modal-body.is-results { grid-template-columns: 1fr; gap: 8px; }
  .is-results .on-lb { position: static; }
  .is-results .on-question { font-size: 1rem; }
  .is-results .on-opt { padding: 8px 12px; font-size: .95rem; }
  .is-results .bt-cover { width: 60px; height: 60px; }
  /* beaucoup de joueurs : le classement passe sur 2 colonnes */
  .on-lb__rows:has(.on-lb__row:nth-child(5)) { display: grid; grid-template-columns: 1fr 1fr; }
  .on-lb__rows:has(.on-lb__row:nth-child(5)) .on-lb__row { padding: 5px 8px; font-size: .88rem; }
  .on-lb__rows:has(.on-lb__row:nth-child(5)) .gain { display: none; }
}

/* ===== Fin de partie : tout sur un écran, sans répétition ===== */
.end-screen { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.end-screen__title { margin: 0; font-family: var(--font-title); font-size: clamp(1.4rem, 5vw, 2.4rem); line-height: 1.2; }
.end-screen__title .muted { display: block; font-size: .5em; font-family: var(--font-text); }
.end-screen .podium { width: 100%; }
.end-screen .podium__step--1 { height: clamp(120px, 24vh, 200px); }
.end-screen .podium__step--2 { height: clamp(96px, 19vh, 160px); }
.end-screen .podium__step--3 { height: clamp(76px, 15vh, 125px); }
.end-screen .podium__medal { font-size: clamp(1.6rem, 4vh, 2.2rem); }
.end-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 640px; }
.end-chips span { display: inline-flex; align-items: center; gap: 6px; padding: .3em .75em; border-radius: 999px; background: var(--surface); font-size: .88rem; box-shadow: inset 3px 0 0 var(--c); }
.end-chips i { font-style: normal; color: var(--muted); font-size: .8em; }
.end-chips b { font-family: var(--font-title); }
.end-chips--overall { align-items: center; }
.end-chips--overall small { width: 100%; color: var(--muted); }

/* ===== Gens en ligne (fenêtre ouverte depuis le compteur) ===== */
.people-pop {
  position: fixed; z-index: 500; width: min(300px, calc(100vw - 16px)); max-height: 60vh; overflow-y: auto; padding: 12px;
  border-radius: 18px; background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px var(--border); animation: pop .25s ease;
}
.people-pop__head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-family: var(--font-title); }
.people-pop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people-pop__list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--bg-alt); }
.people-pop__av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 700; }
.people-pop__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.people-pop__txt b, .people-pop__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-pop__txt small { color: var(--muted); }

/* ===== Popi Tamagotchi : le chat qui se balade en bas de l'accueil ===== */
.pet { position: fixed; left: 0; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 40; width: 92px; pointer-events: none; will-change: transform; }
body.no-scroll .pet { display: none; }
.pet__body { position: relative; width: 92px; height: 72px; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet__side { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(var(--dir, 1)); filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.pet__front { position: absolute; left: 11px; bottom: 0; display: none; }
.pet[data-mode="sit"] .pet__side, .pet[data-mode="sleep"] .pet__side, .pet[data-mode="happy"] .pet__side { display: none; }
.pet[data-mode="sit"] .pet__front, .pet[data-mode="sleep"] .pet__front, .pet[data-mode="happy"] .pet__front { display: block; }
/* marche : les pattes avancent à tour de rôle, le corps sautille, la queue ondule */
.pet__leg { transform-box: fill-box; transform-origin: 50% 0; }
.pet[data-mode="walk"] .pet__leg--a { animation: petLeg .45s ease-in-out infinite alternate; }
.pet[data-mode="walk"] .pet__leg--b { animation: petLeg .45s ease-in-out infinite alternate-reverse; }
.pet[data-mode="run"] .pet__leg--a { animation: petLeg .18s ease-in-out infinite alternate; }
.pet[data-mode="run"] .pet__leg--b { animation: petLeg .18s ease-in-out infinite alternate-reverse; }
@keyframes petLeg { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.pet[data-mode="walk"] .pet__bob { animation: petBob .45s ease-in-out infinite alternate; }
.pet[data-mode="run"] .pet__bob { animation: petBob .18s ease-in-out infinite alternate; }
@keyframes petBob { to { transform: translateY(-3px); } }
.pet__tail { transform-box: fill-box; transform-origin: 100% 100%; animation: petTail 1.4s ease-in-out infinite alternate; }
@keyframes petTail { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
.pet__eye { transform-box: fill-box; transform-origin: 50% 50%; animation: popiBlink 4s infinite; }
/* sieste : yeux fermés et petits « z » */
.pet[data-mode="sleep"] .popi__eyes { animation: none; transform: scaleY(.1); }
.pet[data-mode="sleep"] .popi__all, .pet[data-mode="sleep"] .popi__tail { animation-duration: 4s; }
.pet__z { position: absolute; right: -4px; top: -10px; display: none; font-family: var(--font-title); color: #cfc6ff; font-size: 1rem; }
.pet__z i { font-style: normal; display: inline-block; }
.pet[data-mode="sleep"] .pet__z { display: block; }
.pet__z, .pet__z i { animation: petZ 2.4s ease-in-out infinite; }
.pet__z i:nth-child(1) { animation-delay: .5s; font-size: 1.2em; }
.pet__z i:nth-child(2) { animation-delay: 1s; font-size: 1.45em; }
@keyframes petZ { 0% { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -16px); } }
/* bulle, menu de soins, cœurs */
.pet__bubble { position: absolute; bottom: 100%; left: 50%; translate: -50% -6px; width: max-content; max-width: 200px; padding: 7px 12px; border-radius: 14px;
  background: #fff; color: #1a1033; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: popiBubble .3s ease; pointer-events: none; }
.pet__bubble[hidden], .pet__menu[hidden] { display: none; }
.pet__menu { position: absolute; bottom: calc(100% + 44px); left: 50%; translate: -50% 0; width: 240px; padding: 10px; border-radius: 16px;
  background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 1px var(--border); pointer-events: auto; animation: pop .25s ease; }
.pet__bars { display: flex; gap: 10px; margin-bottom: 8px; font-size: .85rem; }
.pet__bars span { flex: 1; display: flex; align-items: center; gap: 6px; }
.pet__bars i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pet__bars b { display: block; height: 100%; background: linear-gradient(90deg, #ff4d5e, #ffcc3d, #3ddc84); background-size: 300% 100%; background-position: 100% 0; transition: width .4s; }
.pet__acts { display: flex; gap: 6px; }
.pet__acts button { flex: 1; padding: 8px 4px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: 600 .8rem var(--font-text); cursor: pointer; }
.pet__acts button:active { transform: scale(.95); }
.pet__heart { position: absolute; bottom: 60px; font-size: 1.3rem; pointer-events: none; animation: petHeart 1.4s ease-out forwards; }
@keyframes petHeart { from { opacity: 1; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-60px) scale(1.3); } }
/* le chat ne doit pas cacher le bas de la page : un peu de place en plus */
body:has(.pet) .footer { padding-bottom: 90px; }
@media (prefers-reduced-motion: reduce) { .pet *, .pet { animation: none !important; } }
/* un seul Popi sur l'accueil : celui qui se balade */
body:has(.pet) .hv-popi { display: none; }

/* ===== Jeux où le téléphone affiche déjà tout : pas de copie de l'écran en haut ===== */
/* Qui est-ce, Chromo, Loto/Bingo, Dessin, L'Affaire Belvédère */
body:has(#screen .pm-pad, #screen .ch-pad, #screen .bg-pad, #screen .dd-pad, #screen .cl-notebook) .mirror,
body:has(#screen .pm-pad, #screen .ch-pad, #screen .bg-pad, #screen .dd-pad, #screen .cl-notebook) #mirror-btn { display: none !important; }
/* Popi : petits tours quand on le touche */
.pet__body.is-jump { animation: petJump .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes petJump { 40% { transform: translateY(-46px) scale(1.05, .95); } 70% { transform: translateY(0) scale(1.1, .9); } }
.pet__body.is-roll { animation: petRoll .8s ease-in-out; }
@keyframes petRoll { 50% { transform: translateY(-30px) rotate(180deg); } 100% { transform: rotate(360deg); } }

/* =====================================================================
   Chromo ! — nouveau style « jeu mobile » (remplace les styles précédents)
   ===================================================================== */
/* --- cartes : brillantes, couleurs vives, gros chiffre en relief --- */
.ch-card {
  border-radius: 14% / 10%; color: #fff; font-family: var(--font-title); font-weight: 700;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 72%, #000) 100%);
  box-shadow: inset 0 0 0 3.4cqw #fff, inset 0 0 0 4.4cqw rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.18), 0 10px 20px rgba(0,0,0,.38);
}
.ch-card::before { inset: 0; border-radius: inherit; background: radial-gradient(120% 55% at 25% 0%, rgba(255,255,255,.5), transparent 60%); }
.ch-card__mid {
  left: 50%; top: 50%; width: 70%; height: 54%; border-radius: 50%; transform: translate(-50%, -50%) rotate(-24deg);
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.2cqw rgba(255,255,255,.55);
}
.ch-card__mid span { color: #fff; font-family: var(--font-title); font-size: 46cqw; transform: rotate(24deg); -webkit-text-stroke: 0; text-shadow: 0 1.8cqw 0 rgba(0,0,0,.28), 0 0 6cqw rgba(0,0,0,.15); letter-spacing: -.03em; }
.ch-card__corner { top: 9%; left: 12%; font-family: var(--font-title); font-size: 17cqw; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 .9cqw 0 rgba(0,0,0,.25); }
.ch-card__corner--b { top: auto; left: auto; bottom: 9%; right: 12%; }
.ch-card.is-wild { background: linear-gradient(160deg, #34306a, #15122e); }
.ch-card.is-wild::before { background: radial-gradient(120% 55% at 25% 0%, rgba(255,255,255,.3), transparent 60%); }
.ch-card.is-wild .ch-card__mid { background: conic-gradient(from -24deg, #ff4757 0 25%, #1e90ff 0 50%, #ffb800 0 75%, #2ed573 0); box-shadow: inset 0 0 0 1.4cqw #fff; }
.ch-card.is-wild .ch-card__corner:empty { width: 13%; height: 16%; border-radius: 50%; background: conic-gradient(#ff4757 0 25%, #1e90ff 0 50%, #ffb800 0 75%, #2ed573 0); box-shadow: 0 0 0 .8cqw #fff; }
.ch-card.is-back { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 1.2cqw, transparent 1.4cqw) 0 0 / 9cqw 9cqw, linear-gradient(160deg, #4a35a0, #170f3a); }
.ch-card.is-back::before { background: radial-gradient(120% 55% at 25% 0%, rgba(255,255,255,.28), transparent 60%); }
.ch-card.is-back .ch-card__mid { background: linear-gradient(135deg, #ff5e8a, #7c5cff); box-shadow: inset 0 0 0 1.2cqw rgba(255,255,255,.6); }
.ch-card.is-back .ch-card__mid span { color: #ffd84d; font-size: 26cqw; transform: rotate(24deg); text-shadow: 0 1.4cqw 0 rgba(0,0,0,.3); }
.ch-card.is-new { animation: chDrop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes chDrop { from { transform: translateY(-60px) rotate(-18deg) scale(1.2); opacity: 0; } }

/* --- écran principal --- */
.ch2 { --cc: #7c5cff; gap: 16px; }
.ch2__seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ch-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; transition: transform .3s; }
.ch-seat__av { width: 60px; height: 60px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .3s, box-shadow .3s; }
.ch-seat.is-turn .ch-seat__av { background: conic-gradient(var(--c) calc(var(--p, 1) * 360deg), rgba(255,255,255,.12) 0); transform: scale(1.14); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 70%, transparent); }
.ch-seat__av span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-size: 1.5rem; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 3px #120c2a; }
.ch-seat__name { font-size: .85rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-seat.is-turn .ch-seat__name { color: var(--c); }
.ch-seat__fan { position: relative; width: 70px; height: 24px; }
.ch-seat__fan i { position: absolute; left: calc(50% - 7px); bottom: 0; width: 14px; height: 20px; border-radius: 3px; transform: rotate(var(--r)); transform-origin: 50% 140%;
  background: linear-gradient(160deg, #5a44b8, #1d1446); box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0,0,0,.4); }
.ch-seat__n { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: #fff; color: #1a1033; font: 700 .78rem var(--font-title); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ch-seat__alert { position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 99px; background: var(--red); font-size: .7rem; font-weight: 700; white-space: nowrap; animation: pulse 1s infinite; }
.ch2__table {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 44px; padding: 42px 20px; border-radius: 30px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--cc) 38%, #1a1238) 0%, #140d30 62%, #0e0924 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), inset 0 0 80px rgba(0,0,0,.5), 0 20px 50px rgba(0,0,0,.35); transition: background .6s;
}
.ch2 .ch__ring { inset: auto; left: 50%; top: 50%; width: 320px; height: 320px; translate: -50% -50%; border: 3px dashed var(--cc); opacity: .55; }
.ch2 .ch__ring span { display: none; }
.ch2 .ch__pile { position: relative; width: 104px; color: rgba(255,255,255,.7); font-size: .8rem; }
.ch2 .ch__pile .ch-card { box-shadow: 2px 2px 0 #3a2a80, 4px 4px 0 #2c1f63, 6px 6px 0 #21174b, 0 16px 28px rgba(0,0,0,.5); }
.ch2 .ch__discard { position: relative; width: 132px; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--cc) 55%, transparent)); }
.ch2__info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ch2__color { display: inline-flex; align-items: center; gap: 8px; padding: .4em 1em; border-radius: 999px; background: var(--surface); font-weight: 600; }
.ch2__color i { width: 14px; height: 14px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 10px var(--cc); }
.ch2 .ch__msg { color: var(--text); text-shadow: none; min-height: 1.4em; }

/* --- téléphone --- */
.ch2-pad { --cc: #7c5cff; gap: 10px; background: radial-gradient(ellipse 90% 45% at 50% 28%, color-mix(in srgb, var(--cc) 28%, transparent), transparent 75%); transition: background .5s; }
.ch2-pad__opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ch2-opp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); }
.ch2-opp__av { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--font-title); color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 2px #120c2a; }
.ch2-opp__av b { position: absolute; right: -6px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: #fff; color: #1a1033; font-size: .72rem; }
.ch2-opp.is-turn .ch2-opp__av { box-shadow: 0 0 0 3px var(--c), 0 0 18px var(--c); animation: turnGlow 1.4s ease-in-out infinite; }
.ch2-opp.is-turn small { color: var(--c); font-weight: 700; }
.ch2-opp em { position: absolute; top: -10px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-style: normal; font-weight: 700; font-size: .62rem; }
.ch2-pad__center { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 0; }
.ch2-pad .ch-pad__discard { width: 96px; filter: drop-shadow(0 0 20px color-mix(in srgb, var(--cc) 60%, transparent)); }
.ch2-pad__side { display: flex; flex-direction: column; gap: 6px; max-width: 190px; }
.ch2-pad__color { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .85rem; }
.ch2-pad__color i { width: 12px; height: 12px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.ch2-pad .ch-pad__msg { min-height: 0; font-size: .82rem; }
/* la main en éventail arrondi */
.ch2-pad .ch-hand { padding: 34px 16px 18px; justify-content: safe center; }
.ch2-pad .ch-hand__card { flex: 0 0 78px; transform-origin: 50% 130%; transform: translateY(calc(var(--dy, 0px) - var(--lift, 0px))) rotate(var(--rot, 0deg)); }
.ch2-pad .ch-hand__card.is-ok { --lift: 20px; transform: translateY(calc(var(--dy, 0px) - var(--lift, 0px))) rotate(var(--rot, 0deg)); z-index: 2; }
.ch2-pad .ch-hand__card.is-ok .ch-card { box-shadow: inset 0 0 0 3.4cqw #fff, 0 0 0 3px #ffe37a, 0 0 22px rgba(255, 227, 122, .7), 0 12px 20px rgba(0,0,0,.45); }
.ch2-pad .ch-hand__card.is-ok:active { --lift: 30px; }
.ch2-pad .ch-hand:not(.ch-hand--mine) .ch-hand__card:disabled { filter: none; opacity: 1; }
.ch2-pad .ch-hand--mine .ch-hand__card:disabled { filter: brightness(.5) saturate(.6); }
.ch2-pad .ch-hand__card.is-ok.is-fresh { animation-name: handIn; }
/* boutons façon jeu */
.ch2-pad__acts { display: flex; justify-content: center; gap: 10px; }
.ch2-btn { padding: 14px 24px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font: 700 1.1rem var(--font-title); letter-spacing: .01em;
  background: linear-gradient(180deg, #6f8bff, #3d55e0); box-shadow: 0 5px 0 #2a3aa8, 0 12px 20px rgba(0,0,0,.35); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ch2-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #2a3aa8, 0 4px 10px rgba(0,0,0,.3); }
.ch2-btn--shout { background: linear-gradient(180deg, #ffd84d, #ff9a1f); color: #3a1d00; text-shadow: none; box-shadow: 0 5px 0 #c26a00, 0 12px 20px rgba(0,0,0,.35); }
.ch2-btn--shout.is-on { animation: goPulse 1s infinite; }
.ch2-pad .ch-pad__status { border-radius: 16px; }
/* corrections : bordure fine (en px, pas en unités du conteneur) et cercle qui tient dans la table */
.ch-card { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.18), 0 10px 20px rgba(0,0,0,.38); }
.ch-card.is-back { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08) 1.5px, transparent 2px) 0 0 / 10px 10px, linear-gradient(160deg, #4a35a0, #170f3a); }
.ch2-pad .ch-hand__card.is-ok .ch-card { box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px #ffe37a, 0 0 22px rgba(255, 227, 122, .7), 0 12px 20px rgba(0,0,0,.45); }
.ch2 .ch__ring { width: 250px; height: 250px; }
.ch2 .ch__pile .ch-card { box-shadow: inset 0 0 0 4px #fff, 2px 2px 0 #3a2a80, 4px 4px 0 #2c1f63, 6px 6px 0 #21174b, 0 16px 28px rgba(0,0,0,.5); }
.ch2-pad .ch-hand { scrollbar-width: none; }
.ch2-pad .ch-hand::-webkit-scrollbar { display: none; }

/* =====================================================================
   L'Affaire Belvédère — nouvelle version (scène animée + choix guidé)
   ===================================================================== */
/* --- écran principal --- */
.enq2 { display: flex; flex-direction: column; gap: 14px; }
.enq2__players { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.enq2-player { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; font-size: .85rem; transition: transform .3s, opacity .3s; }
.enq2-player small { color: var(--muted); font-size: .72rem; }
.enq2-player.is-turn { transform: scale(1.1); }
.enq2-player.is-turn b { color: var(--c); }
.enq2-player.is-turn .enq2-av { box-shadow: 0 0 0 3px var(--c), 0 0 22px var(--c); animation: turnGlow 1.4s ease-in-out infinite; }
.enq2-player.is-out { opacity: .4; }
.enq2-av { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 1.15rem var(--font-title); color: #fff; vertical-align: middle;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 2px #120c2a; }
.enq2-scene .enq2-av, .enq2-secret .enq2-av { width: 34px; height: 34px; font-size: .95rem; }
.enq2__stage { min-height: 240px; border-radius: 26px; padding: 22px 16px; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 196, 106, .22), transparent 60%), linear-gradient(180deg, #2b1d0e, #1a1208); border: 1px solid #8a6a2f; box-shadow: inset 0 0 60px rgba(0,0,0,.55); color: #f5e9c8; }
.enq2__stage::before { content: ""; position: absolute; left: 50%; top: -40%; width: 70%; height: 140%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 236, 180, .18), transparent 65%); animation: spotlight 6s ease-in-out infinite alternate; }
@keyframes spotlight { from { transform: translateX(-12%) rotate(-6deg); } to { transform: translateX(12%) rotate(6deg); } }
.enq2-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fadeIn .4s ease; }
.enq2-scene__mag { font-size: 3.4rem; animation: magSearch 2.4s ease-in-out infinite; }
@keyframes magSearch { 0%, 100% { transform: translate(-18px, 0) rotate(-12deg); } 50% { transform: translate(18px, -8px) rotate(12deg); } }
.enq2-scene__big { margin: 0; font-family: var(--font-title); font-size: clamp(1.1rem, 3vw, 1.5rem); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.enq2-scene__q { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.enq2-scene .muted { color: #c9b88d; margin: 0; }
.enq2-trio { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; perspective: 900px; }
.enq2-trio__and { font-style: italic; color: #c9b88d; }
.enq2-card { width: 118px; height: 150px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px;
  background: linear-gradient(160deg, #fbf1d6, #e6d3a3); color: #2b1d0e; box-shadow: inset 0 0 0 3px #8a6a2f, inset 0 6px 0 3px var(--c), 0 12px 26px rgba(0,0,0,.5);
  animation: flipIn .8s cubic-bezier(.2, 1.2, .4, 1) both; font-family: var(--font-title); }
.enq2-card__icon { font-size: 2.8rem; }
.enq2-secret { display: flex; align-items: center; gap: 10px; width: min(100%, 460px); }
.enq2-secret__who { display: flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.enq2-secret__track { position: relative; flex: 1; height: 54px; border-bottom: 2px dashed rgba(232, 196, 106, .4); }
.enq2-secret__card { position: absolute; left: 0; top: 4px; width: 36px; height: 48px; border-radius: 6px; display: grid; place-items: center; font: 700 1.2rem var(--font-title);
  background: linear-gradient(160deg, #6b4a1e, #3b2610); color: #f5e9c8; box-shadow: inset 0 0 0 2px #c9a45c, 0 6px 12px rgba(0,0,0,.5); }
.enq2-secret__card.is-wait { left: 4px; animation: cardWiggle .9s ease-in-out infinite; }
@keyframes cardWiggle { 50% { transform: rotate(-10deg) translateY(-4px); } }
.enq2-secret__card.is-fly { animation: cardFly 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes cardFly { 0% { left: 0; transform: rotate(0); } 50% { transform: translateY(-22px) rotate(200deg); } 100% { left: calc(100% - 36px); transform: rotate(360deg); } }
.enq2-none { margin: 0; font-family: var(--font-title); font-size: clamp(2.2rem, 7vw, 3.4rem); color: #ffd166; animation: noneBoom .7s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 4px 0 #6b4a1e; }
@keyframes noneBoom { from { transform: scale(.2) rotate(-12deg); opacity: 0; } }
.enq2 .enq-steps li { background: var(--surface); }
.enq2__board { display: flex; flex-direction: column; gap: 6px; }
.enq2__row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.enq2__rowlabel { flex-shrink: 0; width: 92px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.enq2-mini { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: var(--surface); text-align: center; border: 2px solid transparent; transition: all .3s; }
.enq2-mini span { font-size: 1.3rem; }
.enq2-mini small { font-size: .62rem; color: var(--muted); line-height: 1.1; }
.enq2-mini.is-hyp { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 18%, var(--surface)); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255, 204, 61, .35); }
.enq2__how { border-radius: 16px; background: var(--surface); padding: 10px 14px; }
.enq2__how summary { cursor: pointer; font-family: var(--font-title); }
.enq2__how summary small { color: var(--muted); font-family: var(--font-text); font-size: .75rem; }
.enq2__howgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.enq2__howgrid div { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; background: var(--bg-alt); font-size: .85rem; }
.enq2__howgrid b { font-size: 1.4rem; }
.enq2__howgrid p { margin: 0; line-height: 1.35; }
.enq2__log { max-height: none; }
@media (min-width: 900px) { .enq2 { display: grid; grid-template-columns: 1fr 1fr; } .enq2__players, .enq2 .enq-steps, .enq2__stage { grid-column: 1 / -1; } }

/* --- téléphone --- */
.cl2 { display: flex; flex-direction: column; gap: 10px; }
.cl2-panel { padding: 14px; border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; animation: cardIn .35s ease; }
.cl2-panel p { margin: 0; }
.cl2-panel__title { font-family: var(--font-title); font-size: 1.25rem; text-align: center; }
.cl2-panel--turn { background: linear-gradient(170deg, color-mix(in srgb, var(--violet) 30%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--violet); }
.cl2-panel--alert { background: linear-gradient(170deg, color-mix(in srgb, var(--yellow) 30%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--yellow); animation: cardIn .4s cubic-bezier(.2, 1.4, .4, 1), alertGlow 1.6s ease-in-out .4s infinite; }
@keyframes alertGlow { 50% { box-shadow: 0 0 0 2px var(--yellow), 0 0 26px rgba(255, 204, 61, .5); } }
.cl2-panel--accuse { background: linear-gradient(170deg, color-mix(in srgb, var(--red) 30%, var(--surface)), var(--surface)); box-shadow: 0 0 0 2px var(--red); }
.cl2-dots { display: flex; justify-content: center; gap: 8px; }
.cl2-dot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 6px 4px; border: 0; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--muted); font: 700 1.1rem var(--font-title); cursor: pointer; }
.cl2-dot small { font: 600 .68rem var(--font-text); }
.cl2-dot.is-now { background: var(--yellow); color: #1a1033; transform: scale(1.06); }
.cl2-dot.is-done { background: rgba(61, 220, 132, .2); color: var(--text); }
.cl2-ask { text-align: center; font-family: var(--font-title); font-size: 1.5rem; animation: pop .35s ease; }
.cl2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl2-grid--show { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.cl2-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 10px 4px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(160deg, #fbf1d6, #e6d3a3); color: #2b1d0e; box-shadow: inset 0 5px 0 var(--c), inset 0 0 0 2px #c9a45c, 0 4px 0 #8a6a2f; font-family: var(--font-title);
  animation: optIn .4s cubic-bezier(.2, 1.4, .4, 1) both; transition: transform .15s; }
.cl2-card:active { transform: translateY(3px) scale(.97); }
.cl2-card__icon { font-size: 2rem; line-height: 1; }
.cl2-card__name { font-size: .78rem; line-height: 1.15; text-align: center; }
.cl2-card__mark { position: absolute; top: 4px; right: 6px; font-size: .8rem; }
.cl2-card.is-out { filter: grayscale(.8); opacity: .45; }
.cl2-card.is-on { box-shadow: inset 0 5px 0 var(--c), 0 0 0 3px var(--yellow), 0 4px 0 #8a6a2f; }
.cl2-card.is-pop { animation: flipIn .6s cubic-bezier(.2, 1.2, .4, 1) both; }
.cl2-card.is-flip { width: 140px; min-height: 170px; animation: flipIn .9s cubic-bezier(.2, 1.2, .4, 1) both; }
.cl2-card.is-flip .cl2-card__icon { font-size: 3rem; }
.cl2-card.is-flip .cl2-card__name { font-size: 1rem; }
.cl2-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: 800px; }
.cl2-sentence { text-align: center; font-size: .95rem; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.2); }
.cl2-reveal { display: flex; justify-content: center; perspective: 800px; }
.cl2-none { text-align: center; font-family: var(--font-title); font-size: 2.4rem; color: #ffd166; animation: noneBoom .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.cl2-wait { display: flex; justify-content: center; }
.cl2-wait__card { width: 64px; height: 86px; border-radius: 10px; display: grid; place-items: center; font: 700 2rem var(--font-title); color: #f5e9c8;
  background: linear-gradient(160deg, #6b4a1e, #3b2610); box-shadow: inset 0 0 0 3px #c9a45c; animation: cardWiggle .9s ease-in-out infinite; }
.cl2-acts { display: flex; gap: 8px; justify-content: center; }
.cl2-btn { flex: 1; max-width: 220px; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: 700 1.05rem var(--font-title);
  background: linear-gradient(180deg, #8b6dff, #5b3fe0); box-shadow: 0 5px 0 #3d2a9e, 0 10px 18px rgba(0,0,0,.3); animation: pop .3s ease; }
.cl2-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #3d2a9e; }
.cl2-btn--ghost { background: rgba(255,255,255,.1); box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.cl2-btn--red { background: linear-gradient(180deg, #ff6b7a, #e0334a); box-shadow: 0 5px 0 #9e1f30, 0 10px 18px rgba(0,0,0,.3); }
.cl2-sub { margin: 4px 0 4px; font-family: var(--font-title); font-size: .95rem; }
.cl2-sub small { font-family: var(--font-text); font-size: .72rem; color: var(--muted); }
.cl2-hand { padding: 10px 12px; border-radius: 18px; background: var(--surface); }
.cl2-hand__fan { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cl2-mini { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 6px 2px; border-radius: 10px; font-size: 1.3rem;
  background: linear-gradient(160deg, #fbf1d6, #e6d3a3); color: #2b1d0e; box-shadow: inset 0 4px 0 var(--c), 0 3px 0 #8a6a2f; transform: rotate(var(--r)); }
.cl2-mini small { font-size: .6rem; font-weight: 700; line-height: 1.1; text-align: center; }
.cl2-notebook { padding: 10px 12px; border-radius: 18px; background: #f3ecd8; color: #2b1d0e; }
.cl2-notebook summary { font-family: var(--font-title); cursor: pointer; }
.cl2-notebook summary small { display: block; font-family: var(--font-text); font-size: .72rem; color: #7a6a45; }
.cl2-notebook .cl2-sub { color: #7a6a45; }
.cl2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl2-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.75); color: #2b1d0e; font: 600 .78rem var(--font-text); box-shadow: inset 0 0 0 1px #d6c79f; }
.cl2-chip b { min-width: 1em; }
.cl2-chip.is-x span, .cl2-chip.is-mine span { text-decoration: line-through; opacity: .55; }
.cl2-chip.is-mine { background: rgba(124, 92, 255, .14); cursor: default; }
.cl2-chip.is-q { background: rgba(255, 204, 61, .45); }
.cl2-chip.is-v { background: rgba(61, 220, 132, .45); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .enq2 *, .cl2 * { animation: none !important; } }
body:has(#screen .cl2) .mirror, body:has(#screen .cl2) #mirror-btn { display: none !important; }
.enq2 .enq-steps li.is-now { background: var(--yellow); color: #1a1033; }

/* ===== Jeu des différences ===== */
.df { display: flex; flex-direction: column; gap: 10px; }
.df__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.df__count { font-family: var(--font-title); font-size: 1.15rem; }
.df__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.df__frame { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(0,0,0,.4); background: #fff; line-height: 0; }
.df-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.df-mark { stroke-dasharray: 80; stroke-dashoffset: 80; animation: dfDraw .55s ease forwards, dfPulse 1.6s ease-in-out .55s infinite; filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.df-mark.is-missed { stroke-dasharray: 2 1.4; stroke-dashoffset: 0; animation: dfMiss 1s ease-in-out infinite; }
@keyframes dfDraw { to { stroke-dashoffset: 0; } }
@keyframes dfPulse { 50% { stroke-width: 1.8; } }
@keyframes dfMiss { 50% { opacity: .35; } }
.df__finders { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 30px; }
.df__finders span { display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 999px; background: var(--surface); font-size: .9rem; animation: pop .3s ease; }
.df__finders i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.df__finders b { color: var(--green); }
@media (max-width: 760px) { .df__imgs { grid-template-columns: 1fr; } }
/* téléphone */
.df-pad { display: flex; flex-direction: column; gap: 10px; transition: filter .2s; }
.df-pad__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); }
.df-pad__imgs { display: flex; flex-direction: column; gap: 10px; }
.df-pad__msg { margin: 0; text-align: center; font-weight: 600; min-height: 1.4em; }
.df-pad.is-locked .df-pad__imgs { filter: grayscale(.8) brightness(.7); animation: koShake .4s ease; }
.df-tap { fill: rgba(255,255,255,.55); stroke: #1a1033; stroke-width: .3; animation: dfTap .6s ease forwards; pointer-events: none; }
@keyframes dfTap { to { r: 5; opacity: 0; } }
.df-x { animation: fadeIn .2s ease; }
body:has(#screen .df-pad) .mirror, body:has(#screen .df-pad) #mirror-btn { display: none !important; }

/* Popi présente la fin de partie */
.end-popi { flex-direction: column-reverse; align-items: center; gap: 4px; margin: 0 auto; animation: endPopiIn .8s cubic-bezier(.2, 1.5, .4, 1) both; }
.end-popi .popi-bubble { border-radius: 18px; text-align: center; max-width: 320px; }
.end-popi .popi__talk { animation-iteration-count: 10; }
@keyframes endPopiIn { from { transform: translateY(60px) scale(.4); opacity: 0; } }
.pad-state .end-popi { margin-bottom: -4px; }
#lg-ctrl:has(.end-popi) { flex-wrap: wrap; justify-content: center; }
#lg-ctrl .end-popi { flex-basis: 100%; }
@media (max-width: 760px) { .df__imgs { grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 480px) { .df__imgs { grid-template-columns: 1fr; } }
.df__frame { align-self: start; }

/* ===== Mode équipes ===== */
.team-board { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.team-board__row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.team-board__row i { height: 12px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.team-board__row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--c); box-shadow: 0 0 12px var(--c); animation: growX .9s cubic-bezier(.2, 1, .3, 1) both; transform-origin: left; }
.team-board__row b { font-family: var(--font-title); color: var(--c); min-width: 3ch; text-align: right; }
.team-board--end { width: min(100%, 420px); }
.me-team { padding: .15em .6em; border-radius: 999px; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; margin-right: 4px; white-space: nowrap; }
.me-team[hidden] { display: none; }
.pad-state .big-text { white-space: pre-line; }

/* ===== Calcul Express ===== */
.calc-q { font-size: clamp(2.4rem, 9vw, 4.4rem); letter-spacing: .02em; }
.calc-q b { color: var(--yellow); }
.calc-r { display: inline-block; color: var(--green) !important; animation: okJump .6s cubic-bezier(.2, 1.6, .4, 1); }

/* ===== Plus ou Moins ===== */
.pm2 { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 10px 0; perspective: 900px; }
.pm2-card { position: relative; width: 104px; height: 146px; border-radius: 12px; background: #fff; color: var(--c); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 2px #e8e3f5; font-family: var(--font-title); }
.pm2-card i { font-style: normal; font-size: 3.4rem; }
.pm2-card > span { position: absolute; top: 6px; left: 9px; font-size: 1.2rem; }
.pm2-card .pm2-card__b { top: auto; left: auto; bottom: 6px; right: 9px; transform: rotate(180deg); }
.pm2-card.is-back { background: repeating-linear-gradient(45deg, #5a44b8 0 8px, #4a35a0 8px 16px); color: #fff; font-size: 3rem; box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 4px #fff; }
.pm2-card.is-in { animation: dealIn .5s cubic-bezier(.2, 1.2, .4, 1); }
.pm2-card.is-flip { animation: flipIn .7s cubic-bezier(.2, 1.2, .4, 1) both; }
.is-results .pm2 { margin: 4px 0; }
.is-results .pm2-card { width: 74px; height: 104px; }
.is-results .pm2-card i { font-size: 2.4rem; }

/* ===== L'Intrus ===== */
.intr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.intr__title { margin: 0; font-family: var(--font-title); font-size: clamp(1.2rem, 3.6vw, 1.7rem); }
.intr__order { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.intr__order li { display: flex; align-items: center; gap: 6px; padding: .4em .9em; border-radius: 999px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); font-weight: 600; animation: optIn .4s ease both; }
.intr__order span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .75rem; }
.intr__spy { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 26px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 3px var(--c), 0 0 30px var(--c); animation: flipIn .8s cubic-bezier(.2, 1.2, .4, 1) both; }
.intr__spy span { font-size: 2.6rem; }
.intr__spy b { font-family: var(--font-title); font-size: 1.5rem; }
.intr__votes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.intr__votes span { padding: .25em .7em; border-radius: 999px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); font-size: .85rem; }

/* ===== Tir à la corde ===== */
.tug { display: flex; flex-direction: column; gap: 12px; }
.tug__head { display: flex; justify-content: space-between; align-items: center; }
.tug__field { display: grid; grid-template-columns: 110px 1fr 110px; align-items: center; gap: 10px; padding: 24px 12px; border-radius: 24px;
  background: linear-gradient(90deg, color-mix(in srgb, #ff4757 22%, var(--surface)), var(--surface) 45%, var(--surface) 55%, color-mix(in srgb, #1e90ff 22%, var(--surface))); }
.tug__team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--c); }
.tug__team b { font-family: var(--font-title); font-size: 1.15rem; }
.tug__team small { color: var(--muted); font-size: .75rem; }
.tug__rope-zone { position: relative; height: 90px; }
.tug__line { position: absolute; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.tug__line--l { left: 0; background: #ff4757; } .tug__line--r { right: 0; background: #1e90ff; } .tug__line--m { left: 50%; translate: -50% 0; border-left: 3px dashed rgba(255,255,255,.4); background: none; }
.tug__rope { --pos: 0; position: absolute; top: 50%; left: 50%; width: 140%; height: 10px; border-radius: 6px; translate: calc(-50% + var(--pos) * .5%) -50%; transition: translate .12s linear;
  background: repeating-linear-gradient(60deg, #c98b4b 0 6px, #a86f36 6px 12px); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.tug__rope-zone { overflow: hidden; }
.tug__knot { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; translate: -50% -50%; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 4px #fff, 0 0 20px #ffd84d; }
.tug__rope.is-win-l .tug__knot { background: #ff4757; box-shadow: 0 0 0 4px #fff, 0 0 26px #ff4757; }
.tug__rope.is-win-r .tug__knot { background: #1e90ff; box-shadow: 0 0 0 4px #fff, 0 0 26px #1e90ff; }
.tug__msg { margin: 0; text-align: center; font-family: var(--font-title); font-size: 1.3rem; }
@media (max-width: 600px) { .tug__field { grid-template-columns: 70px 1fr 70px; padding: 16px 8px; } .tug__team b { font-size: .9rem; } }
/* téléphone */
.tug-pad { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.tug-pad__team { margin: 0; font-family: var(--font-title); font-size: 1.3rem; color: var(--c); }
.tug-pad__mini { position: relative; width: 100%; height: 22px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.tug-pad__rope { --pos: 0; position: absolute; inset: 0; }
.tug-pad__rope span { position: absolute; top: 50%; left: calc(50% + var(--pos) * .45%); width: 18px; height: 18px; translate: -50% -50%; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 10px #ffd84d; transition: left .3s; }
.tug-pad__btn { width: min(78vw, 300px); aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); color: #fff; font-size: 3.4rem;
  box-shadow: 0 10px 0 color-mix(in srgb, var(--c) 60%, #000), 0 20px 40px rgba(0,0,0,.4); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.tug-pad__btn b { font-family: var(--font-title); font-size: 2rem; }
.tug-pad__btn small { font-family: var(--font-title); font-size: 1rem; opacity: .85; }
.tug-pad__btn.is-hit { animation: tugHit .12s ease; }
@keyframes tugHit { 50% { transform: translateY(8px) scale(.96); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000), 0 8px 20px rgba(0,0,0,.4); } }
body:has(#screen .tug-pad) .mirror, body:has(#screen .tug-pad) #mirror-btn { display: none !important; }
/* le nœud arrive pile sur la ligne de l équipe gagnante (corde = 140 % de la zone) */
.tug__rope { translate: calc(-50% + var(--pos) * .357%) -50%; }

/* ===== Mémo Party en ligne ===== */
.mm { display: grid; gap: 14px; }
@media (min-width: 900px) { .mm { grid-template-columns: 1fr 260px; align-items: start; } }
.mm__grid { gap: 8px; }
.mm .memo-card, .mm-pad .memo-card { cursor: default; }
.mm .memo-card.is-match .memo-card__front, .mm-pad .memo-card.is-match .memo-card__front { box-shadow: 0 0 0 3px var(--o), 0 0 18px var(--o); background: #fff; }
.mm .memo-card__front, .mm-pad .memo-card__front { font-size: clamp(1.4rem, 4vw, 2.6rem); }
.mm__side { display: flex; flex-direction: column; gap: 10px; }
.mm__turn { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 1.2rem; }
.mm-av { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 700 1rem var(--font-title);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 3px var(--c), 0 0 18px var(--c); animation: turnGlow 1.4s ease-in-out infinite; }
.mm__msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.mm__scores { display: flex; flex-direction: column; gap: 6px; }
/* téléphone */
.mm-pad { display: flex; flex-direction: column; gap: 10px; }
.mm-pad__status { padding: 10px; border-radius: 14px; text-align: center; background: var(--surface); font-family: var(--font-title); font-size: 1.1rem; }
.mm-pad__status.is-mine { background: var(--grad); animation: pop .3s ease; }
.mm-pad__grid { gap: 6px; }
.mm-pad .memo-card:not(:disabled):not(.is-up) { cursor: pointer; }
.mm-pad .memo-card:not(:disabled):not(.is-up) .memo-card__back { box-shadow: 0 0 0 2px #ffe37a, 0 4px 10px rgba(0,0,0,.3); }
.mm-pad .memo-card:not(:disabled):active .memo-card__inner { transform: scale(.94); }
body:has(#screen .mm-pad) .mirror, body:has(#screen .mm-pad) #mirror-btn { display: none !important; }
.mm__grid { margin: 0 auto; width: 100%; }
.mm .memo-card { aspect-ratio: 1; }
@media (max-width: 899px) { .mm__side { order: -1; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; } .mm__side .progress { grid-column: 1 / -1; } .mm__msg { grid-column: 1 / -1; font-size: .9rem; } .mm__scores { display: none; } }

/* ===== La Bombe en ligne ===== */
.bomb2 { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bomb2__cat { margin: 0; font-size: 1.1rem; }
.bomb2__cat b { display: block; font-family: var(--font-title); font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--yellow); }
.bomb2__bomb { --speed: .7s; position: relative; font-size: clamp(6rem, 22vw, 10rem); line-height: 1; animation: bombShake var(--speed) ease-in-out infinite; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); }
.bomb2__bomb.is-pass { animation: bombPass .45s cubic-bezier(.2, 1.4, .4, 1), bombShake var(--speed) ease-in-out .45s infinite; }
@keyframes bombShake { 25% { transform: rotate(-7deg) scale(1.03); } 75% { transform: rotate(7deg) scale(1.03); } }
@keyframes bombPass { from { transform: translateX(-120px) rotate(-40deg) scale(.6); opacity: .3; } }
.bomb2__spark { position: absolute; right: 14%; top: 4%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffd84d 40%, #ff5e1f 70%, transparent 72%); animation: spark .18s steps(2) infinite; }
@keyframes spark { 50% { transform: scale(1.6) rotate(45deg); opacity: .7; } }
.bomb2__holder { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-family: var(--font-title); }
.bomb2__ring { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 0; font-size: .85rem; }
.bomb2__ring span { padding: .2em .7em; border-radius: 999px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); }
.bomb2__ring i { font-style: normal; color: var(--muted); }
.bomb2__boom { font-size: clamp(7rem, 26vw, 12rem); animation: boom .6s cubic-bezier(.2, 1.6, .4, 1); }
/* téléphone */
.bm-pad { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; text-align: center; }
.bm-pad.is-mine { animation: koFlash 1s ease; border-radius: 24px; }
.bm-pad__cat { margin: 0; padding: .4em 1em; border-radius: 999px; background: var(--surface); font-family: var(--font-title); font-size: 1.2rem; color: var(--yellow); }
.bm-pad__bomb { font-size: 7rem; line-height: 1; animation: bombShake .35s ease-in-out infinite; }
.bm-pad__bomb.is-far { font-size: 4.5rem; opacity: .6; animation-duration: 1.2s; }
.bm-pad__tap { width: min(70vw, 260px); aspect-ratio: 1; border: 0; border-radius: 50%; font-size: 8rem; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(255, 94, 31, .35), transparent 65%); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bm-pad__tap:active { transform: scale(.92); }
.bm-pad__tap.is-thrown { animation: bombThrow .35s ease-in forwards; }
@keyframes bombThrow { to { transform: translate(140%, -60%) rotate(160deg) scale(.4); opacity: 0; } }
body:has(#screen .bm-pad) .mirror, body:has(#screen .bm-pad) #mirror-btn { display: none !important; }

/* ===== Téléphone : écran de résultat complet, sans défiler ===== */
body.pad-showing-result .mirror, body.pad-showing-result #mirror-btn { display: none !important; }
.pad-result { gap: 8px; }
.pad-answer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 16px; background: var(--surface); text-align: left; animation: cardIn .4s ease; }
.pad-answer img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.pad-answer b { font-family: var(--font-title); font-size: 1.15rem; line-height: 1.2; }
.pad-result .big-text { font-size: 1.25rem; }
.pad-result .pad-gain { font-size: 2.4rem; }
.pad-board { list-style: none; margin: 0; padding: 8px; width: 100%; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.pad-board li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; font-size: .92rem; animation: slideUp .35s ease both; }
.pad-board li:nth-child(2) { animation-delay: .05s; } .pad-board li:nth-child(3) { animation-delay: .1s; } .pad-board li:nth-child(4) { animation-delay: .15s; } .pad-board li:nth-child(5) { animation-delay: .2s; }
.pad-board li > span { width: 1.6em; text-align: center; }
.pad-board i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pad-board em { flex: 1; font-style: normal; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad-board b { font-family: var(--font-title); }
.pad-board li.is-me { background: color-mix(in srgb, var(--c) 25%, transparent); box-shadow: inset 0 0 0 2px var(--c); }

/* ===== Accueil : occasions + catalogue unique ===== */
.home-occ .section__lead { margin-bottom: 18px; }
.occ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.occ {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 18px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, var(--surface)), var(--surface) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.occ::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.occ:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--c), 0 14px 30px rgba(0,0,0,.35); }
.occ.is-on { box-shadow: inset 0 0 0 3px var(--c), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent); }
.occ.is-on::before { content: "✓"; position: absolute; top: 12px; right: 14px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1a1033; font-weight: 800; }
.occ__icon { font-size: 2.4rem; line-height: 1; }
.occ b { font-family: var(--font-title); font-size: 1.25rem; }
.occ small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
@media (max-width: 900px) { .occ-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .occ { padding: 14px 12px; } .occ__icon { font-size: 2rem; } .occ b { font-size: 1.05rem; } .occ small { font-size: .78rem; } }

.occ-pick { margin-bottom: 30px; padding: 20px; border-radius: 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--surface)), var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); animation: cardIn .4s ease; display: flex; flex-direction: column; gap: 12px; }
.occ-pick__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.occ-pick__head .section__title { margin: 0; }
.occ-pick__note { margin: 0; color: var(--muted); }
.occ-pick > .btn { align-self: flex-start; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
#jeux .home-players { margin-bottom: 14px; }
.gc {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 12px; align-items: start; padding: 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--text);
  background: var(--surface); box-shadow: inset 4px 0 0 var(--c); transition: transform .18s, box-shadow .18s; animation: optIn .35s ease both;
}
.gc:hover { transform: translateY(-3px); box-shadow: inset 4px 0 0 var(--c), 0 12px 26px rgba(0,0,0,.35); }
.gc__icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.9rem; background: color-mix(in srgb, var(--c) 22%, var(--bg-alt)); }
.gc__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gc__name { font-family: var(--font-title); font-size: 1.08rem; }
.gc__desc { color: var(--muted); font-size: .84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gc__type, .gc__tag { padding: .15em .6em; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); }
.gc__type.is-phone { background: rgba(124, 92, 255, .22); color: #c9bbff; }
.gc__type.is-screen { background: rgba(47, 212, 224, .18); color: #9ff0f6; }
.gc__type.is-board { background: rgba(255, 204, 61, .18); color: #ffe39a; }
.gc__type.is-tool { background: rgba(61, 220, 132, .18); color: #a6f2c6; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .gc { padding: 12px; } .gc__icon { width: 44px; height: 44px; font-size: 1.6rem; } }

/* ===== Accueil : rangées de jeux façon Netflix ===== */
.home-rows .section__lead { margin-bottom: 8px; }
#rows { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }
.prow__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prow__head h3 { margin: 0; font-family: var(--font-title); font-size: 1.35rem; }
.prow__nav { display: flex; gap: 6px; }
.prow__btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.prow__btn:hover { background: var(--surface-2); }
@media (pointer: coarse) { .prow__nav { display: none; } }
.prow__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.prow__track::-webkit-scrollbar { display: none; }
/* vignette « affiche » */
.pt { flex: 0 0 186px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 0 0 12px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; color: var(--text);
  background: var(--surface); overflow: hidden; transition: transform .2s, box-shadow .2s; animation: optIn .4s ease both; animation-delay: var(--d); }
.pt:hover, .pt:focus-visible { transform: translateY(-5px) scale(1.03); box-shadow: 0 16px 32px rgba(0,0,0,.45), 0 0 0 2px var(--c); }
.pt__art { position: relative; height: 128px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 55%), linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #fff 15%), color-mix(in srgb, var(--c) 60%, #120c2a)); }
.pt__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.18)); }
.pt__icon { font-size: 4rem; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); transition: transform .3s; }
.pt:hover .pt__icon { transform: scale(1.12) rotate(-6deg); }
.pt__badge { position: absolute; top: 8px; right: 8px; z-index: 1; padding: .15em .45em; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .8rem; }
.pt__name { padding: 0 12px; font-family: var(--font-title); font-size: 1.05rem; line-height: 1.2; }
.pt__desc { padding: 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* outils : petites vignettes */
.prow--small .pt { flex-basis: 150px; }
.prow--small .pt__art { height: 80px; }
.prow--small .pt__icon { font-size: 2.6rem; }
.prow--small .pt__desc { display: none; }
/* versions sur un seul écran (repliées) */
.prow--twins { padding: 12px 14px; border-radius: 18px; background: var(--surface); }
.prow--twins summary { cursor: pointer; color: var(--muted); }
.prow--twins summary b { color: var(--text); }
.prow--twins .prow__track { margin-top: 12px; }
#jeux .home-players { margin-bottom: 16px; }
@media (max-width: 520px) { .pt { flex-basis: 150px; } .pt__art { height: 104px; } .pt__icon { font-size: 3.2rem; } .prow__head h3 { font-size: 1.15rem; } }

/* Accueil : choix « Par thème / Tous les jeux » */
.home-view { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 18px; border-radius: 999px; background: var(--surface); }
.home-view__btn { padding: .55em 1.1em; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .95rem var(--font-text); cursor: pointer; }
.home-view__btn small { margin-left: 4px; padding: .05em .5em; border-radius: 99px; background: var(--surface-2); font-size: .75rem; }
.home-view__btn.is-active { background: var(--grad); color: #fff; }
.home-view__btn.is-active small { background: rgba(255,255,255,.25); }
.all-games { display: flex; flex-direction: column; gap: 14px; }
.all-games__search { width: 100%; max-width: 460px; }
.all-games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.all-games__grid .pt { flex: none; width: 100%; }
.all-games__empty { margin: 0; }
@media (max-width: 520px) { .all-games__grid { grid-template-columns: 1fr 1fr; gap: 10px; } .all-games__grid .pt__art { height: 90px; } .all-games__grid .pt__icon { font-size: 2.8rem; } }
.prow__count { margin-left: 6px; padding: .1em .55em; border-radius: 99px; background: var(--surface-2); color: var(--muted); font: 700 .75rem var(--font-text); vertical-align: middle; }
/* option « 📺 Sans téléphone » sur la vignette */
.pt__alt { align-self: flex-start; margin: 2px 12px 0; padding: .3em .75em; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 .74rem var(--font-text); cursor: pointer; }
.pt__alt:hover { background: color-mix(in srgb, var(--c) 35%, var(--surface-2)); }
.pt { outline: none; }
.pt:focus-visible { box-shadow: 0 0 0 3px var(--c); }

/* ===== Évolution des scores : barres qui s'allongent ===== */
.on-lb__row { position: relative; overflow: hidden; isolation: isolate; }
.on-lb__bar { position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--to); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 20%, transparent));
  animation: scoreGrow 1.2s cubic-bezier(.2, .9, .3, 1) .45s both; }
@keyframes scoreGrow { from { width: var(--from); } to { width: var(--to); } }
.on-lb__row .gain { font-size: 1.15rem; text-shadow: 0 0 10px rgba(61, 220, 132, .6); }
.on-lb__row strong { font-size: 1.3rem; }
/* téléphone */
.pad-board li { position: relative; overflow: hidden; isolation: isolate; }
.pad-board__bar { position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--to); text-decoration: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 15%, transparent));
  animation: scoreGrow 1.1s cubic-bezier(.2, .9, .3, 1) .45s both; }
.pad-board__gain { color: var(--green); font-weight: 800; font-size: .85rem; animation: gainFly 1s cubic-bezier(.2, 1.2, .4, 1) .3s both; }

/* ===== Progression entre les questions ===== */
.lb-progress { padding: 8px 10px; border-radius: 12px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 6px; }
.lb-progress p { margin: 0; font-size: .95rem; }
.lb-progress b { font-family: var(--font-title); font-size: 1.05rem; }
.lb-progress__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.lb-progress__dots i { flex: 1 0 8px; max-width: 26px; height: 8px; border-radius: 99px; background: var(--surface-2); }
.lb-progress__dots i.is-done { background: color-mix(in srgb, var(--violet) 70%, transparent); }
.lb-progress__dots i.is-now { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: pop .5s ease; }
.pad-progress { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.pad-progress b { color: var(--text); font-family: var(--font-title); }
.pad-progress__bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pad-progress__bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; animation: growX .8s ease both; transform-origin: left; }

/* Salon : jeux rangés par thème */
.on-games__head { grid-column: 1 / -1; margin: 10px 0 0; font-family: var(--font-title); font-size: 1.05rem; }
.on-games__head:first-child { margin-top: 0; }
.on-game__tv { margin-left: 6px; padding: .1em .5em; border-radius: 99px; background: rgba(47, 212, 224, .18); color: #9ff0f6; font: 700 .68rem var(--font-text); font-style: normal; white-space: nowrap; vertical-align: middle; }
.on-game--screen { opacity: .9; }
.on-games__title b { margin-left: 6px; padding: .1em .6em; border-radius: 99px; background: var(--grad); color: #fff; font-size: .8rem; }

/* ===== L'écran principal est toujours visible sur le téléphone ===== */
/* (annule les règles qui le cachaient pendant les scores et dans les jeux avec leur propre écran) */
html body #mirror .mirror__view { max-height: 30vh; cursor: zoom-in; transition: height .25s ease; }
html body.mirror-big #mirror .mirror__view { max-height: 82vh; cursor: zoom-out; }
.mirror { position: relative; }
.mirror::after { content: "🔍 Touche pour agrandir"; position: absolute; right: 16px; bottom: 6px; padding: .15em .6em; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; pointer-events: none; opacity: .85; }
body.mirror-big .mirror::after { content: "🔍 Touche pour réduire"; }
body.mirror-big .mirror { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-bottom: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }

/* =====================================================================
   Jeux devenus jouables au téléphone (écran générique + télécommande)
   ===================================================================== */
/* --- téléphone : écran générique --- */
.ui-pad { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 12px; animation: cardIn .3s ease; }
.ui-pad__icon { font-size: 3rem; line-height: 1; }
.ui-pad.is-mine .ui-pad__icon { animation: okJump .7s cubic-bezier(.2, 1.6, .4, 1); }
.ui-pad__title { margin: 0; font-family: var(--font-title); font-size: 1.3rem; }
.ui-pad__big { margin: 0; padding: 10px 16px; border-radius: 16px; background: var(--surface); font-family: var(--font-title); font-size: clamp(1.4rem, 7vw, 2.2rem); letter-spacing: .06em; word-break: break-word; }
.ui-pad__text { margin: 0; color: var(--muted); line-height: 1.4; max-width: 34ch; }
.ui-pad__timer { font-family: var(--font-title); font-size: 1.5rem; padding: .1em .8em; border-radius: 99px; background: var(--surface); }
.ui-pad__timer.is-hurry { background: var(--red); color: #fff; animation: cdHurry 1s ease infinite; }
.ui-pad__foot { margin: 0; font-size: .85rem; }
.ui-grid { display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 8px; width: 100%; }
.ui-btn { min-height: 54px; padding: 12px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: 700 1.05rem var(--font-title);
  background: var(--c, var(--violet)); box-shadow: 0 5px 0 color-mix(in srgb, var(--c, var(--violet)) 60%, #000); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ui-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c, var(--violet)) 60%, #000); }
.ui-btn:disabled { opacity: .45; }
.ui-btn.is-hit { animation: pop .25s ease; }
.ui-btn--big { min-height: 110px; font-size: 1.4rem; }
.ui-btn--pad { min-height: 30vw; max-height: 170px; border-radius: 22px; }
.ui-btn--pad.is-hit { filter: brightness(1.6); }
.ui-keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.ui-key { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: 700 1.15rem var(--font-title); cursor: pointer; }
.ui-key:disabled { opacity: .25; }
.ui-key.is-hit { background: var(--violet); }
.ui-form { display: flex; gap: 8px; width: 100%; }
.ui-form .field { flex: 1; font-size: 1.4rem; text-align: center; letter-spacing: .3em; font-family: var(--font-title); }
.ui-hist { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-title); }
.ui-hist li { padding: 6px 10px; border-radius: 10px; background: var(--surface); }
.ui-hist li:first-child { box-shadow: inset 0 0 0 2px var(--yellow); }
/* morpion sur téléphone : grille 9 × 9 */
.ui-grid:has(.mo-c) { gap: 0; padding: 4px; border-radius: 12px; background: var(--surface); }
.ui-btn.mo-c { min-height: 0; aspect-ratio: 1; padding: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: 1rem; border: 1px solid rgba(255,255,255,.08); opacity: 1; }
.ui-btn.mo-c.mo-ok { background: rgba(255, 204, 61, .25); }
.ui-btn.mo-r, .mo span.mo-r { border-right: 3px solid var(--text); }
.ui-btn.mo-b, .mo span.mo-b { border-bottom: 3px solid var(--text); }
.ui-btn.mo-w0, .mo span.mo-w0 { background: rgba(255, 71, 87, .22); }
.ui-btn.mo-w1, .mo span.mo-w1 { background: rgba(30, 144, 255, .22); }
/* télécommande */
.remote { width: 100%; margin-top: 14px; padding: 12px; border-radius: 18px; background: var(--surface); }
.remote__title { margin: 0 0 8px; font-family: var(--font-title); font-size: 1rem; text-align: center; }
.remote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.remote__btn { min-height: 52px; padding: 8px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; font: 700 .95rem var(--font-text); cursor: pointer; }
.remote__btn.is-hit { animation: pop .3s ease; }

/* --- écran principal --- */
.pd, .cf, .ec, .mm2, .no, .df2, .mo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pd__main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.pd-hang { width: 150px; color: var(--text); }
.pd__word { margin: 0; font-family: var(--font-title); font-size: clamp(1.8rem, 6vw, 3rem); letter-spacing: .12em; }
.pd__miss { margin: 0; color: var(--red); font-family: var(--font-title); }
.pd__turn { margin: 0; font-size: 1.2rem; }
.cf__safe { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-radius: 22px; background: linear-gradient(160deg, #4a4f66, #23263a); box-shadow: inset 0 0 0 4px #8a90b0, 0 14px 30px rgba(0,0,0,.4); }
.cf__safe span { font-size: 3rem; }
.cf__safe b { font-family: var(--font-title); font-size: 2.4rem; letter-spacing: .2em; }
.cf__players { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cf__p { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); }
.cf__p.is-ok { background: rgba(61, 220, 132, .18); }
.cf__p span { color: var(--muted); font-size: .85rem; }
.ec__pads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(340px, 80vw); }
.ec__pad { aspect-ratio: 1; border-radius: 24px; background: var(--c); opacity: .35; transition: opacity .12s, transform .12s, box-shadow .12s; }
.ec__pad.is-on { opacity: 1; transform: scale(1.06); box-shadow: 0 0 40px var(--c); }
.ec__msg { margin: 0; font-family: var(--font-title); font-size: 1.25rem; }
.ec__alive { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ec__alive span { padding: .2em .7em; border-radius: 99px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); }
.ec__alive span.is-out { opacity: .35; text-decoration: line-through; }
.mm2__who, .no__who { margin: 0; font-family: var(--font-title); font-size: clamp(1.3rem, 4vw, 2rem); }
.mm2__time, .no__time, .df2__time { margin: 0; font-family: var(--font-title); font-size: clamp(4rem, 14vw, 7rem); line-height: 1; color: var(--c, var(--yellow)); }
.mm2__time.is-hurry, .df2__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.mm2__found { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--green); }
.no__msg { margin: 0; font-size: 1.15rem; max-width: 46ch; }
.df2__text { margin: 0; max-width: 40ch; font-family: var(--font-title); font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.3; }
.mo__who { margin: 0; font-family: var(--font-title); font-size: 1.2rem; }
.mo__who span { padding: .2em .7em; border-radius: 99px; background: var(--surface); }
.mo__who span.is-turn { box-shadow: 0 0 0 3px var(--c), 0 0 18px var(--c); }
.mo__who i { font-style: normal; color: var(--muted); }
.mo__board { display: grid; grid-template-columns: repeat(9, 1fr); width: min(440px, 88vw); aspect-ratio: 1; padding: 6px; border-radius: 16px; background: var(--surface); }
.mo__board span { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); font-size: clamp(.9rem, 3vw, 1.5rem); }
.mo__msg { margin: 0; font-size: 1.1rem; }
body:has(#screen .ui-pad .ui-keys, #screen .ui-grid .mo-c, #screen .ui-btn--pad) .mirror__view { max-height: 18vh; }

/* chaque téléphone a son propre écran : consigne lisible, boutons de réponse généreux */
.pad-prompt { font-size: 1.2rem; line-height: 1.3; text-align: center; margin: 4px 0 10px; }
.pad-prompt--big { font-size: clamp(2.6rem, 14vw, 4rem); letter-spacing: .05em; }
body:not(.mirror-on) .pad-grid { min-height: 62vh; }
body:not(.mirror-on) .pad-btn__txt { font-size: 1.1rem; }

/* =====================================================================
   Animations communes (js/fx.js) : onde sous le doigt, étincelles
   ===================================================================== */
.fx-wave { position: fixed; z-index: 9999; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--fx, #fff) 55%, transparent) 0 40%, transparent 70%); }
.fx-spark { position: fixed; z-index: 9999; width: 9px; height: 9px; border-radius: 3px; pointer-events: none; box-shadow: 0 0 10px currentColor; }
@media (prefers-reduced-motion: reduce) { .fx-wave, .fx-spark { display: none; } }

/* =====================================================================
   Fin de partie sur le téléphone : tout le podium, sans regarder l'écran
   ===================================================================== */
.pad-end { position: relative; gap: 12px; padding-bottom: 20px; }
.pad-end__game { margin: 0; font-family: var(--font-title); color: var(--muted); font-size: .95rem; }
.pad-end__next { font-size: .9rem; }
.pp-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; width: 100%; margin-top: 6px; }
.pp-step { display: flex; flex-direction: column; align-items: center; min-width: 0; animation: ppRise .7s cubic-bezier(.2, 1.3, .4, 1) var(--d, 0s) backwards; }
.pp-step__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-title); font-size: 1.05rem; }
.pp-step__pts { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.pp-step__block { width: 100%; display: grid; place-items: start center; padding-top: 8px; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); }
.pp-step__block span { font-size: 1.9rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.pp-step--1 .pp-step__block { height: 120px; }
.pp-step--2 .pp-step__block { height: 86px; }
.pp-step--3 .pp-step__block { height: 64px; }
.pp-step--1 .pp-step__name { font-size: 1.25rem; }
.pp-step.is-me .pp-step__name { color: var(--yellow); }
.pp-step.is-me .pp-step__block { box-shadow: inset 0 -6px 0 rgba(0,0,0,.2), 0 0 0 3px var(--yellow), 0 0 22px rgba(255, 204, 61, .5); }
@keyframes ppRise { from { opacity: 0; transform: translateY(60px) scaleY(.6); } }
.pp-me { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); }
.pp-me b { font-family: var(--font-title); font-size: 1.3rem; }
.pp-me span { color: var(--muted); font-size: .9rem; }
.pp-me.is-top { background: linear-gradient(135deg, rgba(255, 204, 61, .22), rgba(255, 94, 138, .18)); box-shadow: inset 0 0 0 2px rgba(255, 204, 61, .5); }
.pp-list, .pp-overall ol { list-style: none; counter-reset: pp 3; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 5px; }
.pp-overall ol { counter-reset: pp 0; }
.pp-list li, .pp-overall li { counter-increment: pp; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: var(--surface); text-align: left; }
.pp-list li::before, .pp-overall li::before { content: counter(pp); width: 1.4em; color: var(--muted); font-family: var(--font-title); }
.pp-list li i, .pp-overall li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pp-list li span, .pp-overall li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-list li b, .pp-overall li b { font-family: var(--font-title); }
.pp-list li.is-me, .pp-overall li.is-me { box-shadow: inset 0 0 0 2px var(--yellow); }
.pp-overall { width: 100%; }
.pp-overall p { margin: 4px 0 6px; font-family: var(--font-title); font-size: .95rem; color: var(--muted); }
.pp-teams { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.pp-team { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 14px; overflow: hidden; background: var(--surface); font-family: var(--font-title); }
.pp-team::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--c) 40%, transparent); animation: growX .9s ease .3s backwards; transform-origin: left; }
.pp-team > * { position: relative; }
.pp-team.is-win { box-shadow: inset 0 0 0 2px var(--c); }

/* =====================================================================
   Décompte avant la question suivante (écran principal + téléphones)
   ===================================================================== */
.next-cd { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; pointer-events: none; }
.next-cd span { display: grid; place-items: center; width: min(42vw, 240px); aspect-ratio: 1; border-radius: 50%;
  font: 700 clamp(5rem, 22vw, 11rem) / 1 var(--font-title); color: #fff; background: var(--grad);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 20px 60px rgba(124, 92, 255, .55); animation: nextCd 1s ease both; }
@keyframes nextCd { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.12); opacity: 1; } 25% { transform: scale(1); } 92% { opacity: 1; transform: scale(1); } 100% { transform: scale(.9); opacity: .2; } }
.pad-next { position: sticky; bottom: 8px; z-index: 30; overflow: hidden; width: 100%; margin: 14px 0 0;
  padding: 10px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px var(--border);
  text-align: center; font-family: var(--font-title); font-size: 1.05rem; animation: slideUp .35s ease; }
.pad-next b { display: inline-block; min-width: 1.4em; color: var(--yellow); font-size: 1.3rem; }
.pad-next i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--grad); transform-origin: left; animation: nextBar linear forwards; }
@keyframes nextBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .next-cd span { animation: none; } }

/* =====================================================================
   La Bombe : thème en grand + bouton « Oups, reprendre la bombe »
   ===================================================================== */
.bm-pad__cat { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 12px 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 204, 61, .16), rgba(255, 94, 138, .14)); box-shadow: inset 0 0 0 2px rgba(255, 204, 61, .45);
  font-family: var(--font-title); font-size: clamp(1.8rem, 9vw, 2.8rem); line-height: 1.1; color: var(--yellow); word-break: break-word; }
.bm-pad__cat small, .bomb2__cat small { font-family: var(--font-text); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bm-pad.is-mine .bm-pad__cat { font-size: clamp(1.6rem, 8vw, 2.4rem); }
.bomb2__cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 28px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 204, 61, .14), rgba(255, 94, 138, .12)); box-shadow: inset 0 0 0 2px rgba(255, 204, 61, .4); }
.bomb2__cat b { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; }
.bm-undo { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 14px 16px;
  border: 0; border-radius: 18px; cursor: pointer; color: #fff; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--yellow);
  font: 700 1.15rem var(--font-title); animation: pop .35s ease; touch-action: manipulation; }
.bm-undo small { font: 500 .85rem var(--font-text); color: var(--muted); }
.bm-undo i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--yellow); transform-origin: left; animation: nextBar var(--t, 5000ms) linear forwards; }
.bm-undo:disabled { opacity: .5; }
/* écrans du téléphone complets : pas de copie de l'écran principal */
body:has(#screen .pad-nomirror) .mirror, body:has(#screen .pad-nomirror) #mirror-btn { display: none !important; }
/* fin de partie : boutons de l'animateur sur sa manette */
.pad-end__host { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; }
.pad-end__host .btn { width: 100%; justify-content: center; }

/* =====================================================================
   Le Grand Plateau : règles claires, légende, consignes à chaque tour
   ===================================================================== */
.pl-how { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-steps li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.pl-steps li b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); font-family: var(--font-title); }
.pl-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.pl-legend li { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 18%, var(--bg-alt)); box-shadow: inset 3px 0 0 var(--c); }
.pl-legend li span { grid-row: span 2; font-size: 1.5rem; text-align: center; }
.pl-legend li b { font-family: var(--font-title); }
.pl-legend li small { color: var(--muted); font-size: .82rem; line-height: 1.25; }
.pl-legend--small { grid-template-columns: 1fr; margin-top: 8px; }
.pl-help { padding: 8px 12px; border-radius: 14px; background: var(--surface); }
.pl-help summary { cursor: pointer; font-weight: 600; }
.pl-turn { flex-wrap: wrap; text-align: left; }
.pl-turn > span:last-child { display: flex; flex-direction: column; }
.pl-turn small { font-family: var(--font-text); font-size: .85rem; color: var(--muted); font-weight: 500; }
.pl-log { margin: 0; padding: 10px 12px; min-height: 3.2em; border-radius: 14px; background: var(--surface); text-align: center; line-height: 1.35; }
.pl-log.is-new { animation: pop .35s ease; }
.cell__tag { position: absolute; left: 0; right: 0; bottom: 2px; font: 700 .55rem var(--font-title); text-transform: uppercase; letter-spacing: .04em; text-align: center; color: #fff; }
.cell.is-land { outline: 3px solid #fff; outline-offset: 1px; z-index: 2; animation: plLand 1s ease 2; }
@keyframes plLand { 50% { transform: scale(1.18); box-shadow: 0 0 24px var(--c); } }
.bg-pop__rule { margin: 4px auto 10px; padding: 8px 14px; max-width: 40ch; border-radius: 12px; background: color-mix(in srgb, var(--c) 22%, transparent); font-weight: 600; }
.pl-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-legend--board { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pl-legend--board li { padding: 5px 8px; }
.pl-legend--board li small { font-size: .76rem; }

/* copie de l'écran principal sur les téléphones : envoyée seulement pour les jeux de plateau et de casino (online.js, MIRROR_GAMES) */

/* =====================================================================
   Petit Bac sur le téléphone : toutes les réponses entre les manches
   ===================================================================== */
.bac-pad { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; margin-top: 6px; }
.bac-pad__title { margin: 0; text-align: center; font-family: var(--font-title); font-size: 1.05rem; }
.bac-pad__title b { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 10px; background: var(--grad); font-size: 1.2rem; }
.bac-pad__me { margin: 0; text-align: center; color: var(--muted); }
.bac-pad__me b { color: var(--yellow); font-family: var(--font-title); font-size: 1.2rem; }
.bac-pad__cat { padding: 8px 10px; border-radius: 14px; background: var(--surface); }
.bac-pad__cat > p { margin: 0 0 6px; font-family: var(--font-title); color: var(--yellow); }
.bac-pad__cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bac-pad__cat li { display: grid; grid-template-columns: 10px minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: var(--bg-alt); font-size: .95rem; }
.bac-pad__cat li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bac-pad__cat li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bac-pad__cat li em { font-style: normal; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bac-pad__cat li b { font-family: var(--font-title); font-size: .9rem; }
.bac-pad__cat li.is-ok b { color: var(--green); }
.bac-pad__cat li.is-ko em { text-decoration: line-through; color: var(--red); }
.bac-pad__cat li.is-empty em { color: var(--muted); font-weight: 400; }
.bac-pad__cat li.is-me { box-shadow: inset 0 0 0 2px var(--yellow); }
.bac-pad__rule { margin: 0; text-align: center; font-size: .85rem; }
/* Petit Bac : raison d'un refus / mot douteux */
.bac-cell small { display: block; font-size: .68rem; font-weight: 500; opacity: .85; margin-top: 2px; }
.bac-cell.is-doubt { box-shadow: inset 0 0 0 2px #ff8a3d; }
.bac-pad__cat li em small { display: block; font-size: .72rem; font-weight: 500; color: #ff8a3d; text-decoration: none; }
.bac-pad__cat li.is-ko em { text-decoration: none; }
.bac-pad__cat li.is-ko em { color: var(--red); }

/* =====================================================================
   Jeu des différences : images plus grandes
   ===================================================================== */
/* écran principal : la fenêtre s'élargit pour ce jeu */
.modal__box:has(.df) { max-width: min(1600px, 98vw); }
.df__imgs { gap: 16px; }
.df__frame { border-radius: 18px; box-shadow: 0 0 0 4px #fff, 0 16px 40px rgba(0,0,0,.45); }
@media (max-width: 760px) { .df__imgs { grid-template-columns: 1fr; } }
/* téléphone : images bord à bord, côte à côte si le téléphone est tourné */
.pad-main:has(.df-pad) { padding-left: 8px; padding-right: 8px; }
.df-pad__imgs { gap: 8px; }
.df-pad .df__frame { border-radius: 14px; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(0,0,0,.4); }
@media (orientation: landscape) and (max-height: 600px) { .df-pad__imgs { display: grid; grid-template-columns: 1fr 1fr; } }
.df-pad .df__frame { align-self: stretch; width: 100%; }
.pad-order__item { transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease; }

/* Écho : la séquence clignote, bien visible */
.ui-btn--pad:disabled { opacity: .5; }
.ui-btn.is-flash { opacity: 1 !important; filter: brightness(1.45) saturate(1.2); transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 0 34px var(--c); transition: transform .08s, box-shadow .08s; }
.ui-pad__step { margin: 0; font-family: var(--font-title); font-size: 1.3rem; color: var(--yellow); min-height: 1.4em; }
.ec__pad { transition: opacity .08s, transform .12s, box-shadow .12s; }
.ec__pad.is-on { box-shadow: 0 0 0 6px #fff, 0 0 60px var(--c); }
.ec__msg b { color: var(--yellow); font-size: 1.3em; }

/* =====================================================================
   Coffre-fort : pavé numérique + essais en couleurs (règles du Mastermind)
   ===================================================================== */
.cf__legend { margin: 0; color: var(--muted); font-size: .95rem; }
.kp-tries { width: 100%; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.kp-try { display: flex; align-items: center; justify-content: center; gap: 6px; animation: cardIn .3s ease; }
.kp-try small { width: 1.6em; color: var(--muted); font-family: var(--font-title); text-align: right; }
.kp-d { display: inline-grid; place-items: center; width: 42px; height: 46px; border-radius: 10px; font: 700 1.5rem var(--font-title); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.kp-d.is-g { background: #2fb65f; }
.kp-d.is-o { background: #ff9a2e; }
.kp-d.is-r { background: #e8414f; }
.kp-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.kp-legend .kp-d { width: 22px; height: 24px; font-size: .85rem; border-radius: 6px; }
.kp { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.kp__slots { display: flex; justify-content: center; gap: 8px; }
.kp__slot { width: 48px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); font: 700 1.8rem var(--font-title); }
.kp__slot.is-next { box-shadow: inset 0 0 0 3px var(--yellow); animation: pulse 1.2s ease infinite; }
.kp__slot.is-full { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--violet); }
.kp__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp__key { min-height: 58px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); font: 700 1.6rem var(--font-title); cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.3); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kp__key:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.kp__key:disabled { opacity: .3; }
.kp__key--ok { background: #2fb65f; color: #fff; }
.kp__key--del { background: #e8414f; color: #fff; }
.cf__same { margin: 0; padding: .4em 1em; border-radius: 999px; background: rgba(255,204,61,.15); color: var(--yellow); font-family: var(--font-title); }

/* =====================================================================
   Image du jeu sur le téléphone (Ciné Pixel, Scène Mystère, Logo Mystère)
   ===================================================================== */
.pad-pic { display: flex; justify-content: center; margin: 0 auto 8px; width: 100%; max-height: 38vh; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #fff, 0 10px 26px rgba(0,0,0,.45); }
.pad-pic canvas { display: block; height: 38vh; max-width: 100%; width: auto; object-fit: contain; }
.pad-pic canvas.is-pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.pad-pic--clip { aspect-ratio: 16 / 9; height: auto; }
.pad-pic--clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter 1.2s ease; }
.pad-pic--logo { aspect-ratio: 1; max-width: 38vh; background: #fff; padding: 12%; }
.pad-pic--logo img { object-fit: contain; }
body:has(#pad-pic) .pad-grid { min-height: 0; }
body:has(#pad-pic) .pad-prompt { margin: 2px 0 8px; }
/* Pendu : le dessin sur le téléphone */
.ui-pad__art { width: min(46vw, 190px); color: var(--text); line-height: 0; }
.ui-pad__art svg { width: 100%; height: auto; }
.ui-pad.is-mine .ui-pad__art { color: var(--yellow); }

/* =====================================================================
   Jeu des différences : les images tiennent toujours dans l'écran
   ===================================================================== */
/* largeur max d'une image = ce qui laisse la place au titre, au chrono et aux trouvailles (rapport 4:3) */
.df__imgs { grid-template-columns: repeat(2, minmax(0, calc((100vh - var(--rb, 0px) - 260px) * 4 / 3))); justify-content: center; }
.modal__box:has(.df) { max-width: min(1500px, 96vw); }
.df__frame { position: relative; border-radius: 20px; padding: 6px; background: linear-gradient(145deg, #fff, #e9e3ff); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 18px 40px rgba(0,0,0,.45); }
.df__frame .df-img { border-radius: 14px; }
.df__frame::after { content: attr(data-l); position: absolute; top: 12px; left: 12px; padding: .1em .6em; border-radius: 999px; background: rgba(26,16,51,.75); color: #fff; font: 700 .8rem var(--font-title); pointer-events: none; }
@media (max-width: 760px) { .df__imgs { grid-template-columns: minmax(0, calc((50vh - 120px) * 4 / 3)); } }
/* téléphone : les deux images tiennent sans défiler */
.df-pad .df__frame { padding: 4px; border-radius: 16px; }
.df-pad .df__frame .df-img { border-radius: 12px; }
.df-pad__imgs { align-items: center; }
.df-pad .df__frame { max-width: calc((50vh - 95px) * 4 / 3); margin: 0 auto; }
/* l'image (grain, ombres, emojis) est sur son propre calque, dessinée une seule fois ;
   les cercles et les touches sont dans un calque transparent par-dessus (avant : toute l'image se redessinait → retard à l'appui) */
.df-pic { position: relative; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.df-pic .df-img { will-change: transform; }
.df-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* =====================================================================
   Animations pendant le jeu (js/fx2.js) : réactions, annonces, suspense
   ===================================================================== */
.fx2-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
/* réaction qui s'envole */
.fx2-float { position: absolute; left: var(--x); bottom: -60px; display: flex; flex-direction: column; align-items: center; animation: fx2Up var(--d, 2.8s) cubic-bezier(.2, .6, .4, 1) forwards; }
.fx2-float__e { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); animation: fx2Sway 1.1s ease-in-out infinite alternate; }
.fx2-float__n { margin-top: 2px; padding: .1em .6em; border-radius: 999px; background: var(--c); color: #fff; font: 700 .8rem var(--font-title); white-space: nowrap; }
.fx2-float.is-small .fx2-float__e { font-size: 2.2rem; }
.fx2-float.is-small .fx2-float__n { font-size: .7rem; }
@keyframes fx2Up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-12vh) scale(1.1); } 80% { opacity: 1; } 100% { transform: translateY(-88vh) scale(.9); opacity: 0; } }
@keyframes fx2Sway { from { transform: translateX(calc(var(--sway) * -.5)) rotate(-8deg); } to { transform: translateX(calc(var(--sway) * .5)) rotate(8deg); } }
/* « Léo a répondu » */
.fx2-toast { position: absolute; left: 16px; bottom: calc(18px + var(--i) * 46px); padding: .45em 1em; border-radius: 999px; background: rgba(20, 14, 44, .92); color: #fff; font: 600 .95rem var(--font-text);
  box-shadow: inset 4px 0 0 var(--c), 0 8px 20px rgba(0,0,0,.4); animation: fx2Toast 2.2s ease forwards; }
.fx2-toast b { color: var(--c); }
@keyframes fx2Toast { 0% { transform: translateX(-120%); opacity: 0; } 12% { transform: translateX(0); opacity: 1; } 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-20px); } }
/* grand bandeau */
.fx2-banner { position: absolute; inset: 0; display: grid; place-items: center; }
.fx2-banner span { padding: .6em 1.4em; border-radius: 22px; background: rgba(20, 14, 44, .9); color: #fff; font: 700 clamp(1.3rem, 4vw, 2.4rem) var(--font-title); text-align: center; max-width: 90vw;
  box-shadow: 0 0 0 4px var(--c), 0 0 60px color-mix(in srgb, var(--c) 60%, transparent), 0 20px 50px rgba(0,0,0,.5); animation: fx2Banner 2.3s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.fx2-banner b { color: var(--c); }
@keyframes fx2Banner { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 14% { transform: scale(1.08) rotate(1deg); opacity: 1; } 22% { transform: scale(1) rotate(0); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9) translateY(-30px); } }
/* suspense : le bord de l'écran pulse en rouge */
body.fx-hurry::after { content: ""; position: fixed; inset: 0; z-index: 8999; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(255, 77, 94, 0); animation: fx2Hurry 1s ease-in-out infinite; }
@keyframes fx2Hurry { 50% { box-shadow: inset 0 0 70px 10px rgba(255, 77, 94, .55); } }
/* barre de réactions sur le téléphone */
.react { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 500; display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
.react__toggle { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--grad); font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0,0,0,.45); cursor: pointer; }
.react__list { display: none; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20, 14, 44, .95); box-shadow: 0 8px 24px rgba(0,0,0,.5); flex-wrap: wrap; max-width: calc(100vw - 80px); }
.react.is-open .react__list { display: flex; animation: pop .25s ease; }
.react__e { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.react__e:active { background: rgba(255,255,255,.12); }
body.pad-asking .react { display: none; }
/* fond qui vit doucement pendant les parties (écran principal) */
.modal__box:has(.on-qhead, .end-screen, .pd, .cf, .ec, .df, .bomb2, .pm) { overflow: hidden; }
.modal__box:has(.on-qhead, .end-screen, .pd, .cf, .ec, .df, .bomb2, .pm)::before { content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(255, 94, 138, .16), transparent 35%), radial-gradient(circle at 80% 20%, rgba(124, 92, 255, .18), transparent 38%), radial-gradient(circle at 60% 85%, rgba(47, 212, 224, .13), transparent 35%);
  animation: fx2Aurora 18s ease-in-out infinite alternate; }
.modal__box > * { position: relative; z-index: 1; }
@keyframes fx2Aurora { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(4%, 3%) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .fx2-float, .fx2-toast, .fx2-banner span, body.fx-hurry::after, .modal__box::before { animation-duration: .01s !important; } }
/* téléphone : fond qui vit doucement pendant la partie */
body.pad-body.is-live::before { content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 25%, rgba(255, 94, 138, .14), transparent 35%), radial-gradient(circle at 85% 30%, rgba(124, 92, 255, .16), transparent 38%), radial-gradient(circle at 50% 90%, rgba(47, 212, 224, .12), transparent 35%);
  animation: fx2Aurora 16s ease-in-out infinite alternate; }
/* téléphone : annonces plus compactes, au-dessus du bouton de réactions */
body.pad-body .fx2-toast { left: 10px; bottom: calc(74px + var(--i) * 40px); font-size: .85rem; max-width: calc(100vw - 20px); }
body.pad-body .fx2-banner span { font-size: clamp(1.1rem, 6vw, 1.6rem); }

/* =====================================================================
   Dés en 3D (outil Dés + Grand Plateau)
   ===================================================================== */
.die3d { --s: 92px; --h: calc(var(--s) / 2); --die: #ffffff; position: relative; width: var(--s); height: var(--s); perspective: calc(var(--s) * 5); margin: 6px; }
.die3d__cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(28deg); transition: transform 1.05s cubic-bezier(.18, .9, .25, 1.05); }
.die3d__face { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%; border-radius: 18%;
  background: radial-gradient(circle at 30% 25%, #fff, color-mix(in srgb, var(--die) 18%, #e9e5f4) 75%);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06), inset -4px -6px 12px rgba(0,0,0,.14), inset 3px 4px 8px rgba(255,255,255,.9); backface-visibility: hidden; }
.die3d__face i { width: 72%; height: 72%; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3f6b, #120c28 70%); box-shadow: inset 0 2px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.7); }
.die3d__face--f1 i { width: 92%; height: 92%; background: radial-gradient(circle at 35% 30%, #ff7a8a, #c0293a 70%); }
.die3d__face--f1 { transform: translateZ(var(--h)); }
.die3d__face--f6 { transform: rotateY(180deg) translateZ(var(--h)); }
.die3d__face--f2 { transform: rotateY(90deg) translateZ(var(--h)); }
.die3d__face--f5 { transform: rotateY(-90deg) translateZ(var(--h)); }
.die3d__face--f3 { transform: rotateX(90deg) translateZ(var(--h)); }
.die3d__face--f4 { transform: rotateX(-90deg) translateZ(var(--h)); }
/* bord coloré du dé (couleur par dé dans l'outil) */
.die3d__face { outline: 3px solid color-mix(in srgb, var(--die) 70%, transparent); outline-offset: -3px; }
.die3d__shadow { position: absolute; left: 8%; right: 8%; bottom: -14%; height: 16%; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.45), transparent 70%); filter: blur(2px); transition: transform .5s; }
.die3d.is-rolling { animation: dieHop 1.05s cubic-bezier(.3, .7, .4, 1); }
.die3d.is-rolling .die3d__shadow { animation: dieShadow 1.05s cubic-bezier(.3, .7, .4, 1); }
.die3d.is-landed { animation: dieLand .35s ease; }
@keyframes dieHop { 0% { transform: translateY(0); } 25% { transform: translateY(-38%); } 50% { transform: translateY(0); } 68% { transform: translateY(-12%); } 85%, 100% { transform: translateY(0); } }
@keyframes dieShadow { 25% { transform: scale(.55); opacity: .5; } 50% { transform: scale(1); } 68% { transform: scale(.8); } }
@keyframes dieLand { 40% { transform: scale(1.06, .94); } }
.dice { gap: 26px; padding: 18px 0 10px; min-height: 150px; align-items: center; }
.pl-side .die3d { --s: 72px; }
@media (prefers-reduced-motion: reduce) { .die3d__cube { transition-duration: .2s; } .die3d.is-rolling, .die3d.is-landed { animation: none; } }
/* faces de côté un peu plus sombres : la face du dessus (le résultat) ressort */
.die3d.is-landed .die3d__face { filter: brightness(.78); transition: filter .3s; }
.die3d.is-landed[data-v="1"] .die3d__face--f1, .die3d.is-landed[data-v="2"] .die3d__face--f2, .die3d.is-landed[data-v="3"] .die3d__face--f3, .die3d.is-landed[data-v="4"] .die3d__face--f4, .die3d.is-landed[data-v="5"] .die3d__face--f5, .die3d.is-landed[data-v="6"] .die3d__face--f6 { filter: none; }
.resume-banner { margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,204,61,.14); box-shadow: inset 0 0 0 2px rgba(255,204,61,.5); text-align: center; font-family: var(--font-title); animation: pulse 1.4s ease infinite; }

/* =====================================================================
   ⚓ Bataille navale géante
   ===================================================================== */
.bn { display: flex; flex-direction: column; gap: 10px; }
.bn__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bn__left { font-family: var(--font-title); font-size: 1.1rem; color: var(--cyan); }
.bn__wrap { display: grid; grid-template-columns: minmax(0, calc(100vh - var(--rb, 0px) - 300px)) auto; gap: 16px; justify-content: center; align-items: start; }
.bn__grid { display: grid; grid-template-columns: 22px repeat(var(--n), 1fr); gap: 2px; padding: 8px; border-radius: 18px; aspect-ratio: 1;
  background: linear-gradient(160deg, #0d4f8a, #0a2f5c); box-shadow: inset 0 0 40px rgba(0,0,0,.4), 0 14px 30px rgba(0,0,0,.4); }
.bn__grid > b, .bn__grid > span { display: grid; place-items: center; font: 700 .72rem var(--font-title); color: rgba(255,255,255,.65); }
.bn__c { display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.07); font-style: normal; font-size: clamp(.6rem, 1.6vw, 1.1rem); aspect-ratio: 1;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%); }
.bn__c.is-miss { background: rgba(255,255,255,.18); }
.bn__c.is-miss::after { content: ""; width: 26%; height: 26%; border-radius: 50%; background: #cfe9ff; }
.bn__c.is-hit { background: #ff6b3d; box-shadow: 0 0 12px rgba(255,107,61,.7); }
.bn__c.is-sunk { background: #7a1e2c; box-shadow: inset 0 0 0 2px #ff4d5e; }
.bn__c.is-new { animation: bnDrop .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bnDrop { 0% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1); } }
.bn__fleet { list-style: none; margin: 0; padding: 12px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.bn__fleet li { display: flex; flex-direction: column; font-size: .9rem; }
.bn__fleet li span { color: var(--cyan); letter-spacing: 2px; font-size: .8rem; }
.bn__fleet li.is-sunk { opacity: .45; text-decoration: line-through; }
.bn__fleet li.is-sunk span { color: var(--red); }
.bn__msg { margin: 0; text-align: center; font-family: var(--font-title); font-size: 1.2rem; }
@media (max-width: 760px) { .bn__wrap { grid-template-columns: 1fr; } .bn__fleet { flex-direction: row; flex-wrap: wrap; } }
/* téléphone : grille 12 × 12 */
.ui-grid:has(.bn-c) { gap: 2px; padding: 4px; border-radius: 12px; background: #0b3d6e; }
.ui-btn.bn-c { min-height: 0; aspect-ratio: 1; padding: 0; border-radius: 3px; box-shadow: none; background: rgba(255,255,255,.12); font-size: .7rem; opacity: 1; }
.ui-btn.bn-c:disabled { opacity: 1; }
.ui-btn.bn-c.is-miss { background: rgba(255,255,255,.28); color: #cfe9ff; }
.ui-btn.bn-c.is-hit { background: #ff6b3d; }
.ui-btn.bn-c.is-hit-me, .ui-btn.bn-c:not(:disabled):active { background: var(--yellow); }

/* =====================================================================
   🤥 Le Menteur
   ===================================================================== */
.mt { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mt__seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mt__seat { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 -3px 0 var(--c); min-width: 90px; }
.mt__seat span { font-size: .85rem; color: var(--muted); }
.mt__seat.is-turn { box-shadow: 0 0 0 3px var(--c), 0 0 22px var(--c); transform: translateY(-3px); }
.mt__seat.is-out { opacity: .6; }
.mt__table { display: flex; align-items: center; gap: 30px; padding: 22px 34px; border-radius: 999px; background: radial-gradient(ellipse at center, #1e7a4a, #0f4a2c); box-shadow: inset 0 0 0 6px #5a3a22, inset 0 0 40px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.45); }
.mt__pile { position: relative; width: 70px; height: 96px; }
.mt__pile i { position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(45deg, #7c5cff 0 6px, #5a3fd6 6px 12px); box-shadow: 0 0 0 2px #fff, 0 3px 6px rgba(0,0,0,.4); transform: rotate(calc(var(--k) * 7deg - 30deg)) translate(calc(var(--k) * 1px), calc(var(--k) * -1px)); }
.mt__pile span { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; color: #fff; font: 700 .9rem var(--font-title); }
.mt__need { display: flex; flex-direction: column; align-items: center; color: #fff; }
.mt__need small { opacity: .8; }
.mt__need b { font: 700 clamp(2rem, 5vw, 3rem) var(--font-title); color: var(--yellow); text-shadow: 0 3px 10px rgba(0,0,0,.4); }
.mt__msg { margin: 0; font-size: 1.2rem; text-align: center; max-width: 52ch; }
.mt__bar { width: min(420px, 80%); height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.mt__bar.is-on { background: linear-gradient(90deg, var(--red), var(--yellow)); transform-origin: left; animation: nextBar linear forwards; }
.mt__reveal { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mt-card { display: inline-grid; place-items: center; min-width: 54px; height: 76px; padding: 0 6px; border-radius: 10px; background: #fff; color: #1a1033; font: 700 1.3rem var(--font-title); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.mt-card.is-red { color: #d63a48; }
.mt__reveal .mt-card { animation: flipIn .5s ease calc(var(--k) * .15s) backwards; }
.mt__reveal .mt-card.is-ok { box-shadow: 0 0 0 4px var(--green), 0 4px 10px rgba(0,0,0,.35); }
.mt__reveal .mt-card.is-lie { box-shadow: 0 0 0 4px var(--red), 0 4px 10px rgba(0,0,0,.35); }
/* téléphone */
.mt-pad { display: flex; flex-direction: column; gap: 10px; }
.mt-pad__top { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.mt-pad__top b { color: var(--yellow); }
.mt-pad__panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 18px; background: var(--surface); text-align: center; }
.mt-pad__panel.is-turn { box-shadow: inset 0 0 0 2px var(--yellow); }
.mt-pad__panel.is-call { box-shadow: inset 0 0 0 2px var(--red); }
.mt-pad__panel.is-ok { box-shadow: inset 0 0 0 2px var(--green); }
.mt-liar { width: 100%; min-height: 76px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #ff4d5e, #c0293a); color: #fff; font: 700 1.6rem var(--font-title); box-shadow: 0 6px 0 #8a1a26; cursor: pointer; animation: pulse 1s ease infinite; }
.mt-liar:disabled { opacity: .5; animation: none; }
.mt-pad__bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--red); transform-origin: left; animation: nextBar linear forwards; }
.mt-pad__count { margin: 0; color: var(--muted); font-size: .9rem; }
.mt-pad__hand { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mt-card--hand { flex-direction: column; gap: 0; width: 52px; height: 74px; min-width: 0; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.mt-card--hand b { font-size: 1.15rem; line-height: 1; }
.mt-card--hand i { font-style: normal; font-size: 1.2rem; }
.mt-card--hand.is-sel { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--yellow), 0 10px 18px rgba(0,0,0,.45); }

/* =====================================================================
   Animations : bataille navale (missiles, explosions) et cartes
   ===================================================================== */
.fx-missile { position: fixed; z-index: 9500; font-size: 2rem; pointer-events: none; margin: -16px 0 0 -16px; filter: drop-shadow(0 0 10px #ffb347); }
.fx-ring { position: fixed; z-index: 9400; width: 34px; height: 34px; border-radius: 50%; pointer-events: none; }
.fx-ring.is-hit { background: radial-gradient(circle, #fff3b0 0 20%, #ff8a3d 40%, rgba(255, 77, 94, 0) 70%); }
.fx-ring.is-miss { border: 3px solid rgba(190, 230, 255, .9); }
.fx-bit { position: fixed; z-index: 9400; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; }
.fx-bit.is-hit { background: radial-gradient(circle, #fff3b0, #ff6b3d); box-shadow: 0 0 8px #ff8a3d; }
.fx-bit.is-miss { background: #bfe6ff; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.bn__grid { position: relative; overflow: hidden; }
/* radar qui balaie la grille pendant qu'on vise */
.bn__grid.is-aiming::after { content: ""; position: absolute; inset: -50%; pointer-events: none; background: conic-gradient(from 0deg, rgba(61, 220, 132, .28), rgba(61, 220, 132, 0) 22%, transparent 100%); animation: bnRadar 3.2s linear infinite; }
@keyframes bnRadar { to { transform: rotate(360deg); } }
.bn__c.is-sinking { animation: bnSink 1.4s ease 1s 2; }
@keyframes bnSink { 50% { background: #ff4d5e; transform: scale(.8) rotate(8deg); box-shadow: 0 0 18px #ff4d5e; } }
.bn__c.is-hit:not(.is-new) { animation: bnFire 1.6s ease-in-out infinite; }
@keyframes bnFire { 50% { box-shadow: 0 0 18px rgba(255, 140, 60, .95); } }
/* une carte (dos) qui vole */
.fx-cardfly { position: fixed; z-index: 9500; width: 52px; height: 72px; border-radius: 8px; pointer-events: none;
  background: repeating-linear-gradient(45deg, #7c5cff 0 6px, #5a3fd6 6px 12px); box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0,0,0,.45); }
/* cartes en main : distribution, nouvelles cartes, reflet */
.mt-pad__hand.is-deal .mt-card--hand { animation: cardDeal .45s cubic-bezier(.2, 1.2, .4, 1) calc(var(--k) * 45ms) backwards; }
.mt-card--hand.is-new { animation: cardNew .6s cubic-bezier(.2, 1.3, .4, 1) calc(var(--k) * 20ms) backwards; box-shadow: 0 0 0 3px #ff8a3d, 0 4px 10px rgba(0,0,0,.35); }
@keyframes cardDeal { from { transform: translate(0, -60vh) rotate(-30deg) scale(.6); opacity: 0; } }
@keyframes cardNew { from { transform: translateY(-40px) rotate(12deg) scale(1.3); opacity: 0; } }
.mt-card, .ch-card, .memo-card { position: relative; overflow: hidden; }
.mt-card--hand.is-sel::after, .ch-hand__card.is-ok .ch-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 48%, transparent 66%); transform: translateX(-100%); animation: cardShine 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes cardShine { 60%, 100% { transform: translateX(100%); } }
.mt__pile i { transition: transform .3s; }
.mt__pile:hover i { transform: rotate(calc(var(--k) * 9deg - 40deg)) translate(calc(var(--k) * 1.5px), calc(var(--k) * -1.5px)); }
@media (prefers-reduced-motion: reduce) { .bn__grid.is-aiming::after, .mt-card--hand.is-sel::after { animation: none; } }

/* =====================================================================
   Plus réaliste : matières (papier, feutre, bois, eau, métal) et vraies cartes
   ===================================================================== */
:root {
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --noise-soft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --wood: repeating-linear-gradient(92deg, #6b4423 0 7px, #7d5230 7px 12px, #5e3a1d 12px 16px, #74492a 16px 23px);
}
/* --- cartes à jouer --- */
.pc { position: relative; display: inline-block; width: 58px; height: 82px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; color: #1d1a24; font-family: Georgia, "Times New Roman", serif;
  background: var(--noise-soft), linear-gradient(160deg, #ffffff, #f5f1e6); box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(0,0,0,.06); }
.pc.is-red { color: #c8102e; }
.pc__c { position: absolute; top: 4px; left: 5px; font-style: normal; font-weight: 700; font-size: .78rem; line-height: .95; text-align: center; }
.pc__c--b { top: auto; left: auto; bottom: 4px; right: 5px; transform: rotate(180deg); }
.pc__s { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; font-weight: 400; }
.pc__s.is-face { font-size: 1.7rem; background: radial-gradient(ellipse at center, rgba(255, 204, 61, .25), transparent 65%); }
.mt-pad__hand .pc { width: 52px; height: 74px; }
.mt-pad__hand .pc__s { font-size: 1.6rem; }
.mt__reveal .pc { width: 70px; height: 98px; }
.mt__reveal .pc__s { font-size: 2.3rem; }
.mt__reveal .pc__c { font-size: .95rem; }
/* dos des cartes du tas : motif classique */
.mt__pile i, .fx-cardfly { background: var(--noise), repeating-linear-gradient(45deg, #b3242f 0 4px, #8a1a26 4px 8px), #8a1a26; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0,0,0,.2), 0 4px 8px rgba(0,0,0,.45); }
/* --- tapis de jeu : feutre vert et bord en bois --- */
.mt__table { border: 14px solid transparent; background: var(--noise) padding-box, radial-gradient(ellipse at center, #22945a, #0f5232 75%) padding-box, var(--wood) border-box;
  box-shadow: inset 0 0 50px rgba(0,0,0,.5), 0 20px 45px rgba(0,0,0,.5), 0 0 0 2px #3d2410; }
/* --- bataille navale : la mer qui ondule --- */
.bn__grid { background: var(--noise), radial-gradient(ellipse at 30% 20%, rgba(120, 200, 255, .35), transparent 50%), linear-gradient(170deg, #1167a8, #0a3f72 60%, #072c55);
  background-size: 180px, 100% 100%, 100% 100%; animation: bnSea 14s linear infinite; box-shadow: inset 0 0 50px rgba(0,0,0,.45), 0 0 0 4px #c9ccd6, 0 0 0 7px #8a8f9a, 0 14px 30px rgba(0,0,0,.45); }
.bn__grid::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: screen;
  background: repeating-radial-gradient(ellipse at 20% 30%, transparent 0 14px, rgba(255,255,255,.12) 15px 16px, transparent 17px 30px); animation: bnWaves 9s ease-in-out infinite alternate; }
@keyframes bnSea { to { background-position: 180px 90px, 0 0, 0 0; } }
@keyframes bnWaves { to { transform: translate(-18px, 10px) scale(1.05); } }
.bn__c { background-color: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bn__c.is-hit { background: radial-gradient(circle, #ffd27a, #ff6b3d 55%, #b3242f); }
.bn__c.is-sunk { background: radial-gradient(circle, #5a2a2a, #2a1414); box-shadow: inset 0 0 0 2px #ff4d5e, 0 0 10px rgba(0,0,0,.6); }
.ui-grid:has(.bn-c) { background: var(--noise), linear-gradient(170deg, #1167a8, #072c55); }
/* --- Grand Plateau : plateau en carton dans un cadre en bois --- */
.board { border: 12px solid transparent; background: var(--noise) padding-box, linear-gradient(160deg, #2b2050, #1a1238) padding-box, var(--wood) border-box; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 2px #3d2410; }
.cell { background-image: var(--noise), linear-gradient(160deg, rgba(255,255,255,.14), rgba(0,0,0,.12)); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.35); }
.pawn { box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 -3px 4px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.45); }
/* --- coffre-fort : métal brossé et vrai cadran --- */
.cf__safe { background: var(--noise), repeating-linear-gradient(90deg, #9aa0ad 0 2px, #8a909c 2px 4px), linear-gradient(160deg, #b6bcc8, #5d6370);
  box-shadow: inset 0 0 0 5px #6a7080, inset 0 0 0 7px #c9ced8, inset 0 0 26px rgba(0,0,0,.35), 0 16px 34px rgba(0,0,0,.5); color: #1d1a24; }
.cf__safe b { color: #1d1a24; text-shadow: 0 1px 0 rgba(255,255,255,.6); padding: .1em .4em; border-radius: 8px; background: #2a2f3a; color: #7dffb0; font-family: "Courier New", monospace; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.cf__dial { position: relative; width: 70px; height: 70px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #2a2f3a 0 3deg, #c9ced8 3deg 9deg), radial-gradient(circle, #e6e9ef, #8a909c);
  box-shadow: 0 0 0 5px #4a505c, 0 4px 10px rgba(0,0,0,.5), inset 0 0 0 12px #c9ced8; animation: cfSpin 6s ease-in-out infinite alternate; }
.cf__dial i { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8a909c); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
@keyframes cfSpin { 0% { transform: rotate(-40deg); } 40% { transform: rotate(120deg); } 100% { transform: rotate(60deg); } }
/* --- loto : cartons en papier épais --- */
.bg-card { background: var(--noise-soft), linear-gradient(170deg, #fffaf0, #f6e9c8); box-shadow: inset 0 0 0 3px #e8c46a, 0 6px 16px rgba(0,0,0,.35); }
.loto__ball { background: radial-gradient(circle at 32% 26%, #fff 0 9%, rgba(255,255,255,0) 22%), radial-gradient(circle at 35% 30%, #ffe27a, #ffb703 58%, #b36b00); }
/* --- cartes chromo : léger grain de carton (par-dessus leurs couleurs) --- */
.ch-card::after { content: ""; position: absolute; inset: 0; background: var(--noise-soft); opacity: 1; pointer-events: none; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { .bn__grid, .bn__grid::before, .cf__dial { animation: none; } }

/* =====================================================================
   🥤 Le Bonneteau : gobelets, balle et tapis
   ===================================================================== */
.gb-title { margin: 6px 0 0; text-align: center; font-family: var(--font-title); font-size: 1.3rem; }
.gb-title small { display: block; font: 500 .9rem var(--font-text); color: var(--muted); }
.gb-hint { margin: 0; text-align: center; font-family: var(--font-title); font-size: 1.15rem; min-height: 1.5em; }
.gb { position: relative; width: min(760px, 100%); aspect-ratio: 2.6; margin: 10px auto; }
.gb__table { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; border-radius: 50% / 40%;
  background: var(--noise), radial-gradient(ellipse at center, #22945a, #0f5232 75%); box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.45), 0 0 0 10px #6b4423, 0 0 0 12px #3d2410; }
.gb__slot { position: absolute; bottom: 14%; width: calc(70% / var(--n)); max-width: 150px; aspect-ratio: .8; transform-origin: 50% 100%; translate: -50% 0; }
.gb__ball { position: absolute; left: 50%; bottom: 2%; width: 42%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 10%, #ffe27a 22%, #ffb703 60%, #b36b00); box-shadow: 0 6px 8px rgba(0,0,0,.45); }
.gb__cup { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); z-index: 1; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
.gb__cup::before { content: ""; position: absolute; inset: 0; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); border-radius: 6px;
  background: linear-gradient(90deg, #8a1a26 0%, #e8414f 30%, #ff8a8f 42%, #d63a48 60%, #8a1a26 100%); }
.gb__cup::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -3%; height: 12%; border-radius: 50%; background: linear-gradient(#b3242f, #6a1420); }
.gb__cup i { position: absolute; left: 18%; right: 18%; top: 18%; height: 7%; border-radius: 4px; background: rgba(255,255,255,.75); z-index: 2; }
.gb__slot.is-up .gb__cup { transform: translateY(-58%) rotate(-6deg); }
.gb__num { position: absolute; left: 50%; bottom: -26%; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #1d1a24; color: #fff; font: 700 1rem var(--font-title); box-shadow: 0 0 0 2px rgba(255,255,255,.4); opacity: 0; transition: opacity .3s; z-index: 4; }
.gb.is-ready .gb__num { opacity: 1; }
.gb__slot.is-win .gb__ball { animation: gbWin .8s ease 2; box-shadow: 0 0 0 6px rgba(255, 204, 61, .4), 0 0 30px #ffcc3d; }
@keyframes gbWin { 50% { transform: scale(1.25); } }
.gb-pad .gb { width: 100%; }
.gb-pad .gb__num { width: 24px; height: 24px; font-size: .85rem; }
#gb-root { width: 100%; }

/* =====================================================================
   🌟 Personnalités
   ===================================================================== */
.ce { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ce__head { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.ce__time { font: 700 clamp(2.4rem, 7vw, 3.6rem) var(--font-title); line-height: 1; color: var(--yellow); }
.ce__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.ce__who { margin: 0; font-family: var(--font-title); font-size: clamp(1.2rem, 3vw, 1.7rem); }
.ce__card { position: relative; display: grid; place-items: center; gap: 4px; width: min(300px, 70vw); aspect-ratio: 3 / 2; border-radius: 20px;
  background: var(--noise-soft), linear-gradient(150deg, #ffe27a, #ff8a3d); color: #2a1408; box-shadow: 0 0 0 6px rgba(255,255,255,.85), 0 18px 40px rgba(0,0,0,.45); animation: ceFloat 3s ease-in-out infinite; }
.ce__q { font: 700 clamp(3.5rem, 10vw, 5.5rem) var(--font-title); line-height: 1; }
.ce__q--name { font-size: clamp(1.4rem, 4vw, 2rem); padding: 0 12px; }
.ce__card small { font-weight: 700; opacity: .75; }
@keyframes ceFloat { 50% { transform: translateY(-6px) rotate(-1deg); } }
.ce__rule { margin: 0; color: var(--muted); }
.ce__found { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.ce__f { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; padding: 8px; border-radius: 16px; background: var(--surface); animation: cardIn .4s cubic-bezier(.2, 1.3, .4, 1); }
.ce__ph { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 2rem; background: var(--surface-2); box-shadow: 0 0 0 3px var(--yellow); }
.ce__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ce__f b { font-size: .85rem; line-height: 1.15; }
.ce__f small { font-size: .72rem; color: var(--green); }

/* =====================================================================
   Plus de vie pendant les jeux : ambiance, réponses qui flottent, chrono qui bat
   ===================================================================== */
.fx2-amb { position: absolute; bottom: -40px; opacity: 0; pointer-events: none; animation: fx2Amb var(--d, 11s) linear forwards; filter: saturate(.8); }
@keyframes fx2Amb { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: .22; } 85% { opacity: .18; } 100% { transform: translateY(-110vh) rotate(var(--r, 60deg)); opacity: 0; } }
/* les réponses flottent doucement pendant qu'on réfléchit (écran et téléphone) */
.is-asking .on-opts .on-opt { animation: optIn .5s cubic-bezier(.2, 1.3, .4, 1) backwards, optBob 3.2s ease-in-out .6s infinite; }
.is-asking .on-opts .on-opt:nth-child(2) { animation-delay: .07s, 1s; }
.is-asking .on-opts .on-opt:nth-child(3) { animation-delay: .14s, 1.4s; }
.is-asking .on-opts .on-opt:nth-child(4) { animation-delay: .21s, 1.8s; }
body.pad-asking .pad-grid .pad-btn { animation: optBob 3.4s ease-in-out infinite; }
body.pad-asking .pad-grid .pad-btn:nth-child(2) { animation-delay: .4s; }
body.pad-asking .pad-grid .pad-btn:nth-child(3) { animation-delay: .8s; }
body.pad-asking .pad-grid .pad-btn:nth-child(4) { animation-delay: 1.2s; }
@keyframes optBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(.4deg); } }
/* la question « respire » */
.is-asking .on-question { animation: qIn .55s cubic-bezier(.2, 1.3, .4, 1) both, qBreath 4s ease-in-out .6s infinite; }
@keyframes qBreath { 50% { transform: scale(1.025); text-shadow: 0 0 24px rgba(124, 92, 255, .45); } }
/* le chrono bat comme un cœur, de plus en plus vite à la fin */
#on-time { display: inline-block; animation: tBeat 1s ease-in-out infinite; }
#on-time.is-hurry { animation: tBeat .5s ease-in-out infinite; color: var(--red); }
@keyframes tBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } }
/* la barre du temps a un reflet qui court */
#on-bar { position: relative; overflow: hidden; }
#on-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: barShine 1.8s linear infinite; }
@keyframes barShine { to { transform: translateX(100%); } }
/* résultats : le premier du classement brille */
.on-lb__row:first-child { box-shadow: 0 0 0 2px var(--yellow), 0 0 20px rgba(255, 204, 61, .35); }
@media (prefers-reduced-motion: reduce) { .fx2-amb, .is-asking .on-opts .on-opt, body.pad-asking .pad-grid .pad-btn, .is-asking .on-question, #on-time, #on-bar::after { animation: none !important; } }

/* =====================================================================
   5 nouveaux jeux : Volcan, Couleur Piège, Calcul Éclair, Pensée Unique, Chiffre Unique
   ===================================================================== */
.n5-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--c); font-size: .9rem; animation: cardIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.n5-chip i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font: 700 .8rem var(--font-title); font-style: normal; }
.n5-chip em { font-style: normal; color: var(--yellow); font-weight: 700; }
.ui-btn--big { min-height: 38vh; font-size: clamp(1.8rem, 9vw, 2.6rem); border-radius: 28px; animation: voBtn 1.2s ease-in-out infinite; }
@keyframes voBtn { 50% { transform: scale(1.03); } }

/* Volcan */
.vo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.vo__top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.vo__pot { font: 700 clamp(2rem, 6vw, 3.2rem) var(--font-title); color: var(--yellow); text-shadow: 0 0 24px rgba(255, 210, 61, .5); }
.vo__pot.is-pop b { display: inline-block; animation: voPop .35s ease; }
@keyframes voPop { 40% { transform: scale(1.35); } }
.vo__scene { position: relative; width: min(420px, 80vw); height: 200px; display: grid; place-items: end center; border-radius: 24px 24px 12px 12px;
  background: radial-gradient(120% 90% at 50% 110%, #ff6b3d55, transparent 60%), linear-gradient(#2a1840, #1a1030); overflow: hidden; }
.vo__mount { font-size: 150px; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); transform-origin: 50% 100%; }
.vo__cave { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 34px; }
.vo__smoke { position: absolute; top: 18px; left: 50%; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(#ffffff55, transparent 70%); animation: voSmoke 3s ease-out infinite; opacity: 0; }
.vo__smoke--2 { animation-delay: 1.5s; }
@keyframes voSmoke { 0% { transform: translate(-50%, 40px) scale(.4); opacity: .8; } 100% { transform: translate(-30%, -40px) scale(1.6); opacity: 0; } }
.vo__scene[data-heat="1"] .vo__mount { animation: voShake .5s linear infinite; }
.vo__scene[data-heat="2"] .vo__mount { animation: voShake .25s linear infinite; }
.vo__scene[data-heat="3"] .vo__mount { animation: voShake .12s linear infinite; }
.vo__scene[data-heat="2"], .vo__scene[data-heat="3"] { box-shadow: inset 0 -40px 60px -20px #ff4d1e; }
@keyframes voShake { 25% { transform: translate(-3px, 1px) rotate(-1deg); } 75% { transform: translate(3px, -1px) rotate(1deg); } }
.vo__scene.is-boom { background: radial-gradient(circle at 50% 30%, #ffd23d, #ff4d1e 40%, #5a1408 80%); }
.vo__scene.is-boom .vo__mount { animation: voBoom .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.vo__scene.is-calm .vo__mount { animation: none; }
@keyframes voBoom { 0% { transform: scale(1); } 40% { transform: scale(1.35) translateY(-10px); } 100% { transform: scale(1.1); } }
.vo-flash { animation: voFlash .7s ease; }
@keyframes voFlash { 0%, 100% { box-shadow: none; } 20% { box-shadow: inset 0 0 0 100vmax rgba(255, 77, 30, .35); } }
.vo__rule { margin: 0; font-size: 1.1rem; }
.vo__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(900px, 100%); }
.vo__box { padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px #ff6b3d66; }
.vo__box--out { box-shadow: inset 0 0 0 2px #3ddc8466; }
.vo__label { margin: 0 0 8px; font-weight: 700; }
.vo__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
@media (max-width: 560px) { .vo__groups { grid-template-columns: 1fr; } .vo__mount { font-size: 110px; } .vo__scene { height: 160px; } }

/* Couleur Piège */
.st-mode { margin: 8px 0 0; text-align: center; font: 700 clamp(1.2rem, 3.6vw, 1.8rem) var(--font-title); }
.st-mode.is-word { color: var(--yellow); }
.st-stage { display: grid; place-items: center; gap: 6px; min-height: 180px; }
.st-word { font: 700 clamp(3.5rem, 15vw, 8rem) var(--font-title); letter-spacing: .04em; line-height: 1; text-shadow: 0 6px 0 rgba(0,0,0,.35); animation: stIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stIn { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.st-answer { margin: 0; font: 700 1.3rem var(--font-title); }
.st-swatches { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.st-sw { width: 56px; height: 56px; border-radius: 16px; background: var(--c); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 60%, #000); transition: opacity .3s, transform .3s; }
.st-sw.is-dim { opacity: .2; }
.st-sw.is-good { transform: scale(1.2); box-shadow: 0 0 0 4px #fff, 0 0 30px var(--c); }

/* Calcul Éclair */
.cc-level { margin: 8px 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.cc-q { margin: 6px 0 14px; text-align: center; font: 700 clamp(2.6rem, 10vw, 5rem) var(--font-title); letter-spacing: .02em; animation: stIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.cc-q span { color: var(--yellow); }
.cc-q span.is-on { color: var(--green); display: inline-block; animation: voPop .5s ease; }

/* Pensée Unique */
.mj-rule { margin: 8px 0 0; text-align: center; color: var(--muted); }
.on-opt__n small { display: block; font: 500 .75rem var(--font-text); opacity: .85; }

/* Chiffre Unique */
.un-rule { margin: 8px 0 12px; text-align: center; line-height: 1.4; }
.un-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(900px, 100%); margin: 0 auto 10px; }
.un-cell { position: relative; min-height: 110px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 3px var(--c); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .3s, opacity .3s; }
.un-cell > b { font: 700 2.2rem var(--font-title); color: var(--c); line-height: 1; }
.un-who { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.un-who .n5-chip { font-size: .75rem; }
.un-cell.is-empty { opacity: .35; }
.un-cell.is-dup { background: repeating-linear-gradient(-45deg, #ff4d5e44 0 8px, transparent 8px 16px), var(--surface); box-shadow: inset 0 0 0 3px #ff4d5e; }
.un-cell.is-dup > b { color: #ff4d5e; text-decoration: line-through; }
.un-cell.is-dup::after { content: "💥"; position: absolute; top: -10px; right: -6px; font-size: 1.6rem; }
.un-cell.is-win { transform: scale(1.08); background: color-mix(in srgb, var(--c) 30%, var(--surface)); box-shadow: inset 0 0 0 3px var(--c), 0 0 30px var(--c); }
.un-cell.is-win::after { content: "👑"; position: absolute; top: -14px; right: -6px; font-size: 1.8rem; }
@media (max-width: 560px) { .un-grid { gap: 6px; } .un-cell { min-height: 80px; padding: 4px; } .un-cell > b { font-size: 1.5rem; } .un-who .n5-chip b { display: none; } }
@media (prefers-reduced-motion: reduce) { .ui-btn--big, .vo__mount, .vo__smoke, .st-word, .cc-q { animation: none !important; } }

/* =====================================================================
   ⚓ Bataille navale (une flotte par joueur, temps réel)
   ===================================================================== */
.bn2 { display: flex; flex-direction: column; gap: 12px; }
.bn2__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bn2__phase { font: 700 clamp(1rem, 2.4vw, 1.4rem) var(--font-title); }
.bn2__time { font: 700 clamp(1.6rem, 4vw, 2.4rem) var(--font-title); color: var(--cyan); font-variant-numeric: tabular-nums; }
.bn2__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.bn2__boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: start; }
.bn2__b { padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); transition: opacity .4s, filter .4s; }
.bn2__b.is-wait .bn2__g { opacity: .35; filter: blur(1px); }
.bn2__b.is-dead { opacity: .45; filter: grayscale(.8); }
.bn2__name { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .95rem; }
.bn2__name b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn2__name small { font-weight: 700; color: var(--muted); }
.bn2__name small.is-ok { color: var(--green); }
.bn2__name small.is-out { color: var(--red); }
.bn2__g { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; padding: 5px; border-radius: 12px; aspect-ratio: 1;
  background: radial-gradient(ellipse at 30% 20%, rgba(120, 200, 255, .3), transparent 50%), linear-gradient(170deg, #1167a8, #0a3f72 60%, #072c55); }
.bn2__g .bn__c { font-size: clamp(.55rem, 1.2vw, .9rem); border-radius: 3px; }
.bn__c.is-ship { background: #8aa4c0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.bn2__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; min-height: 2em; }
.bn2__feed li { padding: 6px 12px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--c); font-size: .95rem; animation: cardIn .35s ease; }
.bn2__feed li:nth-child(n+3) { opacity: .6; }

/* téléphone : placement */
.bnp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.bnp__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); }
.bnp__time, .bnb__time { font: 700 1.3rem var(--font-title); color: var(--cyan); font-variant-numeric: tabular-nums; }
.bnp__time.is-hurry, .bnb__time.is-hurry { color: var(--red); }
.bnp__title { margin: 0; text-align: center; font: 700 1.3rem var(--font-title); }
.bnp__help { margin: 0; text-align: center; font-size: .85rem; }
.bnp__ships { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bnp__ship { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.bnp__ship span { color: var(--cyan); letter-spacing: 1px; font-size: .9rem; }
.bnp__ship small { font-size: .7rem; color: var(--muted); }
.bnp__ship.is-sel { box-shadow: inset 0 0 0 2px var(--yellow); background: color-mix(in srgb, var(--yellow) 15%, var(--surface)); }
.bnp__ship.is-placed { opacity: .45; }
.bnp__ship.is-placed span { color: var(--green); }
.bnp__grid, .bnb__grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 6px; border-radius: 14px; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1;
  background: radial-gradient(ellipse at 30% 20%, rgba(120, 200, 255, .3), transparent 50%), linear-gradient(170deg, #1167a8, #0a3f72 60%, #072c55); touch-action: manipulation; }
.bnp__c, .bnb__c { padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); cursor: pointer; aspect-ratio: 1; color: #fff; font-size: 1rem; -webkit-tap-highlight-color: transparent; }
.bnp__c.is-ship { background: linear-gradient(160deg, #c9d6e6, #7f97b3); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.bnp__c.is-s0 { background: linear-gradient(160deg, #ffd27a, #e0a13d); }
.bnp__c.is-s1, .bnp__c.is-s2 { background: linear-gradient(160deg, #9fe7ff, #3da9d4); }
.bnp__c.is-s3, .bnp__c.is-s4 { background: linear-gradient(160deg, #b6f5c9, #3ddc84); }
.bnp__c.is-bad { background: var(--red); animation: voShake .12s linear 3; }
.bnp__grid.is-locked { pointer-events: none; }
.bnp__row { display: flex; gap: 8px; justify-content: center; }
.bnp__row .btn { flex: 1; }
.bnp__ok:disabled { opacity: .5; }

/* téléphone : bataille */
.bnb { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.bnb__top { display: flex; justify-content: space-between; align-items: center; }
.bnb__score { font: 700 1.2rem var(--font-title); color: var(--yellow); }
.bnb__tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.bnb__tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border: 0; border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.bnb__tab b { font-size: .9rem; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnb__tab small { font-size: .75rem; color: var(--muted); }
.bnb__tab.is-sel { background: color-mix(in srgb, var(--c) 30%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.bnb__tab.is-dead { opacity: .4; }
.bnb__hint { margin: 0; text-align: center; font-size: .95rem; }
.bnb__gridwrap { position: relative; }
.bnb__cd { position: absolute; left: 12%; right: 12%; bottom: -5px; height: 4px; border-radius: 4px; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.bnb__cd.is-nope { box-shadow: 0 0 10px var(--red); background: var(--red); }
@keyframes bnbCd { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bnb__c.is-shot { cursor: default; }
.bnb__c.is-miss { background: rgba(255,255,255,.22); }
.bnb__c.is-miss::after { content: ""; display: block; width: 28%; height: 28%; margin: auto; border-radius: 50%; background: #cfe9ff; }
.bnb__c.is-hit { background: radial-gradient(circle, #ffd27a, #ff6b3d 55%, #b3242f); }
.bnb__c.is-sunk { background: radial-gradient(circle, #5a2a2a, #2a1414); box-shadow: inset 0 0 0 2px #ff4d5e; }
.bnb__c.is-aim { background: var(--yellow); animation: bnbAim .5s ease infinite alternate; }
.bnb__c.is-new { animation: bnDrop .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bnbAim { to { opacity: .4; } }
.bnb__grid.is-off { opacity: .45; pointer-events: none; }
.bnb__fb { margin: 6px 0 0; min-height: 1.6em; text-align: center; font: 700 1.15rem var(--font-title); }
.bnb__fb small { color: var(--yellow); }
.bnb__fb.is-hit, .bnb__fb.is-sunk, .bnb__fb.is-dead { color: #ffb36b; animation: voPop .4s ease; }
.bnb__fb.is-miss { color: #9fd3ff; }
.bnb__fb.is-ouch { color: var(--red); animation: voPop .4s ease; }
.bnb__me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface); }
.bnb__me.is-shake { animation: voShake .1s linear 5; box-shadow: inset 0 0 0 2px var(--red); }
.bnb__metitle { flex: 1; margin: 0; font-size: .9rem; }
.bnb__mini { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px; width: 104px; flex: 0 0 104px; padding: 3px; border-radius: 6px; background: #0a3f72; }
.bnb__m { aspect-ratio: 1; border-radius: 1px; background: rgba(255,255,255,.08); }
.bnb__m.is-ship { background: #9fb3c9; }
.bnb__m.is-miss { background: rgba(255,255,255,.35); }
.bnb__m.is-hit { background: #ff6b3d; }
.bnb__m.is-sunk { background: #ff4d5e; }
.bnb__m.is-new { animation: voPop .5s ease 2; }
@media (prefers-reduced-motion: reduce) { .bnb__c.is-aim, .bnb__me.is-shake, .bnp__c.is-bad { animation: none; } }

/* =====================================================================
   🪢 Tir à la corde : les deux équipes de chaque côté de la corde
   ===================================================================== */
.tg2 { display: flex; flex-direction: column; gap: 10px; }
.tg2__head { display: flex; justify-content: space-between; align-items: center; }
.tg2__score { display: flex; align-items: baseline; gap: 8px; font: 700 clamp(1.3rem, 3vw, 1.8rem) var(--font-title); }
.tg2__score small { font: 500 .85rem var(--font-text); color: var(--muted); }
.tg2__time { font: 700 clamp(1.6rem, 4vw, 2.4rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.tg2__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.tg2__names { display: flex; justify-content: space-between; font: 700 clamp(1rem, 2.4vw, 1.4rem) var(--font-title); }
.tg2__arena { --gw: clamp(42px, 7.5vw, 86px); position: relative; height: clamp(210px, 40vh, 360px); border-radius: 24px; overflow: hidden;
  background: linear-gradient(#2a6b3a00 0 58%, #3f8f4c 58%, #2f7a3d 100%), linear-gradient(#20345a, #2c4a7a 58%); }
.tg2__zone { position: absolute; top: 58%; bottom: 0; width: 30%; background: color-mix(in srgb, var(--c) 35%, transparent); }
.tg2__zone--l { left: 0; box-shadow: inset -4px 0 0 var(--c); }
.tg2__zone--r { right: 0; box-shadow: inset 4px 0 0 var(--c); }
.tg2__mid { position: absolute; left: 50%; top: 52%; bottom: 0; border-left: 4px dashed rgba(255,255,255,.75); translate: -50% 0; }
.tg2__mover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 9% 6%; will-change: transform; }
.tg2__rope { position: absolute; left: 3%; right: 3%; bottom: calc(6% + var(--gw) * .95); height: 8px; border-radius: 6px;
  background: repeating-linear-gradient(60deg, #d79a58 0 6px, #a86f36 6px 12px); box-shadow: 0 3px 6px rgba(0,0,0,.45); z-index: 1; }
.tg2__flag { position: absolute; left: 50%; top: 50%; width: 22px; height: 34px; translate: -50% -10%; background: #ffd84d; clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 0 8px #ffd84d); }
.tg2__side { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-evenly !important; gap: clamp(2px, 1vw, 10px); width: 33%; }
.tg2__side--l { justify-content: flex-end; --dir: -1; }
.tg2__side--r { justify-content: flex-start; --dir: 1; }
.tg2__guy { position: relative; display: flex; flex-direction: column; align-items: center; width: var(--gw); transform-origin: 50% 100%;
  transform: rotate(calc(var(--dir) * 12deg)); transition: transform .3s; }
.tg2__face { width: 72%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 calc(var(--gw) * .32) var(--font-title); font-style: normal; color: #fff;
  background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 3px 6px rgba(0,0,0,.4); }
.tg2__body { width: 64%; height: calc(var(--gw) * .8); margin-top: 3px; border-radius: 10px 10px 6px 6px; background: var(--t); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.tg2__body::after { content: ""; position: absolute; left: 50%; top: var(--gw); width: calc(var(--gw) * .6); height: 6px; border-radius: 4px; background: #f2c49b; box-shadow: 0 0 0 1px rgba(0,0,0,.25); translate: calc(-50% + var(--dir) * -30%) 0; }
.tg2__legs { width: 56%; height: calc(var(--gw) * .45); background: linear-gradient(90deg, #2d2f45 0 42%, transparent 42% 58%, #2d2f45 58%); border-radius: 0 0 4px 4px; }
.tg2__guy b { position: absolute; top: calc(100% + 1px); max-width: 160%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; color: #fff; text-shadow: 0 1px 3px #000; }
.tg2__more { align-self: center; font: 700 1rem var(--font-title); color: #fff; }
/* l'équipe tire : les joueurs se penchent en arrière en rythme */
.tg2__side.is-pull .tg2__guy { animation: tg2Pull var(--spd, .5s) ease-in-out calc(var(--j) * -.07s) infinite alternate; }
@keyframes tg2Pull { from { transform: rotate(calc(var(--dir) * 10deg)); } to { transform: translateX(calc(var(--dir) * 4px)) rotate(calc(var(--dir) * 26deg)); } }
.tg2__side.is-danger .tg2__guy { animation: tg2Slip .18s linear infinite; }
@keyframes tg2Slip { 50% { transform: translateX(calc(var(--dir) * -3px)) rotate(calc(var(--dir) * -4deg)); } }
.tg2__side.is-win .tg2__guy { animation: tg2Jump .5s ease calc(var(--j) * .08s) infinite alternate; }
@keyframes tg2Jump { from { transform: translateY(0); } to { transform: translateY(-22px) rotate(calc(var(--dir) * -6deg)); } }
.tg2__side.is-lose .tg2__guy { transform: rotate(calc(var(--dir) * -80deg)); transition: transform .5s cubic-bezier(.5, 0, .7, 1.4) calc(var(--j) * .06s); }
.tg2__power { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.tg2__bar { height: 12px; border-radius: 99px; background: var(--surface); overflow: hidden; display: flex; }
.tg2__bar--l { justify-content: flex-end; }
.tg2__bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--c); box-shadow: 0 0 12px var(--c); transition: width .25s linear; }
@media (max-width: 600px) { .tg2__guy b { display: none; } .tg2__side { width: 40%; } }
@media (prefers-reduced-motion: reduce) { .tg2__side .tg2__guy { animation: none !important; } }

/* =====================================================================
   🎲 Le Grand Plateau : île, pions qui sautent, pièces et étoiles
   ===================================================================== */
.mp { display: flex; flex-direction: column; gap: 10px; }
.mp__hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.mp-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 12px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, var(--surface)), var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); transition: transform .25s; }
.mp-card.is-turn { transform: translateY(-3px) scale(1.03); box-shadow: inset 0 0 0 3px var(--c), 0 8px 24px color-mix(in srgb, var(--c) 45%, transparent); }
.mp-card.is-turn::after { content: "🎲"; position: absolute; top: -12px; right: -6px; font-size: 1.4rem; animation: mpBob 1s ease-in-out infinite; }
.mp-card.is-bump { animation: mpBump .5s ease; }
@keyframes mpBump { 30% { transform: scale(1.08); } }
.mp-card__rank { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1rem var(--font-title); }
.mp-card__name { font-family: var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-card__stars, .mp-card__coins { font: 700 1.05rem var(--font-title); }
.mp-card__stars { color: #ffd84d; }
.mp-card__coins { display: none; }
.mp-card { grid-template-columns: auto 1fr auto auto; grid-template-rows: auto; }
.mp-card__rank { grid-row: auto; }
.mp-card .mp-card__coins { display: inline; color: #ffe9a6; }

.mp__board { position: relative; width: 100%; aspect-ratio: 1000 / 600; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.45); user-select: none; }
.mp__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mp__waves path { animation: mpWave 3s ease-in-out infinite; }
@keyframes mpWave { 50% { transform: translateY(4px); } }
.mp__deco text { filter: drop-shadow(0 4px 3px rgba(0,0,0,.3)); }
.mp__space { transition: transform .3s; }
.mp__space.is-land circle { stroke: #ffd84d; stroke-width: 7; }
.mp__layer { position: absolute; inset: 0; pointer-events: none; }
.mp__round { position: absolute; left: 50%; top: 58%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; padding: 6px 16px; border-radius: 16px; background: rgba(20, 12, 40, .55); color: #fff; backdrop-filter: blur(3px); }
.mp__round b { font: 700 clamp(1.4rem, 3.4vw, 2.4rem) var(--font-title); line-height: 1; }
.mp__round small { font-size: .7rem; opacity: .85; }

/* pions */
.mp-pawn { position: absolute; width: clamp(34px, 6.2%, 70px); translate: -50% -88%; transition: left .3s cubic-bezier(.3, .7, .4, 1), top .3s cubic-bezier(.3, .7, .4, 1); filter: drop-shadow(0 6px 4px rgba(0,0,0,.4)); }
.mp-pawn__hop { display: flex; flex-direction: column; align-items: center; }
.mp-pawn__head { width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 clamp(.9rem, 2.3vw, 1.7rem) var(--font-title); font-style: normal; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 65%); box-shadow: 0 0 0 3px #fff; position: relative; z-index: 1; }
.mp-pawn__base { width: 100%; height: clamp(14px, 1.9vw, 24px); margin-top: -4px; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 0 3px #fff; }
.mp-pawn.is-turn .mp-pawn__hop { animation: mpBob 1s ease-in-out infinite; }
.mp-pawn.is-turn::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 130%; aspect-ratio: 2.4; translate: -50% 0; border-radius: 50%; border: 3px solid var(--c); animation: mpRing 1.2s ease-out infinite; }
.mp-pawn.is-hopping .mp-pawn__hop { animation: mpHop .3s ease-out; }
.mp-pawn.is-warp { transition: none; animation: mpWarp .7s ease; }
.mp-pawn__steps { position: absolute; left: 50%; bottom: 118%; translate: -50% 0; font: 700 clamp(1rem, 2.4vw, 1.6rem) var(--font-title); color: #fff; text-shadow: 0 2px 0 var(--c), 0 0 8px #000; }
@keyframes mpBob { 50% { transform: translateY(-6px); } }
@keyframes mpHop { 0% { transform: translateY(0) scale(1.1, .9); } 45% { transform: translateY(-60%) scale(.95, 1.05); } 100% { transform: translateY(0) scale(1.08, .92); } }
@keyframes mpRing { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.3); } }
@keyframes mpWarp { 0%, 100% { transform: none; opacity: 1; } 45% { transform: scale(0) rotate(360deg); opacity: 0; } 55% { transform: scale(0); opacity: 0; } }

/* l'étoile */
.mp__star { position: absolute; translate: -50% -110%; font-size: clamp(1.6rem, 4.4vw, 3.2rem); transition: left 1s cubic-bezier(.5, -0.4, .4, 1.4), top 1s cubic-bezier(.5, -0.4, .4, 1.4); filter: drop-shadow(0 0 12px #ffd84d); z-index: 3; }
.mp__star span { display: inline-block; animation: mpStar 1.6s ease-in-out infinite; }
.mp__star.is-fly span { animation: mpSpin .5s linear infinite; }
@keyframes mpStar { 50% { transform: translateY(-8px) rotate(8deg) scale(1.08); } }
@keyframes mpSpin { to { transform: rotate(360deg) scale(1.3); } }

/* le gros dé */
.mp__dice { position: absolute; z-index: 6; width: clamp(56px, 9%, 96px); aspect-ratio: 1; translate: -50% -190%; display: grid; place-items: center; border-radius: 22%;
  background: linear-gradient(145deg, #fff, #dcd6f5); box-shadow: 0 0 0 4px var(--c), 0 10px 0 color-mix(in srgb, var(--c) 60%, #000), 0 20px 30px rgba(0,0,0,.4);
  font: 700 clamp(1.8rem, 4.6vw, 3.4rem) var(--font-title); color: var(--c); }
.mp__dice[hidden] { display: none; }
.mp__dice.is-spin { animation: mpShake .12s linear infinite; }
.mp__dice.is-hit { animation: mpDiceHit .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mpShake { 25% { transform: rotate(-8deg) translateY(-4px); } 75% { transform: rotate(8deg) translateY(2px); } }
@keyframes mpDiceHit { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* annonce qui traverse le plateau */
.mp__banner { position: absolute; left: 0; right: 0; top: 40%; z-index: 7; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.mp__banner span { padding: 14px 34px; border-radius: 18px; background: var(--c, var(--violet)); color: #fff; font: 700 clamp(1.3rem, 3.6vw, 2.4rem) var(--font-title); text-shadow: 0 3px 0 rgba(0,0,0,.3);
  box-shadow: 0 0 0 5px #fff, 0 16px 40px rgba(0,0,0,.5); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.mp__banner.is-on { animation: mpBanner 1.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mpBanner { 0% { opacity: 0; transform: translateX(-60%) skewX(-12deg); } 22% { opacity: 1; transform: translateX(0) skewX(0); } 78% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(60%) skewX(12deg); } }

.mp-float { position: absolute; z-index: 8; translate: -50% -100%; font: 700 clamp(1rem, 2.6vw, 1.7rem) var(--font-title); text-shadow: 0 2px 0 #000, 0 0 10px #000; white-space: nowrap; animation: mpFloat 1.4s ease-out forwards; }
@keyframes mpFloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-20px) scale(1.15); opacity: 1; } 100% { transform: translateY(-80px) scale(1); opacity: 0; } }

.mp__bar { display: flex; align-items: center; gap: 12px; }
.mp__log { flex: 1; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 1.05rem; min-height: 2.6em; line-height: 1.35; }
.mp__log.is-new { animation: cardIn .35s ease; }
.mp__roll { flex: none; font-size: 1.25rem; animation: mpBob 1.4s ease-in-out infinite; }
.mp__roll:disabled { animation: none; opacity: .5; }

/* cartes : étoile, chance, mini-jeu, classement */
.mp-staricon { animation: mpStar 1.2s ease-in-out infinite; filter: drop-shadow(0 0 14px #ffd84d); }
.mp-roulette { width: 96px; height: 96px; margin: 0 auto; display: grid; place-items: center; border-radius: 24px; background: var(--surface-2); font-size: 3.4rem; box-shadow: inset 0 0 0 3px #3ddc84; }
.mp-roulette.is-stop { animation: mpDiceHit .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: inset 0 0 0 3px #3ddc84, 0 0 30px #3ddc84; }
.mp-roulette__txt { min-height: 1.4em; text-align: center; }
.mp-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mp-pick__b { padding: 10px 16px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 700 1rem var(--font-title); background: color-mix(in srgb, var(--c) 35%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.mp-pick__b.is-on { background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 18px var(--c); }
.mp-final { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-final li { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 25%, var(--surface)); animation: cardIn .4s ease var(--d) both; }
.mp-final span { font-size: 1.5rem; }
.mp-final em { font: 700 1.2rem var(--font-title); font-style: normal; color: #ffd84d; }
@media (max-width: 640px) { .mp__bar { flex-direction: column; align-items: stretch; } .mp-card { padding: 6px 8px; } }
@media (prefers-reduced-motion: reduce) { .mp-pawn, .mp__star { transition: none; } .mp-pawn .mp-pawn__hop, .mp__star span, .mp__roll, .mp__waves path, .mp-card.is-turn::after { animation: none !important; } }

/* ===== Popi (écran de l'hôte) : dans la barre de titre, jamais sur les questions ===== */
.modal__box > .popi-box--host { position: absolute; left: 50%; top: 4px; bottom: auto; translate: -50% 0; z-index: 20; align-items: center; gap: 6px; max-width: min(46%, 420px); }
.popi-box--host .popi { width: 50px; height: 50px; flex: none; }
.popi-box--host .popi-bubble { max-width: none; padding: 6px 12px; border-radius: 14px 14px 14px 4px; font-size: .85rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transform-origin: 0 50%; }
.popi-box--host:not(:has(.popi-bubble:not([hidden]))) { opacity: 0; transform: translateY(-16px); }
@media (max-width: 760px) { .popi-box--host { display: none; } }

/* ===== Réflexe Éclair : les temps de tout le monde ===== */
.rx-times { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rx-times li { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; animation: cardIn .4s ease var(--d) both; }
.rx-times__rank { font-size: 1.4rem; text-align: center; font-family: var(--font-title); }
.rx-times__bar { position: relative; height: 38px; border-radius: 12px; background: var(--surface); overflow: hidden; display: flex; align-items: center; }
.rx-times__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); border-radius: 12px; animation: rxBar .8s cubic-bezier(.2, .9, .3, 1) var(--d) both; }
.rx-times__bar b { position: relative; padding: 0 12px; font-family: var(--font-title); text-shadow: 0 1px 3px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-times__ms { min-width: 92px; text-align: right; font: 700 clamp(1.3rem, 3vw, 1.9rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.rx-times__ms small { font-size: .55em; color: var(--muted); }
.rx-times li:first-child:not(.is-out) .rx-times__ms { color: var(--green); }
.rx-times li.is-out .rx-times__bar b { color: var(--muted); }
@keyframes rxBar { from { width: 0; } }
/* téléphone */
.pad-times { list-style: none; margin: 4px 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.pad-times li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); }
.pad-times li.is-me { background: color-mix(in srgb, var(--c) 25%, var(--surface)); box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--c); }
.pad-times li.is-out { opacity: .55; }
.pad-times span { text-align: center; }
.pad-times em { font-style: normal; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad-times b { font-family: var(--font-title); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rx-times li, .rx-times__bar i { animation: none; } }

/* =====================================================================
   🕵️ L'Affaire Belvédère : portraits des suspects et animations
   ===================================================================== */
.enq-pt { display: inline-block; vertical-align: middle; clip-path: circle(50%); }
.enq-pt__eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: enqBlink 5s infinite; }
@keyframes enqBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.enq-tag .enq-pt { width: 1.35em; height: 1.35em; margin: -4px 0; }
/* plateau : les suspects en grand */
.enq2__row:first-child .enq2-mini span { font-size: 2.1rem; line-height: 1; }
.enq2__row:first-child .enq2-mini { flex-basis: 74px; }
.enq2-mini.is-hyp .enq-pt { animation: enqNervous .35s ease-in-out infinite alternate; }
@keyframes enqNervous { from { transform: rotate(-5deg); } to { transform: rotate(5deg) translateY(-1px); } }

/* la rangée de suspects (début de tour) */
.enq2-lineup { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.6vw, 18px); padding: 14px 18px 8px; border-radius: 16px;
  background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(255, 236, 180, .14) 21px 23px), linear-gradient(#3a2814, #24180a); box-shadow: inset 0 0 30px rgba(0,0,0,.6); overflow: hidden; }
.enq2-lineup__p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1; animation: enqIdle 2.6s ease-in-out calc(var(--i) * -.4s) infinite; }
.enq2-lineup__p small { font: 700 .72rem var(--font-title); color: #f5e9c8; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 6px; }
@keyframes enqIdle { 50% { transform: translateY(-4px) rotate(calc((var(--i) - 2.5) * .8deg)); } }
.enq2-lineup__spot { position: absolute; top: -30%; bottom: -10%; width: 32%; left: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 60%, rgba(255, 240, 190, .42), transparent 65%); mix-blend-mode: screen; animation: enqSpot 4.5s ease-in-out infinite alternate; }
.enq2-lineup__mag { position: absolute; top: 18%; left: 0; font-size: 2.6rem; font-style: normal; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); animation: enqMag 4.5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes enqSpot { from { transform: translateX(-10%); } to { transform: translateX(230%); } }
@keyframes enqMag { 0% { transform: translateX(0) rotate(-10deg); } 50% { transform: translateX(min(40vw, 380px)) translateY(-8px) rotate(10deg); } 100% { transform: translateX(min(64vw, 620px)) rotate(-6deg); } }

/* l'hypothèse : lampe d'interrogatoire qui se balance */
.enq2-lamp { position: absolute; top: -44px; left: 50%; width: 0; height: 0; transform-origin: 0 0; animation: enqLamp 3.2s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
.enq2-lamp__cord { position: absolute; left: -1px; top: 0; width: 2px; height: 40px; background: #555; }
.enq2-lamp__shade { position: absolute; left: -26px; top: 38px; width: 52px; height: 24px; border-radius: 26px 26px 4px 4px; background: linear-gradient(#5a5a66, #2e2e36); box-shadow: inset 0 -4px 0 #ffd76a; }
.enq2-lamp__beam { position: absolute; left: -150px; top: 60px; width: 300px; height: 360px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 226, 140, .30), transparent 70%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); }
@keyframes enqLamp { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.enq2-scene { z-index: 1; }
.enq2-scene:has(.enq2-lamp) { padding-top: 26px; }
.enq2-card.is-suspect { position: relative; }
.enq2-card.is-suspect .enq2-card__icon { font-size: 3.6rem; line-height: 1; }
.enq2-card.is-suspect .enq-pt { animation: enqNervous .5s ease-in-out 1.2s infinite alternate; }
.enq2-card__sweat { position: absolute; top: 18px; right: 18px; font-size: 1.1rem; font-style: normal; opacity: 0; animation: enqSweat 1.8s ease-in 1.4s infinite; }
@keyframes enqSweat { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }

/* fausse accusation : tampon */
.enq2-acc { position: relative; display: flex; justify-content: center; gap: 10px; margin: 8px 0; }
.enq2-acc__c { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 10px 4px; border-radius: 12px; font-size: 2.4rem; line-height: 1;
  background: linear-gradient(160deg, #fbf1d6, #e6d3a3); color: #2b1d0e; box-shadow: inset 0 0 0 3px #8a6a2f; animation: flipIn .6s cubic-bezier(.2, 1.2, .4, 1) calc(var(--k) * .2s) both; }
.enq2-acc__c small { font: 700 .72rem var(--font-title); }
.enq-stamp { position: absolute; left: 50%; top: 50%; padding: 4px 14px; border: 5px solid #c8243c; border-radius: 10px; color: #c8243c; font: 700 clamp(1.3rem, 4vw, 2rem) var(--font-title); letter-spacing: .06em;
  background: rgba(255, 245, 235, .5); translate: -50% -50%; rotate: -14deg; white-space: nowrap; pointer-events: none; animation: enqStamp .45s cubic-bezier(.3, 1.6, .5, 1) .9s both; mix-blend-mode: multiply; }
.enq-stamp.is-bad { animation-delay: .7s; }
@keyframes enqStamp { 0% { transform: scale(3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* fin : l'enveloppe s'ouvre, le coupable reçoit son tampon */
.enq-env { position: relative; width: 150px; height: 96px; margin-top: 30px; animation: enqEnvOut .6s ease 1.1s forwards; }
.enq-env i { position: absolute; display: block; font-style: normal; }
.enq-env__back { inset: 0; border-radius: 8px; background: #c79a4a; }
.enq-env__front { inset: 0; border-radius: 8px; background: linear-gradient(135deg, #e8c27a 50%, transparent 50%) left / 50% 100% no-repeat, linear-gradient(225deg, #e8c27a 50%, transparent 50%) right / 50% 100% no-repeat, linear-gradient(0deg, #f0cf8c 45%, transparent 45%); }
.enq-env__flap { left: 0; right: 0; top: 0; height: 60%; background: #d9ad5e; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; animation: enqFlap .6s ease .3s forwards; z-index: 2; }
.enq-env__seal { left: 50%; top: 42%; translate: -50% -50%; width: 34px; height: 34px; display: grid !important; place-items: center; border-radius: 50%; background: #b3242f; font-size: 1rem; z-index: 3; animation: enqSeal .4s ease .1s forwards; }
@keyframes enqFlap { to { transform: rotateX(180deg); } }
@keyframes enqSeal { to { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes enqEnvOut { to { transform: translateY(-20px) scale(.6); opacity: 0; height: 0; margin: 0; } }
.enq-card { position: relative; }
.enq-card.is-guilty .enq-card__icon { font-size: 4.2rem; line-height: 1; }
.enq-card .enq-stamp { animation-delay: 2.1s; font-size: 1.3rem; top: 36%; }

@media (prefers-reduced-motion: reduce) {
  .enq2-lineup__p, .enq2-lineup__spot, .enq2-lineup__mag, .enq2-lamp, .enq-pt__eyes, .enq2-card__sweat, .enq2-mini.is-hyp .enq-pt, .enq2-card.is-suspect .enq-pt { animation: none !important; }
}

/* ===== Le Portrait Mystère : les personnages bougent un peu ===== */
.pm-anim .pm-a-body { transform-origin: 50px 100px; animation: pmBreath var(--pm-b, 4s) ease-in-out var(--pm-d, 0s) infinite; }
.pm-anim .pm-a-head { transform-origin: 50px 74px; animation: pmTilt var(--pm-t, 3.4s) ease-in-out var(--pm-d, 0s) infinite alternate; }
.pm-anim .pm-a-eyes { animation: pmBlink 5.2s ease-in-out calc(var(--pm-d, 0s) * 2.3) infinite; }
.pm-anim .pm-a-item { transform-origin: 86px 98px; animation: pmSway var(--pm-t, 3.4s) ease-in-out calc(var(--pm-d, 0s) + .4s) infinite alternate; }
@keyframes pmBreath { 50% { transform: scale(1.015, 1.03); } }
@keyframes pmTilt { 0% { transform: rotate(-2.2deg) translateY(0); } 50% { transform: rotate(0deg) translateY(-1px); } 100% { transform: rotate(2.2deg) translateY(0); } }
@keyframes pmBlink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes pmSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* survol / personnage choisi : il réagit */
.pm-tile:hover .pm-anim .pm-a-head, .pm-tile.is-pick .pm-anim .pm-a-head { animation: pmHop .5s ease-in-out infinite alternate; }
@keyframes pmHop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3px) rotate(3deg); } }
/* personnages éliminés : immobiles */
.pm-tile.is-off .pm-anim *, .pm-tile.is-down .pm-anim * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .pm-anim * { animation: none !important; } }

/* ===== Portrait Mystère : appui long = visage en grand ===== */
.pm-tile, .pm-pad__mine { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pm-tile .pm-svg, .pm-pad__mine .pm-svg { pointer-events: none; }
.pm-zoom { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(8, 5, 20, .72); backdrop-filter: blur(4px); animation: fadeIn .15s ease; touch-action: none; }
.pm-zoom.is-out { opacity: 0; transition: opacity .2s; }
.pm-zoom__card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(78vw, 62vh, 420px); padding: 14px; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 5px var(--yellow, #ffcc3d), 0 24px 60px rgba(0,0,0,.6); animation: pmZoomIn .28s cubic-bezier(.2, 1.4, .4, 1); }
.pm-zoom__card .pm-svg { width: 100%; height: auto; border-radius: 18px; }
.pm-zoom__card b { font: 700 clamp(1.3rem, 5vw, 1.9rem) var(--font-title); color: #1a1033; text-align: center; }
@keyframes pmZoomIn { from { transform: scale(.4); opacity: 0; } }
.pm-zoomhint { text-align: center; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .pm-zoom, .pm-zoom__card { animation: none; } }

/* ===== Bataille navale : chacun son tour ===== */
.bn2__turn { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 clamp(1.1rem, 2.6vw, 1.5rem) var(--font-title); }
.bn2__turnleft { padding: 2px 10px; border-radius: 99px; background: var(--surface); color: var(--yellow); font-variant-numeric: tabular-nums; }
.bn2__turnleft.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.bn2__b.is-turn { box-shadow: inset 0 0 0 3px var(--c), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
.bn2__b.is-turn .bn2__name b::after { content: " 🚀"; }
.bn2__b { transition: transform .3s, box-shadow .3s, opacity .4s, filter .4s; }
.bnb__turn { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); }
.bnb__turn:empty { display: none; }
.bnb__turn b { font: 700 1.15rem var(--font-title); }
.bnb__turn span { grid-column: 1; font-size: .82rem; color: var(--muted); }
.bnb__turn em { grid-row: 1 / span 2; grid-column: 2; font: 700 1.4rem var(--font-title); font-style: normal; color: var(--yellow); font-variant-numeric: tabular-nums; }
.bnb__turn em.is-hurry { color: var(--red); }
.bnb__turn.is-mine { background: linear-gradient(135deg, color-mix(in srgb, var(--green) 35%, var(--surface)), var(--surface)); box-shadow: inset 0 0 0 2px var(--green); animation: bnbMine 1.2s ease-in-out infinite alternate; }
.bnb__turn.is-mine b { color: var(--green); }
.bnb__turn.is-nope { animation: voShake .1s linear 4; }
@keyframes bnbMine { to { box-shadow: inset 0 0 0 2px var(--green), 0 0 18px color-mix(in srgb, var(--green) 50%, transparent); } }
@media (prefers-reduced-motion: reduce) { .bnb__turn.is-mine { animation: none; } }

/* ===== Chromo ! : cartes qui volent et effets ===== */
.ch-fly { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; will-change: transform; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.ch-fly .ch-card { width: 100%; }
.ch-burst { position: fixed; z-index: 310; translate: -50% -50%; pointer-events: none; font: 900 clamp(2.4rem, 7vw, 4.4rem) "Arial Black", var(--font-title), sans-serif; color: #fff;
  -webkit-text-stroke: 3px #1a1033; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0,0,0,.35); animation: chBurst 1.25s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.ch-burst.is-plus { color: #ff4757; }
.ch-burst.is-skip { color: #ffb800; }
@keyframes chBurst { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 25% { transform: scale(1.25) rotate(6deg); opacity: 1; } 70% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: translateY(-40px) scale(.9); opacity: 0; } }
.ch-seat.is-hit { animation: chHit .45s ease; }
@keyframes chHit { 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(8px) rotate(4deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.ch2__table { position: relative; }
.ch-wave { position: absolute; left: 50%; top: 50%; width: 120px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, transparent 35%, color-mix(in srgb, var(--c) 70%, transparent) 55%, transparent 70%); animation: chWave 1.05s ease-out forwards; }
@keyframes chWave { from { transform: scale(.2); opacity: 1; } to { transform: scale(7); opacity: 0; } }
#ch-ring.is-flip { animation: chFlip .9s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes chFlip { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(-200deg) scale(1.35); } 100% { transform: rotate(-360deg) scale(1); } }
.ch-shout { position: absolute; left: 50%; top: 50%; z-index: 5; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: chShout 1.4s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.ch-shout b { font: 900 clamp(2.6rem, 9vw, 5rem) "Arial Black", var(--font-title), sans-serif; color: #ffb800; -webkit-text-stroke: 3px #1a1033; paint-order: stroke fill; text-shadow: 0 8px 0 rgba(0,0,0,.35); letter-spacing: .02em; }
.ch-shout small { font: 700 1.1rem var(--font-title); color: #fff; text-shadow: 0 2px 4px #000; }
@keyframes chShout { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 20% { transform: scale(1.2) rotate(4deg); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
/* téléphone : la carte posée s'envole */
.ch-pfly { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; will-change: transform; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.ch-pfly .ch-card { width: 100%; }
.ch2-pad, .ch-pad { transition: background-color .5s; }
@media (prefers-reduced-motion: reduce) { .ch-burst, .ch-wave, .ch-shout, #ch-ring.is-flip, .ch-seat.is-hit { animation: none !important; display: none; } }

/* =====================================================================
   🔢 Loto & Bingo : boulier, boules colorées, cartons gagnants
   ===================================================================== */
.lt-machine { display: flex; align-items: center; justify-content: center; gap: 0; }
.lt-globe { position: relative; width: clamp(120px, 18vw, 170px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.06), rgba(255,255,255,.14) 70%, rgba(255,255,255,.3)); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), inset 0 -18px 30px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.4); }
.lt-globe::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 70%; height: 22px; translate: -50% 0; border-radius: 8px; background: linear-gradient(#b8860b, #7a5a10); }
.lt-globe__balls { position: absolute; inset: 0; animation: ltSpin 6s linear infinite; }
.lt-globe__balls i { position: absolute; left: var(--x); top: var(--y); width: 15%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 40%, color-mix(in srgb, var(--c) 60%, #000)); animation: ltBounce var(--d) ease-in-out var(--dl) infinite alternate; }
.lt-globe__shine { position: absolute; left: 18%; top: 10%; width: 34%; height: 20%; border-radius: 50%; background: rgba(255,255,255,.35); filter: blur(2px); transform: rotate(-25deg); }
.lt-globe.is-mix .lt-globe__balls { animation: ltSpin .7s linear 1; }
.lt-globe.is-mix .lt-globe__balls i { animation-duration: .25s; }
.lt-globe.is-mix { animation: ltShake .7s ease; }
@keyframes ltSpin { to { transform: rotate(360deg); } }
@keyframes ltBounce { from { transform: translate(0, 0); } to { transform: translate(8px, -22px); } }
@keyframes ltShake { 25% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-2deg); } }
.lt-tube { width: clamp(30px, 5vw, 60px); height: 26px; margin: 0 -6px; border-radius: 0 13px 13px 0; background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
/* l'afficheur : la boule roule hors du tube, un anneau compte le temps avant la suivante */
.lt-wrap { position: relative; padding: 10px; border-radius: 50%; }
.lt-wrap::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--yellow) var(--p, 0turn), rgba(255,255,255,.08) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.lt-wrap.is-run::before { animation: ltRing var(--speed, 7s) linear forwards; }
.lt-wrap.is-paused::before { animation-play-state: paused; }
@property --p { syntax: "<angle>"; inherits: false; initial-value: 0turn; }
@keyframes ltRing { from { --p: 1turn; } to { --p: 0turn; } }
.lt-ball { --bc: #ffb703; background: radial-gradient(circle at 32% 26%, #fff 0 9%, rgba(255,255,255,0) 22%), radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bc) 55%, #fff), var(--bc) 58%, color-mix(in srgb, var(--bc) 55%, #000)) !important; }
.lt-ball span small { color: color-mix(in srgb, var(--bc) 70%, #000) !important; font-size: 1.2rem; font-weight: 700; }
.lt-ball.is-new { animation: ltRoll .8s cubic-bezier(.25, 1.25, .45, 1) both !important; }
@keyframes ltRoll { 0% { transform: translateX(-140px) scale(.25) rotate(-540deg); opacity: 0; } 60% { transform: translateX(10px) scale(1.08) rotate(20deg); opacity: 1; } 80% { transform: translateX(-4px) scale(.97) rotate(-6deg); } 100% { transform: none; } }
/* dernières boules : petites boules colorées */
.lt-last span { --bc: #7c5cff; color: #1a1033; font-weight: 700; background: radial-gradient(circle at 35% 30%, #fff 0 12%, color-mix(in srgb, var(--bc) 50%, #fff) 30%, var(--bc) 75%); box-shadow: 0 4px 8px rgba(0,0,0,.35); }
.lt-last span.is-new { animation: ltSlide .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes ltSlide { from { transform: translateX(-50px) rotate(-180deg); opacity: 0; } }
/* tableau des numéros : la case s'allume dans la couleur de la boule */
.lt2 .loto__board span.is-on { background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lt2 .loto__board span.is-just { animation: ltJust 1.1s ease; z-index: 1; }
@keyframes ltJust { 0% { transform: scale(2.2); box-shadow: 0 0 0 0 var(--c); } 40% { transform: scale(1.1); box-shadow: 0 0 0 10px transparent; } 100% { transform: scale(1.08); } }
/* cartons des gagnants */
.lt-winhead { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lt-winhead span { font-size: 2.4rem; animation: ltJust 1s ease; }
.lt-wcards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lt-wcards > div { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.lt-wcards small { font-family: var(--font-title); }
.lt-wcard { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; padding: 6px; border-radius: 12px; background: #fff7e0; box-shadow: inset 0 0 0 3px #e8c46a; width: min(100%, 360px); }
.lt-wcard.is-bingo { width: min(100%, 290px); }
.lt-wcard i { font-size: clamp(.8rem, 2vw, 1.05rem) !important; }
.lt-wcard i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: #fff; color: #1a1033; font: 700 .8rem var(--font-title); font-style: normal; }
.lt-wcard i.is-blank { background: repeating-linear-gradient(45deg, #f3e2b3 0 3px, #fff7e0 3px 6px); }
.lt-wcard i.is-on { background: #ffd1d6; }
.lt-wcard i.is-lit { background: #ff4d5e; color: #fff; animation: ltLit .5s ease var(--d) both; box-shadow: 0 0 10px #ff4d5e; }
@keyframes ltLit { from { transform: scale(.4); } 60% { transform: scale(1.25); } }
/* téléphone */
.bg-pad__ball { --bc: #ffb703; background: radial-gradient(circle at 35% 30%, #fff 0 10%, color-mix(in srgb, var(--bc) 55%, #fff) 11%, var(--bc) 70%) !important; color: #1a1033; display: flex !important; flex-direction: column; justify-content: center; line-height: 1; }
.bg-pad__ball small { font-size: .7rem; }
.bg-pad__ball.is-new { animation: ltDrop .6s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes ltDrop { 0% { transform: translateY(-80px) rotate(-200deg); } 100% { transform: none; } }
.bg-card__head span { background: var(--bc, var(--pink)) !important; }
.bg-cell.is-daub::after { background: color-mix(in srgb, var(--bc, #ff4d5e) 70%, transparent) !important; }
.bg-cell.is-stamp::after { animation: ltStamp .35s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes ltStamp { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.bg-claim.is-ready { background: linear-gradient(135deg, #ffcc3d, #ff5e8a); color: #fff; animation: ltReady .8s ease-in-out infinite alternate; }
@keyframes ltReady { from { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 61, .6); } to { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255, 204, 61, 0); } }
.bg-claim.is-blocked { background: #4a3f6b; color: #cfc6ee; }
@media (prefers-reduced-motion: reduce) { .lt-globe__balls, .lt-globe__balls i, .lt-globe.is-mix, .lt-ball.is-new, .lt-last span.is-new, .bg-claim.is-ready, .bg-pad__ball.is-new { animation: none !important; } }

/* =====================================================================
   🌍 Tour du Monde
   ===================================================================== */
.wm-svg { display: block; width: 100%; height: auto; }
.wm-sea { fill: #0f4c7a; }
.wm-grid { fill: none; stroke: rgba(255,255,255,.08); stroke-width: .8; }
.wm-c { fill: #e9dcb0; stroke: #b39b5e; stroke-width: .5; stroke-linejoin: round; transition: fill .4s; }
.wm-c.is-target { fill: #ffcc3d; stroke: #fff; stroke-width: 1.4; animation: wmPulse 1s ease-in-out infinite alternate; }
@keyframes wmPulse { from { fill: #ffcc3d; } to { fill: #ff8a3d; } }
.wm-ask { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.wm-ask__flag { font-size: clamp(2.4rem, 6vw, 3.6rem); animation: wmFlag 2.4s ease-in-out infinite; display: inline-block; }
@keyframes wmFlag { 50% { transform: rotate(-6deg) scale(1.06); } }
.wm-ask__q { color: var(--muted); font-size: 1.1rem; }
.wm-ask__name { font: 700 clamp(1.8rem, 5vw, 3rem) var(--font-title); color: var(--yellow); }
.wm-board { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.wm-pins { position: absolute; inset: 0; pointer-events: none; }
.wm-pin { position: absolute; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.wm-pin i { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 4px 8px rgba(0,0,0,.5); order: 2; }
.wm-pin span { order: 1; margin-bottom: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(10, 6, 30, .8); color: #fff; font-size: .78rem; white-space: nowrap; display: flex; gap: 5px; }
.wm-pin span b { color: var(--c); }
.wm-pins.is-drop .wm-pin { animation: wmDrop .6s cubic-bezier(.3, 1.6, .5, 1) var(--d) both; }
@keyframes wmDrop { 0% { opacity: 0; transform: translateY(-60px); } 100% { opacity: 1; transform: none; } }
.wm-line { stroke-width: calc(var(--w, 1) * 1.6px); stroke-dasharray: calc(var(--w, 1) * 5) calc(var(--w, 1) * 4); opacity: .9; animation: wmLine .8s ease .4s both; }
.wm-lines { stroke-width: 2; }
@keyframes wmLine { from { opacity: 0; } }
/* téléphone */
.wmp { display: flex; flex-direction: column; gap: 8px; }
.wmp__top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--surface); }
.wmp__flag { font-size: 2.2rem; }
.wmp__top div { flex: 1; display: flex; flex-direction: column; }
.wmp__top small { color: var(--muted); font-size: .75rem; }
.wmp__top b { font: 700 1.35rem var(--font-title); color: var(--yellow); }
.wmp__time { font: 700 1.3rem var(--font-title); font-style: normal; color: var(--cyan); }
.wmp__time.is-hurry { color: var(--red); }
.wmp__mapwrap { overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); touch-action: manipulation; }
.wmp__mapwrap.is-zoom { overflow: auto; max-height: 58vh; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.wmp__map { min-width: 100%; }
.wm-pad .wm-c { stroke-width: .6; }
.wm-mypin__body { fill: #ff4d5e; stroke: #fff; stroke-width: 1.6; }
.wm-mypin__halo { fill: rgba(255, 77, 94, .35); animation: wmHalo 1.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes wmHalo { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.wmp__row { display: flex; gap: 8px; }
.wmp__row .btn--big { flex: 1; }
@media (prefers-reduced-motion: reduce) { .wm-c.is-target, .wm-ask__flag, .wm-mypin__halo, .wm-pins.is-drop .wm-pin { animation: none !important; opacity: 1; } }

/* ===== Tour du Monde : drapeaux en image ===== */
.wm-flag { display: inline-block; height: 1em; width: auto; vertical-align: middle; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.wm-ask__flag .wm-flag { height: .9em; }

/* =====================================================================
   🍿 Le Ciné Caché
   ===================================================================== */
.cc { display: flex; flex-direction: column; gap: 10px; }
.cc__head { display: flex; justify-content: space-between; align-items: center; }
.cc__count { font: 700 clamp(1.1rem, 2.6vw, 1.5rem) var(--font-title); }
.cc__count.is-pop { animation: voPop .45s ease; display: inline-block; }
.cc__time { font: 700 clamp(1.6rem, 4vw, 2.4rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.cc__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.cc__scene { border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.cc-svg { display: block; width: 100%; height: auto; }
.cc-svg text { user-select: none; }
.cc-clue > text { filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.cc-ring { fill: none; stroke: var(--c, #ffcc3d); stroke-width: 5; opacity: 0; }
.cc-tag { opacity: 0; }
.cc-tag rect { fill: var(--c, #ffcc3d); stroke: #fff; stroke-width: 2; }
.cc-tag text { fill: #fff; font: 700 13px var(--font-title); paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.cc-clue.is-found .cc-ring { opacity: 1; animation: ccRing .6s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
.cc-clue.is-found .cc-tag { opacity: 1; animation: ccTag .5s ease .15s both; }
.cc-clue.is-found > text { animation: ccJump .6s ease; transform-box: fill-box; transform-origin: center bottom; }
.cc-clue.is-missed .cc-ring { stroke: #fff; stroke-dasharray: 8 6; }
.cc-clue.is-missed .cc-tag rect { fill: #4a3f6b; }
.cc-clue.is-hint .cc-ring { opacity: 1; stroke: #ffcc3d; stroke-dasharray: 10 8; animation: ccHint 1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ccRing { from { transform: scale(2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ccTag { from { opacity: 0; transform: translateY(10px); } }
@keyframes ccJump { 40% { transform: translateY(-10px) scale(1.15); } }
@keyframes ccHint { from { transform: scale(1); opacity: .4; } to { transform: scale(1.15); opacity: 1; } }
.cc__rule { margin: 0; text-align: center; color: var(--muted); }
.cc__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cc__feed li { padding: 6px 12px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--c); animation: cardIn .35s ease; }
.cc__feed li small { color: var(--yellow); font-weight: 700; }
.cc__feed li:nth-child(n+3) { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .cc-clue * { animation: none !important; } }

/* ===== Pendant une partie : QR code + code de la salle toujours visibles ===== */
.on-joinpin { position: fixed; right: 14px; bottom: 14px; z-index: 140; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; cursor: pointer;
  background: rgba(20, 12, 44, .92); box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.5); backdrop-filter: blur(6px); animation: cardIn .4s ease; transition: transform .25s; }
.on-joinpin[hidden] { display: none; }
.on-joinpin__qr { flex: none; width: 104px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; background: #fff; cursor: pointer; transition: width .3s; }
.on-joinpin__qr svg { display: block; width: 100%; height: 100%; }
.on-joinpin__txt { display: flex; flex-direction: column; line-height: 1.1; }
.on-joinpin__txt small { font-size: .72rem; color: var(--muted); }
.on-joinpin__txt b { font: 700 2rem var(--font-title); letter-spacing: .12em; color: var(--yellow); }
.on-joinpin__txt span { font-size: .7rem; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-joinpin.is-big .on-joinpin__qr { width: min(42vh, 300px); }
.on-joinpin.is-big { transform: none; }
/* écran moyen : plus compact (le QR grandit d'un clic) */
@media (max-width: 1400px) { .on-joinpin__qr { width: 68px; } .on-joinpin__txt b { font-size: 1.5rem; } .on-joinpin__txt span { display: none; } }
/* petit écran : juste une pastille avec le code */
@media (max-width: 760px) { .on-joinpin { right: 8px; bottom: 8px; padding: 6px 10px 6px 6px; } .on-joinpin__qr { width: 40px; } .on-joinpin__txt b { font-size: 1.15rem; } .on-joinpin__txt small { display: none; } }
/* l'hôte joue sur cet appareil avec la manette intégrée : la pastille se met plus haut */
body.has-self-pad .on-joinpin { bottom: auto; top: 70px; }

/* ===== Tour du Monde (téléphone) : carte qu'on pince et fait glisser ===== */
.wmp__mapwrap { position: relative; height: min(58vh, 520px); overflow: hidden !important; max-height: none !important; border-radius: 16px; background: #0f4c7a; touch-action: none; }
.wmp__mapwrap .wm-pad { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.wm-pad .wm-c { stroke-width: calc(var(--sw, 1) * 1px); }
.wm-pad .wm-grid { stroke-width: calc(var(--sw, 1) * 1px); }
.wmp__zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.wmp__zoom button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(20, 12, 44, .85); color: #fff; font: 700 1.5rem var(--font-title); box-shadow: 0 4px 10px rgba(0,0,0,.4); cursor: pointer; touch-action: manipulation; }
.wmp__zoom button:active { transform: scale(.92); }
.wmp__level { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(20, 12, 44, .75); color: #fff; font: 700 .8rem var(--font-title); pointer-events: none; }
.wmp__ok { width: 100%; }

/* ===== Salon « Créer une partie » : nouvelle présentation ===== */
.modal__box:has(.on-lobby) { max-width: min(1600px, 96vw); }
.modal__box:has(.on-lobby) .modal__body {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(255, 94, 138, .16), transparent 70%),
    radial-gradient(50% 45% at 100% 10%, rgba(124, 92, 255, .2), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(47, 212, 224, .1), transparent 70%),
    var(--bg-alt);
}
.on-lobby { gap: 22px; grid-template-columns: minmax(0, 1fr); }
.on-lobby > * { min-width: 0; }
.on-players__head { flex-wrap: wrap; }
.on-sec { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 1.2rem var(--font-title); }
.on-sec__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); font-size: 1.05rem; }

/* carte pour rejoindre */
.on-join {
  position: relative; overflow: hidden; gap: 10px; padding: 22px 20px 20px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(124, 92, 255, .22), rgba(31, 23, 64, .9) 45%), var(--surface);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.on-join::before { content: ""; position: absolute; inset: -40% -40% auto; height: 70%; background: conic-gradient(from 0deg, transparent, rgba(255, 94, 138, .25), transparent 40%); animation: onSpin 9s linear infinite; pointer-events: none; }
.on-join > * { position: relative; }
.on-join__live { display: inline-flex; align-items: center; gap: 7px; padding: .3em .85em; border-radius: 99px; background: rgba(61, 220, 132, .14); color: var(--green); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.on-join__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: onLive 1.6s infinite; }
.on-join__title { margin: 0; font: 700 1.5rem var(--font-title); background: linear-gradient(90deg, #fff, #ffd6e2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-qr { width: 200px; padding: 10px; border-radius: 20px; margin-top: 2px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 0 40px rgba(124, 92, 255, .45); animation: onGlow 3s ease-in-out infinite alternate; }
.on-qr-hint { margin: 0; }
.on-join__or { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.on-join__or::before, .on-join__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.on-url { font-size: 1.05rem; padding: .35em .8em; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.on-code span { width: 56px; height: 68px; border-radius: 16px; font-size: 2.5rem; box-shadow: 0 8px 0 rgba(0, 0, 0, .25), 0 12px 26px rgba(124, 92, 255, .4); animation: onTile .5s cubic-bezier(.3, 1.6, .5, 1) backwards, onBob 3s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms), calc(var(--i) * 200ms + .6s); }
.on-join__share { margin-top: 4px; border-radius: 99px; }

/* joueurs */
.on-players { padding: 16px 18px; border-radius: 22px; background: rgba(31, 23, 64, .85); border: 1px solid var(--border); }
.on-players__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.on-players__count { display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.on-players__count b { color: #fff; font: 700 1.15rem var(--font-title); }
.on-players__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.on-player { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px 10px; border-radius: 18px; text-align: center; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 26%, var(--surface-2)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  animation: onJoin .5s cubic-bezier(.3, 1.6, .5, 1); }
.on-player__av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1.5rem var(--font-title); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 6px 18px color-mix(in srgb, var(--c) 55%, transparent); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.on-player__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.on-player small { font-size: .75rem; }
.on-player.is-off { filter: grayscale(1); }
.on-player--empty { background: transparent; border: 2px dashed var(--border); color: var(--muted); font-weight: 500; animation: onWait 2s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.on-player--empty .on-player__av { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.on-player--empty .on-player__name { white-space: normal; font-size: .78rem; line-height: 1.2; }

/* « je joue aussi » */
.on-me { border-radius: 20px; border-width: 1px; grid-template-columns: minmax(0, 1fr); }
.on-me__row .btn { flex: none; }

/* soirée automatique */
.on-auto-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; color: #fff; font: inherit;
  background: linear-gradient(120deg, var(--pink), var(--violet) 60%, #4b6bff); box-shadow: 0 14px 34px rgba(124, 92, 255, .35); transition: transform .2s, box-shadow .2s; }
.on-auto-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 94, 138, .4); }
.on-auto-card__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .18); font-size: 1.7rem; }
.on-auto-card strong { display: block; font: 600 1.1rem var(--font-title); }
.on-auto-card small { opacity: .85; font-size: .85rem; }
.on-auto-card__go { flex: none; margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--violet); font-size: 1rem; }
.on-auto-card.is-wait { animation: onShake .4s; }

/* jeux */
.on-games__title { margin-top: 6px; }
.on-games__title b { font: 700 .78rem var(--font-text); }
.on-games { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.on-games__head { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; color: var(--muted); font-size: .95rem; letter-spacing: .02em; }
.on-games__head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.on-game { position: relative; align-items: flex-start; padding: 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface)); color: var(--text); font: inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
.on-game:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 25%, transparent); }
.on-game.is-active { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 12px 30px color-mix(in srgb, var(--c) 30%, transparent); }
.on-game__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 28%, var(--surface-2)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); transition: transform .25s; }
.on-game:hover .on-game__icon { transform: rotate(-8deg) scale(1.08); }
.on-game strong { font: 600 1.02rem var(--font-title); margin-bottom: 2px; }
.on-game .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; line-height: 1.35; }
.on-game__tv { display: block; width: fit-content; margin: 4px 0 0; }

/* réglages repliés */
.on-settings { border-radius: 20px; }
.on-settings summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.on-settings summary::-webkit-details-marker { display: none; }
.on-settings summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.on-settings[open] summary::after { transform: rotate(180deg); }
.on-settings:not([open]) { gap: 0; }
.on-public { border-radius: 20px; }

@media (min-width: 900px) {
  .on-lobby { grid-template-columns: 320px minmax(0, 1fr); }
  .on-join { position: sticky; top: 0; }
}
@media (max-width: 760px) {
  .on-join { padding: 14px; border-radius: 20px; }
  .on-join__title, .on-join__or { display: none; }
  .on-qr { width: 120px; padding: 6px; border-radius: 14px; }
  .on-code span { width: 44px; height: 54px; font-size: 1.9rem; border-radius: 12px; }
  .on-players__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .on-player { padding: 10px 4px 8px; border-radius: 14px; }
  .on-player__av { width: 42px; height: 42px; font-size: 1.2rem; }
  .on-games { grid-template-columns: 1fr; }
  .on-auto-card { padding: 12px 14px; }
  .on-auto-card__ic { width: 42px; height: 42px; font-size: 1.4rem; }
}
@keyframes onSpin { to { transform: rotate(360deg); } }
@keyframes onLive { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes onGlow { to { box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 0 60px rgba(255, 94, 138, .45); } }
@keyframes onTile { from { transform: translateY(-30px) scale(.6) rotate(-12deg); opacity: 0; } }
@keyframes onBob { 50% { translate: 0 -4px; } }
@keyframes onJoin { from { transform: scale(.4); opacity: 0; } }
@keyframes onWait { 50% { opacity: .55; } }
@keyframes onShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* =====================================================================
   ⚓ Bataille navale réaliste : mer profonde, vrais navires, impacts
   ===================================================================== */
.bn-sea { --pad: 6px; --gap: 3px; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(140, 210, 255, .28), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(0, 20, 50, .55), transparent 60%),
    linear-gradient(175deg, #0e5e98, #0a4677 45%, #06325a 75%, #04223f);
  box-shadow: inset 0 0 40px rgba(0, 10, 30, .6), 0 0 0 3px #b8bec9, 0 0 0 5px #6f7682, 0 10px 26px rgba(0, 0, 0, .45); }
.bn2__g.bn-sea { --pad: 5px; --gap: 2px; }
.bnb__mini.bn-sea { --pad: 3px; --gap: 1px; box-shadow: inset 0 0 14px rgba(0, 10, 30, .6), 0 0 0 2px #6f7682; }
/* houle qui ondule */
.bn-sea::before { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background:
    repeating-linear-gradient(170deg, transparent 0 18px, rgba(255, 255, 255, .07) 19px 20px, transparent 21px 38px),
    repeating-linear-gradient(10deg, transparent 0 26px, rgba(170, 225, 255, .06) 27px 29px, transparent 30px 52px);
  animation: bnSwell 7s ease-in-out infinite alternate; }
/* reflets du soleil */
.bn-sea::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 1px, transparent 2px) 0 0 / 23px 19px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .25) 0 1px, transparent 2px) 0 0 / 31px 27px;
  animation: bnGlint 4s linear infinite; }
@keyframes bnSwell { to { transform: translate(-16px, 10px) rotate(1deg); } }
@keyframes bnGlint { 50% { opacity: .1; } }

/* calque des navires (même grille que les cases) */
.bn-ships { position: absolute; inset: var(--pad); z-index: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr); gap: var(--gap); pointer-events: none; }
.bn-ship { position: relative; display: block; min-width: 0; min-height: 0; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); animation: bnBob 3.4s ease-in-out infinite; }
.bn-ship svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* sillage d'écume à la poupe */
.bn-ship.is-h::before { content: ""; position: absolute; left: -10%; top: 30%; width: 22%; height: 40%; border-radius: 50%; background: radial-gradient(ellipse at right, rgba(255, 255, 255, .55), transparent 70%); }
.bn-ship.is-v::before { content: ""; position: absolute; top: -10%; left: 30%; height: 22%; width: 40%; border-radius: 50%; background: radial-gradient(ellipse at bottom, rgba(255, 255, 255, .55), transparent 70%); }
.bn-ship:nth-child(2n) { animation-delay: -1.2s; }
.bn-ship:nth-child(3n) { animation-delay: -2.1s; }
@keyframes bnBob { 50% { translate: 0 1.5px; } }
/* épave : coque noircie qui s'enfonce */
.bn-ship.is-sunk { animation: bnWreck 1.2s ease forwards; filter: grayscale(.7) brightness(.42) sepia(.6) drop-shadow(0 0 4px rgba(0, 0, 0, .7)); }
.bn-ship.is-sunk::before { display: none; }
@keyframes bnWreck { from { filter: none; opacity: 1; } to { opacity: .82; transform: rotate(-2.5deg) scale(.94); } }
.bnb__mini .bn-ship { filter: none; animation: none; }
.bnb__mini .bn-ship.is-sunk { filter: grayscale(.7) brightness(.4) sepia(.6); }

/* cases au-dessus des navires */
.bn-sea > .bn__c, .bn-sea > .bnp__c, .bn-sea > .bnb__c, .bn-sea > .bnb__m { position: relative; z-index: 2; }
.bn-sea .bn__c, .bn-sea .bnb__c, .bn-sea .bnp__c { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(200, 230, 255, .1); }
.bn-sea .bnb__m { background: transparent; }
.bn-sea .bnp__c.is-ship, .bn-sea .bnb__m.is-ship, .bn-sea .bn__c.is-ship { background: rgba(255, 255, 255, .03); box-shadow: none; }
.bn-sea .bnp__c.is-bad { background: rgba(255, 77, 94, .6); }

/* impacts : on efface les anciens dessins (emojis, couleurs pleines) */
.bn-sea .bn-mark.is-miss, .bn-sea .bn-mark.is-hit, .bn-sea .bn-mark.is-sunk { background: transparent; box-shadow: none; animation: none; overflow: visible; }
/* à l'eau : fiche blanche et ronds dans l'eau */
.bn-sea .bn-mark.is-miss::after { content: ""; position: absolute; inset: 31%; margin: 0; width: auto; height: auto; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9def0 60%, #8fb0cc); box-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.bn-sea .bn-mark.is-miss::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgba(220, 240, 255, .55); animation: bnRipple 2.6s ease-out infinite; }
/* touché : fiche rouge, flammes qui dansent */
.bn-sea .bn-mark.is-hit::after, .bn-sea .bn-mark.is-sunk::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #ffb3a1, #e5322d 55%, #7a0f14); box-shadow: 0 0 6px rgba(255, 80, 40, .9), 0 1px 2px rgba(0, 0, 0, .6); }
.bn-sea .bn-mark.is-hit::before { content: ""; position: absolute; left: 12%; right: 12%; top: -28%; bottom: 30%; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 100%, #fff6c2 0 14%, #ffc04d 30%, #ff6a1f 52%, rgba(200, 30, 0, .0) 72%);
  filter: blur(.6px); transform-origin: 50% 100%; animation: bnFlame .45s ease-in-out infinite alternate; }
/* coulé : fumée noire qui monte */
.bn-sea .bn-mark.is-sunk::after { background: radial-gradient(circle at 35% 30%, #a35a4f, #5a1a16 60%, #2a0b09); box-shadow: 0 0 4px rgba(0, 0, 0, .7); }
.bn-sea .bn-mark.is-sunk::before { content: ""; position: absolute; left: 0; right: 0; top: -60%; height: 110%; border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, rgba(40, 40, 45, .75), rgba(60, 60, 66, .35) 45%, transparent 70%);
  animation: bnSmoke 3s ease-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
.bnb__mini .bn-mark.is-hit::before, .bnb__mini .bn-mark.is-sunk::before, .bnb__mini .bn-mark.is-miss::before { display: none; }
.bn-sea .bn-mark.is-new::after { animation: bnPeg .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bnRipple { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes bnFlame { from { transform: scaleY(.85) scaleX(1.05) skewX(-4deg); opacity: .85; } to { transform: scaleY(1.12) scaleX(.92) skewX(5deg); opacity: 1; } }
@keyframes bnSmoke { from { transform: translateY(10%) scale(.6); opacity: .9; } to { transform: translateY(-55%) scale(1.5); opacity: 0; } }
@keyframes bnPeg { from { transform: translateY(-140%) scale(1.6); opacity: 0; } }

/* l'obus tiré (remplace la fusée) */
.fx-shell { width: 9px; height: 24px; margin: -12px 0 0 -4.5px; font-size: 0; border-radius: 50% 50% 25% 25% / 75% 75% 25% 25%;
  background: linear-gradient(90deg, #4c5562, #e2e7ee 45%, #6f7a88); filter: drop-shadow(0 0 6px rgba(255, 170, 80, .9)); }
.fx-shell i { position: absolute; left: 50%; top: 92%; width: 5px; height: 70px; translate: -50% 0; border-radius: 3px;
  background: linear-gradient(rgba(255, 210, 140, .95), rgba(255, 140, 60, .5) 30%, rgba(200, 200, 210, .25) 60%, transparent); }

/* placement : les navires à choisir */
.bnp__svg { display: block; width: calc(var(--len) * 17px); height: 17px; }
.bnp__svg svg { display: block; width: 100%; height: 100%; }
.bnp__ship small { white-space: nowrap; }
.bnp__grid, .bnb__grid { width: min(100%, 460px); }
.bnb__mini { width: 130px; flex-basis: 130px; }
@media (prefers-reduced-motion: reduce) { .bn-sea::before, .bn-sea::after, .bn-ship, .bn-sea .bn-mark::before { animation: none !important; } }

/* 💣 La Bombe : temps de garde (celui qui la garde trop longtemps la fait exploser) */
.bomb2__hold { width: min(100%, 360px); height: 10px; margin: 0 auto; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.bomb2__hold i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, #ff4d5e, #ffb347 60%, var(--c, #ffcc3d)); box-shadow: 0 0 12px rgba(255, 140, 60, .7); }
@keyframes bmHold { to { width: 0%; } }
.bm-pad__hold { position: relative; width: min(86%, 300px); height: 34px; margin: 0 auto; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); }
.bm-pad__hold i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #ff4d5e, #ffb347); animation: bmHold var(--t) linear forwards; }
.bm-pad__hold b { position: relative; display: grid; place-items: center; height: 100%; font: 700 1.3rem var(--font-title); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.bm-pad__hold b::after { content: " s"; font-size: .8em; }
.bm-pad__hold.is-hurry { animation: voShake .1s linear infinite; box-shadow: 0 0 0 2px var(--red), 0 0 18px rgba(255, 77, 94, .7); }

/* ⚓ Bataille navale (téléphone) : « Ma flotte » en grand quand ce n'est pas ton tour */
button.bnb__me { width: 100%; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.bnb__me:active { transform: scale(.98); }
.bnb__me[hidden] { display: none; }
.bnb__grid.is-mine { box-shadow: inset 0 0 40px rgba(0, 10, 30, .6), 0 0 0 3px var(--cyan), 0 0 0 5px #6f7682, 0 10px 26px rgba(0, 0, 0, .45); }
.bnb__grid.is-mine .bnb__c { cursor: default; }
.bnb__tab--me b { color: var(--cyan); }

/* 🍿 Le Ciné Caché sur le téléphone : la scène qu'on peut zoomer */
.ui-pad.has-cc .ui-pad__icon { display: none; }
.ui-pad.has-cc .ui-pad__title { font-size: 1.05rem; margin: 0; }
.ccp { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #0d0a1f; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .4); }
.ccp__wrap { aspect-ratio: 16 / 9; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ccp__wrap:active { cursor: grabbing; }
.ccp .cc-svg { width: 100%; height: 100%; display: block; }
.ccp .cc-tag text { font-size: 15px; }
.ccp__zoom { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ccp__zoom button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(15, 11, 31, .78); color: #fff; font: 700 1.1rem var(--font-title); cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.ccp__zoom button:active { transform: scale(.92); }
.ccp__level { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(15, 11, 31, .78); color: var(--yellow); font: 700 .8rem var(--font-title); }
.ccp__level:empty { display: none; }
/* champ de saisie : ne déborde jamais de l'écran (le bouton reste visible) */
.ui-form .field { min-width: 0; }
.ui-form .btn { flex: none; }
.ui-pad.has-cc .ui-form .field { font-size: 1.1rem; letter-spacing: .02em; }

/* =====================================================================
   📱 Téléphones plus réalistes : lettre envoyée, coche au feutre, vitre fissurée
   ===================================================================== */
.pad-sent { position: relative; width: 120px; height: 96px; margin: 0 auto; }
.pad-sent__env { position: absolute; left: 50%; top: 50%; font-size: 3.6rem; translate: -50% -50%; animation: padEnv .9s cubic-bezier(.5, 0, .7, .4) forwards; }
.pad-sent__stamp { position: absolute; left: 50%; top: 50%; padding: .15em .55em; border: 4px solid var(--green); border-radius: 10px; color: var(--green);
  font: 800 1.35rem var(--font-title); letter-spacing: .08em; text-transform: uppercase; translate: -50% -50%; rotate: -12deg;
  box-shadow: inset 0 0 0 2px rgba(61, 220, 132, .25); background: rgba(61, 220, 132, .08); animation: padStamp .45s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
@keyframes padEnv { 0% { transform: scale(1); opacity: 1; } 30% { transform: scale(1.15) rotate(-6deg); } 100% { transform: translate(40px, -140px) scale(.3) rotate(25deg); opacity: 0; } }
@keyframes padStamp { from { transform: scale(2.6); opacity: 0; } 70% { transform: scale(.92); opacity: 1; } to { transform: scale(1); opacity: 1; } }

.pad-mark { width: 110px; height: 110px; margin: 0 auto; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pad-mark circle { stroke-width: 7; stroke-dasharray: 330; stroke-dashoffset: 330; animation: padDraw .55s ease-out forwards; }
.pad-mark path { stroke-width: 11; stroke-dasharray: 90; stroke-dashoffset: 90; animation: padDraw .35s ease-out .45s forwards; }
.pad-mark path + path { animation-delay: .7s; }
.pad-mark.is-ok { stroke: var(--green); filter: drop-shadow(0 0 12px rgba(61, 220, 132, .55)); }
.pad-mark.is-ko { stroke: var(--red); filter: drop-shadow(0 0 12px rgba(255, 77, 94, .5)); }
.pad-mark.is-ok { animation: okJump .8s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
@keyframes padDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) { .pad-sent__env, .pad-sent__stamp, .pad-mark *, .pad-mark { animation: none !important; stroke-dashoffset: 0 !important; } }

/* 🃏 Chromo (téléphone) : on joue en glissant la carte vers la pile */
/* le jeu gère tout le geste sur une carte jouable (sinon le téléphone garde le geste pour défiler et la carte ne part pas) */
.ch2-pad .ch-hand--mine .ch-hand__card.is-ok, .ch2-pad .ch-hand--mine .ch-hand__card.is-ok * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch-drag { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; will-change: transform; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); transition: filter .15s; }
.ch-drag .ch-card { width: 100%; }
.ch-drag.is-ready { filter: drop-shadow(0 0 18px #ffe37a) drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
.ch-hand__card.is-lifted { opacity: .18; }
.ch-pad__discard { transition: transform .18s, filter .18s; }
.ch-pad__discard.is-target { transform: scale(1.1); filter: drop-shadow(0 0 22px #ffe37a) !important; }
/* simple appui : la carte se soulève et une flèche montre qu'il faut la glisser */
.ch-hand__card.is-hint { animation: chHint .9s ease; }
.ch-hand__card.is-hint::after { content: "↑"; position: absolute; left: 50%; top: -30px; translate: -50% 0; font: 800 1.6rem var(--font-title); color: #ffe37a; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); animation: chHintArrow .9s ease forwards; }
.ch-hand__card { position: relative; }
@keyframes chHint { 30% { translate: 0 -22px; } 55% { translate: 0 -14px; } }
@keyframes chHintArrow { from { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; transform: translateY(-6px); } to { opacity: 0; transform: translateY(-20px); } }

/* 🎧 Blind Test : vignettes des thèmes (mosaïque de 4 pochettes) */
.bt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.chip.bt-tile { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 16px; border: 0; text-align: left; color: #fff;
  background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .35); transition: transform .18s, box-shadow .18s; }
.chip.bt-tile:hover { transform: translateY(-3px); }
.chip.bt-tile.is-active { box-shadow: 0 0 0 3px var(--yellow), 0 0 22px rgba(255, 204, 61, .45); background: linear-gradient(145deg, var(--surface-2), var(--surface)); color: #fff; }
.bt-tile__covers { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bt-tile__covers img { width: 100%; height: 100%; object-fit: cover; display: block; animation: btCover .5s ease both; }
.bt-tile__covers img:nth-child(2) { animation-delay: .08s; } .bt-tile__covers img:nth-child(3) { animation-delay: .16s; } .bt-tile__covers img:nth-child(4) { animation-delay: .24s; }
@keyframes btCover { from { opacity: 0; transform: scale(1.15); } }
.chip.bt-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 25, .05) 30%, rgba(10, 6, 25, .88)); pointer-events: none; }
.bt-tile__emoji { position: absolute; left: 50%; top: 42%; translate: -50% -50%; z-index: 1; font-size: 2.6rem; transition: all .3s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.chip.bt-tile.has-covers .bt-tile__emoji { left: 8px; top: 8px; translate: none; font-size: 1.25rem; padding: 3px 5px; border-radius: 10px; background: rgba(10, 6, 25, .65); }
.bt-tile__label { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 1; font: 700 .92rem/1.15 var(--font-title); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.chip.bt-tile.is-active::before { content: "✓"; position: absolute; right: 7px; top: 7px; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #1a1033; font-weight: 800; font-size: .8rem; }
@media (max-width: 760px) { .bt-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; } .bt-tile__label { font-size: .8rem; } }
/* moins de 4 pochettes : elles se partagent la vignette */
.bt-tile__covers:has(img:only-child) img { grid-area: 1 / 1 / 3 / 3; }
.bt-tile__covers:has(img:nth-child(2):last-child) img { grid-row: 1 / 3; }
.bt-tile__covers:has(img:nth-child(3):last-child) img:first-child { grid-row: 1 / 3; }

/* 🎧 Blind Test : choix du thème façon Netflix (affiche + rangées qui défilent) */
.bt-flix { display: flex; flex-direction: column; gap: 14px; margin: 4px 0; padding: 14px 0 6px; border-radius: 20px; background: #0b0814; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
/* la grande affiche */
.bt-hero { position: relative; height: clamp(150px, 24vw, 230px); margin: 0 14px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a2054, #120c24); }
.bt-hero__bg { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(4, 1fr); filter: saturate(1.15); animation: btKen 18s ease-in-out infinite alternate; }
.bt-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-hero__bg:has(img:only-child) { grid-template-columns: 1fr; }
@keyframes btKen { to { transform: scale(1.08) translateX(-3%); } }
.bt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 20, .96) 0%, rgba(11, 8, 20, .75) 38%, rgba(11, 8, 20, .1) 75%), linear-gradient(0deg, rgba(11, 8, 20, .85), transparent 45%); }
.bt-hero__txt { position: absolute; left: 18px; bottom: 16px; right: 90px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.bt-hero__tag { width: fit-content; padding: .15em .6em; border-radius: 4px; background: #e50914; color: #fff; font: 800 .7rem var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.bt-hero__title { font: 800 clamp(1.5rem, 4.2vw, 2.4rem)/1.05 var(--font-title); color: #fff; text-shadow: 0 3px 12px rgba(0, 0, 0, .7); }
.bt-hero__title span { margin-right: 4px; }
.bt-hero__with { color: rgba(255, 255, 255, .8); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-hero__play { position: absolute; right: 18px; bottom: 18px; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0b0814; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.bt-hero.is-swap .bt-hero__txt { animation: btSwap .45s ease both; }
.bt-hero.is-swap .bt-hero__bg { animation: btFade .6s ease both, btKen 18s ease-in-out .6s infinite alternate; }
@keyframes btSwap { from { opacity: 0; transform: translateX(-16px); } }
@keyframes btFade { from { opacity: 0; } }
/* les rangées */
.bt-row__title { margin: 0 0 6px; padding: 0 16px; font: 700 1rem var(--font-title); color: #fff; }
.bt-row__title span { color: #e5e5e5; }
.bt-row__wrap { position: relative; }
.bt-row__track { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px; scroll-snap-type: x proximity; scroll-padding: 16px; scrollbar-width: none; }
.bt-row__track::-webkit-scrollbar { display: none; }
.bt-flix .chip.bt-tile { flex: 0 0 clamp(128px, 19vw, 170px); aspect-ratio: 16 / 10; border-radius: 8px; scroll-snap-align: start; transform-origin: center; transition: transform .22s, box-shadow .22s; background: #1c1630; }
.bt-flix .chip.bt-tile:hover { transform: scale(1.07); z-index: 2; box-shadow: 0 12px 26px rgba(0, 0, 0, .7); }
.bt-flix .chip.bt-tile.is-active { box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .6); background: #1c1630; }
.bt-flix .chip.bt-tile.is-active::before { background: #e50914; color: #fff; }
.bt-flix .bt-tile__emoji { font-size: 2rem; top: 44%; }
.bt-flix .chip.bt-tile.has-covers .bt-tile__emoji { font-size: 1rem; padding: 2px 4px; border-radius: 6px; }
.bt-flix .bt-tile__label { font-size: .88rem; bottom: 6px; }
.bt-row__arrow { position: absolute; top: 8px; bottom: 12px; z-index: 3; width: 34px; display: grid; place-items: center; cursor: pointer; color: #fff; font-size: 2rem; background: rgba(11, 8, 20, .7); opacity: 0; transition: opacity .2s; user-select: none; }
.bt-row__arrow.is-l { left: 0; border-radius: 0 8px 8px 0; }
.bt-row__arrow.is-r { right: 0; border-radius: 8px 0 0 8px; }
.bt-row__wrap:hover .bt-row__arrow { opacity: 1; }
@media (hover: none) { .bt-row__arrow { display: none; } }
@media (max-width: 760px) { .bt-hero__play { width: 42px; height: 42px; font-size: 1.05rem; } .bt-hero__txt { right: 64px; left: 14px; bottom: 12px; } .bt-hero__with { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .bt-hero__bg { animation: none !important; } }
/* les rangées de vignettes défilent au lieu d'élargir le salon */
.on-games > #on-options, #on-options > .panel, .bt-flix, .bt-row, .bt-row__wrap { min-width: 0; max-width: 100%; }
@media (max-width: 760px) { .on-games { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   🪢 Tir à la corde plus fun : fiches des équipes, boue, expressions, poussière
   ===================================================================== */
.tg2__teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg2__team { padding: 10px 12px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, var(--surface)), var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.tg2__team--r { text-align: right; }
.tg2__tname { margin: 0 0 6px; font: 800 clamp(1rem, 2.4vw, 1.35rem) var(--font-title); color: var(--c); }
.tg2__tname small { font: 500 .78rem var(--font-text); color: var(--muted); }
.tg2__roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 5px; }
.tg2__roster li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 4px 6px; border-radius: 10px; background: rgba(0, 0, 0, .25); text-align: left; transition: box-shadow .3s, transform .3s; }
.tg2__team--r .tg2__roster li { direction: rtl; }
.tg2__team--r .tg2__roster li > * { direction: ltr; }
.tg2__av { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pc); color: #fff; font: 700 .8rem var(--font-title); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.tg2__roster em { font-style: normal; font-size: .82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg2__pbar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tg2__pbar u { display: block; height: 100%; width: var(--pw, 0%); border-radius: inherit; background: var(--c); box-shadow: 0 0 8px var(--c); transition: width .2s linear; }
.tg2__team--r .tg2__pbar { transform: scaleX(-1); }
.tg2__crown { position: absolute; top: -10px; left: 8px; font-size: 1rem; opacity: 0; transform: scale(.3) rotate(-30deg); transition: all .3s cubic-bezier(.3, 1.6, .5, 1); }
.tg2__team--r .tg2__crown { left: auto; right: 8px; }
.tg2__roster li.is-best { box-shadow: 0 0 0 2px #ffd84d, 0 0 14px rgba(255, 216, 77, .5); transform: scale(1.03); }
.tg2__roster li.is-best .tg2__crown { opacity: 1; transform: none; }

/* la fosse de boue au milieu */
.tg2__mud { position: absolute; left: 50%; bottom: 2%; width: 26%; height: 22%; translate: -50% 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at 50% 40%, #8a5a2b, #5b3716 60%, #3d230c); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .55), 0 0 0 4px rgba(90, 56, 22, .5); }
.tg2__mud i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(160, 110, 60, .8); animation: tg2Bubble 2.6s ease-in infinite; }
.tg2__mud i:nth-child(1) { left: 25%; top: 40%; } .tg2__mud i:nth-child(2) { left: 60%; top: 55%; animation-delay: -.9s; } .tg2__mud i:nth-child(3) { left: 45%; top: 30%; animation-delay: -1.7s; width: 7px; height: 7px; }
@keyframes tg2Bubble { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.tg2__mud.is-splash { animation: tg2Splash .5s ease; }
@keyframes tg2Splash { 40% { transform: scale(1.15, .85); } }
.tg2__blob { position: absolute; left: 50%; top: 40%; width: 12px; height: 12px; border-radius: 50%; background: #6b431c; animation: tg2Blob 1s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes tg2Blob { to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4); opacity: 0; } }

/* la corde vibre quand ça tire fort des deux côtés */
.tg2__side.is-pull ~ .tg2__rope, .tg2__mover:has(.tg2__side.is-pull) .tg2__rope { animation: tg2Rope .12s linear infinite; }
@keyframes tg2Rope { 50% { transform: translateY(1.5px); } }

/* expressions des personnages */
.tg2__guy::before { content: ""; position: absolute; top: -6px; right: -4px; z-index: 2; font-size: calc(var(--gw) * .32); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.tg2__side.is-pull .tg2__guy::before { content: "😤"; }
.tg2__side.is-danger .tg2__guy::before { content: "😱"; }
.tg2__side.is-win .tg2__guy::before { content: "😄"; }
.tg2__side.is-lose .tg2__guy::before { content: "😵"; }
/* sueur quand on tire très fort */
.tg2__side.is-sweat .tg2__face::after { content: "💦"; position: absolute; left: -10%; top: 0; font-size: calc(var(--gw) * .24); animation: tg2Sweat .6s ease-in infinite; }
.tg2__face { position: relative; }
@keyframes tg2Sweat { from { transform: translateY(0); opacity: 1; } to { transform: translate(calc(var(--dir) * 6px), 18px); opacity: 0; } }
/* poussière sous les pieds */
.tg2__dust { position: absolute; bottom: 0; width: 26px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(230, 210, 170, .8), rgba(230, 210, 170, 0) 70%); pointer-events: none; animation: tg2Dust .7s ease-out forwards; }
@keyframes tg2Dust { from { transform: translateX(-50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dir) * 30px), -12px) scale(1.8); opacity: 0; } }
/* les perdants glissent dans la boue et en ressortent tout marron */
.tg2__side.is-lose .tg2__guy { transform: translateX(calc(var(--dir) * -60px)) rotate(calc(var(--dir) * -80deg)) !important; transition: transform .7s cubic-bezier(.5, 0, .7, 1.3) calc(var(--j) * .07s) !important; }
.tg2__side.is-muddy .tg2__body, .tg2__side.is-muddy .tg2__legs { filter: sepia(1) saturate(2.2) hue-rotate(-20deg) brightness(.55); transition: filter .6s; }
/* grande annonce au-dessus de l'arène */
.tg2__shout { position: absolute; left: 50%; top: 14%; z-index: 5; translate: -50% 0; padding: .25em .8em; border-radius: 14px; white-space: nowrap; pointer-events: none; opacity: 0;
  font: 900 clamp(1.2rem, 3.4vw, 2.1rem) var(--font-title); color: #fff; background: color-mix(in srgb, var(--c, #7c5cff) 80%, #000); box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .5); }
.tg2__shout.is-on { animation: tg2Shout 1.6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes tg2Shout { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 15% { opacity: 1; transform: scale(1.12) rotate(2deg); } 25% { transform: scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (max-width: 600px) { .tg2__roster { grid-template-columns: 1fr; } .tg2__team { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .tg2__mud i, .tg2__rope, .tg2__face::after { animation: none !important; } }

/* =====================================================================
   💸 Fin de Mois : calendrier, pions, portefeuilles, dé, cartes, pièces
   ===================================================================== */
.fdm { position: relative; display: flex; flex-direction: column; gap: 12px; }
.fdm__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.fdm__month, .fdm__pot, .fdm__turn { padding: .35em .9em; border-radius: 99px; background: var(--surface); font: 600 clamp(.95rem, 2vw, 1.2rem) var(--font-title); }
.fdm__month b { color: #ffd84d; }
.fdm__pot { background: linear-gradient(135deg, #ff9ec4, #ff5e8a); color: #fff; box-shadow: 0 4px 14px rgba(255, 94, 138, .35); }
.fdm__main { display: grid; gap: 14px; }
@media (min-width: 980px) { .fdm__main { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: start; } }

/* le calendrier, comme une feuille de mois accrochée au mur */
.fdm__cal { position: relative; padding: 14px 12px 12px; border-radius: 18px; background: linear-gradient(180deg, #fffaf0, #f3e7cf); color: #2b1d0e;
  box-shadow: 0 0 0 2px #e2cfa4, 0 14px 30px rgba(0, 0, 0, .45); }
.fdm__cal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 18px 18px 0 0; background: repeating-linear-gradient(90deg, #c0392b 0 14px, #e74c3c 14px 28px); }
.fdm__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 6px 0 5px; text-align: center; font: 700 .78rem var(--font-title); color: #8a6a3a; text-transform: uppercase; }
.fdm__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.fdm__day { position: relative; min-height: clamp(58px, 9vw, 92px); padding: 4px 5px; border-radius: 10px; background: #fff; overflow: hidden;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--k) 55%, #fff), 0 1px 0 rgba(0, 0, 0, .08); transition: transform .25s, box-shadow .25s; }
.fdm__day::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--k) 16%, transparent), transparent 70%); pointer-events: none; }
.fdm__num { font: 800 .9rem var(--font-title); color: #6b4f2a; }
.fdm__ic { position: absolute; right: 5px; top: 3px; font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
.fdm__day small { position: absolute; left: 5px; right: 5px; bottom: 6px; z-index: 1; font: 600 .62rem/1.1 var(--font-text); color: #7a6448; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdm__day--sun { background: #f4f1ea; }
.fdm__day--pay { grid-column: span 4; background: linear-gradient(135deg, #fff4c2, #ffd84d); box-shadow: inset 0 0 0 3px #e6b800, 0 4px 12px rgba(230, 184, 0, .45); }
.fdm__day--pay .fdm__ic { font-size: clamp(1.6rem, 3vw, 2.3rem); animation: fdmShine 1.8s ease-in-out infinite alternate; }
.fdm__day--pay small { font-size: .8rem; font-weight: 800; color: #6b4f00; }
@keyframes fdmShine { to { transform: scale(1.15) rotate(-6deg); filter: drop-shadow(0 0 8px #ffd84d); } }
.fdm__day.is-here { transform: scale(1.06); z-index: 2; box-shadow: inset 0 -4px 0 var(--k), 0 0 0 3px var(--k), 0 8px 18px rgba(0, 0, 0, .25); }
.fdm__start { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .06); font: 700 .85rem var(--font-title); color: #6b4f2a; }
.fdm__pawns { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.fdm__start .fdm__pawns { margin: 0; }
.fdm__pawn { width: clamp(18px, 2.4vw, 26px); height: clamp(18px, 2.4vw, 26px); display: grid; place-items: center; border-radius: 50% 50% 45% 45%; background: var(--c); color: #fff;
  font: 800 clamp(.6rem, 1.1vw, .8rem) var(--font-title); font-style: normal; box-shadow: 0 0 0 2px #fff, 0 3px 4px rgba(0, 0, 0, .35); }
.fdm__pawn.is-hop { animation: fdmHop .26s ease; }
@keyframes fdmHop { 50% { transform: translateY(-12px) scale(1.15); } }

/* joueurs et portefeuilles */
.fdm__side { display: flex; flex-direction: column; gap: 10px; }
.fdm__players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fdm__players li { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 4px 0 0 var(--c); transition: transform .25s, box-shadow .25s; }
.fdm__players li.is-turn { transform: translateX(6px); box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.fdm__players li.is-done { opacity: .65; }
.fdm__players li.is-hit { animation: fdmHit .5s ease; }
@keyframes fdmHit { 30% { transform: scale(1.04); } }
.fdm__av { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 1rem var(--font-title); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.fdm__pinfo { min-width: 0; display: flex; flex-direction: column; }
.fdm__pinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdm__pinfo small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdm__money { display: flex; flex-direction: column; align-items: flex-end; }
.fdm__cash { font: 800 1.1rem var(--font-title); color: #7dffb0; font-variant-numeric: tabular-nums; }
.fdm__debt { color: #ff8a8a; font-size: .75rem; font-weight: 700; }
.fdm__float { position: absolute; right: 12px; top: -4px; z-index: 3; font: 800 1.15rem var(--font-title); font-style: normal; pointer-events: none; animation: fdmFloat 1.4s ease-out forwards; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.fdm__float.is-plus { color: #7dffb0; } .fdm__float.is-minus { color: #ff6b6b; }
@keyframes fdmFloat { from { transform: translateY(6px) scale(.6); opacity: 0; } 20% { transform: translateY(-8px) scale(1.15); opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
.fdm__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fdm__feed li { padding: 6px 10px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--c); font-size: .88rem; animation: cardIn .35s ease; }
.fdm__feed li:nth-child(n+3) { opacity: .65; }

/* le dé et la grande carte au centre */
.fdm__dice { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(10, 6, 25, .35); border-radius: 18px; pointer-events: none; }
.fdm__dice[hidden], .fdm__card[hidden] { display: none; }
.fdm__die { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 26px; background: #fff; color: #1a1033; font-size: 6rem; line-height: 1;
  box-shadow: inset 0 -8px 0 #d9d4e8, 0 16px 40px rgba(0, 0, 0, .55); transition: transform .08s; }
.fdm__card { position: absolute; left: 50%; top: 42%; z-index: 19; width: min(86%, 360px); translate: -50% -50%; padding: 18px 18px 16px; border-radius: 20px; text-align: center; pointer-events: none;
  background: linear-gradient(180deg, #fffaf0, #f3e7cf); color: #2b1d0e; box-shadow: 0 0 0 4px var(--k), 0 20px 50px rgba(0, 0, 0, .6); }
.fdm__card.is-in { animation: fdmCard 2.6s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes fdmCard { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 12% { transform: scale(1.06) rotate(2deg); opacity: 1; } 18% { transform: scale(1) rotate(0); } 85% { opacity: 1; } 100% { transform: translateY(-20px) scale(.9); opacity: 0; } }
.fdm__cardic { display: block; font-size: 2.8rem; line-height: 1.1; }
.fdm__card b { display: block; margin: 4px 0; font: 800 1.25rem var(--font-title); }
.fdm__card p { margin: 0 0 6px; font-size: .95rem; color: #5a4632; }
.fdm__card strong { font: 900 1.9rem var(--font-title); }
.fdm__card strong.is-plus { color: #1e9e52; } .fdm__card strong.is-minus { color: #d63031; }
/* pièces qui tombent */
.fdm__coin { position: absolute; top: -30px; z-index: 21; font-size: 1.6rem; pointer-events: none; animation: fdmCoin 1.6s cubic-bezier(.4, 0, .8, .6) forwards; }
@keyframes fdmCoin { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }

/* téléphone : le portefeuille */
.ui-pad__art:has(.fdm-w) { width: 100%; line-height: normal; }
.fdm-w { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; text-align: left; background: linear-gradient(160deg, #1d5c3a, #12331f); box-shadow: inset 0 0 0 2px #3ddc84, 0 8px 18px rgba(0, 0, 0, .35); color: #eafff2; font-size: .9rem; }
.fdm-w__cash { font: 800 1.7rem var(--font-title); color: #7dffb0; }
.fdm-w i { font-style: normal; }
@media (max-width: 760px) { .fdm__day small { display: none; } .fdm__day { min-height: 48px; } .fdm__die { width: 90px; height: 90px; font-size: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .fdm__day--pay .fdm__ic, .fdm__coin, .fdm__card.is-in { animation: none !important; } }

/* =====================================================================
   🎵 Chrono Tubes : vinyle, réponse, frises des joueurs
   ===================================================================== */
.ct { display: flex; flex-direction: column; gap: 14px; }
.ct__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ct__round, .ct__goal { padding: .35em .9em; border-radius: 99px; background: var(--surface); font: 600 1.05rem var(--font-title); }
.ct__time { font: 800 clamp(1.6rem, 4vw, 2.4rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.ct__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.ct__stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 3vw, 30px); align-items: center; padding: 18px; border-radius: 22px;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 94, 138, .25), transparent 60%), linear-gradient(135deg, #2a1240, #120a24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* le vinyle : sillons, étiquette au centre, pochette une fois la réponse donnée */
.ct__vinyl { position: relative; width: clamp(120px, 20vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cover, none) center / 38% no-repeat, radial-gradient(circle, #ff5e8a 0 17%, #1a1a1a 17.5% 19%, transparent 19%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px); box-shadow: 0 0 0 4px #000, 0 14px 30px rgba(0, 0, 0, .6); transition: background .4s; }
.ct__vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .18) 25%, transparent 32% 70%, rgba(255, 255, 255, .1) 75%, transparent 80%); }
.ct__vinyl i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: 50%; background: #fff; z-index: 1; }
.ct__vinyl.is-spin { animation: ctSpin 1.8s linear infinite; }
@keyframes ctSpin { to { transform: rotate(360deg); } }
.ct__vinyl[style*="--cover"] { background: var(--cover) center / cover no-repeat; box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(0, 0, 0, .6); border-radius: 16px; }
.ct__vinyl[style*="--cover"]::after, .ct__vinyl[style*="--cover"] i { display: none; }
.ct__now { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ct__q { margin: 0; font: 700 clamp(1.1rem, 2.8vw, 1.6rem) var(--font-title); }
.ct__count { margin: 0; color: var(--muted); font-weight: 700; }
/* l'égaliseur pendant l'extrait */
.ct__bars { display: flex; gap: 5px; align-items: flex-end; height: 42px; }
.ct__bars i { width: 8px; border-radius: 4px; background: linear-gradient(#ff5e8a, #7c5cff); animation: ctBar .9s ease-in-out infinite alternate; }
.ct__bars i:nth-child(2n) { animation-duration: .7s; } .ct__bars i:nth-child(3n) { animation-duration: 1.1s; } .ct__bars i:nth-child(4n) { animation-delay: -.3s; }
@keyframes ctBar { from { height: 15%; } to { height: 100%; } }
.ct__title { margin: 0; font: 800 clamp(1.4rem, 3.6vw, 2.2rem)/1.1 var(--font-title); animation: btSwap .4s ease both; }
.ct__artist { margin: 0; color: var(--muted); font-size: 1.1rem; }
.ct__year { margin: 4px 0 0; font: 900 clamp(2.8rem, 9vw, 5rem)/1 var(--font-title); color: #ffd84d; text-shadow: 0 0 24px rgba(255, 216, 77, .5); animation: ctYear .6s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
@keyframes ctYear { from { transform: translateY(-40px) scale(1.6); opacity: 0; } }
/* les frises des joueurs */
.ct__lines { display: flex; flex-direction: column; gap: 6px; }
.ct__line { display: grid; grid-template-columns: 150px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); }
.ct__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ct__who i { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .85rem var(--font-title); font-style: normal; }
.ct__who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct__who small { margin-left: auto; color: var(--yellow); font-weight: 800; }
.ct__cards { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ct__card { flex: none; display: flex; flex-direction: column; width: 70px; padding: 4px 6px; border-radius: 8px; background: linear-gradient(160deg, #fffaf0, #eadcbc); color: #2b1d0e; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.ct__card b { font: 800 .95rem var(--font-title); color: #b3242f; }
.ct__card small { font-size: .62rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct__card.is-new { animation: ctNew .7s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 0 0 3px #3ddc84, 0 4px 12px rgba(61, 220, 132, .6); }
@keyframes ctNew { from { transform: translateY(-30px) rotate(-12deg) scale(1.3); opacity: 0; } }
.ct__res { font-size: 1.4rem; text-align: center; opacity: 0; }
.ct__res.is-on { animation: ctRes .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes ctRes { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
/* téléphone : la frise en haut des boutons */
.ui-pad__art:has(.ct-tl) { width: 100%; line-height: normal; }
.ct-tl { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; }
.ct-tl__c { flex: none; display: flex; flex-direction: column; width: 84px; padding: 6px 8px; border-radius: 10px; text-align: left; background: linear-gradient(160deg, #fffaf0, #eadcbc); color: #2b1d0e; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.ct-tl__c b { font: 800 1.1rem var(--font-title); color: #b3242f; }
.ct-tl__c small { font-size: .7rem; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 700px) { .ct__stage { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ct__line { grid-template-columns: 1fr 30px; } .ct__cards { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .ct__vinyl.is-spin, .ct__bars i { animation: none !important; } }

/* =====================================================================
   🚄 Grande Ligne : carte, lignes, villes, trains, missions
   ===================================================================== */
.gl { display: flex; flex-direction: column; gap: 12px; }
.gl__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.gl__round { padding: .35em .9em; border-radius: 99px; background: var(--surface); font: 600 1.05rem var(--font-title); }
.gl__event { flex: 1; min-width: 200px; padding: .4em .9em; border-radius: 12px; background: linear-gradient(135deg, rgba(47, 212, 224, .25), rgba(124, 92, 255, .2)); font-weight: 700; text-align: center; }
.gl__time { font: 800 clamp(1.5rem, 3.6vw, 2.2rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.gl__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.gl__main { display: grid; gap: 12px; }
@media (min-width: 980px) { .gl__main { grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); align-items: start; } }
.gl__map { border-radius: 18px; overflow: hidden; background: #0f4c7a; box-shadow: 0 0 0 3px #c9b98a, 0 14px 30px rgba(0, 0, 0, .45); }
.gl__map .wm-svg { display: block; width: 100%; height: auto; aspect-ratio: 1.17; }
.gl__map .wm-c { fill: #efe3bf; stroke: #b39b5e; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.gl__map .wm-grid { display: none; }
/* les lignes : grises en pointillés, puis à la couleur du joueur */
.gl-l line { stroke: #7a6a4a; stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; stroke-linecap: round; opacity: .7; }
.gl-l.is-mount line { stroke: #8a5a2b; stroke-dasharray: 2 4; stroke-width: 3.5px; }
.gl-l circle { fill: #fff; stroke: #7a6a4a; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.gl-l.is-own line { stroke: var(--c); stroke-width: 7px; stroke-dasharray: none; opacity: 1; filter: drop-shadow(0 0 3px var(--c)); animation: glBuild .7s ease .2s both; }
.gl-l.is-own circle { fill: var(--c); stroke: #fff; transform-box: fill-box; transform-origin: center; animation: glRail .35s cubic-bezier(.2, 1.6, .4, 1) calc(var(--k) * .14s) both; }
@keyframes glRail { from { transform: scale(0); } 60% { transform: scale(2.2); } to { transform: none; } }
.gl-l.is-closed line { stroke: #d63031; stroke-dasharray: 3 3; opacity: 1; }
.gl-l.is-closed circle { fill: #d63031; }
@keyframes glBuild { from { opacity: 0; stroke-width: 2px; } 60% { opacity: 1; stroke-width: 11px; } to { opacity: 1; } }
.gl-c circle { fill: #1a1033; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.gl-c.is-port circle { fill: #1f6fb2; }
.gl-c text { font: 700 1.05px var(--font-title); text-anchor: middle; fill: #2b1d0e; paint-order: stroke; stroke: #fffaf0; stroke-width: .28px; }
.gl-train { font-size: 1.6px; text-anchor: middle; }
/* joueurs */
.gl__side { display: flex; flex-direction: column; gap: 10px; }
.gl__players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gl__players li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); }
.gl__players li div { min-width: 0; display: flex; flex-direction: column; }
.gl__players li small { color: var(--muted); font-size: .75rem; }
.gl__players li strong { font: 800 1.15rem var(--font-title); color: var(--yellow); }
.gl__av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem var(--font-title); }
.gl__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gl__feed li { padding: 6px 10px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--c); font-size: .86rem; animation: cardIn .35s ease; }
.gl__feed li:nth-child(n+3) { opacity: .65; }
/* téléphone : rails et missions secrètes */
.ui-pad__art:has(.gl-w) { width: 100%; line-height: normal; }
.gl-w { display: grid; gap: 4px; padding: 10px 14px; border-radius: 16px; text-align: left; background: linear-gradient(160deg, #164a5c, #0c2a36); box-shadow: inset 0 0 0 2px #2fd4e0; color: #e8fbff; font-size: .9rem; }
.gl-w__rails { font: 800 1.3rem var(--font-title); }
.gl-w i { font-style: normal; }
.gl-w__t { color: #9feaf3; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.gl-w__m { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.gl-w__m.is-done { background: rgba(61, 220, 132, .25); text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .gl-l.is-own line, .gl-l.is-own circle { animation: none; } }

/* =====================================================================
   🌱 Potager Party : jardin en hexagones, météo, panier
   ===================================================================== */
.pp { display: flex; flex-direction: column; gap: 12px; }
.pp__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pp__round { padding: .35em .9em; border-radius: 99px; background: var(--surface); font: 600 1.05rem var(--font-title); }
.pp__event { flex: 1; min-width: 200px; padding: .4em .9em; border-radius: 12px; background: linear-gradient(135deg, rgba(61, 220, 132, .25), rgba(255, 179, 71, .2)); font-weight: 700; text-align: center; }
.pp__time { font: 800 clamp(1.5rem, 3.6vw, 2.2rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; }
.pp__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.pp__main { display: grid; gap: 12px; }
@media (min-width: 980px) { .pp__main { grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); align-items: start; } }
.pp__garden { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #6fbf4a, #3f8a2a 70%, #2f6b20); box-shadow: 0 0 0 4px #8a5a2b, 0 14px 30px rgba(0, 0, 0, .45); }
.pp-svg { display: block; width: 100%; height: auto; max-height: 68vh; aspect-ratio: 1.25; }
.pp-h polygon.pp-soil { fill: #6b4423; stroke: #4a2d14; stroke-width: .6; }
.pp-h polygon.pp-bed { fill: color-mix(in srgb, var(--c) 30%, #7a5030); stroke: var(--c); stroke-width: .7; }
.pp-h.is-empty polygon.pp-bed { fill: #7a5030; stroke-dasharray: 1.5 1; }
.pp-h.is-well polygon { fill: #9aa3ad; stroke: #5b636b; stroke-width: .8; }
.pp-water { fill: #2fa8e0; stroke: #1f6fb2; stroke-width: .6; }
.pp-e { font-size: 4.6px; text-anchor: middle; }
.pp-sprout { font-size: 4px; opacity: .8; }
.pp-n { font: 800 2.6px var(--font-title); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: #2b1d0e; stroke-width: .6px; }
.pp-h { transform-box: fill-box; transform-origin: center; }
.pp-h.is-grow { animation: ppGrow .7s ease; }
.pp-h.is-new { animation: ppNew .8s cubic-bezier(.2, 1.6, .4, 1); }
.pp-h.is-harv { animation: ppHarv .6s ease; }
.pp-h.is-loss { animation: ppLoss .7s ease; }
@keyframes ppGrow { 40% { transform: scale(1.12); filter: brightness(1.4); } }
@keyframes ppNew { from { transform: scale(0); opacity: 0; } }
@keyframes ppHarv { 30% { transform: scale(.88) rotate(-4deg); } 60% { transform: scale(1.05) rotate(3deg); } }
@keyframes ppLoss { 30%, 70% { transform: translateX(-1px); filter: saturate(.3); } 50% { transform: translateX(1px); } }
.pp__sky { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.pp__sky.is-rain { opacity: 1; background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(180, 220, 255, .55) 14px 16px); background-size: 40px 40px; animation: ppRain .35s linear infinite; }
.pp__sky.is-heat { opacity: 1; background: radial-gradient(circle at 85% 12%, rgba(255, 220, 80, .8), rgba(255, 140, 0, .25) 35%, transparent 60%); }
.pp__sky.is-bees, .pp__sky.is-slug { opacity: 1; display: grid; place-items: center; font-size: 4rem; }
.pp__sky.is-bees::after { content: "🐝 🐝 🐝"; animation: ppBuzz 1s ease-in-out infinite alternate; }
.pp__sky.is-slug::after { content: "🐌 🐌 🐌"; animation: ppBuzz 1.6s ease-in-out infinite alternate; }
@keyframes ppRain { to { background-position: -10px 40px; } }
@keyframes ppBuzz { from { transform: translate(-30px, 8px); } to { transform: translate(30px, -8px); } }
.pp__side { display: flex; flex-direction: column; gap: 10px; }
.pp__players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pp__players li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); }
.pp__players li div { min-width: 0; display: flex; flex-direction: column; }
.pp__players li small { color: var(--muted); font-size: .8rem; }
.pp__players li strong { font: 800 1.15rem var(--font-title); color: var(--yellow); }
.pp__av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem var(--font-title); }
.pp__feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pp__feed li { padding: 6px 10px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--c); font-size: .86rem; animation: cardIn .35s ease; }
.pp__feed li:nth-child(n+3) { opacity: .65; }
/* téléphone : panier et recettes */
.ui-pad__art:has(.pp-w) { width: 100%; line-height: normal; }
.pp-w { display: grid; gap: 4px; padding: 10px 14px; border-radius: 16px; text-align: left; background: linear-gradient(160deg, #2f5a1f, #1b3512); box-shadow: inset 0 0 0 2px #3ddc84; color: #eaffe0; font-size: .9rem; }
.pp-w i { font-style: normal; }
.pp-w__t { color: #a8f0b0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.pp-w__b { font: 800 1.25rem var(--font-title); }
.pp-w__r { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.pp-w__r small span { opacity: .6; }
.pp-w__r small span.is-ok { opacity: 1; color: #7dffa8; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pp-h, .pp__sky, .pp__sky::after { animation: none !important; } }

/* =====================================================================
   🎰 Casino : cartes, tapis vert, roulette, poker
   ===================================================================== */
.cz-cards { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
/* une carte = deux faces (recto, verso) qui tournent en 3D */
.cz-card { position: relative; width: 2.6em; height: 3.7em; display: inline-block; font: 800 1.15em/1 var(--font-title); transform-style: preserve-3d; transform: perspective(700px) rotateY(0deg); }
.cz-card.is-down { transform: perspective(700px) rotateY(180deg); }
.cz-face, .cz-back { position: absolute; inset: 0; border-radius: .35em; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.cz-face { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #fff, #ece8df); color: #1a1033; }
.cz-card.is-red .cz-face { color: #d0021b; }
.cz-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #b3122e 0 5px, #8e0c22 5px 10px); box-shadow: inset 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .45); }
/* distribuée : la carte glisse depuis le sabot (en haut à droite), face cachée, puis se retourne */
.cz-card.is-deal { animation: czDealDown .5s cubic-bezier(.2, .75, .3, 1) both; }
.cz-card.is-deal.is-turn { animation: czDealDown .5s cubic-bezier(.2, .75, .3, 1) both, czTurn .45s ease-in-out .5s both; }
.cz-card.is-flip { animation: czTurn .55s ease-in-out both; }
@keyframes czDealDown {
  from { transform: perspective(700px) translate(46vw, -38vh) rotate(-35deg) rotateY(180deg) scale(.7); }
  to { transform: perspective(700px) translate(0, 0) rotate(0) rotateY(180deg); }
}
@keyframes czTurn {
  from { transform: perspective(700px) rotateY(180deg); }
  50% { transform: perspective(700px) rotateY(90deg) translateY(-8px) scale(1.12); }
  to { transform: perspective(700px) rotateY(0deg); }
}
.cz-card b::before { content: attr(data-r); }
.cz-card b[data-r="11"]::before { content: "V"; }
.cz-card b[data-r="12"]::before { content: "D"; }
.cz-card b[data-r="13"]::before { content: "R"; }
.cz-card b[data-r="14"]::before { content: "A"; }
:lang(en) .cz-card b[data-r="11"]::before { content: "J"; }
:lang(en) .cz-card b[data-r="12"]::before { content: "Q"; }
:lang(en) .cz-card b[data-r="13"]::before { content: "K"; }
.cz-card i { font-style: normal; font-size: 1.1em; }
.cz-card.is-slot { border-radius: .35em; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transform: none; }
.cz-card.is-sm { font-size: .8em; }

.cz { display: flex; flex-direction: column; gap: 12px; }
.cz__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cz__round { padding: .35em .9em; border-radius: 99px; background: var(--surface); font: 600 1.05rem var(--font-title); }
.cz__msg { flex: 1; min-width: 200px; padding: .4em .9em; border-radius: 12px; background: linear-gradient(135deg, rgba(30, 158, 74, .35), rgba(212, 175, 55, .25)); font-weight: 700; text-align: center; }
.cz__time { font: 800 clamp(1.5rem, 3.6vw, 2.2rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; min-width: 2ch; }
.cz__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.cz__table, .pk__table { padding: 18px; border-radius: 28px; background: radial-gradient(ellipse at 50% 30%, #1f8a4c, #0e5a2e 70%, #0a4223); box-shadow: inset 0 0 0 6px #6b4019, inset 0 0 0 9px #d4af37, 0 14px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 16px; }
.cz__dealer { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 1.3rem; color: #eafff0; min-height: 7em; }
.cz__dealer > b { font: 800 1.4rem var(--font-title); color: var(--yellow); }
.cz__seats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cz-seat { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); min-width: 0; }
.cz-seat__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cz-seat__top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-seat__av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem var(--font-title); }
.cz-seat__chips { font: 700 .95rem var(--font-title); color: var(--yellow); white-space: nowrap; }
.cz-seat__hand { min-height: 3.9em; display: flex; justify-content: center; align-items: center; }
.cz-seat__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; min-height: 1.6em; }
.cz-seat__val { font: 800 1.2rem var(--font-title); }
.cz-chip { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .3em; border-radius: 50%; background: radial-gradient(circle, #ffcc3d 55%, #b8860b 56% 62%, #ffcc3d 63%); color: #3a2600; font: 800 .75rem var(--font-title); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
/* le jeton est lancé sur le tapis : il tombe en tournant, rebondit et se pose */
.cz-chip.is-toss { animation: czToss .6s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes czToss {
  from { transform: translateY(70px) rotateX(70deg) rotate(-180deg) scale(.6); opacity: 0; }
  55% { transform: translateY(-6px) rotateX(0) rotate(10deg) scale(1.05); opacity: 1; }
  75% { transform: translateY(2px) scale(.97); }
  to { transform: none; }
}
.cz-res { padding: .15em .6em; border-radius: 99px; background: rgba(0, 0, 0, .45); font-weight: 700; font-size: .85rem; }
.cz-seat.is-done { opacity: .75; }
.cz-seat.is-win, .cz-seat.is-bj { box-shadow: inset 0 0 0 3px var(--green), 0 0 18px rgba(61, 220, 132, .5); }
.cz-seat.is-lose, .cz-seat.is-bust { opacity: .6; }
.cz-seat.is-turn { box-shadow: inset 0 0 0 3px var(--yellow), 0 0 20px rgba(255, 204, 61, .55); transform: translateY(-3px); transition: transform .2s; }
.cz-seat.is-fold { opacity: .45; }
.cz-seat.is-out { opacity: .3; filter: grayscale(1); }
.cz-seat.is-final { flex-direction: row; align-items: center; }
.cz-seat.is-final b { flex: 1; }
/* roulette */
.rl__main { display: grid; gap: 14px; }
@media (min-width: 980px) { .rl__main { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); align-items: start; } }
.rl__wheelbox { position: relative; display: grid; place-items: center; padding: 10px; border-radius: 28px; background: radial-gradient(ellipse, #1f8a4c, #0a4223); box-shadow: inset 0 0 0 6px #6b4019, inset 0 0 0 9px #d4af37; }
.rl__wheel { width: min(100%, 56vh); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.rl__rot, .rl__ball { transform-origin: 0 0; }
.rl-n { font: 800 7px var(--font-title); fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.rl__ptr { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); color: var(--yellow); font-size: 1.6rem; z-index: 2; text-shadow: 0 2px 4px #000; }
.rl__result { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rl__side { display: flex; flex-direction: column; gap: 10px; }
.rl__hist { display: flex; flex-wrap: wrap; gap: 4px; min-height: 2em; }
.rl-h { display: inline-grid; place-items: center; min-width: 2em; height: 2em; border-radius: 50%; color: #fff; font: 800 .9rem var(--font-title); box-shadow: 0 0 0 2px #d4af37; }
.rl-h.is-red { background: #c8102e; }
.rl-h.is-black { background: #141414; }
.rl-h.is-green { background: #1e9e4a; }
.rl-h.is-big { min-width: 3.4em; height: 3.4em; font-size: 1.8rem; box-shadow: 0 0 0 4px #d4af37, 0 0 30px rgba(255, 204, 61, .8); animation: ppNew .6s cubic-bezier(.2, 1.6, .4, 1); }
.rl__side .cz__seats { grid-template-columns: 1fr; }
.rl-bets { display: flex; flex-wrap: wrap; gap: 4px; }
.rl-bet { padding: .1em .5em; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: .8rem; }
.rl-bet.is-win { background: rgba(61, 220, 132, .45); }
.rl-bet.is-lose { opacity: .45; text-decoration: line-through; }
.rl-gain { color: var(--green); }
.ui-btn.is-wide { grid-column: 1 / -1; }
/* poker */
.pk__felt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; font-size: 1.35rem; }
.pk__board { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pk__pot { font: 800 1.3rem var(--font-title); color: var(--yellow); min-height: 1.3em; }
/* téléphone */
.ui-pad__art:has(.cz-w) { width: 100%; line-height: normal; }
.cz-w { display: grid; gap: 6px; justify-items: center; padding: 10px 14px; border-radius: 16px; background: radial-gradient(ellipse at 50% 20%, #1f8a4c, #0a4223); box-shadow: inset 0 0 0 2px #d4af37; color: #eafff0; font-size: 1.1rem; }
.cz-w i { font-style: normal; }
.cz-w__t { color: #c8f5d6; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.cz-w__b { font-weight: 700; font-size: .95rem; text-align: center; }
.cz-w__h { padding: .15em .7em; border-radius: 99px; background: rgba(0, 0, 0, .35); font-weight: 700; font-size: .9rem; color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .cz-card, .cz-chip, .rl-h.is-big { animation: none !important; } }

/* =====================================================================
   🏙️ Magnat : plateau 7×7, rues, pions, dés
   ===================================================================== */
.mg { display: grid; gap: 12px; }
@media (min-width: 980px) { .mg { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); align-items: start; } }
.mg__board { display: grid; grid-template-columns: 1.35fr repeat(5, 1fr) 1.35fr; grid-template-rows: 1.35fr repeat(5, 1fr) 1.35fr; gap: 3px; aspect-ratio: 1; max-height: 78vh; margin-inline: auto; width: 100%; padding: 6px; border-radius: 18px; background: #0d3b2a; box-shadow: 0 0 0 4px #c9a227, 0 14px 30px rgba(0, 0, 0, .45); }
.mg-sq { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 2px; border-radius: 6px; background: #f3ecd8; color: #2b1d0e; overflow: hidden; min-width: 0; text-align: center; box-shadow: inset 0 0 0 3px var(--o, transparent); }
.mg-sq.is-owned { background: color-mix(in srgb, var(--o) 18%, #f3ecd8); }
.mg-sq.is-corner { background: #ffe9a8; justify-content: center; }
.mg-sq.mg-sq--card { background: #e6dcff; justify-content: center; }
.mg-sq.mg-sq--tax, .mg-sq.mg-sq--lux { background: #ffd9d9; justify-content: center; }
.mg-sq__band { align-self: stretch; height: 18%; min-height: 6px; border-radius: 3px; background: var(--g); flex: none; }
.mg-sq__name { font: 700 clamp(.5rem, .95vw, .78rem)/1.1 var(--font-title); overflow-wrap: anywhere; }
.mg-sq__price { font: 800 clamp(.48rem, .85vw, .7rem) var(--font-title); color: #6b4a1f; }
.mg-sq__pawns { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1px; }
.mg-pawn { width: clamp(14px, 1.7vw, 22px); height: clamp(14px, 1.7vw, 22px); display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 clamp(.5rem, .8vw, .7rem) var(--font-title); box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, .5); }
.mg-pawn.is-cur { animation: mgHop .6s ease infinite alternate; }
@keyframes mgHop { to { transform: translateY(-3px); } }
.mg__center { grid-row: 2 / 7; grid-column: 2 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; min-width: 0; min-height: 0; color: #fff; }
.mg__logo { font: 800 clamp(1.4rem, 3vw, 2.4rem) var(--font-title); color: #ffcc3d; text-shadow: 0 3px 0 #7a5a00; transform: rotate(-4deg); }
.mg__goal { font-size: .9rem; color: #d8f3e3; }
.mg__dice { display: flex; gap: 10px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; min-height: 1em; }
.mg__dice .is-set { animation: ppNew .4s cubic-bezier(.2, 1.6, .4, 1); }
.mg__pot { font: 700 1rem var(--font-title); color: #8fe3ff; min-height: 1.2em; }
.mg__feed { list-style: none; margin: 0; padding: 0; width: min(100%, 420px); display: flex; flex-direction: column; gap: 3px; }
.mg__feed li { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .35); border-left: 4px solid var(--c); font-size: .8rem; animation: cardIn .35s ease; }
.mg__feed li:nth-child(n+2) { opacity: .7; }
.mg__players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mg__players li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); }
.mg__players li.is-cur { box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--yellow); }
.mg__players li.is-out { opacity: .4; filter: grayscale(1); }
.mg__players li div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg__players li small { color: var(--muted); font-size: .78rem; }
.mg__players li strong { font: 800 1rem var(--font-title); color: var(--yellow); white-space: nowrap; }
.mg__av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem var(--font-title); }
.mg__bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mg__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3ddc84, #ffcc3d); transition: width .6s ease; }
.ui-pad__art:has(.mg-w) { width: 100%; line-height: normal; }
.mg-w { display: grid; gap: 5px; padding: 10px 14px; border-radius: 16px; text-align: left; background: linear-gradient(160deg, #134a35, #0b2a1f); box-shadow: inset 0 0 0 2px #ffcc3d; color: #effff6; font-size: .88rem; }
.mg-w i { font-style: normal; }
.mg-w__t { color: #ffe08a; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.mg-w__big { font: 800 1.5rem var(--font-title); }
.mg-w__props { display: flex; flex-wrap: wrap; gap: 4px; }
.mg-w__props span { padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .3); box-shadow: inset 4px 0 0 var(--g); font-size: .78rem; }
@media (max-width: 600px) { .mg-sq__price { display: none; } }
@media (prefers-reduced-motion: reduce) { .mg-pawn.is-cur, .mg__dice .is-set { animation: none; } }

/* 🔊 son bloqué sur le téléphone : gros bouton pour le lancer */
.pad-snd { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; padding: 14px 22px; border: 0; border-radius: 99px; background: var(--grad); color: #fff; font: 700 1.1rem var(--font-title); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); cursor: pointer; animation: cdHurry 1s ease infinite; }
.pad-snd[hidden] { display: none; }
:lang(en) .mirror::after { content: "🔍 Tap to enlarge"; }
:lang(en) body.mirror-big .mirror::after { content: "🔍 Tap to shrink"; }
:lang(pt) .mirror::after { content: "🔍 Toca para ampliar"; }
:lang(pt) body.mirror-big .mirror::after { content: "🔍 Toca para reduzir"; }

/* ✨ effets partagés (fx-real.js) : montant qui s'envole, dés à points */
.fx-float { position: fixed; z-index: 9700; transform: translate(-50%, -50%); pointer-events: none; font: 800 1.35rem var(--font-title); color: var(--c); text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 12px rgba(0, 0, 0, .5); animation: fxFloat 1.6s cubic-bezier(.2, .8, .3, 1) forwards; white-space: nowrap; }
@keyframes fxFloat { from { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -70%) scale(1.15); opacity: 1; } 70% { opacity: 1; } to { transform: translate(-50%, -260%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-float { animation: none !important; } }
/* 🏙️ Magnat : le pion saute de case en case, les dés roulent sur le tapis */
.mg-pawn.is-hop { animation: mgStep .23s cubic-bezier(.3, .7, .4, 1) both; z-index: 2; }
@keyframes mgStep { from { transform: translate(var(--hx, 0), -16px) scale(1.25); box-shadow: 0 0 0 2px #fff, 0 14px 10px rgba(0, 0, 0, .35); } 70% { transform: translateY(1px) scale(.95, 1.05); } to { transform: none; } }
.mg__dice { gap: 18px; min-height: 0; }
.mg__dice .die3d { --s: clamp(46px, 6vw, 72px); }
@media (prefers-reduced-motion: reduce) { .mg-pawn.is-hop { animation: none; } }
/* 🌱 Potager : particules sur les parcelles, vraie pluie */
.pp-p { pointer-events: none; transform-box: fill-box; transform-origin: center; }
text.pp-p { font-size: 3.4px; text-anchor: middle; }
.pp-drop { opacity: 0; animation: ppDrop .55s ease-in calc(var(--k) * .09s + .25s) both; }
@keyframes ppDrop { from { transform: translateY(-9px); opacity: 0; } 25% { opacity: 1; } 85% { transform: translateY(2px); opacity: 1; } to { transform: translateY(3px) scale(1.6, .3); opacity: 0; } }
.pp-can { font-size: 6px; animation: ppCan 1.1s ease both; }
@keyframes ppCan { from { transform: translate(-6px, -4px) rotate(0); opacity: 0; } 20% { opacity: 1; transform: rotate(0); } 45%, 80% { transform: rotate(-35deg); opacity: 1; } to { transform: rotate(0) translateY(-3px); opacity: 0; } }
.pp-spark { animation: ppSpark .9s ease .5s both; }
@keyframes ppSpark { from { transform: scale(0) rotate(-40deg); opacity: 0; } 50% { transform: scale(1.4) rotate(10deg); opacity: 1; } to { transform: scale(.6); opacity: 0; } }
.pp-fly { font-size: 4.2px; animation: ppFly .9s cubic-bezier(.2, .7, .3, 1) calc(var(--k) * .1s) both; }
@keyframes ppFly { from { transform: translate(0, 0) scale(.6); opacity: 1; } 40% { transform: translate(var(--dx), -10px) scale(1.25) rotate(15deg); opacity: 1; } to { transform: translate(calc(var(--dx) * 2), -22px) scale(.5) rotate(40deg); opacity: 0; } }
.pp-slug { font-size: 3.6px; animation: ppSlug 1.6s linear both; }
@keyframes ppSlug { from { transform: translateX(-2px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(14px); opacity: 0; } }
.pp-dirt { fill: #8a5a2b; animation: ppDirt .6s ease-out both; }
@keyframes ppDirt { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-7px) scale(.3); opacity: 0; } }
.pp__sky.is-rain { opacity: 1; background: linear-gradient(rgba(40, 60, 90, .35), rgba(40, 60, 90, .15)); animation: none; overflow: hidden; }
.pp__sky.is-rain i { position: absolute; top: -12%; left: var(--x); width: 2px; height: 16px; border-radius: 2px; background: linear-gradient(rgba(200, 230, 255, 0), rgba(200, 230, 255, .9)); transform: rotate(12deg); animation: ppRainDrop var(--t) linear var(--d) infinite; }
@keyframes ppRainDrop { to { transform: translate(-30px, 120vh) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .pp-p, .pp__sky.is-rain i { animation: none !important; opacity: 0; } }

/* =====================================================================
   🎡 Roulette 2 : vraie roue inclinée + tapis de mises avec les jetons des joueurs
   ===================================================================== */
.rl2 { display: grid; gap: 16px; align-items: center; padding: 16px; border-radius: 28px; background: radial-gradient(ellipse at 30% 40%, #1d8a4b, #0d5a2d 60%, #083d1f); box-shadow: inset 0 0 0 6px #5a3412, inset 0 0 0 9px #d4af37, inset 0 0 60px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .rl2 { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr); } }
.rl2__wheelbox { position: relative; display: grid; place-items: center; }
.rl2__wheel { width: min(100%, 52vh); filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .65)); transform: perspective(1000px) rotateX(30deg); transform-origin: 50% 60%; }
.rl2__svg { display: block; width: 100%; height: auto; }
.rl2__svg .rl-n { font: 800 7.5px var(--font-title); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.rl2__frets line { stroke: url(#rlGold); stroke: #d4af37; stroke-width: 1.1; }
.rl2__diam path { fill: #e9c75a; stroke: #7a5a10; stroke-width: .4; }
.rl2__turret line { stroke: #d4af37; stroke-width: 3.2; stroke-linecap: round; }
.rl2__turret circle { fill: #f1d36a; stroke: #8a6a12; stroke-width: .6; }
.rl2__shadow { fill: rgba(0, 0, 0, .45); filter: blur(.8px); }
.rl2__hist { position: absolute; top: 4px; right: 0; display: flex; flex-direction: column; gap: 3px; padding: 6px 5px; border-radius: 10px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .5); }
.rl2__hist:empty { display: none; }
.rl2__hist .rl-h { min-width: 1.7em; height: 1.7em; font-size: .8rem; box-shadow: none; }
.rl2__hist .rl-h.is-last { transform: scale(1.18); box-shadow: 0 0 0 2px #ffcc3d; }
.rl2__wheelbox .rl__result { inset: auto; left: 0; top: 4px; }
.rl2__wheelbox .rl-h.is-big { min-width: 2.6em; height: 2.6em; font-size: 1.5rem; }
/* le tapis */
.rl2__felt { min-width: 0; overflow-x: auto; padding: 4px; }
.rl-tapis { --cell: clamp(26px, 3.4vw, 48px); display: grid; grid-template-columns: calc(var(--cell) * 1.1) repeat(12, var(--cell)); grid-template-rows: repeat(3, calc(var(--cell) * 1.15)) calc(var(--cell) * .9) calc(var(--cell) * .9); width: max-content; margin-inline: auto; border: 2px solid rgba(255, 255, 255, .85); border-radius: 6px; background: #0f6e36; box-shadow: 0 10px 22px rgba(0, 0, 0, .4); }
.rl-c { position: relative; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .75); color: #fff; font: 800 clamp(.75rem, 1.4vw, 1.15rem) var(--font-title); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); transition: box-shadow .3s, filter .3s; }
.rl-c b { position: relative; z-index: 1; }
.rl-c.is-red b, .rl-c.is-black b, .rl-c.is-green b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; }
.rl-c.is-red b { background: radial-gradient(circle at 35% 30%, #ff4d63, #b0101f); }
.rl-c.is-black b { background: radial-gradient(circle at 35% 30%, #4a4a4a, #0b0b0b); }
.rl-c.is-green b { background: radial-gradient(circle at 35% 30%, #34d06c, #0c7a35); }
.rl-c--zero { border-radius: 40% 0 0 40%; }
.rl-c--out b { font-size: .85em; letter-spacing: .04em; }
.rl-diam { display: inline-block; width: 1.6em; height: 1em; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rl-diam.is-red { background: #d0102a; } .rl-diam.is-black { background: #111; }
.rl-c.is-hit { box-shadow: inset 0 0 0 3px #ffcc3d, 0 0 18px rgba(255, 204, 61, .8); filter: brightness(1.25); z-index: 2; }
/* les jetons des joueurs sur le tapis */
.rl-pile { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rl-chip { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: calc(var(--cell) * .62); height: calc(var(--cell) * .62); margin: calc(var(--cell) * -.31) 0 0 calc(var(--cell) * -.31); transform: translate(calc(var(--i) * 5px), calc(var(--i) * -5px)); border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 46%, #fff 47% 52%, var(--c) 53% 64%, transparent 65%), repeating-conic-gradient(var(--c) 0 20deg, #fff 20deg 30deg); color: #fff; font: 800 clamp(.5rem, .9vw, .72rem) var(--font-title); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 4px 8px rgba(0, 0, 0, .45); }
.rl-chip.is-toss { animation: rlChipIn .55s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes rlChipIn { from { transform: translate(calc(var(--i) * 5px + 60px), calc(var(--i) * -5px + 90px)) rotate(-200deg) scale(.5); opacity: 0; } 60% { transform: translate(calc(var(--i) * 5px), calc(var(--i) * -5px - 8px)) rotate(10deg) scale(1.08); opacity: 1; } to { transform: translate(calc(var(--i) * 5px), calc(var(--i) * -5px)); } }
.rl-chip.is-lose { animation: rlSweep .9s cubic-bezier(.5, 0, .7, .4) .6s forwards; }
@keyframes rlSweep { to { transform: translate(calc(var(--i) * 5px - 40px), calc(var(--i) * -5px - 160px)) rotate(-120deg) scale(.6); opacity: 0; } }
.rl-chip.is-win { box-shadow: 0 0 0 3px #ffcc3d, 0 0 16px rgba(255, 204, 61, .9), 0 4px 8px rgba(0, 0, 0, .45); animation: rlWin 1s ease-in-out infinite alternate; }
@keyframes rlWin { to { transform: translate(calc(var(--i) * 5px), calc(var(--i) * -5px - 4px)) scale(1.12); } }
/* le marqueur posé sur le numéro gagnant */
.rl-dolly { position: absolute; left: 50%; top: 50%; z-index: 4; width: calc(var(--cell) * .5); height: calc(var(--cell) * .7); margin: calc(var(--cell) * -.55) 0 0 calc(var(--cell) * -.25); border-radius: 40% 40% 45% 45%; background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(190, 220, 255, .7) 45%, rgba(120, 160, 220, .85)); box-shadow: 0 6px 8px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .7); animation: rlDolly .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes rlDolly { from { transform: translateY(-50px) scale(.6); opacity: 0; } }
/* les joueurs sous la table */
.rl2__players { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rl2__p { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.rl2__chipicon { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0 45%, #fff 46% 55%, var(--c) 56%); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.rl2__p .rl-gain { font-style: normal; font-weight: 800; color: var(--green); }
@media (prefers-reduced-motion: reduce) { .rl-chip, .rl-dolly { animation: none !important; } .rl2__wheel { transform: none; } }
.rl-c--out .rl-chip { left: auto; right: 4px; margin-left: 0; }
@media (min-width: 900px) { .rl2__felt { overflow: visible; } }
.rl2__felt { overflow-y: hidden; }
/* 🎡 Roulette sur le téléphone : un vrai tapis à toucher */
.ui-grid:has(.rlb) { gap: 0; padding: 6px; border-radius: 12px; background: #0f6e36; box-shadow: inset 0 0 0 2px #d4af37; }
.ui-btn.rlb { position: relative; min-height: 34px; padding: 2px; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); font-size: .95rem; }
.ui-btn.rlb:active { transform: none; filter: brightness(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.ui-btn.rlb-s2 { grid-column: span 2; }
.ui-btn.rlb-s6 { grid-column: 1 / -1; }
.ui-btn.rlb-chip { min-height: 46px; margin-bottom: 8px; background: transparent; box-shadow: none; }
.ui-btn.rlb-chip:disabled { opacity: .3; }
.rlb-coin { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #ffcc3d 0 44%, #fff 45% 50%, #ffcc3d 51% 62%, transparent 63%), repeating-conic-gradient(#ffcc3d 0 20deg, #fff 20deg 30deg); color: #3a2600; font: 800 .8rem var(--font-title); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.ui-btn.rlb-chip.is-sel .rlb-coin { transform: translateY(-4px) scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 14px #ffcc3d; }
.ui-btn.rlb-done { min-height: 48px; margin-top: 8px; border-radius: 12px; box-shadow: 0 4px 0 #4a35a8; }
.rlb-l { position: relative; z-index: 1; }
.rlb-on { position: absolute; right: 2px; top: calc(50% - 12px); z-index: 2; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 3px; border-radius: 50%; background: radial-gradient(circle, #ffcc3d 0 55%, #fff 56% 62%, #ffcc3d 63%); color: #3a2600; font: 800 .62rem/1 var(--font-title); font-style: normal; box-shadow: 0 2px 3px rgba(0, 0, 0, .6); animation: czToss .4s ease both; }
body:has(#screen .ui-grid .rlb) .mirror__view { max-height: 16vh; }
/* 🎡 la roue sur le téléphone : elle tourne en même temps que sur la télé */
.ui-pad__art:has(.rlw) { width: 100%; line-height: normal; }
.rlw--ph { position: relative; width: min(100%, 340px); margin: 0 auto 8px; padding: 14px; border-radius: 22px; background: radial-gradient(ellipse at 50% 40%, #1d8a4b, #0a4523); box-shadow: inset 0 0 0 4px #5a3412, inset 0 0 0 6px #d4af37; }
.rlw--ph .rl2__svg { transform: perspective(800px) rotateX(28deg); filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .6)); }
.rlw--ph .rl-n { font: 800 7.5px var(--font-title); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.rlw--ph .rl2__frets line { stroke: #d4af37; stroke-width: 1.1; }
.rlw-num { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; min-width: 2.4em; height: 2.4em; border-radius: 50%; color: #fff; font: 800 1.4rem var(--font-title); box-shadow: 0 0 0 3px #d4af37, 0 0 20px rgba(255, 204, 61, .8); animation: ppNew .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.rlw-num.is-red { background: #c8102e; } .rlw-num.is-black { background: #141414; } .rlw-num.is-green { background: #1e9e4a; }
body:has(#screen .rlw) .mirror { display: none !important; }
/* 🂡 Blackjack sur le téléphone : une vraie table */
.ui-pad__art:has(.bjp) { width: 100%; line-height: normal; }
.bjp { position: relative; display: grid; gap: 10px; justify-items: center; padding: 14px 10px 12px; border-radius: 26px 26px 120px 120px / 26px 26px 60px 60px; background: radial-gradient(ellipse at 50% 35%, #1f8a4c, #0d5a2d 65%, #083d1f); box-shadow: inset 0 0 0 5px #5a3412, inset 0 0 0 8px #d4af37, inset 0 0 40px rgba(0, 0, 0, .45), 0 10px 22px rgba(0, 0, 0, .45); color: #eafff0; font-size: 1.3rem; }
.bjp__row { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 4.2em; flex-wrap: wrap; }
.bjp__who { position: absolute; left: 16px; top: 12px; font-size: .75rem; color: #c8f5d6; }
.bjp__val { display: grid; place-items: center; min-width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(0, 0, 0, .45); font: 800 .95rem var(--font-title); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.bjp__val.is-me { background: #ffcc3d; color: #3a2600; }
.bjp__val.is-bust { background: var(--red); color: #fff; }
.bjp__arc { padding: 2px 14px; border-top: 1px solid rgba(212, 175, 55, .7); border-bottom: 1px solid rgba(212, 175, 55, .7); color: #f3d98a; font: 700 .68rem var(--font-title); letter-spacing: .14em; text-transform: uppercase; }
.bjp__bet { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.bjp__res { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); padding: .3em .9em; border-radius: 12px; background: rgba(0, 0, 0, .72); font: 800 1.4rem var(--font-title); white-space: nowrap; box-shadow: 0 0 0 3px currentColor; animation: ppNew .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.bjp__res.is-win, .bjp__res.is-bj { color: #3ddc84; } .bjp__res.is-lose, .bjp__res.is-bust { color: #ff4d5e; } .bjp__res.is-push { color: #ffcc3d; }
.bjp--bet { padding-bottom: 22px; }
.bjp__circle { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .15); }
.bjp__circle b { position: absolute; bottom: -12px; padding: 1px 10px; border-radius: 99px; background: #ffcc3d; color: #3a2600; font: 800 .95rem var(--font-title); }
.bjp__stack { position: relative; width: 56px; height: 56px; }
.bjp__stack i { position: absolute; left: 0; bottom: calc(var(--i) * 4px); width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #ffcc3d 0 44%, #fff 45% 50%, #ffcc3d 51% 62%, transparent 63%), repeating-conic-gradient(#ffcc3d 0 20deg, #fff 20deg 30deg); box-shadow: 0 3px 0 #a07a10, 0 4px 6px rgba(0, 0, 0, .4); transform: scaleY(.55); transform-origin: bottom; }
.bjp .cz-card { font-size: 1.05em; }
body:has(#screen .bjp) .mirror__view { max-height: 14vh; }
/* ♠️ Poker sur le téléphone : une vraie table */
.ui-pad__art:has(.pkp) { width: 100%; line-height: normal; }
.pkp { display: grid; gap: 8px; }
.pkp__opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pkp__opp { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 76px; padding: 6px 8px 8px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 65%, transparent); font-size: .78rem; }
.pkp__opp b { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkp__opp small { color: var(--yellow); font-weight: 700; }
.pkp__opp em { font-style: normal; font-size: .72rem; }
.pkp__opp .cz-chip { position: absolute; right: -6px; top: -8px; min-width: 2em; height: 2em; font-size: .6rem; }
.pkp__opp.is-turn { box-shadow: inset 0 0 0 2px var(--yellow), 0 0 14px rgba(255, 204, 61, .7); }
.pkp__opp.is-fold { opacity: .45; }
.pkp__opp.is-out { opacity: .3; filter: grayscale(1); }
.cz-card.is-xs { font-size: .55em; }
.pkp__felt { position: relative; display: grid; gap: 10px; justify-items: center; padding: 16px 10px 14px; border-radius: 120px / 70px; background: radial-gradient(ellipse at 50% 35%, #1f8a4c, #0d5a2d 65%, #083d1f); box-shadow: inset 0 0 0 5px #5a3412, inset 0 0 0 8px #d4af37, inset 0 0 40px rgba(0, 0, 0, .45), 0 10px 22px rgba(0, 0, 0, .45); color: #eafff0; font-size: 1.1rem; }
.pkp__board { display: flex; gap: 4px; justify-content: center; }
.pkp__board .cz-card { font-size: .92em; }
.pkp__pot { min-height: 1.3em; font: 800 1.05rem var(--font-title); color: var(--yellow); }
.pkp__me { position: relative; display: flex; align-items: center; gap: 8px; font-size: 1.35rem; }
.pkp__hand { padding: .15em .7em; border-radius: 99px; background: rgba(0, 0, 0, .45); color: var(--yellow); font: 700 .85rem var(--font-title); }
.pkp__btn { position: absolute; left: -30px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1a1033; font: 800 .75rem var(--font-title); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.pkp__bet { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
body:has(#screen .pkp) .mirror__view { max-height: 14vh; }
/* ⚓ Bataille navale : viseur, obus en cloche avec traînée, ombre, boule de feu, colonne d'eau */
.fx-reticle { position: fixed; z-index: 9400; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); pointer-events: none; border-radius: 50%; border: 2px solid rgba(255, 80, 80, .95); box-shadow: 0 0 10px rgba(255, 60, 60, .7), inset 0 0 0 calc(var(--s) * .22) transparent; animation: fxLock .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.fx-reticle::before, .fx-reticle::after { content: ""; position: absolute; left: 50%; top: -12%; bottom: -12%; width: 2px; margin-left: -1px; background: linear-gradient(rgba(255, 80, 80, .95) 0 30%, transparent 30% 70%, rgba(255, 80, 80, .95) 70%); }
.fx-reticle::after { transform: rotate(90deg); }
@keyframes fxLock { from { transform: scale(2.2) rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-shadow { position: fixed; z-index: 9300; width: 34px; height: 16px; border-radius: 50%; pointer-events: none; background: radial-gradient(rgba(0, 0, 0, .7), transparent 70%); transform: translate(-50%, -50%) scale(.15); opacity: .15; }
.fx-shell2 { position: fixed; left: 0; top: 0; z-index: 9500; width: 40px; height: 14px; margin: -7px 0 0 -20px; pointer-events: none; border-radius: 3px 60% 60% 3px / 3px 50% 50% 3px; background: linear-gradient(180deg, #d9dde3, #7d858f 45%, #3b4048); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); will-change: transform; }
.fx-shell2 i { position: absolute; left: 5px; top: 0; bottom: 0; width: 4px; background: #b8862f; }
.fx-puff { position: fixed; z-index: 9450; width: 20px; height: 20px; border-radius: 50%; pointer-events: none; background: radial-gradient(rgba(235, 235, 235, .9), rgba(180, 180, 180, .4) 60%, transparent 70%); }
.fx-fireball { position: fixed; z-index: 9550; width: 70px; height: 70px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fffbe0 0 12%, #ffd24a 28%, #ff7a1f 50%, rgba(200, 40, 20, .6) 66%, transparent 72%); filter: blur(.5px); }
.fx-smoke { position: fixed; z-index: 9540; width: 40px; height: 40px; border-radius: 50%; pointer-events: none; background: radial-gradient(rgba(40, 40, 40, .85), rgba(40, 40, 40, .4) 55%, transparent 70%); }
.fx-column { position: fixed; z-index: 9550; width: 26px; height: 90px; pointer-events: none; transform-origin: 50% 100%; border-radius: 45% 45% 20% 20% / 70% 70% 10% 10%; background: linear-gradient(0deg, rgba(160, 210, 255, .5), rgba(255, 255, 255, .95) 60%, rgba(255, 255, 255, .7)); filter: blur(.4px); }
.fx-ripple { position: fixed; z-index: 9350; width: 34px; height: 18px; border-radius: 50%; pointer-events: none; border: 2px solid rgba(220, 240, 255, .9); }

/* =====================================================================
   ⏱️ Chrono Mental : la cible, le chrono qui disparaît, la frise des résultats, le bouton STOP
   ===================================================================== */
.cm { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 20px; text-align: center; }
.cm__round { margin: 0; padding: .3em 1em; border-radius: 99px; background: var(--surface); font: 600 1.05rem var(--font-title); }
.cm__ask { margin: 8px 0 0; font: 700 clamp(1.3rem, 3vw, 2rem) var(--font-title); color: var(--muted); }
.cm__target { margin: 0; font: 800 clamp(4rem, 12vw, 8rem)/1 var(--font-title); color: var(--yellow); text-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.cm__target small { font-size: .3em; color: var(--text); }
.cm__clock { position: relative; display: grid; place-items: center; width: clamp(180px, 26vw, 280px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2a2054, #120c28); box-shadow: inset 0 0 0 10px #3a2f6b, inset 0 0 0 14px var(--cyan), 0 18px 40px rgba(0, 0, 0, .5); }
.cm__clock::before { content: ""; position: absolute; left: 50%; top: 14%; width: 6px; height: 36%; margin-left: -3px; border-radius: 3px; background: var(--cyan); transform-origin: 50% 100%; }
.cm__clock.is-run::before { animation: cmHand 1s linear infinite; }
.cm__clock span { position: relative; font: 800 clamp(2.4rem, 6vw, 4rem) var(--font-title); font-variant-numeric: tabular-nums; }
.cm__clock.is-hidden span { color: var(--muted); filter: blur(1px); }
.cm__clock.is-hidden { box-shadow: inset 0 0 0 10px #3a2f6b, inset 0 0 0 14px var(--violet), 0 18px 40px rgba(0, 0, 0, .5); }
.cm__clock.is-hidden::before { animation: none; opacity: .3; }
@keyframes cmHand { to { transform: rotate(360deg); } }
.cm__hint { margin: 0; color: var(--muted); }
.cm__stopped { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 2em; }
.cm__chip { padding: .3em .8em; border-radius: 99px; background: var(--c); color: #fff; font-weight: 700; animation: ppNew .4s cubic-bezier(.2, 1.6, .4, 1) both; }
/* résultats : la frise */
.cm--res { gap: 16px; }
.cm__line { position: relative; width: min(100%, 900px); height: 120px; margin: 30px 0 6px; border-bottom: 4px solid var(--border); }
.cm__zero { position: absolute; left: 0; bottom: -26px; color: var(--muted); font-weight: 700; }
.cm__goal { position: absolute; top: -26px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--yellow); box-shadow: 0 0 14px rgba(255, 204, 61, .8); }
.cm__goal b { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; color: var(--yellow); font-family: var(--font-title); }
.cm__pin { position: absolute; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); animation: cmPin 1.2s cubic-bezier(.2, .8, .3, 1) calc(var(--k) * .15s) both; left: var(--to); }
.cm__pin i { width: 18px; height: 18px; margin-bottom: -11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 4px 8px rgba(0, 0, 0, .5); order: 2; }
.cm__pin em { order: 1; margin-bottom: calc(8px + var(--row) * 26px); padding: .1em .6em; border-radius: 99px; background: var(--c); color: #fff; font-style: normal; font-weight: 700; font-size: .85rem; white-space: nowrap; }
@keyframes cmPin { from { left: 0; opacity: 0; } 15% { opacity: 1; } }
.cm__list { list-style: none; margin: 0; padding: 0; width: min(100%, 620px); display: flex; flex-direction: column; gap: 6px; }
.cm__list li { display: grid; grid-template-columns: 2.2em 1fr auto auto 4.5em; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); text-align: left; animation: cardIn .4s ease both; }
.cm__list li.is-best { box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--yellow); }
.cm__ms { font: 800 1.1rem var(--font-title); font-variant-numeric: tabular-nums; }
.cm__list small { color: var(--muted); }
.cm__list strong { text-align: right; font: 800 1.1rem var(--font-title); color: var(--green); }
/* téléphone : le gros bouton STOP */
.sw-btn { display: grid; place-items: center; gap: 4px; width: min(78vw, 300px); aspect-ratio: 1; margin: 10px auto; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff7a8a, #d6203a 60%, #8e0f22); color: #fff; box-shadow: 0 10px 0 #6e0b1a, 0 18px 30px rgba(0, 0, 0, .5), inset 0 0 0 8px rgba(255, 255, 255, .15); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.sw-btn b { font: 800 3.4rem var(--font-title); letter-spacing: .05em; }
.sw-btn small { font-size: 2rem; }
.sw-btn:active, .sw-btn.is-done { transform: translateY(8px); box-shadow: 0 2px 0 #6e0b1a, 0 6px 12px rgba(0, 0, 0, .5), inset 0 0 0 8px rgba(255, 255, 255, .15); }
.sw-btn.is-done { filter: grayscale(.5) brightness(.8); }
@media (prefers-reduced-motion: reduce) { .cm__clock::before, .cm__pin, .cm__chip { animation: none !important; } }
/* 🎵 Chrono Tubes : règles claires (écran « Comment jouer », boutons en toutes lettres) */
.ct__sub { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.ct-rules { display: grid; gap: 10px; max-width: 640px; text-align: left; }
.ct-rules__t { margin: 0; text-align: center; font: 800 clamp(1.3rem, 2.6vw, 1.8rem) var(--font-title); }
.ct-rules ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-rules li { display: grid; grid-template-columns: 2em 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--surface); animation: cardIn .4s ease both; }
.ct-rules li:nth-child(2) { animation-delay: .3s; } .ct-rules li:nth-child(3) { animation-delay: .6s; } .ct-rules li:nth-child(4) { animation-delay: .9s; }
.ct-rules li > b { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--font-title); }
.ct-ex { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 96px; margin-top: 4px; }
.ct-ex__card, .ct-ex__new { display: grid; place-items: center; width: 74px; height: 86px; border-radius: 12px; background: linear-gradient(160deg, #fff, #ece8df); color: #1a1033; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.ct-ex__card b, .ct-ex__new b { font: 800 1.4rem var(--font-title); }
.ct-ex__card small { font-size: .62rem; text-align: center; }
.ct-ex__slot { display: grid; place-items: center; width: 54px; height: 86px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .35); font-size: 1.3rem; }
.ct-ex__slot.is-b { animation: ctSlotOk 6s ease infinite; }
.ct-ex__new { position: absolute; left: 50%; top: -80px; margin-left: -37px; background: linear-gradient(160deg, #ffd1e0, #ff9ec4); animation: ctNew 6s ease-in-out infinite; }
.ct-ex__new small { font-size: 1rem; }
@keyframes ctNew { 0%, 15% { transform: translate(0, 0) rotate(-6deg); opacity: 0; } 25% { opacity: 1; } 45% { transform: translate(0, 0) rotate(4deg); } 70%, 92% { transform: translate(84px, 85px) rotate(0); opacity: 1; } 100% { transform: translate(84px, 85px); opacity: 0; } }
@keyframes ctSlotOk { 0%, 65% { border-color: rgba(255, 255, 255, .35); } 72%, 92% { border-color: var(--green); box-shadow: 0 0 16px rgba(61, 220, 132, .7); } }
.ct-ex__cap { margin: 0; text-align: center; color: var(--muted); }
/* téléphone : la frise avec le sens du temps, et des boutons en toutes lettres */
.ct-tlbox { display: grid; gap: 4px; width: 100%; }
.ct-tl__ax { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.ct-tl__ax i { font-style: normal; }
.ui-btn.ct-slot { display: flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap; }
.ui-btn.ct-slot b { padding: .05em .45em; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: 1.15em; }
@media (prefers-reduced-motion: reduce) { .ct-ex__new, .ct-ex__slot.is-b { animation: none; } }

/* =====================================================================
   🏙️ Magnat 2 : télé (maisons, tampon VENDU, carte, billets, pions) + téléphone (portefeuille, titres)
   ===================================================================== */
.mg-sq__band { position: relative; display: flex; justify-content: center; align-items: center; }
.mg-houses { display: flex; gap: 2px; }
.mg-houses i { width: 9px; height: 8px; background: #2fbf5b; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); animation: ppNew .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.mg-sold { position: absolute; left: 50%; top: 45%; z-index: 3; padding: 1px 6px; border: 2px solid #d0102a; border-radius: 4px; color: #d0102a; background: rgba(255, 255, 255, .85); font: 900 clamp(.55rem, 1vw, .8rem) var(--font-title); letter-spacing: .08em; transform: translate(-50%, -50%) rotate(-14deg); animation: mgStamp .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mgStamp { from { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0; } }
.mg-pawn { background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--c) 30%, color-mix(in srgb, var(--c) 60%, #000) 100%); box-shadow: 0 0 0 2px #fff, 0 3px 0 color-mix(in srgb, var(--c) 50%, #000), 0 5px 8px rgba(0, 0, 0, .5); }
.mg__cardbox { position: relative; min-height: 0; perspective: 800px; }
.mg-card { position: relative; width: clamp(160px, 22vw, 240px); height: clamp(100px, 13vw, 140px); transform-style: preserve-3d; animation: mgFlip 3.4s ease both; }
.mg-card__b, .mg-card__f { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.mg-card__b { background: repeating-linear-gradient(45deg, #7c5cff 0 8px, #6a4ae8 8px 16px); font-size: 2.6rem; box-shadow: inset 0 0 0 4px #fff, 0 10px 24px rgba(0, 0, 0, .55); }
.mg-card__f { transform: rotateY(180deg); padding: 10px; background: linear-gradient(160deg, #fffaf0, #f1e6c8); color: #2b1d0e; text-align: center; }
.mg-card__f small { color: #7c5cff; font-weight: 800; }
.mg-card__f p { margin: 4px 0 0; font: 700 clamp(.75rem, 1.2vw, .95rem)/1.25 var(--font-title); }
@keyframes mgFlip { 0% { transform: translateY(-60px) rotateY(0) scale(.6); } 15% { transform: translateY(0) rotateY(0) scale(1); } 35%, 88% { transform: rotateY(180deg) scale(1.08); } 100% { transform: rotateY(180deg) scale(.9); } }
.mg-bill { position: fixed; left: 0; top: 0; z-index: 9600; width: 30px; height: 16px; margin: -8px 0 0 -15px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, #2e8b57 0 14%, #9fe0a8 14% 86%, #2e8b57 86%); box-shadow: inset 0 0 0 1px #1f6b3f, 0 2px 4px rgba(0, 0, 0, .4); }
.mg-bill::after { content: "€"; position: absolute; inset: 0; display: grid; place-items: center; color: #1f6b3f; font: 900 .6rem/1 var(--font-title); }
/* téléphone */
.ui-pad__art:has(.mgp) { width: 100%; line-height: normal; }
.mgp { display: grid; gap: 10px; }
.mgp__wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(160deg, #134a35, #0b2a1f); box-shadow: inset 0 0 0 2px #ffcc3d; }
.mgp__cash { display: flex; align-items: baseline; gap: 6px; }
.mgp__cash b { font: 800 1.6rem var(--font-title); color: #9fe0a8; }
.mgp__pos { font-size: .8rem; color: #d8f3e3; text-align: right; }
.mgp__goal { display: grid; gap: 3px; }
.mgp__goal small { color: var(--muted); text-align: right; font-size: .75rem; }
.mgp__deeds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.mgd { flex: none; display: grid; align-content: start; gap: 3px; width: 92px; min-height: 74px; padding-bottom: 5px; border-radius: 8px; overflow: hidden; background: #fffaf0; color: #2b1d0e; text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); scroll-snap-align: start; }
.mgd__h { padding: 5px 4px; background: var(--g); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.mgd__h b { display: block; font: 800 .7rem/1.15 var(--font-title); }
.mgd__h small { display: block; font-size: .6rem; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.mgd__houses { display: flex; justify-content: center; gap: 3px; min-height: 10px; }
.mgd__houses i { width: 11px; height: 10px; background: #2fbf5b; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.mgd__rent { font-weight: 800; font-size: .72rem; color: #6b4a1f; }
.mgd.is-big { width: min(100%, 260px); margin: 0 auto; animation: mgDeed .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.mgd.is-big .mgd__h b { font-size: 1.1rem; }
.mgd.is-big ul { list-style: none; margin: 0; padding: 4px 12px; display: grid; gap: 3px; }
.mgd.is-big li { display: flex; justify-content: space-between; font-size: .85rem; border-bottom: 1px dotted rgba(0, 0, 0, .2); }
.mgd.is-big li b { color: #2b1d0e; }
.mgd__f { margin: 2px 0 0; font-size: .8rem; color: #6b4a1f; }
@keyframes mgDeed { from { transform: translateY(30px) rotate(-6deg) scale(.8); opacity: 0; } }
.mgp__dice { display: flex; justify-content: center; gap: 18px; padding: 8px 0; }
.mgp-die { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 64px; height: 64px; padding: 9px; gap: 3px; border-radius: 13px; background: linear-gradient(145deg, #fff, #e4e0d6); box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .2), 0 6px 12px rgba(0, 0, 0, .5); animation: mgpRoll 1s cubic-bezier(.2, .7, .3, 1) calc(var(--k) * .12s) both; }
.mgp-die i { border-radius: 50%; }
.mgp-die i.is-on { background: radial-gradient(circle at 35% 35%, #555, #111); }
@keyframes mgpRoll { 0% { transform: translate(-60px, -80px) rotate(-540deg) scale(.6); filter: blur(2px); } 70% { transform: translate(0, 6px) rotate(10deg) scale(1.05); filter: none; } 85% { transform: translateY(-6px) rotate(-4deg); } 100% { transform: none; } }
.mgp__pay { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); font-size: 1.05rem; }
.mgp__bills { position: relative; width: 60px; height: 34px; }
.mgp__bills i { position: absolute; left: 0; top: 8px; width: 40px; height: 20px; border-radius: 2px; background: linear-gradient(90deg, #2e8b57 0 14%, #9fe0a8 14% 86%, #2e8b57 86%); box-shadow: inset 0 0 0 1px #1f6b3f; animation: mgpBill 1.2s ease-in-out infinite; }
.mgp__bills i:nth-child(2) { animation-delay: .25s; }
.mgp__bills i:nth-child(3) { animation-delay: .5s; }
.mgp__bills i:nth-child(4) { animation-delay: .75s; }
.mgp__pay.is-out .mgp__bills i { --dx: 70px; }
.mgp__pay.is-in .mgp__bills i { --dx: -70px; animation-direction: reverse; }
@keyframes mgpBill { from { transform: translateX(0) rotate(0); opacity: 1; } to { transform: translateX(var(--dx)) translateY(-14px) rotate(30deg); opacity: 0; } }
.mgp__card { padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #fffaf0, #f1e6c8); color: #2b1d0e; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); animation: mgpCard .7s ease both; }
.mgp__card small { color: #7c5cff; font-weight: 800; }
.mgp__card p { margin: 6px 0 0; font: 700 1.05rem/1.3 var(--font-title); }
@keyframes mgpCard { from { transform: perspective(600px) rotateY(180deg) scale(.7); } }
.ui-btn.mg-rollbtn { display: grid; justify-items: center; gap: 4px; min-height: 120px; border-radius: 26px; color: #3a2600; }
.ui-btn.mg-rollbtn .mgp-roll { font-size: 3rem; line-height: 1; animation: mgpShake 1.6s ease-in-out infinite; }
.ui-btn.mg-rollbtn b { font: 800 1.3rem var(--font-title); }
@keyframes mgpShake { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.ui-btn.mg-buildbtn { display: grid; grid-template-columns: 14px auto 1fr auto; align-items: center; gap: 8px; text-align: left; min-height: 48px; }
.mgp-bd { width: 14px; height: 30px; border-radius: 4px; background: var(--g); }
.ui-btn.mg-buildbtn small { color: var(--yellow); font-weight: 800; }
.ui-btn.mg-buybtn { display: grid; gap: 2px; min-height: 64px; }
.ui-btn.mg-buybtn small { font-weight: 800; opacity: .9; }
/* 💼 ventes de rues : boutons du menu, choix de la rue, de l'acheteur et du prix, encart de l'offre */
.ui-btn.mg-dealbtn { display: grid; gap: 2px; align-content: center; min-height: 58px; }
.ui-btn.mg-dealbtn b { font: 800 1rem var(--font-title); }
.ui-btn.mg-dealbtn small { font-size: .74rem; font-weight: 700; opacity: .85; }
.ui-btn.mg-pickbtn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; min-height: 56px; }
.ui-btn.mg-pickbtn > :first-child { grid-row: span 2; }
.ui-btn.mg-pickbtn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-btn.mg-pickbtn small { font-size: .78rem; font-weight: 700; opacity: .9; }
.mgp-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); text-decoration: none; }
.mgp-bank { font-size: 1.5rem; line-height: 1; }
.ui-btn.mg-pricebtn { display: grid; gap: 2px; min-height: 58px; }
.ui-btn.mg-pricebtn b { font: 800 1.2rem var(--font-title); color: var(--yellow); }
.ui-btn.mg-pricebtn small { font-size: .74rem; font-weight: 700; opacity: .85; }
.ui-btn.mg-pricebtn[disabled] b { color: inherit; }
.mgp__offer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: min(92%, 280px); padding: 6px 12px; border-radius: 14px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .9rem; text-align: center; }
.mgp__offer b { font-weight: 900; }
.mgp__offer strong { padding: 1px 8px; border-radius: 99px; background: #ffcc3d; color: #3a2600; font: 900 1.05rem var(--font-title); }
.mgp__offer.is-big { padding: 10px 14px; font-size: 1rem; line-height: 1.35; animation: mgpCard .5s ease both; }
.mgp__offer.is-big strong { font-size: 1.3rem; }
body:has(#screen .mgp) .mirror__view { max-height: 18vh; }
@media (prefers-reduced-motion: reduce) { .mgp-die, .mgp__bills i, .mgp__card, .mg-card, .mg-sold, .mgd.is-big, .mgp-roll { animation: none !important; } }

/* 🏙️ Magnat : le plateau et tous les joueurs sur le téléphone */
.mgb { position: relative; display: grid; grid-template-columns: 1.25fr repeat(5, 1fr) 1.25fr; grid-template-rows: 1.25fr repeat(5, 1fr) 1.25fr; gap: 2px; width: 100%; aspect-ratio: 1; padding: 4px; border-radius: 12px; background: #0d3b2a; box-shadow: 0 0 0 2px #c9a227; }
.mgb__sq { position: relative; display: grid; place-items: center; border-radius: 3px; background: #f3ecd8; box-shadow: inset 0 0 0 2px var(--o); overflow: hidden; }
.mgb__sq.is-sp { background: #ffe9a8; }
.mgb__sq em { font-style: normal; font-size: .8rem; line-height: 1; }
.mgb__band { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: var(--g); }
.mgb__h { position: absolute; right: 1px; bottom: 0; color: #1f8a3a; font: 900 .6rem/1 var(--font-title); }
.mgb__h::before { content: "🏠"; font-size: .5rem; }
.mgb__pawns { position: absolute; inset: auto 0 1px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1px; z-index: 2; }
.mgb__pawns u { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #fff; }
.mgb__pawns u.is-me { width: 12px; height: 12px; box-shadow: 0 0 0 2px #fff, 0 0 8px var(--c); animation: mgHop .6s ease infinite alternate; }
.mgb__sq.is-me { box-shadow: inset 0 0 0 2px var(--o), 0 0 0 2px #ffcc3d; z-index: 1; }
.mgb__mid { grid-row: 2 / 7; grid-column: 2 / 7; display: grid; place-items: center; align-content: center; gap: 4px; color: #fff; }
.mgb__mid b { font-size: 2rem; }
.mgb__mid small { color: #8fe3ff; font-weight: 700; }
.mgpl { display: grid; gap: 4px; }
.mgpl__r { display: grid; grid-template-columns: 12px 1fr auto auto; grid-template-areas: "dot name cash worth" "dot pos pos pos"; column-gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); font-size: .8rem; }
.mgpl__r u { grid-area: dot; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.mgpl__r b { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgpl__r small:nth-of-type(1) { grid-area: cash; color: #9fe0a8; font-weight: 700; }
.mgpl__r small:nth-of-type(2) { grid-area: worth; color: var(--yellow); font-weight: 700; }
.mgpl__r em { grid-area: pos; font-style: normal; color: var(--muted); font-size: .72rem; }
.mgpl__r.is-cur { box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px var(--yellow); }
.mgpl__r.is-me b::after { content: " ★"; color: var(--yellow); }
.mgpl__r.is-out { opacity: .4; }
body:has(#screen .mgb) .mirror, body:has(#screen .mgb) #mirror-btn { display: none !important; }

/* 🚄 Grande Ligne sur le téléphone : la carte, et tous les joueurs */
.glp-map { display: block; width: 100%; height: auto; margin-top: 6px; border-radius: 12px; background: radial-gradient(ellipse at 40% 40%, #f3e6c2, #e2cf9c); box-shadow: inset 0 0 0 2px #b39b5e; }
.glp-map line { stroke: #8a7a5a; stroke-width: .9; stroke-dasharray: 2 1.5; opacity: .8; }
.glp-map line.is-mount { stroke: #8a5a2b; }
.glp-map line.is-own { stroke: var(--c); stroke-width: 2.4; stroke-dasharray: none; opacity: 1; }
.glp-map line.is-closed { stroke: #d63031; stroke-width: 1.4; }
.glp-map circle { fill: #1a1033; stroke: #fff; stroke-width: .5; }
.glp-map .is-goal circle { fill: var(--me); stroke: #fff; stroke-width: .9; animation: glpGoal 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.glp-map text { font: 800 4.2px var(--font-title); fill: #2b1d0e; text-anchor: middle; paint-order: stroke; stroke: #fffaf0; stroke-width: 1px; }
@keyframes glpGoal { to { transform: scale(1.35); } }
.glp-pl { display: grid; gap: 4px; margin-top: 6px; }
.glp-pl span { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 9px; border-radius: 9px; background: rgba(0, 0, 0, .25); font-size: .8rem; }
.glp-pl u { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.glp-pl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glp-pl small { color: #9feaf3; }
.glp-pl strong { color: var(--yellow); }
.glp-pl .is-me { box-shadow: inset 0 0 0 2px var(--c); }
/* 💸 Fin de Mois sur le téléphone : factures, objets, calendrier, joueurs */
.ui-pad__art:has(.fdmp) { width: 100%; line-height: normal; }
.fdmp { display: grid; gap: 8px; }
.fdmp-bills, .fdmp-items { display: flex; flex-wrap: wrap; gap: 5px; }
.fdmp-bills span, .fdmp-items span { padding: 4px 8px; border-radius: 8px; background: var(--surface); font-size: .78rem; }
.fdmp-bills b { color: var(--red); }
.fdmp-items b { color: var(--green); }
.fdmp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 6px; border-radius: 12px; background: #fffaf0; }
.fdmp-cal > b { text-align: center; color: #7a6a4a; font-size: .62rem; text-transform: uppercase; }
.fdmp-cal__d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--k) 25%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 60%, transparent); }
.fdmp-cal__d small { position: absolute; left: 2px; top: 1px; color: #5a4a2a; font-size: .52rem; font-weight: 800; }
.fdmp-cal__d em { font-style: normal; font-size: .85rem; }
.fdmp-cal__d.is-pay { background: #ffd84d; }
.fdmp-cal__d.is-me { box-shadow: 0 0 0 2px #7c5cff, 0 0 10px rgba(124, 92, 255, .6); z-index: 1; }
.fdmp-cal__pawns { position: absolute; right: 1px; bottom: 1px; display: flex; gap: 1px; }
.fdmp-cal__pawns u { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #fff; }
.fdmp-cal__pawns u.is-me { width: 11px; height: 11px; animation: mgHop .6s ease infinite alternate; }
.fdmp-pl { display: grid; gap: 4px; }
.fdmp-pl span { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); font-size: .8rem; }
.fdmp-pl u { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.fdmp-pl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdmp-pl small { color: #9fe0a8; font-weight: 700; }
.fdmp-pl em { font-style: normal; color: var(--muted); }
.fdmp-pl .is-cur { box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px var(--yellow); }
.fdmp-pl .is-me b::after { content: " ★"; color: var(--yellow); }
body:has(#screen .fdmp-cal) .mirror, body:has(#screen .fdmp-cal) #mirror-btn, body:has(#screen .glp-map) .mirror, body:has(#screen .glp-map) #mirror-btn { display: none !important; }
@media (prefers-reduced-motion: reduce) { .glp-map .is-goal circle, .fdmp-cal__pawns u.is-me { animation: none; } }

/* 🏙️ Magnat : le plateau du téléphone, avec les noms et un centre utile */
.mgb { grid-template-columns: 1.15fr repeat(5, 1fr) 1.15fr; grid-template-rows: 1.15fr repeat(5, 1fr) 1.15fr; gap: 2px; padding: 3px; }
.mgb__sq { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding-top: 1px; color: #2b1d0e; text-align: center; }
.mgb__sq.is-sp { justify-content: center; }
.mgb__band { position: relative; height: 22%; min-height: 6px; width: 100%; display: flex; justify-content: center; align-items: center; flex: none; }
.mgb__band .mg-houses i { width: 6px; height: 5px; }
.mgb__nm { display: block; width: 100%; padding: 1px 1px 0; font: 800 clamp(.42rem, 2.1vw, .6rem)/1.05 var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.mgb__pr { display: block; font: 700 clamp(.4rem, 1.9vw, .55rem)/1.1 var(--font-title); color: #6b4a1f; }
.mgb__sq em { font-size: clamp(.7rem, 3vw, .95rem); }
.mgb__sq.is-turn { box-shadow: inset 0 0 0 2px var(--o), 0 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .8); z-index: 2; }
.mgb__h { display: none; }
.mgb__mid { gap: 5px; padding: 4px; align-content: center; justify-items: stretch; overflow: hidden; }
.mgb__turn { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; font-size: .72rem; color: #d8f3e3; }
.mgb__turn b { color: var(--c); }
.mgb__dice { display: inline-flex; gap: 3px; }
.mgb-die { display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 18px; height: 18px; padding: 2px; gap: 1px; border-radius: 4px; background: #fff; }
.mgb-die i { border-radius: 50%; }
.mgb-die i.is-on { background: #111; }
.mgb__focus { display: grid; gap: 2px; padding: 5px 6px 6px; border-radius: 8px; background: #fffaf0; color: #2b1d0e; text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); overflow: hidden; }
.mgb__focus i { display: block; height: 6px; margin: -5px -6px 2px; background: var(--g); }
.mgb__focus.is-sp { background: #ffe9a8; }
.mgb__focus b { font: 800 .74rem/1.15 var(--font-title); }
.mgb__focus span { font-size: .64rem; color: #6b4a1f; font-weight: 700; }
.mgb__feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mgb__feed li { padding: 2px 5px; border-radius: 6px; background: rgba(0, 0, 0, .35); border-left: 3px solid var(--c); color: #fff; font-size: .58rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgb__feed li:nth-child(n+2) { opacity: .7; }
.mgb__pot { text-align: center; color: #8fe3ff; font-weight: 800; font-size: .7rem; }
.mgb .mgb__mid b { font-size: inherit; }
.mgb .mgb__focus b { font-size: .74rem; }
.mgb .mgb__turn { font-size: .78rem; }
.mgpl__goal { justify-self: end; color: var(--muted); font-size: .72rem; }
/* jeux de plateau / casino sur le téléphone : pas de grosse icône en haut (la place va au plateau) */
body:has(#screen .mgp) .ui-pad__icon, body:has(#screen .fdmp) .ui-pad__icon, body:has(#screen .glp-map) .ui-pad__icon, body:has(#screen .bjp) .ui-pad__icon, body:has(#screen .pkp) .ui-pad__icon, body:has(#screen .rlw) .ui-pad__icon, body:has(#screen .rlb) .ui-pad__icon { display: none; }
/* 🏙️ Magnat : la carte de la rue (ou du Coup du sort) par-dessus le plateau du téléphone */
.mgb__over { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(8, 20, 14, .55); backdrop-filter: blur(1.5px); animation: mgbOver .3s ease both; }
@keyframes mgbOver { from { background: rgba(8, 20, 14, 0); backdrop-filter: none; } }
.mgb__over .mgd.is-big { width: min(86%, 250px); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.mgb__over .mgp__card { width: min(86%, 260px); }
.mgb__over .mgp__pay { background: rgba(0, 0, 0, .6); }

/* 🏙️ Magnat sur le téléphone : ergonomie
   - les boutons (dés, acheter…) restent collés en bas de l'écran
   - titre et minuteur plus compacts
   - toucher une rue du plateau ouvre son titre de propriété */
body:has(#screen .mgp) .ui-pad { padding-bottom: 0; }
body:has(#screen .mgp) .ui-pad__title { margin: 4px 0 0; font-size: 1.05rem; }
body:has(#screen .mgp) .ui-pad__big { margin: 0; font-size: 1.3rem; }
body:has(#screen .mgp) .ui-pad__timer { margin: 2px auto; padding: .15em .8em; font-size: .95rem; }
body:has(#screen .mgp) .ui-grid { position: sticky; bottom: 0; z-index: 30; margin-top: 4px; padding: 14px 2px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(15, 11, 31, 0), var(--bg) 26%); }
body:has(#screen .mgp) .ui-btn.mg-rollbtn { min-height: 84px; grid-auto-flow: column; gap: 12px; align-items: center; }
body:has(#screen .mgp) .ui-btn.mg-rollbtn .mgp-roll { font-size: 2.4rem; }
.mgb__r { display: none; }
.mgb label.mgb__sq { cursor: pointer; }
.mgb label.mgb__sq:active { filter: brightness(.9); }
.mgb__peek { position: absolute; inset: 0; z-index: 7; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(8, 20, 14, .6); backdrop-filter: blur(1.5px); cursor: pointer; }
.mgb__peek .mgd.is-big { width: min(86%, 250px); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.mgb__peekinfo { padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; }
.mgb__peek > small { position: absolute; right: 10px; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
#mgs-0:checked ~ .mgb__peek[data-i="0"],
#mgs-1:checked ~ .mgb__peek[data-i="1"],
#mgs-2:checked ~ .mgb__peek[data-i="2"],
#mgs-3:checked ~ .mgb__peek[data-i="3"],
#mgs-4:checked ~ .mgb__peek[data-i="4"],
#mgs-5:checked ~ .mgb__peek[data-i="5"],
#mgs-6:checked ~ .mgb__peek[data-i="6"],
#mgs-7:checked ~ .mgb__peek[data-i="7"],
#mgs-8:checked ~ .mgb__peek[data-i="8"],
#mgs-9:checked ~ .mgb__peek[data-i="9"],
#mgs-10:checked ~ .mgb__peek[data-i="10"],
#mgs-11:checked ~ .mgb__peek[data-i="11"],
#mgs-12:checked ~ .mgb__peek[data-i="12"],
#mgs-13:checked ~ .mgb__peek[data-i="13"],
#mgs-14:checked ~ .mgb__peek[data-i="14"],
#mgs-15:checked ~ .mgb__peek[data-i="15"],
#mgs-16:checked ~ .mgb__peek[data-i="16"],
#mgs-17:checked ~ .mgb__peek[data-i="17"],
#mgs-18:checked ~ .mgb__peek[data-i="18"],
#mgs-19:checked ~ .mgb__peek[data-i="19"],
#mgs-20:checked ~ .mgb__peek[data-i="20"],
#mgs-21:checked ~ .mgb__peek[data-i="21"],
#mgs-22:checked ~ .mgb__peek[data-i="22"],
#mgs-23:checked ~ .mgb__peek[data-i="23"] { display: flex; animation: mgbOver .25s ease both; }

/* 💸🚄 Fin de Mois et Grande Ligne sur le téléphone : même ergonomie que Magnat */
body:has(#screen .fdmp) .ui-pad, body:has(#screen .glp-box) .ui-pad { padding-bottom: 0; }
body:has(#screen .fdmp) .ui-pad__title, body:has(#screen .glp-box) .ui-pad__title { margin: 4px 0 0; font-size: 1.05rem; }
body:has(#screen .fdmp) .ui-pad__timer, body:has(#screen .glp-box) .ui-pad__timer { margin: 2px auto; padding: .15em .8em; font-size: .95rem; }
body:has(#screen .fdmp) .ui-grid, body:has(#screen .glp-box) .ui-grid { position: sticky; bottom: 0; z-index: 30; margin-top: 4px; padding: 14px 2px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(15, 11, 31, 0), var(--bg) 26%); }
body:has(#screen .glp-box) .ui-grid { max-height: 46vh; overflow-y: auto; }
body:has(#screen .glp-box) .ui-pad__icon { display: none; }
.fdmp-pl__m { justify-self: end; color: var(--muted); font-size: .72rem; }
.fdmp-pl__m i { font-style: normal; }
/* calendrier : toucher un jour */
.fdmp-cal { position: relative; }
.fdmp-cal label.fdmp-cal__d { cursor: pointer; }
.fdmp-peek { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: 10px; border-radius: 12px; background: rgba(20, 14, 40, .55); backdrop-filter: blur(1.5px); cursor: pointer; }
.fdmp-peek__c { display: grid; justify-items: center; gap: 4px; width: min(88%, 260px); padding: 14px; border-radius: 14px; background: #fffaf0; color: #2b1d0e; text-align: center; box-shadow: 0 0 0 4px var(--k), 0 14px 30px rgba(0, 0, 0, .55); animation: mgDeed .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.fdmp-peek__c em { font-style: normal; font-size: 2rem; }
.fdmp-peek__c small { color: #7a6a4a; font-weight: 800; }
.fdmp-peek__c b { font: 800 1.05rem var(--font-title); }
.fdmp-peek__c span { font-size: .85rem; }
.fdmp-peek__c i { padding: 2px 8px; border-radius: 99px; background: var(--c); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; }
.fdmp-peek__x { position: absolute; right: 10px; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
#fdd-1:checked ~ .fdmp-peek[data-d="1"],
#fdd-2:checked ~ .fdmp-peek[data-d="2"],
#fdd-3:checked ~ .fdmp-peek[data-d="3"],
#fdd-4:checked ~ .fdmp-peek[data-d="4"],
#fdd-5:checked ~ .fdmp-peek[data-d="5"],
#fdd-6:checked ~ .fdmp-peek[data-d="6"],
#fdd-7:checked ~ .fdmp-peek[data-d="7"],
#fdd-8:checked ~ .fdmp-peek[data-d="8"],
#fdd-9:checked ~ .fdmp-peek[data-d="9"],
#fdd-10:checked ~ .fdmp-peek[data-d="10"],
#fdd-11:checked ~ .fdmp-peek[data-d="11"],
#fdd-12:checked ~ .fdmp-peek[data-d="12"],
#fdd-13:checked ~ .fdmp-peek[data-d="13"],
#fdd-14:checked ~ .fdmp-peek[data-d="14"],
#fdd-15:checked ~ .fdmp-peek[data-d="15"],
#fdd-16:checked ~ .fdmp-peek[data-d="16"],
#fdd-17:checked ~ .fdmp-peek[data-d="17"],
#fdd-18:checked ~ .fdmp-peek[data-d="18"],
#fdd-19:checked ~ .fdmp-peek[data-d="19"],
#fdd-20:checked ~ .fdmp-peek[data-d="20"],
#fdd-21:checked ~ .fdmp-peek[data-d="21"],
#fdd-22:checked ~ .fdmp-peek[data-d="22"],
#fdd-23:checked ~ .fdmp-peek[data-d="23"],
#fdd-24:checked ~ .fdmp-peek[data-d="24"],
#fdd-25:checked ~ .fdmp-peek[data-d="25"],
#fdd-26:checked ~ .fdmp-peek[data-d="26"],
#fdd-27:checked ~ .fdmp-peek[data-d="27"],
#fdd-28:checked ~ .fdmp-peek[data-d="28"],
#fdd-29:checked ~ .fdmp-peek[data-d="29"],
#fdd-30:checked ~ .fdmp-peek[data-d="30"],
#fdd-31:checked ~ .fdmp-peek[data-d="31"] { display: flex; animation: mgbOver .25s ease both; }
/* carte : toucher pour l'agrandir */
.glp-box { position: relative; }
.glp-zoom { position: relative; display: block; cursor: zoom-in; }
.glp-zoom__hint { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.glp-map .is-city text { display: none; }
.glp-map.is-big .is-city text { display: block; font-size: 3.4px; fill: #4a3a1a; }
.glp-big { position: fixed; inset: 0; z-index: 9800; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(10, 8, 24, .88); cursor: zoom-out; }
.glp-big .glp-map { max-height: 92vh; width: 100%; margin: 0; }
#glp-zoom:checked ~ .glp-big { display: flex; animation: mgbOver .25s ease both; }
body:has(#screen .fdmp) .ui-btn--big { min-height: 84px; font-size: 1.3rem; }
body:has(#screen .glp-box) .ui-grid { position: static; max-height: none; overflow: visible; background: none; padding: 6px 0 14px; }
body:has(#screen .glp-box) .ui-btn { min-height: 44px; padding: 8px 10px; font-size: .9rem; border-radius: 12px; }

/* 🌱 Potager sur le téléphone : le jardin, le panier, tous les joueurs (même ergonomie que Magnat) */
.ui-pad__art:has(.ppp) { width: 100%; line-height: normal; }
.ppp { display: grid; gap: 8px; }
.ppp-ev { margin: 0; padding: 6px 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(61, 220, 132, .25), rgba(255, 179, 71, .2)); font-weight: 700; font-size: .82rem; text-align: center; }
.ppp-garden { display: block; width: 100%; height: auto; max-height: 42vh; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #6fbf4a, #3f8a2a 70%, #2f6b20); box-shadow: 0 0 0 3px #8a5a2b; }
.ppp-garden .pp-n { font-size: 3.4px; }
.ppp-nb { fill: rgba(0, 0, 0, .55); stroke: #fff; stroke-width: .4; }
.ppp-pl { display: grid; gap: 4px; }
.ppp-pl span { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--c); font-size: .8rem; }
.ppp-pl u { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.ppp-pl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppp-pl small { color: var(--muted); }
.ppp-pl strong { color: var(--yellow); }
.ppp-pl .is-me { box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px var(--c); }
.ppp-pl .is-me b::after { content: " ★"; color: var(--yellow); }
body:has(#screen .ppp) .ui-pad__icon, body:has(#screen .ppp) .mirror, body:has(#screen .ppp) #mirror-btn { display: none !important; }
body:has(#screen .ppp) .ui-pad { padding-bottom: 0; }
body:has(#screen .ppp) .ui-pad__title { margin: 4px 0 0; font-size: 1.05rem; }
body:has(#screen .ppp) .ui-pad__timer { margin: 2px auto; padding: .15em .8em; font-size: .95rem; }
body:has(#screen .ppp) .ui-grid { position: sticky; bottom: 0; z-index: 30; margin-top: 4px; padding: 14px 2px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(15, 11, 31, 0), var(--bg) 26%); }
body:has(#screen .ppp) .ui-btn { min-height: 48px; padding: 8px 10px; }
body:has(#screen .ppp) .ui-pad__foot { margin: 2px 0 0; font-size: .72rem; }

/* 🌍 Tour du Monde : drapeau mystère, indice, réponse sur le téléphone */
.wm-ask.is-mystery .wm-ask__flag { font-size: 1.6em; animation: wmPulse 1.2s ease-in-out infinite alternate; }
.wm-ask__hint { display: block; margin-top: 4px; color: var(--yellow); font-weight: 800; animation: ppNew .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.wm-ask__hint:empty { display: none; }
.wmp__hint { display: block; margin-top: 2px; color: var(--yellow); font-style: normal; font-weight: 800; font-size: .85rem; animation: ppNew .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.wmp__top.is-mystery .wmp__flag { transform: scale(1.3); }
.wmp--res .wmp__top.is-ok { box-shadow: inset 0 0 0 2px var(--green); }
.wmp__pts { margin-left: auto; font: 800 1.4rem var(--font-title); color: var(--green); font-style: normal; }
.wmp--res .wmp__mapwrap { pointer-events: none; }
/* ⏱️ Chrono Mental : le décompte 3, 2, 1 (télé et téléphone) */
.cm__clock span.is-cd { color: var(--yellow); animation: cmCd 1s ease-out both; }
@keyframes cmCd { from { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } }
.ui-pad__art:has(.cm-cd) { width: 100%; line-height: normal; }
.cm-cd { display: grid; justify-items: center; gap: 6px; padding: 10px 0; }
.cm-cd small { padding: .2em .8em; border-radius: 99px; background: var(--surface); color: var(--yellow); font: 800 1.2rem var(--font-title); }
.cm-cd b { display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a2f6b, #1a1033); box-shadow: inset 0 0 0 8px var(--cyan), 0 14px 30px rgba(0, 0, 0, .5); font: 800 6rem var(--font-title); color: #fff; animation: cmCd 1s ease-out both; }
.cm-cd b.is-wait { font-size: 3.4rem; animation: none; }
.cm-cd span { color: var(--muted); text-align: center; }

/* =====================================================================
   🎵 Jukebox : le lecteur YouTube, la file, et le téléphone
   ===================================================================== */
.jb { display: grid; gap: 14px; }
@media (min-width: 900px) { .jb { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); align-items: start; } }
.jb__stage { display: grid; gap: 10px; }
.jb__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px var(--pink), 0 18px 40px rgba(0, 0, 0, .5); }
.jb__screen iframe, #jb-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jb__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; text-align: center; background: radial-gradient(circle, #2a2054, #0f0b1f); }
.jb__empty b { font-size: 4rem; animation: mgpShake 2s ease-in-out infinite; }
.jb__empty[hidden] { display: none; }
.jb__now { display: flex; align-items: center; gap: 12px; min-height: 2.4em; }
.jb__now b { font-family: var(--font-title); }
.jb__now small { display: block; color: var(--muted); }
.jb__dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: wmPulse 1s ease-in-out infinite alternate; }
.jb__ctrl { display: flex; gap: 8px; align-items: center; }
.jb__votes { color: var(--yellow); font-weight: 800; }
.jb__side { display: grid; gap: 8px; }
.jb__title { margin: 0; font: 800 1.1rem var(--font-title); }
.jb__queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.jb__queue li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 4px 0 0 var(--c); animation: cardIn .35s ease both; }
.jb__queue li.is-empty { display: block; text-align: center; color: var(--muted); }
.jb__queue img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; }
.jb__queue b { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb__queue small { color: var(--muted); font-size: .75rem; }
.jb__queue em { font-style: normal; color: var(--muted); font-weight: 800; padding-right: 4px; }
/* téléphone */
.ui-pad__art:has(.jbp) { width: 100%; line-height: normal; }
.jbp { display: grid; gap: 6px; text-align: left; }
.jbp__now { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 94, 138, .3), rgba(124, 92, 255, .25)); }
.jbp__now img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.jbp__now small { display: block; color: var(--muted); font-size: .72rem; }
.jbp__now b { display: block; font-size: .85rem; line-height: 1.2; }
.jbp__now em { font-style: normal; color: var(--yellow); font-weight: 800; font-size: .8rem; }
.jbp__empty { margin: 0; padding: 10px; border-radius: 12px; background: var(--surface); text-align: center; }
.jbp__t { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.jbp__t i { font-style: normal; }
.jbp__song { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; padding: 4px; border-radius: 10px; background: var(--surface); }
.jbp__song img { width: 56px; height: 32px; object-fit: cover; border-radius: 5px; }
.jbp__song b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jbp__none { color: var(--muted); }
.ui-btn.jbp-res { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; min-height: 64px; padding: 6px; text-align: left; border-radius: 12px; }
.ui-btn.jbp-res img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.ui-btn.jbp-res b { display: block; font-size: .82rem; line-height: 1.2; font-family: var(--font-text); }
.ui-btn.jbp-res small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; font-family: var(--font-text); }
body:has(#screen .jbp) .ui-pad__icon, body:has(#screen .jbp-res) .ui-pad__icon { display: none; }

.jb__lists { display: flex; flex-wrap: wrap; gap: 6px; }
.jb__lists .chip.is-active { background: var(--grad); border-color: transparent; color: #fff; }

/* =====================================================================
   🔎 Où est Pipo ? : la scène sur l'écran et la loupe sur le téléphone
   ===================================================================== */
.pipo { display: grid; gap: 14px; }
@media (min-width: 900px) { .pipo { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.pipo__side { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; border-radius: 18px; background: var(--surface); }
.pipo__side > b { font: 800 1.4rem var(--font-title); }
.pipo__face svg, .pipo-face { width: 90px; height: 120px; background: radial-gradient(circle, #fff7d6, #ffd84d55); border-radius: 50%; animation: mgpShake 2.4s ease-in-out infinite; }
.pipo__traits { color: var(--muted); font-size: .85rem; }
.pipo__found { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.pipo__found li { display: grid; grid-template-columns: 2em 1fr auto; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 10px; background: var(--bg); box-shadow: inset 4px 0 0 var(--c); animation: cardIn .35s ease both; text-align: left; }
.pipo__found em { font-style: normal; color: var(--yellow); font-weight: 800; }
.pipo__board { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 3px #2ecc71, 0 18px 40px rgba(0, 0, 0, .45); background: #000; }
.pipo__board svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.pipo__ring, .ppw__found { fill: none; stroke: #ff3b5c; stroke-width: 4; stroke-dasharray: 10 6; animation: ppRing 1s linear infinite; }
@keyframes ppRing { to { stroke-dashoffset: -32; } }
/* téléphone */
.ppw { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: calc(100dvh - 90px); min-height: 380px; }
.ppw__top { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 14px; background: var(--surface); }
.ppw__top .pipo-face { width: 46px; height: 60px; animation: none; }
/* 🔎 le portrait de Pipo comme une petite photo : ciel, herbe, bord blanc (avant : un halo jaune ovale) */
.pipo__face svg, .pipo-face { background: linear-gradient(180deg, #bfe8ff, #e6f6ff 70%, #9be07a 70%, #7cc85a); border-radius: 18px; box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(0, 0, 0, .35); }
.ppw__top .pipo-face { border-radius: 10px; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, .35); }
.ppw__top small { display: block; color: var(--muted); font-size: .7rem; }
.ppw__top b { display: block; font: 800 1.05rem var(--font-title); }
.ppw__top span { display: block; font-size: .72rem; color: var(--muted); }
.ppw__top em { font-style: normal; font-weight: 800; font-size: 1.2rem; min-width: 3em; text-align: right; }
.ppw__top em.is-hurry { color: #ff3b5c; }
.ppw__wrap { position: relative; overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 0 0 2px #2ecc71; touch-action: none; }
.ppw__svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.ppw__zoom { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 6px; }
.ppw__zoom button { width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 1.4rem; font-weight: 800; background: rgba(15, 11, 31, .8); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.ppw__msg { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; font-weight: 800; text-align: center; color: #fff; background: rgba(15, 11, 31, .88); animation: cardIn .3s ease both; pointer-events: none; }
.ppw__msg[hidden] { display: none; }
.ppw__msg small { display: block; font-size: .8rem; opacity: .9; }
.ppw__msg.is-ok { background: #1f9d55; }
.ppw__msg.is-ko { background: #d63050; }
.ppw__msg.is-end { background: #7c5cff; }
.ppw__tap { fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 2; }
body:has(#screen .ppw) .ui-pad__icon { display: none; }
/* 🔎 Où est Pipo ? : la réponse (projecteur + anneau + flèche) */
.pp-spot { animation: ppFade .6s ease both; }
.pp-ring { fill: none; stroke: #ffd84d; stroke-width: 4; stroke-dasharray: 10 6; animation: ppRing 1s linear infinite; filter: drop-shadow(0 0 4px #ffd84d); }
.pp-arrow { animation: ppBounce .55s ease-in-out infinite alternate; }
@keyframes ppBounce { from { transform: translateY(-8px); } to { transform: translateY(0); } }
@keyframes ppFade { from { opacity: 0; } }
/* 🌱 Potager : le jardin du téléphone se zoome au doigt */
.ppp-gz { position: relative; }
.ppp-gz .ppp-garden { touch-action: none; user-select: none; -webkit-user-select: none; }
.ppp-gz__btn { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ppp-gz__btn button { width: 34px; height: 34px; border: 0; border-radius: 50%; font-size: 1.1rem; font-weight: 800; background: rgba(15, 11, 31, .75); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ppp-gz:not(.is-zoomed) .ppp-gz__btn [data-z="all"] { display: none; }

/* 🌍 carte réaliste (wm-real.js) : océan profond, plateau côtier, paysages */
.wm-real .wm-sea { fill: url(#wmOcean); }
.wm-real .wm-grid { stroke: rgba(255,255,255,.06); }
.wm-real .wm-shelf path { fill: #2f8fc4; stroke: #4fb0dc; stroke-width: 9px; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .5; }
.wm-real .wm-c { fill: var(--land, #9cbc72); stroke: rgba(40,50,30,.5); stroke-width: .7px; vector-effect: non-scaling-stroke; }
.wm-real .wm-land { filter: drop-shadow(0 1px 1.2px rgba(0,20,40,.35)); }
.wm-real .wm-c.is-target { fill: #ffcc3d; stroke: #fff; stroke-width: 1.4; }
.wm-pad.wm-real .wm-land { filter: none; }
.gl__map .wm-shelf { display: none; }
.gl__map .wm-real .wm-land { filter: none; }
/* 📸 la vraie photo du pays à la révélation */
.wm-photo { position: absolute; right: 14px; bottom: 14px; width: min(36%, 380px); margin: 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px #fff, 0 16px 40px rgba(0,0,0,.6); rotate: 2deg; animation: wmPhoto .7s cubic-bezier(.2,1.4,.4,1) both; pointer-events: none; }
.wm-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wm-photo figcaption { padding: 7px 10px; font: 700 clamp(.8rem, 1.5vw, 1rem) var(--font-title, inherit); color: #fff; background: rgba(0,0,0,.75); }
@keyframes wmPhoto { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .wm-photo { animation: none; } }

/* 🥤 Bonneteau plus réaliste : gobelet en plastique rouge (rainures, reflet, fond), ombre sur le tapis, feutrine */
.gb__table { background: var(--noise), repeating-radial-gradient(ellipse at center, rgba(255,255,255,.025) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 35%, #2aa866, #127040 55%, #0a4227 85%); }
.gb__cup::before { background:
  linear-gradient(180deg, rgba(0,0,0,.25) 0 3%, transparent 9%),
  repeating-linear-gradient(180deg, transparent 0 62%, rgba(0,0,0,.18) 62% 63.5%, rgba(255,255,255,.18) 63.5% 65%, transparent 65% 70%, rgba(0,0,0,.16) 70% 71.5%, rgba(255,255,255,.16) 71.5% 73%, transparent 73% 100%),
  linear-gradient(90deg, #6e1019 0%, #c22a39 18%, #f0505d 32%, #ffc2c6 39%, #f0505d 45%, #d63a48 62%, #a01d2b 82%, #5e0d16 100%); }
.gb__cup::after { background: linear-gradient(#f06470, #a31f2d 45%, #5e0d16); box-shadow: inset 0 2px 2px rgba(255,255,255,.35); }
.gb__cup i { left: 15%; right: 15%; top: -2%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at 45% 40%, #ff8a93, #b3242f 60%, #7a1420); box-shadow: inset 0 -1px 2px rgba(0,0,0,.35); }
.gb__slot::before { content: ""; position: absolute; left: -4%; right: -4%; bottom: -6%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); transition: opacity .45s, transform .45s; }
.gb__slot.is-up::before { opacity: .45; transform: scale(.8); }

/* 🌱 Potager plus réaliste : pelouse, terre labourée, cadre en bois, puits en pierre */
.pp__garden, .ppp-garden { background:
  repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 3px, transparent 3px 7px),
  repeating-linear-gradient(65deg, rgba(0,0,0,.05) 0 2px, transparent 2px 6px),
  radial-gradient(circle at 45% 35%, #7cc653, #4c9a32 60%, #2c6619); }
.pp-h polygon.pp-soil { fill: #7a5232; stroke: #4a2d14; stroke-width: .9; filter: drop-shadow(0 .6px .5px rgba(0,0,0,.45)); }
.pp-h polygon.pp-bed { fill: url(#ppBedTex); stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: .6; }
.pp-h.is-empty polygon.pp-bed { fill: url(#ppSoilTex); stroke: #9a6a40; stroke-dasharray: 1.5 1; }
.pp-h.is-well polygon { fill: url(#ppStone); stroke: #5b636b; stroke-width: .8; }
.pp-water { fill: url(#ppWater); stroke: #3a4048; stroke-width: 1; }
.pp-h .pp-e { filter: drop-shadow(0 .5px .4px rgba(0,0,0,.45)); }

/* 🏙️ Magnat plus réaliste : plateau en carton posé sur une table en bois, cases en papier imprimé, maisons en relief */
.mg__board {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #14563d, #0b3a29 60%, #082a1e);
  box-shadow: 0 0 0 4px #e9dfc4, 0 0 0 9px #c9a227, 0 0 0 11px #6b4423, 0 22px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.45);
}
.mg-sq {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 35%),
    repeating-linear-gradient(0deg, rgba(120,90,40,.035) 0 1px, transparent 1px 3px),
    #f1e8cf;
  box-shadow: inset 0 0 0 3px var(--o, transparent), inset 0 -2px 3px rgba(80,50,10,.18), 0 1px 1px rgba(0,0,0,.35);
}
.mg-sq.mg-sq--card { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%), #e3d8fb; }
.mg-sq__band { background: linear-gradient(180deg, color-mix(in srgb, var(--g) 70%, #fff), var(--g) 55%, color-mix(in srgb, var(--g) 75%, #000)); box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.mg-houses i { background: linear-gradient(90deg, #5fe08a 0 50%, #239a48 50%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.mg__center { background: radial-gradient(ellipse at 50% 100%, rgba(255,204,61,.12), transparent 55%), linear-gradient(transparent 70%, rgba(0,0,0,.25)); border-radius: 10px; }
.mg-pawn { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); }

/* 😅 petit mot quand on se trompe (téléphone) : discret */
.pad-oops { margin: 2px 0 0; font-size: .92rem; color: var(--muted); opacity: 0; animation: padOops .5s ease .9s forwards; }
.pad-oops__e { display: inline-block; font-size: 1.25rem; vertical-align: -2px; animation: padOopsE 1.2s ease-in-out 1.1s 2; }
@keyframes padOops { from { opacity: 0; transform: translateY(6px); } to { opacity: .9; transform: none; } }
@keyframes padOopsE { 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .pad-oops { animation: none; opacity: .9; } .pad-oops__e { animation: none; } }

/* ⚓ Bataille navale (téléphone) — v2 : placement plus clair, mini-flotte fixe en haut à droite, visée au doigt */
.bnp__help { font-size: .8rem; }
.bnp__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 460px); margin: 0 auto; }
.bnp__tool { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 44px; padding: 6px 6px; border: 0; border-radius: 12px; background: var(--surface); color: inherit; font: 600 .82rem var(--font-text); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.3); -webkit-tap-highlight-color: transparent; transition: transform .12s, background .2s; }
.bnp__tool:active { transform: translateY(1px) scale(.97); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bnp__tool:disabled { opacity: .35; cursor: default; }
.bnp__tool b { font-weight: 700; white-space: nowrap; }
.bnp__ico { display: grid; place-items: center; width: 24px; height: 24px; font-size: 1.1rem; line-height: 1; }
.bnp__dir i { display: block; width: 22px; height: 8px; border-radius: 4px 9px 9px 4px; background: linear-gradient(#e2e7ee, #7f8b99); box-shadow: 0 0 0 1.5px #1b232e; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.bnp__dir.is-v i { transform: rotate(90deg); }
.bnp__count { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; min-height: 56px; font-size: .95rem; color: var(--muted); }
.bnp__count i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); transition: background .3s, transform .3s; }
.bnp__count i.is-on { background: var(--green); transform: scale(1.15); box-shadow: 0 0 8px rgba(61,220,132,.6); }
.bnp__count span { margin-left: 6px; }
.bnp__count b { color: #fff; }
.bnp__ok { width: min(100%, 460px); margin: 4px auto 0; display: block; animation: voPop .35s ease; }

/* mini-flotte : petite, toujours visible en haut à droite */
.bnb { position: relative; }
.bnb__top, .bnb__turn { margin-right: 96px; }
button.bnb__me { position: absolute; top: 0; right: 0; z-index: 3; width: 88px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.4); text-align: center; }
button.bnb__me.is-on { box-shadow: 0 0 0 2px var(--cyan), 0 4px 14px rgba(0,0,0,.4); }
.bnb__me[hidden] { display: flex; }
.bnb__me .bnb__mini { width: 100%; flex: none; }
.bnb__me .bnb__metitle { flex: none; font-size: .75rem; line-height: 1; }

/* visée au doigt */
.bnb__grid { touch-action: none; user-select: none; -webkit-user-select: none; }
.bnb__c.is-line { background: rgba(255, 204, 61, .14); }
.bnb__c.is-hover { background: rgba(255, 204, 61, .75); box-shadow: inset 0 0 0 2px #fff, 0 0 12px rgba(255, 204, 61, .9); }
.bnb__loupe { position: absolute; z-index: 5; translate: -50% calc(-100% - 14px); min-width: 54px; padding: 6px 10px; border-radius: 14px; background: #fff; color: #1a1030; font: 800 1.5rem var(--font-title); text-align: center; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.bnb__loupe::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg; background: inherit; }
.bnb__loupe.is-bad { background: var(--red); color: #fff; }
.bnb__loupe[hidden] { display: none; }

/* 🥤 Bonneteau (téléphone) : on touche directement le gobelet */
.gb.is-pick .gb__slot { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gb.is-pick .gb__cup { animation: gbPick 1.1s ease-in-out infinite; }
.gb.is-pick .gb__slot:nth-child(odd) .gb__cup { animation-delay: .25s; }
.gb.is-pick .gb__slot:active .gb__cup { transform: translateY(-6%) scale(1.05); }
.gb.is-pick .gb__num { opacity: 1; box-shadow: 0 0 0 2px var(--yellow); }
.gb.is-picked .gb__slot:not(.is-mine) { opacity: .45; transition: opacity .3s; }
.gb__slot.is-mine .gb__cup { filter: drop-shadow(0 0 10px #ffcc3d) drop-shadow(0 10px 10px rgba(0,0,0,.45)); transform: translateY(-4%); }
.gb__slot.is-mine .gb__num { background: var(--yellow); color: #1a1030; }
@keyframes gbPick { 50% { transform: translateY(-4%); } }
@media (prefers-reduced-motion: reduce) { .gb.is-pick .gb__cup { animation: none; } }

/* ⚓ Bataille navale (téléphone) — v3 : en-tête compact, ma flotte en haut à droite, la flotte attaquée en grand au milieu */
.bnb__head { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; align-items: start; }
.bnb__side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bnb__head .bnb__top, .bnb__head .bnb__turn { margin-right: 0; }
.bnb__head .bnb__turn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 12px; min-height: 0; }
.bnb__head .bnb__turn b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnb__head .bnb__turn em { font-size: 1.1rem; }
.bnb__head .bnb__turn:empty { display: none; }
.bnb__head .bnb__top { padding: 0 2px; }
.bnb__head .bnb__score, .bnb__head .bnb__time { font-size: 1rem; }
.bnb__head .bnb__tabs { gap: 4px; }
.bnb__head .bnb__tab { padding: 4px 9px; }
.bnb__head .bnb__tab b { font-size: .82rem; }
.bnb__head .bnb__tab small { font-size: .7rem; }
.bnb__head .bnb__me { position: static; width: auto; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: default; }
.bnb__head .bnb__metitle { margin: 0; font-size: .72rem; text-align: center; line-height: 1.1; color: var(--muted); }
.bnb__head .bnb__metitle b { color: #fff; }
.bnb__head .bnb__mini { width: 100%; flex: none; }
.bnb__hint { font-size: .82rem; margin: 2px 0 0; }
/* pas mon tour : la flotte attaquée reste bien visible (juste un peu atténuée) */
.bnb__grid.is-off { opacity: .8; }

/* 🎨 Dessine et devine (téléphone) : quand on écrit, tout reste visible au-dessus du clavier */
.dd-pad.is-typing { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); z-index: 1000; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 6px; background: var(--bg, #0f0a1e); overflow: hidden; }
.dd-pad.is-typing .cl-panel__title { display: none; }
.dd-pad.is-typing .dd-pad__hint { font-size: 1.15rem; }
.dd-pad.is-typing .dd-pad__canvas { align-self: center; width: auto; max-width: 100%; height: calc(var(--vvh, 100dvh) - 116px); min-height: 90px; }
.dd-pad.is-typing #dd-msg { min-height: 0 !important; margin: 0; font-size: .85rem; }
body.dd-typing .popi-pad, body.dd-typing .fx2-layer { display: none; }
.dd-pad__form .field { min-width: 0; }
.dd-pad__form .btn { flex: none; padding-inline: 16px; }

/* 📱 téléphone : un appui ne sélectionne plus rien (plus de texte ni d'écran surligné en bleu) ;
   on peut toujours écrire et sélectionner dans les zones de saisie */
body.pad-body, body.pad-body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.pad-body input, body.pad-body textarea, body.pad-body [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.pad-body *:focus:not(:focus-visible) { outline: none; }
body.pad-body ::selection { background: transparent; }
body.pad-body input::selection, body.pad-body textarea::selection { background: color-mix(in srgb, var(--violet) 45%, transparent); }
/* écran principal (télé / ordinateur) : les tuiles et cartes de jeu ne se sélectionnent pas non plus au clic */
.modal__box button, .modal__box .on-game, .modal__box [class*="__c"], .modal__box svg { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* 🪢 Tir à la corde — scène réaliste (tug-scene.js) */
.tg3 { background: #5fb4ff; height: auto; aspect-ratio: 10 / 3; max-height: 52vh; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.tg3__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tg3 .tg3-name { font: 700 15px var(--font-title, sans-serif); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; }
.tg3 .tg3-more { font: 800 22px var(--font-title, sans-serif); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.5); stroke-width: 3px; }
.tg3 .tg3-dust { fill: #c9b48a; opacity: .75; transform-box: fill-box; transform-origin: center; animation: tg3Dust .75s ease-out forwards; }
@keyframes tg3Dust { to { transform: translate(var(--dx), -14px) scale(2.6); opacity: 0; } }
/* la fosse est dessinée dans la scène : la boîte ne sert plus qu'aux éclaboussures */
.tg3 .tg3__mud { background: none !important; box-shadow: none !important; left: 50%; bottom: 8%; width: 20%; height: 14%; }
.tg3 .tg3__mud::before, .tg3 .tg3__mud::after { display: none; }
@media (prefers-reduced-motion: reduce) { .tg3 .tg3-dust { animation: none; opacity: 0; } }

/* 😀 bouton des réactions : rangé en haut, dans la barre, au lieu de cacher les boutons du jeu en bas */
body.pad-body .react { top: calc(9px + env(safe-area-inset-top)); bottom: auto; right: 54px; }
body.pad-body .react__toggle { width: 36px; height: 36px; font-size: 1.15rem; box-shadow: 0 3px 10px rgba(0,0,0,.35); }

/* 🖼️ Portrait Mystère (téléphone) : les 24 visages tiennent sur l'écran (6 colonnes, prénoms en petit) */
body.pad-body .pm-pad { gap: 6px; }
body.pad-body .pm-pad__board { grid-template-columns: repeat(5, 1fr); gap: 5px; }
body.pad-body .pm-pad__board .pm-tile { padding: 3px; gap: 1px; border-radius: 10px; font-size: .56rem; line-height: 1.05; }
body.pad-body .pm-pad__board .pm-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
body.pad-body .pm-pad .cl-panel { padding: 10px 12px; gap: 6px; }
body.pad-body .pm-pad__mine { padding: 6px 10px; }
body.pad-body .pm-pad__mine .pm-svg { width: 44px; height: 44px; }
.pm-zoomhint { display: none !important; }

/* 🚄 Grande Ligne (téléphone) : choix en 2 colonnes compactes */
body:has(#screen .glp-box) .ui-btn { min-height: 40px; padding: 6px 8px; font-size: .78rem; line-height: 1.15; border-radius: 11px; }
body:has(#screen .gl-w.is-choosing) .glp-map { max-height: 30vh; }
.glp-zoom__hint, .glp-big { display: none !important; }

/* 🌱 Potager (téléphone) : jardin un peu plus petit, actions côte à côte (elles ne cachent plus le panier) */
body:has(#screen .ppp) .ppp-garden { max-height: 34vh; }
body:has(#screen .ppp) .ui-grid { position: sticky; bottom: 0; padding: 10px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(15, 11, 31, 0), var(--bg) 30%); }
body:has(#screen .ppp) .ui-btn { min-height: 46px; padding: 6px 6px; font-size: .9rem; }
body:has(#screen .ppp) .ui-pad__foot { display: none; }

/* 📱 barre du haut du téléphone : toujours UNE ligne et la même hauteur, avec ou sans chrono
   (avant : le chrono qui apparaît faisait passer la langue à la ligne → tout l'écran sautait vers le bas) */
body.pad-body .pad-head { flex-wrap: nowrap; }
body.pad-body .pad-head .pad-timer { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; margin: 0; border-radius: 0; flex-basis: auto; }
body.pad-body .pad-secs { margin-left: auto; flex: none; min-width: 2.8em; text-align: center; font-size: 1rem; }
body.pad-body .pad-secs[hidden] { display: inline-block; visibility: hidden; }
/* le bouton 😀 a sa place réservée tout à droite de la barre */
body.pad-body.is-live:not(.is-embed) .pad-head { padding-right: 54px; }
body.pad-body .react { right: 10px; }

/* 🥤 Bonneteau (téléphone) : le texte sous les gobelets a toujours la place de 2 lignes,
   pour que l'image ne saute pas quand le message change à la fin du mélange */
.gb-pad #gb-ph { display: block; min-height: 2.8em; margin: 0; line-height: 1.4; text-align: center; }

/* ⏱️ Chrono Mental : le temps à trouver en très gros (téléphone et télé) */
.cm-goal { display: flex; flex-direction: column; align-items: center; margin: 0; line-height: 1; }
.cm-goal span { padding: .25em .9em; border-radius: 99px; background: var(--surface); color: var(--muted); font: 700 1rem var(--font-title); }
.cm-goal b { font: 900 clamp(6rem, 34vw, 9rem)/1 var(--font-title); color: var(--yellow); text-shadow: 0 6px 0 rgba(0,0,0,.35), 0 0 30px rgba(255,204,61,.35); font-variant-numeric: tabular-nums; }
.cm-goal b small { font-size: .35em; margin-left: .08em; color: #ffe9a8; }
.cm-cd b.cm-cd__n { width: 92px; height: 92px; font-size: 2.6rem; }
.cm-cd b.cm-cd__n.is-wait { font-size: 2rem; }
.cm__target { font-size: clamp(6rem, 16vw, 11rem); }
.cm-cd .cm-goal b { display: block; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; animation: none; }

/* 🎵 Jukebox (téléphone) : la playlist commune, numérotée, avec qui a ajouté quoi */
.jbp__song { position: relative; }
.jbp__song em { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c, #7c5cff); color: #fff; font: 800 .75rem var(--font-title); font-style: normal; }
.jbp__song small { margin-left: auto; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.jbp__song.is-mine { box-shadow: inset 3px 0 0 var(--c, #7c5cff); }
.jbp__more { color: var(--muted); text-align: center; }
.jbp .jbp__song { grid-template-columns: 22px 48px minmax(0, 1fr) auto; }
.jbp .jbp__song img { width: 48px; height: 27px; }
.jbp .jbp__song small { margin-left: 0; max-width: 6em; overflow: hidden; text-overflow: ellipsis; }

/* 🂡 Casino plus réaliste : vraies cartes, dos à motif, jetons à bandes, tapis en feutre et bordure en bois */
.cz-card { width: 2.7em; height: 3.8em; font-size: 1em; }
.cz-face { display: block; border-radius: .32em; background: linear-gradient(160deg, #fffefa 0%, #f6f1e4 60%, #ebe4d2 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.45); color: #15122a; overflow: hidden; }
.cz-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%); pointer-events: none; }
.cz-card.is-red .cz-face { color: #c8102e; }
.cz-ix { position: absolute; left: .16em; top: .14em; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.cz-ix b { font: 800 .78em/1 var(--font-title); letter-spacing: -.04em; }
.cz-ix i { font-size: .62em; }
.cz-ix.is-bot { left: auto; top: auto; right: .16em; bottom: .14em; transform: rotate(180deg); }
.cz-mid { position: absolute; inset: 18% 16%; display: grid; place-items: center; }
.cz-mid i { font-size: 1.55em; line-height: 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.cz-mid.is-ace i { font-size: 2.1em; }
.cz-mid.is-fig { inset: 16% 17%; border: 1.5px solid currentColor; border-radius: .18em; background: linear-gradient(160deg, rgba(255,215,90,.28), rgba(255,255,255,0)); grid-template-rows: auto auto auto; align-content: center; gap: 0; }
.cz-mid.is-fig em { font-style: normal; font-size: .7em; color: #c99a00; line-height: 1; }
.cz-mid.is-fig b { font: 900 1.05em/1 var(--font-title); }
.cz-mid.is-fig i { font-size: .75em; }
.cz-card b::before { content: attr(data-r); }
.cz-back { background:
    linear-gradient(45deg, rgba(255,255,255,.14) 25%, transparent 25% 75%, rgba(255,255,255,.14) 75%) 0 0 / 8px 8px,
    linear-gradient(-45deg, rgba(255,255,255,.14) 25%, transparent 25% 75%, rgba(255,255,255,.14) 75%) 0 0 / 8px 8px,
    radial-gradient(circle at 50% 50%, #3a5bd9, #1d2f8a);
  box-shadow: inset 0 0 0 .16em #fff, inset 0 0 0 .22em #1d2f8a, 0 3px 8px rgba(0,0,0,.45); }
.cz-chip { position: relative; min-width: 2.5em; height: 2.5em; background:
    radial-gradient(circle, #fff3c4 0 34%, transparent 35%),
    radial-gradient(circle, transparent 0 52%, #c99a00 53% 56%, transparent 57%),
    repeating-conic-gradient(#e8b100 0 30deg, #fff 30deg 45deg),
    #e8b100;
  color: #3a2600; box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 3px 0 #8a6400, 0 6px 10px rgba(0,0,0,.45); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.cz__table, .pk__table { background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.10), transparent 60%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 30%, #1e8b4c, #0f5f31 65%, #093f20);
  box-shadow: inset 0 0 0 7px #5a3414, inset 0 0 0 9px #8b5a2b, inset 0 0 0 11px #d4af37, inset 0 0 40px rgba(0,0,0,.55), 0 16px 34px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .cz-face::after { display: none; } }

/* 🂡 Blackjack (télé) : cartes plus grandes, places centrées, règles imprimées sur le tapis */
.cz__table .cz-card { font-size: clamp(1.1rem, 2vw, 1.7rem); }
.cz__table .cz-seat .cz-card { font-size: clamp(1rem, 1.7vw, 1.45rem); }
.cz__seats { display: flex; flex-wrap: wrap; justify-content: center; }
.cz__seats .cz-seat { flex: 0 1 230px; }
.cz__print { margin: 2px auto 8px; padding: .3em 1.2em; border-top: 2px solid rgba(212,175,55,.75); border-bottom: 2px solid rgba(212,175,55,.75); color: #f3d98a; font: 800 clamp(.7rem, 1.3vw, 1rem) var(--font-title); letter-spacing: .14em; text-transform: uppercase; text-align: center; text-shadow: 0 1px 0 rgba(0,0,0,.4); opacity: .9; }

/* ♠️ Poker (télé) : vraie table ovale, bordure rembourrée, joueurs assis autour, pot en pile de jetons, bouton du donneur */
.pk2 { position: relative; width: min(100%, 1100px); aspect-ratio: 2.05; margin: 34px auto 40px; }
.pk2__rail { position: absolute; inset: 6% 7%; border-radius: 999px; background: linear-gradient(180deg, #4a2a12, #2a170a); box-shadow: inset 0 3px 0 rgba(255,255,255,.12), inset 0 -4px 10px rgba(0,0,0,.6), 0 22px 40px rgba(0,0,0,.6); padding: 2.4%; }
.pk2__felt { position: relative; width: 100%; height: 100%; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.1), transparent 60%), repeating-radial-gradient(circle at 40% 40%, rgba(255,255,255,.02) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 45%, #1f8f50, #0f6233 70%, #0a4424);
  box-shadow: inset 0 0 0 3px #d4af37, inset 0 0 0 9px rgba(0,0,0,.18), inset 0 0 50px rgba(0,0,0,.55); }
.pk2__logo { position: absolute; top: 16%; left: 50%; translate: -50% 0; color: rgba(255,255,255,.12); font: 900 clamp(.9rem, 2vw, 1.6rem) var(--font-title); letter-spacing: .3em; white-space: nowrap; pointer-events: none; }
.pk2 .pk__board { display: flex; gap: 6px; }
.pk2 .pk__board .cz-card { font-size: clamp(1.1rem, 2.1vw, 1.75rem); }
.pk2 .pk__pot { display: flex; align-items: center; gap: 8px; min-height: 2.2em; color: #ffe08a; font: 800 clamp(1rem, 1.8vw, 1.4rem) var(--font-title); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.pk2__stack { position: relative; width: 2.2em; height: 1.8em; }
.pk2__stack i { position: absolute; left: 0; bottom: calc(var(--k) * .22em); width: 2.2em; height: .9em; border-radius: 50%; background: repeating-conic-gradient(#c8102e 0 30deg, #fff 30deg 45deg); box-shadow: 0 2px 0 #7a0a1c, 0 0 0 1px rgba(0,0,0,.35); }
.pk2__stack i:nth-child(even) { background: repeating-conic-gradient(#1d4fd6 0 30deg, #fff 30deg 45deg); box-shadow: 0 2px 0 #0e2a77, 0 0 0 1px rgba(0,0,0,.35); }
.pk2__seats { position: absolute; inset: 0; display: block; }
.pk2__seat { position: absolute; translate: -50% -50%; width: clamp(150px, 20%, 220px); padding: 8px; background: linear-gradient(180deg, rgba(20,14,40,.92), rgba(10,8,24,.92)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 8px 18px rgba(0,0,0,.5); z-index: 2; }
.pk2__seat .cz-seat__hand { min-height: 0; }
.pk2__seat .cz-card.is-sm { font-size: clamp(.8rem, 1.2vw, 1.05rem); }
.pk2__seat.is-turn { transform: none; box-shadow: inset 0 0 0 3px var(--yellow), 0 0 26px rgba(255,204,61,.6), 0 8px 18px rgba(0,0,0,.5); }
.pk2__seat .cz-res { align-self: center; }
.pk2__bet { position: absolute; translate: -50% -50%; z-index: 1; font-size: clamp(.8rem, 1.2vw, 1rem); }
.pk2__dbtn { position: absolute; translate: -50% -50%; z-index: 3; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #d9d4c7); color: #1a1033; font: 900 1rem var(--font-title); box-shadow: 0 0 0 2px #1a1033, 0 4px 8px rgba(0,0,0,.5); }
.pk2__seats:has(.is-final) { position: absolute; inset: 14% 24%; display: flex; flex-direction: column; justify-content: center; gap: 8px; z-index: 3; }
.pk2:has(.is-final) .pk2__felt > * { opacity: .25; }

/* 🎡 Roulette (télé) : la roue et le tapis entiers, rien de coupé */
.rl2 { overflow: hidden; }
.rl2__wheelbox { min-width: 0; padding: 10px 6px 18px; }
.rl2__wheel { width: min(86%, 46vh, 440px); margin: 0 auto; }
@media (min-width: 900px) { .rl2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); } }
.rl2__felt { overflow: visible; }
.rl-tapis { --cell: clamp(22px, 2.9vw, 46px); margin: 0 auto; }

/* 🎡 Roulette (téléphone) : un vrai tapis — feutre vert, lignes blanches, numéros dans des pastilles, jetons posés sur les cases */
.ui-grid:has(.rlb) { padding: 8px; border-radius: 16px; background:
    repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 30%, #1d8a4b, #0e5f31 70%, #0a4424);
  box-shadow: inset 0 0 0 3px #5a3412, inset 0 0 0 5px #d4af37, 0 8px 18px rgba(0,0,0,.45); }
.ui-btn.rlb-num, .ui-btn.rlb-out { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); color: #fff; font: 800 .9rem var(--font-title); }
.ui-btn.rlb-num .rlb-l { display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 75%, #000)); box-shadow: 0 1px 2px rgba(0,0,0,.5); text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.ui-btn.rlb-out { font-size: .82rem; letter-spacing: .04em; }
.ui-btn.rlb-num:active, .ui-btn.rlb-out:active { filter: none; background: rgba(255,255,255,.18); }
.rlb-on { width: 24px; min-width: 24px; height: 24px; padding: 0; border-radius: 50%; color: #3a2600; font: 800 .62rem var(--font-title); background:
    radial-gradient(circle, #fff3c4 0 38%, transparent 39%), repeating-conic-gradient(#e8b100 0 30deg, #fff 30deg 45deg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 0 #8a6400, 0 3px 5px rgba(0,0,0,.5); }
.ui-btn.rlb-chip .rlb-coin { background: radial-gradient(circle, #fff3c4 0 36%, transparent 37%), radial-gradient(circle, transparent 0 52%, #c99a00 53% 56%, transparent 57%), repeating-conic-gradient(#e8b100 0 30deg, #fff 30deg 45deg); color: #3a2600; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 3px 0 #8a6400, 0 5px 8px rgba(0,0,0,.45); }
.ui-btn.rlb-num { display: grid; place-items: center; }

/* 🏙️ Magnat (télé) : on comprend ce qui se passe — phrase du moment, total des dés, règles, maisons et propriétaires bien visibles */
.mg__say { max-width: 92%; padding: .45em .9em; border-radius: 14px; background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 2px var(--c, #ffcc3d); color: #fff; font: 700 clamp(.85rem, 1.6vw, 1.25rem)/1.25 var(--font-title); text-align: center; min-height: 1.3em; }
.mg__say:empty { display: none; }
.mg__say.is-new { animation: mgSay .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes mgSay { from { transform: scale(.92); opacity: .3; } }
.mg__dsum { min-height: 1.3em; color: #d8f3e3; font: 700 clamp(.9rem, 1.6vw, 1.3rem) var(--font-title); }
.mg__dsum b { color: var(--yellow); font-size: 1.3em; }
.mg__rules { list-style: none; margin: 2px 0 0; padding: .4em .8em; border-radius: 12px; background: rgba(0,0,0,.25); color: #cfeedd; font-size: clamp(.62rem, 1vw, .82rem); line-height: 1.45; text-align: left; }
.mg__rules b { color: var(--yellow); }
.mg-sq { position: relative; }
.mg-own { position: absolute; right: 2px; top: 2px; z-index: 2; display: grid; place-items: center; width: clamp(13px, 1.5vw, 19px); height: clamp(13px, 1.5vw, 19px); border-radius: 50%; background: var(--c); color: #fff; font: 800 clamp(.45rem, .75vw, .65rem) var(--font-title); box-shadow: 0 0 0 2px #fff, 0 2px 3px rgba(0,0,0,.4); }
.mg-hs { position: absolute; left: 50%; top: -3px; z-index: 2; translate: -50% 0; display: flex; gap: 1px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.mg-hs i { width: clamp(10px, 1.3vw, 17px); height: clamp(9px, 1.2vw, 15px); background: linear-gradient(90deg, #5fe08a 0 50%, #239a48 50%); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); }
.mg-hs i.is-new { animation: mgHouse .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes mgHouse { from { transform: translateY(-40px) scale(1.8); opacity: 0; } }
.mg-pawn.is-hop { animation-duration: .5s; }
/* sur le téléphone : les maisons ne rejouent plus leur animation à chaque mise à jour */
.mgb__band .mg-houses i { animation: none; }
@media (prefers-reduced-motion: reduce) { .mg__say.is-new, .mg-hs i.is-new { animation: none; } }

/* 💸 Fin de Mois (télé) : vrai dé 3D, légende des cases et objectif */
.fdm__dice { grid-auto-flow: row; gap: 10px; align-content: center; }
.fdm__dice .die3d { --s: clamp(90px, 12vw, 140px); }
.fdm__dsum { padding: .2em .8em; border-radius: 99px; background: rgba(0,0,0,.55); color: var(--yellow); font: 800 clamp(1.4rem, 3vw, 2.2rem) var(--font-title); animation: mgSay .4s cubic-bezier(.2, 1.4, .4, 1); }
.fdm__help { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.fdm__goal { margin: 0; font: 700 .92rem/1.3 var(--font-title); }
.fdm__goal b { color: var(--yellow); }
.fdm__goal small { color: var(--muted); font-weight: 600; }
.fdm__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .8rem; color: #d9d3f5; }
.fdm__legend li { display: flex; gap: 6px; align-items: baseline; }
.fdm__legend i { font-style: normal; flex: none; width: 1.3em; text-align: center; }

/* 🌱 Potager Party : « comment jouer » sur la télé, boutons explicites sur le téléphone */
.pp__help { padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.pp__help-t { margin: 0 0 6px; font: 800 1rem var(--font-title); color: var(--green); }
.pp__help ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .84rem; line-height: 1.3; color: #dcd6f6; }
.pp__help li.is-act { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.05); }
.pp__help li.is-act i { font-style: normal; font-size: 1.15rem; }
.pp__help b { color: #fff; }
.ui-btn.pp-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1; }
.ui-btn.pp-act small { font: 600 .7rem var(--font-text); opacity: .92; }

/* 🚄 Grande Ligne : « comment jouer » à côté de la carte */
.gl__help { padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.gl__help-t { margin: 0 0 6px; font: 800 1rem var(--font-title); color: var(--cyan); }
.gl__help ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .82rem; line-height: 1.3; color: #dcd6f6; }
.gl__help li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.05); }
.gl__help li i { font-style: normal; font-size: 1.1rem; }
.gl__help b { color: #fff; }

/* 🎵 Chrono Tubes (téléphone) : une grande frise verticale — chansons en cartes, « ＋ » entre elles pour placer */
body:has(#screen .ct-slot2) .ui-pad__icon, body:has(#screen .ctv) .ui-pad__icon { display: none; }
.ui-grid:has(.ct-slot2) { gap: 4px; }
.ui-btn.ct-slot2 { min-height: 38px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 94, 138, .10); box-shadow: inset 0 0 0 2px rgba(255, 94, 138, .65); color: #ffd1de; font: 700 .9rem var(--font-title); border: 0; }
.ui-btn.ct-slot2 b { color: #fff; }
.ui-btn.ct-slot2:active { background: rgba(255, 94, 138, .35); }
.ui-btn.ct-card2, .ui-btn.ct-card2:disabled { opacity: 1; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(160deg, #fff8e6, #f1e3bf); color: #2b1d0e; box-shadow: 0 3px 0 #b9a171, 0 6px 12px rgba(0,0,0,.3); cursor: default; text-align: left; }
.ui-btn.ct-card2 b { flex: none; padding: .1em .45em; border-radius: 8px; background: #c8102e; color: #fff; font: 800 1rem var(--font-title); }
.ui-btn.ct-card2 span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .9rem var(--font-text); }
.ctv { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.ctv__ax { align-self: center; color: var(--muted); font-size: .75rem; }
.ctv__c { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(160deg, #fff8e6, #f1e3bf); color: #2b1d0e; box-shadow: 0 3px 0 #b9a171; }
.ctv__c b { flex: none; padding: .1em .45em; border-radius: 8px; background: #c8102e; color: #fff; font: 800 .95rem var(--font-title); }
.ctv__c span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .88rem; }
.ctv__c.is-new { box-shadow: 0 0 0 3px var(--green), 0 0 18px rgba(61,220,132,.7); animation: ppNew .6s cubic-bezier(.2, 1.6, .4, 1); }

/* =====================================================================
   ❓ « Comment jouer ? » : les règles de chaque jeu derrière une petite icône (js/regles.js)
   ===================================================================== */
/* écran principal : le bouton « ? » à côté de « Changer de jeu » */
.on-rules { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 16%, var(--surface)); color: var(--yellow); font: 800 1.2rem/1 var(--font-title); cursor: pointer; transition: transform .15s, background .15s; }
.on-rules:hover { transform: scale(1.08); background: color-mix(in srgb, var(--yellow) 28%, var(--surface)); }
.self-pad__bar .on-rules { width: 30px; height: 30px; font-size: .95rem; }
/* la fenêtre des règles */
.eq-rules { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 20, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: eqrIn .2s ease both; }
.eq-rules.is-out { animation: eqrOut .2s ease both; }
.eq-rules__card { --rcc: var(--rc, var(--sk-a, var(--violet))); width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; border-radius: 24px; background: var(--surface); color: var(--text); text-align: left;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rcc) 60%, transparent), 0 24px 60px rgba(0, 0, 0, .55); animation: eqrPop .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.eq-rules__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.eq-rules__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.9rem; line-height: 1; background: color-mix(in srgb, var(--rcc) 22%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rcc) 55%, transparent); }
.eq-rules__ttl { min-width: 0; }
.eq-rules__ttl small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.eq-rules__ttl b { display: block; font: 800 1.35rem/1.15 var(--font-title); }
.eq-rules__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 1rem; cursor: pointer; }
.eq-rules__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-rules__steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); line-height: 1.35; animation: eqrStep .35s ease both; animation-delay: calc(.06s * var(--k, 0)); }
.eq-rules__steps i { font-style: normal; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.35rem; line-height: 1; background: color-mix(in srgb, var(--rcc) 18%, transparent); }
.eq-rules__ok { align-self: stretch; }
@keyframes eqrIn { from { opacity: 0; } }
@keyframes eqrOut { to { opacity: 0; } }
@keyframes eqrPop { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes eqrStep { from { transform: translateY(8px); opacity: 0; } }
/* téléphone : la fenêtre glisse depuis le bas, tout tient sur l'écran */
.pad-body .eq-rules { align-items: end; padding: 0; }
.pad-body .eq-rules__card { width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: eqrUp .32s cubic-bezier(.2, 1, .3, 1) both; }
.pad-body .eq-rules__steps li { padding: 8px 10px; font-size: .95rem; }
@keyframes eqrUp { from { transform: translateY(100%); } }
/* télé : plus grand, lisible de loin */
@media (min-width: 1000px) {
  body:not(.pad-body) .eq-rules__card { width: min(780px, 92vw); padding: 26px 28px 22px; font-size: 1.2rem; gap: 18px; }
  body:not(.pad-body) .eq-rules__icon { width: 70px; height: 70px; font-size: 2.5rem; border-radius: 20px; }
  body:not(.pad-body) .eq-rules__ttl b { font-size: 2rem; }
  body:not(.pad-body) .eq-rules__steps li { padding: 14px 16px; gap: 16px; }
  body:not(.pad-body) .eq-rules__steps i { width: 54px; height: 54px; font-size: 1.7rem; }
}
/* téléphone : pendant un jeu, l'icône du jeu en haut à gauche porte un petit « ? » et ouvre les règles */
body.pad-body[data-skin] .pad-head .logo[data-icon] { position: relative; }
body.pad-body[data-skin] .pad-head .logo[data-icon]::after { content: "?"; position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #1a1033; font: 800 .72rem/1 var(--font-title); box-shadow: 0 0 0 2px var(--bg), 0 2px 4px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .eq-rules, .eq-rules__card, .eq-rules__steps li { animation: none !important; } }

/* =====================================================================
   🏙️ Magnat (télé) : le plateau prend toute la hauteur de l'écran ; noms des rues, pions et dés lisibles de loin
   (les règles ne sont plus imprimées au milieu : elles sont derrière le bouton « ? »)
   ===================================================================== */
.modal__box:has(.mg) { max-width: min(1720px, 98vw); }
@media (min-width: 980px) {
  .mg { grid-template-columns: min(calc(100vh - var(--rb, 0px) - 150px), calc(100% - 320px)) minmax(270px, 430px); justify-content: center; align-items: start; gap: 22px; }
  .mg__board { width: 100%; max-height: none; container-type: inline-size; gap: .45cqw; padding: .9cqw; border-radius: 2cqw; }
  .mg-sq { padding: .35cqw; border-radius: .9cqw; gap: .2cqw; }
  .mg-sq__name { font-size: clamp(.5rem, 2.05cqw, 1.5rem); }
  .mg-sq__price { font-size: clamp(.45rem, 1.65cqw, 1.2rem); }
  .mg-sq__ico { font-size: clamp(1rem, 3.6cqw, 2.6rem); }
  .mg-sq.is-corner .mg-sq__ico { font-size: clamp(1.2rem, 5cqw, 3.6rem); }
  .mg-pawn { width: clamp(14px, 3.6cqw, 36px); height: clamp(14px, 3.6cqw, 36px); font-size: clamp(.5rem, 1.7cqw, 1.05rem); }
  .mg-own { width: clamp(13px, 2.8cqw, 28px); height: clamp(13px, 2.8cqw, 28px); font-size: clamp(.45rem, 1.4cqw, .9rem); }
  .mg-hs i { width: clamp(10px, 2.3cqw, 24px); height: clamp(9px, 2.1cqw, 22px); }
  .mg__center { gap: 1.1cqw; padding: 1.4cqw; }
  .mg__logo { font-size: clamp(1.4rem, 6.8cqw, 3.8rem); }
  .mg__say { font-size: clamp(.85rem, 2.8cqw, 1.9rem); padding: .5em 1em; }
  .mg__dice { gap: 2.4cqw; }
  .mg__dice .die3d { --s: clamp(46px, 10.5cqw, 116px); }
  .mg__dsum { font-size: clamp(.9rem, 2.7cqw, 1.8rem); }
  .mg__pot { font-size: clamp(.9rem, 2.4cqw, 1.5rem); }
  .mg__feed { width: min(100%, 74cqw); gap: .5cqw; }
  .mg__feed li { font-size: clamp(.75rem, 2cqw, 1.25rem); padding: .4em .8em; }
  .mg__goal { margin: 0; font-size: clamp(.8rem, 2.1cqw, 1.35rem); }
  .mg__goal b { color: var(--yellow); }
  .mg__players { gap: 10px; }
  .mg__players li { padding: 14px 16px; gap: 14px; border-radius: 18px; }
  .mg__players li b { font: 800 clamp(1rem, 1.4vw, 1.5rem) var(--font-title); }
  .mg__players li small { font-size: clamp(.8rem, 1vw, 1.1rem); }
  .mg__players li strong { font-size: clamp(1rem, 1.5vw, 1.6rem); }
  .mg__av { width: clamp(32px, 3vw, 48px); height: clamp(32px, 3vw, 48px); font-size: clamp(.95rem, 1.4vw, 1.4rem); }
  .mg__bar { height: 8px; }
}
/* cases spéciales : l'icône en grand au-dessus du nom (comme sur un vrai plateau) */
.mg-sq__ico { display: block; line-height: 1.1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
@media (max-width: 979px) { .mg-sq__ico { font-size: 1.35em; } }

/* =====================================================================
   🚄 Grande Ligne : on comprend ce qui se passe
   ===================================================================== */
/* télé : la phrase du moment (« choisissez une ligne », « Tom construit Paris ↔ Lyon »…) */
.gl__say { padding: .55em 1em; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px var(--cyan); font: 700 clamp(1rem, 1.5vw, 1.5rem)/1.3 var(--font-title); text-align: center; }
.gl__say:empty { display: none; }
.gl__say.is-new { animation: mgSay .45s cubic-bezier(.2, 1.4, .4, 1); }
.gl__say small { display: block; margin-top: 2px; font: 600 .75em var(--font-text); color: var(--muted); }
.gl__prog { display: inline-block; margin-left: .6em; padding: .1em .6em; border-radius: 99px; background: var(--cyan); color: #04202a; font-size: .85em; white-space: nowrap; }
/* télé : la carte prend toute la hauteur de l'écran */
.modal__box:has(.gl) { max-width: min(1720px, 98vw); }
@media (min-width: 980px) {
  .gl__main { grid-template-columns: min(calc((100vh - var(--rb, 0px) - 300px) * 1.17), calc(100% - 330px)) minmax(270px, 430px); justify-content: center; gap: 20px; }
  .gl__players li { padding: 12px 14px; }
  .gl__players li b { font: 800 clamp(1rem, 1.3vw, 1.4rem) var(--font-title); }
  .gl__players li small { font-size: clamp(.8rem, 1vw, 1.05rem); }
  .gl__players li strong { font-size: clamp(1.1rem, 1.5vw, 1.6rem); }
  .gl__av { width: clamp(32px, 2.8vw, 46px); height: clamp(32px, 2.8vw, 46px); }
  .gl__feed li { font-size: clamp(.85rem, 1vw, 1.1rem); }
}

/* 📱 téléphone : une vraie carte (terre et mer dessinées par le téléphone), les lignes proposées numérotées */
.ui-pad__art:has(.glx) { width: 100%; line-height: normal; }
body:has(#screen .glx) .mirror, body:has(#screen .glx) #mirror-btn { display: none !important; }
body:has(#screen .glx) .ui-pad__icon { display: none; }
.glx { display: grid; gap: 7px; width: 100%; text-align: left; }
.glx__stat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.glx__stat > span { padding: .22em .75em; border-radius: 99px; background: var(--surface-2); font: 700 .92rem var(--font-title); }
.glx__stat b { color: var(--yellow); font-size: 1.15em; }
.glx__stat > .glx__ev { flex: 1 1 100%; text-align: center; background: color-mix(in srgb, var(--cyan) 16%, var(--surface)); font: 600 .8rem/1.3 var(--font-text); }
.glp-geo { position: relative; width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; background: linear-gradient(170deg, #4a9fd8, #2a6fae); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 10px 24px rgba(0, 0, 0, .4); }
.glx.is-choosing .glp-geo { width: min(100%, calc(40vh * 1.21)); }
.glp-geo > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.glp-land path { fill: #d8e7b5; stroke: #8aa66a; stroke-width: .14; stroke-linejoin: round; }
.glp-land path.is-play { fill: #f1f5d6; }
.glp-ov .gx-l { stroke: #6b5a3a; stroke-width: .26; stroke-dasharray: .9 .55; stroke-linecap: round; opacity: .55; }
.glp-ov .gx-l.is-mount { stroke: #8a4f1f; }
.glp-ov .gx-l.is-closed { stroke: #e74c3c; stroke-width: .35; opacity: .95; }
.glp-ov .gx-own-b { stroke: #fff; stroke-width: 1.05; stroke-linecap: round; opacity: .9; }
.glp-ov .gx-own { stroke: var(--c); stroke-width: .66; stroke-linecap: round; }
.glp-ov .gx-opt-b { stroke: #3a2600; stroke-width: 1; stroke-linecap: round; opacity: .45; }
.glp-ov .gx-opt { stroke: #ffd84d; stroke-width: .62; stroke-linecap: round; }
.glp-ov .gx-pick { stroke: var(--me); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 1.1 .55; animation: gxAnts 1s linear infinite; }
.glp-ov .gx-c { fill: #1a1033; stroke: #fff; stroke-width: .18; }
.glp-ov .gx-c.is-port { fill: #1f6fb2; }
.glp-ov .gx-c.is-goal { fill: var(--me); stroke-width: .24; }
.glp-ov .gx-goal { fill: none; stroke: var(--me); stroke-width: .3; transform-box: fill-box; transform-origin: center; animation: gxGoal 1.2s ease-in-out infinite alternate; }
.glp-ov text { font: 800 1.32px var(--font-title); fill: #2b1d0e; text-anchor: middle; paint-order: stroke; stroke: #fffdf2; stroke-width: .34px; stroke-linejoin: round; }
.glp-ov text.is-goal { font-size: 1.5px; fill: #fff; stroke: #1a1033; stroke-width: .42px; }
@keyframes gxAnts { to { stroke-dashoffset: -1.65; } }
@keyframes gxGoal { from { transform: scale(.75); opacity: .5; } to { transform: scale(1.15); opacity: 1; } }
/* les numéros sur la carte : on peut les toucher directement */
.ui-btn.glp-pick { position: absolute; z-index: 2; translate: -50% -50%; display: grid; place-items: center; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%;
  background: #ffd84d; color: #2b1d0e; font: 800 .88rem/1 var(--font-title); text-shadow: none; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, .45); }
.ui-btn.glp-pick:active { translate: -50% -50%; transform: scale(.9); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .45); }
/* tes missions secrètes */
.glx__mis { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; }
.glx__mis small { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.glx__mis span { padding: .25em .6em; border-radius: 10px; background: color-mix(in srgb, var(--me, var(--cyan)) 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--me, var(--cyan)) 45%, transparent); font-size: .8rem; }
.glx__mis span.is-done { background: rgba(61, 220, 132, .25); text-decoration: line-through; }
.glx__mis b { color: var(--yellow); }
/* les boutons des lignes : numéro, villes, coût → points */
.glo { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: center; width: 100%; text-align: left; }
.glo__n { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffd84d; color: #2b1d0e; font: 800 .82rem/1 var(--font-title); text-shadow: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.glo__t { font-size: .82rem; line-height: 1.15; }
.glo__c { font-size: .72rem; font-weight: 700; opacity: .92; }
body:has(#screen .glx) .ui-btn:not(.glp-pick) { min-height: 46px; padding: 6px 9px; border-radius: 13px; }
body:has(#screen .glx) .ui-pad { padding-bottom: 0; gap: 7px; }
body:has(#screen .glx) .ui-pad__title { margin: 2px 0 0; font-size: 1.08rem; }
body:has(#screen .glx) .ui-pad__text { margin: 0; font-size: .8rem; line-height: 1.3; max-width: 42ch; }
body:has(#screen .glx) .ui-pad__big { padding: 6px 12px; font-size: 1.15rem; letter-spacing: 0; }
body:has(#screen .glx) .ui-pad__timer { margin: 0 auto; padding: .1em .8em; font-size: .95rem; }
body:has(#screen .glx) .ui-grid { gap: 6px; padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .glp-ov .gx-pick, .glp-ov .gx-goal { animation: none; } }

/* 🃏 Chromo (téléphone) : toucher une carte la choisit, toucher la pile la joue (en plus du glisser) */
.ch2-pad .ch-hand__card.is-ok.is-sel { --lift: 34px; z-index: 3; }
.ch2-pad .ch-hand__card.is-sel .ch-card { box-shadow: inset 0 0 0 3.4cqw #fff, 0 0 0 4px #ffe37a, 0 0 28px rgba(255, 227, 122, .9), 0 14px 22px rgba(0, 0, 0, .5); }
.ch-pad__discard.is-tap { cursor: pointer; animation: chPileCall 1s ease-in-out infinite alternate; }
@keyframes chPileCall { from { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 227, 122, .5)); } to { transform: scale(1.08); filter: drop-shadow(0 0 20px #ffe37a); } }
@media (prefers-reduced-motion: reduce) { .ch-pad__discard.is-tap { animation: none; filter: drop-shadow(0 0 14px #ffe37a); } }

/* =====================================================================
   🌱 Potager Party : on comprend ce qui se passe
   ===================================================================== */
/* télé : la phrase du moment (« choisissez en secret… », « Tom arrose la parcelle 3 »…) */
.pp__say { padding: .55em 1em; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px var(--green); font: 700 clamp(1rem, 1.5vw, 1.5rem)/1.35 var(--font-title); text-align: center; }
.pp__say:empty { display: none; }
.pp__say.is-new { animation: mgSay .45s cubic-bezier(.2, 1.4, .4, 1); }
.pp__say i { font-style: normal; }
.pp__say small { display: block; margin-top: 3px; font: 600 .68em/1.4 var(--font-text); color: var(--muted); }
.pp__say small b { color: #fff; }
.pp__prog { display: inline-block; margin-left: .6em; padding: .1em .6em; border-radius: 99px; background: var(--green); color: #06240f; font-size: .85em; white-space: nowrap; }
.pp__gain { display: inline-block; padding: .02em .55em; border-radius: 99px; background: rgba(61, 220, 132, .2); box-shadow: inset 0 0 0 2px var(--green); color: #c4ffd6; white-space: nowrap; }
/* le numéro d'une parcelle, comme sur le jardin */
.pp-badge { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .25em; margin: 0 .1em; border-radius: 99px; background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 2px #fff; color: #fff; font: 800 .85em/1 var(--font-title); vertical-align: .08em; }
/* télé : ✅ a choisi / 🤔 réfléchit, puis l'action de chacun */
.pp__players li { grid-template-columns: auto 1fr auto auto; }
.pp__st { font-style: normal; font-size: 1.25em; line-height: 1; }
.pp__st.is-wait { opacity: .6; animation: ppThink 1.1s ease-in-out infinite alternate; }
@keyframes ppThink { to { transform: rotate(-12deg) scale(1.08); } }
/* les numéros des parcelles dans une pastille ; sur la télé, le nom du joueur qui agit au-dessus de la parcelle */
.pp-nb { fill: rgba(0, 0, 0, .55); stroke: #fff; stroke-width: .4; }
.pp-svg .pp-n { font-size: 3.1px; }
.pp-svg .pp-h.is-act polygon.pp-soil { stroke: #fff; stroke-width: 1.3; }
.pp-who { font: 800 3.6px var(--font-title); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: var(--c); stroke-width: 1.5px; stroke-linejoin: round; pointer-events: none; transform-box: fill-box; transform-origin: 50% 100%; animation: ppWho .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes ppWho { from { opacity: 0; transform: translateY(2px) scale(.6); } }
/* télé : le jardin prend toute la hauteur de l'écran */
.modal__box:has(.pp) { max-width: min(1720px, 98vw); }
@media (min-width: 980px) {
  .pp__main { grid-template-columns: min(calc((100vh - var(--rb, 0px) - 335px) * 1.25), calc(100% - 330px)) minmax(270px, 430px); justify-content: center; gap: 20px; }
  .pp-svg { max-height: calc(100vh - var(--rb, 0px) - 335px); }
  .pp__players li { padding: 12px 14px; }
  .pp__players li b { font: 800 clamp(1rem, 1.3vw, 1.4rem) var(--font-title); }
  .pp__players li small { font-size: clamp(.8rem, 1vw, 1.05rem); }
  .pp__players li strong { font-size: clamp(1.1rem, 1.5vw, 1.6rem); }
  .pp__av { width: clamp(32px, 2.8vw, 46px); height: clamp(32px, 2.8vw, 46px); }
  .pp__feed li { font-size: clamp(.85rem, 1vw, 1.1rem); }
}

/* 📱 téléphone : un conseil, les parcelles à toucher, des boutons qui disent ce que ça rapporte */
.ppp-tip, .ppp-need { margin: 0; padding: 7px 10px; border-radius: 12px; font-size: .84rem; line-height: 1.4; text-align: center; }
.ppp-tip { background: rgba(255, 216, 77, .13); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .6); }
.ppp-need { background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
.ppp-tip i, .ppp-need i { font-style: normal; }
.ppp-need b { letter-spacing: .04em; }
.ppp-picks { display: none !important; }
.ppp-garden .pp-h.is-dim { opacity: .35; filter: grayscale(.8); }
.ppp-garden .pp-h[data-pick] { cursor: pointer; }
.ppp-garden .pp-h.is-pick polygon.pp-soil { stroke: #ffd84d; stroke-width: 1.6; animation: ppPick .9s ease-in-out infinite alternate; }
.ppp-garden .pp-h.is-pick .pp-nb { fill: #ffd84d; }
.ppp-garden .pp-h.is-pick .pp-n { fill: #2b1d0e; stroke: none; }
@keyframes ppPick { from { stroke-opacity: .3; } }
.ppo { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: center; width: 100%; text-align: left; }
.ppo > .pp-badge { grid-row: span 2; font-size: .95rem; }
.ppo__e { font-size: .8rem; letter-spacing: -.12em; white-space: nowrap; overflow: hidden; }
.ppo__c { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.ppo__g { font-style: normal; }
.pp-w__none { font: 600 .9rem var(--font-text); opacity: .7; }
.pp-w__r small span.pp-w__s { opacity: .42; filter: grayscale(1); }
.pp-w__r small span.pp-w__s.is-ok { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .pp__st.is-wait, .pp-who, .ppp-garden .pp-h.is-pick polygon.pp-soil { animation: none; } }

/* =====================================================================
   🎵 Jukebox : la musique aussi sur le téléphone, et la liste de tout le monde bien visible
   ===================================================================== */
/* 📱 l'écran du Jukebox : d'abord « ajoute une musique » et la recherche, puis toute la liste */
body:has(#screen .jbp) .ui-pad__title { order: -3; margin: 0; }
body:has(#screen .jbp) .ui-pad__text { order: -2; margin: 0; font-weight: 700; }
body:has(#screen .jbp) .ui-form { order: -1; }
body:has(#screen .jbp) .ui-form .field { font: 600 1rem var(--font-text); letter-spacing: normal; text-align: left; }
.jbp__t { margin: 4px 0 0; font-weight: 700; }
.jbp__t i, .jbp__now i { font-style: normal; }
.jbp__t b { color: var(--text); text-transform: none; letter-spacing: 0; }
.jbp__now u { text-decoration: none; font-weight: 800; }
.jbp__empty, .jbp__none { margin: 0; padding: 10px; border-radius: 12px; background: var(--surface); font-size: .85rem; text-align: center; }
.jbp__empty { color: var(--muted); }

/* =====================================================================
   🎵 Jukebox : le son de l'écran bien visible, les musiques à la suite
   ===================================================================== */
/* télé : le bouton du son (🔊 / 🔉 / 🔇) et le volume, à droite des commandes */
.jb__ctrl { flex-wrap: wrap; }
.jb__sound { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 4px 14px 4px 4px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.jb__mute { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--pink), #7c5cff); color: #fff; font-size: 1.55rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 6px 16px rgba(0, 0, 0, .35); }
.jb__mute:hover { filter: brightness(1.12); }
.jb__mute.is-off { background: var(--surface-2); box-shadow: 0 0 0 3px var(--red, #ff4d5e); }
.jb__vol { width: clamp(90px, 11vw, 190px); accent-color: var(--pink); cursor: pointer; }
.jb__sndtxt { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.jb__sndtxt b { color: var(--text); }
/* télé : le navigateur bloque la lecture ou coupe le son → un gros bouton sur la vidéo */
.jb__start { position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; max-width: 90%; padding: .8em 1.4em; border: 0; border-radius: 99px; background: rgba(15, 11, 31, .92); color: #fff; font: 800 clamp(1rem, 1.6vw, 1.45rem)/1.3 var(--font-title); box-shadow: 0 0 0 3px var(--pink), 0 12px 30px rgba(0, 0, 0, .55); cursor: pointer; animation: jbxTap 1s ease-in-out infinite alternate; }
.jb__start[hidden] { display: none; }
/* télé : après la liste, les musiques qui reviennent en boucle */
.jb__queue li.jb__loop-t { display: block; padding: 4px 6px 0; background: none; box-shadow: none; color: var(--muted); font-size: .8rem; font-weight: 800; animation: none; }
.jb__queue li.jb__loop-t i { font-style: normal; }
.jb__queue li.is-loop { opacity: .62; }
/* 📱 téléphone : la boucle, les playlists YouTube, ajouter plusieurs musiques à la suite */
.jbp__song.is-loop { opacity: .7; }
.jbp .jbp__song.is-loop em { background: var(--surface-2); font-size: .7rem; }
.ui-pad__art:has(.jbp__pl) { width: 100%; line-height: normal; }
.jbp__pl { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(61, 220, 132, .22), rgba(124, 92, 255, .2)); text-align: center; }
.jbp__pl b { font: 800 1rem/1.25 var(--font-title); }
.jbp__pl small { color: var(--muted); font-weight: 700; }
.ui-btn.jbp-all { display: grid; gap: 2px; min-height: 56px; font-family: var(--font-title); }
.ui-btn.jbp-all b { font-size: 1.05rem; }
.ui-btn.jbp-all small { font-size: .78rem; opacity: .92; }
.ui-btn.jbp-res:disabled { opacity: 1; filter: none; }
.ui-btn.jbp-res:disabled small { color: #b9ffcf; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .jb__start { animation: none; } }
/* télé : le Jukebox prend tout l'écran (grande vidéo), la liste ne déborde plus sur le côté */
.modal__box:has(.jb) { max-width: min(1720px, 98vw); }
.jb__queue li { grid-template-columns: 72px minmax(0, 1fr) auto; }
.jb__queue li > div { min-width: 0; }
@media (min-width: 900px) {
  .jb { grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); }
  .jb__screen { width: min(100%, calc((100vh - var(--rb, 0px) - 300px) * 16 / 9)); margin: 0 auto; }
  .jb__now b { font-size: clamp(1rem, 1.35vw, 1.5rem); }
  .jb__now small { font-size: clamp(.8rem, .95vw, 1rem); }
  .jb__queue { max-height: max(220px, calc(100vh - var(--rb, 0px) - 560px)); }
}

/* =====================================================================
   🟨 Post-it : Qui suis-je ? — le post-it sur le front
   ===================================================================== */
/* un post-it (téléphone et écran) : couleur --pc, inclinaison --r, un bout de scotch en haut */
.pit-n { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 108px; padding: 20px 8px 10px;
  border-radius: 3px 3px 18px 3px; background: linear-gradient(165deg, color-mix(in srgb, var(--pc) 62%, #fff), var(--pc) 58%, color-mix(in srgb, var(--pc) 86%, #000));
  color: #2b2100; text-align: center; line-height: 1.15; transform: rotate(var(--r, 0deg)); box-shadow: 0 9px 18px rgba(0, 0, 0, .38), inset 0 -12px 20px rgba(0, 0, 0, .06); }
.pit-n::before { content: ""; position: absolute; top: -9px; left: 50%; width: 48px; height: 17px; translate: -50% 0; rotate: -4deg; background: rgba(255, 255, 255, .5); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.pit-n i { font-style: normal; font-size: 1.75rem; line-height: 1; }
.pit-n b { font: 700 .98rem/1.12 var(--font-title); overflow-wrap: anywhere; }
.pit-n__hid { opacity: .6; }
.pit-n__who { display: inline-block; max-width: 100%; margin-top: 2px; padding: .12em .6em; border-radius: 99px; background: var(--c, #555); color: #fff; font: 700 .74rem/1.3 var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pit-n__ok { position: absolute; top: -12px; right: -9px; font-style: normal; font-size: 1.45rem; line-height: 1; }
.pit-n__nb { font-size: .76rem; font-weight: 700; opacity: .7; }
.pit-n.is-turn { outline: 3px solid #fff; outline-offset: 4px; animation: pitWobble 1.8s ease-in-out infinite; }
.pit-n.is-found { filter: saturate(.8); }
.pit-n.is-off { opacity: .45; }
/* le sien, caché : un cadre vide en pointillés avec un gros ❓ */
.pit-n.is-me:not(.is-found) { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 10px, rgba(255, 255, 255, .02) 10px 20px); color: var(--text); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.pit-n.is-me:not(.is-found)::before { background: rgba(255, 255, 255, .25); }
.pit-n.is-me .pit-n__hid { opacity: 1; font-size: 2.1rem; }

/* 📱 téléphone : le personnage à faire deviner en haut, les boutons, puis tous les post-it */
.ui-pad__art:has(.pit) { display: contents; line-height: normal; }
.ui-pad__art .pit { display: contents; }
.pit-now { order: 1; }
.ui-pad:has(.pit) > .ui-pad__title { order: 2; }
.ui-pad:has(.pit) > .ui-pad__text { order: 3; }
.ui-pad:has(.pit) > .ui-grid { order: 4; }
.ui-pad:has(.pit) > .ui-pad__foot { order: 5; }
.pit__h { order: 6; margin: 12px 0 0; color: var(--muted); font: 700 .95rem var(--font-title); }
.pit__grid { order: 7; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 18px 12px; width: 100%; padding: 10px 6px 6px; }
.pit-now { display: grid; justify-items: center; gap: 5px; width: min(100%, 330px); padding: 18px 14px 16px; border-radius: 4px 4px 24px 4px; position: relative;
  background: linear-gradient(165deg, color-mix(in srgb, var(--pc) 62%, #fff), var(--pc) 60%, color-mix(in srgb, var(--pc) 88%, #000)); color: #2b2100; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); rotate: -1.5deg; animation: cardIn .35s ease; }
.pit-now::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; translate: -50% 0; rotate: 3deg; background: rgba(255, 255, 255, .5); }
.pit-now small { font: 700 .82rem var(--font-title); opacity: .75; }
.pit-now__who { padding: .12em .75em; border-radius: 99px; background: var(--c); color: #fff; font: 700 .88rem var(--font-title); }
.pit-now b { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font: 800 clamp(1.45rem, 7vw, 1.95rem)/1.1 var(--font-title); overflow-wrap: anywhere; }
.pit-now b i { font-style: normal; font-size: 1.3em; }
.pit-now em { font: 800 1.05rem var(--font-title); font-style: normal; color: #0b7a3b; }
.ui-btn.pit-vote { min-height: 64px; padding: 10px 6px; font-size: 1.02rem; }
.ui-btn.pit-vote:disabled.is-picked { opacity: 1; outline: 3px solid #fff; outline-offset: 2px; }
.ui-btn.pit-go { min-height: 78px; font-size: 1.25rem; }

/* 📺 écran principal : le joueur dont c'est le tour, son post-it caché, les votes */
.modal__box:has(.pit-tv) { max-width: min(1760px, 98vw); }
.pit-tv { display: grid; gap: 14px; }
.pit-tv__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pit-tv__chip { padding: .35em .95em; border-radius: 99px; background: var(--surface); font: 700 1rem var(--font-title); }
.pit-tv__sp { flex: 1; }
.pit-tv__stage { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 48px); padding: clamp(16px, 2vw, 28px) clamp(18px, 2.6vw, 38px);
  border-radius: 28px; background: radial-gradient(circle at 18% 35%, color-mix(in srgb, var(--c) 30%, transparent), transparent 62%), var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.pit-tv__stage.is-yes, .pit-tv__stage.is-found { box-shadow: inset 0 0 0 3px #3ddc84, 0 0 40px rgba(61, 220, 132, .25); }
.pit-tv__stage.is-no, .pit-tv__stage.is-miss { box-shadow: inset 0 0 0 3px #ff4d5e, 0 0 40px rgba(255, 77, 94, .22); }
.pit-tv__hero { display: grid; justify-items: center; gap: 14px; }
.pit-n--big { width: min(100%, 240px); aspect-ratio: 1; min-height: 0; padding: 30px 14px 18px; }
.pit-n--big::before { width: 84px; height: 26px; top: -12px; }
.pit-n--big i { font-size: clamp(3.4rem, 6.5vw, 5.4rem); }
.pit-n--big b { font-size: clamp(1.3rem, 2.1vw, 1.85rem); }
.pit-n--big.is-open { animation: pitFlip .75s cubic-bezier(.2, 1.4, .4, 1); }
.pit-tv__name { margin: 0; max-width: 100%; padding: .15em .9em; border-radius: 99px; background: var(--c); color: #fff; font: 800 clamp(1.4rem, 2.5vw, 2.2rem) var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pit-tv__panel { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.pit-tv__phase { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.7rem)/1.15 var(--font-title); }
.pit-tv__sub { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.35; }
.pit-tv__votes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.pit-tv__votes small { margin-left: 6px; color: var(--muted); font-size: 1.05rem; }
.pit-tv__stamp { margin: 0; font: 900 clamp(2.8rem, 6vw, 5rem)/1 var(--font-title); rotate: -4deg; animation: pitStamp .45s cubic-bezier(.2, 1.6, .4, 1); }
.pit-tv__stamp.is-yes { color: #3ddc84; text-shadow: 0 0 34px rgba(61, 220, 132, .45); }
.pit-tv__stamp.is-no { color: #ff4d5e; text-shadow: 0 0 34px rgba(255, 77, 94, .45); }
.pit-tv__stamp.is-maybe { color: var(--yellow); }
.pit-tv__count { display: flex; flex-wrap: wrap; gap: 12px; font: 700 1.2rem var(--font-title); }
.pit-tv__count span { padding: .2em .85em; border-radius: 99px; background: var(--surface-2); }
.pit-tv__pts { margin: 0; color: #3ddc84; font: 800 clamp(1.5rem, 2.6vw, 2.3rem) var(--font-title); }
.pit-tv__rule { margin: 0; color: var(--muted); font-size: .98rem; text-align: center; }
.pit-tv__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); justify-content: center; gap: 26px 20px; padding: 14px 8px 6px; }
.pit-n--tv { min-height: 132px; }
.pit-n--tv i { font-size: 2.2rem; }
.pit-n--tv b { font-size: 1.08rem; }
.pit-n--tv .pit-n__who { font-size: .86rem; }
.pit-tv--end { justify-items: center; text-align: center; }
.pit-tv--end .pit-tv__row { width: 100%; grid-template-columns: repeat(auto-fill, minmax(170px, 200px)); }
.pit-tv--end .pit-n { animation: pitFlip .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pitWobble { 0%, 100% { transform: rotate(var(--r, 0deg)); } 50% { transform: rotate(calc(var(--r, 0deg) * -1)) scale(1.05); } }
@keyframes pitFlip { from { transform: rotate(var(--r, 0deg)) rotateY(90deg); } to { transform: rotate(var(--r, 0deg)) rotateY(0); } }
@keyframes pitStamp { from { transform: scale(2.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) { .pit-tv__stage { grid-template-columns: 1fr; justify-items: center; } .pit-tv__panel { justify-items: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .pit-n, .pit-now, .pit-tv__stamp { animation: none !important; } }

/* =====================================================================
   📺 Écran principal (télé) : plus large pendant les parties,
   QR code pour rejoindre en grand, dans une colonne à droite (il ne cache plus le jeu)
   ===================================================================== */
:root { --pin-w: clamp(150px, 11vw, 240px); }
@media (min-width: 1000px) {
  body:not(.has-self-pad) .modal:has(> .on-joinpin:not([hidden])) { padding-right: calc(var(--pin-w) + 36px); }
  :where(.modal:has(> .on-joinpin:not([hidden]))) .modal__box { max-width: 1760px; }
  body:not(.has-self-pad) .on-joinpin { right: 14px; bottom: 18px; flex-direction: column; align-items: stretch; width: var(--pin-w); padding: 10px 10px 12px; gap: 8px; border-radius: 22px; text-align: center; transition: width .3s; }
  body:not(.has-self-pad) .on-joinpin__qr, body:not(.has-self-pad) .on-joinpin.is-big .on-joinpin__qr { width: 100%; border-radius: 14px; }
  body:not(.has-self-pad) .on-joinpin__txt { align-items: center; }
  body:not(.has-self-pad) .on-joinpin__txt small { font-size: .85rem; }
  body:not(.has-self-pad) .on-joinpin__txt b { font-size: clamp(1.7rem, 2.3vw, 2.6rem); }
  body:not(.has-self-pad) .on-joinpin__txt span { display: block; max-width: 100%; font-size: .74rem; }
  /* un clic : encore plus grand, pour scanner depuis le fond de la pièce */
  body:not(.has-self-pad) .on-joinpin.is-big { width: min(62vh, 470px); }
}
.on-joinpin.is-big .on-joinpin__qr { width: min(58vh, 440px); }

/* =====================================================================
   🏆 Salon : classement général à la place de la liste des joueurs
   ===================================================================== */
.on-rank { display: grid; gap: 8px; }
.on-rank.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); column-gap: 14px; }
.on-rank__row { display: grid; grid-template-columns: 44px 46px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, var(--surface-2)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); animation: onJoin .45s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
.on-rank__row.is-off { filter: grayscale(1); opacity: .6; }
.on-rank__pos { display: grid; place-items: center; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .22); font: 700 1.25rem var(--font-title); color: var(--muted); }
.on-rank__row.is-top .on-rank__pos { background: none; font-size: 2rem; }
.on-rank__row.is-r1 { border-color: #ffcc3d; box-shadow: 0 0 0 1px #ffcc3d, 0 8px 24px rgba(255, 204, 61, .22); }
.on-rank__row .on-player__av { width: 46px; height: 46px; font-size: 1.3rem; }
.on-rank__who { display: grid; gap: 6px; min-width: 0; }
.on-rank__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.12rem var(--font-title); }
.on-rank__bar { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.on-rank__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); transition: width .6s ease; }
.on-rank__wins { padding: .2em .65em; border-radius: 99px; background: rgba(255, 204, 61, .16); color: #ffcc3d; font: 700 .95rem var(--font-title); white-space: nowrap; }
.on-rank__pts { text-align: right; white-space: nowrap; }
.on-rank__pts b { font: 800 1.45rem var(--font-title); font-variant-numeric: tabular-nums; }
.on-rank__pts small { color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .on-rank.is-2col { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .on-rank__row { grid-template-columns: 30px 38px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px 6px 6px; }
  .on-rank__row .on-player__av { width: 38px; height: 38px; font-size: 1.05rem; }
  .on-rank__pos { height: 32px; font-size: 1rem; }
  .on-rank__row.is-top .on-rank__pos { font-size: 1.5rem; }
  .on-rank__wins { display: none; }
  .on-rank__pts b { font-size: 1.15rem; }
}

/* =====================================================================
   ⚓ Bataille navale : tout le monde sur la même mer (salves)
   ===================================================================== */
/* 📺 écran principal : la grande mer à gauche, les flottes et le fil à droite */
.modal__box:has(.bn3) { max-width: min(1760px, 98vw); }
.bn3 { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 430px); gap: clamp(14px, 2vw, 30px); align-items: start; }
.bn3__seawrap { display: grid; justify-items: center; min-width: 0; }
.bn3__sea { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--gap); padding: var(--pad); width: min(100%, calc(100vh - var(--rb, 0px) - 190px)); aspect-ratio: 1; border-radius: 22px; }
.bn3__sea .bn__c { border-radius: 3px; }
/* le radar balaie la mer pendant qu'on vise */
.bn3__radar { position: absolute; inset: -50%; z-index: 1; display: none; pointer-events: none; background: conic-gradient(from 0deg, rgba(61, 220, 132, .3), rgba(61, 220, 132, 0) 20%, transparent 100%); animation: bnRadar 3.4s linear infinite; }
.bn3__sea.is-aiming .bn3__radar { display: block; }
.bn3__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bn3__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bn3__phase { font: 800 clamp(1.15rem, 1.9vw, 1.7rem) var(--font-title); }
.bn3__time { font: 700 clamp(1.6rem, 3vw, 2.5rem) var(--font-title); color: var(--cyan); font-variant-numeric: tabular-nums; }
.bn3__time.is-hurry { color: var(--red); animation: cdHurry 1s ease infinite; }
.bn3__round { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px 16px; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(47, 212, 224, .35); }
.bn3__round p { flex: 1; margin: 0; line-height: 1.35; }
.bn3__round p + p { flex: none; }
.bn3__round:has(.bn3__pts) { flex-direction: column; align-items: stretch; gap: 6px; }
.bn3__pts { color: var(--yellow); font: 700 .95rem var(--font-title); }
.bn3__big { display: block; font: 800 clamp(1.3rem, 2.2vw, 1.9rem) var(--font-title); }
.bn3__round span { color: var(--muted); }
.bn3__n { font: 800 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--font-title); color: var(--cyan); font-variant-numeric: tabular-nums; }
.bn3__n.is-hurry { color: var(--red); }
.bn3__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--cyan), #3ddc84); transform-origin: left; animation: bn3Bar linear forwards; }
@keyframes bn3Bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bn3__fleets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bn3__f { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.4em 1.7em; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, var(--surface)), var(--surface) 75%); box-shadow: inset 3px 0 0 var(--c); }
.bn3__f b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.05rem var(--font-title); }
.bn3__f small { text-align: right; color: var(--yellow); font: 700 1.05rem var(--font-title); font-variant-numeric: tabular-nums; }
.bn3__f em { font-style: normal; text-align: center; font-size: 1.05rem; }
.bn3__f em.is-wait { color: var(--muted); animation: onWait 1.2s ease-in-out infinite; }
.bn3__f em.is-ok { animation: voPop .35s ease; }
.bn3__f.is-dead { opacity: .5; filter: grayscale(.7); }
.bn3__pips, .bn3p__pips { display: flex; align-items: center; gap: 4px; }
.bn3__pips i, .bn3p__pips i { display: block; width: calc(var(--len) * 10px); height: 10px; border-radius: 4px 10px 10px 4px; background: linear-gradient(#d3dce6, #7d8c9d); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bn3__pips i.is-sunk, .bn3p__pips i.is-sunk { background: linear-gradient(#ff8a8a, #b3242f); opacity: .55; }
.bn3__feed li { font-size: .98rem; }
.bn3__feed li i { color: var(--muted); font-style: normal; }
/* navires (épaves, et tous les navires à la fin) entourés de la couleur de leur capitaine */
.bn-ship.has-c { filter: drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 5px var(--c)) drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.bn-ship.is-sunk.has-c { filter: grayscale(.7) brightness(.45) sepia(.6) drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 4px var(--c)); }
@media (max-width: 899px) { .bn3 { grid-template-columns: minmax(0, 1fr); } .bn3__sea { width: min(100%, 70vh); } }

/* 📱 téléphone : placement sur la mer commune */
.bnp__sea { margin: 0; text-align: center; color: var(--cyan); font: 700 1rem var(--font-title); }
.bnp__moved { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 204, 61, .14); color: var(--yellow); text-align: center; font-size: .9rem; }
/* 📱 téléphone : la bataille */
.bn3p__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bn3p__round { font: 700 1.05rem var(--font-title); }
.bn3p__round b { color: var(--red); }
.bn3p__me { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; background: var(--surface); font-size: .9rem; }
.bn3p__me > span:first-child { color: var(--muted); }
.bn3p__me b { margin-left: auto; }
.bn3p .bnb__turn { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; margin-right: 0; }
.bn3p .bnb__turn.is-set { box-shadow: inset 0 0 0 2px var(--cyan); }
.bn3p .bnb__turn.is-set b { color: var(--cyan); }
.bn3p .bnb__grid.is-off { opacity: .85; }
.bn3p .bnb__c.is-own { cursor: not-allowed; }
.bn3p .bnb__c.is-aim { background: rgba(255, 204, 61, .55); box-shadow: inset 0 0 0 2px #ffcc3d, 0 0 12px rgba(255, 204, 61, .8); animation: bnbAim .5s ease infinite alternate; }
.bn3p .bnb__fb .is-ouch { color: var(--red); }
.bn3p .bnb__fb small { color: var(--yellow); }
.bn3p .bnb__turn b i { font-style: normal; }

/* =====================================================================
   🐺 La Nuit des Loups : scènes animées entre les tours (js/loups-fx.js)
   La scène couvre toute la fenêtre du jeu, puis s'efface toute seule (durée --d).
   ===================================================================== */
.lgx { --hill1: #0f0c22; --hill2: #19143a; --house: #0a0818; --tree: #0c0a1e; --win: #2a2350;
  position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; border-radius: 24px; color: #fff; text-align: center; pointer-events: none;
  background: #050314; animation: lgxIn .45s ease both, lgxOut .6s ease calc(var(--d) - 600ms) forwards; }
.lgx.is-cut { animation: lgxOut .6s ease calc(var(--d) - 600ms) forwards; }
.lgx > * { position: absolute; }
@keyframes lgxIn { from { opacity: 0; } }
@keyframes lgxOut { to { opacity: 0; } }
@keyframes lgxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgxFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ciels */
.lgx__sky { inset: 0; z-index: 0; }
.lgx__sky--dusk { background: linear-gradient(180deg, #2b1b4f 0%, #8a3a78 38%, #ff7a5a 70%, #ffc76b 100%); }
.lgx__sky--night { background: radial-gradient(ellipse at 75% 30%, rgba(90, 100, 200, .25), transparent 55%), linear-gradient(180deg, #03020c 0%, #0b0a2a 55%, #1a1238 100%); }
.lgx__sky--dawn { background: linear-gradient(180deg, #3b2a6b 0%, #d45d8a 38%, #ff9a6b 66%, #ffe2a0 100%); }
.lgx__sky--day { background: linear-gradient(180deg, #3f9cff 0%, #8fd0ff 55%, #fff0c4 100%); }
.lgx__sky--eve { background: linear-gradient(180deg, #24306a 0%, #6a4fa8 48%, #ff9f72 100%); }
.lgx__sky--blood { background: radial-gradient(ellipse at 50% 42%, #6a0f1c 0%, #2a050c 55%, #0b0105 100%); }
.lgx__sky--torch { background: radial-gradient(ellipse at 50% 70%, #5a2c10 0%, #241006 55%, #090302 100%); }
.lgx__in-night { animation: lgxFadeIn 2.2s ease .5s both; }
.lgx__in-day { animation: lgxFadeIn 1.6s ease 1.4s both; }
.lgx__out-night { animation: lgxFadeOut 1.6s ease .1s both; }

/* étoiles qui scintillent */
.lgx__stars, .lg__stars { inset: 0 0 38% 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92px 84px, #fff 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 166px 40px, #fffbe0 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 232px 126px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 54px 150px, #dfe8ff 50%, transparent 51%);
  background-size: 260px 180px; }
.lgx__stars--b, .lg__stars { background-size: 340px 230px; background-position: 120px 60px; }
.lgx--night .lgx__stars { opacity: 0; animation: lgxFadeIn 1.6s ease 1.8s forwards, lgxTwinkle 1.4s ease-in-out 3.4s infinite alternate; }
.lgx--night .lgx__stars--b { animation-delay: 2.2s, 3.8s; }
.lgx--dawn .lgx__stars { animation: lgxFadeOut 1.2s ease .2s both; }
.lgx--win .lgx__stars { animation: lgxTwinkle 1.4s ease-in-out infinite alternate; }
.lgx--win .lgx__stars--b { animation-delay: -.7s; }
@keyframes lgxTwinkle { from { opacity: 1; } to { opacity: .45; } }

/* soleil et lune */
.lgx__sun { left: 50%; top: 40%; z-index: 2; width: clamp(90px, 11vw, 160px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #ffd94a 55%, #ff9f3d 100%); box-shadow: 0 0 60px 22px rgba(255, 190, 80, .55), 0 0 160px 70px rgba(255, 140, 60, .3); }
.lgx__sun span { position: absolute; inset: -70%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 232, 160, .35) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%, transparent 70%); mask: radial-gradient(circle, transparent 28%, #000 30%, transparent 70%); animation: lgxSpin 16s linear infinite; }
.lgx__sun.is-setting { animation: lgxSunSet 2.4s cubic-bezier(.45, 0, .8, .6) .1s both; }
.lgx__sun.is-rising { animation: lgxSunRise 2.2s cubic-bezier(.2, .7, .3, 1) .7s both; }
.lgx__sun.is-rising { top: 52%; }
.lgx__sun.is-big { width: clamp(120px, 15vw, 220px); }
@keyframes lgxSunSet { from { transform: translateY(0); filter: none; } to { transform: translateY(340%); filter: hue-rotate(-25deg) saturate(1.4); } }
@keyframes lgxSunRise { from { transform: translateY(320%); filter: hue-rotate(-30deg) saturate(1.5); } to { transform: translateY(0); filter: none; } }
@keyframes lgxSpin { to { transform: rotate(360deg); } }
.lgx__moon { right: 13%; top: 20%; z-index: 2; width: clamp(120px, 15vw, 230px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef4, #ebe8d4 58%, #cbc7ad); box-shadow: 0 0 60px 20px rgba(255, 255, 230, .32), 0 0 180px 70px rgba(170, 180, 255, .18); }
.lgx__moon i { position: absolute; border-radius: 50%; background: rgba(150, 145, 120, .35); box-shadow: inset 2px 2px 4px rgba(0, 0, 0, .15); }
.lgx__moon i:nth-child(1) { left: 22%; top: 30%; width: 18%; height: 18%; }
.lgx__moon i:nth-child(2) { left: 55%; top: 52%; width: 24%; height: 24%; }
.lgx__moon i:nth-child(3) { left: 40%; top: 18%; width: 10%; height: 10%; }
.lgx__moon.is-rising { animation: lgxMoonUp 2.6s cubic-bezier(.2, .7, .3, 1) .9s both; }
.lgx__moon.is-setting { animation: lgxMoonDown 1.6s cubic-bezier(.5, 0, .8, .5) both; }
.lgx__moon.is-blood { width: clamp(160px, 20vw, 300px); top: 12%; background: radial-gradient(circle at 38% 34%, #ffb3a1, #d8342e 58%, #7a0f14); box-shadow: 0 0 70px 26px rgba(255, 60, 50, .4), 0 0 200px 80px rgba(200, 20, 30, .25); animation: lgxPulse 2.4s ease-in-out infinite alternate; }
@keyframes lgxMoonUp { from { transform: translateY(260%); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
@keyframes lgxMoonDown { to { transform: translateY(260%); opacity: .2; } }
@keyframes lgxPulse { to { box-shadow: 0 0 90px 34px rgba(255, 60, 50, .55), 0 0 240px 100px rgba(200, 20, 30, .3); } }

/* collines, maisons, sapins (silhouettes) */
.lgx__land, .lg__land { left: 0; right: 0; bottom: 0; z-index: 3; width: 100%; height: 46%; }
.lgx__hill1 { fill: var(--hill1); }
.lgx__hill2 { fill: var(--hill2); }
.lgx__house, .lgx__chim { fill: var(--house); }
.lgx__tree { fill: var(--tree); }
.lgx__win { fill: var(--win); }
.lgx--night .lgx__win { fill: #ffcf5a; animation: lgxWinOff .35s ease calc(1.1s + var(--k) * .42s) forwards; }
.lgx--dawn .lgx__win { fill: #2a2350; animation: lgxWinOn .35s ease calc(1s + var(--k) * .3s) forwards; }
@keyframes lgxWinOff { to { fill: #241c44; } }
@keyframes lgxWinOn { to { fill: #ffd76a; } }
.lgx--dawn { --hill1: #2d3f4a; --hill2: #4a4a6a; --house: #2a2236; --tree: #1f2e34; }
.lgx--saved, .lgx--debate, .lgx--win:not(:has(.is-blood)) { --hill1: #4f9a4c; --hill2: #74b86c; --house: #9a5f45; --tree: #2f7a3d; --win: #a8dcff; }
.lgx--vote { --hill1: #33504a; --hill2: #4a5a78; --house: #4a3346; --tree: #263f3a; --win: #ffcf6a; }
.lgx--saved .lgx__land, .lgx--debate .lgx__land, .lgx--vote .lgx__land { filter: drop-shadow(0 -2px 10px rgba(0, 0, 0, .15)); }

/* le loup qui hurle devant la lune */
.lgx__wolf { right: 11%; bottom: 9%; z-index: 4; height: 50%; aspect-ratio: 200 / 260; overflow: visible; filter: drop-shadow(0 0 6px rgba(190, 200, 255, .35)); }
.lgx__wolf path { fill: #07060f; }
.lgx__rock { fill: #0c0a1c !important; }
.lgx__wolfbody { transform-box: fill-box; transform-origin: 40% 100%; }
.lgx__howl path { fill: none !important; stroke: rgba(230, 235, 255, .75); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.lgx__wolf.is-howl { animation: lgxWolfIn 1s cubic-bezier(.2, .8, .3, 1) 1.7s both; }
.lgx__wolf.is-howl .lgx__wolfbody { animation: lgxHowl 2s ease-in-out 2.5s both; }
.lgx__wolf.is-howl .lgx__howl path { animation: lgxWave 1s ease-out 2.8s 2; }
.lgx__wolf.is-howl .lgx__howl path:nth-child(2) { animation-delay: 2.95s; }
.lgx__wolf.is-howl .lgx__howl path:nth-child(3) { animation-delay: 3.1s; }
.lgx__wolf.is-pack { right: auto; left: var(--x); height: calc(44% * var(--s)); translate: -50% 0; }
.lgx--win .lgx__wolf.is-howl { animation-delay: calc(.15s + var(--k, 0) * .35s); }
.lgx--win .lgx__wolf.is-howl .lgx__wolfbody { animation-delay: calc(.5s + var(--k, 0) * .7s); }
.lgx--win .lgx__wolf.is-howl .lgx__howl path { animation-delay: calc(.7s + var(--k, 0) * .7s); }
@keyframes lgxWolfIn { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lgxHowl { 0% { transform: rotate(0); } 25%, 80% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes lgxWave { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -10px); } }

/* brume et oiseaux */
.lgx__fog { left: -50%; right: -50%; bottom: 2%; z-index: 5; height: 28%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(ellipse at 30% 60%, rgba(200, 210, 255, .22), transparent 60%), radial-gradient(ellipse at 72% 50%, rgba(200, 210, 255, .16), transparent 60%); animation: lgxDrift 10s linear infinite alternate; }
.lgx__fog--b { bottom: 10%; opacity: .7; animation-duration: 14s; animation-direction: alternate-reverse; }
@keyframes lgxDrift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.lgx__birds { inset: 0; z-index: 5; }
.lgx__birds svg { position: absolute; left: -60px; top: calc(16% + var(--k) * 4%); width: calc(30px + var(--k) * 4px); overflow: visible; animation: lgxFly 3.2s linear calc(1.1s + var(--k) * .22s) both; }
.lgx__birds path { fill: none; stroke: #2a2340; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 80%; animation: lgxFlap .28s ease-in-out infinite alternate; }
@keyframes lgxFly { from { transform: translate(0, 0); } to { transform: translate(calc(100vw + 120px), -40px); } }
@keyframes lgxFlap { to { transform: scaleY(.35); } }

/* les titres */
.lgx__title { left: 0; right: 0; top: 13%; z-index: 7; display: grid; justify-items: center; gap: 6px; padding: 0 24px; text-shadow: 0 4px 20px rgba(0, 0, 0, .55); }
.lgx__title.is-top { top: 7%; }
.lgx__title.is-low { top: 16%; }
.lgx__title small { font: 700 clamp(1rem, 1.8vw, 1.4rem) var(--font-title); letter-spacing: .08em; opacity: .85; animation: lgxUp .7s ease .5s both; }
.lgx__title b { font: 900 clamp(2.6rem, 7vw, 5.6rem)/1 var(--font-title); animation: lgxTitle 1.1s cubic-bezier(.2, 1.1, .3, 1) 1.1s both; }
.lgx__title p { margin: 4px 0 0; max-width: 34ch; font-size: clamp(1.05rem, 1.8vw, 1.45rem); opacity: .92; animation: lgxUp .7s ease 1.8s both; }
.lgx--night .lgx__title b { color: #ece8ff; text-shadow: 0 0 30px rgba(150, 130, 255, .8), 0 4px 18px rgba(0, 0, 0, .6); animation-delay: 1.4s; }
.lgx--night .lgx__title p { animation-delay: 2.1s; }
.lgx--dawn .lgx__title b { color: #fff6d8; text-shadow: 0 0 30px rgba(255, 170, 80, .8), 0 4px 18px rgba(0, 0, 0, .45); animation-delay: 1.2s; }
.lgx--debate .lgx__title small, .lgx--vote .lgx__title small { animation-delay: .1s; }
.lgx--debate .lgx__title b, .lgx--vote .lgx__title b { animation-delay: .35s; }
.lgx--debate .lgx__title p, .lgx--vote .lgx__title p { animation-delay: .9s; }
.lgx--saved .lgx__title b { font-size: clamp(2rem, 4.6vw, 3.8rem); color: #eafff0; text-shadow: 0 0 28px rgba(80, 230, 140, .8), 0 4px 18px rgba(0, 0, 0, .45); animation-delay: .9s; }
.lgx--tie .lgx__title b { animation-delay: 1.3s; }
.lgx--win .lgx__title b { animation-delay: .8s; }
.lgx--win:has(.is-blood) .lgx__title b { color: #ffd6d6; text-shadow: 0 0 34px rgba(255, 50, 60, .9), 0 4px 18px rgba(0, 0, 0, .6); }
@keyframes lgxUp { from { transform: translateY(18px); opacity: 0; } }
@keyframes lgxTitle { from { letter-spacing: .45em; opacity: 0; filter: blur(12px); transform: scale(.9); } }

/* la victime / le verdict : son nom, sa carte de rôle */
.lgx__mid { position: relative !important; z-index: 6; display: grid; justify-items: center; gap: 14px; padding: 0 20px; }
.lgx__kick { font: 700 clamp(1.15rem, 2.2vw, 1.8rem) var(--font-title); opacity: .92; animation: lgxUp .6s ease .9s both; }
.lgx__pulse { animation: lgxUp .5s ease .1s both, lgxBeat .45s ease-in-out .6s 4 alternate; }
@keyframes lgxBeat { to { transform: scale(1.06); opacity: .75; } }
.lgx__name { font: 900 clamp(2.6rem, 6.5vw, 5rem)/1.05 var(--font-title); color: #fff; text-shadow: 0 0 26px var(--c), 0 0 60px var(--c), 0 5px 0 rgba(0, 0, 0, .45); animation: lgxStamp .65s cubic-bezier(.2, 1.6, .4, 1) 1.4s both; }
@keyframes lgxStamp { from { transform: scale(2.4); opacity: 0; filter: blur(6px); } }
.lgx__card { width: clamp(130px, 12vw, 180px); aspect-ratio: 3 / 4; perspective: 900px; animation: lgxUp .5s ease 1.9s both; }
.lgx__cardin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: lgxFlip .9s cubic-bezier(.3, 1.3, .5, 1) 2.6s both; }
.lgx__cardback, .lgx__cardfront { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.lgx__cardback { background: repeating-linear-gradient(45deg, #3b2a7a 0 10px, #2a1d5e 10px 20px); box-shadow: inset 0 0 0 4px #c9b6ff, 0 14px 34px rgba(0, 0, 0, .55); font-size: 2.6rem; }
.lgx__cardfront { transform: rotateY(180deg); background: linear-gradient(160deg, #fffaf0, #f0e4c8); color: #2a1d10; box-shadow: inset 0 0 0 4px #d9b56a, 0 0 40px rgba(255, 220, 140, .5); }
.lgx__cardfront span { font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; }
.lgx__cardfront b { font: 800 clamp(1rem, 1.6vw, 1.35rem) var(--font-title); }
.lgx__card.is-wolf .lgx__cardfront { background: linear-gradient(160deg, #4a0d16, #1d0408); color: #ffd6d6; box-shadow: inset 0 0 0 4px #ff4d5e, 0 0 50px rgba(255, 50, 60, .75); }
@keyframes lgxFlip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.lgx__res { margin: 0; font: 800 clamp(1.4rem, 3vw, 2.3rem) var(--font-title); color: #a8d8ff; text-shadow: 0 0 20px rgba(120, 190, 255, .6); animation: lgxStamp .55s cubic-bezier(.2, 1.6, .4, 1) 3.9s both; }
.lgx__res.is-wolf { color: #ff5a68; text-shadow: 0 0 24px rgba(255, 50, 60, .9); }
.lgx--verdict .lgx__name { animation-delay: 2.1s; }
.lgx--verdict .lgx__card { animation-delay: 2.5s; }
.lgx--verdict .lgx__cardin { animation-delay: 3.2s; }
/* coups de griffes */
.lgx__claws { left: 50%; top: 50%; z-index: 7; width: min(70%, 640px); translate: -50% -50%; overflow: visible; animation: lgxShake .4s linear .3s, lgxClawFade .8s ease 1.3s forwards; }
.lgx__claws path { fill: none; stroke: #ff2a3d; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; filter: drop-shadow(0 0 10px #ff2a3d); animation: lgxDraw .22s ease-out .25s forwards; }
.lgx__claws path:nth-child(2) { animation-delay: .38s; }
.lgx__claws path:nth-child(3) { animation-delay: .51s; }
@keyframes lgxDraw { to { stroke-dashoffset: 0; } }
@keyframes lgxClawFade { to { opacity: .16; } }
@keyframes lgxShake { 25% { transform: translate(-8px, 4px); } 50% { transform: translate(7px, -5px); } 75% { transform: translate(-4px, -3px); } }
/* yeux de loup dans le noir */
.lgx__eyes { left: 10%; top: 14%; z-index: 2; display: flex; gap: 16px; opacity: 0; animation: lgxFadeIn .4s ease 4s forwards, lgxBlink 2.2s ease-in-out 4.6s infinite; }
.lgx__eyes i { width: 22px; height: 11px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: #ff3a48; box-shadow: 0 0 16px #ff3a48, 0 0 34px rgba(255, 40, 50, .6); }
@keyframes lgxBlink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* torches du verdict */
.lgx__torch { bottom: 16%; z-index: 3; width: 14px; height: 32%; border-radius: 6px; background: linear-gradient(90deg, #3a2010, #6a3c1c, #3a2010); }
.lgx__torch--l { left: 9%; }
.lgx__torch--r { right: 9%; }
.lgx__torch i { position: absolute; left: 50%; bottom: 96%; width: 54px; height: 82px; translate: -50% 0; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff6c2 0 18%, #ffc24d 36%, #ff6a1f 62%, rgba(220, 40, 0, 0) 74%); filter: blur(1px); transform-origin: 50% 100%;
  box-shadow: 0 0 80px 40px rgba(255, 120, 40, .28); animation: lgxFlame .16s ease-in-out infinite alternate; }
.lgx__torch--r i { animation-delay: -.08s; }
@keyframes lgxFlame { from { transform: scale(1, .92) skewX(-3deg); } to { transform: scale(.94, 1.08) skewX(4deg); } }

/* bouclier de la guérisseuse */
.lgx__shield { left: 50%; bottom: 19%; z-index: 6; width: clamp(200px, 22vw, 320px); aspect-ratio: 1; translate: -50% 0; }
.lgx__shield i { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border: 3px solid rgba(140, 255, 180, .85); border-bottom: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(120, 255, 170, .45), rgba(60, 200, 120, .12) 70%, transparent); box-shadow: 0 0 40px rgba(80, 230, 140, .6), inset 0 0 30px rgba(140, 255, 180, .4);
  transform-origin: 50% 100%; animation: lgxDome .8s cubic-bezier(.2, 1.4, .4, 1) .35s both, lgxGlow 1.2s ease-in-out 1.2s infinite alternate; }
.lgx__shield span { position: absolute; left: 50%; top: 58%; margin: -16px 0 0 -16px; font-size: 2rem; animation: lgxOrbit 2.6s linear calc(var(--k) * -.325s) infinite, lgxFadeIn .4s ease .6s both; }
@keyframes lgxDome { from { transform: scale(0); opacity: 0; } }
@keyframes lgxGlow { to { box-shadow: 0 0 70px rgba(80, 230, 140, .9), inset 0 0 40px rgba(140, 255, 180, .6); } }
@keyframes lgxOrbit { from { transform: rotate(0) translateX(clamp(110px, 12vw, 170px)) rotate(0); } to { transform: rotate(360deg) translateX(clamp(110px, 12vw, 170px)) rotate(-360deg); } }

/* débat : la cloche sonne, des bulles apparaissent */
.lgx__bellshape { fill: #e7b84a; stroke: #6a4a10; stroke-width: 2; transform-box: fill-box; transform-origin: 50% 0; animation: lgxBell .375s ease-in-out .2s 6 alternate; }
.lgx__bellbox { fill: #1d140e; }
@keyframes lgxBell { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.lgx__rings { left: 50%; bottom: 26%; z-index: 4; width: 1px; height: 1px; }
.lgx__rings i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 3px solid rgba(255, 230, 150, .8); opacity: 0; animation: lgxRing 1.4s ease-out calc(.25s + var(--n, 0) * .75s) 2; }
.lgx__rings i:nth-child(2) { --n: .33; }
.lgx__rings i:nth-child(3) { --n: .66; }
@keyframes lgxRing { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.lgx__bubbles { inset: 0; z-index: 6; }
.lgx__bubbles span { position: absolute; left: var(--x); top: var(--y); min-width: 54px; padding: 8px 14px; border-radius: 22px; background: #fff; color: #2a1d4a; font: 900 clamp(1.3rem, 2.2vw, 1.9rem) var(--font-title);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: lgxPop .45s cubic-bezier(.3, 1.7, .5, 1) calc(.6s + var(--k) * .2s) both, lgxBob 1.6s ease-in-out calc(1.1s + var(--k) * .2s) infinite alternate; }
.lgx__bubbles span::after { content: ""; position: absolute; left: 22px; bottom: -9px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes lgxPop { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
@keyframes lgxBob { to { translate: 0 -10px; } }

/* vote : les bulletins volent dans l'urne */
.lgx__urn { left: 50%; bottom: 14%; z-index: 6; width: clamp(150px, 14vw, 210px); aspect-ratio: 5 / 4; translate: -50% 0; display: grid; place-items: center; border-radius: 12px 12px 18px 18px;
  background: linear-gradient(160deg, #6a8cff, #3a54c8); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .2), 0 16px 30px rgba(0, 0, 0, .4); animation: lgxUp .5s ease both; }
.lgx__urn span { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.lgx__slot { position: absolute; top: 10px; left: 25%; right: 25%; height: 10px; border-radius: 5px; background: #121a40; }
.lgx__ballots { left: 50%; bottom: calc(14% + clamp(150px, 14vw, 210px) * .8 - 8px); z-index: 5; width: 1px; height: 1px; }
.lgx__ballots i { position: absolute; left: -22px; top: -30px; width: 44px; height: 56px; border-radius: 4px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); opacity: 0;
  animation: lgxBallot 1s cubic-bezier(.4, .1, .5, 1) calc(.3s + var(--k) * .24s) both; }
.lgx__ballots i::after { content: "✗"; position: absolute; inset: 0; display: grid; place-items: center; color: #d23a48; font: 900 1.6rem var(--font-title); }
@keyframes lgxBallot { 0% { transform: translate(calc(var(--sx) * 38vw), -30vh) rotate(calc(var(--sx) * 200deg)); opacity: 0; } 15% { opacity: 1; }
  78% { transform: translate(0, -20px) rotate(0); opacity: 1; } 100% { transform: translate(0, 34px) scaleY(.3); opacity: 0; } }

/* égalité : la balance hésite */
.lgx__scale { left: 50%; bottom: 18%; z-index: 6; width: clamp(220px, 22vw, 320px); height: clamp(160px, 18vw, 240px); translate: -50% 0; }
.lgx__post { position: absolute; left: 50%; bottom: 0; width: 12px; height: 86%; translate: -50% 0; border-radius: 6px; background: linear-gradient(90deg, #a87a2a, #f0c868, #a87a2a); }
.lgx__post::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 120px; height: 16px; translate: -50% 0; border-radius: 8px; background: #a87a2a; }
.lgx__beam { position: absolute; left: 0; right: 0; top: 10%; height: 10px; border-radius: 5px; background: linear-gradient(#f0c868, #a87a2a); animation: lgxTilt 2.6s ease-in-out .3s both; }
.lgx__beam b { position: absolute; top: 10px; width: 34%; height: 46%; }
.lgx__beam b:first-child { left: -6%; }
.lgx__beam b:last-child { right: -6%; }
.lgx__beam b::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 70%; background: #f0c868; box-shadow: -22px 0 0 #f0c868, 22px 0 0 #f0c868; }
.lgx__beam b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; border-radius: 0 0 60px 60px; background: linear-gradient(#f0c868, #a87a2a); }
@keyframes lgxTilt { 0% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 42% { transform: rotate(12deg); } 62% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } 100% { transform: rotate(0); } }

/* mouvement réduit : une image fixe qui s'efface */
.lgx.is-calm { animation: lgxIn .3s ease both, lgxOut .4s ease 1.2s forwards; }
.lgx.is-calm * { animation: none !important; }
.lgx.is-calm .lgx__cardin { transform: rotateY(180deg); }

/* =====================================================================
   🐺 La Nuit des Loups : le décor de l'écran (village, étoiles) et les maisons
   ===================================================================== */
.lg { --hill1: #8cc97a; --hill2: #a9d98f; --house: #c98a5a; --tree: #5aa860; --win: #bfe6ff; min-height: min(calc(100vh - var(--rb, 0px) - 260px), 760px); }
.lg.is-night { --hill1: #120e2a; --hill2: #1c1640; --house: #0d0a20; --tree: #0f0c24; --win: #ffcf5a; }
.lg > * { position: relative; z-index: 1; }
.lg > .lg__land, .lg > .lg__stars { position: absolute; z-index: 0; pointer-events: none; }
.lg > .lg__sky { position: absolute; z-index: 0; }
.lg__land { height: 40%; opacity: .7; transition: opacity 1.2s; }
.lg__land path, .lg__land rect { transition: fill 1.2s; }
.lg__stars { opacity: 0; transition: opacity 1.4s; animation: lgxTwinkle 1.8s ease-in-out infinite alternate; }
.lg.is-night .lg__stars { opacity: .9; }
.lg.is-night .lg__moon { animation: lgxPulseMoon 3s ease-in-out infinite alternate; }
@keyframes lgxPulseMoon { to { box-shadow: 0 0 70px rgba(255, 255, 255, .75), inset -12px -6px 0 #d9d9c6; } }
.lg__phase { animation: lgxUp .6s ease both; }
.lg-hut { backdrop-filter: blur(4px); }
.lg-hut.is-fresh { animation: lgShake .5s ease 1.25s; }
.lg-hut.is-fresh .lg-hut__icon { display: inline-block; animation: lgTomb .9s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
@keyframes lgTomb { from { transform: translateY(-70px) scale(1.8) rotate(-20deg); opacity: 0; } }
@keyframes lgShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .lg__stars, .lg.is-night .lg__moon, .lg-hut.is-fresh, .lg-hut.is-fresh .lg-hut__icon { animation: none !important; } }

/* =====================================================================
   🏆 Classement général en bas de l'écran principal pendant les jeux
   ===================================================================== */
.modal:has(.on-rankbar:not([hidden])) { --rb: 58px; }
.on-rankbar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 12, 50, .65), rgba(10, 6, 30, .85)); border-radius: 0 0 24px 24px; }
.on-rankbar[hidden] { display: none; }
.on-rankbar__t { flex: none; font: 800 1rem var(--font-title); color: var(--yellow); white-space: nowrap; }
.on-rankbar__list { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; padding: 4px 2px;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.on-rankbar__p { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 5px; border-radius: 999px; background: var(--surface);
  border: 2px solid transparent; box-shadow: inset 4px 0 0 var(--c); font-size: 1rem; white-space: nowrap; }
.on-rankbar__p i { min-width: 1.7em; font-style: normal; font-weight: 800; text-align: center; color: var(--muted); }
.on-rankbar__p.is-r1, .on-rankbar__p.is-r2, .on-rankbar__p.is-r3 { box-shadow: none; }
.on-rankbar__p.is-r1 i, .on-rankbar__p.is-r2 i, .on-rankbar__p.is-r3 i { font-size: 1.15rem; }
.on-rankbar__p b { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.on-rankbar__p em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--yellow); }
.on-rankbar__p.is-r1 { border-color: #ffd23f; background: linear-gradient(90deg, rgba(255, 210, 63, .22), var(--surface)); box-shadow: 0 0 14px rgba(255, 210, 63, .35); }
.on-rankbar__p.is-r2 { border-color: #cfd8e6; }
.on-rankbar__p.is-r3 { border-color: #e0995a; }
.on-rankbar__p.is-off { opacity: .45; }
.on-rankbar__p.is-up em { animation: rbUp .8s ease; }
.on-rankbar__p s { display: inline-block; overflow: hidden; text-decoration: none; font: 800 .9rem var(--font-title); color: var(--green); animation: rbGain 2.2s ease forwards; }
@keyframes rbUp { 35% { transform: scale(1.35); color: var(--green); } }
@keyframes rbGain { 0% { opacity: 0; max-width: 0; } 12% { opacity: 1; max-width: 5em; } 80% { opacity: 1; max-width: 5em; } 100% { opacity: 0; max-width: 0; } }
@media (max-width: 760px) { .on-rankbar { padding: 6px 10px; gap: 8px; min-height: 46px; border-radius: 0; } .on-rankbar__t span { display: none; } .on-rankbar__p { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .on-rankbar__p em, .on-rankbar__p s { animation: none; } }

/* =====================================================================
   🕵️ L'Affaire Belvédère : la table des enquêteurs — on voit qui montre une carte à qui
   (✗ = interrogé, n'a aucune des 3 cartes ; flèche dorée = celui qui montre → celui qui enquête)
   ===================================================================== */
.enq3-seats { position: relative; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 22px 8px; padding: 66px 8px 4px; }
.enq3-sep { align-self: center; margin-top: 18px; font-style: normal; font-size: 1.7rem; line-height: 1; color: rgba(232, 196, 106, .45); }
.enq3-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 100px; padding: 10px 10px 8px; border-radius: 18px;
  background: var(--surface); border: 2px solid transparent; transition: transform .35s, opacity .35s, border-color .35s, box-shadow .35s; }
.enq3-seat b { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-title); font-size: 1.05rem; }
.enq3-seat small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.enq3-av { width: 58px; height: 58px; font-size: 1.5rem; }
.enq3-seat__badge { position: absolute; left: 50%; top: -15px; translate: -50% 0; display: none; padding: .2em .75em; border-radius: 999px; font: 800 .8rem var(--font-title); white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.enq3-seat.is-turn { border-color: var(--c); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-4px) scale(1.06); }
.enq3-seat.is-turn b { color: var(--c); filter: brightness(1.2); }
.enq3-seat.is-turn .enq3-seat__badge { display: block; background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.enq3-seat.is-pass { animation: enqPass .45s ease calc(var(--k) * .55s) both; }
.enq3-seat.is-pass .enq3-seat__badge { display: block; background: #3a2f4a; color: #ffb3bb; animation: enqBadge .45s cubic-bezier(.2, 1.6, .4, 1) calc(var(--k) * .55s) both; }
.enq3-seat.is-ref, .enq3-seat.is-shown { border-color: #ffd23f; box-shadow: 0 0 24px rgba(255, 210, 63, .5); }
.enq3-seat.is-ref .enq3-seat__badge, .enq3-seat.is-shown .enq3-seat__badge { display: block; background: #ffd23f; color: #2b1d0e; animation: enqBadge .45s cubic-bezier(.2, 1.6, .4, 1) calc(var(--k) * .55s) both; }
.enq3-seat.is-ref { animation: enqRef .9s ease-in-out calc(var(--k) * .55s + .5s) infinite alternate; }
.enq3-seat.is-out { opacity: .4; filter: grayscale(.7); }
@keyframes enqPass { to { opacity: .5; filter: grayscale(.6); } }
@keyframes enqBadge { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
@keyframes enqRef { to { transform: translateY(-6px); box-shadow: 0 0 34px rgba(255, 210, 63, .8); } }
.enq3-arrow { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.enq3-arrow__line { fill: none; stroke: #ffd23f; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 210, 63, .75)); }
.enq3-arrow__line.is-done { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: enqDraw .8s ease .1s forwards; }
.enq3-arrow__line.is-wait { stroke-dasharray: 10 12; animation: enqMarch .9s linear infinite, enqFade .4s ease calc(var(--k) * .55s + .2s) both; }
@keyframes enqDraw { to { stroke-dashoffset: 0; } }
@keyframes enqMarch { to { stroke-dashoffset: -44; } }
@keyframes enqFade { from { opacity: 0; } }
.enq3-fly { position: absolute; left: 0; top: 0; z-index: 3; width: 40px; height: 54px; display: grid; place-items: center; border-radius: 7px; font-size: 1.3rem; pointer-events: none;
  background: linear-gradient(160deg, #6b4a1e, #3b2610); box-shadow: inset 0 0 0 2px #c9a45c, 0 8px 18px rgba(0, 0, 0, .55); }
/* le grand bandeau au milieu : X ➜ Y */
.enq3-give { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: min(100%, 760px); margin: 6px auto 2px; }
.enq3-give__p { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.enq3-give__p .enq3-av { width: 76px; height: 76px; font-size: 2rem; }
.enq3-give__p small { color: #e8d6a8; font-size: .9rem; white-space: nowrap; }
.enq3-name { color: var(--c); font-family: var(--font-title); font-size: 1.3rem; filter: brightness(1.3); }
.enq3-give__track { position: relative; height: 78px; border-bottom: 3px dashed rgba(255, 210, 63, .6); }
.enq3-give__head { position: absolute; right: -14px; bottom: -19px; font-style: normal; font-size: 2rem; line-height: 1; color: #ffd23f; }
.enq3-give__card { position: absolute; left: 0; bottom: 8px; width: 48px; height: 64px; display: grid; place-items: center; border-radius: 8px; font: 800 1.5rem var(--font-title); color: #f5e9c8;
  background: linear-gradient(160deg, #6b4a1e, #3b2610); box-shadow: inset 0 0 0 2px #c9a45c, 0 8px 16px rgba(0, 0, 0, .55); }
.enq3-give.is-wait .enq3-give__card { animation: cardWiggle .9s ease-in-out infinite; }
.enq3-give.is-done .enq3-give__card { animation: enqGive 1.5s cubic-bezier(.4, 0, .2, 1) .2s both; }
@keyframes enqGive { 0% { left: 0; transform: none; } 50% { transform: translateY(-36px) rotate(180deg) scale(1.25); } 100% { left: calc(100% - 48px); transform: rotate(360deg); } }
.enq2-scene__big.enq3-say { font-size: clamp(1.3rem, 3vw, 1.9rem); }
.enq3-secret { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: #f5e9c8; font-weight: 600; }
.enq3-secret .enq3-name, .enq2-scene .muted .enq3-name { font-size: 1.05rem; }
.enq3-passes { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: #e8d6a8; font-weight: 600; }
.enq3-chip { display: inline-flex; align-items: center; gap: 4px; padding: .15em .75em; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--c); color: #ff9aa5; }
.enq3-chip b { color: #f5e9c8; }
@media (max-width: 760px) {
  .enq3-seats { gap: 20px 6px; padding-top: 56px; } .enq3-sep { display: none; } .enq3-seat { min-width: 82px; } .enq3-av { width: 46px; height: 46px; font-size: 1.2rem; }
  .enq3-give { gap: 8px; } .enq3-give__p { min-width: 80px; } .enq3-give__p .enq3-av { width: 54px; height: 54px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .enq3-seat, .enq3-seat__badge, .enq3-arrow__line, .enq3-give__card { animation: none !important; } .enq3-arrow__line.is-done { stroke-dashoffset: 0; } }
/* pendant « qui montre à qui » : tout doit tenir sur l'écran sans défiler */
.enq3-seats { padding-top: 54px; }
.enq2__stage:has(.enq3-give, .enq2-none) { min-height: 0; padding: 12px 14px; }
.enq2-scene:has(.enq3-give, .enq2-none) { gap: 8px; }
.enq2-scene:has(.enq3-give, .enq2-none) .enq2-lamp { display: none; }
.enq2-scene:has(.enq3-give, .enq2-none) .enq2-card { width: 86px; height: 108px; gap: 4px; padding: 6px; font-size: .85rem; }
.enq2-scene:has(.enq3-give, .enq2-none) .enq2-card__icon { font-size: 2rem; }
.enq2-scene:has(.enq3-give, .enq2-none) .enq2-none { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.enq3-give__p .enq3-av { width: 64px; height: 64px; font-size: 1.7rem; }
.enq3-give__track { height: 64px; }
.enq2-hyp { display: contents; }
.enq2-scene:has(.enq3-give, .enq2-none) .enq2-hyp { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.enq3-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.enq3-give__p { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; justify-items: start; min-width: 0; }
.enq3-give__p .enq3-av { grid-row: 1 / 3; }
.enq3-give__p small { align-self: start; }
.enq3-give__p .enq3-name { align-self: end; }
.enq3-give__track { height: 50px; }
.enq3-give__card { width: 40px; height: 52px; bottom: 6px; font-size: 1.25rem; }
@keyframes enqGive { 0% { left: 0; transform: none; } 50% { transform: translateY(-30px) rotate(180deg) scale(1.25); } 100% { left: calc(100% - 40px); transform: rotate(360deg); } }
.enq2 .enq-steps li { padding: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.enq2 .enq-steps li::before { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: .95rem; }
.enq3-av { width: 50px; height: 50px; font-size: 1.3rem; }
.enq3-seats { padding-top: 48px; }

/* =====================================================================
   ♣️ La Table de cartes : un vrai paquet, aucune règle imposée
   ===================================================================== */
/* --- réglages du salon : le paquet --- */
.ct-decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.chip.ct-deck { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 14px; border-radius: 14px; text-align: left; white-space: normal; color: var(--text); }
.chip.ct-deck b { font: 700 1rem var(--font-title); }
.chip.ct-deck small { font-size: .8rem; color: var(--muted); }
.chip.ct-deck.is-active small { color: inherit; opacity: .85; }

/* --- les cartes : joker et carte cachée que je suis le seul à voir --- */
.ct-joker .cz-face { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #fffefa, #f1eadb); }
.ct-joker__t { position: absolute; left: .22em; top: .25em; font: 900 .3em/1 var(--font-title); letter-spacing: .06em; color: #1a1033; writing-mode: vertical-rl; }
.ct-joker__t.is-bot { left: auto; top: auto; right: .22em; bottom: .25em; transform: rotate(180deg); }
.ct-joker.is-red .ct-joker__t { color: #c8102e; }
.ct-joker__i { font-size: 1.35em; line-height: 1; }
.cz-card.is-hid { opacity: .7; }
.cz-card.is-hid::after { content: "👁"; position: absolute; right: -.25em; top: -.35em; font-size: .55em; transform: translateZ(1px); }

/* --- écran principal --- */
.ct { display: flex; flex-direction: column; gap: 10px; min-height: min(calc(100vh - var(--rb, 0px) - 250px), 800px); }
.ct__seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ct-seat { position: relative; min-width: 150px; max-width: 280px; padding: 8px 12px 10px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); transition: box-shadow .25s, transform .25s; }
.ct-seat.is-turn { box-shadow: inset 0 0 0 3px var(--c), 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); }
.ct-seat.is-off { opacity: .45; }
.ct-seat__head { display: flex; align-items: center; gap: 8px; }
.ct-seat__av { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 .95rem var(--font-title); }
.ct-seat__head b { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.05rem var(--font-title); }
.ct-seat__turn { margin-left: auto; animation: ctPoint 1s ease-in-out infinite; }
.ct-seat__row { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-top: 6px; }
.ct-seat__fan { position: relative; width: 44px; height: 30px; flex: none; }
.ct-seat__fan i { position: absolute; left: 14px; bottom: 0; width: 16px; height: 24px; border-radius: 3px; background: repeating-linear-gradient(45deg, #b3122e 0 3px, #8e0c22 3px 6px);
  box-shadow: 0 0 0 1.5px #fff, 0 2px 3px rgba(0, 0, 0, .4); transform-origin: 50% 120%; transform: rotate(calc(var(--k) * 12deg)); }
.ct-seat__n { font: 800 1.25rem var(--font-title); font-variant-numeric: tabular-nums; }
.ct-seat__k { padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.ct-seat__cards { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; font-size: 13px; }
.ct-seat__cards.is-show { padding: 4px; border-radius: 10px; background: rgba(255, 227, 122, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 227, 122, .5); }
@keyframes ctPoint { 50% { transform: translateX(4px); } }

.ct__felt { position: relative; flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 260px; padding: 24px 30px; border-radius: 30px;
  background: radial-gradient(ellipse at 50% 40%, #2a9d5c, #17703f 55%, #0d4a29);
  box-shadow: inset 0 0 0 7px #6b3d1c, inset 0 0 0 10px #a0682f, inset 0 0 70px rgba(0, 0, 0, .45), 0 14px 30px rgba(0, 0, 0, .4); }
.ct__felt::before { content: ""; position: absolute; inset: 10px; border-radius: 22px; pointer-events: none;
  background: repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .025) 0 2px, transparent 2px 5px); }
.ct__side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 30px; }
.ct__pile, .ct__disc { position: relative; width: 2.7em; height: 3.8em; }
.ct__stk { position: absolute; left: 0; top: 0; transform: translate(calc(var(--k) * -2.5px), calc(var(--k) * -2.5px)); }
.ct__under-disc { position: absolute; left: 0; top: 0; transform: rotate(-9deg) translate(-.12em, .05em); }
.ct__disc > .cz-card { position: relative; z-index: 1; }
.ct__lbl { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); color: rgba(255, 255, 255, .9); font: 700 1rem var(--font-title); white-space: nowrap; }
.ct__lbl b { color: #ffe37a; font-variant-numeric: tabular-nums; }
.ct__tapis { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: center; justify-content: center; gap: 18px 22px; min-height: 200px; font-size: 26px; }
.ct-grp { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ct-grp__cards { display: flex; }
.ct-grp__cards .cz-card + .cz-card { margin-left: -1.65em; }
.ct-grp small { max-width: 9em; padding: 2px 10px; overflow: hidden; border-radius: 999px; background: var(--c); color: #fff; font: 700 .58em var(--font-title); white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ct-grp.is-in { animation: ctGrpIn .32s cubic-bezier(.2, 1.3, .4, 1) .38s both; }
@keyframes ctGrpIn { from { opacity: 0; transform: translateY(-14px) scale(1.12); } to { opacity: 1; transform: none; } }
.ct-under { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .85; }
.ct-under b { font: 800 .7em var(--font-title); }
.ct-under small { font-size: .45em; }
.ct__hello { max-width: 600px; text-align: center; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.ct__hello-big { margin-bottom: 8px; font: 800 1.5rem var(--font-title); color: #fff; }
.ct__deck { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .28); font-weight: 700; }
.ct__empty { padding: 30px 40px; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 18px; color: rgba(255, 255, 255, .6); font: 700 1.1rem var(--font-title); }
.ct__log { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 66px; }
.ct__log p { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.ct__log p.is-last { color: var(--text); font-size: 1.15rem; animation: pop .3s ease; }
.ct__log em { font-style: normal; font-weight: 800; color: var(--yellow); }
.ct-who { color: var(--c, #fff); }
.ct-log__cards { display: inline-flex; gap: 2px; font-size: 12px; }
.ct-log__cards em { align-self: center; margin-left: 3px; font-size: 1.2em; }
.ct-fly { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; font-size: 26px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }

/* --- téléphone --- */
.ct-pad { position: relative; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.ct-pad__top { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; }
.ct-pad__zone { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 14px; background: rgba(0, 0, 0, .25); font-size: 14px; }
.ct-pad__pile { display: flex; }
.ct-pad__lbl { display: flex; flex-direction: column; line-height: 1.15; }
.ct-pad__lbl small { color: var(--muted); font-size: .72rem; }
.ct-pad__lbl b { font: 800 1.05rem var(--font-title); }
.ct-pad__turn { justify-self: end; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); text-align: right; font: 700 .92rem var(--font-title); }
.ct-pad__turn.is-mine { background: linear-gradient(180deg, #ff6b8a, #e0234e); color: #fff; animation: goPulse 1.2s infinite; }
.ct-pad__tapis { display: flex; align-items: flex-end; gap: 10px; min-height: 80px; padding: 10px 12px; overflow-x: auto; border-radius: 16px; scrollbar-width: none;
  background: radial-gradient(ellipse at 50% 30%, #23874f, #145c34); box-shadow: inset 0 0 0 3px #7a4a1f, inset 0 0 20px rgba(0, 0, 0, .35); }
.ct-pad__grp { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ct-pad__grpc { display: flex; font-size: 13px; }
.ct-pad__grpc .cz-card + .cz-card { margin-left: -1.55em; }
.ct-pad__grp small { max-width: 6em; padding: 0 6px; overflow: hidden; border-radius: 999px; background: var(--c); color: #fff; font-size: .68rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ct-pad__none { margin: auto; color: rgba(255, 255, 255, .6); font-size: .9rem; font-weight: 700; }
.ct-pad__front { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ct-pad__front small { color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.ct-pad__front > span { display: flex; flex-wrap: wrap; gap: 3px; }
.ct-hand { min-height: 152px; padding: 32px 14px 14px; scrollbar-width: none; }
.ct-hand::-webkit-scrollbar { display: none; }
.ct-hand.is-empty { align-items: center; justify-content: center; }
.ct-pad .ch-hand__card { flex: 0 0 var(--cw, 70px); padding: 0; border: 0; background: none; cursor: pointer; font-size: calc(var(--cw, 70px) / 2.7); transform-origin: 50% 130%;
  transform: translateY(calc(var(--dy, 0px) - var(--lift, 0px))) rotate(var(--rot, 0deg)); }
.ct-pad .ch-hand__card.is-sel { --lift: 26px; z-index: 3; }
.ct-pad .ch-hand__card.is-sel .cz-face { box-shadow: 0 0 0 3px #ffe37a, 0 0 18px rgba(255, 227, 122, .75), 0 8px 16px rgba(0, 0, 0, .45); }
.ct-pad .ch-hand__card.is-fresh { animation: ctIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.ct-pad .ch-hand__card, .ct-pad .ch-hand__card * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@keyframes ctIn { from { opacity: 0; translate: 0 -60px; } to { opacity: 1; translate: 0 0; } }
.ch-drag .cz-card { font-size: var(--ct-gf, 26px); }
.ct-pad__tip { margin-top: -8px; text-align: center; color: var(--muted); font-size: .8rem; }
.ct-pad__sel { text-align: center; font-weight: 700; }
.ct-pad__sel b { color: #ffe37a; font-size: 1.2em; }
.ct-acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ct-acts--sel { grid-template-columns: repeat(3, 1fr); }
.ct-btn { min-height: 50px; padding: 10px 8px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 700 .95rem var(--font-title); line-height: 1.15;
  background: linear-gradient(180deg, #5468e6, #3646c0); box-shadow: 0 4px 0 #222f8a; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ct-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #222f8a; }
.ct-btn:disabled { opacity: .4; }
.ct-btn--go { background: linear-gradient(180deg, #34c06a, #1e9e4a); box-shadow: 0 4px 0 #116b30; }
.ct-btn--turn { grid-column: 1 / -1; background: linear-gradient(180deg, #ffd84d, #ff9a1f); color: #3a1d00; box-shadow: 0 4px 0 #c26a00; }
.ct-btn--ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.ct-pad__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: .85rem; }
.ct-sortbtn { margin-left: 8px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text); font: 700 .8rem var(--font-title); cursor: pointer; }
.ct-deal { padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); text-align: center; }
.ct-deal__t { margin-bottom: 4px; font: 800 1.1rem var(--font-title); }
.ct-deal__q { margin: 8px 0; font-weight: 700; }
.ct-deal__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.ct-num { min-height: 48px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: 800 1.2rem var(--font-title); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); cursor: pointer; touch-action: manipulation; }
.ct-num:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.ct-num--all { background: linear-gradient(180deg, #34c06a, #1e9e4a); color: #fff; font-size: 1rem; }
.ct-num:disabled { opacity: .45; }
.ct-deal__flip { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .9rem; }
.ct-deal__flip input { width: 20px; height: 20px; }
.ct-sheet { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; background: rgba(6, 4, 18, .6); backdrop-filter: blur(3px); animation: fadeIn .15s ease; }
.ct-sheet__box { display: flex; flex-direction: column; gap: 7px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--bg-alt); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); animation: ctUp .22s ease-out; }
@keyframes ctUp { from { transform: translateY(40px); opacity: .4; } }
.ct-sheet__h { margin: 8px 0 2px; color: var(--muted); font: 800 .8rem var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.ct-item { padding: 13px 14px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; font: 700 1rem var(--font-title); cursor: pointer; touch-action: manipulation; }
.ct-item:disabled { opacity: .35; }
.ct-item.is-arm { background: linear-gradient(180deg, #ff6b6b, #d63031); color: #fff; animation: pop .3s ease; }
.ct-sheet__close { margin-top: 8px; }
.ct-give { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ct-who-btn { display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; font: 700 1rem var(--font-title); box-shadow: inset 4px 0 0 var(--c); cursor: pointer; }
.ct-who-btn span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; }
.ct-who-btn b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ct-who-btn small { color: var(--muted); }
.ct-toast { position: fixed; left: 50%; bottom: 90px; z-index: 9600; padding: 10px 18px; border-radius: 999px; background: #d63031; color: #fff; font: 700 1rem var(--font-title); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transform: translateX(-50%); }
@media (max-width: 760px) { .ct__felt { grid-template-columns: 1fr; padding: 16px; } .ct__side { flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { .ct-grp.is-in, .ct-pad .ch-hand__card.is-fresh, .ct-seat__turn, .ct-pad__turn.is-mine { animation: none; } }

/* ---------- ⚡ Post-it « tous en même temps » ---------- */
/* écran principal : une carte par joueur (post-it, questions posées, essais, réponses données, dernière question) */
.pil-tv { gap: 12px; }
.pil-tv__lead { margin: 0; color: var(--muted); font: 700 clamp(1rem, 1.5vw, 1.3rem)/1.3 var(--font-title); text-align: center; }
.pil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; padding: 12px 4px 4px; }
.pil-card { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 12px 12px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.pil-card .pit-n { width: min(100%, 170px); }
.pil-card.is-found { box-shadow: inset 0 0 0 3px var(--green), 0 0 26px rgba(61, 220, 132, .25); }
.pil-card.is-out { opacity: .8; }
.pil-card.is-off { opacity: .45; }
.pil-card__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: var(--muted); font: 700 .95rem var(--font-title); }
.pil-hearts { letter-spacing: 1px; }
.pil-bub { position: relative; display: grid; gap: 4px; width: 100%; margin: 4px 0 0; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); font-size: .98rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.pil-bub::before { content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--surface-2); }
.pil-bub em { font: 800 1rem var(--font-title); font-style: normal; }
.pil-bub.is-yes em { color: var(--green); }
.pil-bub.is-no em { color: var(--red); }
.pil-bub.is-split em, .pil-bub.is-wait em { color: var(--yellow); }
.pil-bub.is-none em, .pil-bub.is-none { color: var(--muted); }
.pil-bub.is-found { color: var(--green); font: 800 1.05rem var(--font-title); }
.pil-bub.is-out { color: var(--muted); font-weight: 700; }
.pil-card__pts { margin: 0; color: var(--green); font: 800 1.4rem var(--font-title); }
.pil-time.is-hurry { background: var(--red); color: #fff; animation: pilPulse 1s ease-in-out infinite; }
.pit-n.is-flip { animation: pitFlip .7s cubic-bezier(.2, 1.4, .4, 1); }
.pil-tv.is-end .pit-n { animation: pitFlip .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pilPulse { 50% { transform: scale(1.06); } }
@keyframes pilIn { from { transform: translateY(12px); opacity: 0; } }

/* téléphone */
.pil-pad { display: grid; gap: 16px; width: 100%; max-width: 560px; margin: 0 auto; padding-bottom: 24px; text-align: left; }
.pil-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pil-tag { padding: .3em .85em; border-radius: 99px; background: var(--surface); font: 700 .95rem var(--font-title); }
.pil-h { margin: 0 0 8px; color: var(--muted); font: 700 .92rem var(--font-title); }
.pil-q { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--violet)) 60%, transparent); animation: pilIn .25s ease; transition: opacity .2s, transform .2s; }
.pil-q.is-sent { opacity: 0; transform: translateX(-40px); }
.pil-q.is-empty { margin: 0; padding: 12px; color: var(--muted); font-weight: 700; text-align: center; box-shadow: none; }
.pil-q__head { display: flex; align-items: center; gap: 14px; }
.pit-n.pil-mini { flex: 0 0 auto; width: 96px; min-height: 84px; padding: 15px 6px 8px; }
.pil-mini::before { width: 34px; height: 13px; top: -7px; }
.pil-mini i { font-size: 1.55rem; }
.pil-mini b { font-size: .8rem; }
.pil-q__who { margin: 0; font: 700 1.05rem/1.25 var(--font-title); }
.pil-q__who b { color: var(--c); }
.pil-q__text { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font: 800 1.2rem/1.25 var(--font-title); overflow-wrap: anywhere; }
.pil-q__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pil-ans { min-height: 58px; padding: 6px; border: 0; border-radius: 14px; color: #fff; font: 800 1rem/1.1 var(--font-title); cursor: pointer; touch-action: manipulation; }
.pil-ans.is-y { background: #22b463; }
.pil-ans.is-n { background: var(--red); }
.pil-ans.is-m { background: #6c5ca8; }
.pil-ans:active { transform: scale(.95); }
.pil-q__more { margin: 0; color: var(--muted); font-size: .88rem; text-align: center; }
.pil-q__more:empty { display: none; }
.pil-me__row { display: flex; align-items: center; gap: 18px; padding-top: 8px; }
.pit-n.pil-me__note { flex: 0 0 auto; width: 104px; }
.pil-me__side { flex: 1; display: grid; gap: 6px; min-width: 0; }
.pil-know { min-height: 68px; padding: 10px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #ffd85c, #f29d00); color: #2b2100; font: 800 1.12rem/1.15 var(--font-title); cursor: pointer; box-shadow: 0 6px 18px rgba(242, 157, 0, .35); touch-action: manipulation; }
.pil-know:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }
.pil-me__tries { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }
.pit-now.pil-self { margin: 10px auto 0; }
.pil-help { margin: 10px 0 0; color: var(--muted); font-weight: 700; text-align: center; }
.pil-ask[hidden] { display: none; }
.pil-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pil-qc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--text); font: 600 .9rem/1.2 var(--font-text); text-align: left; cursor: pointer; touch-action: manipulation; }
.pil-qc em { font-style: normal; }
.pil-qc:disabled { opacity: .45; cursor: default; }
.pil-qc.is-yes { box-shadow: inset 0 0 0 2px #22b463; }
.pil-qc.is-no { box-shadow: inset 0 0 0 2px var(--red); }
.pil-qc.is-wait { box-shadow: inset 0 0 0 2px var(--yellow); opacity: .8; }
.pil-form { display: flex; gap: 8px; margin-top: 10px; }
.pil-form[hidden] { display: none; }
.pil-form .field { flex: 1; min-width: 0; }
.pil-full { margin: 10px 0 0; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 700; text-align: center; }
.pil-full[hidden] { display: none; }
.pil-mine:empty { display: none; }
.pil-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pil-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); font-size: .95rem; overflow-wrap: anywhere; }
.pil-list__r { display: grid; flex: 0 0 auto; justify-items: end; text-align: right; }
.pil-list__r b { font: 800 .95rem var(--font-title); }
.pil-list__r small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.pil-list .is-yes b { color: var(--green); }
.pil-list .is-no b { color: var(--red); }
.pil-list .is-split b, .pil-list .is-wait b { color: var(--yellow); }
.pil-list .is-none b { color: var(--muted); }
.pil-others .pit__grid { padding: 12px 2px 2px; }
.pil-guess { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: flex-end; justify-content: center; padding: 10px; background: rgba(6, 4, 18, .65); backdrop-filter: blur(3px); }
.pil-guess[hidden] { display: none; }
.pil-guess__box { display: grid; gap: 10px; width: min(100%, 520px); max-height: calc(100dvh - 20px); overflow: auto; padding: 18px 14px 14px; border-radius: 24px; background: var(--bg-alt); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); animation: pilIn .2s ease; }
.pil-guess__h { margin: 0; font: 800 1.5rem var(--font-title); text-align: center; }
.pil-guess__sub { margin: 0; color: var(--muted); font-size: .92rem; text-align: center; }
.pil-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pil-opt { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; border: 2px solid transparent; border-radius: 14px; background: var(--surface-2); color: var(--text); font: 700 .95rem/1.15 var(--font-title); text-align: left; cursor: pointer; touch-action: manipulation; overflow-wrap: anywhere; }
.pil-opt i { flex: 0 0 auto; font-size: 1.5rem; font-style: normal; }
.pil-opt.is-pick { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.pil-opt.is-wrong { opacity: .35; text-decoration: line-through; }
.pil-guess__acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pil-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9600; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: #1d1838; color: #fff; font: 700 1rem/1.3 var(--font-title); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: translateX(-50%); }
.pil-toast[hidden] { display: none; }
.pil-toast.is-in { animation: pilIn .25s ease; }
@media (max-width: 360px) { .pil-opts { grid-template-columns: 1fr; } .pil-ans { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .pil-q, .pil-guess__box, .pil-toast, .pil-time { animation: none !important; } }
.pil-qc.pil-more { background: transparent; box-shadow: inset 0 0 0 2px var(--surface-2); color: var(--muted); font-weight: 700; }

/* =====================================================================
   🏙️ Magnat (télé) : plateau plus beau
   - cases : bande de couleur plus épaisse, prix / loyer en pastille, propriétaire bien visible
   - coins et cases spéciales chacun sa couleur ; la case du joueur en cours brille
   - une ville la nuit au centre du plateau ; fiches des joueurs avec leurs rues en couleur
   ===================================================================== */
.mg-sq__band { height: 24%; min-height: 8px; border-radius: 4px 4px 2px 2px; }
.mg-sq__price { margin-top: auto; margin-bottom: 1px; padding: .05em .55em; border-radius: 99px; background: rgba(107, 74, 31, .12); color: #5a3d17; white-space: nowrap; }
.mg-sq__price.is-rent { background: var(--o); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.mg-sq__price.is-plus { margin-top: 2px; background: #1f8a4c; color: #fff; }
.mg-sq__price.is-tax { margin-top: 2px; background: #c0392b; color: #fff; }
.mg-sq.is-owned { background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40%),
    color-mix(in srgb, var(--o) 24%, #f1e8cf); box-shadow: inset 0 0 0 3px var(--o), inset 0 -2px 3px rgba(80, 50, 10, .18), 0 1px 1px rgba(0, 0, 0, .35); }
.mg-sq__pawns { z-index: 3; }
/* coins et cases spéciales */
.mg-sq.mg-sq--start { background: radial-gradient(circle at 50% 35%, #e8ffef, #8fe0a8 70%, #5cc47f); }
.mg-sq.mg-sq--visit { background: radial-gradient(circle at 50% 35%, #eef5ff, #a9c8f5 70%, #7ea6e3); }
.mg-sq.mg-sq--fountain { background: radial-gradient(circle at 50% 35%, #effdff, #9fe3f2 65%, #5fc4dc); }
.mg-sq--fountain::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .45) 0 2px, transparent 2px 9px); opacity: .5; pointer-events: none; }
.mg-sq.mg-sq--gojail { background: radial-gradient(circle at 50% 35%, #fff0f0, #f5a9a9 70%, #e07a7a); }
.mg-sq--gojail::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 14%, rgba(60, 20, 20, .22) 14% 17%); pointer-events: none; }
.mg-sq.mg-sq--card { background: radial-gradient(circle at 50% 35%, #f6f1ff, #cdbcf7 75%, #b39cf0); }
.mg-sq.mg-sq--tax, .mg-sq.mg-sq--lux { background: radial-gradient(circle at 50% 35%, #fff4ec, #f7c9b0 75%, #eaa98a); }
.mg-sq.is-corner .mg-sq__name { font-weight: 800; letter-spacing: .02em; }
/* la case où se trouve le joueur en cours */
.mg-sq.is-here::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px #ffcc3d, inset 0 0 14px rgba(255, 204, 61, .85); animation: mgHere 1s ease-in-out infinite alternate; }
@keyframes mgHere { from { opacity: .45; } to { opacity: 1; } }
/* la ville au centre */
.mg__center { position: relative; isolation: isolate; overflow: hidden; }
.mg__sky { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1; pointer-events: none; opacity: .55; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.mg__sky svg { display: block; width: 100%; height: 100%; }
.mg__sky rect { fill: #062419; }
.mg__sky rect.w { fill: #ffd56a; }
.mg__sky rect.w:nth-of-type(9n) { animation: mgWin 4s ease-in-out infinite alternate; }
.mg__sky rect.w:nth-of-type(13n) { animation: mgWin 6s ease-in-out 1.5s infinite alternate; }
@keyframes mgWin { 0%, 60% { fill-opacity: 1; } 100% { fill-opacity: .1; } }
.mg__logo { text-shadow: 0 3px 0 #7a5a00, 0 6px 14px rgba(0, 0, 0, .45); letter-spacing: .02em; }
/* fiches des joueurs */
.mg__players li { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface) 60%); }
.mg__players li.is-cur { position: relative; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 30%, var(--surface)), var(--surface) 70%); animation: mgCur 1.4s ease-in-out infinite alternate; }
.mg__players li.is-cur::after { content: "🎲"; position: absolute; right: -6px; top: -10px; font-size: 1.3rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); animation: mgpShake 1.6s ease-in-out infinite; }
@keyframes mgCur { from { box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--yellow); } to { box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--yellow), 0 0 18px rgba(255, 204, 61, .45); } }
.mg__av { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 0 0 2px #fff, 0 3px 6px rgba(0, 0, 0, .45); }
.mg__chips { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0 1px; }
.mg__chips i { position: relative; width: 14px; height: 18px; border-radius: 3px; background: linear-gradient(var(--g) 0 34%, #f1e8cf 34%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .4); }
.mg__chips u { position: absolute; inset: auto 0 0; color: #1f8a3a; font: 900 .6rem/1.1 var(--font-title); text-align: center; text-decoration: none; }
@media (min-width: 980px) {
  .mg__chips i { width: clamp(14px, 1.3vw, 22px); height: clamp(18px, 1.7vw, 28px); }
  .mg__chips u { font-size: clamp(.6rem, .8vw, .85rem); }
  .mg-sq.is-here::after { box-shadow: inset 0 0 0 .55cqw #ffcc3d, inset 0 0 2.2cqw rgba(255, 204, 61, .85); }
  .mg-sq.is-owned { box-shadow: inset 0 0 0 .5cqw var(--o), inset 0 -2px 3px rgba(80, 50, 10, .18), 0 1px 1px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .mg-sq.is-here::after, .mg__sky rect.w, .mg__players li.is-cur, .mg__players li.is-cur::after { animation: none !important; } }

/* =====================================================================
   🌱 Potager : on voit quand on peut récolter
   - sous chaque parcelle qui a des légumes : une pastille « 🧺 2 » = ce qu'une récolte ramasse (dorée quand c'est le maximum)
   - télé : une petite légende (🌱 rien à cueillir · légumes dessinés = prêts · 🧺 = ce que tu ramasses)
   ===================================================================== */
.pp-bk rect { fill: rgba(255, 255, 255, .92); stroke: #6b4423; stroke-width: .35; }
.pp-bk text { font: 800 2.3px var(--font-title); text-anchor: middle; fill: #4a2d14; }
.pp-bk.is-full rect { fill: #ffd84d; stroke: #8a6400; }
.pp-bk.is-full text { fill: #3a2600; }
.pp-h.is-ripe polygon.pp-soil { stroke: #ffd84d; stroke-width: .9; }
.ppp-garden .pp-bk text { font-size: 2.6px; }
.ppp-garden .pp-h.is-dim .pp-bk { opacity: .5; }
.pp__legend { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 6px; border-radius: 14px; background: linear-gradient(160deg, rgba(61, 220, 132, .16), rgba(0, 0, 0, .18)); box-shadow: inset 0 0 0 1.5px rgba(61, 220, 132, .45); }
.pp__legend li { display: grid; grid-template-columns: 4.4em 1fr; align-items: center; gap: 8px; font-size: .84rem; line-height: 1.3; }
.pp__legend i { font-style: normal; }
.pp__lg { display: grid; place-items: center; font-size: 1.15rem; line-height: 1; white-space: nowrap; }
.pp-bkchip { padding: 2px 7px; border-radius: 99px; background: #ffd84d; color: #3a2600; font: 800 .85rem var(--font-title); box-shadow: 0 0 0 1.5px #8a6400; white-space: nowrap; }
@media (min-width: 980px) {
  .pp__legend li { font-size: clamp(.8rem, .95vw, 1.05rem); }
  .pp__lg { font-size: clamp(1.1rem, 1.4vw, 1.6rem); }
}

/* =====================================================================
   🚄 Grande Ligne : on comprend quoi faire
   - télé : une légende (rails par manche, points = coût, ⭐, 🎯 missions, ⚔️ conflits)
   - téléphone : chemin des missions en pointillés, avancement de chaque mission, conseil, « ⭐ Conseillé »
   ===================================================================== */
.gl__legend { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 5px; border-radius: 14px; background: linear-gradient(160deg, rgba(47, 212, 224, .14), rgba(0, 0, 0, .18)); box-shadow: inset 0 0 0 1.5px rgba(47, 212, 224, .45); }
.gl__legend li { display: grid; grid-template-columns: 2.6em 1fr; align-items: center; gap: 8px; font-size: .82rem; line-height: 1.3; }
.gl__legend i { font-style: normal; }
.gl__lg { display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.gl__dots { display: flex; gap: 4px; justify-content: center; }
.gl__dots u { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #3a2a14; }
@media (min-width: 980px) {
  .gl__legend li { font-size: clamp(.78rem, .92vw, 1.02rem); }
  .gl__lg { font-size: clamp(1.05rem, 1.3vw, 1.5rem); }
}
/* téléphone : le chemin des missions sur la carte */
.glp-ov .gx-route { stroke: var(--me); stroke-width: .5; stroke-linecap: round; stroke-dasharray: .7 .6; opacity: .95; filter: drop-shadow(0 0 .25px #fff) drop-shadow(0 0 .25px #fff); animation: gxAnts 1.4s linear infinite; }
/* téléphone : le conseil */
.glx__tip { margin: 0; padding: 6px 10px; border-radius: 12px; background: rgba(255, 216, 77, .13); box-shadow: inset 0 0 0 1.5px rgba(255, 216, 77, .6); font-size: .8rem; line-height: 1.35; text-align: center; }
.glx__tip i { font-style: normal; }
/* téléphone : chaque mission et son avancement */
.glx__mis .glm { flex: 1 1 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: .35em .7em; }
.glm__t { font-size: .84rem; }
.glx__mis .glm__v { color: var(--yellow); white-space: nowrap; }
.glm__p { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.glm__p i { font-style: normal; }
.glx__mis .glm__bar { display: inline-flex; gap: 2px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.glm__bar u { width: 14px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.glm__bar u.is-on { background: var(--me, var(--cyan)); box-shadow: 0 0 6px var(--me, var(--cyan)); }
.glx__mis .glm.is-done { text-decoration: none; }
.glx__mis .glm.is-done .glm__t { text-decoration: line-through; }
.glx__mis .glm.is-cut { background: rgba(231, 76, 60, .16); box-shadow: inset 0 0 0 1px rgba(231, 76, 60, .55); }
/* téléphone : boutons des lignes (coût, gain, 🎯 Mission, ⭐ Conseillé) */
.glo__c { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.glo__cost, .glo__pts { padding: 0 .4em; border-radius: 6px; background: rgba(0, 0, 0, .25); white-space: nowrap; }
.glo__tag { padding: 0 .45em; border-radius: 6px; background: rgba(255, 255, 255, .9); color: #1a1033; font-style: normal; font-weight: 800; white-space: nowrap; }
.glo__tag.is-best { background: #ffd84d; color: #3a2600; }
.ui-btn.is-best { box-shadow: 0 0 0 3px #ffd84d, 0 4px 12px rgba(255, 216, 77, .35); }
@media (prefers-reduced-motion: reduce) { .glp-ov .gx-route { animation: none; } }
.glx__mis .glm__p { flex-basis: auto; text-align: left; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .74rem; }

/* =====================================================================
   🎟️ Loto / Bingo : chacun choisit son carton avant le tirage
   ===================================================================== */
.loto.lt2 { position: relative; }
.lt-pick { position: absolute; inset: -4px; z-index: 6; display: grid; place-items: center; padding: 16px; border-radius: 18px; background: rgba(15, 11, 31, .86); backdrop-filter: blur(4px); animation: mgbOver .3s ease both; }
.lt-pick__box { display: grid; gap: 12px; justify-items: center; max-width: 720px; text-align: center; }
.lt-pick__icon { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; animation: mgpShake 2s ease-in-out infinite; }
.lt-pick__box h3 { margin: 0; font: 800 clamp(1.4rem, 3vw, 2.4rem) var(--font-title); }
.lt-pick__box .muted { margin: 0; font-size: clamp(.9rem, 1.4vw, 1.2rem); }
.lt-pick__who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lt-pick__who span { padding: .35em .8em; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--c); font-size: clamp(.9rem, 1.3vw, 1.15rem); opacity: .7; }
.lt-pick__who span.is-ok { opacity: 1; background: color-mix(in srgb, var(--c) 25%, var(--surface)); }
.lt-pick__time { font: 800 clamp(1.2rem, 2.4vw, 1.8rem) var(--font-title); color: var(--yellow); font-variant-numeric: tabular-nums; margin-right: 12px; }
/* téléphone : les cartons proposés */
.bg-pick { display: grid; gap: 10px; width: 100%; }
.bg-pick__t { margin: 0; text-align: center; }
.bg-pick__h { margin: 0; text-align: center; }
.bg-pick__card { display: grid; gap: 6px; width: 100%; padding: 8px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); color: var(--text); cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s; }
.bg-pick__card:active { transform: scale(.98); }
.bg-pick__card.is-picked { box-shadow: inset 0 0 0 3px var(--yellow), 0 0 18px rgba(255, 204, 61, .35); }
.bg-pick__card:disabled:not(.is-picked) { opacity: .4; }
.bg-pick__ok { font: 700 .9rem var(--font-title); color: var(--yellow); }
.bg-pick__more { justify-self: center; }
.bg-mini { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; padding: 4px; border-radius: 10px; background: #fff8e6; }
.bg-mini i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; background: #fff; color: #2b1d0e; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--bc, #ccc) 55%, transparent); font: 800 .82rem/1 var(--font-title); font-style: normal; }
.bg-mini i.is-blank { background: repeating-linear-gradient(45deg, #f1e4c4 0 4px, #e9d9b2 4px 8px); box-shadow: none; }
.bg-mini i.is-free { background: #7c5cff; color: #fff; }
.bg-mini.is-bingo { max-width: 260px; justify-self: center; width: 100%; }
.bg-mini.is-bingo i { font-size: 1rem; }
.bg-pad__wait { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 204, 61, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 204, 61, .5); text-align: center; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .lt-pick__icon { animation: none; } }

/* =====================================================================
   🎵 Jukebox sur le téléphone : pas de clip, une petite barre (pochette, titre, 🔇), synchronisée avec l'écran
   ===================================================================== */
@keyframes jbxTap { to { transform: scale(1.06); } }
.jbm { position: relative; display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); max-width: 528px; margin: 10px auto 0; padding: 6px 6px 6px 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pink) 55%, transparent); overflow: hidden; }
.jbm[hidden] { display: none; }
/* le lecteur YouTube est là, mais invisible : il ne passe au-dessus de la barre que quand le téléphone demande un toucher */
.jbm__yt { position: absolute; inset: 0; z-index: 1; opacity: .01; pointer-events: none; overflow: hidden; }
.jbm__yt iframe, .jbm__yt > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jbm.is-tap .jbm__yt { z-index: 3; pointer-events: auto; }
.jbm__img { flex: none; width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.jbm__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.jbm__txt small { font-size: .7rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbm__ti { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbm__off, .jbm__tap, .jbm.is-muted .jbm__on, .jbm.is-tap .jbm__on { display: none; }
.jbm.is-muted .jbm__off { display: block; }
.jbm.is-tap:not(.is-muted) .jbm__tap { display: block; color: var(--yellow); animation: jbxTap 1s ease-in-out infinite alternate; transform-origin: left center; }
.jbm.is-tap { box-shadow: inset 0 0 0 2px var(--yellow); }
.jbm__eq { flex: none; display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; opacity: 0; }
.jbm.is-playing .jbm__eq { opacity: 1; }
.jbm__eq i, .bgm__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--pink); transform-origin: bottom; animation: bgmEq .9s ease-in-out infinite alternate; }
.jbm__eq i:nth-child(2), .bgm__eq i:nth-child(2) { animation-delay: -.3s; }
.jbm__eq i:nth-child(3), .bgm__eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes bgmEq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.jbm__btn { position: relative; z-index: 4; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 1.15rem; cursor: pointer; }

/* =====================================================================
   🎵 Musique de fond — 📺 le bouton en haut de la fenêtre et son panneau
   ===================================================================== */
.modal__head:has(.bgm) { position: relative; z-index: 30; }
.bgm { position: relative; flex: none; display: flex; align-items: center; gap: 6px; min-width: 0; }
.bgm__pill { display: inline-flex; align-items: center; gap: 8px; max-width: min(30vw, 320px); height: 38px; padding: 0 14px 0 11px; border-radius: 99px; border: 2px solid color-mix(in srgb, var(--pink) 55%, transparent); background: color-mix(in srgb, var(--pink) 12%, var(--surface)); color: var(--text); font: 700 .88rem var(--font-title); cursor: pointer; transition: background .15s, border-color .15s; }
.bgm__pill:hover, .bgm__pill[aria-expanded="true"] { background: color-mix(in srgb, var(--pink) 24%, var(--surface)); border-color: var(--pink); }
.bgm.is-empty .bgm__pill { padding: 0 12px; }
.bgm.is-empty .bgm__pill::after { content: "+"; margin-left: -4px; font: 800 1rem/1 var(--font-title); color: var(--pink); }
.bgm__ico { font-size: 1.05rem; }
.bgm__ti { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm__ti:empty, .bgm__held:empty { display: none; }
.bgm__eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.bgm.is-playing .bgm__eq { display: inline-flex; }
.bgm.is-held .bgm__pill { border-style: dashed; opacity: .8; }
.bgm__go { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--pink); color: #fff; font: 800 .85rem var(--font-title); white-space: nowrap; cursor: pointer; animation: jbxTap 1s ease-in-out infinite alternate; }
.bgm__go[hidden] { display: none; }
.bgm__panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: min(440px, calc(100vw - 24px)); max-height: min(72vh, 660px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--border); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 40%, transparent), 0 18px 50px rgba(0, 0, 0, .55); }
.bgm__panel[hidden] { display: none; }
.bgm__h { margin: 0; font: 800 1.05rem var(--font-title); }
.bgm__now { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.bgm__now:has(.bgm__none) { display: block; }
.bgm__now img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.bgm__now div { display: grid; gap: 3px; min-width: 0; }
.bgm__now b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
.bgm__now small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.bgm__none, .bgm__state { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .85rem; text-align: center; }
.bgm__state { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); }
.bgm__state[hidden] { display: none; }
.bgm__ctl { display: flex; align-items: center; gap: 6px; }
.bgm__b { flex: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.05rem; cursor: pointer; }
.bgm__b:disabled { opacity: .4; cursor: default; }
.bgm__vol { flex: 1; min-width: 60px; accent-color: var(--pink); }
.bgm__stop { margin-left: 4px; }
.bgm__form { display: flex; gap: 8px; }
.bgm__form .field { flex: 1; min-width: 0; padding: 10px 12px; font: 600 .95rem var(--font-text); letter-spacing: normal; text-align: left; }
.bgm__res, .bgms__res { display: grid; gap: 6px; }
.bgm__res:empty, .bgms__res:empty { display: none; }
.bgm__it, .bgms__it { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 6px 12px 6px 6px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.bgm__it:hover { background: var(--surface-2); }
.bgm__it img, .bgms__it img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.bgm__it > span, .bgms__it > span { display: grid; gap: 1px; min-width: 0; }
.bgm__it b, .bgms__it b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm__it small, .bgms__it small { color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm__it em, .bgms__it em { font-style: normal; font-size: 1.05rem; }
.bgm__it.is-added, .bgms__it.is-added { background: color-mix(in srgb, var(--green) 18%, var(--surface)); }
.bgms__it:disabled { cursor: default; }
.bgms__it:disabled:not(.is-added) { opacity: .65; }
.bgm__all, .bgms__all { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #1f9d55; color: #fff; font: 800 .9rem var(--font-title); cursor: pointer; }
.bgms__all:disabled { opacity: .6; }
.bgm__t, .bgms__t { margin: 2px 0 0; color: var(--muted); font-size: .82rem; font-weight: 800; }
.bgm__t:empty { display: none; }
.bgm__t b, .bgms__t b { color: var(--text); }
.bgm__q, .bgms__q { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bgm__q li, .bgms__q li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 5px 8px 5px 5px; border-radius: 10px; background: var(--surface); border-left: 4px solid var(--c, var(--pink)); }
.bgm__q img, .bgms__q img { grid-row: 1 / 3; width: 56px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.bgm__q b, .bgms__q b { min-width: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm__q small, .bgms__q small { color: var(--c, var(--muted)); font-size: .72rem; font-weight: 800; }
.bgm__hint { margin: 0; color: var(--muted); font-size: .78rem; }
.bgm--float { position: fixed; top: 12px; right: 12px; z-index: 120; }
/* le lecteur YouTube de la musique de fond : présent (pour jouer le son) mais invisible */
.bgm-yt { position: fixed; right: 0; bottom: 0; width: 200px; height: 113px; opacity: 0; pointer-events: none; z-index: -1; overflow: hidden; }
@media (max-width: 640px) {
  .bgm__pill { max-width: 46px; padding: 0 10px; }
  .bgm__ti, .bgm__eq, .bgm__held { display: none !important; }
  .bgm.is-empty .bgm__pill::after { display: none; }
  .bgm__go { padding: 0 10px; font-size: .75rem; }
  .bgm__panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* =====================================================================
   🎵 Musique de fond — 📱 l'icône en haut du téléphone et son panneau (par-dessus le jeu, qui continue dessous)
   ===================================================================== */
.bgm-btn { margin-left: auto; }
.bgm-btn:not([hidden]) ~ .mirror-btn { margin-left: 0; }
.bgm-btn.is-on { background: color-mix(in srgb, var(--pink) 28%, var(--surface)); border-color: var(--pink); }
body.is-embed .bgm-btn { display: none; }
body.bgms-on { overflow: hidden; }
.bgms { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; justify-content: flex-end; }
.bgms[hidden] { display: none; }
.bgms__back { position: absolute; inset: 0; background: rgba(5, 3, 14, .62); backdrop-filter: blur(3px); }
.bgms__box { position: relative; width: 100%; max-width: 560px; max-height: 88vh; margin: 0 auto; overflow: auto; overscroll-behavior: contain; display: grid; gap: 10px; align-content: start; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--bg-alt); border-top: 2px solid var(--pink); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); animation: slideUp .25s ease; }
.bgms__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 800 1.1rem var(--font-title); }
.bgms__x { flex: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1rem; cursor: pointer; }
.bgms__intro { margin: -4px 0 0; color: var(--muted); font-size: .84rem; }
.bgms__now { display: grid; gap: 8px; }
.bgms__card { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); }
.bgms__card img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.bgms__card div { display: grid; gap: 2px; min-width: 0; }
.bgms__card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; }
.bgms__card small { color: var(--muted); font-size: .74rem; font-weight: 700; }
.bgms__note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: .85rem; text-align: center; }
.bgms__skip { width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: #5b5f8f; color: #fff; font: 800 .9rem var(--font-title); cursor: pointer; }
.bgms__skip:disabled { background: #1f6b45; cursor: default; }
.bgms__form { display: flex; gap: 8px; }
.bgms__form .field { flex: 1; min-width: 0; padding: 12px; font: 600 1rem var(--font-text); letter-spacing: normal; text-align: left; }
.bgms__q li.is-mine { background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.bgms__q li { grid-template-columns: 18px 56px 1fr; }
.bgms__q em { grid-row: 1 / 3; font-style: normal; font-weight: 800; font-size: .8rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .jbm.is-tap .jbm__tap, .bgm__go, .jbm__eq i, .bgm__eq i { animation: none; }
}

/* 📢 publicités (js/ads.js) : bouton cookies + fausse pub de test en local */
.pad-cookies { text-align: center; margin: 4px 0 0; }
.link-btn { background: none; border: 0; padding: 6px 8px; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text, #fff); }
.ad-fake { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #000c; color: #fff; text-align: center; }
.ad-fake > div { background: #333; border: 2px dashed #fc0; border-radius: 16px; padding: 32px 24px; }
.ad-fake b { font-size: 1.6rem; color: #fc0; }
