/* =========================================================
   SVIP Club — Royal Gold design system
   Source of truth: Google Stitch design system "SVIP Club — Royal Gold"
   Palette: deep aubergine + metallic gold + electric magenta + teal
   Type: Space Grotesk (headlines) / Plus Jakarta Sans (body)
   ========================================================= */

:root {
    --bg:          #140F1C;
    --bg-2:        #1B1330;
    --bg-3:        #0F0B16;
    --surface:     rgba(30, 23, 48, 0.62);
    --surface-2:   rgba(38, 29, 60, 0.55);
    --border:      rgba(231, 181, 61, 0.22);
    --border-soft: rgba(245, 241, 250, 0.09);

    --gold:   #E7B53D;
    --gold-2: #F6D67A;
    --gold-3: #C9912A;
    --grad-gold: linear-gradient(135deg, #F6D67A 0%, #E7B53D 52%, #C9912A 100%);

    --magenta: #FF4D9D;
    --teal:    #34E0C4;
    --amber:   #FFC04D;

    --text:  #F5F1FA;
    --muted: #AEA4BD;
    --ink:   #1A1326;

    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --shadow:      0 18px 44px -22px rgba(0, 0, 0, 0.75);
    --shadow-gold: 0 12px 40px -12px rgba(231, 181, 61, 0.45);

    --container: 1200px;
    --header-h: 74px;

    --ff-head: "Space Grotesk", system-ui, sans-serif;
    --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --t-fast: 150ms ease;
    --t: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Clip horizontal overflow at the root (controls the viewport scrollbar and
       clips the off-canvas menu) without making <body> a scroll container that
       would break the sticky sidebar. */
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 77, 157, 0.10), transparent 60%),
        radial-gradient(1000px 700px at -10% 10%, rgba(52, 224, 196, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 22%, var(--bg-3) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    max-width: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: var(--text); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 880px; }
.text-gold { color: var(--gold); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--gold); color: var(--ink); padding: 10px 16px;
    border-radius: 8px; font-weight: 700; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.eyebrow {
    display: inline-block; font-family: var(--ff-body); font-weight: 700;
    font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 10px;
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: 0.95rem;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
    white-space: nowrap; text-align: center;
}
.btn svg { flex: 0 0 auto; }
.btn-gold { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 46px -10px rgba(231, 181, 61, 0.6); }
.btn-outline { background: rgba(245, 241, 250, 0.04); color: var(--text); border-color: var(--border); }
.btn-outline:hover { color: var(--text); border-color: var(--gold); background: rgba(231, 181, 61, 0.10); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 11, 22, 0.72);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow var(--t), background var(--t);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -16px rgba(0,0,0,.8); background: rgba(15,11,22,.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; box-shadow: 0 0 18px -4px rgba(231,181,61,.6); }
.brand-name { font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.main-nav .nav-list { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-link {
    display: inline-block; color: var(--muted); font-weight: 600; font-size: 0.95rem;
    padding: 9px 14px; border-radius: 999px; transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--text); background: rgba(245,241,250,.05); }
.nav-link.is-active { color: var(--gold); background: rgba(231,181,61,.12); }
.nav-cta-item { margin-left: 6px; }
.nav-cta { padding: 10px 18px; }
.nav-close { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; border-radius: 10px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(8,5,14,.6); z-index: 90; backdrop-filter: blur(2px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 14s ease-in-out infinite; }
.orb--gold { width: 420px; height: 420px; background: radial-gradient(circle, rgba(231,181,61,.55), transparent 70%); top: -120px; left: 8%; }
.orb--magenta { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,77,157,.45), transparent 70%); top: 30px; right: 4%; animation-delay: -4s; }
.orb--teal { width: 300px; height: 300px; background: radial-gradient(circle, rgba(52,224,196,.35), transparent 70%); bottom: -120px; left: 40%; animation-delay: -8s; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(245,241,250,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,241,250,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-26px); } }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin-inline: auto; }
.hero-title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); margin: 0 0 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 720px; margin-inline: auto; }
.stat {
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 16px 10px; backdrop-filter: blur(8px);
}
.stat-num { display: block; font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: var(--gold); }
.stat-label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 8px 0 6px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
}
.trust-item svg { color: var(--gold); flex: 0 0 auto; }
.trust-item strong { display: block; font-family: var(--ff-head); font-size: 0.98rem; }
.trust-item span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Section heads ---------- */
.games-section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(26px, 4vw, 44px); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0; }
.section-underline { display: block; width: 80px; height: 4px; margin: 14px auto 0; border-radius: 999px; background: var(--grad-gold); box-shadow: var(--shadow-gold); }
.section-sub { color: var(--muted); margin: 16px auto 0; max-width: 560px; }

