/* ==========================================================================
   Pak Super Casino — Design system translated from Google Stitch generation
   Theme: "Emerald & Gold" dark luxury casino (Corporate Modern + Glassmorphism)
   Fonts: Playfair Display (display/headlines) + Plus Jakarta Sans (body/labels)
   v2 — photo hero, floating pill header, spotlight/ranked sections, rich content
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0f172a;
  --bg-deep: #0c1120;
  --surface: #1e293b;
  --surface-high: #273449;
  --surface-glass: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Emerald (primary) */
  --emerald: #064e3b;
  --emerald-bright: #10b981;
  --emerald-soft: #95d3ba;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  /* Gold (secondary — CTAs, VIP) */
  --gold: #d97707;
  --gold-bright: #f59e0b;
  --gold-soft: #ffb77d;
  --gold-glow: rgba(217, 119, 6, 0.3);

  /* Ruby (tertiary — HOT tags, alerts) */
  --ruby: #991b1b;
  --ruby-soft: #ffb4ab;

  /* Text */
  --text: #e2e8f0;
  --text-muted: #a7b4c4;
  --text-faint: #7c8ba1;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Depth */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(217, 119, 6, 0.3);

  /* Rhythm (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --container: 1200px;
  --header-h: 108px; /* accent line + floating pill shell + offset */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, #1e293b 0%, var(--bg) 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-soft); }
a, button, [role="button"], input[type="submit"], summary { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn svg { flex: 0 0 auto; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 0 18px var(--gold-glow);
}
.btn-gold:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 0 26px rgba(217, 119, 6, 0.5);
}
.btn-glass {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--border-strong);
  color: #fff;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, #0a6b52 100%);
  color: #d6f5e8;
  border-color: rgba(149, 211, 186, 0.25);
  box-shadow: 0 0 18px var(--emerald-glow);
}
.btn-emerald:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 26px var(--emerald-glow); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Header v2 — floating glass pill with gradient accent line
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: 15px;
  background: transparent;
  pointer-events: none;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-bright) 0%, var(--gold-bright) 50%, var(--ruby) 100%);
}
.header-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: rgba(12, 17, 32, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px 8px 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand img {
  width: 58px; height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg-deep);
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.65), 0 0 20px var(--gold-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--emerald-soft); background: rgba(255, 255, 255, 0.06); }
.nav-link.active {
  color: #d6f5e8;
  background: linear-gradient(135deg, var(--emerald) 0%, #0a6b52 100%);
  border-color: rgba(149, 211, 186, 0.3);
  box-shadow: 0 0 14px var(--emerald-glow);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  padding: 12px;
  line-height: 0;
}
.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 (homepage) — AI-generated casino photo background
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 var(--space-8);
  text-align: center;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.55) 45%, var(--bg) 100%),
    radial-gradient(ellipse 55% 45% at 50% 10%, rgba(6, 78, 59, 0.35), transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 380px; height: 380px; left: -120px; top: 10%; background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%); }
