/* Roulette : roue de loterie de foire, ampoules, aiguille qui claque, résultat façon tampon. */
.roue-zone { flex: 1; display: grid; place-items: center; width: 100%; }
.roue-cadre {
  --taille: clamp(240px, min(86vw, 100svh - 390px), 560px);
  position: relative;
  width: var(--taille);
  height: var(--taille);
}
.ampoules, .roue { position: absolute; }
.ampoules { inset: 0; width: 100%; height: 100%; overflow: visible; }
.ampoule { fill: var(--soleil); animation: clignote 1.2s steps(1, end) infinite; }
.ampoule:nth-child(odd) { animation-delay: -.6s; }
.roue-cadre[data-etat="tourne"] .ampoule { animation-duration: .24s; }
.roue-cadre[data-etat="tourne"] .ampoule:nth-child(odd) { animation-delay: -.12s; }
.roue-cadre[data-etat="gagne"] .ampoule { animation-duration: .3s; animation-delay: 0s; }

.roue {
  inset: 7.5%;
  border-radius: 50%;
  cursor: pointer;
}
.roue-disque { width: 100%; height: 100%; will-change: transform; transition: transform 4.2s cubic-bezier(.12, .78, .1, 1); }
.roue-disque svg { width: 100%; height: 100%; overflow: visible; }
.roue-disque path { stroke: var(--encre); stroke-width: 3; stroke-linejoin: round; }
.roue-disque .picot { fill: var(--encre); }
.roue-disque text { font-family: var(--titre); fill: var(--encre); }
.roue-moyeu {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17%;
  height: 17%;
  transform: translate(-50%, -50%);
  background: var(--soleil);
  border: var(--trait-fort) solid var(--encre);
  border-radius: 50%;
  box-shadow: inset -4px -4px 0 rgb(27 19 64 / .18);
  pointer-events: none;
}
.aiguille {
  position: absolute;
  left: 50%;
  top: -5%;
  width: 13%;
  transform: translateX(-50%);
  transform-origin: 50% 24%;
  overflow: visible;
  pointer-events: none;
}

.roue-cadre.secousse { animation: secousse .4s var(--sortie); }

.wheel-lede { margin: 0; font-size: 15px; font-weight: 700; text-align: center; }
.wheel-lede a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-underline-offset: 3px; }
#spinBtn { width: min(100%, 420px); }

@keyframes clignote { 50% { opacity: .3; } }
@keyframes secousse {
  20% { transform: translate(-4px, 3px); }
  45% { transform: translate(4px, -2px); }
  70% { transform: translate(-2px, 1px); }
}
