/* =====================================================================
   Yono Rummy Casino — Retro-Futurism / Synthwave design system
   Palette: deep navy #0F0F23 · violet #7C3AED · light violet #A78BFA
            rose CTA #F43F5E · text #E2E8F0
   Fonts:   Russo One (display) · Chakra Petch (body)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --bg:            #0F0F23;
  --bg-2:          #16162e;
  --surface:       #1b1b38;
  --surface-2:     #222247;
  --primary:       #7C3AED;
  --primary-2:     #A78BFA;
  --cta:           #F43F5E;
  --cta-2:         #fb7185;
  --text:          #E2E8F0;
  --muted:         #aab1d6;
  --muted-2:       #8b92bd;
  --border:        rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.4);

  --glow-primary: 0 0 18px rgba(124, 58, 237, 0.55);
  --glow-cta:     0 0 18px rgba(244, 63, 94, 0.55);

  --radius:   14px;
  --radius-lg: 22px;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* z-index scale */
  --z-nav: 50;
  --z-overlay: 40;
  --z-top: 30;
}

/* ---- 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; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle synthwave grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.20), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(244, 63, 94, 0.14), transparent 40%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cta); }

h1, h2, h3 { font-family: 'Russo One', Impact, sans-serif; line-height: 1.2; font-weight: 400; }

::selection { background: var(--cta); color: #fff; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--hot { background: rgba(244, 63, 94, 0.04); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cta-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 12px; color: #fff; text-shadow: var(--glow-primary); }
.section-subtitle { color: var(--muted); margin: 0 auto; max-width: 60ch; }
.deco-line {
  width: 90px; height: 4px; margin: 22px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  border-radius: 4px; box-shadow: var(--glow-primary);
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Chakra Petch', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: .5px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  min-height: 48px;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--glow-primary); }
.btn--primary:hover { color: #fff; box-shadow: 0 0 26px rgba(124, 58, 237, .8); }
.btn--cta { background: linear-gradient(135deg, var(--cta), var(--cta-2)); color: #fff; box-shadow: var(--glow-cta); }
.btn--cta:hover { color: #fff; box-shadow: 0 0 30px rgba(244, 63, 94, .85); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { color: #fff; border-color: var(--primary-2); background: rgba(124,58,237,.18); }
.btn--block { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

/* ---- Header — full-width solid bar (search + scroll-shrink) ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(13, 13, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Neon gradient underline running edge-to-edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 18%, var(--cta) 50%, var(--primary) 82%, transparent);
  opacity: .85; transition: opacity .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 26, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.site-header.is-scrolled::after { opacity: 1; box-shadow: 0 0 16px rgba(124, 58, 237, .8); }

.header-inner {
  display: flex; align-items: center; gap: 22px;
  height: 86px; transition: height .3s ease;
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 38px; }

.primary-nav { margin-right: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-block; color: var(--muted); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; letter-spacing: .3px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after { transform: scaleX(1); box-shadow: var(--glow-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* Search */
.hsearch { position: relative; width: 230px; transition: width .25s ease; }
.hsearch__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; display: flex; }
.hsearch__icon svg { width: 18px; height: 18px; }
.hsearch__input {
  width: 100%; height: 44px; padding: 0 16px 0 40px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hsearch__input::placeholder { color: var(--muted-2); }
.hsearch__input:focus { outline: none; border-color: var(--primary-2); background: rgba(124, 58, 237, .12); box-shadow: var(--glow-primary); }
.hsearch:focus-within { width: 280px; }

.hsearch__results {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, 86vw);
  background: rgba(18, 18, 38, .98); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); max-height: 60vh; overflow-y: auto;
  z-index: var(--z-overlay);
}
.search-result { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--text); cursor: pointer; }
.search-result:hover, .search-result.is-highlighted { background: rgba(124, 58, 237, .22); color: #fff; }
.search-result img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.search-result .sr-name { font-weight: 600; }
.search-result mark { background: transparent; color: var(--cta-2); font-weight: 700; }
.search-empty { padding: 16px 14px; color: var(--muted-2); text-align: center; font-size: .92rem; }

.header-cta { padding: 12px 22px; min-height: 44px; }
.header-cta svg { width: 18px; height: 18px; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Tablet: tuck the search a bit */
@media (max-width: 1024px) {
  .hsearch { width: 180px; }
  .hsearch:focus-within { width: 220px; }
}

/* Mobile: collapse nav + search into a sliding panel */
@media (max-width: 860px) {
  /* Two-row bar via grid: [brand _ toggle] / [search spanning] */
  .header-inner {
    display: grid; height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . toggle" "search search search";
    align-items: center; column-gap: 12px; row-gap: 10px; padding-block: 14px;
  }
  .site-header.is-scrolled .header-inner { height: auto; padding-block: 10px; }
  .brand { grid-area: brand; }
  .nav-toggle { display: inline-flex; grid-area: toggle; }
  .header-actions { grid-area: search; display: block; }
  .header-cta { display: none; }
  .hsearch { width: 100%; max-width: none; min-width: 0; }
  .hsearch:focus-within { width: 100%; }

  .primary-nav {
    position: fixed; inset: auto 0 auto 0; top: var(--header-h, 124px);
    background: rgba(11, 11, 26, .98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-strong);
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: var(--z-overlay);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; }
  .nav-link { padding: 14px 16px; font-size: 1.08rem; border-radius: 12px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: rgba(124, 58, 237, .22); }
  .nav-menu .header-cta-mobile {
    display: flex; justify-content: center; margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .hsearch__input { font-size: 16px; } /* avoid iOS zoom */
}

/* ---- Hero (home) ----------------------------------------------------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .sun {
  position: absolute; left: 50%; top: 60px; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--cta) 0%, var(--primary) 55%, transparent 72%);
  filter: blur(8px); opacity: .55;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary-2); border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 18px; color: #fff; text-shadow: 0 0 24px rgba(124,58,237,.6); }
.hero-title .accent { color: var(--cta); text-shadow: var(--glow-cta); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Russo One', sans-serif; font-size: 2rem; color: #fff; text-shadow: var(--glow-primary); }
.hero-stat .label { font-size: .85rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1.5px; }
@media (max-width: 600px) {
  .hero-stats { gap: 18px 28px; }
  .hero-stat { flex: 0 0 40%; }
  .hero-stat .num { font-size: 1.7rem; }
}

/* ---- Trust bar ------------------------------------------------------- */
.trust-bar { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); }
.trust-item svg { width: 28px; height: 28px; color: var(--primary-2); flex: none; }
.trust-item strong { color: #fff; display: block; font-family: 'Russo One', sans-serif; font-size: 1.05rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- APK card grid --------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .card-grid { grid-template-columns: 1fr; } }

/* Related games: 5 columns desktop · 3 tablet · 2 mobile */
.card-grid--related { grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .card-grid--related { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .card-grid--related { grid-template-columns: repeat(2, 1fr); } }

.apk-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.apk-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 14px 40px rgba(124,58,237,.28); }
.apk-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; }
.apk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.apk-card:hover .apk-card__media img { transform: scale(1.05); }
.apk-card__badge {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Russo One', sans-serif; font-size: .7rem; letter-spacing: 1px;
  padding: 5px 11px; border-radius: 999px; color: #fff; text-transform: uppercase;
}
.badge--new { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--glow-primary); }
.badge--hot { background: linear-gradient(135deg, var(--cta), var(--cta-2)); box-shadow: var(--glow-cta); }
.apk-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.apk-card__title { font-size: 1.15rem; margin: 0; }
.apk-card__title a { color: #fff; }
.apk-card__title a:hover { color: var(--cta); }
.apk-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; color: var(--muted); }
.apk-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.apk-card__meta svg { width: 15px; height: 15px; color: var(--primary-2); }
.apk-card__desc { font-size: .9rem; color: var(--muted-2); margin: 0; flex: 1; }
.apk-card__foot { margin-top: auto; }

/* ---- Stars ----------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; color: var(--cta); vertical-align: middle; }
.stars .star--empty { color: var(--muted-2); }

/* ---- Breadcrumb ------------------------------------------------------ */
.breadcrumb { padding: 20px 0 0; font-size: .9rem; color: var(--muted-2); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--muted-2); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--primary-2); }
.breadcrumb--center { padding-top: 0; margin-bottom: 18px; }
.breadcrumb--center ol { justify-content: center; }

