/* Lottery drum styles and animations */
.lottery-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.lottery-drum {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    text-align: center;
    border: 10px solid #1a252f;
    position: relative;
    flex: 1;
    min-width: 350px;
    max-width: 450px;
}

.lottery-drum#wordDrum {
    min-width: 450px;
    max-width: 650px;
    padding: 3rem;
}

.drum-body {
    width: 380px;
    height: 380px;
    background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 2rem;
    overflow: hidden;
    box-shadow: 
        inset 0 30px 60px rgba(0,0,0,0.8),
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 -20px 40px rgba(255,255,255,0.05);
    border: 8px solid #222;
}

#wordDrum .drum-body {
    width: 480px;
    height: 480px;
}

.drum-handle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, #654321 0%, #8b4513 100%);
    border-radius: 15px 15px 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.drum-handle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: #654321;
    border-radius: 0 0 10px 10px;
}

.drum-opening {
    position: absolute;
    top: 15px;
    right: 25%;
    width: 80px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 10;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.8);
    border: 3px solid #333;
}

.drum-balls {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.lottery-ball {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, #c92a2a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.4),
        inset -5px -5px 15px rgba(0,0,0,0.3),
        inset 5px 5px 15px rgba(255,255,255,0.3);
    animation: ballFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
    border: 3px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.lottery-ball::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
}

.ball-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.ball-gloss {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes ballFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
}

.spin-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #2980b9;
    position: relative;
    overflow: hidden;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

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

.selected-topic {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.selected-topic.show {
    opacity: 1;
    transform: translateY(0);
}

