/* =========================================================
   Minecraft Game CMS — Frontend Stylesheet
   Modern, clean layout with blocky "voxel" game accents
   ========================================================= */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #161922;
    --muted: #6b7280;
    --border: #e6e9f0;

    --green: #57b23f;
    --green-dark: #3f8e2e;
    --blue: #3e8ede;
    --gold: #f3b73d;

    --dark: #171a22;
    --dark-soft: #21252f;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(20, 24, 35, 0.07);
    --shadow-lg: 0 20px 50px rgba(20, 24, 35, 0.16);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-pixel: 'Press Start 2P', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Pixel accent helpers ---------- */
.pixel-eyebrow {
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-dark);
    background: rgba(87, 178, 63, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.pixel-eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--green);
    box-shadow:
        12px 0 0 var(--gold),
        24px 0 0 var(--blue);
    flex-shrink: 0;
}
.pixel-eyebrow.on-dark {
    background: rgba(255,255,255,0.08);
    color: #d6f5cd;
}

.voxel-cluster {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 14px);
    grid-template-rows: repeat(3, 14px);
    gap: 4px;
    opacity: 0.5;
    pointer-events: none;
}
.voxel-cluster span {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.voxel-cluster span:nth-child(1) { background: var(--green); }
.voxel-cluster span:nth-child(2) { background: transparent; }
.voxel-cluster span:nth-child(3) { background: var(--gold); }
.voxel-cluster span:nth-child(4) { background: transparent; }
.voxel-cluster span:nth-child(5) { background: var(--blue); }
.voxel-cluster span:nth-child(6) { background: transparent; }
.voxel-cluster span:nth-child(7) { background: var(--gold); }
.voxel-cluster span:nth-child(8) { background: transparent; }
.voxel-cluster span:nth-child(9) { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-align: center;
}
.btn-primary {
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(87, 178, 63, 0.35);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(87, 178, 63, 0.45);
}
.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--dark);
    color: #fff;
}
.btn-dark:hover { background: var(--dark-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
}
.site-logo img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 3px;
    background: var(--green);
    border-radius: 2px;
    transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Dark overlay shown behind the mobile nav drawer */
/* nav-overlay removed */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 90px 0 100px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: saturate(1.1);
}
.hero-bg-image { /* set inline via style attr */ }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(23,26,34,0.95) 30%, rgba(23,26,34,0.55) 100%);
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}
.hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 26px;
    border: 3px solid rgba(255,255,255,0.15);
}
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    margin-bottom: 18px;
}
.hero .tagline {
    font-size: 19px;
    color: #d3d6e0;
    max-width: 480px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    position: relative;
}
.hero-visual .voxel-cluster {
    top: -30px;
    right: -10px;
}
.hero-visual img,
.hero-visual picture img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.12);
    display: block;
}

/* ---------- Section heading ---------- */
.section { padding: 90px 0; }
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { font-size: 17px; }
.section-alt { background: var(--surface); }