/* ---- APK detail — app-store style ----------------------------------- */
/* New/Hot badge — MUST be static (never absolute) on the detail page */
.apk-badge {
  position: static;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Russo One', sans-serif; font-size: .72rem; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; padding: 6px 13px; border-radius: 999px;
}

/* App-store hero */
.appstore-hero {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center;
  margin-top: 16px; padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.appstore-hero__icon {
  width: 180px; height: 180px; border-radius: 28px; overflow: hidden;
  border: 2px solid var(--border-strong); box-shadow: 0 0 40px rgba(124,58,237,.45);
}
.appstore-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.ah-name { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 10px 0 4px; color: #fff; text-shadow: var(--glow-primary); }
.ah-dev { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.ah-free { color: var(--primary-2); font-weight: 700; }
.ah-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ah-rating__val { font-family: 'Russo One', sans-serif; color: #fff; font-size: 1.05rem; }
.ah-rating__count { color: var(--muted-2); font-size: .9rem; }
.ah-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0 0 20px; padding: 0; }
.ah-meta li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .92rem; }
.ah-meta svg { width: 18px; height: 18px; color: var(--primary-2); }
.ah-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ah-download { font-size: 1.05rem; padding: 15px 30px; }
.ah-safe { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; }
.ah-safe svg { width: 18px; height: 18px; color: var(--primary-2); }

@media (max-width: 680px) {
  .appstore-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; }
  .appstore-hero__icon { width: 132px; height: 132px; border-radius: 22px; }
  .ah-rating, .ah-meta, .ah-actions { justify-content: center; }
}

/* Quick stats strip */
.appstats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 680px) { .appstats { grid-template-columns: repeat(2, 1fr); } }
.appstat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 18px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.appstat__ic { color: var(--primary-2); display: flex; }
.appstat__ic svg { width: 24px; height: 24px; }
.appstat__v { font-family: 'Russo One', sans-serif; color: #fff; font-size: 1.15rem; }
.appstat__k { color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }

/* About / content wrap */
.app-wrap { max-width: 880px; }
.app-heading { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; color: #fff; margin: 0 0 18px; }
.app-heading:not(:first-child) { margin-top: 44px; }
.app-heading svg { width: 24px; height: 24px; color: var(--primary-2); }

/* Information grid */
.app-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .app-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .app-info-grid { grid-template-columns: 1fr; } }
.info-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.03);
}
.info-cell .k { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); }
.info-cell .v { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Notice */
.app-notice {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 36px;
  padding: 20px 22px; border: 1px solid rgba(244,63,94,.4); background: rgba(244,63,94,.08); border-radius: var(--radius);
}
.app-notice__ic { flex: none; color: var(--cta-2); }
.app-notice__ic svg { width: 30px; height: 30px; }
.app-notice strong { color: var(--cta-2); display: block; margin-bottom: 6px; font-family: 'Russo One', sans-serif; font-size: 1.05rem; }
.app-notice p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Sticky download bar */
.dl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  background: rgba(11, 11, 26, 0.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-strong); box-shadow: 0 -10px 30px rgba(0,0,0,.45);
  transform: translateY(110%); transition: transform .3s ease; padding: 10px 0;
}
.dl-bar.is-visible { transform: translateY(0); }
.dl-bar__inner { display: flex; align-items: center; gap: 14px; }
.dl-bar__icon { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.dl-bar__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dl-bar__info strong { color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-bar__info span { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.dl-bar__info .stars { font-size: 0; }
.dl-bar__info .stars svg { width: 13px; height: 13px; }
.dl-bar__btn { margin-left: auto; flex: none; }
@media (max-width: 480px) {
  .dl-bar__info span { display: none; }
  .dl-bar__btn span { display: none; }
  .dl-bar__btn { padding: 12px 18px; }
}

.article { font-size: 1.05rem; }
.article .article-title { font-size: clamp(1.5rem, 3.2vw, 2rem); color: #fff; margin: 0 0 20px; text-shadow: var(--glow-primary); }
.article h2 { font-size: 1.5rem; color: var(--primary-2); margin: 36px 0 14px; }
.article h3 { font-size: 1.2rem; color: #fff; margin: 26px 0 10px; }
.article p { color: var(--text); margin: 0 0 16px; }
.article ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.article li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--primary), var(--cta)); border-radius: 50%;
  box-shadow: var(--glow-primary);
}
.article a { text-decoration: underline; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) { .sidebar { position: static; } }
.side-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 1.05rem; color: #fff; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.side-card h3 svg { width: 20px; height: 20px; color: var(--primary-2); }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: #fff; font-weight: 600; text-align: right; }
.side-warning { border-color: rgba(244,63,94,.4); background: rgba(244,63,94,.08); }
.side-warning h3 { color: var(--cta-2); }
.side-warning p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---- Responsible gambling ------------------------------------------- */
.responsible { border-top: 1px solid var(--border); background: rgba(244,63,94,.05); }
.responsible__box { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.responsible__icon { width: 56px; height: 56px; flex: none; color: var(--cta-2); }
.responsible h2 { font-size: 1.6rem; color: #fff; margin: 0 0 12px; }
.responsible p { color: var(--muted); margin: 0 0 16px; max-width: 75ch; }
.tip-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tip-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
.tip-chip svg { width: 16px; height: 16px; color: var(--cta-2); }

/* ---- Page hero (static pages) --------------------------------------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.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(1.2); transform: scale(1.25); opacity: .45; }
.page-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,15,35,.8), rgba(15,15,35,.95)); }
.page-hero__inner { position: relative; z-index: 2; text-align: center; padding: 72px 0 56px; }
.page-hero__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: #fff; margin: 0; text-shadow: var(--glow-primary); max-width: 24ch; margin-inline: auto; }

.prose { max-width: 820px; margin: 0 auto; }

/* ---- Footer — game-grid --------------------------------------------- */
.site-footer {
  position: relative; border-top: 1px solid var(--border); margin-top: 40px;
  background: linear-gradient(180deg, rgba(12,12,28,.6), rgba(7,7,17,.95));
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--cta) 50%, var(--primary) 80%, transparent);
  opacity: .8;
}

/* Popular games block */
.footer-games { padding: 48px 0 8px; }
.footer-games__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.footer-games__title { font-size: 1.25rem; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-games__title svg { width: 22px; height: 22px; color: var(--cta-2); }
.footer-games__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--primary-2); white-space: nowrap; }
.footer-games__all svg { width: 16px; height: 16px; }
.footer-games__all:hover { color: var(--cta); }

.footer-game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 1024px) { .footer-game-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 680px)  { .footer-game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px)  { .footer-game-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-game {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.03);
  text-align: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.footer-game:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(124,58,237,.28); }
.footer-game img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.footer-game span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.footer-game:hover span { color: #fff; }

/* Links + brand */
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 44px 0 32px; }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 46ch; margin: 0; }
.footer-col h3 { font-family: 'Russo One', sans-serif; font-size: .95rem; color: #fff; margin: 0 0 14px; letter-spacing: 1px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--cta); }

.footer-warn {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding: 18px 0; font-size: .85rem; color: var(--muted-2);
}
.footer-warn__badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: 'Russo One', sans-serif; font-size: .78rem; letter-spacing: .5px; color: var(--cta-2);
  border: 1px solid rgba(244,63,94,.4); background: rgba(244,63,94,.1); border-radius: 999px; padding: 6px 12px;
}
.footer-warn__badge svg { width: 15px; height: 15px; }
.footer-warn p { margin: 0; flex: 1; min-width: 220px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-2); }

/* ---- Scroll to top --------------------------------------------------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-top);
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--cta)); color: #fff;
  border: none; display: grid; place-items: center; box-shadow: var(--glow-primary);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 24px; height: 24px; }

/* ---- Reveal animation ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .apk-card:hover, .apk-card:hover .apk-card__media img { transform: none; }
}

/* ---- Utilities ------------------------------------------------------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
