/* ═══════════════════════════════════════════
   LE QG — thème néon futuriste
   ═══════════════════════════════════════════ */
:root {
  --bg: #05030c;
  --bg-2: #0a0718;
  --panel: rgba(14, 10, 32, 0.66);
  --panel-solid: #0e0a20;
  --line: rgba(160, 140, 255, 0.16);
  --text: #eef0ff;
  --muted: #9a97c2;
  --dim: #5f5b86;

  --cyan: #00f0ff;
  --pink: #ff2bd6;
  --violet: #8a5cff;
  --lime: #39ff88;
  --amber: #ffb02e;
  --red: #ff3b5c;

  --accent: var(--cyan);
  --accent-2: var(--pink);

  --r: 18px;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font: 'Chakra Petch', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--pink); color: #000; }

/* ─── Décor ─────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: orb 18s ease-in-out infinite alternate; }
.bg-orb.o1 { width: 520px; height: 520px; background: #6a1bff; top: -160px; left: -140px; }
.bg-orb.o2 { width: 460px; height: 460px; background: #ff1fa8; top: 10%; right: -180px; animation-delay: -6s; opacity: .32; }
.bg-orb.o3 { width: 380px; height: 380px; background: #00c8ff; bottom: -160px; left: 30%; animation-delay: -12s; opacity: .28; }
@keyframes orb { to { transform: translate(60px, 40px) scale(1.15); } }

.bg-horizon {
  position: absolute; left: 0; right: 0; top: 58%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--pink), transparent);
  box-shadow: 0 0 30px 6px rgba(255, 43, 214, .45), 0 0 80px 20px rgba(0, 240, 255, .15);
  opacity: .7;
}
.bg-grid {
  position: absolute; left: -50%; right: -50%; top: 58%; height: 70%;
  background-image:
    linear-gradient(rgba(0, 240, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, .3) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(62deg);
  transform-origin: top center;
  animation: grid 2.4s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
@keyframes grid { to { background-position: 0 64px, 0 0; } }
.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
#fx { position: fixed; inset: 0; z-index: 50; pointer-events: none; width: 100%; height: 100%; }

/* ─── Barre du haut ─────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5, 3, 12, .85), rgba(5, 3, 12, .2));
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: 1px;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, .55), inset 0 0 12px rgba(0, 240, 255, .3);
  text-shadow: 0 0 8px var(--cyan);
  transition: transform .2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.topnav { display: flex; gap: 6px; }
.topnav a {
  padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); border: 1px solid transparent; transition: .2s;
}
.topnav a:hover { color: var(--text); }
.topnav a.on { color: var(--cyan); border-color: rgba(0, 240, 255, .4); box-shadow: 0 0 16px rgba(0, 240, 255, .2), inset 0 0 12px rgba(0,240,255,.1); }

.topnav { align-items: center; }
.topleft { display: flex; align-items: center; gap: 10px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pink); border: 1.5px solid rgba(255, 43, 214, .55); background: rgba(255, 43, 214, .08);
  box-shadow: 0 0 16px rgba(255, 43, 214, .2); transition: .2s;
}
.back-btn[hidden] { display: none; }
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { background: rgba(255, 43, 214, .16); box-shadow: 0 0 22px rgba(255, 43, 214, .4); }
@media (max-width: 480px) {
  /* Sur téléphone, le bouton Accueil remplace le logo pour gagner de la place */
  .topleft:has(.back-btn:not([hidden])) .brand { display: none; }
  .topnav { gap: 2px; }
}
.vol { position: relative; }
.vol-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35); transition: .2s;
}
.vol-btn:hover, .vol-btn[aria-expanded="true"] { box-shadow: 0 0 16px rgba(0, 240, 255, .35); background: rgba(0, 240, 255, .08); }
.vol-btn svg { width: 20px; height: 20px; filter: drop-shadow(0 0 5px var(--cyan)); }
.vol-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 230px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: var(--panel-solid); border: 1px solid rgba(0, 240, 255, .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 20px rgba(0, 240, 255, .15);
}
.vol-pop[hidden] { display: none; }
.vol-pop label { grid-column: 1 / -1; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.vol-val { font-family: var(--font-display); font-size: 13px; color: var(--cyan); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.vol-pop input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--cyan), var(--pink)) 0 / var(--p, 90%) 100% no-repeat, rgba(255, 255, 255, .1);
}
.vol-pop input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--cyan); cursor: pointer;
}
.vol-pop input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--cyan); cursor: pointer; }
.vol-pop input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(0, 240, 255, .35); }

main { padding: 8px clamp(16px, 4vw, 40px) 80px; max-width: 1180px; margin: 0 auto; }
.view { animation: viewIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ─── Titres néon ───────────────────────── */
.neon-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(56px, 13vw, 150px); line-height: .9; letter-spacing: .04em;
  margin: 28px 0 10px; text-align: center;
  color: #fff;
  text-shadow:
    0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 90px rgba(255, 43, 214, .7);
  animation: flicker 6s infinite;
  position: relative;
}
.neon-title::before, .neon-title::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  text-shadow: none; opacity: .75;
}
.neon-title::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 62% 0); animation: glitch 3.2s infinite steps(1); mix-blend-mode: screen; }
.neon-title::after { color: var(--pink); transform: translate(3px, 0); clip-path: inset(58% 0 0 0); animation: glitch 2.6s infinite reverse steps(1); mix-blend-mode: screen; }
@keyframes glitch {
  0%, 86%, 100% { transform: translate(0); opacity: 0; }
  88% { transform: translate(-6px, 1px); opacity: .8; }
  92% { transform: translate(5px, -2px); opacity: .8; }
  96% { transform: translate(-2px, 0); opacity: .6; }
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
}
.tagline { text-align: center; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); margin: 0 auto 44px; max-width: 520px; }
.tagline b { color: var(--cyan); font-weight: 600; }

.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 40px 0 16px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }

.page-head { text-align: center; margin: 18px 0 26px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .06em;
  font-size: clamp(30px, 6vw, 54px); margin: 0;
  color: #fff; text-shadow: 0 0 10px var(--accent), 0 0 34px var(--accent);
}
.page-head p { color: var(--muted); margin: 8px 0 0; }

