.voice-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.score-board {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.reset-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.2s;
}

.reset-btn:hover {
    transform: scale(1.1);
}

.game-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.current-sentence {
    margin-bottom: 30px;
}

.sentence-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
}

.italian-sentence {
    font-size: 1.8em;
    font-weight: bold;
    margin: 15px 0;
    color: #4ecdc4;
    line-height: 1.4;
}

.spanish-translation {
    font-size: 1.1em;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    margin-top: 10px;
}

.pronunciation-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.voice-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.listen-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.record-btn {
    background: linear-gradient(135deg, #ff6b6b, #c44569);
    color: white;
}

.voice-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

.recording-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255,107,107,0.2);
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid rgba(255,107,107,0.5);
}

.recording-status.active {
    display: flex;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { 
        background: rgba(255,107,107,0.2);
        border-color: rgba(255,107,107,0.5);
    }
    50% { 
        background: rgba(255,107,107,0.4);
        border-color: rgba(255,107,107,0.8);
    }
}

.pulse-animation {
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.pronunciation-feedback {
    display: none;
    margin: 25px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.pronunciation-feedback.show {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.pronunciation-feedback.correct {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.pronunciation-feedback.incorrect {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.feedback-content h4 {
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.similarity-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.similarity-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.similarity-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.comparison-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
}

.comparison-item p {
    margin: 10px 0 0 0;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-style: italic;
}

.voice-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 150px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.action-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ff6b6b, #c44569);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.voice-tips {
    margin-top: 30px;
}

.tip-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tip-card h4 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tip-card li:before {
    content: "•";
    color: #4ecdc4;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .voice-game-container {
        margin: 10px;
        padding: 15px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pronunciation-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .voice-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .voice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .italian-sentence {
        font-size: 1.4em;
    }
}