/* ==========================================================================
   OK Pak — APK & Game Directory
   Design system: immersive gaming / marketplace-directory
   Palette: primary #06B6D4 · secondary #67E8F9 · CTA #F97316 · bg #060D1A
   Type: Russo One (display) + Chakra Petch (body)
   ========================================================================== */

:root {
    --bg: #060D1A;
    --bg-alt: #0A1424;
    --surface: #0F1B30;
    --surface-2: #14233E;
    --border: #1F3354;
    --border-light: #2C456E;
    --primary: #06B6D4;
    --primary-soft: #22D3EE;
    --secondary: #67E8F9;
    --cta: #F97316;
    --cta-hover: #FB923C;
    --text: #E6EDF7;
    --muted: #9FB1CC;
    --gold: #FACC15;
    --green: #34D399;
    --font-display: 'Russo One', 'Arial Black', sans-serif;
    --font-body: 'Chakra Petch', 'Segoe UI', sans-serif;
    --shadow-card: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-pop: 0 4px 14px rgba(6, 182, 212, .35), 0 18px 48px rgba(0, 0, 0, .5);
    --glow-primary: 0 0 24px rgba(6, 182, 212, .45);
    --glow-cta: 0 0 24px rgba(249, 115, 22, .4);
    --radius: 16px;
    --radius-sm: 10px;
    --speed: 220ms;
    --header-h: 92px;
    /* z-scale */
    --z-nav: 50;
    --z-fab: 40;
    --z-badge: 10;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;            /* 16px floor everywhere */
    line-height: 1.65;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 .6em;
    letter-spacing: .015em;
}

p { margin: 0 0 1em; }

a { color: var(--secondary); text-decoration: none; transition: color var(--speed) ease; }
a:hover { color: #A5F3FC; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

button { font-family: inherit; }

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

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

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--primary);
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: .95rem;
    letter-spacing: .03em;
    padding: .8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background var(--speed) ease, color var(--speed) ease,
                border-color var(--speed) ease, box-shadow var(--speed) ease,
                transform var(--speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0E7490);
    color: #fff;
    box-shadow: var(--glow-primary);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); color: #fff; transform: translateY(-2px); }

.btn-ghost {
    background: rgba(103, 232, 249, .08);
    border-color: var(--border-light);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--secondary); color: #fff; background: rgba(103, 232, 249, .14); }

