/* =========================================================================
   ROULETTE WHEELS (MAIN & STAR ROULETTE) - 60FPS GPU OPTIMIZED
   ========================================================================= */

/* Header */
.game-header {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    color: #00d2ff;
    text-shadow: 0 0 16px rgba(0, 210, 255, 0.7);
}

.game-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* Wheel Wrapper & Container */
.game-wrapper {
    position: absolute;
    top: 54%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.wheel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.1, 0, 0.15, 1);
    will-change: transform;
}

.wheel-container.zoomed {
    transform: scale(1.3);
}

/* Pointers & Chevrons with Physics Bounce */
.arrow-container {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: transform 0.08s ease-out;
    will-change: transform;
}

.arrow-container.pointer-tick {
    animation: pointerPhysicsTick 0.14s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

@keyframes pointerPhysicsTick {
    0% { transform: translateX(-50%) rotate(0deg); }
    35% { transform: translateX(-50%) rotate(-10deg) scale(0.94); }
    75% { transform: translateX(-50%) rotate(3deg) scale(1.02); }
    100% { transform: translateX(-50%) rotate(0deg) scale(1); }
}

.chevron-part {
    width: 38px;
    height: 28px;
    clip-path: polygon(0 0, 50% 30%, 100% 0, 50% 100%);
    margin-top: -14px;
}

.chevron-part:first-child {
    margin-top: 0;
}

.glow-blue { filter: drop-shadow(0 0 10px #00d2ff); }
.fill-blue { background: linear-gradient(180deg, #ffffff 0%, #00d2ff 100%); }

.glow-gold { filter: drop-shadow(0 0 10px #ffd700); }
.fill-gold { background: linear-gradient(180deg, #ffffff 0%, #ffd700 100%); }

/* Wheel Rotator & Canvas */
.wheel-rotator {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #091228;
    border: 2px solid rgba(0, 210, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 110, 255, 0.35);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: 10;
}

canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    transform: translateZ(0);
}

.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 70;
}

.spinner-media {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%) rotate(20deg);
    width: 120px;
    height: 120px;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Center Spin Buttons with Pure GPU Pulse */
@keyframes pulse-btn {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.04);
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.9);
    }
}

@keyframes pulse-btn-gold {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.75);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 34px rgba(255, 215, 0, 0.95), inset 0 0 12px rgba(255, 235, 120, 0.5);
    }
}

#centerSpinBtn,
#starSpinBtn,
.center-spin-btn-styled {
    position: absolute;
    z-index: 80;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    background: radial-gradient(circle at 30% 30%, #00e5ff 0%, #0055ff 70%, #0022a3 100%);
    color: #fff;
    font-family: 'GameFont', 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
    text-transform: uppercase;
    transition: transform 0.15s ease, opacity 0.2s;
    animation: pulse-btn 2.2s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    padding: 0;
    box-sizing: border-box;
}

#starSpinBtn {
    border: 3px solid #ffe066 !important;
    background: radial-gradient(circle at 35% 35%, #ffd700 0%, #b87800 65%, #4a2c00 100%) !important;
    box-shadow: 0 0 25px rgba(217, 155, 0, 0.85), inset 0 0 14px rgba(255, 235, 120, 0.5) !important;
    animation: pulse-btn-gold 2.2s ease-in-out infinite !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

#centerSpinBtn:active,
#starSpinBtn:active,
.center-spin-btn-styled:active {
    transform: translate(-50%, -50%) scale(0.92) !important;
    animation: none !important;
}

#centerSpinBtn:disabled,
#starSpinBtn:disabled,
.center-spin-btn-styled:disabled {
    background: #182035 !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
    color: #7284a8 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6) !important;
    cursor: not-allowed;
    animation: none !important;
    opacity: 0.8;
}