/* ---------- Features (zig-zag) ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-media {
    position: relative;
}
.feature-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}
.feature-media .voxel-cluster {
    bottom: -20px;
    left: -20px;
}
.feature-row.reverse .feature-media .voxel-cluster {
    left: auto;
    right: -20px;
}
.feature-text .pixel-eyebrow { margin-bottom: 14px; }
.feature-text h3 { font-size: 28px; margin-bottom: 14px; }
.feature-text p { font-size: 16px; }

/* ---------- App content / about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.about-text { max-width: 720px; margin: 0 auto; text-align: center; }
.about-text h2 { font-size: clamp(28px, 4vw, 38px); }
.screenshot-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.screenshot-strip img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    aspect-ratio: 9/16;
    object-fit: cover;
    width: 100%;
    transition: transform .25s ease;
}
.screenshot-strip img:hover { transform: translateY(-6px); }

/* ---------- Platforms ---------- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.platform-icon {
    width: 60px; height: 60px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), var(--blue));
}
.platform-icon img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.platform-card h3 { font-size: 20px; margin-bottom: 8px; }
.platform-card p { font-size: 14px; margin-bottom: 22px; }

/* ---------- New game block ---------- */
.newgame-section { padding: 90px 0; }
.newgame-card {
    position: relative;
    background: linear-gradient(120deg, var(--dark) 45%, var(--dark-soft) 100%);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.newgame-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(243,183,61,0.18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(87,178,63,0.18), transparent 45%);
}
.newgame-text { padding: 60px; position: relative; z-index: 2; }
.newgame-badge {
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 2px;
    background: var(--gold);
    color: #2b1d00;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
}
.newgame-text h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.newgame-text p { color: #c9cdd8; font-size: 16px; margin-bottom: 30px; }
.newgame-media { position: relative; height: 100%; min-height: 360px; }
.newgame-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ---------- Blog ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-date {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--green-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; }
.blog-read-more { font-weight: 700; color: var(--green-dark); font-size: 14px; }

.post-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.post-header .blog-date { margin-bottom: 14px; }
.post-header h1 { font-size: clamp(30px, 5vw, 46px); }
.post-cover {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 50px;
    border-radius: var(--radius);
    aspect-ratio: 16/8;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
}
.post-content h2 { margin-top: 1.6em; }
.post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.post-content p { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #aeb3c2;
    padding: 60px 0 30px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: var(--font-display); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #aeb3c2; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    font-size: 13px;
    text-align: center;
    color: #6c7283;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero .tagline { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-icon picture img,
    .hero-icon img { margin-left: auto; margin-right: auto; }
    .hero-visual img,
    .hero-visual picture img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }
    .feature-row { grid-template-columns: 1fr; gap: 24px; }
    .feature-row.reverse .feature-media,
    .feature-row.reverse .feature-text { order: initial; }
    .feature-media img,
    .feature-media picture img { width: 100%; height: auto; max-height: 280px; object-fit: cover; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .screenshot-strip { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .screenshot-strip img, .screenshot-strip picture img { aspect-ratio: 9/16; object-fit: cover; width: 100%; max-height: 220px; }
    .newgame-card { grid-template-columns: 1fr; }
    .newgame-media { min-height: 180px; order: -1; }
    .app-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    /* --- Mobile nav --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 260px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 0 28px;
        border-left: 1px solid var(--border);
        transition: right .3s ease;
        z-index: 200;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
    }
    .main-nav.open { right: 0; box-shadow: -8px 0 24px rgba(20,24,35,.12); }
    .main-nav a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
        font-weight: 500;
        color: var(--ink);
        text-decoration: none;
        pointer-events: auto;
    }
    .main-nav a:hover, .main-nav a.active {
        background: rgba(87,178,63,0.07);
        color: var(--green-dark);
    }
    .main-nav a::after { display: none; }
    .nav-toggle { display: flex; position: relative; z-index: 210; }

    /* --- Hero mobile --- */
    .hero { padding: 50px 0 60px; }
    .hero h1 { font-size: 28px; }
    .hero .tagline { font-size: 15px; }
    .hero-visual img,
    .hero-visual picture img {
        max-height: 220px;
        object-fit: cover;
        width: 100%;
    }

    /* --- Platforms --- */
    .platforms-grid { grid-template-columns: 1fr; }

    /* --- Screenshots --- */
    .screenshot-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .screenshot-strip img, .screenshot-strip picture img { aspect-ratio: 9/16; object-fit: cover; max-height: 180px; }

    /* --- New games 4-col -> 2-col on mobile --- */
    .newgames-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .newgames-grid .newgame-media { min-height: 120px; }
    .newgames-grid .newgame-text { padding: 14px; }
    .newgames-grid .newgame-text h2 { font-size: 14px; }
    .newgames-grid .newgame-text p { font-size: 12px; }
    .newgame-section { padding: 50px 0; }

    /* --- Blog --- */
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    /* --- App listing --- */
    .app-hero-inner { flex-direction: column; gap: 16px; }
    .app-main-icon, .app-hero-icon picture img { width: 80px; height: 80px; }
    .app-listing-grid { grid-template-columns: 1fr; }
    .screenshots-scroll .screenshot-thumb,
    .screenshots-scroll picture img { height: 160px; }
}


@media (max-width: 480px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .screenshot-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* =========================================================
   APP STORE LISTING STYLES (Mods & Games)
   ========================================================= */

/* Listing grid */
.app-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) { .app-listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-listing-grid { grid-template-columns: 1fr; } }

.app-listing-card {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.app-card-icon { flex-shrink: 0; width: 72px; height: 72px; }
.app-card-icon .app-icon-img,
.app-card-icon picture img {
    width: 72px; height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.app-card-body { flex: 1; min-width: 0; }
.app-card-body h3 { font-size: 16px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-body p  { font-size: 13px; color: var(--muted); margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card-cta { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.app-meta-pill {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    margin: 0 4px 4px 0;
}
.app-meta-pill.green { background: rgba(87,178,63,.1); border-color: rgba(87,178,63,.3); color: var(--green-dark); }

/* ---- App store hero (single page) ---- */
.app-listing-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #252a38 100%);
    padding: 60px 0;
    color: #fff;
}
.app-hero-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
@media (max-width: 640px) { .app-hero-inner { flex-direction: column; gap: 20px; } }
.app-hero-icon { flex-shrink: 0; }
.app-main-icon,
.app-hero-icon picture img {
    width: 120px; height: 120px;
    border-radius: 26px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.app-breadcrumb { font-size: 13px; color: #aeb3c2; margin-bottom: 10px; }
.app-breadcrumb a { color: #aeb3c2; text-decoration: underline; }
.app-hero-info h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; }
.app-tagline { font-size: 16px; color: #c9cdd8; margin-bottom: 16px; }
.app-meta-row { margin-bottom: 22px; }
.app-listing-hero .app-meta-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #d3d6e0; }
.app-listing-hero .app-meta-pill.green { background: rgba(87,178,63,.2); border-color: rgba(87,178,63,.4); color: #a8f0a0; }
.app-downloads { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Screenshots horizontal scroll ---- */
.app-screenshots-section { background: #f0f3f9; padding: 36px 0; overflow: hidden; }
.screenshots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.screenshot-thumb,
.screenshots-scroll picture img {
    flex-shrink: 0;
    height: 220px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}

/* ---- Detail grid ---- */
.app-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 800px) { .app-detail-grid { grid-template-columns: 1fr; } }

.app-detail-main h2 { font-size: 22px; margin-bottom: 18px; }
.app-description { font-size: 16px; line-height: 1.8; }
.app-description h2, .app-description h3 { margin-top: 1.4em; }
.app-description img { max-width: 100%; border-radius: var(--radius-sm); }

.app-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.app-info-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 14px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--muted); }
.info-row strong { color: var(--ink); text-align: right; max-width: 60%; }

/* =========================================================
   MULTI NEW-GAME GRID
   ========================================================= */
.newgames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.newgames-grid .newgame-card {
    flex-direction: column;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-soft);
    color: #fff;
    position: relative;
}
.newgames-grid .newgame-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(243,183,61,0.15), transparent 50%);
    pointer-events: none;
}
.newgames-grid .newgame-media {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    order: -1;
}
.newgames-grid .newgame-media picture,
.newgames-grid .newgame-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.newgames-grid .newgame-text {
    padding: 20px;
    position: relative;
    z-index: 2;
}
.newgames-grid .newgame-text h2 { font-size: 17px; margin-bottom: 8px; }
.newgames-grid .newgame-text p  { font-size: 13px; color: #c9cdd8; margin-bottom: 14px; }
@media (max-width: 1100px) { .newgames-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .newgames-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FONT DISPLAY SWAP — ensures text visible during font load
   ========================================================= */
@font-face {
    font-family: 'Outfit';
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-display: swap;
}
@font-face {
    font-family: 'Press Start 2P';
    font-display: swap;
}

/* =========================================================
   PICTURE TAG — ensure images inherit layout correctly
   ========================================================= */
picture {
    display: contents;
}
picture img {
    display: block;
    max-width: 100%;
    height: auto;
}
.hero-icon picture img {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 26px;
    border: 3px solid rgba(255,255,255,0.15);
}
.site-logo picture img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.footer-brand picture img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.feature-media picture img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}
/* screenshot-strip picture styles merged into main rule above */
.platform-icon picture img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}
.newgame-media picture {
    display: block;
    position: absolute;
    inset: 0;
}
.newgame-media picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   PAGE BANNER — used on Blog, Mods, Games listing pages
   ========================================================= */
.page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #252a38 100%);
    color: #fff;
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(87,178,63,0.12), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(62,142,222,0.12), transparent 50%);
    pointer-events: none;
}
.page-banner .container {
    position: relative;
    z-index: 1;
}
.page-banner h1 {
    font-size: clamp(30px, 5vw, 48px);
    margin-bottom: 14px;
    color: #fff;
}
.page-banner p {
    font-size: 18px;
    color: #c9cdd8;
    max-width: 560px;
    margin: 0 auto;
}

/* =========================================================
   AD BLOCKS
   ========================================================= */
.ad-block {
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 0;
}
.ad-block-1 {
    padding: 12px 0;
    background: rgba(255,255,255,0.05);
}
.ad-block-2 { padding: 20px 0; }
.ad-block-3 { padding: 20px 0; }
.ad-block-4 {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}
@media (max-width: 720px) {
    .ad-block { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.screenshot-strip { grid-template-columns: repeat(6, 1fr); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    transition: all .15s;
}

.pagination-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.pagination-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}
