/* ==========================================================================
   DK11 Casino — APK Directory
   Design system: "Midnight Royale" — deep plum-black base, royal gold +
   emerald accents, magenta glow. Custom, project-specific look.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --bg:            #0b0710;
  --bg-2:          #120b1a;
  --surface:       #1a1024;
  --surface-2:     #211531;
  --border:        rgba(245, 196, 81, 0.14);
  --border-soft:   rgba(255, 255, 255, 0.08);

  --gold:          #f5c451;
  --gold-bright:   #ffd875;
  --emerald:       #12d18e;
  --emerald-deep:  #0aa873;
  --magenta:       #ff4d8d;

  --text:          #f4eefb;
  --text-muted:    #b6a9c9;
  --text-dim:      #8a7da0;

  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.35);
  --shadow:        0 10px 30px rgba(0,0,0,.45);
  --shadow-gold:   0 8px 30px rgba(245,196,81,.22);
  --shadow-emerald:0 8px 30px rgba(18,209,142,.22);

  --grad-gold:     linear-gradient(135deg, #ffd875 0%, #f5c451 45%, #e0a92e 100%);
  --grad-emerald:  linear-gradient(135deg, #22e39c 0%, #12d18e 50%, #0aa873 100%);
  --grad-hero:     radial-gradient(1200px 600px at 15% -10%, rgba(255,77,141,.22), transparent 60%),
                   radial-gradient(1000px 500px at 90% 0%, rgba(18,209,142,.18), transparent 55%),
                   radial-gradient(900px 700px at 50% 120%, rgba(245,196,81,.14), transparent 60%);

  --font-head:     'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw:          1200px;
  --nav-h:         72px;
  --transition:    200ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(800px 400px at 100% 0%, rgba(255,77,141,.06), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(18,209,142,.05), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1rem; }

/* focus visibility for keyboard nav */
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.center { text-align: center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* section heading block */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); background: rgba(245,196,81,.08);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 18px;
}
.section-tag svg { width: 15px; height: 15px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .subtitle { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.deco-line { width: 72px; height: 4px; margin: 20px auto 0; border-radius: 4px; background: var(--grad-gold); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-gold); --btn-fg: #2a1e05;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: var(--shadow-gold); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(245,196,81,.35); color: #2a1e05; filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn-emerald { --btn-bg: var(--grad-emerald); --btn-fg: #04241a; box-shadow: var(--shadow-emerald); }
.btn-emerald:hover { box-shadow: 0 12px 34px rgba(18,209,142,.35); color: #04241a; }
.btn-ghost {
  --btn-fg: var(--text); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(11,7,16,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.footer-brand .brand img { height: 42px; }
@media (max-width: 375px) { .brand img { height: 28px; } }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  color: var(--text-muted); font-weight: 500; font-size: .95rem;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--gold); background: rgba(245,196,81,.10); }
.nav-links a.nav-cta { color: #2a1e05; background: var(--grad-gold); font-weight: 600; box-shadow: var(--shadow-gold); }
.nav-links a.nav-cta:hover { color: #2a1e05; filter: brightness(1.05); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.04); border-radius: 12px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); z-index: 0; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 12s ease-in-out infinite; }
.hero-orbs span:nth-child(1){ width:260px;height:260px;background:var(--magenta);top:-40px;left:8%; }
.hero-orbs span:nth-child(2){ width:300px;height:300px;background:var(--emerald);bottom:-80px;right:6%;animation-delay:-4s; }
.hero-orbs span:nth-child(3){ width:200px;height:200px;background:var(--gold);top:30%;right:30%;animation-delay:-8s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-26px) } }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.stat {
  flex: 1 1 150px; max-width: 200px; padding: 20px 18px; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-soft); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.015); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 30px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ic { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(18,209,142,.10); border: 1px solid rgba(18,209,142,.25); color: var(--emerald); }
.trust-item .ic svg { width: 24px; height: 24px; }
.trust-item .t { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.trust-item .s { font-size: .84rem; color: var(--text-muted); }

/* ---------- APK card grid ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid.cols-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.apk-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.apk-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow); }
.apk-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.apk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.4,0,.2,1); }
.apk-card:hover .apk-card__media img { transform: scale(1.06); }
.apk-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #2a1e05; background: var(--grad-gold); box-shadow: var(--shadow-sm);
}
.apk-card__badge.hot { background: linear-gradient(135deg,#ff7a5c,#ff4d8d); color: #fff; }
.apk-card__rating {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(11,7,16,.78); color: var(--gold-bright); backdrop-filter: blur(4px);
}
.apk-card__rating svg { width: 14px; height: 14px; fill: var(--gold); }
.apk-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.apk-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
.apk-card__title a { color: var(--text); }
.apk-card__title a:hover { color: var(--gold); }
.apk-card__desc { font-size: .88rem; color: var(--text-muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apk-card__meta { display: flex; gap: 14px; font-size: .78rem; color: var(--text-dim); margin-bottom: 14px; }
.apk-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.apk-card__meta svg { width: 14px; height: 14px; opacity: .8; }
.apk-card__foot { margin-top: auto; }
.apk-card__foot .btn { padding: 12px 14px; font-size: .92rem; }

/* compact card (related, 5-col) */
.cols-5 .apk-card__body { padding: 13px 13px 15px; }
.cols-5 .apk-card__title { font-size: .98rem; }
.cols-5 .apk-card__desc, .cols-5 .apk-card__meta { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------- APK detail hero ---------- */
.apk-hero { position: relative; margin-top: 14px; padding: 46px 0; border-radius: var(--radius-lg); overflow: hidden; }
.apk-hero__bg { position: absolute; inset: 0; z-index: 0; }
.apk-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(120%); transform: scale(1.2); opacity: .5; }
.apk-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,7,16,.72), rgba(11,7,16,.92)); }
.apk-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 0 28px; }
.apk-hero__art { width: 200px; height: 200px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(245,196,81,.12), var(--shadow-gold); }
.apk-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.apk-hero__meta { min-width: 0; }
.apk-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
/* badge uses static position per spec (never absolute here) */
.badge {
  position: static; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.badge.new { color: #04241a; background: var(--grad-emerald); }
.badge.hot { color: #fff; background: linear-gradient(135deg,#ff7a5c,#ff4d8d); }
.badge.version { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border-soft); }
.apk-hero__title { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 0 0 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-soft); border-radius: 12px;
  font-size: .9rem;
}
.chip svg { width: 17px; height: 17px; color: var(--gold); }
.chip b { font-family: var(--font-head); }
.chip .k { color: var(--text-dim); font-size: .78rem; }

/* ---------- Content + sidebar ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
.article { min-width: 0; font-size: 1.02rem; }
.article p { color: var(--text-muted); margin: 0 0 1.1rem; }

/* --- varied content layout system --- */
.article h2 {
  display: flex; align-items: center; gap: 13px; margin: 0 0 .7em;
  color: var(--text); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25;
}
.c-ico { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(245,196,81,.10); border: 1px solid var(--border); color: var(--gold); }
.c-ico svg { width: 22px; height: 22px; }
.c-ico--safety { background: rgba(18,209,142,.10); border-color: rgba(18,209,142,.3); color: var(--emerald); }
.c-ico--tips   { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.32); color: #c4b5fd; }
.c-ico--faq    { background: rgba(255,77,141,.10); border-color: rgba(255,77,141,.3); color: var(--magenta); }
.article h3, .c-h3 { margin-top: 1.4em; color: var(--gold-bright); font-size: 1.18rem; }

.c-lead { font-size: 1.16rem; line-height: 1.6; color: var(--text);
  border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 1.6rem; }

/* section blocks — alternating tint for rhythm */
.c-sec { margin: 26px 0; }
.c-sec--tint { background: rgba(255,255,255,.025); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px 26px; }

/* feature grid */
.c-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 4px 0 1.3rem; }
.c-feature { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; color: var(--text-muted);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-soft);
  border-radius: 12px; transition: border-color var(--transition), transform var(--transition); }
