/* ==========================================================================
   Fever Spin-to-Win — Wheel Styles
   ========================================================================== */

#wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

/* The wheel itself */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 0 6px var(--color-background),
        0 0 0 10px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform cubic-bezier(0.17, 0.67, 0.12, 0.99);
    will-change: transform;
}

.wheel.spinning {
    pointer-events: none;
}

/* Wheel canvas (segments drawn via JS) */
.wheel canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Center hub */
.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-background);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wheel-hub-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pointer / ticker */
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--color-accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

/* Tap overlay (before first spin) */
.wheel-tap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    z-index: 6;
    -webkit-tap-highlight-color: transparent;
}

.wheel-tap-overlay:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Outer ring decoration */
.wheel-outer-ring {
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Light dots around the wheel */
.wheel-lights {
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

@keyframes light-blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.wheel.spinning .wheel-light {
    animation: light-blink 0.3s ease-in-out infinite;
}

.wheel.spinning .wheel-light:nth-child(odd) {
    animation-delay: 0.15s;
}

/* Responsive sizing */
@media (min-width: 380px) {
    #wheel-container {
        width: 320px;
        height: 320px;
    }
}

@media (min-width: 420px) {
    #wheel-container {
        width: 340px;
        height: 340px;
    }
}