.hero-orb-2 { width: 300px; height: 300px; right: -80px; top: 30%; background: radial-gradient(circle, rgba(245,158,11,0.28), transparent 70%); animation-delay: -6s; }
.hero-orb-3 { width: 260px; height: 260px; left: 40%; bottom: -100px; background: radial-gradient(circle, rgba(153,27,27,0.25), transparent 70%); animation-delay: -11s; }
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -40px, 0) scale(1.15); }
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(153, 27, 27, 0.35);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: var(--ruby-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(153, 27, 27, 0); }
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  max-width: 720px;
  margin: 0 auto;
}
.hero-stat { padding: 0 var(--space-2); }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-bright);
}
.hero-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-3) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.trust-icon {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-icon.t-emerald { background: rgba(6, 78, 59, 0.45); color: var(--emerald-soft); }
.trust-icon.t-gold { background: rgba(217, 119, 6, 0.18); color: var(--gold-bright); }
.trust-icon.t-ruby { background: rgba(153, 27, 27, 0.3); color: var(--ruby-soft); }
.trust-icon.t-slate { background: rgba(148, 163, 184, 0.15); color: #9fb6d4; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0 var(--space-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-6); }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-soft);
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(149, 211, 186, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.section-tag.tag-gold { color: var(--gold-soft); background: rgba(217, 119, 6, 0.14); border-color: rgba(255, 183, 125, 0.28); }
.section-tag.tag-ruby { color: var(--ruby-soft); background: rgba(153, 27, 27, 0.3); border-color: rgba(255, 180, 171, 0.28); }
.section-title { font-size: clamp(26px, 3.6vw, 36px); }
.section-sub { color: var(--text-muted); margin: 0; }
.section-line {
  width: 72px; height: 3px;
  margin: var(--space-2) auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--gold-bright));
}

/* ==========================================================================
   Game cards (standard grid card)
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(217, 119, 6, 0.3);
}
.game-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-deep);
  display: block;
}
.game-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.game-card:hover .game-card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
}
.badge-new { background: linear-gradient(135deg, var(--emerald-bright), var(--emerald)); box-shadow: 0 0 12px var(--emerald-glow); }
.badge-hot { background: linear-gradient(135deg, #dc2626, var(--ruby)); box-shadow: 0 0 12px rgba(220, 38, 38, 0.4); animation: badge-pulse 2.4s ease-in-out infinite; }
.card-bonus {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-2);
  flex: 1 1 auto;
}
.game-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.game-card-title a { color: #fff; }
.game-card-title a:hover { color: var(--gold-soft); }
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold-bright); }
.star-empty { color: rgba(255, 255, 255, 0.18); }
.star-half { color: var(--gold-bright); opacity: 0.55; }
.rating-num { color: var(--text-muted); font-weight: 600; }
.card-downloads { display: inline-flex; align-items: center; gap: 5px; }
.card-downloads svg { width: 14px; height: 14px; }
.game-card-actions { margin-top: auto; padding-top: 4px; }

/* ---------- All Games: dense 6-column grid ---------- */
.games-grid.grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
}
.grid-six .game-card { border-radius: var(--radius-md); }
.grid-six .game-card-body { padding: 12px; gap: 6px; }
.grid-six .game-card-title { font-size: 15px; }
.grid-six .game-card-meta { font-size: 12px; }
.grid-six .stars svg { width: 13px; height: 13px; }
.grid-six .card-badge { font-size: 10px; padding: 4px 9px; top: 8px; left: 8px; }
.grid-six .card-bonus { font-size: 11px; padding: 3px 9px; right: 8px; bottom: 8px; }
.grid-six .btn-sm { padding: 8px 10px; font-size: 12px; }