.btn-download {
    background: linear-gradient(135deg, var(--cta), #EA580C);
    color: #fff;
    font-size: 1.05rem;
    padding: 1rem 1.9rem;
    box-shadow: var(--glow-cta);
}
.btn-download:hover { background: linear-gradient(135deg, var(--cta-hover), var(--cta)); color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

.btn-card {
    background: rgba(6, 182, 212, .16);
    border-color: var(--border-light);
    color: var(--secondary);
    font-size: .82rem;
    padding: .6rem 1rem;
    justify-content: center;
    width: 100%;
}
.btn-card:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-card svg { transition: transform var(--speed) ease; }
.btn-card:hover svg { transform: translateX(3px); }

.btn-nav-cta {
    background: linear-gradient(135deg, var(--cta), #EA580C);
    color: #fff;
    font-size: .85rem;
    padding: .62rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(249, 115, 22, .35);
}
.btn-nav-cta:hover { background: linear-gradient(135deg, var(--cta-hover), var(--cta)); color: #fff; }

/* ----------------------------------------------------------------- header
   Floating HUD capsule: detached pill with gradient ring, icon nav links,
   glow underline on the active page, compacts on scroll. */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    padding-top: 14px;
    pointer-events: none;            /* gaps around the pill stay click-through */
}

.header-shell { position: relative; }

.header-pill {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
    padding: .4rem .55rem .4rem 1rem;
    border-radius: 999px;
    background: rgba(8, 17, 32, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .45);
    transition: background var(--speed) ease, box-shadow var(--speed) ease;
}

/* 1px gradient ring drawn with a masked overlay */
.header-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(100deg, rgba(6, 182, 212, .75), rgba(103, 232, 249, .22) 35%,
                rgba(103, 232, 249, .22) 65%, rgba(249, 115, 22, .65));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.is-scrolled .header-pill {
    background: rgba(5, 12, 24, .95);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .6), 0 0 28px rgba(6, 182, 212, .22);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(103, 232, 249, .35), rgba(6, 182, 212, .08) 70%);
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .35), 0 0 16px rgba(6, 182, 212, .45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: .04em;
}
.brand-name span { color: var(--secondary); }
.brand-sub {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-foot { display: none; }

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem .95rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    font-size: .92rem;
    transition: color var(--speed) ease, background var(--speed) ease;
}
.nav-ico { display: inline-flex; line-height: 0; opacity: .85; }
.nav-link:hover { color: #fff; background: rgba(103, 232, 249, .1); }
.nav-link.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(6, 182, 212, .3), rgba(6, 182, 212, .1));
}
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--cta));
    box-shadow: 0 0 10px rgba(103, 232, 249, .9);
}
.nav-cta-row { margin-left: .35rem; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, .14);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text);
    line-height: 0;
    transition: border-color var(--speed) ease, color var(--speed) ease, background var(--speed) ease;
}
.nav-toggle:hover { border-color: var(--secondary); color: #fff; background: rgba(6, 182, 212, .28); }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

main { padding-top: var(--header-h); }

/* ------------------------------------------------------------------- hero
   Split stage: copy left, fanned game-icon collage right, marquee ticker. */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 0; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-beam {
    position: absolute;
    width: 60%;
    height: 220px;
    filter: blur(80px);
    opacity: .4;
    will-change: transform;
}
.hero-beam-1 { left: -10%; top: -40px; transform: rotate(-12deg); background: linear-gradient(90deg, #06B6D4, transparent 80%); }
.hero-beam-2 { right: -15%; bottom: 40px; transform: rotate(10deg); background: linear-gradient(270deg, #F97316, transparent 80%); opacity: .25; }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(103, 232, 249, .07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(103, 232, 249, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 40% 35%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 75% at 40% 35%, #000 30%, transparent 78%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 3rem;
    padding-bottom: 4rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid var(--border-light);
    background: rgba(6, 182, 212, .12);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    margin-bottom: 1.6rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }

.grad-text {
    background: linear-gradient(92deg, var(--secondary), var(--cta-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub { max-width: 540px; margin: 0 0 2rem; color: var(--muted); font-size: 1.08rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-proof li {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: 0 1.4rem;
    border-left: 1px solid var(--border);
}
.hero-proof li:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.hero-proof span { font-size: .8rem; color: var(--muted); }

/* ---- fanned collage stage */
.hero-stage { position: relative; height: 430px; }

.stage-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .3), transparent 65%);
    filter: blur(30px);
}
.stage-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border: 1.5px dashed rgba(103, 232, 249, .35);
    border-radius: 50%;
    animation: spin 50s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stage-card {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6), 0 0 32px rgba(6, 182, 212, .3);
    outline: 2px solid rgba(103, 232, 249, .45);
    outline-offset: -2px;
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card-1 { width: 160px; height: 160px; transform: translate(-150%, -42%) rotate(-12deg); opacity: .92; }
.stage-card-2 { width: 225px; height: 225px; transform: translate(-50%, -52%) rotate(3deg); z-index: 2; }
.stage-card-3 { width: 160px; height: 160px; transform: translate(50%, -38%) rotate(12deg); opacity: .92; }

.stage-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(8, 17, 32, .88);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: .45rem .95rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
    z-index: 3;
    animation: floaty 5s ease-in-out infinite;
}
.chip-bonus    { right: 4%;  top: 12%;  color: var(--green);  animation-delay: 0s; }
.chip-bonus svg{ color: var(--green); }
.chip-rating   { left: 2%;   top: 58%;  color: var(--gold);   animation-delay: 1.4s; }
.chip-verified { right: 12%; bottom: 6%; color: var(--secondary); animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---- marquee ticker */
.hero-ticker {
    position: relative;
    border-block: 1px solid var(--border);
    background: rgba(10, 20, 36, .75);
    overflow: hidden;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    width: max-content;
    padding: .75rem 0;
    animation: ticker 36s linear infinite;
}
.tick-item {
    font-family: var(--font-display);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.tick-item em { font-style: normal; color: var(--secondary); }
.tick-sep {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--cta);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(249, 115, 22, .7);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- trust bar */
.trust-bar { background: var(--bg-alt); border-block: 1px solid var(--border); }

.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
}
.trust-item { display: flex; align-items: center; gap: .85rem; color: var(--secondary); }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: var(--text); font-size: .98rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }

/* --------------------------------------------------------------- sections */
.games-section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cta-hover);
    margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; margin-bottom: .35rem; }
.section-subtitle { color: var(--muted); margin-bottom: 1rem; }
.section-line {
    width: 76px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cta));
    box-shadow: var(--glow-primary);
    margin-bottom: 2.4rem;
}

