/* ==========================================================
   SINGLE GAME PAGE
   ========================================================== */
.gz-game { margin-bottom: 36px; }
.gz-game svg { display: block; flex-shrink: 0; }

/* ---------- HERO ---------- */
.gz-game-hero {
    position: relative;
    display: grid;
    grid-template-columns: 241px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 30px;
    padding: 30px;
    overflow: hidden;
    background: var(--gz-surface);
    border: 1px solid var(--gz-border);
    border-top: 3px solid var(--gz-red);
}
.gz-game-hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: .28;
    pointer-events: none;
}
html[data-theme="light"] .gz-game-hero-bg { opacity: .18; }
.gz-game-hero > *:not(.gz-game-hero-bg) { position: relative; }

.gz-game-cover {
    width: 241px;
    aspect-ratio: 241 / 339;
    background: var(--gz-surface-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.gz-game-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gz-game-cover::before,
.gz-game-cover::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    pointer-events: none;
    z-index: 1;
}
.gz-game-cover::before { top: -7px; right: -7px; border-top: 4px solid var(--gz-red); border-right: 4px solid var(--gz-red); }
.gz-game-cover::after  { bottom: -7px; left: -7px; border-bottom: 4px solid var(--gz-red); border-left: 4px solid var(--gz-red); }

.gz-game-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gz-muted);
}
.gz-game-cover-empty svg { width: 60px; height: 60px; }

