/* Lowest to Highest — board only */

.lth-next {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--game-muted);
    font-size: 0.85rem;
}

.lth-next strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--game-accent);
    text-shadow: 0 0 16px rgba(111, 214, 196, 0.55);
}

.lth-grid {
    display: grid;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
    max-width: 440px;
}

.lth-cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px solid rgba(111, 214, 196, 0.35);
    background: rgba(10, 22, 22, 0.9);
    color: var(--game-text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.1s, color 0.1s, opacity 0.2s, background 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.lth-cell:hover {
    border-color: var(--game-accent);
}

.lth-cell.is-next {
    border-color: rgba(255, 209, 102, 0.7);
    color: #ffd166;
}

.lth-cell.done {
    opacity: 0.16;
    border-color: rgba(74, 222, 128, 0.5);
    color: #4ade80;
    pointer-events: none;
}

.lth-cell.wrong {
    border-color: #ff5a5a;
    color: #ff5a5a;
    animation: lth-shake 0.18s;
}

@keyframes lth-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