/* ------------------------------------------------------------------ cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.apk-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform var(--speed) ease, border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.apk-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-pop); }

.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.apk-card:hover .card-media img { transform: scale(1.05); }

.card-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    padding: .3rem .8rem;
}
.card-media .card-badge { position: absolute; top: .75rem; left: .75rem; z-index: var(--z-badge); }
.badge-new { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 0 14px rgba(16, 185, 129, .5); }
.badge-hot { background: linear-gradient(135deg, var(--cta), #EA580C); box-shadow: 0 0 14px rgba(249, 115, 22, .5); }
/* Detail page badges sit in normal flow — never absolute. */
.badge-static { position: static; }

.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }

.card-title { font-size: 1.02rem; margin: 0; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--secondary); }

.card-meta { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.card-rating { color: var(--gold); font-weight: 600; }
.card-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-light); }

.stars { display: inline-flex; gap: 1px; }
.star-bg { fill: #28405F; }
.star-fg { fill: var(--gold); }

.card-bonus {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--green);
}

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

/* -------------------------------------------------------------- breadcrumb */
.breadcrumb { padding: 1.1rem 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.breadcrumb li { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border-light); }
.breadcrumb a { color: var(--secondary); }
.breadcrumb [aria-current] { color: var(--text); }

/* --------------------------------------------------------------- APK hero */
.apk-hero { position: relative; overflow: hidden; margin-top: 1rem; }

.apk-hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(42px) saturate(1.2);
    opacity: .35;
}
.apk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 26, .55), rgba(6, 13, 26, .92));
}

.apk-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 0;
}

.apk-hero-art { flex: 0 0 auto; position: relative; }
.apk-hero-art img {
    width: 200px;
    height: 200px;
    border-radius: 28px;
    border: 2px solid rgba(103, 232, 249, .6);
    box-shadow: 0 0 0 6px rgba(6, 182, 212, .18), 0 0 44px rgba(6, 182, 212, .55), 0 24px 48px rgba(0, 0, 0, .6);
}

.apk-hero-info h1 { font-size: clamp(1.45rem, 3.2vw, 2.2rem); color: #fff; max-width: 30ch; }

.apk-hero-badges { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }

.version-badge {
    font-size: .8rem;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid var(--border-light);
    background: rgba(6, 182, 212, .14);
    border-radius: 999px;
    padding: .3rem .85rem;
}

.stat-chips { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 0 0 1.8rem; padding: 0; }
.stat-chips li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(15, 27, 48, .85);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .88rem;
    color: var(--muted);
}
.stat-chips svg { color: var(--secondary); flex: 0 0 auto; }
.stat-chips strong { color: #fff; }

/* ---------------------------------------------------- detail page layout */
.apk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2.2rem;
    padding: 3rem 0;
    align-items: start;
}

.apk-article, .static-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem 2.4rem;
    box-shadow: var(--shadow-card);
    overflow-wrap: break-word;
}