/* ─── Cartes de jeux ────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  --c: var(--cyan);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: 200px; padding: 24px; border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--c) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
  animation: spin 3s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.card::after {
  content: ''; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; z-index: -2;
  background: radial-gradient(circle, var(--c), transparent 65%); opacity: .18; transition: opacity .35s;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 50px -18px var(--c); outline: none; }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card:hover::after { opacity: .35; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--c); border: 1.5px solid var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 30%, transparent);
}
.card-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px var(--c)); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .04em; margin: 6px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag {
  margin-top: auto; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--c); padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.card.soon { opacity: .5; pointer-events: none; border-style: dashed; }

/* ─── Panneaux & contrôles ──────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: clamp(18px, 3vw, 28px);
}
.stage { max-width: 640px; margin: 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  --c: var(--cyan);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .02);
  transition: .2s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.chip.on {
  color: #04020a; background: var(--c); border-color: var(--c);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent);
}
.controls { display: grid; gap: 12px; margin-bottom: 22px; justify-items: center; }
.controls > .controls-row { justify-self: stretch; }
.settings-toggle {
  display: flex; align-items: center; gap: 10px; width: min(560px, 100%); padding: 11px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); text-align: left; transition: .2s;
}
.settings-toggle:hover, .settings-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.st-ico { color: var(--accent); font-size: 17px; }
.st-lbl { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.st-sum { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-arrow { color: var(--muted); transition: transform .25s; }
.settings-toggle[aria-expanded="true"] .st-arrow { transform: rotate(180deg); }
.settings-panel {
  display: grid; gap: 12px; width: min(760px, 100%); padding: 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); animation: viewIn .3s;
}
.settings-panel[hidden] { display: none; }
.controls-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.controls-row .lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }

.btn {
  --c: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; letter-spacing: .04em;
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  box-shadow: 0 0 0 transparent;
  transition: .2s;
}
.btn:hover { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--c); color: #04020a; border-color: var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); }
.btn.solid:hover { filter: brightness(1.12); }
.btn.ghost { --c: var(--muted); border-color: var(--line); background: transparent; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ─── Lecteur ───────────────────────────── */
.ladder { display: flex; gap: 4px; height: 12px; margin: 6px 0 4px; }
.ladder .seg {
  position: relative; flex: var(--w, 1); border-radius: 4px; background: rgba(255, 255, 255, .06);
  overflow: hidden; transition: background .3s;
}
.ladder .seg.open { background: rgba(0, 240, 255, .18); }
.ladder .seg.bad { background: rgba(255, 59, 92, .35); }
.ladder .seg.skip { background: rgba(255, 255, 255, .14); }
.ladder .seg .fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px var(--cyan);
}
.ladder-labels { display: flex; gap: 4px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ladder-labels span { flex: var(--w, 1); text-align: right; }
.ladder-labels span.cur { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.player { position: relative; display: grid; place-items: center; height: 260px; margin: 10px 0; }
.player canvas { position: absolute; width: 260px; height: 260px; }
.play {
  position: relative; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1d1640, #07041a);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, .6), inset 0 0 24px rgba(0, 240, 255, .25);
  transition: transform .2s, box-shadow .2s;
}
.play:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(0, 240, 255, .85), inset 0 0 30px rgba(0, 240, 255, .35); }
.play:active { transform: scale(.96); }
.play svg { width: 44px; height: 44px; color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.play.loading::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--pink); border-right-color: var(--pink);
  animation: rot 0.9s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.clip-len {
  position: absolute; right: calc(50% - 150px); top: 50%; transform: translate(100%, -50%);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan); font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) { .clip-len { right: 50%; top: auto; bottom: 0; transform: translateX(50%); font-size: 18px; } }

/* Indice image (perso) */
.clue-img {
  position: relative; width: min(280px, 72vw); aspect-ratio: 3 / 4; margin: 6px auto 18px;
  border-radius: 18px; overflow: hidden; border: 1.5px solid var(--pink);
  box-shadow: 0 0 30px rgba(255, 43, 214, .45);
  background: #0a0718;
}
.clue-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s, transform .6s; }
.clue-img::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); pointer-events: none; }

/* Saisie + suggestions */
.guess { position: relative; display: flex; gap: 8px; }
.guess .field { position: relative; flex: 1; }
.guess input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 14px;
  background: rgba(5, 3, 12, .7); border: 1.5px solid var(--line); outline: none;
  transition: .2s;
}
.guess input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 240, 255, .12), 0 0 20px rgba(0, 240, 255, .2); }
.guess input::placeholder { color: var(--dim); }
.guess .field > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.suggest {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  max-height: 300px; overflow-y: auto; padding: 6px;
  background: var(--panel-solid); border: 1px solid rgba(0, 240, 255, .3); border-radius: 14px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(0, 240, 255, .12);
}
.suggest:empty { display: none; }
.suggest button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  font-size: 15px; color: var(--text);
}
.suggest button small { color: var(--muted); margin-left: 6px; }
.suggest button mark { background: none; color: var(--cyan); }
.suggest button.hi, .suggest button:hover { background: rgba(0, 240, 255, .1); }

