.cards {
    width: 100%;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: calc(var(--content-w) * var(--cards-gap-coeff));
}

.card--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.card-loader {
    display: block;
    width: calc(var(--content-w) * 0.1425);
    aspect-ratio: 1;
    border-radius: 50%;
    border: calc(var(--content-w) * 0.00975) solid rgba(255, 255, 255, 0.22);
    border-top-color: #ffffff;
    animation: card-loader-spin 0.8s linear infinite;
}

@keyframes card-loader-spin {
    to { transform: rotate(360deg); }
}

.cards-loader-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.cards-loader-wrap.card--fade-out {
    opacity: 0;
}

.card--ghost {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.card {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    gap: calc(var(--content-w) * var(--card-gap-coeff));
    background: linear-gradient(85deg, #FFFFFF 0%, #74BCFF 100%);
    backdrop-filter: blur(32px);
    box-shadow: 0 3px 28px 0 rgba(0, 0, 0, 0.25);
    border-radius: calc(var(--content-w) * var(--card-br-coeff));
    padding:
            calc(var(--content-w) * var(--card-py-coeff))
            calc(var(--content-w) * var(--card-pr-coeff))
            calc(var(--content-w) * var(--card-py-coeff))
            calc(var(--content-w) * var(--card-pl-coeff));
    opacity: 1;
    transition: opacity 0.35s ease;
}

.card--enter {
    opacity: 0;
}

.card--fade-out {
    opacity: 0;
}

.card_inner-wrapper {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    border-radius: calc(var(--content-w) * var(--card-br-coeff));
    box-shadow: inset 0 1px 1px 1px #FFFFFFD1;
    background: transparent;
}

.card__schedule {
    position: relative;
    z-index: 1;
    width: fit-content;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--content-w) * var(--card-schedule-item-gap-coeff));
    padding-right: calc(var(--content-w) * var(--card-schedule-pr-coeff));
}

.card__schedule-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card__schedule-item-img {
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
    width: calc(var(--content-w) * var(--card-schedule-item-w-coeff));
}

.card__schedule-text {
    position: relative;
    z-index: 1;
    color: #B8DFFF;
    font-size: calc(var(--content-w) * var(--card-schedule-item-fs-coeff));
}

.card__schedule-item-separator {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 1px;
    background: #fff;
}

.card__schedule-item-separator:before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.card__teams {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--content-w) * var(--card-teams-gap-coeff));
}

.card__teams-item {
    display: flex;
    align-items: center;
    gap: calc(var(--content-w) * var(--card-teams-item-gap-coeff));
}

.card__teams-item-logo {
    aspect-ratio: 35 / 55;
    width: calc(var(--content-w) * var(--card-teams-item-icon-w-coeff));
}

.card__teams-item-text {
    color: #012173;
    font-size: calc(var(--content-w) * var(--card-teams-item-text-fs-coeff));
    white-space: nowrap;
}

.card__btn {
    position: relative;
    z-index: 1;
    isolation: isolate;
    flex-shrink: 0;
    width: fit-content;
    border-radius: 999px;
    padding: calc(var(--content-w) * var(--card-btn-py-coeff)) calc(var(--content-w) * var(--card-btn-px-coeff));
    box-shadow: 0 0 26px 0 rgba(28, 168, 255, 0.63), inset 0 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__btn::before,
.card__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.2s ease;
}

.card__btn::before {
    opacity: 1;
    background: radial-gradient(circle at bottom center, #14A0FF 0%, #065BDC 100%);
}

.card__btn::after {
    opacity: 0;
    background: radial-gradient(circle at bottom center, #B0DFFF 0%, #F4F5F6 100%);
}

.card__btn-text {
    transition: color 0.2s ease;
}

.card__btn-text {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(var(--content-w) * var(--card-btn-fs-coeff));
}

@media (hover: hover) and (pointer: fine) {
    .card__btn:hover::before {
        opacity: 0;
    }

    .card__btn:hover::after {
        opacity: 1;
    }

    .card__btn:hover > .card__btn-text {
        color: #0C3674;
    }
}

.egg {
    position: absolute;
    right: 0;
    top: -185%;
    width: calc(var(--content-w) * var(--card-schedule-egg-w-coeff));
    aspect-ratio: 276 / 445;
    border-radius: 50%;
    background: radial-gradient(ellipse 160% 110% at -10% 80%, #0C9DFF 0%, #0243A3 100%);
    box-shadow: inset 0 4px 13px 0 rgba(0, 0, 0, 0.4);
    transform: rotate(0deg);
}

.card__main-btn::before {
    opacity: 1;
    background: linear-gradient(to right, #14A0FF 0%, #065BDC 100%);
}

.card__main-btn::after {
    opacity: 0;
    background: linear-gradient(to right, #88CFFF 0%, #0098FF 54%, #3585FF 99%);
}

.card__main-btn:active {
    transform: scale(0.98) translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .card__main-btn:hover::before {
        opacity: 0;
    }

    .card__main-btn:hover::after {
        opacity: 1;
    }
}

@media (orientation: portrait) and (min-width: 0px) {
    :root {
        --cards-gap-coeff: 0.021653;
        --card-br-coeff: 0.01538;
        --card-gap-coeff: 0.02307;
        --card-pl-coeff: 0.018307;
        --card-pr-coeff: 0.032946;
        --card-py-coeff: 0.01723;
        --card-schedule-pr-coeff: 0.03846;
        --card-schedule-item-fs-coeff: 0.03846;
        --card-schedule-item-w-coeff: 0.0375;
        --card-schedule-item-gap-coeff: 0.01346;
        --card-schedule-egg-w-coeff: 0.2653;
        --card-teams-gap-coeff: 0.01053;
        --card-teams-item-gap-coeff: 0.01634;
        --card-teams-item-icon-w-coeff: 0.03865;
        --card-teams-item-text-fs-coeff: 0.0350326;
        --card-btn-fs-coeff: 0.02884;
        --card-btn-px-coeff: 0.01923;
        --card-btn-py-coeff: 0.02307;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    :root {
        --cards-gap-coeff: 0.03653;
        --card-br-coeff: 0.01538;
        --card-gap-coeff: 0.02307;
        --card-pl-coeff: 0.02307;
        --card-pr-coeff: 0.03846;
        --card-py-coeff: 0.01923;
        --card-schedule-pr-coeff: 0.03846;
        --card-schedule-item-fs-coeff: 0.03846;
        --card-schedule-item-w-coeff: 0.0375;
        --card-schedule-item-gap-coeff: 0.01346;
        --card-schedule-egg-w-coeff: 0.2653;
        --card-teams-gap-coeff: 0.01053;
        --card-teams-item-gap-coeff: 0.01634;
        --card-teams-item-icon-w-coeff: 0.04365;
        --card-teams-item-text-fs-coeff: 0.0350326;
        --card-btn-fs-coeff: 0.02884;
        --card-btn-px-coeff: 0.01923;
        --card-btn-py-coeff: 0.02307;
    }

    .egg {
        top: -160%;
    }
}

@media (orientation: landscape) and (min-width: 1440px) {
    .egg {
        top: -185%;
    }

    .card_inner-wrapper {
        box-shadow: inset 0 2px 2px 2px #FFFFFFD1;
    }

    .card__btn {
        box-shadow: 0 0 26px 0 rgba(28, 168, 255, 0.63), inset 0 0 6px 0 rgba(255, 255, 255, 0.9);
    }
}