/* ==========================================================================
   Newest Games — spotlight layout (featured card + mini strip)
   ========================================================================== */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  background: linear-gradient(120deg, var(--surface) 0%, #1a2537 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.featured-card:hover { box-shadow: var(--shadow-lift); border-color: rgba(217, 119, 6, 0.3); }
.featured-media {
  position: relative;
  display: block;
  background: var(--bg-deep);
  min-height: 100%;
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: var(--space-4);
}
.featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-soft);
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(149, 211, 186, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}
.featured-title { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.featured-title a { color: #fff; }
.featured-title a:hover { color: var(--gold-soft); }
.featured-desc { color: var(--text-muted); margin: 0; }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-faint);
}
.featured-bonus {
  font-weight: 800;
  color: var(--gold-soft);
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(255, 183, 125, 0.28);
  padding: 4px 14px;
  border-radius: 999px;
}
.featured-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.mini-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-card);
}
.mini-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.mini-card-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-card:hover .mini-card-name { color: var(--gold-soft); }
.mini-card-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-faint);
}
.mini-card-rating svg { width: 12px; height: 12px; color: var(--gold-bright); }
.mini-card > a::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   Hot Games — ranked leaderboard layout
   ========================================================================== */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  counter-reset: hotrank;
}
.rank-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  counter-increment: hotrank;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rank-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 14px rgba(153, 27, 27, 0.25);
}
.rank-num {
  flex: 0 0 auto;
  width: 52px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-num::before { content: counter(hotrank, decimal-leading-zero); }
.rank-thumb {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1 1 auto; min-width: 0; }
.rank-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-name a { color: #fff; }
.rank-name a:hover { color: var(--gold-soft); }
.rank-name a::after { content: ""; position: absolute; inset: 0; }
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}
.rank-bonus {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(255, 183, 125, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}
.rank-arrow {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 27, 27, 0.25);
  color: var(--ruby-soft);
  border: 1px solid rgba(255, 180, 171, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.rank-card:hover .rank-arrow { background: rgba(153, 27, 27, 0.5); transform: translateX(3px); }
.rank-arrow svg { width: 18px; height: 18px; }

/* ==========================================================================
   Rich content section (homepage article)
   ========================================================================== */
.rich-lead { text-align: center; max-width: 860px; margin: 0 auto var(--space-6); }
.rich-lead h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: var(--space-2); }
.rich-lead p { font-size: 17px; color: var(--text-muted); }
.rich-section { margin-top: var(--space-8); }
.rich-head { max-width: 760px; margin-bottom: var(--space-4); }
.rich-head h2 { font-size: clamp(22px, 3vw, 30px); position: relative; padding-left: 18px; }
.rich-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--emerald-bright));
}
.rich-head p { color: var(--text-muted); margin: 0; }

.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-2);
}
.icon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.icon-card:hover { transform: translateY(-4px); border-color: rgba(217, 119, 6, 0.3); box-shadow: var(--shadow-card); }
.icon-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 78, 59, 0.45);
  color: var(--gold-bright);
  border: 1px solid rgba(149, 211, 186, 0.2);
  margin-bottom: 14px;
}
.icon-card .ic svg { width: 24px; height: 24px; }
.icon-card h3 { font-size: 17px; margin-bottom: 8px; }
.icon-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

.media-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.media-card:hover { transform: translateY(-4px); border-color: rgba(217, 119, 6, 0.3); box-shadow: var(--shadow-card); }
.media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card-icon {
  width: 100%;
  aspect-ratio: 16 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(6, 78, 59, 0.6), transparent),
    linear-gradient(120deg, #17233a 0%, var(--bg-deep) 100%);
  color: var(--gold-bright);
}
.media-card-icon svg { width: 34px; height: 34px; }
.media-card-body { padding: var(--space-3); }
.media-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.media-card-body p { color: var(--text-muted); font-size: 14px; margin: 0; }

.rich-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}
.rich-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.rich-split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9 / 8; }
.rich-split.rev .rich-split-img { order: 2; }
.rich-split .rich-head { margin-bottom: var(--space-2); }
.row-cards { display: flex; flex-direction: column; gap: 10px; }
.row-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.row-card:hover { border-color: rgba(149, 211, 186, 0.3); transform: translateX(4px); }
.row-card .rc-dot {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 183, 125, 0.22);
  margin-top: 2px;
}
.row-card .rc-dot svg { width: 17px; height: 17px; }
.row-card h3 { font-size: 16px; margin-bottom: 4px; }
.row-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  margin-bottom: var(--space-3);
}
.banner-card img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.banner-card .banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 30%, rgba(15, 23, 42, 0.92) 100%);
}
.banner-card h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.banner-card p { color: var(--text-muted); margin: 0; max-width: 640px; }

