.gaming-main { padding-bottom: 64px; }
.gaming-hero { margin-top: 24px; }
.gaming-section { margin-block: 40px; }
.gaming-section h2 { font-size: clamp(1.35rem,3vw,2rem); margin: 0 0 18px; line-height: 1.25; overflow-wrap: anywhere; }
.game-tiles, .mod-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.game-tile, .mod-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-tile { display: flex; flex-direction: column; text-decoration: none; }
.game-tile:hover, .mod-card:hover { border-color: var(--brand-strong); }
.game-art { display: block; width: 100%; height: auto; }
.game-tile .game-art { aspect-ratio: 16/9; object-fit: cover; }
.game-tile div { padding: 18px; }
.game-tile h3,.mod-card h3 { margin: 0 0 8px; line-height: 1.3; font-size: 1.15rem; overflow-wrap: anywhere; }
.game-tile p,.mod-card p { margin: 0; color: var(--muted); }
.gaming-news-panel { padding: clamp(18px,4vw,36px); background: var(--surface-3); border: 1px solid var(--line); }
.gaming-news-panel .section__top { flex-wrap: wrap; }
.gaming-intro { padding-block: 40px 28px; }
.game-group { scroll-margin-top: 24px; }
.game-group-header { display: grid; grid-template-columns: minmax(0,180px) 1fr; align-items: center; gap: 20px; margin-bottom: 18px; }
.game-group-header .game-art { aspect-ratio: 16/9; object-fit: cover; }
.game-group-header h2 { margin: 0; }
.mod-card { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.mod-card .text-link { margin-top: auto; padding-top: 18px; }
.mod-card p { margin-bottom: 12px; }
.mod-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); align-items: center; gap: clamp(18px,4vw,48px); margin-top: 22px; padding: clamp(18px,3vw,32px); border: 1px solid var(--line); background: var(--surface); }
.mod-header .game-art { max-height: 380px; object-fit: contain; }
.mod-header-copy { min-width: 0; }
.mod-header h1 { font-size: clamp(1.8rem,4vw,3.4rem); overflow-wrap: anywhere; line-height: 1.15; margin: 8px 0 16px; }
.mod-header-copy p { color: var(--muted); }
.gaming-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.gaming-gallery figure { margin: 0; min-width: 0; }
.gallery-item { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); min-height: 120px; }
.gallery-item img { display: block; width: 100%; height: clamp(160px,28vw,360px); object-fit: contain; }
.gaming-gallery figcaption { padding: 8px 0; color: var(--muted); }
.gaming-lightbox { width: min(94vw,1200px); max-width: none; max-height: 94vh; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 16px; overflow: auto; }
.gaming-lightbox::backdrop { background: rgba(0,0,0,.84); }
.lightbox-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.lightbox-tools button { min-height: 44px; }
.gaming-lightbox img { display: block; margin: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox-caption { text-align: center; margin: 8px 0 0; }
@media(max-width: 950px) { .mod-grid,.game-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 620px) { .mod-grid,.game-tiles,.gaming-gallery,.mod-header { grid-template-columns: minmax(0,1fr); } .game-group-header { grid-template-columns: minmax(0,100px) 1fr; gap: 12px; } .gaming-section { margin-block: 28px; } }

.mod-promo { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
.mod-card-art { display:block; width:100%; margin-bottom:16px; }
.mod-overview { max-width: 78ch; line-height:1.75; }
.mod-overview p { margin:0 0 1em; }
.mod-download { border-top:1px solid var(--line); padding-top:24px; }
.gaming-gallery .gallery-item img { height:auto; aspect-ratio:16/9; }

.gaming-gallery .capture-image img { aspect-ratio:auto; height:auto; max-height:360px; width:auto; max-width:100%; }
.capture-note,.mod-changelog > p { color:var(--muted); }
.release-history { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.release-history li { border:1px solid var(--line); padding:16px; background:var(--surface); min-width:0; overflow-wrap:anywhere; }
.release-history p { margin:8px 0 0; }

/* Latest confirmed release: editorial focus without modifying promotional artwork. */
.latest-release { margin-block: 32px 40px; }
.release-feature { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:clamp(18px,3vw,36px); padding:clamp(16px,2.5vw,28px); background:var(--surface); border:1px solid var(--brand-strong); box-shadow:var(--shadow); }
.release-feature-art,.release-feature-copy { display:block; min-width:0; }
.release-feature-art img { display:block; width:100%; height:auto; }
.release-feature-copy h3 { margin:8px 0 12px; font-size:clamp(1.35rem,2.7vw,2.4rem); line-height:1.18; overflow-wrap:anywhere; }
.release-feature-copy h3 a { color:inherit; }
.release-feature-copy p { color:var(--muted); overflow-wrap:anywhere; }
.release-feature-meta { display:flex; flex-wrap:wrap; gap:8px; font-size:.85rem; margin:0; }
.release-feature-copy .actions { margin-top:20px; }
.mod-card .mod-release-label { color:var(--ink); font-size:.8rem; font-weight:700; margin:0 0 6px; }
@media(max-width:620px) {
  .release-feature { grid-template-columns:minmax(0,1fr); gap:16px; }
  .release-feature-copy .actions { margin-top:16px; }
  .release-feature-copy .actions a { max-width:100%; white-space:normal; }
}
