/* Chinese typing speed test — /games/typing-test (growth plan D34).
   Colour comes from Bootstrap variables so the page follows [data-bs-theme="dark"] without a
   second palette. */

.tt-target {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    min-height: 4rem;
}

.tt-target-gloss {
    font-size: 1.05rem;
    color: var(--bs-secondary-color);
    margin: 0.35rem 0 0;
    min-height: 1.6rem;
}

/* The input carries the whole game, so it is sized like the prompt rather than like a form
   field — and the IME candidate window opens directly under it. */
.tt-input {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.tt-queue {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    letter-spacing: 0.05em;
    min-height: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.tt-stat {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.tt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.75rem;
}

.tt-stat-box {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.tt-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

.tt-missed-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    flex-wrap: wrap;
}

.tt-missed-word {
    font-size: 1.35rem;
    font-weight: 500;
    min-width: 4.5rem;
}

.tt-missed-gloss {
    flex: 1 1 12rem;
    font-size: 0.9rem;
}
