/* Drum-specific styles and animations */
@keyframes drumSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes drumSlowDown {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes selectedBall {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1.3); }
}

.drum-rotation-container {
    position: relative;
    display: inline-block;
}

.drum-body {
    transition: filter 0.3s ease;
}

/* Add realistic ball physics during spin */
.spinning .topic-ball {
    animation: ballPhysics 0.08s linear infinite;
}

@keyframes ballPhysics {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: blur(0px);
    }
    25% { 
        transform: translateY(-5px) rotate(90deg) scale(1.1);
        filter: blur(1px);
    }
    50% { 
        transform: translateY(0) rotate(180deg) scale(0.9);
        filter: blur(0px);
    }
    75% { 
        transform: translateY(5px) rotate(270deg) scale(1.1);
        filter: blur(1px);
    }
    100% { 
        transform: translateY(0) rotate(360deg) scale(1);
        filter: blur(0px);
    }
}

.word-display-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    width: 100%;
    height: 100%;
}

.word-display-header {
    font-size: 1.6rem;
    color: #ddd;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.word-display-screen {
    background: linear-gradient(135deg, #0f0f0f 0%, #1f1f1f 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 3px solid #555;
    box-shadow: 
        inset 0 8px 25px rgba(0,0,0,0.7),
        0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
}

.word-display-inner {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.7;
    max-height: 280px;
    overflow-y: auto;
}

.connector-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    border-radius: 12px;
    border-left: 5px solid #4facfe;
    animation: slideInUp 0.6s ease-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.connector-icon {
    margin-right: 12px;
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

.connector-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.ready-text {
    font-style: italic;
    color: #999;
    font-size: 1.2rem;
    text-align: center;
}

.word-display-footer {
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 20px;
    font-style: italic;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}