.quote-panel {
  position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 8% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(120deg, rgba(6, 78, 59, 0.5) 0%, var(--surface) 60%);
  border: 1px solid rgba(149, 211, 186, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
}
.quote-panel::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 22px;
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  color: rgba(245, 158, 11, 0.25);
}
.quote-panel h2 { font-size: clamp(22px, 3vw, 28px); }
.quote-panel p { color: var(--text-muted); max-width: 900px; }
.quote-panel p:last-child { margin-bottom: 0; }

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 120% at 50% -20%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(120deg, #1a2537 0%, var(--bg-deep) 100%);
  border: 1px solid rgba(255, 183, 125, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: var(--text-muted); max-width: 760px; margin: 0 auto var(--space-3); }
.cta-band .featured-actions { justify-content: center; margin: 0; }

.warning-panel {
  background: rgba(120, 53, 15, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.warning-panel .rich-head h2::before { background: linear-gradient(180deg, var(--gold-bright), var(--ruby)); }
.warning-panel .icon-card { background: rgba(30, 41, 59, 0.55); }
.warning-panel .icon-card .ic { background: rgba(245, 158, 11, 0.12); color: var(--gold-bright); border-color: rgba(245, 158, 11, 0.3); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(149, 211, 186, 0.3); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chev {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 78, 59, 0.45);
  color: var(--emerald-soft);
  transition: transform 0.25s ease;
}
.faq-item summary .faq-chev svg { width: 15px; height: 15px; }
.faq-item[open] summary .faq-chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; }
.faq-item .faq-body p { color: var(--text-muted); margin: 0; }

/* ---------- Warning / responsible gambling ---------- */
.warning-section {
  margin: var(--space-8) 0 0;
  padding: var(--space-6) 0;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(120, 53, 15, 0.08));
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
.warning-box { max-width: 860px; margin: 0 auto; text-align: center; }
.warning-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.warning-icon svg { width: 30px; height: 30px; }
.warning-box h2 { color: var(--gold-soft); font-size: 24px; }
.warning-box p { color: var(--text-muted); font-size: 15px; }
.warning-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-3);
}
.warning-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ==========================================================================
   Footer v2 — gradient crest, 4 columns, large brand
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: var(--space-8);
  background:
    radial-gradient(ellipse 40% 70% at 8% 0%, rgba(6, 78, 59, 0.35), transparent 60%),
    radial-gradient(ellipse 35% 60% at 95% 10%, rgba(217, 119, 6, 0.08), transparent 60%),
    var(--bg-deep);
  padding: var(--space-8) 0 var(--space-3);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-bright) 0%, var(--gold-bright) 50%, var(--ruby) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-3);
}
.footer-brand img {
  width: 68px; height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg);
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.55), 0 0 24px var(--gold-glow);
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-text .fb-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.footer-brand-text .fb-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-about { color: var(--text-faint); font-size: 14px; max-width: 380px; }
.footer-18chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ruby-soft);
  background: rgba(153, 27, 27, 0.25);
  border: 1px solid rgba(255, 180, 171, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
}
.footer-18chip svg { width: 16px; height: 16px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-2);
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--gold-bright));
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-faint);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--emerald-bright);
  opacity: 0.5;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.footer-col a:hover { color: var(--emerald-soft); transform: translateX(3px); }
.footer-col a:hover::before { opacity: 1; background: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ruby-soft);
  font-weight: 700;
}
.footer-18 svg { width: 18px; height: 18px; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 183, 125, 0.4);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; }

/* ==========================================================================
   APK detail hero v2 — glass panel over generated silk background
   ========================================================================== */
.apk-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--space-3)) 0 var(--space-6);
}
.apk-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.apk-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.55) 50%, var(--bg) 100%);
}
.apk-hero .container { position: relative; z-index: 2; }
.breadcrumb { padding: 0 0 var(--space-2); }
.breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--text-faint); opacity: 0.5; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb [aria-current] { color: var(--emerald-soft); font-weight: 600; }

