/* =========================================================
   High vs Low — game-specific styles
   Shared chrome, felt and card faces come from styles.css
   ========================================================= */

/* ---------- Stats ---------- */
.hilo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr));
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.stat {
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lime);
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.lives .heart {
    display: inline-block;
    margin-right: 0.1em;
    color: #ff5c8a;
    text-shadow: 0 0 14px rgba(255, 92, 138, 0.55);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.lives .heart.is-lost {
    opacity: 0.22;
    filter: grayscale(1);
    text-shadow: none;
}

/* ---------- Card stage ---------- */
.card-stage {
    --cw: clamp(92px, 13vw, 138px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--cw) * 193 / 121 + 2rem);
    padding: 1rem 0 0.5rem;
}

.card-stage .card + .card {
    margin-left: -26px;
}

.card--previous {
    transform: rotate(-3deg) translateY(4px);
    opacity: 0.9;
}

.card--static {
    animation: none;
}

.card--win {
    box-shadow: 0 0 0 3px #9ef06a, 0 0 34px rgba(158, 240, 106, 0.45);
}

.card--lose {
    box-shadow: 0 0 0 3px #ff6b6b, 0 0 34px rgba(255, 107, 107, 0.4);
}

.stage-hint {
    margin: 0;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
}

/* ---------- Message + actions ---------- */
.hilo-message {
    min-height: 2.6em;
    margin: 1rem 0 0;
    text-align: center;
    font-size: 1rem;
    color: #eef2f6;
}

.hilo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.1rem;
}

.hilo-guess {
    min-width: 150px;
}

.hilo-guess:not([disabled]) {
    background: linear-gradient(135deg, #5c9227, #3c6b10);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hilo-guess:not([disabled]):hover {
    background: linear-gradient(135deg, #6aa62f, #457c13);
}

@media (max-width: 620px) {
    .card-stage {
        --cw: clamp(76px, 24vw, 108px);
    }

    .hilo-guess {
        min-width: 0;
        flex: 1 1 8rem;
    }
}

