/* ===========================================================
   LA ROUE LIBERTINE — club aux néons dorés
   =========================================================== */
body.roue-lib {
  --theme: #d6336c;
  --theme-2: #c9a227;
  --or: #e8c26a;
  --panneau: rgba(18, 9, 28, 0.9);
  background: #0d0716;
}
.club {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(214, 51, 108, 0.25), transparent 70%),
    radial-gradient(50% 35% at 50% 100%, rgba(201, 162, 39, 0.18), transparent 70%),
    #0d0716;
}
.affiche { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or); }

.ecran.jeu { gap: 10px; }
.tour-de { display: flex; justify-content: center; min-height: 32px; flex: none; }
.tour-de .jeton { --c: var(--theme); }

.roue-zone { --t: min(76vw, 300px, 32dvh); position: relative; flex: none; align-self: center; width: var(--t); height: var(--t); }
.aiguille {
  position: absolute; left: 50%; top: -6px; z-index: 2; width: 0; height: 0; transform: translateX(-50%);
  border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--or);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}
.roue {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid var(--or); box-shadow: 0 0 30px rgba(214, 51, 108, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.45);
  transition: transform 3s cubic-bezier(0.15, 0.7, 0.18, 1);
}
.roue::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18%; height: 18%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff3c4, var(--or) 60%, #8a6a12); box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); }
.case {
  --a: 0deg;
  position: absolute; left: 50%; top: 50%; width: 22%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--t) * -0.34));
  display: flex; flex-direction: column; align-items: center; gap: 0;
  font-size: clamp(0.5rem, 2.4vw, 0.66rem); font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); text-align: center; line-height: 1.05;
}
.case i { font-style: normal; font-size: clamp(0.9rem, 4vw, 1.15rem); }

.des { display: flex; justify-content: center; gap: 8px; flex: none; }
.des[hidden] { display: none; }
.de {
  width: 86px; padding: 6px 4px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, #fff8e1, #e8c26a); color: #2a1404; box-shadow: 0 4px 0 #8a6a12;
}
.de small { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.de b { display: block; font-size: 0.85rem; line-height: 1.15; }
.des.roule .de { animation: roule 0.5s ease; }
.des.roule .de:nth-child(2) { animation-delay: 0.08s; }
.des.roule .de:nth-child(3) { animation-delay: 0.16s; }
@keyframes roule { 0% { transform: rotate(-30deg) scale(0.6); opacity: 0; } 70% { transform: rotate(8deg) scale(1.05); opacity: 1; } 100% { transform: none; } }

.tableau {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center;
  padding: 16px; border-radius: 22px; background: var(--panneau); border: 1px solid rgba(232, 194, 106, 0.25);
  overflow-y: auto;
}
.t-titre { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); text-align: center; }
.t-titre:empty { display: none; }
.t-texte { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 5.4vw, 1.55rem); line-height: 1.25; text-align: center; color: #fff; }
.t-texte:empty { display: none; }
.t-actions { display: grid; gap: 8px; margin-top: auto; position: sticky; bottom: 0; }
.t-actions.deux { grid-template-columns: 1fr 1fr; }
.t-actions .btn { margin: 0; }

.fin { justify-content: safe center; gap: 12px; overflow-y: auto; text-align: center; }
.fin h2 { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.4rem); margin: 0; }
.palmares { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 400px; align-self: center; }
.palmares li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border-left: 4px solid var(--c); text-align: left; }
.palmares span { color: var(--muted); font-size: 0.85rem; }
.fin .actions-fin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 400px; align-self: center; }
.fin .actions-fin .primary { grid-column: 1 / -1; }
.fin .actions-fin .btn { margin: 0; }

@media (max-height: 700px) {
  .roue-zone { --t: min(70vw, 260px, 27dvh); }
  .de { padding: 4px; }
  .t-texte { font-size: clamp(1.05rem, 5vw, 1.3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .roue { transition-duration: 0.4s; }
  .des.roule .de { animation: none; }
}