.attempts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.attempts li {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 11px;
  border: 1px solid var(--line); font-size: 14px; color: var(--muted);
  animation: viewIn .3s;
}
.attempts li.bad { border-color: rgba(255, 59, 92, .35); color: #ff9db0; }
.attempts li.near { border-color: rgba(255, 176, 46, .45); color: #ffd18a; }
.attempts li.skip { color: var(--dim); }
.attempts li::before { content: attr(data-i); font-family: var(--font-display); font-size: 11px; opacity: .6; }

/* Révélation */
.reveal { text-align: center; animation: viewIn .5s; }
.reveal .cover {
  width: 200px; height: 200px; margin: 6px auto 18px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--rc, var(--lime)), 0 0 40px var(--rc, var(--lime));
}
.reveal .cover.char { width: 200px; height: 260px; }
.reveal .verdict {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .1em; font-size: clamp(26px, 6vw, 38px);
  color: var(--rc, var(--lime)); text-shadow: 0 0 18px var(--rc, var(--lime)); margin: 0;
}
.reveal h2 { margin: 10px 0 2px; font-size: 24px; }
.reveal .sub { color: var(--muted); margin: 0 0 18px; }
.reveal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.stats { display: flex; justify-content: center; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.stat {
  min-width: 96px; padding: 10px 14px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.stat b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--c, var(--cyan)); text-shadow: 0 0 10px var(--c, var(--cyan)); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

/* ─── Mode soirée / joueurs ─────────────── */
.players-edit { display: flex; gap: 8px; margin: 10px 0; }
.players-edit input {
  flex: 1; padding: 12px 14px; border-radius: 12px; background: rgba(5, 3, 12, .7);
  border: 1.5px solid var(--line); outline: none;
}
.players-edit input:focus { border-color: var(--pink); }
.player-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 43, 214, .4); background: rgba(255, 43, 214, .07); font-weight: 600;
}
.pchip button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.pchip button:hover { background: rgba(255, 59, 92, .25); color: #fff; }

.scoreboard { display: grid; gap: 8px; }
.score-row {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: .2s; text-align: left;
}
.score-row .rk { font-family: var(--font-display); font-weight: 800; color: var(--dim); text-align: center; }
.score-row .nm { font-weight: 700; }
.score-row .pts { font-family: var(--font-display); font-weight: 800; color: var(--pink); text-shadow: 0 0 10px var(--pink); font-variant-numeric: tabular-nums; }
.score-row:first-child .rk { color: var(--amber); text-shadow: 0 0 10px var(--amber); }
button.score-row:hover { border-color: var(--lime); box-shadow: 0 0 18px rgba(57, 255, 136, .25); }
button.score-row.got { border-color: var(--lime); background: rgba(57, 255, 136, .1); }
button.score-row.got .pts { color: var(--lime); text-shadow: 0 0 10px var(--lime); }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.side h3 { font-family: var(--font-display); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* ─── Undercover ────────────────────────── */
.uc-card {
  position: relative; width: min(320px, 80vw); aspect-ratio: 3 / 4.3; margin: 10px auto 22px;
  perspective: 1200px; cursor: pointer;
}
.uc-inner { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.uc-card.flipped .uc-inner { transform: rotateY(180deg); }
.uc-face {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 2px solid var(--pink); box-shadow: 0 0 34px rgba(255, 43, 214, .5), inset 0 0 40px rgba(255, 43, 214, .15);
  background: radial-gradient(circle at 50% 30%, #2a0b45, #07041a 70%);
  display: grid; place-items: center; text-align: center;
}
.uc-face.back { transform: rotateY(180deg); border-color: var(--cyan); box-shadow: 0 0 34px rgba(0, 240, 255, .5); }
.uc-face.back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-face.back .uc-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 18px;
  background: linear-gradient(to top, rgba(5, 3, 12, .96), transparent);
}
.uc-name b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; text-shadow: 0 0 12px var(--cyan); }
.uc-name span { color: var(--muted); font-size: 14px; }
.uc-front-logo { font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: .12em; color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink); }
.uc-front-sub { color: var(--muted); margin-top: 8px; font-size: 14px; letter-spacing: .1em; }
.uc-white { display: grid; gap: 10px; padding: 24px; }
.uc-white .q { font-family: var(--font-display); font-size: 90px; font-weight: 900; color: #fff; text-shadow: 0 0 20px #fff, 0 0 50px var(--violet); line-height: 1; }

.uc-word { display: grid; gap: 14px; padding: 24px; }
.uc-word span { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.uc-word b {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 9vw, 40px); line-height: 1.1;
  color: #fff; text-shadow: 0 0 12px var(--cyan), 0 0 34px var(--cyan); overflow-wrap: anywhere;
}
.uc-word-tile {
  display: grid; gap: 6px; place-content: center; min-width: 150px; min-height: 120px; padding: 18px; border-radius: 16px;
  border: 1.5px solid var(--rc); box-shadow: 0 0 26px color-mix(in srgb, var(--rc) 45%, transparent);
}
.uc-word-tile b { font-family: var(--font-display); font-size: 22px; color: #fff; text-shadow: 0 0 10px var(--rc); }
.uc-word-tile span { color: var(--muted); font-size: 13px; }
.uc-lien {
  max-width: 460px; margin: 20px auto 0; padding: 14px 18px; border-radius: 14px;
  border: 1px dashed rgba(138, 92, 255, .6); background: rgba(138, 92, 255, .08); font-weight: 600;
}
.uc-lien span { display: block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }

.pass-to { text-align: center; margin: 0 0 6px; color: var(--muted); }
.pass-to b { display: block; font-family: var(--font-display); font-size: clamp(30px, 7vw, 44px); color: #fff; text-shadow: 0 0 14px var(--pink); margin-top: 4px; }

.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vote {
  position: relative; padding: 16px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); font-weight: 700; font-size: 17px; text-align: center; transition: .2s;
}
.vote:hover { border-color: var(--red); box-shadow: 0 0 22px rgba(255, 59, 92, .35); }
.vote small { display: block; font-weight: 500; font-size: 12px; color: var(--dim); margin-top: 2px; letter-spacing: .1em; text-transform: uppercase; }
.vote.dead { opacity: .4; pointer-events: none; text-decoration: line-through; }
.vote.dead small { text-decoration: none; }
.vote .ord { position: absolute; top: 8px; left: 10px; font-family: var(--font-display); font-size: 11px; color: var(--cyan); }

.role-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.role-civil { color: var(--cyan); border: 1px solid var(--cyan); }
.role-under { color: var(--pink); border: 1px solid var(--pink); }
.role-white { color: #fff; border: 1px solid #fff; }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; font-weight: 700; color: var(--cyan); }
.stepper button:hover { background: rgba(0, 240, 255, .1); }
.stepper b { min-width: 28px; text-align: center; font-family: var(--font-display); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border: 0; }
.setting span small { display: block; color: var(--dim); font-size: 13px; }

.rules { color: var(--muted); font-size: 15px; }
.rules li { margin: 4px 0; }
.rules b { color: var(--text); }

/* ─── En ligne ─────────────────────────── */
.online-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto 22px;
  padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid rgba(57, 255, 136, .45); background: rgba(57, 255, 136, .06);
  box-shadow: 0 0 26px rgba(57, 255, 136, .12);
}
.ob-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.ob-text b { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; color: var(--lime); text-shadow: 0 0 10px rgba(57, 255, 136, .6); }
.ob-text span { font-size: 13px; color: var(--muted); }
.ob-join { display: flex; gap: 6px; }
.ob-join input {
  width: 96px; padding: 8px 10px; border-radius: 11px; text-align: center; letter-spacing: .25em; text-transform: uppercase;
  background: rgba(5, 3, 12, .7); border: 1.5px solid var(--line); outline: none; font-weight: 700;
}
.ob-join input:focus { border-color: var(--pink); }
.online-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .online-split { grid-template-columns: 1fr; gap: 0; } }
.lbl-field { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.online-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 59, 92, .5); background: rgba(255, 59, 92, .1); color: #ffb3c1; }
.online-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.room-code {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  font-size: 13px; letter-spacing: .2em; color: var(--muted);
}
.room-code svg { width: 18px; height: 18px; color: var(--lime); }
.room-code b { font-family: var(--font-display); color: var(--lime); text-shadow: 0 0 10px var(--lime); letter-spacing: .25em; font-size: 16px; }
.big-code {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .3em; font-size: clamp(40px, 11vw, 70px);
  color: #fff; text-shadow: 0 0 10px var(--lime), 0 0 40px var(--lime); margin: 4px 0 6px; padding-left: .3em;
}
.round-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.round-head b { color: var(--cyan); }
.found-msg { flex: 1; padding: 14px; border-radius: 14px; text-align: center; font-weight: 700; color: var(--lime); border: 1.5px solid var(--lime); box-shadow: 0 0 20px rgba(57, 255, 136, .3); }
.found-msg.out { color: var(--red); border-color: var(--red); box-shadow: 0 0 20px rgba(255, 59, 92, .25); }
.tries { margin: 10px 0 0; font-size: 14px; }
.score-row.me { border-color: rgba(0, 240, 255, .5); }
.score-row em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 6px; }
.score-row em.ok { color: var(--lime); }
.score-row em.ko { color: var(--red); }
.score-row em.wait { color: var(--dim); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 420px; margin: 20px auto 24px; }
.pod { display: grid; gap: 4px; text-align: center; }
.pod b { font-size: 16px; overflow-wrap: anywhere; }
.pod span { font-size: 13px; color: var(--muted); }
.pod-bar {
  display: grid; place-items: center; border-radius: 12px 12px 4px 4px;
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  border: 1.5px solid var(--pc); color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pc) 45%, transparent);
}
.pod1 { --pc: var(--amber); } .pod2 { --pc: var(--cyan); } .pod3 { --pc: var(--pink); }
.room-code em { font-style: normal; color: var(--muted); letter-spacing: .05em; }
.game-pick { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.clue-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 0 20px var(--pink);
}
.uc-order { list-style: none; counter-reset: o; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.uc-order li {
  counter-increment: o; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); font-weight: 600;
}
.uc-order li::before { content: counter(o); font-family: var(--font-display); color: var(--cyan); min-width: 18px; }
.uc-order li.me { border-color: rgba(0, 240, 255, .5); box-shadow: 0 0 14px rgba(0, 240, 255, .15); }
.uc-elim {
  text-align: center; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  border: 1px dashed rgba(255, 43, 214, .5); background: rgba(255, 43, 214, .07);
}
.vote.voted { border-color: var(--pink); background: rgba(255, 43, 214, .14); box-shadow: 0 0 22px rgba(255, 43, 214, .35); }
.vote.voted small { color: var(--pink); }
.confirm-bar {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 16px;
  background: var(--panel-solid); border: 1px solid var(--red); box-shadow: 0 0 26px rgba(255, 59, 92, .35); font-weight: 600;
}
.chip[disabled] { pointer-events: none; opacity: .75; }
.chip[disabled]:not(.on) { opacity: .35; }