.gz-game-cat {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 16px;
    background: var(--gz-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.gz-game-cat:hover,
.gz-game-cat:focus { background: var(--gz-red-hover); color: #fff; }

.gz-game .gz-game-title {
    margin: 0 0 18px;
    color: var(--gz-heading);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.gz-game-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.gz-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px 16px;
    background: var(--gz-surface-2);
    border-left: 3px solid var(--gz-red);
}
.gz-chip span {
    color: var(--gz-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gz-chip strong { color: var(--gz-heading); font-size: 14px; }

.gz-game-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gz-game .gz-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
    transition: background-color .2s;
}
.gz-game .gz-btn svg { width: 18px; height: 18px; }
.gz-game .gz-btn--red  { background: var(--gz-red); }
.gz-game .gz-btn--grey { background: var(--gz-grey); }
.gz-game .gz-btn:hover,
.gz-game .gz-btn:focus-visible { background: var(--gz-red-hover); color: #fff; }

.gz-game-updated {
    margin: 16px 0 0;
    color: var(--gz-muted);
    font-size: 12px;
}

/* ---------- TABS ---------- */
.gz-tablist {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 3px solid var(--gz-red);
}
.gz-tablist::-webkit-scrollbar { display: none; }

.gz-game .gz-tab {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 0;
    background: var(--gz-surface-2);
    color: var(--gz-heading);
    box-shadow: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
.gz-game .gz-tab:hover,
.gz-game .gz-tab:focus { background: var(--gz-border); color: var(--gz-heading); }
.gz-game .gz-tab.is-active,
.gz-game .gz-tab.is-active:hover,
.gz-game .gz-tab.is-active:focus { background: var(--gz-red); color: #fff; }
.gz-game .gz-tab:focus-visible { outline: 2px solid var(--gz-heading); outline-offset: -4px; }

.gz-panel {
    padding: 30px;
    background: var(--gz-surface);
    border: 1px solid var(--gz-border);
    border-top: 0;
}
.gz-panel[hidden] { display: none; }
.gz-panel:focus { outline: none; }

.gz-game .gz-panel-title,
.gz-game .gz-section-title {
    position: relative;
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--gz-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.gz-game .gz-panel-title::before,
.gz-game .gz-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 11px;
    height: 16px;
    margin-top: -8px;
    background: var(--gz-red);
    transform: skewX(-20deg);
}

.gz-entry > *:last-child { margin-bottom: 0; }

/* ---------- TABLES (requirements + info) ---------- */
.gz-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.gz-req-card { border: 1px solid var(--gz-border); }
.gz-game .gz-req-title {
    margin: 0;
    padding: 12px 16px;
    background: var(--gz-surface-2);
    border-bottom: 2px solid var(--gz-red);
    color: var(--gz-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gz-req-card--recommended .gz-req-title { border-bottom-color: var(--gz-grey); }

.gz-game .gz-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 14px;
}
.gz-game .gz-table th,
.gz-game .gz-table td {
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid var(--gz-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}
.gz-game .gz-table tr:last-child th,
.gz-game .gz-table tr:last-child td { border-bottom: 0; }
.gz-game .gz-table tr:nth-child(even) { background: var(--gz-surface-2); }
.gz-game .gz-table th {
    width: 34%;
    color: var(--gz-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.gz-game .gz-table td { color: var(--gz-heading); }
.gz-game .gz-table-note td {
    font-style: italic;
    box-shadow: inset 3px 0 0 var(--gz-red);
}
.gz-game .gz-table--info { border: 1px solid var(--gz-border); max-width: 720px; }

/* ---------- SCREENSHOTS ---------- */
.gz-shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.gz-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gz-surface-2);
}
.gz-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gz-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.gz-shot-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: var(--gz-red);
    color: #fff;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}
.gz-shot-zoom svg { width: 16px; height: 16px; }
.gz-shot:hover img,
.gz-shot:focus-visible img { transform: scale(1.06); }
.gz-shot:hover::after,
.gz-shot:focus-visible::after { border-color: var(--gz-red); }
.gz-shot:hover .gz-shot-zoom,
.gz-shot:focus-visible .gz-shot-zoom { opacity: 1; transform: none; }

/* ---------- VIDEO ---------- */
.gz-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}
.gz-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.gz-game .gz-video-play {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #000;
    cursor: pointer;
}
.gz-video-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s;
}
.gz-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 68px;
    margin: -34px 0 0 -48px;
    padding-left: 6px;
    background: var(--gz-red);
    color: #fff;
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
    transition: transform .2s, background-color .2s;
}
.gz-video-play:hover img { opacity: 1; }
.gz-video-play:hover .gz-video-icon,
.gz-video-play:focus-visible .gz-video-icon { background: var(--gz-red-hover); transform: scale(1.08); }

/* ---------- DOWNLOADS ---------- */
.gz-downloads {
    margin-top: 32px;
    padding: 30px;
    background: var(--gz-surface);
    border: 1px solid var(--gz-border);
    border-left: 5px solid var(--gz-red);
    scroll-margin-top: 20px;
}
.gz-dl-group + .gz-dl-group {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px dashed var(--gz-border);
}
.gz-game .gz-dl-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--gz-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.gz-dl-heading svg { color: var(--gz-red); width: 20px; height: 20px; }

.gz-dl-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.gz-game .gz-dl-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 26px 10px 10px;
    background: var(--gz-red);
    color: #fff;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    transition: background-color .2s, transform .2s;
}
.gz-game .gz-dl-btn--torrent { background: var(--gz-grey); }
.gz-game .gz-dl-btn:hover,
.gz-game .gz-dl-btn:focus-visible {
    background: var(--gz-red-hover);
    color: #fff;
    transform: translateY(-2px);
}
.gz-dl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, .22);
}
.gz-dl-btn--torrent .gz-dl-icon { color: var(--gz-red); background: rgba(0, 0, 0, .25); }
.gz-dl-btn--torrent:hover .gz-dl-icon { color: #fff; }
.gz-dl-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gz-dl-text strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gz-dl-text small { font-size: 12px; opacity: .8; }

/* ---------- COMMENTS ---------- */
.gz-comments { margin-top: 10px; }

/* ---------- LIGHTBOX ---------- */
.gz-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
    background: rgba(5, 6, 8, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.gz-lb.is-open { opacity: 1; visibility: visible; }
.gz-lb-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.gz-lb-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    border-bottom: 3px solid var(--gz-red);
    opacity: 0;
    transform: scale(.97);
    transition: opacity .25s, transform .25s;
}
.gz-lb-img.is-loaded { opacity: 1; transform: none; }
.gz-lb-count {
    margin-top: 14px;
    color: #c4c8ce;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}
.gz-lb button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #2a2d33;
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s;
}
.gz-lb button:hover,
.gz-lb button:focus-visible { background: #e10600; color: #fff; }
.gz-lb button svg { display: block; width: 22px; height: 22px; }
.gz-lb-close {
    top: 20px;
    right: 20px;
    width: 54px;
    height: 46px;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.gz-lb-prev,
.gz-lb-next {
    top: 50%;
    width: 52px;
    height: 64px;
    margin-top: -32px;
}
.gz-lb-prev { left: 16px; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.gz-lb-next { right: 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%); }
.gz-lb.is-single .gz-lb-prev,
.gz-lb.is-single .gz-lb-next,
.gz-lb.is-single .gz-lb-count { display: none; }
.admin-bar .gz-lb-close { top: 52px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 921px) {
    .gz-game-hero { gap: 26px; padding: 24px; }
    .gz-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .gz-game-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 28px 18px;
    }
    .gz-game-cover { width: 200px; }
    .gz-game-chips,
    .gz-game-actions { justify-content: center; }
    .gz-chip { text-align: left; }

    .gz-game .gz-tab { padding: 13px 16px; font-size: 12px; }
    .gz-panel,
    .gz-downloads { padding: 22px 16px; }

    .gz-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gz-shot-zoom { opacity: 1; transform: none; width: 34px; height: 28px; }

    .gz-req-grid { grid-template-columns: 1fr; }
    .gz-game .gz-table th { width: 40%; }

    .gz-dl-buttons { grid-template-columns: 1fr; }

    .gz-lb { padding: 70px 12px; }
    .gz-lb-prev,
    .gz-lb-next { top: auto; bottom: 16px; margin-top: 0; width: 56px; height: 46px; }
    .gz-lb-count { margin-top: 18px; }
    .gz-video-icon { width: 76px; height: 54px; margin: -27px 0 0 -38px; }
}

@media (max-width: 420px) {
    .gz-game .gz-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .gz-game *,
    .gz-lb,
    .gz-lb * { transition: none !important; }
}
/* ==========================================================
   SUPPORT THE DEVELOPERS
   ========================================================== */
.gz-support {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
    padding: 28px;
    overflow: hidden;
    background-color: var(--gz-surface);
    background-image: repeating-linear-gradient(135deg, var(--gzh-pattern) 0 2px, transparent 2px 12px);
    border: 1px solid var(--gz-border);
    border-left: 5px solid var(--gz-red);
}
.gz-support::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 170px;
    height: 170px;
    border: 18px solid var(--gz-red);
    opacity: .07;
    transform: rotate(45deg);
    pointer-events: none;
}

.gz-support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    height: 56px;
    background: var(--gz-red);
    color: #fff;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.gz-support-icon svg { display: block; }
.gz-support:hover .gz-support-icon svg { animation: gz-heartbeat 1.2s ease-in-out infinite; }

@keyframes gz-heartbeat {
    0%, 100% { transform: scale(1); }
    15%      { transform: scale(1.18); }
    30%      { transform: scale(1); }
    45%      { transform: scale(1.12); }
    60%      { transform: scale(1); }
}

.gz-support-body { position: relative; z-index: 1; flex: 1; min-width: 0; }

.gz-game .gz-support-title {
    margin: 0 0 8px;
    color: var(--gz-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gz-support-text {
    max-width: 660px;
    margin: 0 0 18px;
    color: var(--gz-text);
    font-size: 15px;
    line-height: 1.7;
}

.gz-support-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.gz-game .gz-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px 8px 8px;
    background: var(--gz-grey);
    color: #fff;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transition: background-color .2s, transform .2s;
}
.gz-game .gz-support-btn.is-primary { background: var(--gz-red); }
.gz-game .gz-support-btn:hover,
.gz-game .gz-support-btn:focus-visible {
    background: var(--gz-red-hover);
    color: #fff;
    transform: translateY(-2px);
}

.gz-support-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .22);
}
.gz-support-btn-icon svg { display: block; }

.gz-support-btn-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gz-support-btn-text small {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .8;
}
.gz-support-btn-text strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gz-support-btn-arrow { margin-left: 6px; opacity: .7; }
.gz-support-btn-arrow svg { display: block; }

@media (max-width: 600px) {
    .gz-support {
        flex-direction: column;
        gap: 16px;
        padding: 22px 16px;
    }
    .gz-support-icon { flex-basis: auto; width: 56px; height: 48px; }
    .gz-support-buttons { flex-direction: column; }
    .gz-game .gz-support-btn { width: 100%; }
    .gz-support-btn-arrow { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .gz-support:hover .gz-support-icon svg { animation: none; }
}
/* ==========================================================
   BREADCRUMBS (above hero)
   ========================================================== */
.gz-single-crumbs { margin: 0 0 14px; }
.gz-single-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}
.gz-single-crumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: var(--gz-muted);
}
.gz-single-crumbs li + li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin: 0 10px;
    border-top: 2px solid var(--gz-red);
    border-right: 2px solid var(--gz-red);
    transform: rotate(45deg);
}
.gz-single-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gz-text);
    text-decoration: none;
    transition: color .2s;
}
.gz-single-crumbs a:hover,
.gz-single-crumbs a:focus-visible { color: var(--gz-red); }
.gz-single-crumbs svg {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--gz-red);
}
.gz-single-crumbs [aria-current] {
    max-width: 420px;
    overflow: hidden;
    color: var(--gz-heading);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================
   GAME INFO (inside Description tab)
   ========================================================== */
.gz-desc-info {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px dashed var(--gz-border);
}
.gz-game .gz-panel-title--sub {
    margin-bottom: 16px;
    font-size: 15px;
}
.gz-game .gz-panel-title--sub::before {
    width: 9px;
    height: 13px;
    margin-top: -6px;
}
.gz-desc-info .gz-table--info { max-width: 820px; }

@media (max-width: 600px) {
    /* One line, swipe sideways on phones */
    .gz-single-crumbs ol {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .gz-single-crumbs ol::-webkit-scrollbar { display: none; }
    .gz-single-crumbs [aria-current] { max-width: 220px; }

    .gz-desc-info { margin-top: 26px; padding-top: 22px; }
}