/* ==========================================================================
   Yo Games Casino - "Royal Green Ledger" design system
   Deep casino-felt green base, single warm gold accent, mono numerals.
   Fonts: Outfit (display) / Hanken Grotesk (body) / JetBrains Mono (numbers)
   Radius system: panels & cards 16px, buttons & inputs 10px, chips pill.
   ========================================================================== */

:root {
    --surface-0: #0a0f0d;
    --surface: #0f1412;
    --surface-1: #181d1a;
    --surface-2: #1c211e;
    --surface-3: #262b29;
    --border: #242c27;
    --border-strong: #37413b;
    --text: #dfe4e0;
    --text-muted: #a9b4ac;
    --text-faint: #7c877f;
    --gold: #d4af37;
    --gold-bright: #f2ca50;
    --gold-dim: rgba(212, 175, 55, 0.45);
    --gold-tint: rgba(212, 175, 55, 0.08);
    --on-gold: #2a2000;
    --red: #a3241d;
    --red-soft: #ffb4ab;
    --shadow-card: 0 12px 32px rgba(5, 8, 7, 0.55);
    --shadow-deep: 0 24px 64px rgba(5, 8, 7, 0.65);
    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius-panel: 16px;
    --radius-btn: 10px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

p { margin: 0 0 1em; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

a, button, [role="button"], input[type="submit"] { cursor: pointer; }

.mono { font-family: var(--font-mono); }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--gold);
    color: var(--on-gold);
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-btn) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-gold); }

/* --------------------------------------------------------------------------
   Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    padding: 12px 22px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
                border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { flex-shrink: 0; }

.btn-primary {
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}
.btn-primary:hover {
    background: var(--gold-bright);
    color: var(--on-gold);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-bright);
    border-color: var(--gold-dim);
}
.btn-outline:hover {
    background: var(--gold-tint);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
}
.chip-new {
    color: var(--gold-bright);
    background: var(--gold-tint);
    border-color: var(--gold-dim);
}
.chip-hot {
    color: #ffc9c3;
    background: rgba(163, 36, 29, 0.22);
    border-color: rgba(255, 180, 171, 0.35);
}
.chip-version { color: var(--text); }

/* --------------------------------------------------------------------------
   Age band + header
   -------------------------------------------------------------------------- */
.age-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--red);
    color: #ffe9e7;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 13, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand img { border-radius: 10px; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.brand-name em {
    font-style: normal;
    color: var(--gold-bright);
}
.brand:hover .brand-name { color: var(--text); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a:not(.btn) {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-btn);
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.site-nav a:not(.btn):hover {
    color: var(--text);
    background: var(--surface-2);
}
.site-nav a.active {
    color: var(--gold-bright);
    background: var(--gold-tint);
}
.nav-cta-item { margin-left: 10px; }

.nav-toggle {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text);
    padding: 9px;
    line-height: 0;
}
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Homepage hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(52rem 30rem at 82% 18%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(40rem 26rem at 8% 88%, rgba(37, 45, 40, 0.85), transparent 65%),
        linear-gradient(160deg, #0c1210 0%, var(--surface) 55%, #0b100e 100%);
    animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { opacity: 0.85; transform: scale(1); }
    to   { opacity: 1;    transform: scale(1.04); }
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
    background: var(--gold-tint);
    border: 1px solid var(--gold-dim);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.hero-copy h1 {
    font-size: clamp(1.7rem, 3.1vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.hero-stats { display: flex; gap: 28px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-bright);
}
.hero-stat span {
    font-size: 0.82rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

/* Floating collage of real game icons */
.hero-collage {
    position: relative;
    min-height: 380px;
}
.collage-item {
    position: absolute;
    width: clamp(84px, 8.5vw, 132px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 22%;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-deep);
    animation: floaty 7s ease-in-out infinite;
}
.collage-1 { top: 6%;  left: 34%; width: clamp(120px, 11vw, 168px); z-index: 3; animation-delay: 0s; }
.collage-2 { top: 0;   left: 4%;  animation-delay: -1.5s; }
.collage-3 { top: 26%; right: 2%; animation-delay: -3s; }
.collage-4 { bottom: 8%; left: 0;  animation-delay: -2.2s; }
.collage-5 { bottom: 0;  left: 38%; width: clamp(100px, 9.5vw, 148px); z-index: 2; animation-delay: -4.4s; }
.collage-6 { bottom: 14%; right: 6%; animation-delay: -5.1s; }
.collage-7 { top: 44%; left: 16%; animation-delay: -6s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold-bright);
}
.trust-item h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.trust-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Section headers + game grids
   -------------------------------------------------------------------------- */
.games-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.games-section-alt { background: var(--surface-0); }

.section-head { margin-bottom: 34px; max-width: 60ch; }
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}
.section-sub {
    color: var(--text-muted);
    margin-bottom: 0;
}
.section-head::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 18px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    overflow: hidden;
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-card);
}

.card-media {
    display: block;
    background: radial-gradient(120% 90% at 50% 0%, var(--surface-3), var(--surface-2));
    padding: 20px 20px 0;
}
.card-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 18px 18px;
    flex-grow: 1;
}
.card-title {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold-bright); }

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.star-empty { color: var(--border-strong); }

.card-downloads {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-faint);
    font-size: 0.85rem;
}
.card-downloads span { font-family: var(--font-mono); }

.card-body .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Homepage article + prose
   -------------------------------------------------------------------------- */
