#wheel-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#wheel-canvas:hover {
    transform: scale(1.02);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -5px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
}

.spin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.spin-btn:active {
    transform: translateY(0);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    position: relative;
    color: white;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.result-success h3 {
    color: #2ecc71;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-error h3 {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-success p,
.result-error p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-success em {
    font-style: italic;
    opacity: 0.9;
}

/* Анимации */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 0.5s linear infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    #wheel-canvas {
        width: 300px;
        height: 300px;
    }
    
    .spin-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    #wheel-canvas {
        width: 250px;
        height: 250px;
    }
    
    .wheel-pointer {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 24px solid #e74c3c;
    }
    
    .wheel-pointer::after {
        width: 8px;
        height: 8px;
        top: -20px;
        left: -4px;
    }
}

/* Дополнительные эффекты */
.wheel-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }
    to {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Эффект частиц при выигрыше */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #feca57;
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}
