/* ===========================
   MELLSTROY CASINO - КОЛЕСО ФОРТУНЫ
   Адаптировано под цветовую схему Mellstroy
   =========================== */

.wheel-section {
    background: linear-gradient(180deg, #1B0D2E 0%, #2A1645 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.wheel-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(116, 0, 184, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.wheel-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.wheel-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wheel-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #7400B8 0%, #D7B1F9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wheel-subtitle {
    font-size: 18px;
    color: #BEBEBE;
    margin-bottom: 40px;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
}

/* Указатель (стрелка) */
.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FF006E;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(255, 0, 110, 0.6));
}

/* Само колесо */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(116, 0, 184, 0.5), 0 0 80px rgba(255, 0, 110, 0.3);
    border: 8px solid #7400B8;
    background: #1B0D2E;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Центр колеса */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7400B8 0%, #FF006E 100%);
    border-radius: 50%;
    border: 4px solid #D7B1F9;
    box-shadow: 0 0 20px rgba(116, 0, 184, 0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #FFFFFF;
}

/* Секторы колеса */
.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    transform-origin: 0% 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
}

/* Цвета для 8 сегментов (чередование фиолетовых оттенков) */
.wheel-segment:nth-child(1) { background: #7400B8; transform: rotate(0deg) skewY(-45deg); }
.wheel-segment:nth-child(2) { background: #9D00E8; transform: rotate(45deg) skewY(-45deg); }
.wheel-segment:nth-child(3) { background: #7400B8; transform: rotate(90deg) skewY(-45deg); }
.wheel-segment:nth-child(4) { background: #9D00E8; transform: rotate(135deg) skewY(-45deg); }
.wheel-segment:nth-child(5) { background: #7400B8; transform: rotate(180deg) skewY(-45deg); }
.wheel-segment:nth-child(6) { background: #9D00E8; transform: rotate(225deg) skewY(-45deg); }
.wheel-segment:nth-child(7) { background: #7400B8; transform: rotate(270deg) skewY(-45deg); }
.wheel-segment:nth-child(8) { background: #9D00E8; transform: rotate(315deg) skewY(-45deg); }

.wheel-segment span {
    transform: skewY(45deg) rotate(22.5deg);
    display: block;
}

/* Кнопка запуска */
.spin-button {
    background: linear-gradient(90deg, #7400B8 0%, #FF006E 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255, 0, 110, 0.5);
    transition: all 0.3s ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 0, 110, 0.7);
}

.spin-button:disabled {
    background: linear-gradient(90deg, #4a4a4a 0%, #6a6a6a 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Модальное окно с результатом */
.wheel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wheel-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, #2A1645 0%, #1B0D2E 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 3px solid #7400B8;
    box-shadow: 0 10px 50px rgba(116, 0, 184, 0.6);
    position: relative;
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    font-size: 32px;
    color: #D7B1F9;
    margin-bottom: 20px;
}

.modal-prize {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #7400B8 0%, #FF006E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.modal-description {
    font-size: 16px;
    color: #BEBEBE;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-button {
    background: linear-gradient(90deg, #7400B8 0%, #FF006E 100%);
    color: #FFFFFF;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.5);
    transition: all 0.3s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(255, 0, 110, 0.7);
}

/* Конфетти */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    top: -10px;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .wheel-title {
        font-size: 28px;
    }
    
    .wheel-subtitle {
        font-size: 16px;
    }
    
    .wheel-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .wheel-center {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .wheel-segment {
        font-size: 12px;
    }
    
    .spin-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    
    .modal-content {
        padding: 35px 25px;
    }
    
    .modal-content h3 {
        font-size: 26px;
    }
    
    .modal-prize {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .wheel-section {
        padding: 40px 0;
    }
    
    .wheel-title {
        font-size: 24px;
    }
    
    .wheel-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .wheel-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .wheel-pointer {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid #FF006E;
    }
    
    .wheel {
        border: 6px solid #7400B8;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .wheel-segment {
        font-size: 10px;
        padding: 5px;
    }
    
    .spin-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content h3 {
        font-size: 22px;
    }
    
    .modal-prize {
        font-size: 20px;
    }
    
    .modal-description {
        font-size: 14px;
    }
    
    .modal-button {
        width: 100%;
        padding: 12px 25px;
        font-size: 16px;
    }
}