/* ---------- Game grid + cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.game-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.game-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow-gold); }
.game-card__media { position: relative; display: block; padding: 22px 22px 8px; }
.game-card__img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-3);
    transition: transform var(--t);
}
.game-card:hover .game-card__img { transform: scale(1.03); }
.game-card__body { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card__title { font-size: 1.06rem; margin: 0; }
.game-card__title a { color: var(--text); }
.game-card__title a:hover { color: var(--gold); }
.game-card__rating { display: flex; align-items: center; gap: 8px; }
.rating-num { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.game-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.game-card .btn-block { margin-top: 6px; }

/* tags & chips */
.tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--ff-head); font-weight: 700; font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px; color: #fff;
}
.tag--hot { background: linear-gradient(135deg, #FF4D9D, #C9266F); box-shadow: 0 6px 18px -6px rgba(255,77,157,.7); }
.tag--new { background: linear-gradient(135deg, var(--teal), #1FB39B); color: #06231e; box-shadow: 0 6px 18px -6px rgba(52,224,196,.6); }
.tag--static { position: static; }

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
    background: rgba(245,241,250,.05); border: 1px solid var(--border-soft); color: var(--muted);
}
.chip svg { color: var(--gold); }
.chip--bonus { color: var(--gold); border-color: var(--border); background: rgba(231,181,61,.08); }

/* stars */
.stars { display: inline-flex; gap: 1px; color: var(--gold); line-height: 0; }
.star--empty { color: rgba(231,181,61,.35); }
.star { display: inline-block; }

/* ---------- Prose ---------- */
.prose-section { padding: clamp(30px, 5vw, 56px) 0; }
.prose { padding: clamp(22px, 4vw, 40px); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.6em 0 0.6em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.prose h2::before { content: ""; display: inline-block; width: 10px; height: 22px; margin-right: 12px; vertical-align: -4px; border-radius: 4px; background: var(--grad-gold); }
.prose h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); color: var(--gold-2); }
.prose h3::before { content: ""; display: inline-block; width: 7px; height: 16px; margin-right: 10px; vertical-align: -2px; border-radius: 3px; background: var(--magenta); }
.prose > :first-child { margin-top: 0; }
.prose p { color: #E7E1EF; margin: 0 0 1.1em; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(231,181,61,.45); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose ol { counter-reset: pli; }
.prose li { position: relative; padding-left: 32px; margin-bottom: 10px; color: #E7E1EF; }
.prose ul li::before {
    content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 10px -2px var(--gold);
}
.prose ol li { counter-increment: pli; padding-left: 40px; }
.prose ol li::before {
    content: counter(pli); position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: .8rem;
    color: var(--ink); background: var(--grad-gold);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.86rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 600; }
.bc-sep { color: var(--muted); opacity: .5; }
.breadcrumb--onhero { padding: 0 0 14px; }

/* ---------- APK hero ---------- */
.apk-hero { position: relative; overflow: hidden; margin-top: 10px; }
.apk-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(38px) saturate(1.2); transform: scale(1.25); opacity: .5; z-index: 0; }
.apk-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,11,22,.6), rgba(15,11,22,.92) 70%, var(--bg)); }
.apk-hero-inner { position: relative; z-index: 2; display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(30px, 5vw, 56px) 20px; flex-wrap: wrap; }
.apk-hero-media { flex: 0 0 auto; }
.apk-hero-img {
    width: clamp(130px, 28vw, 196px); height: clamp(130px, 28vw, 196px); object-fit: cover;
    border-radius: var(--radius-lg); border: 2px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(231,181,61,.10), 0 24px 60px -18px rgba(231,181,61,.55);
}
.apk-hero-info { flex: 1 1 320px; min-width: 0; }
.apk-hero-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.version-badge {
    display: inline-flex; align-items: center; font-family: var(--ff-head); font-weight: 600; font-size: .78rem;
    padding: 5px 12px; border-radius: 999px; color: var(--text);
    background: rgba(245,241,250,.06); border: 1px solid var(--border-soft);
}
.apk-hero-title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 18px; }
.apk-stat-chips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 22px; max-width: 520px; }
.stat-chip {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.stat-chip svg { color: var(--gold); flex: 0 0 auto; }
.stat-chip span { display: flex; flex-direction: column; font-size: 0.74rem; color: var(--muted); line-height: 1.25; }
.stat-chip strong { font-family: var(--ff-head); font-size: 1rem; color: var(--text); }
.apk-hero-dl { box-shadow: var(--shadow-gold); }

/* ---------- APK layout ---------- */
.apk-body { padding: clamp(34px, 5vw, 60px) 0; }
.apk-layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.apk-content { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.apk-sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-card { padding: 22px; }
.side-title { font-size: 1.12rem; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 4px; }
.detail-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.detail-list span { color: var(--muted); }
.detail-list strong { font-family: var(--ff-head); text-align: right; }
.detail-rating { display: inline-flex; align-items: center; gap: 6px; }
.side-card .btn-block { margin-top: 16px; }
.warning-card { background: rgba(255,192,77,.07); border: 1px solid rgba(255,192,77,.28); border-radius: var(--radius); }
.warning-card-head { display: flex; align-items: center; gap: 8px; color: var(--amber); margin-bottom: 8px; font-family: var(--ff-head); }
.warning-card p { margin: 0; font-size: 0.86rem; color: #E7E1EF; }

/* related */
.games-grid--related { grid-template-columns: repeat(2, 1fr); }

/* ---------- Warning section ---------- */
.warning-section { padding: clamp(30px, 5vw, 60px) 0; }
.warning-panel {
    background: linear-gradient(135deg, rgba(255,192,77,.10), rgba(255,77,157,.06));
    border: 1px solid rgba(255,192,77,.30); border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px); text-align: center; max-width: 880px; margin-inline: auto;
    backdrop-filter: blur(8px);
}
.warning-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.warning-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.warning-panel p { color: #ECE6F2; max-width: 620px; margin: 0 auto 20px; }
.age-badge {
    display: inline-grid; place-items: center; font-family: var(--ff-head); font-weight: 700;
    width: 44px; height: 44px; border-radius: 50%; font-size: 0.92rem;
    color: var(--ink); background: var(--grad-gold); box-shadow: var(--shadow-gold);
}
.age-badge--lg { width: 56px; height: 56px; font-size: 1.05rem; }
.tip-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tip-chip {
    font-size: 0.84rem; font-weight: 600; padding: 7px 15px; border-radius: 999px;
    background: rgba(245,241,250,.06); border: 1px solid var(--border-soft); color: var(--text);
}

/* ---------- Page hero (static pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 54px); margin-top: 6px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(46px) saturate(1.2); transform: scale(1.3); opacity: .38; z-index: 0; }
.page-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,11,22,.55), rgba(15,11,22,.9) 75%, var(--bg)); }
.page-hero-inner { position: relative; z-index: 2; text-align: center; }
.page-hero .breadcrumb--onhero ol { justify-content: center; }
.page-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(30px, 5vw, 60px); border-top: 1px solid var(--border-soft); background: rgba(10,7,16,.6); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: clamp(40px, 5vw, 60px) 20px 30px; }
.footer-blurb { color: var(--muted); font-size: 0.9rem; margin: 14px 0 16px; max-width: 320px; }
.footer-title { font-size: 1rem; margin: 0 0 14px; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-warning { display: flex; align-items: center; gap: 12px; padding: 18px 20px; margin-inline: auto; border-top: 1px solid var(--border-soft); color: var(--amber); }
.footer-warning p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.footer-warning svg { flex: 0 0 auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 20px 30px; border-top: 1px solid var(--border-soft); }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Scroll to top ---------- */
.scroll-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--grad-gold); color: var(--ink);
    display: grid; place-items: center; box-shadow: var(--shadow-gold);
    opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 768px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .games-grid--related { grid-template-columns: repeat(3, 1fr); }
    .apk-stat-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .games-grid--related { grid-template-columns: repeat(5, 1fr); }
    .apk-layout { grid-template-columns: minmax(0, 1fr) 348px; }
    .apk-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
    .apk-stat-chips { grid-template-columns: repeat(4, 1fr); }
    .apk-stat-chips .stat-chip { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (min-width: 1440px) {
    :root { --container: 1280px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: 0; right: 0; z-index: 95;
        width: min(82vw, 320px); height: 100dvh;
        background: var(--bg-2); border-left: 1px solid var(--border);
        padding: 76px 22px 30px; transform: translateX(100%);
        transition: transform var(--t); box-shadow: -20px 0 50px -20px rgba(0,0,0,.8);
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-link { display: block; padding: 13px 16px; font-size: 1.02rem; }
    .nav-cta-item { margin: 10px 0 0; }
    .nav-cta { width: 100%; }
    .nav-close { display: inline-flex; position: absolute; top: 18px; right: 18px; background: none; border: 0; color: var(--text); padding: 6px; }
}
@media (min-width: 901px) { .nav-overlay { display: none !important; } }

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .apk-hero-inner { flex-direction: column; text-align: center; align-items: center; }
    .apk-hero-badges, .apk-stat-chips { justify-content: center; }
    .breadcrumb ol { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