.apk-article h2, .static-article h2 {
    color: #fff;
    font-size: 1.45rem;
    margin: 1.8em 0 .7em;
    padding-bottom: .45em;
    border-bottom: 1px solid var(--border);
}
.apk-article h2:first-child, .static-article h2:first-child { margin-top: 0; }

.apk-article h3, .static-article h3 { color: var(--secondary); font-size: 1.15rem; margin: 1.6em 0 .6em; }

.apk-article p, .static-article p { color: var(--text); }

.apk-article li, .static-article li { margin-bottom: .55em; }
.apk-article li::marker { color: var(--cta-hover); }
.static-article li::marker { color: var(--cta-hover); }

.apk-article strong, .static-article strong { color: #fff; }

/* ---------------------------------------------------------------- sidebar */
.apk-sidebar { position: sticky; top: calc(var(--header-h) + 1.2rem); display: flex; flex-direction: column; gap: 1.2rem; }

.sidebar-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-card);
}
.sidebar-card h2 {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
}

.details-list { margin: 0; }
.details-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: .92rem;
}
.details-list div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; color: #fff; font-weight: 600; display: flex; align-items: center; gap: .4rem; text-align: right; }
.details-list .hl { color: var(--green); }

.warning-card { border-color: rgba(251, 191, 36, .35); }
.warning-card h2 { color: var(--gold); border-bottom-color: rgba(251, 191, 36, .25); }
.warning-card svg { color: var(--gold); }
.warning-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------- related games */
.related-games { padding: 3.5rem 0 4rem; background: var(--bg-alt); border-block: 1px solid var(--border); }

.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }

.apk-card--compact .card-body { padding: .85rem .9rem 1rem; }
.apk-card--compact .card-title { font-size: .92rem; }
.apk-card--compact .card-meta { font-size: .8rem; }

/* ---------------------------------------------------- responsible gambling */
.responsible-gambling { padding: 3.5rem 0 4.5rem; }

.rg-box {
    background: linear-gradient(160deg, rgba(251, 191, 36, .07), rgba(249, 115, 22, .06)), var(--surface);
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-card);
}
.rg-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; color: var(--gold); }
.rg-head h2 { margin: 0; font-size: 1.3rem; color: var(--gold); }
.rg-box > p, .rg-box .container > p { color: var(--muted); max-width: 75ch; }

.rg-tips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.rg-tips li {
    font-size: .84rem;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .08);
    border-radius: 999px;
    padding: .35rem .9rem;
}

/* ------------------------------------------------------------- page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }

.page-hero-bg {
    position: absolute;
    inset: -60px;
    background: url('/assets/images/logo-512.png') center / 340px repeat;
    filter: blur(46px) saturate(1.3);
    opacity: .22;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 26, .5), rgba(6, 13, 26, .94));
}

.page-hero-inner { position: relative; z-index: 1; padding: 4rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: #fff; max-width: 26ch; margin-inline: auto; }

.static-layout { padding: 3rem 0 4rem; max-width: 900px; }

/* ------------------------------------------------------- home content */
.home-content { padding: 4.5rem 0; }

.content-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0 2rem;
}
.content-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.content-card {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.content-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.content-card h3 { margin: 0 0 .55em; }
.content-card h3::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    margin-bottom: .65rem;
    background: linear-gradient(90deg, var(--primary), var(--cta));
}
.content-card p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- footer
   CTA banner overlapping a watermarked footer body. */
.site-footer { margin-top: 2rem; }

.footer-cta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(6, 182, 212, .16), rgba(249, 115, 22, .12)), var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.8rem 2.2rem;
    box-shadow: var(--shadow-pop);
    transform: translateY(46px);
}
.footer-cta-copy h2 { font-size: 1.45rem; color: #fff; margin-bottom: .25rem; }
.footer-cta-copy p { margin: 0; color: var(--muted); }

.footer-main {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-top: calc(46px + 3rem);
}

.footer-watermark {
    position: absolute;
    left: 50%;
    bottom: -2.8rem;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(7rem, 22vw, 17rem);
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(103, 232, 249, .09);
    pointer-events: none;
    user-select: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 2.2rem;
    padding-bottom: 2.5rem;
}

.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 34ch; }
.footer-18 span {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--cta-hover);
    border: 1.5px solid var(--cta);
    border-radius: 6px;
    padding: .1rem .45rem;
    margin-right: .5rem;
    font-size: .85rem;
}