.c-feature:hover { border-color: var(--border); transform: translateY(-2px); }
.c-feature svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--emerald); }

/* numbered steps */
.c-steps { counter-reset: step; list-style: none; margin: 4px 0 1.3rem; padding: 0; display: grid; gap: 14px; }
.c-steps > li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.c-step-num { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #2a1e05;
  background: var(--grad-gold); box-shadow: var(--shadow-gold); }
.c-step-num::before { content: counter(step); }
.c-step-txt { color: var(--text-muted); padding-top: 8px; }

/* check lists */
.c-list { list-style: none; margin: 4px 0 1.3rem; padding: 0; display: grid; gap: 11px; }
.c-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.c-list li svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--emerald); }
.c-list--gold li svg { color: var(--gold); }

/* callout panels */
.c-callout { border-radius: var(--radius-lg); padding: 26px 28px; margin: 26px 0; border: 1px solid var(--border-soft); }
.c-callout h2 { margin-top: 0; }
.c-callout--gold    { background: linear-gradient(160deg, rgba(245,196,81,.10), rgba(245,196,81,.02)); border-color: rgba(245,196,81,.3); }
.c-callout--emerald { background: linear-gradient(160deg, rgba(18,209,142,.10), rgba(18,209,142,.02)); border-color: rgba(18,209,142,.3); }
.c-callout--violet  { background: linear-gradient(160deg, rgba(167,139,250,.10), rgba(167,139,250,.02)); border-color: rgba(167,139,250,.32); }

