/* 字母发音单词匹配游戏样式 */
.letter-rain-game {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.target-letter {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    text-align: center;
    max-width: 90%;
    word-wrap: break-word;
}

/* 单词网格 */
.words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* 单词项样式 */
.word-item {
    background: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
    max-width: calc(33.33% - 15px);
    box-sizing: border-box;
}

.word-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.word-item.correct {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    animation: correctPulse 0.6s ease-in-out;
}

.word-item.wrong {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    animation: wrongShake 0.6s ease-in-out;
}

.word-item.selected {
    pointer-events: none;
}

.question-counter, .correct-counter {
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.la-round-info{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color:azure;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .target-letter {
        font-size: 20px;
        padding: 15px 30px;
        margin-bottom: 20px;
    }
    
    .word-item {
        font-size: 18px;
        padding: 12px 20px;
        min-width: 70px;
        max-width: calc(50% - 15px);
    }
    
    .question-counter, .correct-counter {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .target-letter {
        font-size: 18px;
        padding: 12px 25px;
    }
    
    .word-item {
        font-size: 16px;
        padding: 10px 15px;
        min-width: 60px;
        max-width: calc(50% - 10px);
    }
    
    .words-grid {
        gap: 10px;
        padding: 5px;
    }
}
