/* Dekorative 1:1-Wasserzeichen hinter Gastgeber und Gast, ohne Layoutverschiebung. */
.public-scoreboard__side {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.public-scoreboard__logo {
    position: absolute;
    z-index: -1;
    right: -1rem;
    top: 50%;
    width: min(70%, 19rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    opacity: .2;
    pointer-events: none;
    transform: translateY(-50%) perspective(650px) rotateY(-20deg) rotateZ(10deg);
    mask-image: radial-gradient(ellipse, #000 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse, #000 35%, transparent 82%);
    filter: brightness(1.35) drop-shadow(8px 12px 8px #0009);
}

.public-scoreboard__logo[hidden] {
    display: none;
}

.match-card {
    isolation: isolate;
}

.match-card__logos {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.match-card__logo {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    opacity: .2;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 82%);
}

.match-card__logo--guest {
    left: auto;
    right: 0;
}

.match-card__logo img {
    width: min(115%, 17rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transform: perspective(650px) rotateY(22deg) rotateZ(-12deg) scale(1.08);
    filter: saturate(.7) brightness(1.4) drop-shadow(3px 3px 0 #ffffff20) drop-shadow(12px 16px 10px #0009);
}

.match-card__logo--guest img {
    transform: perspective(650px) rotateY(-22deg) rotateZ(12deg) scale(1.08);
}

/* Zwei Karten pro Tablet-Zeile: innerhalb der Karte ausreichend Platz für Namen. */
@media (min-width: 641px) and (max-width: 960px) {
    :is(.dp-directory__matches, .round-section__grid) .match-card__duel {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card__team--guest .match-card__team-name {
        text-align: left;
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card__vs {
        justify-self: start;
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card__logo {
        width: 100%;
        height: 50%;
        bottom: auto;
        place-items: center end;
        opacity: .18;
        mask-image: linear-gradient(90deg, transparent 15%, #000 65%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 65%, transparent);
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card__logo--guest {
        top: auto;
        bottom: 0;
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card__logo img {
        width: 12rem;
        margin-right: .5rem;
    }

    :is(.dp-directory__matches, .round-section__grid) :is(.match-card--winner-home, .match-card--winner-guest)::before {
        width: 100%;
        height: 50%;
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card--winner-home::before {
        bottom: auto;
        background: linear-gradient(180deg, rgba(245, 196, 91, .2), rgba(245, 196, 91, .07) 65%, transparent);
    }

    :is(.dp-directory__matches, .round-section__grid) .match-card--winner-guest::before {
        top: auto;
        background: linear-gradient(0deg, rgba(245, 196, 91, .2), rgba(245, 196, 91, .07) 65%, transparent);
    }
}

@media (max-width: 640px) {
    .match-card__logo {
        width: 100%;
        height: 50%;
        bottom: auto;
        place-items: center end;
        opacity: .18;
        mask-image: linear-gradient(90deg, transparent 15%, #000 65%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 65%, transparent);
    }

    .match-card__logo--guest {
        top: auto;
        bottom: 0;
    }

    .match-card__logo img {
        width: 12rem;
        margin-right: .5rem;
    }
}
