.result-cards__grid {
    display: grid;
    grid-template-columns: repeat(var(--result-columns, 4), minmax(0, 1fr));
    gap: var(--gap-sm);
}

.result-cards__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--pad-y-sm) var(--pad-x-sm);
    border-radius: var(--radius_xs);
    background: var(--result-background);
    text-align: center;
    container-type: inline-size;
}

.result-cards__value {
    display: block;
    font-size: min(var(--counter), 20cqi);
    font-weight: var(--weight-extrabold);
    line-height: var(--heading-lh);
    overflow-wrap: anywhere;
}

.result-cards__label {
    margin: var(--gap-sm) 0 0;
    font-weight: var(--weight-bold);
}

.result-cards--connected .result-cards__card:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1px;
    width: 18px;
    height: 36px;
    background: var(--surface);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .result-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .result-cards__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .result-cards--connected .result-cards__card::before {
        display: none;
    }
}
