/* Verbal Memory */

.vb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    user-select: none;
}

.vb-hud {
    display: flex;
    gap: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
    flex-wrap: wrap;
    justify-content: center;
}

.vb-word {
    font-size: clamp(2rem, 9vw, 3.2rem);
    font-weight: 700;
    min-height: 1.4em;
    display: flex;
    align-items: center;
    color: var(--color-text);
    text-align: center;
}

/* Brief tint on answer. The animation restarts via a reflow in game.js so
   consecutive correct answers each get their own flash. */
.vb-word.vb-ok { animation: vb-flash-ok 320ms ease; }
.vb-word.vb-bad { animation: vb-flash-bad 320ms ease; }

@keyframes vb-flash-ok {
    0% { color: var(--color-success); }
    100% { color: var(--color-text); }
}

@keyframes vb-flash-bad {
    0% { color: var(--color-accent); }
    100% { color: var(--color-text); }
}

@media (prefers-reduced-motion: reduce) {
    .vb-word.vb-ok,
    .vb-word.vb-bad { animation: none; }
}

.vb-buttons {
    display: flex;
    gap: 1rem;
}

.vb-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vb-btn:hover { background: var(--color-primary-dark); }
.vb-btn:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

.vb-seen { background: var(--cat-words); color: #fff; }
.vb-seen:hover { background: #1e8449; }
.vb-new { background: var(--cat-speed); color: #fff; }
.vb-new:hover { background: #2471a3; }

.vb-feedback {
    min-height: 1.4em;
    margin: 0;
    font-weight: 600;
    color: var(--color-text-light);
}

/* The answer buttons only make sense mid-run; the start button only when
   there is no run in progress. */
.state-idle .vb-buttons,
.state-result .vb-buttons { display: none; }
.state-playing .vb-start { display: none; }