.footer-col h2 {
    position: relative;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
    padding-bottom: .55rem;
}
.footer-col h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cta));
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--muted); font-size: .94rem; }
.footer-col a:hover { color: var(--secondary); }

.footer-bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid var(--border);
    padding: 1.3rem 0 1.6rem;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--muted); }

/* -------------------------------------------------------------- scroll top */
.scroll-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: var(--z-fab);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0E7490);
    color: #fff;
    box-shadow: var(--glow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--speed) ease, transform var(--speed) ease, visibility var(--speed);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); }

/* -------------------------------------------------------------- animation */
.js .fade-item { opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 420ms ease; }
.js .fade-item.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .fade-item { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .apk-layout { grid-template-columns: 1fr; }
    .apk-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-stage { height: 360px; max-width: 560px; margin-inline: auto; width: 100%; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .brand-sub { display: none; }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        pointer-events: auto;
        background: #0C1729;
        border: 1px solid var(--border-light);
        border-radius: 22px;
        box-shadow: 0 28px 60px rgba(0, 0, 0, .65), 0 0 30px rgba(6, 182, 212, .15);
        padding: .7rem .7rem .9rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--speed) ease, transform var(--speed) ease, visibility var(--speed);
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }

    .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav-link { padding: .7rem .8rem; font-size: 1.02rem; border-radius: 14px; gap: .8rem; }
    .nav-link.is-active::after { display: none; }
    .nav-ico {
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(6, 182, 212, .14);
        box-shadow: inset 0 0 0 1px var(--border);
        color: var(--secondary);
    }
    .nav-cta-row { margin: .45rem 0 0; }
    .btn-nav-cta { justify-content: center; width: 100%; padding: .85rem 1.2rem; font-size: .95rem; }
    .nav-foot {
        display: block;
        margin: .8rem .4rem 0;
        font-size: .78rem;
        color: var(--muted);
    }
    .nav-foot span {
        display: inline-block;
        font-family: var(--font-display);
        color: var(--cta-hover);
        border: 1.5px solid var(--cta);
        border-radius: 6px;
        padding: 0 .4rem;
        margin-right: .4rem;
    }

    :root { --header-h: 82px; }

    .hero { padding: 3.2rem 0 0; }
    .hero-proof li { padding: 0 1rem; }
    .hero-stage { height: 290px; }
    .stage-ring { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
    .stage-glow { width: 280px; height: 280px; }
    .stage-card-2 { width: 170px; height: 170px; }
    .stage-card-1, .stage-card-3 { width: 120px; height: 120px; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); }

    .footer-cta { padding: 1.4rem 1.25rem; justify-content: center; text-align: center; }

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

    .apk-hero-inner { flex-direction: column; text-align: center; padding: 2.5rem 0; }
    .apk-hero-badges, .stat-chips, .apk-hero-actions { justify-content: center; }
    .apk-hero-info h1 { margin-inline: auto; }
    .apk-hero-art img { width: 150px; height: 150px; }

    .apk-article, .static-article { padding: 1.5rem 1.25rem; }
    .content-cards, .content-cards.cols-3 { grid-template-columns: 1fr; }
    .rg-box { padding: 1.5rem 1.25rem; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 1.8rem); }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .card-body { padding: .8rem .8rem 1rem; }
    .btn-card { font-size: .76rem; padding: .55rem .6rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem .5rem; }
    .hero-proof li { border-left: 0; padding: 0; }
}

@media (min-width: 1440px) {
    .container { width: min(1280px, 100% - 3rem); }
}
