/* wheel.css - High-End Casino Wheel */
:root {
    --wheel-size: 320px;
    --wheel-border: 6px solid #1a1a1a;
    --wheel-glow: 0 0 20px rgba(112, 0, 255, 0.5);
    --segment-1: #7000ff;
    /* Genius Purple */
    --segment-2: #00d2d3;
    /* Neon Cyan */
}

.wheel-wrapper {
    position: relative;
    width: var(--wheel-size);
    height: var(--wheel-size);
    margin: 0 auto 30px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), var(--wheel-glow);
    border: var(--wheel-border);
    /* Metallic Rim Gradient /
    background: linear-gradient(145deg, #333, #111);
    padding: 10px; / Space for the rim */
}

.wheel-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    /* Realistic Friction */

    /* THE FIX: Perfect circle segments using Conic Gradient */
    background: conic-gradient(var(--segment-1) 0deg 60deg,
            var(--segment-2) 60deg 120deg,
            var(--segment-1) 120deg 180deg,
            var(--segment-2) 180deg 240deg,
            var(--segment-1) 240deg 300deg,
            var(--segment-2) 300deg 360deg);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Depth inside */
}

/* Idle Animation Class */
.wheel-idle {
    animation: wheel-rock 3s ease-in-out infinite;
}

@keyframes wheel-rock {
    0% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

/* Text/Numbers Positioned Absolutely */
.wheel-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Center Hub (Floating Orb) */
.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #fff, #7000ff);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--segment-1);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* The Pointer */
.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 40px solid white;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
    z-index: 20;
}

/* Heartbeat Animation for Claim Button */
.btn-claim-anim {
    animation: claim-pulse 1.5s infinite;
}

@keyframes claim-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 210, 211, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0);
    }
}

@media (max-width: 400px) {
    :root {
        --wheel-size: 280px;
    }
}