#gameCanvas {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 600px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#gameCanvas * { margin: 0; padding: 0; box-sizing: border-box; }

#gameCanvas .container {
    background: white; border-radius: 30px; padding: 40px;
    width: 100%; max-width: 800px; margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #eee;
}

#gameCanvas h1 { text-align: center; color: #667eea; font-size: 2.5em; margin-bottom: 10px; }
#gameCanvas .subtitle { text-align: center; color: #666; margin-bottom: 30px; font-size: 1.1em; }

/* SETUP */
#gameCanvas .level-selector { margin-bottom: 30px; }
#gameCanvas .level-selector label { display: block; font-size: 1.2em; font-weight: bold; color: #333; margin-bottom: 15px; text-align: center; }
#gameCanvas .level-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
#gameCanvas .level-btn {
    padding: 15px; border: none; border-radius: 15px;
    font-size: 1.1em; font-weight: bold; cursor: pointer;
    transition: all 0.2s; background: #f0f0f0; color: #555;
}
#gameCanvas .level-btn:hover { background: #e0e0e0; }
#gameCanvas .level-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; transform: scale(1.05); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#gameCanvas .start-btn {
    width: 100%; padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none; border-radius: 15px; color: white;
    font-size: 1.5em; font-weight: bold; cursor: pointer;
    transition: all 0.3s;
}
#gameCanvas .start-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3); }

/* GAME SCREEN */
#gameCanvas .game-info {
    display: flex; justify-content: center;
    background: #e0f7fa; padding: 15px; border-radius: 15px; margin-bottom: 20px;
}
#gameCanvas .info-item { display: flex; align-items: center; gap: 10px; font-size: 2em; font-weight: bold; }
#gameCanvas .timer { color: #00acc1; }

#gameCanvas .word-display {
    background: #fff3e0; border: 4px dashed #ffb74d;
    border-radius: 20px; padding: 40px 20px; text-align: center;
    margin-bottom: 30px; position: relative; min-height: 200px;
    display: flex; flex-direction: column; justify-content: center;
}
#gameCanvas .word-label { font-size: 1.2em; color: #8d6e63; margin-bottom: 15px; }
#gameCanvas .word { font-size: 4em; font-weight: bold; color: #333; letter-spacing: 2px; }

#gameCanvas .success-animation {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(76, 175, 80, 0.9); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 6em; color: white; animation: pulse 0.3s;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

#gameCanvas .validate-btn {
    width: 100%; padding: 20px;
    background: linear-gradient(135deg, #42a5f5 0%, #478ed1 100%);
    border: none; border-radius: 15px; color: white;
    font-size: 1.5em; font-weight: bold; cursor: pointer;
    margin-bottom: 20px; transition: all 0.2s; box-shadow: 0 4px 0 #1565c0;
}
#gameCanvas .validate-btn:active { transform: translateY(4px); box-shadow: none; }

#gameCanvas .words-count { text-align: center; font-size: 1.2em; color: #777; }

/* VALIDATION SCREEN */
#gameCanvas .validation-screen h2 { text-align: center; color: #667eea; font-size: 1.8em; margin-bottom: 20px; }
#gameCanvas .word-validation-list { max-height: 400px; overflow-y: auto; margin-bottom: 30px; padding-right: 10px; }

#gameCanvas .word-item {
    background: #f9f9f9; padding: 15px; border-radius: 15px;
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
    border: 2px solid transparent;
}
#gameCanvas .word-item-text { font-size: 1.5em; font-weight: bold; color: #333; }
#gameCanvas .word-item-buttons { display: flex; gap: 10px; }

#gameCanvas .correct-btn, #gameCanvas .incorrect-btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 1em; font-weight: bold; cursor: pointer; transition: opacity 0.2s;
}
#gameCanvas .correct-btn { background: #4caf50; color: white; }
#gameCanvas .incorrect-btn { background: #ef5350; color: white; }
#gameCanvas .correct-btn:hover, #gameCanvas .incorrect-btn:hover { opacity: 0.8; }

#gameCanvas .word-item.validated-correct { background: #e8f5e9; border-color: #4caf50; }
#gameCanvas .word-item.validated-incorrect { background: #ffebee; border-color: #ef5350; }

#gameCanvas .finish-validation-btn {
    width: 100%; padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; border-radius: 15px; color: white;
    font-size: 1.5em; font-weight: bold; cursor: pointer;
}
#gameCanvas .finish-validation-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.7; }

/* RESULTS */
#gameCanvas .results-box { background: #fff8e1; border-radius: 20px; padding: 30px; margin-bottom: 30px; border: 2px solid #ffecb3; }
#gameCanvas .stats { display: flex; justify-content: space-around; margin: 20px 0; font-size: 1.1em; }
#gameCanvas .stat-item { text-align: center; }
#gameCanvas .stat-number { font-size: 2em; font-weight: bold; color: #667eea; }
#gameCanvas .stat-label { color: #666; margin-top: 5px; font-size: 0.9em; }

#gameCanvas .score-display { font-size: 1.8em; text-align: center; margin-bottom: 20px; color: #333; font-weight: bold; }
#gameCanvas .ranking-table { background: white; border-radius: 15px; padding: 15px; margin-top: 20px; }
#gameCanvas .ranking-row {
    display: flex; justify-content: space-between; padding: 10px;
    margin-bottom: 5px; background: #f5f5f5; border-radius: 8px; font-size: 1.1em;
}
#gameCanvas .ranking-row.correct { background: #c8e6c9; color: #2e7d32; }
#gameCanvas .ranking-row.incorrect { background: #ffcdd2; color: #c62828; }

#gameCanvas .replay-btn {
    width: 100%; padding: 15px; background: #667eea; border: none; border-radius: 15px;
    color: white; font-size: 1.3em; font-weight: bold; cursor: pointer;
}

#gameCanvas .hidden { display: none !important; }

@media (max-width: 600px) {
    #gameCanvas h1 { font-size: 1.8em; }
    #gameCanvas .word { font-size: 2.5em; }
    #gameCanvas .level-buttons { grid-template-columns: 1fr; }
    #gameCanvas .word-item { flex-direction: column; gap: 10px; text-align: center; }
}