/* Modern Standalone Spinning Wheel */
.spinwheel-section {
    background: transparent !important;
    padding: 0 !important;
    margin: 40px 0 !important;
    text-align: center;
    position: relative;
}

.wheel-header {
    margin-bottom: 30px;
}

.wheel-title {
    font-size: 2.8em;
    font-weight: 900;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #FFE66D, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wheel-subtitle {
    font-size: 1.3em;
    color: #333;
    margin: 0;
    font-weight: 600;
    opacity: 0.9;
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, rgba(240,240,240,0.8) 100%);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 
        0 0 0 15px rgba(255,255,255,0.5),
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 0 30px rgba(0,0,0,0.1);
}

/*
.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
*/

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    /* ADD THIS FOR BETTER TEXT */
    font-size: 16px !important;
}

.wheel-pointer {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 50px solid #FF6B6B;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    z-index: 10;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -45px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #FF6B6B;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FF6B6B, #FF8E8E);
    border: 6px solid white;
    color: white;
    font-weight: 900;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 
        0 12px 35px rgba(255, 107, 107, 0.6),
        inset 0 2px 10px rgba(255, 255, 255, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #FF8E8E, #FF6B6B);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1);
    background: linear-gradient(145deg, #CCCCCC, #999999);
}

.spin-result {
    padding: 25px;
    margin: 25px auto;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    max-width: 500px;
    animation: slideInUp 0.6s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid rgba(255,255,255,0.8);
}

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

.result-win {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50 !important;
}

.result-action {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-color: #2196F3 !important;
}

.result-info {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-color: #FF9800 !important;
}

.action-button {
    background: white;
    color: #2196F3;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    margin: 15px 10px 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 200px;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    animation: confettiFall 4s linear forwards;
    z-index: 100;
}

@keyframes confettiFall {
    0% { 
        transform: translateY(-100px) rotate(0deg) scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(600px) rotate(720deg) scale(0); 
        opacity: 0; 
    }
}

.spin-terms {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Pulse animation for the wheel container */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 15px rgba(255,255,255,0.5), 0 20px 40px rgba(0,0,0,0.15), inset 0 0 30px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 0 20px rgba(255,107,107,0.2), 0 25px 50px rgba(0,0,0,0.2), inset 0 0 30px rgba(0,0,0,0.1); }
    100% { box-shadow: 0 0 0 15px rgba(255,255,255,0.5), 0 20px 40px rgba(0,0,0,0.15), inset 0 0 30px rgba(0,0,0,0.1); }
}

.wheel-container {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 480px) {
    .wheel-container {
        width: 320px;
        height: 320px;
        padding: 15px;
    }
    
    .wheel-title {
        font-size: 2.2em;
    }
    
    .wheel-subtitle {
        font-size: 1.1em;
    }
    
    .spin-button {
        width: 100px;
        height: 100px;
        font-size: 1.1em;
    }
}