/* Chinese vocabulary size test — /tools/vocabulary-test (growth plan D32).
   Dark mode is handled the way the rest of the site does it: colour comes from Bootstrap
   variables and [data-bs-theme="dark"] overrides, never from a hard-coded hex in a rule that
   only exists for the light theme. */

.vt-stage {
    min-height: 20rem;
}

/* The item under test. Large because a recognition judgement is made on the shape of the
   characters, and a 16px hanzi is a different task from a 96px one. */
.vt-word {
    font-size: clamp(3.5rem, 18vw, 6.5rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 0;
}

.vt-answers .btn {
    min-width: 9.5rem;
}

.vt-key {
    font-size: 0.75rem;
    opacity: 0.65;
}

.vt-estimate {
    font-size: clamp(2.5rem, 11vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

.vt-coverage {
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

/* Per-band bars. A grid rather than a flex row so the labels and the counts stay in their own
   columns and the bars all start at the same x, which is what makes the shape readable. */
.vt-band {
    display: grid;
    grid-template-columns: 4.5rem 1fr 7.5rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.vt-band-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.vt-band-track {
    background-color: var(--bs-secondary-bg);
    border-radius: 999px;
    height: 0.85rem;
    overflow: hidden;
}

.vt-band-fill {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.vt-band-value {
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.vt-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;
}

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

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

.vt-missed-pinyin {
    color: var(--bs-primary);
    margin-right: 0.35rem;
}

.vt-missed-band {
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background-color: var(--bs-secondary-bg);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .vt-band {
        grid-template-columns: 3.5rem 1fr 6rem;
        gap: 0.5rem;
    }

    .vt-answers .btn {
        min-width: 7.5rem;
    }
}
