.game-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
    align-items: center;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 64px) 0 72px;
}

.game-detail-art {
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f3f4f6 center / cover no-repeat;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.game-detail-copy {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.game-detail-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.game-detail-copy p:not(.eyebrow) {
    max-width: 660px;
    font-size: 1.15rem;
    line-height: 1.75;
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.game-trailer,
.requirements-grid,
.game-gallery {
    padding-top: 0;
}

.game-trailer > .eyebrow,
.game-detail-body > .eyebrow,
.game-gallery > .eyebrow {
    margin-bottom: 20px;
    font-size: 1.18rem;
    letter-spacing: 0.14em;
}

.requirements-grid > article > .eyebrow {
    font-size: 1.22rem;
    letter-spacing: 0.11em;
}

.trailer-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #05070d;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    aspect-ratio: 16 / 9;
}

.trailer-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.game-detail-body {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 34px;
    padding: 36px;
}

.game-detail-body h2,
.game-gallery h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.game-detail-body p {
    max-width: 840px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.requirements-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 30px;
}

.requirements-grid h2 {
    font-size: 1.45rem;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table tr + tr {
    border-top: 1px solid var(--line);
}

.requirements-table th,
.requirements-table td {
    padding: 12px 0;
    text-align: left;
    vertical-align: top;
}

.requirements-table th {
    width: 42%;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.requirements-table td {
    color: var(--text);
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-grid button {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-grid button:hover img {
    transform: scale(1.04);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.9);
    padding: 72px 96px;
    backdrop-filter: blur(10px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    width: auto;
    max-width: min(1280px, 88vw);
    max-height: 88vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-close,
.gallery-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 0;
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.gallery-close {
    top: 24px;
    right: 24px;
    font-size: 1.55rem;
    padding-bottom: 2px;
}

.gallery-prev {
    left: 24px;
    padding-bottom: 3px;
}

.gallery-next {
    right: 24px;
    padding-bottom: 3px;
}

body.gallery-open {
    overflow: hidden;
}

@media (max-width: 880px) {
    .game-detail-hero,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-lightbox {
        padding: 72px 18px;
    }

    .gallery-prev {
        left: 14px;
    }

    .gallery-next {
        right: 14px;
    }
}

@media (max-width: 720px) {
    .game-detail-hero {
        width: min(100% - 28px, var(--max));
        padding-top: calc(var(--header-height) + 42px);
    }

    .game-detail-art {
        min-height: 340px;
    }

    .game-detail-body {
        padding: 24px;
    }
}
