/* ==========================================================================
   Game 36 - detail.css
   Game detail hero, description and related games
   ========================================================================== */

.g36-detail {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 26px;
    padding: 24px;
    background: var(--g36-surface);
    border: 1px solid var(--g36-line);
    border-radius: 22px;
    box-shadow: var(--g36-shadow);
}

.g36-detail-art {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e8ebf4;
    aspect-ratio: 1 / 1;
}

.g36-detail-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g36-detail-art::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    border-radius: inherit;
    pointer-events: none;
}

.g36-detail-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.g36-detail-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.g36-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 12px;
}

.g36-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--g36-brand-soft);
    color: var(--g36-brand);
    font-size: 12.5px;
    font-weight: 700;
}

.g36-pill .g36-ico {
    width: 14px;
    height: 14px;
}

.g36-pill--muted {
    background: #f3f4fa;
    color: var(--g36-ink-2);
}

.g36-detail-tip {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--g36-ink-3);
}

.g36-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.g36-detail-actions .g36-btn {
    min-width: 168px;
}

/* --------------------------------------------------------------------------
   Description block
   -------------------------------------------------------------------------- */

.g36-desc {
    margin-top: 26px;
    padding: 24px 26px;
    background: var(--g36-surface);
    border: 1px solid var(--g36-line);
    border-radius: var(--g36-radius);
}

.g36-desc h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 18px;
}

.g36-desc h2 .g36-ico {
    width: 18px;
    height: 18px;
    color: var(--g36-brand);
}

.g36-desc-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--g36-brand);
}

.g36-desc-more .g36-ico {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.g36-desc-more[aria-expanded="true"] .g36-ico {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Related games
   -------------------------------------------------------------------------- */

.g36-related {
    margin-top: 34px;
}

@media (max-width: 1023px) {
    .g36-detail {
        grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
        border-radius: 18px;
    }

    .g36-detail-title {
        font-size: 19px;
    }

    .g36-detail-tip {
        display: none;
    }

    .g36-detail-actions {
        /*grid-column: 1 / -1;*/
        padding-top: 16px;
        flex-direction: column;
    }

    .g36-detail-actions .g36-btn {
        flex: 1;
        min-width: 0;
    }

    .g36-desc {
        margin-top: 20px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .g36-detail {
        grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
    }

    .g36-detail-title {
        font-size: 17px;
    }

    .g36-pill {
        padding: 4px 10px;
        font-size: 11.5px;
    }
}