/* ─── Mémoire ──────────────────────────── */
.mem-panel { max-width: 560px; }
.mem { display: grid; gap: 16px; }
.mem-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mem-title { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 12px var(--c); }
.mem-pips { display: flex; gap: 6px; }
.mem-pips span {
  min-width: 36px; height: 30px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.mem-pips span.cur { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
.mem-pips span.done { color: #04020a; background: var(--accent); border-color: var(--accent); }
.mem-stage { display: grid; gap: 16px; animation: viewIn .4s; }
.mem-hint { margin: 0; text-align: center; font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mem-swatch {
  width: 100%; aspect-ratio: 16 / 9; max-height: 34vh; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px -20px rgba(0, 0, 0, .8); transition: background .08s;
}
.mem-timer { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mem-timer-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #fff); transform-origin: left; animation: memTimer linear forwards; box-shadow: 0 0 12px var(--accent); }
@keyframes memTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mem-sliders { display: grid; gap: 12px; }
.mem-slider { display: grid; grid-template-columns: 96px 1fr 42px; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.mem-slider.wide { grid-template-columns: auto 1fr auto; }
.mem-slider b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.mem-slider input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.mem-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #05030c;
  box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255, 255, 255, .7); cursor: grab;
}
.mem-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #05030c; box-shadow: 0 0 0 2px #fff; cursor: grab; }
.mem-slider input[type=range]:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.mem-orb {
  width: min(220px, 60vw); aspect-ratio: 1; margin: 6px auto; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: radial-gradient(circle, rgba(255, 255, 255, .04), transparent 70%); transition: .25s;
}
.mem-orb.on {
  background: radial-gradient(circle, #fff, var(--accent) 45%, transparent 72%);
  border-color: var(--accent); box-shadow: 0 0 60px var(--accent), inset 0 0 40px var(--accent); animation: orbPulse 1.2s ease-in-out infinite;
}
@keyframes orbPulse { 50% { transform: scale(1.04); } }
.mem-hold {
  width: 100%; padding: 22px; border-radius: 18px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .1s, background .1s;
}
.mem-hold.down { transform: scale(.97); background: var(--accent); color: #04020a; box-shadow: 0 0 40px var(--accent); }
.mem-wave { display: flex; justify-content: center; align-items: center; gap: 8px; height: 120px; }
.mem-wave i { width: 10px; height: 20px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: .35; }
.mem-wave.on i { opacity: 1; animation: waveBar .5s ease-in-out infinite alternate; }
.mem-wave.on i:nth-child(2) { animation-delay: .1s; } .mem-wave.on i:nth-child(3) { animation-delay: .2s; }
.mem-wave.on i:nth-child(4) { animation-delay: .3s; } .mem-wave.on i:nth-child(5) { animation-delay: .4s; }
@keyframes waveBar { to { height: 100px; } }
.mem-freq { text-align: center; }
.mem-freq b { font-family: var(--font-display); font-size: clamp(40px, 11vw, 64px); color: #fff; text-shadow: 0 0 18px var(--accent); font-variant-numeric: tabular-nums; }
.mem-freq span { margin-left: 6px; color: var(--muted); }
/* ─── Quiz ─── */
.clue-img.square { aspect-ratio: 1; width: min(320px, 78vw); }
.mem-pips.many { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mem-pips.many span { min-width: 26px; height: 26px; font-size: 11px; padding: 0 4px; }
.mem-pips span.done.ko { background: transparent; color: var(--red); border-color: var(--red); }

/* Classement */
.rank-cur {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent); animation: viewIn .3s;
}
.rank-cur img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.rank-cur b { display: block; font-size: 18px; }
.rank-cur span { color: var(--muted); font-size: 14px; }
.rank-cur em { font-style: normal; font-family: var(--font-display); color: var(--accent); }
.rank-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-slot {
  width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px 44px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 14px; border: 1.5px dashed var(--line); background: rgba(255, 255, 255, .02); text-align: left; transition: .15s;
}
.rank-slot > b { font-family: var(--font-display); font-size: 18px; color: var(--accent); text-align: center; }
.rank-slot img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.rank-slot span { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.rank-slot small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.rank-slot .empty-slot { grid-column: 2 / -1; color: var(--dim); font-weight: 500; }
button.rank-slot:not([disabled]):hover { border-color: var(--accent); border-style: solid; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.rank-slot.full { border-style: solid; }
.rank-slot em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rank-slot.p2 { border-color: var(--lime); } .rank-slot.p2 em { color: var(--lime); }
.rank-slot.p1 { border-color: var(--amber); } .rank-slot.p1 em { color: var(--amber); }
.rank-slot.p0 { border-color: rgba(255, 59, 92, .6); } .rank-slot.p0 em { color: var(--red); }
.rank-slots.done { text-align: left; }

/* Vrai ou Cap */
.vc-card {
  min-height: 150px; display: grid; place-content: center; gap: 12px; padding: 22px; border-radius: 20px; text-align: center;
  border: 1.5px solid var(--line); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), #08051c;
}
.vc-card p { margin: 0; font-size: clamp(18px, 4.6vw, 24px); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.vc-card.ok { border-color: var(--lime); box-shadow: 0 0 30px rgba(57, 255, 136, .3); }
.vc-card.ko { border-color: var(--red); box-shadow: 0 0 30px rgba(255, 59, 92, .3); }
.vc-why { font-size: 15px; color: var(--muted); animation: viewIn .3s; }
.vc-why b { color: var(--text); }
.vc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vc-btn {
  padding: 20px 10px; border-radius: 18px; font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .1em;
  display: grid; gap: 4px; transition: transform .1s, box-shadow .2s, opacity .2s;
}
.vc-btn small { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .05em; opacity: .7; }
.vc-btn.vrai { color: var(--lime); border: 2px solid var(--lime); background: rgba(57, 255, 136, .08); }
.vc-btn.cap { color: var(--red); border: 2px solid var(--red); background: rgba(255, 59, 92, .08); }
.vc-btn:hover { transform: translateY(-2px); }
.vc-btn.vrai:hover { box-shadow: 0 0 26px rgba(57, 255, 136, .45); }
.vc-btn.cap:hover { box-shadow: 0 0 26px rgba(255, 59, 92, .45); }
.vc-btn:active { transform: scale(.97); }
.vc-btn[disabled] { opacity: .35; transform: none; }
.vc-btn.right { opacity: 1; }
.vc-btn.vrai.right { background: var(--lime); color: #04020a; box-shadow: 0 0 30px rgba(57, 255, 136, .5); }
.vc-btn.cap.right { background: var(--red); color: #04020a; box-shadow: 0 0 30px rgba(255, 59, 92, .5); }

/* Dictée */
.di-listen { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.di-play {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 2px solid var(--accent); background: radial-gradient(circle at 35% 30%, #1d1640, #07041a);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent); transition: .2s;
}
.di-play svg { width: 46px; height: 46px; filter: drop-shadow(0 0 8px var(--accent)); }
.di-play:hover { transform: scale(1.05); }
.di-form { display: flex; gap: 8px; }
.di-input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; font-size: 20px; font-weight: 600; letter-spacing: .03em;
  background: rgba(5, 3, 12, .7); border: 1.5px solid var(--line); outline: none;
}
.di-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.accent-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.accent-keys button {
  width: 38px; height: 38px; border-radius: 10px; font-size: 17px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.accent-keys button:hover { border-color: var(--accent); color: var(--accent); }
.di-answer { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--lime); }
.di-answer.ko { border-color: var(--red); }
.di-answer span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.di-answer b { font-size: 24px; letter-spacing: .04em; word-break: break-all; }
.di-answer mark { background: rgba(255, 59, 92, .3); color: #ff9db0; border-radius: 3px; }

/* Note : molette + onde */
.note-stage {
  position: relative; display: grid; place-items: center; min-height: 200px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(138, 92, 255, .14), transparent 70%), #07041a;
  border: 1px solid var(--line);
}
.note-stage.dial-stage { min-height: 0; padding: 18px 0 10px; }
.note-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.note-center { position: relative; }
.dial {
  --h: 200;
  position: relative; width: min(320px, 82vw); aspect-ratio: 1; touch-action: none; cursor: grab; outline: none;
  border-radius: 50%; user-select: none; -webkit-user-select: none;
}
.dial.grab { cursor: grabbing; }
.dial::before {
  content: ''; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, hsla(var(--h), 100%, 60%, .25), transparent 70%), #08051c;
  border: 1px solid hsla(var(--h), 100%, 65%, .45);
  box-shadow: 0 0 40px hsla(var(--h), 100%, 60%, .35), inset 0 0 30px hsla(var(--h), 100%, 60%, .18);
  transition: box-shadow .2s;
}
.dial.grab::before { box-shadow: 0 0 70px hsla(var(--h), 100%, 60%, .6), inset 0 0 40px hsla(var(--h), 100%, 60%, .3); }
.dial:focus-visible::before { outline: 2px solid hsla(var(--h), 100%, 70%, .8); outline-offset: 4px; }
.dial-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-svg .tk { stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.dial-svg .tk.big { stroke: rgba(255, 255, 255, .55); stroke-width: 2.5; }
.dial-svg .tk-lbl { fill: var(--dim); font: 600 10px var(--font); text-anchor: middle; dominant-baseline: middle; }
.dial-svg .dial-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 10; stroke-linecap: round; }
.dial-svg .dial-prog { fill: none; stroke: url(#dialGrad); stroke-width: 10; stroke-linecap: round; }
.dial-svg .dial-knob { fill: #fff; stroke: hsl(var(--h), 100%, 60%); stroke-width: 4; }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 2px; }
.dial-read b {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 8vw, 40px); line-height: 1; color: #fff;
  text-shadow: 0 0 16px hsl(var(--h), 100%, 60%); font-variant-numeric: tabular-nums;
}
.dial-read span { color: hsl(var(--h), 100%, 75%); font-weight: 700; letter-spacing: .25em; font-size: 12px; }
.dial-read small { color: var(--dim); font-size: 11px; letter-spacing: .08em; margin-top: 4px; }
.note-fine { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.fine-btn {
  width: 46px; height: 46px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent); transition: .15s;
}
.fine-btn:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.fine-btn:active { transform: scale(.94); }

.mem-result { text-align: center; }
.mem-score { font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 14vw, 84px); line-height: 1; color: #fff; text-shadow: 0 0 20px var(--accent), 0 0 50px var(--accent); font-variant-numeric: tabular-nums; }
.mem-score small { font-size: .35em; color: var(--muted); text-shadow: none; margin-left: 4px; }
.mem-score.big { font-size: clamp(60px, 16vw, 100px); }
.mem-quip { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.mem-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mem-compare > div { display: grid; gap: 6px; justify-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.mem-compare span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mem-compare.nums b { font-family: var(--font-display); font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mem-chip { width: 100%; height: 90px; border-radius: 12px; }
.mem-detail { margin: 0; color: var(--muted); font-size: 14px; }
.mem-wait { display: grid; gap: 10px; }

/* ─── Divers ───────────────────────────── */
.center { text-align: center; }
.mt { margin-top: 18px; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 60;
  padding: 12px 20px; border-radius: 14px; font-weight: 600;
  background: var(--panel-solid); border: 1px solid var(--pink); box-shadow: 0 0 26px rgba(255, 43, 214, .4);
  opacity: 0; pointer-events: none; transition: .3s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Porte d'entrée (code) */
.gate { min-height: 70vh; display: grid; place-items: center; }
.gate .panel { width: min(420px, 100%); text-align: center; }
.gate input {
  width: 100%; margin: 16px 0 12px; padding: 14px; border-radius: 14px; text-align: center; font-size: 20px; letter-spacing: .3em;
  background: rgba(5, 3, 12, .8); border: 1.5px solid var(--line); outline: none;
}
.gate input:focus { border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 43, 214, .3); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ─── Barre du haut sur téléphone (en dernier pour passer devant le reste) ─── */
.topnav a { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar { padding-inline: 12px; }
  .topnav { gap: 0; }
  .topnav a { padding: 8px 7px; font-size: 12px; letter-spacing: .02em; }
  .back-btn { padding: 8px 10px; font-size: 0; gap: 0; }   /* juste la flèche */
  .back-btn svg { width: 18px; height: 18px; }
  .vol-btn { width: 36px; height: 36px; margin-left: 4px; }
}
/* ─── Culture Games ─── */
.nav-hot { color: var(--amber) !important; }
.topnav a.nav-hot.on { border-color: rgba(255, 176, 46, .5); box-shadow: 0 0 16px rgba(255, 176, 46, .25); }
.cg-banner {
  position: relative; display: grid; gap: 6px; margin: 0 0 8px; padding: 22px 24px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  border: 1.5px solid rgba(255, 176, 46, .55);
  background: linear-gradient(120deg, rgba(255, 176, 46, .16), rgba(255, 43, 214, .14) 50%, rgba(0, 240, 255, .14));
  box-shadow: 0 0 40px rgba(255, 176, 46, .18); transition: transform .3s, box-shadow .3s;
}
.cg-banner::after {
  content: ''; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(255, 176, 46, .25), transparent 30%, rgba(255, 43, 214, .2), transparent 60%);
  animation: cgSpin 8s linear infinite;
}
@keyframes cgSpin { to { transform: rotate(360deg); } }
.cg-banner:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -14px rgba(255, 176, 46, .6); }
.cg-banner b { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 6vw, 36px); letter-spacing: .06em; color: #fff; text-shadow: 0 0 14px var(--amber), 0 0 34px rgba(255, 43, 214, .6); }
.cg-banner span { color: var(--muted); }
.cg-banner .cg-banner-tag {
  justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: #04020a; background: var(--amber); box-shadow: 0 0 14px var(--amber);
}
.cg-hero h1 { background: linear-gradient(90deg, #ffb02e, #ff2bd6, #00f0ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(255, 43, 214, .5)); }
.cg-panel { max-width: 620px; }
.cg-intro { display: grid; gap: 16px; text-align: center; color: var(--muted); }
.cg-intro p { margin: 0; }
.cg { display: grid; gap: 14px; }
.cg-head { display: grid; gap: 8px; }
.cg-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cg-badge {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #04020a; background: var(--amber); box-shadow: 0 0 14px rgba(255, 176, 46, .5);
}
.cg-count { color: var(--muted); font-size: 14px; } .cg-count b { color: var(--text); }
.cg-total { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--amber); text-shadow: 0 0 10px rgba(255, 176, 46, .6); font-variant-numeric: tabular-nums; }
.cg-progress { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cg-progress i { display: block; height: 100%; background: linear-gradient(90deg, #ffb02e, #ff2bd6, #00f0ff); }
.cg-prompt { margin: 4px 0 0; text-align: center; font-size: clamp(18px, 4.6vw, 23px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.cg-prompt.vc { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #08051c; }
.cg-audio { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.cg-play {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--amber);
  border: 2px solid var(--amber); background: radial-gradient(circle at 35% 30%, #2a1a10, #07041a);
  box-shadow: 0 0 30px rgba(255, 176, 46, .5); animation: orbPulse 1.6s ease-in-out infinite;
}
.cg-play svg { width: 38px; height: 38px; filter: drop-shadow(0 0 8px var(--amber)); }
.cg-blur { margin: 0 auto; }
.cg-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.cg-card img { width: 72px; height: 72px; border-radius: 12px; }
.cg-card b { display: block; font-size: 18px; } .cg-card span { color: var(--muted); font-size: 14px; }
.cg-pair { display: flex; justify-content: center; align-items: center; gap: 12px; }
.cg-pair figure { margin: 0; display: grid; gap: 6px; text-align: center; width: min(150px, 38vw); }
.cg-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--pink); box-shadow: 0 0 20px rgba(255, 43, 214, .35); }
.cg-pair figcaption { font-weight: 700; font-size: 14px; } .cg-pair small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.cg-pair > span { font-family: var(--font-display); font-size: 28px; color: var(--pink); }
.cg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cg-opts.long { grid-template-columns: 1fr; }
.cg-opt {
  display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .03); transition: .15s;
}
.cg-opt b { font-size: 16px; line-height: 1.25; } .cg-opt small { color: var(--muted); font-size: 13px; }
.cg-opt:not([disabled]):hover { border-color: var(--amber); box-shadow: 0 0 18px rgba(255, 176, 46, .3); transform: translateY(-1px); }
.cg-opt:active { transform: scale(.98); }
.cg-opt[disabled] { opacity: .45; }
.cg-opt.right { opacity: 1; border-color: var(--lime); background: rgba(57, 255, 136, .14); box-shadow: 0 0 22px rgba(57, 255, 136, .35); }
.cg-opt.wrong { opacity: 1; border-color: var(--red); background: rgba(255, 59, 92, .14); }
.cg-opts.two .cg-opt { text-align: center; font-family: var(--font-display); }
.cg-opts.two .cg-opt b { font-size: 22px; letter-spacing: .1em; }
.cg-opt.vrai { color: var(--lime); border-color: rgba(57, 255, 136, .5); } .cg-opt.cap { color: var(--red); border-color: rgba(255, 59, 92, .5); }
.cg-opts.duel .cg-opt { text-align: center; justify-items: center; gap: 8px; }
.cg-opts.duel img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); }
.cg-reveal { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--lime); background: rgba(57, 255, 136, .06); animation: viewIn .3s; }
.cg-reveal.ko { border-color: var(--red); background: rgba(255, 59, 92, .06); }
.cg-reveal img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.cg-reveal img.tall { height: 100px; }
.cg-reveal > div { display: grid; gap: 2px; min-width: 0; }
.cg-reveal b { font-size: 17px; } .cg-reveal span { color: var(--muted); font-size: 14px; }
.cg-verdict { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; color: var(--lime); }
.cg-reveal.ko .cg-verdict { color: var(--red); }
.cg-verdict.center { text-align: center; color: var(--amber); font-size: 20px; }
[data-after] { display: grid; gap: 12px; }
[data-after]:empty { display: none; }
.di-diff mark { background: rgba(255, 59, 92, .3); color: #ff9db0; border-radius: 3px; }
.cg-recap { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; text-align: left; }
.cg-recap li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.cg-recap li b { color: var(--lime); font-variant-numeric: tabular-nums; } .cg-recap li.ko b { color: var(--red); }
.cg-recap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
@media (max-width: 480px) {
  .cg-opts { grid-template-columns: 1fr; }
  .cg-opts.two, .cg-opts.duel { grid-template-columns: 1fr 1fr; }
  .cg-opt { min-height: 54px; }
}


.topbar { gap: 10px; }
.topnav { margin-left: auto; }

/* ─── Menu ☰ sur téléphone ─── */
.menu-btn { display: none; }
@media (max-width: 640px) {
  .topbar { position: sticky; }
  .menu-btn {
    display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 12px;
    color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35);
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .menu-btn[aria-expanded="true"] { background: rgba(0, 240, 255, .1); box-shadow: 0 0 16px rgba(0, 240, 255, .3); }
  .topnav {
    position: absolute; top: calc(100% + 6px); right: 12px; left: 12px; z-index: 40; margin: 0;
    display: none; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px;
    background: var(--panel-solid); border: 1px solid rgba(0, 240, 255, .3); box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 24px rgba(0, 240, 255, .15);
  }
  .topnav.open { display: flex; animation: viewIn .2s; }
  .topnav a { padding: 14px 16px !important; font-size: 15px !important; border-radius: 12px; }
  .topnav a.on { background: rgba(0, 240, 255, .08); }
  .topleft:has(.back-btn:not([hidden])) .brand { display: inline-block; }
  .back-btn { padding: 8px 10px; font-size: 0; gap: 0; }
}
/* Drapeaux (format paysage) */
.clue-img.wide { aspect-ratio: 3 / 2; width: min(420px, 86vw); background: #fff1; }
.reveal .cover.flag { width: min(320px, 80vw); height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cg-flag { width: min(360px, 86vw); aspect-ratio: 3 / 2; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 14px 40px rgba(0, 0, 0, .6); }
.cg-flag img { width: 100%; height: 100%; object-fit: cover; }
/* Undercover : indices écrits */
.uc-clues { display: grid; gap: 10px; margin: 4px 0 14px; }
.uc-clues-round { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.uc-clues-round.cur { border-color: rgba(255, 43, 214, .45); box-shadow: 0 0 20px rgba(255, 43, 214, .12); }
.uc-clues-round h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.uc-clues-round ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uc-clues-round li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; }
.uc-clues-round li b { min-width: 80px; }
.uc-clues-round li span { font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(255, 43, 214, .45); overflow-wrap: anywhere; }
.uc-clues-round li em { font-style: normal; color: var(--dim); font-size: 14px; }
.uc-clues-round li.me b { color: var(--cyan); }
.uc-clues-round li.now { background: rgba(255, 43, 214, .1); }
.uc-clues-round li.now em { color: var(--pink); animation: flicker 1.6s infinite; }
.uc-clue-form { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--pink); background: rgba(255, 43, 214, .08); box-shadow: 0 0 26px rgba(255, 43, 214, .25); margin-bottom: 12px; }
.uc-clue-form label { font-weight: 700; }
.uc-clue-row { display: flex; gap: 8px; }
.uc-clue-row input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; font-size: 18px; background: rgba(5, 3, 12, .8); border: 1.5px solid var(--line); outline: none; }
.uc-clue-row input:focus { border-color: var(--pink); }
.uc-wait { margin: 0 0 12px; }
.clue-img.wide::after { display: none; }   /* pas de fausses rayures sur un drapeau */

/* Anti-triche : l'image mystère ne peut être ni glissée, ni ouverte, ni enregistrée (souris ou appui long) */
.clue-img, .cg-blur, .cg-flag { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.clue-img img, .cg-blur img, .cg-flag img { pointer-events: none; -webkit-user-drag: none; user-drag: none; }
/* ═══════════ DESTIN FC ═══════════ */
.df-hero h1 { background: linear-gradient(90deg, #39ff88, #00f0ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(57, 255, 136, .5)); }
.df-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.df-tile { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.df-tile.main { border-color: rgba(57, 255, 136, .45); box-shadow: 0 0 30px rgba(57, 255, 136, .12); }
.df-tile > b { font-family: var(--font-display); font-size: 18px; letter-spacing: .05em; }
.df-tile > span { color: var(--muted); font-size: 14px; }
.df-tile .online-box { margin: 0; }
.df-pantheon { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.df-pantheon li { display: grid; grid-template-columns: 26px 28px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); }
.df-pantheon li span { font-family: var(--font-display); color: var(--amber); }
.df-pantheon img { width: 28px; border-radius: 3px; }
.df-pantheon em { font-style: normal; color: var(--muted); font-size: 13px; }
.df-pantheon strong { color: var(--lime); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .df-pantheon li { grid-template-columns: 22px 24px 1fr auto; } .df-pantheon em { display: none; } }

.df-wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0; }
.df-dots { display: flex; gap: 6px; }
.df-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.df-dots i.on { background: var(--lime); box-shadow: 0 0 10px var(--lime); } .df-dots i.done { background: rgba(57, 255, 136, .5); }
.df-wiz { max-width: 860px; margin: 0 auto; }
.df-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.df-grid.flags { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.df-grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.df-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; text-align: left; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .03); transition: .15s; }
.df-grid.flags .df-opt { flex-direction: column; text-align: center; gap: 8px; }
.df-opt img { width: 56px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.df-opt i { font-style: normal; font-size: 26px; }
.df-opt span { display: grid; gap: 2px; font-weight: 700; }
.df-opt small { color: var(--muted); font-weight: 500; font-size: 13px; }
.df-opt:hover, .df-opt.on { border-color: var(--lime); box-shadow: 0 0 18px rgba(57, 255, 136, .3); }
.df-name { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.df-name label { display: grid; gap: 6px; font-weight: 700; }
.df-name input { padding: 13px 14px; border-radius: 12px; font-size: 18px; background: rgba(5, 3, 12, .8); border: 1.5px solid var(--line); outline: none; }
.df-name input:focus { border-color: var(--lime); }

.df-panel { max-width: 640px; margin: 0 auto; }
.df { display: grid; gap: 12px; }
.df-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(57, 255, 136, .08), rgba(0, 240, 255, .05)); border: 1px solid rgba(57, 255, 136, .3); }
.df-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .12), transparent 70%), #0a0718; }
.df-avatar.big { width: 104px; height: 104px; }
.df-id { display: grid; gap: 4px; min-width: 0; }
.df-id > b { font-size: 19px; }
.df-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.df-line img { width: 20px; border-radius: 2px; }
.df-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid; display: inline-block; flex: none; }
.df-dot.big { width: 22px; height: 22px; }
.df-tier { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; border-radius: 6px; background: rgba(0, 240, 255, .15); color: var(--cyan); }
.df-ovr { display: grid; justify-items: center; gap: 2px; }
.df-ovr b { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: #04020a; background: var(--amber); border-radius: 12px; padding: 4px 10px; box-shadow: 0 0 18px rgba(255, 176, 46, .5); }
.df-ovr small { color: var(--amber); font-size: 10px; text-align: right; letter-spacing: .05em; }
.df-ovr i { font-style: normal; font-size: 11px; } .df-ovr .up { color: var(--lime); } .df-ovr .down { color: var(--red); }
.df-bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 176, 46, .25), rgba(255, 176, 46, .05)); font-weight: 700; font-size: 14px; }
.df-more { margin-left: auto; color: var(--amber); font-weight: 700; }
.df-profile { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.df-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.df-attrs div { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.df-attrs i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.df-attrs i b { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.df-attrs em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.df-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.df-kpis div { display: grid; justify-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); }
.df-kpis b { font-family: var(--font-display); font-size: 20px; color: var(--lime); font-variant-numeric: tabular-nums; }
.df-kpis span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; }
.df-trophies { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.df-trophies li { padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 176, 46, .4); background: rgba(255, 176, 46, .08); font-size: 13px; font-weight: 600; }
.df-event { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #0b0820; border: 1.5px solid rgba(138, 92, 255, .45); box-shadow: 0 0 30px rgba(138, 92, 255, .15); animation: viewIn .35s; }
.df-cat { margin: 0; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.df-text { margin: 0; font-size: 17px; line-height: 1.45; text-align: center; text-wrap: balance; }
.df-head { margin: 0; text-align: center; font-weight: 700; font-style: italic; color: var(--amber); }
.df-choices { display: grid; gap: 8px; }
.df-choice { display: grid; gap: 2px; padding: 14px; border-radius: 14px; text-align: center; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 600; transition: .15s; }
.df-choice em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--violet); }
.df-choice small { color: var(--muted); font-weight: 500; }
.df-choice:not([disabled]):hover { border-color: var(--violet); box-shadow: 0 0 18px rgba(138, 92, 255, .35); transform: translateY(-1px); }
.df-choice[disabled] { opacity: .5; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.df-chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.df-chip.good { color: var(--lime); background: rgba(57, 255, 136, .1); border: 1px solid rgba(57, 255, 136, .4); }
.df-chip.bad { color: var(--red); background: rgba(255, 59, 92, .1); border: 1px solid rgba(255, 59, 92, .4); }
.df-lines { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.df-lines b { color: var(--text); }
.df-legend { display: grid; gap: 12px; }
.df-tierline { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 900; letter-spacing: .12em; color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 46, .6); }
.df-legend-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.df-legend-name { font-size: 22px; }
.df-nick { color: var(--lime); font-weight: 700; font-style: italic; }
.df-pts { display: grid; justify-items: center; }
.df-pts b { font-family: var(--font-display); font-size: 34px; color: var(--lime); text-shadow: 0 0 14px rgba(57, 255, 136, .6); }
.df-pts span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .15em; }
.df-legend h4 { margin: 6px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.df-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.df-path li { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.df-path span { color: var(--dim); } .df-path em { font-style: normal; font-size: 10px; color: var(--cyan); } .df-path small { color: var(--amber); }
.df-details summary { cursor: pointer; font-weight: 700; color: var(--cyan); }
.df-details table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.df-details th, .df-details td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.df-details { overflow-x: auto; }
.df-rival { padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 43, 214, .35); background: rgba(255, 43, 214, .05); }
.df-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.df-vs > div:not(.vs) { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.df-vs b { color: var(--text); font-size: 15px; }
.df-vs .vs { font-family: var(--font-display); color: var(--pink); font-weight: 900; }
.df-defi { display: grid; gap: 4px; justify-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--amber); background: rgba(255, 176, 46, .08); text-align: center; }
.df-stars { font-size: 22px; }
@media (max-width: 480px) {
  .df-card { grid-template-columns: auto 1fr; } .df-ovr { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .df-legend-top { grid-template-columns: auto 1fr; } .df-pts { grid-column: 1 / -1; }
  .df-path li { grid-template-columns: 52px 1fr auto; } .df-path small { display: none; }
}

/* Comparatif de carrières en ligne */
.df-compare { overflow-x: auto; }
.df-compare table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.df-compare th, .df-compare td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.df-compare th:first-child, .df-compare td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel-solid); }
.df-compare thead th { color: var(--muted); font-size: 12px; }
.df-compare td.best { color: var(--lime); font-weight: 800; }
.df-compare { margin: 18px 0 6px; text-align: left; }
.df-compare h4 { margin: 0 0 10px; font-family: var(--font-display); letter-spacing: .08em; color: var(--lime); }
.df-compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.df-compare thead th b { display: block; color: #fff; font-size: 14px; }
.df-compare thead th small, .df-compare thead th em { display: block; font-style: normal; font-weight: 500; }
.df-compare thead th em { color: var(--amber); }
.df-compare td.clubs { white-space: normal; min-width: 140px; font-size: 12px; color: var(--muted); }
.df-banner { border-color: rgba(57, 255, 136, .55); background: linear-gradient(120deg, rgba(57, 255, 136, .16), rgba(0, 240, 255, .12) 55%, rgba(255, 43, 214, .1)); box-shadow: 0 0 40px rgba(57, 255, 136, .16); }
.df-banner:hover { box-shadow: 0 18px 50px -14px rgba(57, 255, 136, .6); }
.df-banner b { text-shadow: 0 0 14px var(--lime), 0 0 34px rgba(0, 240, 255, .5); }
.df-banner .cg-banner-tag { background: var(--lime); box-shadow: 0 0 14px var(--lime); }

/* ═══════════════ RAP GAME (reprend Destin FC, teinte rose néon) ═══════════════ */
.rg-banner { border-color: rgba(255, 43, 214, .6); background: linear-gradient(120deg, rgba(255, 43, 214, .2), rgba(122, 31, 255, .16) 50%, rgba(255, 176, 46, .1)); box-shadow: 0 0 40px rgba(255, 43, 214, .18); }
.rg-banner:hover { box-shadow: 0 18px 50px -14px rgba(255, 43, 214, .65); }
.rg-banner b { text-shadow: 0 0 14px var(--pink), 0 0 34px rgba(122, 31, 255, .6); }
.rg-banner .cg-banner-tag { background: var(--pink); color: #fff; box-shadow: 0 0 14px var(--pink); }
.rg-page .df-hero h1 { background: linear-gradient(90deg, #ff2bd6, #ffb02e); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px rgba(255, 43, 214, .55)); }
.rg-page .df-tile.main { border-color: rgba(255, 43, 214, .5); box-shadow: 0 0 30px rgba(255, 43, 214, .14); }
.rg-page .df-pantheon strong, .rg .df-kpis b, .rg .df-nick, .rg .df-chip.good, .rg .df-ovr .up { color: var(--pink); }
.rg .df-chip.good { background: rgba(255, 43, 214, .1); border-color: rgba(255, 43, 214, .4); }
.rg-page .df-dots i.on { background: var(--pink); box-shadow: 0 0 10px var(--pink); } .rg-page .df-dots i.done { background: rgba(255, 43, 214, .5); }
.rg-page .df-opt:hover, .rg-page .df-opt.on { border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 43, 214, .3); }
.rg-page .df-name input:focus { border-color: var(--pink); }
.rg .df-card { background: linear-gradient(135deg, rgba(255, 43, 214, .1), rgba(122, 31, 255, .07)); border-color: rgba(255, 43, 214, .35); }
.rg .df-attrs i b { background: linear-gradient(90deg, #7a1fff, var(--pink)); }
.rg .df-pts b { color: var(--pink); text-shadow: 0 0 14px rgba(255, 43, 214, .6); }
.rg .df-avatar svg { animation: rgSpin 6s linear infinite; }
.rg.df-end .df-avatar svg { animation-duration: 3s; }
@keyframes rgSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rg .df-avatar svg { animation: none; } }
.rg-dep { font-style: normal; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--pink); text-shadow: 0 0 10px rgba(255, 43, 214, .6); }
.rg-pin { font-style: normal; }
.rg-jail { color: var(--amber); font-weight: 800; letter-spacing: .08em; }
.rg .df-choice .rg-cost { margin-left: auto; padding-left: 8px; color: var(--amber); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-debt { color: var(--amber); }
.rg-mgr b { color: var(--cyan); }
.rg-title input { font-size: 18px; }
.rg-drame { text-align: center; }
.rg-drame .df-text { font-size: 18px; line-height: 1.6; }
.rg-rip { margin: 0 0 4px; text-align: center; font-family: var(--font-display); font-weight: 900; letter-spacing: .2em; color: var(--muted); }