/* FAQ accordion */
.c-faq { border: 1px solid var(--border-soft); border-radius: 12px; margin: 12px 0; background: rgba(255,255,255,.02); overflow: hidden; }
.c-faq summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-head); font-weight: 600; color: var(--text); transition: color var(--transition); }
.c-faq summary:hover { color: var(--gold); }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-head); font-size: 1.4rem; color: var(--gold); transition: transform var(--transition); }
.c-faq[open] summary::after { transform: rotate(45deg); }
.c-faq-body { padding: 0 20px 18px; }
.c-faq-body p:last-child { margin-bottom: 0; }

.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }
.side-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 1.05rem; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.side-card h3 svg { width: 19px; height: 19px; color: var(--gold); }
.spec-list { display: grid; gap: 11px; }
.spec-list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--border-soft); font-size: .92rem; }
.spec-list .row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list .k { color: var(--text-dim); }
.spec-list .v { font-family: var(--font-head); font-weight: 600; color: var(--text); text-align: right; }
.side-card.bonus { border-color: rgba(18,209,142,.3); background: linear-gradient(180deg, rgba(18,209,142,.08), var(--surface)); }
.side-card.warn { border-color: rgba(255,77,141,.28); background: linear-gradient(180deg, rgba(255,77,141,.07), var(--surface)); }
.side-card.warn p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.side-card.warn h3 svg { color: var(--magenta); }
.stars { display: inline-flex; gap: 2px; }
.stars .star { fill: rgba(255,255,255,.18); }
.stars .star.full { fill: var(--gold); }
.stars .star.half { fill: url(#halfg); fill: var(--gold); opacity: .55; }

/* ---------- Warning / responsible gaming section ---------- */
.warn-section { position: relative; }
.warn-box {
  background: linear-gradient(135deg, rgba(255,77,141,.08), rgba(245,196,81,.05));
  border: 1px solid rgba(255,77,141,.25); border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.warn-box .warn-ic { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,77,141,.12); border: 1px solid rgba(255,77,141,.3); color: var(--magenta); }
.warn-box .warn-ic svg { width: 32px; height: 32px; }
.warn-box h2 { margin-bottom: 12px; }
.warn-box p { color: var(--text-muted); max-width: 720px; margin: 0 auto 12px; }
.tip-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tip-chips .tc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border-soft); font-size: .88rem; }
.tip-chips .tc svg { width: 16px; height: 16px; color: var(--emerald); }
.age-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; color: var(--magenta); border: 2px solid var(--magenta); border-radius: 10px; padding: 4px 10px; margin-bottom: 6px; }

/* ---------- Page hero (static pages) ---------- */
.page-hero { position: relative; padding: 66px 0; overflow: hidden; text-align: center; border-radius: var(--radius-lg); margin-top: 14px; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(130%); transform: scale(1.25); opacity: .35; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(245,196,81,.14), transparent 60%), linear-gradient(180deg, rgba(11,7,16,.7), rgba(11,7,16,.92)); }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); margin: 0; }

/* long-form article for static pages */
.prose { max-width: 820px; margin: 0 auto; font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; padding-left: 16px; position: relative; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 4px; background: var(--grad-gold); }
.prose h3 { margin-top: 1.4em; color: var(--gold-bright); }
.prose p { color: var(--text-muted); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.3rem; }
.prose ul li { position: relative; padding-left: 28px; color: var(--text-muted); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 340px; }
.footer-col h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: .85rem; }
.footer-bottom .age { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .age b { color: var(--magenta); border: 1.5px solid var(--magenta); border-radius: 6px; padding: 1px 6px; font-family: var(--font-head); }

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border);
  background: var(--grad-gold); color: #2a1e05; cursor: pointer; box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { filter: brightness(1.05); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .card-grid, .card-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .card-grid, .card-grid.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card.full-span { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 54px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11,7,16,.97); backdrop-filter: blur(16px);
    padding: 16px 20px 24px; border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%); transition: transform 260ms cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card-grid, .card-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .apk-hero__inner { grid-template-columns: 1fr; text-align: center; padding: 0 18px; }
  .apk-hero__art { width: 150px; height: 150px; margin: 0 auto; }
  .apk-hero__badges, .chip-row { justify-content: center; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .warn-box { padding: 28px 20px; }
}

@media (max-width: 560px) {
  .card-grid, .card-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-features { grid-template-columns: 1fr; }
  .c-sec--tint, .c-callout { padding: 20px 18px; }
}

@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .card-grid, .card-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { max-width: none; }
}

/* utility */
.section.pt0 { padding-top: 0; }