.apk-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  background: rgba(12, 17, 32, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.apk-panel-media { position: relative; }
.apk-panel-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 34px var(--gold-glow), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.apk-panel-content { min-width: 0; }
.apk-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
/* New/Hot badge on detail page: static position by design (never absolute) */
.apk-badge {
  position: static;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
}
.version-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-soft);
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(149, 211, 186, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
}
.apk-panel h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.apk-tagline { color: var(--text-muted); max-width: 640px; margin-bottom: var(--space-3); }
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-bottom: var(--space-3);
}
.stat-tile {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}
.stat-tile svg { width: 20px; height: 20px; color: var(--gold-bright); margin: 0 auto 6px; display: block; }
.stat-tile-value { display: block; font-weight: 800; font-size: 15px; color: #fff; }
.stat-tile-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}
.stat-tile .stars { justify-content: center; display: inline-flex; }
.stat-tile .stars svg { width: 13px; height: 13px; margin: 0; display: inline-block; }
.apk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- APK layout: content + sidebar ---------- */
.apk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-4);
  padding-top: var(--space-4);
}
.article {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.article h2 {
  font-size: 24px;
  color: var(--gold-soft);
  margin: 1.6em 0 0.6em;
}
.article h3 {
  font-size: 19px;
  color: var(--emerald-soft);
  margin: 1.4em 0 0.5em;
}
.article p { color: var(--text-muted); overflow-wrap: break-word; }
.article ul, .article ol { color: var(--text-muted); padding-left: 24px; margin: 0 0 1.2em; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--gold-bright); }

.apk-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--space-2));
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.side-card h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-2);
}
.side-rows { display: flex; flex-direction: column; }
.side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.side-row:last-child { border-bottom: none; }
.side-row dt { color: var(--text-faint); margin: 0; }
.side-row dd { color: var(--text); font-weight: 600; margin: 0; text-align: right; }
.side-warning {
  background: rgba(120, 53, 15, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.side-warning h2 { color: var(--gold-bright); display: flex; align-items: center; gap: 8px; }
.side-warning h2 svg { width: 16px; height: 16px; }
.side-warning p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---------- Related games ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}

/* ---------- Static page hero + content ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-6);
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: -40px;
  background-size: 42%;
  background-position: center;
  background-repeat: repeat;
  filter: blur(30px) brightness(0.4) saturate(1.1);
  transform: scale(1.1);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.65) 60%, var(--bg) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.page-hero .page-title, .page-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  margin-bottom: 0;
}
.static-content { max-width: 860px; margin: 0 auto; padding-top: var(--space-4); }
.static-content .article { padding: var(--space-4); }

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .games-grid.grid-six { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mini-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apk-layout { grid-template-columns: minmax(0, 1fr); }
  .apk-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-grid { grid-template-columns: minmax(0, 1fr); }
  .media-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .apk-panel { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header { padding-top: 11px; }
  .header-shell { border-radius: var(--radius-lg); }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 18px; }
  .brand-tagline { font-size: 9px; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) - 6px);
    left: var(--space-2); right: var(--space-2);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(12, 17, 32, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 14px 18px; font-size: 14px; text-align: center; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-stat-value { font-size: 20px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .games-grid.grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .featured-card { grid-template-columns: minmax(0, 1fr); }
  .featured-media img { aspect-ratio: 16 / 9; }
  .featured-body { padding: var(--space-3); }
  .mini-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .mini-card { flex: 0 0 132px; scroll-snap-align: start; }

  .rank-card { padding: 12px 14px; }
  .rank-num { width: 40px; font-size: 28px; }
  .rank-thumb { width: 60px; height: 60px; }
  .rank-name { font-size: 16px; }

  .rich-split { grid-template-columns: minmax(0, 1fr); }
  .rich-split.rev .rich-split-img { order: 0; }
  .rich-split-img img { aspect-ratio: 16 / 9; }
  .media-cards { grid-template-columns: minmax(0, 1fr); }
  .banner-card img { aspect-ratio: 16 / 9; }

  .apk-panel { grid-template-columns: minmax(0, 1fr); text-align: center; padding: var(--space-3); }
  .apk-panel-media { max-width: 220px; margin: 0 auto; }
  .apk-hero-badges, .apk-actions { justify-content: center; }
  .apk-tagline { margin-left: auto; margin-right: auto; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .article { padding: var(--space-3); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid.grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card-title { font-size: 15px; }
  .game-card-body { padding: 12px; }
  .btn { padding: 12px 22px; }
  .hero-actions .btn { width: 100%; }
  .trust-item { font-size: 13px; flex-direction: column; text-align: center; }
  .brand-tagline { display: none; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