.home-article {
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.prose { max-width: 76ch; }
.prose h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 0.7em;
}
.prose h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    color: var(--gold-bright);
    margin-top: 1.8em;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
}
.prose h3 {
    font-size: 1.15rem;
    margin-top: 1.5em;
    color: var(--text);
}
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul {
    margin: 0 0 1.2em;
    padding-left: 0;
    list-style: none;
}
.prose ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.52em;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--gold-tint);
    border: 1px solid var(--gold-dim);
}

.article-title {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    border-left: none !important;
    padding-left: 0 !important;
    color: var(--text) !important;
    margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { padding: 18px 20px 0; }
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.breadcrumb li { color: var(--text-faint); }
.breadcrumb li + li::before {
    content: '/';
    margin-right: 10px;
    color: var(--border-strong);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb [aria-current="page"] { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   APK detail hero
   -------------------------------------------------------------------------- */
.apk-hero {
    position: relative;
    margin-top: 18px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.apk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(10, 15, 13, 0.86), rgba(10, 15, 13, 0.96));
    -webkit-backdrop-filter: blur(26px) saturate(130%);
    backdrop-filter: blur(26px) saturate(130%);
}
.apk-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.apk-hero-media { flex-shrink: 0; }
.apk-hero-media img {
    width: clamp(150px, 18vw, 220px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12), var(--shadow-deep);
}

.apk-hero-info { min-width: 0; }
.apk-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.apk-hero-info h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.stat-chips li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--gold-bright);
}
.stat-chips strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
}
.stat-chips span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 0.03em;
}

.apk-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-android {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   APK content + sidebar
   -------------------------------------------------------------------------- */
.apk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.apk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 92px;
    align-self: start;
}

.sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 22px 22px 14px;
}
.sidebar-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--gold-bright);
}

.details-list { margin: 0; }
.details-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
}
.details-list > div + div { border-top: 1px solid var(--border); }
.details-list dt {
    color: var(--text-faint);
    font-size: 0.88rem;
}
.details-list dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: right;
}
.details-list dd.mono { font-family: var(--font-mono); font-weight: 500; }
.details-list dd.highlight {
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-weight: 700;
}
.details-rating dd {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-warning {
    background: rgba(163, 36, 29, 0.10);
    border-color: rgba(255, 180, 171, 0.25);
    padding-bottom: 18px;
}
.sidebar-warning h2 { color: var(--red-soft); }
.sidebar-warning p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Related games
   -------------------------------------------------------------------------- */
.related-section {
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 20px 14px;
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-card);
}
.related-card img {
    width: 84px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
}
.related-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.related-card:hover h3 { color: var(--gold-bright); }
.related-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   Responsible gambling section
   -------------------------------------------------------------------------- */
.warning-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.warning-panel {
    background: linear-gradient(150deg, rgba(212, 175, 55, 0.07), rgba(163, 36, 29, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--radius-panel);
    padding: clamp(24px, 4vw, 40px);
}
.warning-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--red);
    color: #ffe9e7;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 7px 15px;
}
.warning-head h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    margin: 0;
}
.warning-panel > p {
    color: var(--text-muted);
    max-width: 85ch;
}
.warning-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
.warning-tips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--text);
}
.warning-tips svg { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Static page hero + content
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
}
.page-hero-bg {
    position: absolute;
    inset: -40px;
    background-image: url('/assets/images/logo.webp');
    background-size: 340px;
    background-position: 88% 40%;
    background-repeat: no-repeat;
    filter: blur(46px) saturate(115%);
    opacity: 0.5;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 15, 13, 0.92) 30%, rgba(10, 15, 13, 0.65));
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 26ch;
    margin: 0;
}

.page-content { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand p {
    color: var(--text-faint);
    font-size: 0.92rem;
    margin: 16px 0 0;
    max-width: 40ch;
}
.footer-nav h2, .footer-note h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-nav a {
    color: var(--text-faint);
    font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-note p {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin: 0;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    padding-bottom: 20px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-faint);
}
.footer-age { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   Scroll to top
   -------------------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--on-gold);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover { background: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Reveal animation (JS-gated so content is never hidden without JS)
   -------------------------------------------------------------------------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg, .collage-item { animation: none; }
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn, .game-card, .related-card, .scroll-top { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apk-layout { grid-template-columns: minmax(0, 1fr); }
    .apk-sidebar { position: static; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-collage { min-height: 300px; max-width: 560px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 13, 0.97);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        display: none;
        padding: 10px 20px 18px;
    }
    body.nav-open .site-nav { display: block; }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .site-nav a:not(.btn) { display: block; padding: 12px 14px; }
    .nav-cta-item { margin: 8px 0 0; }
    .nav-cta-item .btn { width: 100%; }

    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .apk-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .card-media { padding: 14px 14px 0; }
    .card-body { padding: 13px 14px 15px; }
    .card-title { font-size: 1rem; }

    .hero-actions { gap: 20px; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .trust-grid { grid-template-columns: 1fr; gap: 16px; }
    .hero-collage { min-height: 240px; }
    .collage-item { width: clamp(64px, 18vw, 92px); }
    .collage-1 { width: clamp(88px, 24vw, 120px); }
    .collage-5 { width: clamp(76px, 20vw, 104px); }
    .stat-chips li { padding: 8px 12px; }
    .hero-stats { gap: 20px; }
    .btn-lg { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
