/* Typing game styles */

.typing-area {
    max-width: 750px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, #fbfbff, #f5f6ff);
    border-radius: 14px;
    border: 2px solid #e9e9ff;
}

.target-box {
    font-size: 4.2rem;
    font-weight: 800;
    color: #333;
    width: 240px;
    height: 120px;
    line-height: 120px;
    margin: 0 auto 18px auto;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(102,126,234,0.08);
}

.typing-input {
    display: block;
    margin: 0 auto 18px auto;
    padding: 12px 16px;
    font-size: 1.4rem;
    width: 320px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #dcdcff;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.typing-meta {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
}

/* Reuse level-complete styles similar to community helpers */
.level-complete {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 1200;
}

.level-complete.hidden { display: none; }

.level-complete-box { background: #fff; border-radius: 16px; padding: 24px 28px; max-width: 640px; width: 92%; text-align:center; }
.level-gif { width: 140px; height: 140px; display:block; margin: 0 auto 8px auto; }

.level-buttons { display:flex; gap:10px; justify-content:center; margin-top:12px; }
.level-buttons .btn { min-width: 120px; }

@media (max-width: 768px) {
    .target-box { width: 200px; height: 100px; line-height: 100px; font-size: 3.2rem; }
    .typing-input { width: 260px; font-size: 1.2rem; }
}
