/* --- Roue de la Fortune (Wheel of Fortune) --- */
.wheel-section {
    background: linear-gradient(135deg, var(--bg-darker), var(--secondary-color));
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* 6 segments de 60 degrés */
    background: conic-gradient(
        #1a1a24 0deg 60deg,
        var(--primary-color) 60deg 120deg,
        #1a1a24 120deg 180deg,
        var(--primary-color) 180deg 240deg,
        #1a1a24 240deg 300deg,
        var(--primary-color) 300deg 360deg
    );
    border: 6px solid #fff;
    box-shadow: 0 0 30px rgba(0, 255, 133, 0.4);
    /* L'animation de rotation avec un effet de ralentissement réaliste */
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
}

.wheel span {
    position: absolute;
    top: 10px;
    left: 50%;
    /* Positionnement du texte au centre de chaque segment de 60deg */
    transform: translateX(-50%) rotate(calc(var(--i) * 60deg + 30deg));
    transform-origin: 50% 134px; /* Rayon (150px) - marge (approx 16px) */
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.wheel span.black-text {
    color: #000;
    text-shadow: none;
}

.spin-btn {
    margin-top: 1rem;
    position: relative;
    z-index: 11;
    cursor: pointer;
}

.wheel-result {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(26, 26, 36, 0.95);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    animation: fadeInUp 0.8s ease forwards;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 255, 133, 0.2);
}

.wheel-result h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.wheel-result p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.pulse-btn {
    animation: btnPulse 2s infinite;
}

.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 133, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 255, 133, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 133, 0); }
}

/* --- Notifications Live (Fake Wins) --- */
.live-notifications {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
}

.win-popup {
    background: rgba(26, 26, 36, 0.95);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
}

.win-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.win-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.win-info .win-amount {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}