/* Модальное окно колеса удачи */
#wheel-modal {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    z-index: 2000;
    display: none;
}

.wheel-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    width: 95%;
    max-width: 450px;
    color: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wheel-header h2 {
    margin: 0 auto;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wheel-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.wheel-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wheel-body {
    text-align: center;
}

.wheel-balance-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.wheel-balance-info p {
    margin: 5px 0;
    font-size: 16px;
}

.wheel-balance-info strong {
    color: #FFD700;
    font-size: 18px;
}

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

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #FF6347;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.spin-btn {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.6);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.prizes-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.prizes-list h3 {
    margin-top: 0;
    color: #FFD700;
    font-size: 18px;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.prize-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s;
}

.prize-item.gold {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.prize-item.crystal {
    background: rgba(135, 206, 235, 0.2);
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.prize-item.fcoin {
    background: rgba(144, 238, 144, 0.2);
    border: 1px solid rgba(144, 238, 144, 0.3);
}

.prize-item.ton {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.history-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Окно с выигрышем */
#prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.prize-content {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* История вращений */
#wheel-history-container {
    display: none;
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.history-prize {
    flex: 2;
    text-align: center;
    font-weight: bold;
}

.history-cost {
    flex: 1;
    text-align: right;
    color: #FF6B6B;
}

.no-history {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .wheel-container {
        padding: 15px;
        width: 95%;
    }
    
    .wheel-visual {
        width: 300px;
        height: 300px;
    }
    
    .spin-btn {
        width: 90%;
        padding: 15px 30px;
        font-size: 13px;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
}
/* ★★★ БЕГУЩАЯ СТРОКА С ТОПОМ ВЫИГРЫШЕЙ TON ★★★ */
.top-ton-wins-marquee {
    width: 100%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 5px 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-size: 13px;
    color: #FFD700;
    animation: marquee 30s linear infinite;
}

.win-item {
    margin: 0 10px;
    color: #FFFFFF;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}