#resultScreen {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 220, 120, 0.28), transparent 24%),
        linear-gradient(rgba(10, 18, 7, 0.74), rgba(5, 8, 3, 0.92)),
        #1d3f1c;
}

.result-card {
    width: min(620px, 94vw);
    text-align: center;
    color: #ffffff;
}

.result-title {
    margin: 0 0 24px;
    color: #ffd7ff;
    font-size: clamp(48px, 11vw, 92px);
    letter-spacing: 0.06em;
    text-shadow:
        0 4px 0 #5d234f,
        0 0 14px #ff7cf2,
        0 0 30px #ff2bd6;
    animation: winnerHeartbeat 850ms infinite ease-in-out;
}

.result-player {
    position: relative;
    margin: 22px auto;
    padding: 22px 20px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.result-player.player-one {
    background: linear-gradient(90deg, #0d63be, #2587eb, #0d63be);
}

.result-player.player-two {
    background: linear-gradient(90deg, #bb0056, #ef1977, #aa004f);
}

.crowns {
    margin-bottom: 12px;
    color: #ffd449;
    font-size: 58px;
    letter-spacing: 8px;
    text-shadow: 0 4px 0 #8b4d00, 0 0 18px rgba(255, 221, 64, 0.75);
}

.distance {
    margin-top: 8px;
    font-size: 16px;
    opacity: 0.85;
}

.result-vs {
    margin: 18px 0;
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 4px 0 #000000;
}

#resultOkButton {
    margin-top: 36px;
    padding: 14px 54px;
    border: 4px solid #8ed8ff;
    border-radius: 10px;
    background: linear-gradient(#75cfff, #1693f5);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 3px 0 #12609b;
    box-shadow: inset 0 0 0 2px #b8efff, 0 7px 0 #0d5fa5;
    cursor: pointer;
}

@keyframes winnerHeartbeat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-8px) scale(1.06);
    }
}
