.game-hero {
    position: relative;
    width: 100%;
    height: 100vw;
    overflow: hidden;
    padding: 0;
    margin: 0;

    @media (min-width: 979px) {
        aspect-ratio: 16/9;
        height: auto;
    }
}

.game-hero__media {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-hero__image,
.game-hero__poster {
    width: 90vw;
    max-width: 900px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.game-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-hero__poster--fallback,
.game-hero__image--fallback {
    width: 100%;
    height: 100%;
    background: #000;
}

.game-hero__video-wrap {
    position: absolute;
    inset: 0;
}

.game-hero__video-trigger {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.game-hero__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.game-hero__play svg circle {
    fill: rgba(0, 0, 0, 0.45);
}

.game-hero__play svg path {
    fill: #fff;
}

.game-hero__content {
    position: relative;
    z-index: 2;
}

.game-hero__video-trigger:focus-visible,
.game-hero__scroll:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
}
