/*
Theme Name: JZ666 Game
Theme URI: https://jz666game.pk/
Author: JZ666 Game
Author URI: https://jz666game.pk/
Description: A standalone landing-page theme for the JZ666 Game APK download homepage. Includes hero, app info card, features, game showcase, screenshots, specs, installation guide, download center, deposit/withdrawal guides, referral program, FAQ accordion and more. No page builder or extra plugins required.
Version: 1.2.4
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jz666-game
Tags: landing-page, one-column, custom-colors, featured-images
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --primary: #08c765;
  --primary-dark: #06a653;
  --primary-deep: #064e3b;
  --primary-soft: #e6f9ef;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-btn: 0 8px 20px rgba(8, 199, 101, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Anchored sections sit below the sticky header when jumped to. */
main section[id], .toc-card[id] { scroll-margin-top: 92px; }

/* Visible keyboard focus everywhere. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--primary-dark); }
.text-muted { color: var(--muted); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.header-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.header-logo svg { width: 32px; height: 32px; }
.header-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.header-nav a:hover, .header-nav a.active { color: var(--ink); background: var(--soft); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; padding: 10px 20px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn); white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); }
.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink);
}
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; }
.mobile-nav a {
  padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.header-cta { border: none; margin-top: 10px; justify-content: center; }
.site-header.nav-open .mobile-nav { display: flex; }
.site-header.nav-open .icon-menu { display: none; }
.site-header.nav-open .icon-close { display: block !important; }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, var(--primary-soft) 0%, #ffffff 100%);
  padding: 80px 0 60px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--muted);
  margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.hero-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-content p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.btn-primary, .btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 30px; border-radius: var(--radius-pill); font-size: 1.05rem;
  box-shadow: var(--shadow-btn); border: none; cursor: pointer;
}
.btn-primary:hover, .btn-download:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 14px 30px; border-radius: var(--radius-pill); font-size: 1.05rem;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); }
.hero-checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-checklist li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.hero-checklist svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-blob {
  position: absolute; width: 420px; height: 420px; max-width: 100%;
  background: radial-gradient(circle, rgba(8,199,101,0.22) 0%, rgba(8,199,101,0) 70%);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-phone {
  position: relative; width: 260px; border-radius: 36px; padding: 12px;
  background: var(--ink); box-shadow: var(--shadow-card);
}
.phone-shot {
  border-radius: 26px; overflow: hidden; background: #1e293b;
}
.phone-shot img { display: block; width: 100%; aspect-ratio: 9 / 18.5; object-fit: cover; border-radius: 26px; }

/* ==========================================================================
   5. APP INFO CARD
   ========================================================================== */
.app-info-section { padding: 60px 0 40px; }
.app-info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 30px;
}
.app-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.app-info-item { display: flex; gap: 14px; align-items: flex-start; }
.app-info-item__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.app-info-item__icon svg { width: 22px; height: 22px; }
.app-info-item__label { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.app-info-item__value { font-weight: 700; font-size: 1rem; }

/* ==========================================================================
   6. SECTIONS / ABOUT / TOC
   ========================================================================== */
.section { padding: 60px 0; }
.section--soft { background: var(--soft); }
.section--green {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #047857 60%, var(--primary-dark) 100%);
  color: #fff;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-dark); margin-bottom: 12px;
}
.section-label__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.section-header { max-width: 44rem; margin-bottom: 36px; }
.section-header p { color: var(--muted); font-size: 1.1rem; }
.section--green .section-header p { color: rgba(255,255,255,0.8); }
.intro-body { max-width: 48rem; font-size: 1.08rem; color: #334155; }
.intro-body p { margin-bottom: 1.2em; }
.intro-highlight {
  background: var(--primary-soft); color: var(--primary-deep);
  padding: 1px 8px; border-radius: 6px; font-weight: 600;
}
.toc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px; box-shadow: var(--shadow-card); max-width: 48rem;
}
.toc-card__title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; margin-bottom: 18px;
}
.toc-card__title svg { width: 20px; height: 20px; color: var(--primary-dark); }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.toc-list a {
  display: flex; align-items: center; gap: 12px; padding: 9px 4px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
  border-bottom: 1px dashed var(--border);
}
.toc-list a:hover { color: var(--primary-dark); }
.toc-list__num {
  font-size: 0.78rem; font-weight: 800; color: var(--primary-dark);
  background: var(--primary-soft); border-radius: 8px; padding: 2px 8px; flex: none;
}

/* ==========================================================================
   7. KEY FEATURES
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px 26px; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.5em; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   8. SHOWCASE ROWS
   ========================================================================== */
.showcase-row { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.showcase-row:last-child { margin-bottom: 0; }
/* Reversed rows keep the same 40/60 proportions: flip the track sizes too, not just the order,
   otherwise the text would land in the 40% track and the image in the 60% track. */
.showcase-row.reversed { grid-template-columns: 3fr 2fr; }
.showcase-row.reversed .showcase-media { order: 2; }
/* Grid items must be allowed to shrink below content size so fr proportions hold. */
.showcase-media, .showcase-content { min-width: 0; }
.showcase-media { display: flex; justify-content: center; }
.showcase-content h3 { font-size: 1.5rem; margin-bottom: 0.6em; }
.showcase-content > p { color: var(--muted); font-size: 1.05rem; }
.showcase-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.showcase-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.showcase-points svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }

/* Compact "more games" grid under the showcase rows. */
.games-more { margin-top: 64px; }
.games-more h3 { font-size: 1.5rem; margin-bottom: 1.2em; }

/* ==========================================================================
   9. SCREENSHOT GALLERY
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { display: flex; justify-content: center; }

/* ==========================================================================
   10. WHAT'S NEW (green band)
   ========================================================================== */
.whats-new-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.whats-new-content h2 { color: #fff; }
.whats-new-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.whats-new-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 14px 18px; font-weight: 500;
}
.whats-new-list svg { width: 22px; height: 22px; color: #6ee7b7; flex: none; margin-top: 2px; }
.whats-new-media { display: flex; justify-content: center; }

/* ==========================================================================
   11. SPECS + DATA TABLES
   ========================================================================== */
.specs-table, .data-table { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); font-size: 0.98rem; }
.specs-table th, .data-table th {
  text-align: left; padding: 14px 18px; background: var(--soft);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.specs-table td, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }
.specs-table tr th:first-child { width: 38%; }
.specs-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-card); }
.note-box {
  background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
  border-radius: 12px; padding: 16px 20px; margin: 20px 0; font-size: 0.98rem;
}
.test-box {
  background: var(--primary-soft); border: 1px solid #bbf7d0;
  border-radius: var(--radius-card); padding: 24px; margin: 24px 0;
}
.test-box h4 { margin-top: 0; color: var(--primary-deep); }
.check-list, .cross-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.check-list li, .cross-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--primary-dark); flex: none; margin-top: 3px; }
.cross-list svg { width: 20px; height: 20px; color: #dc2626; flex: none; margin-top: 3px; }

/* ==========================================================================
   12. INSTALLATION STEPS
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px 20px; box-shadow: var(--shadow-card); position: relative;
}
.step-item__num {
  font-size: 2rem; font-weight: 800; color: var(--primary);
  opacity: 0.9; margin-bottom: 10px; letter-spacing: -0.02em;
}
.step-item h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.step-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ==========================================================================
   13. DOWNLOAD CENTER
   ========================================================================== */
.download-center {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: 56px 32px; text-align: center; max-width: 640px; margin: 0 auto;
}
.download-center__icon {
  width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 22px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.download-center__icon svg { width: 36px; height: 36px; }
.download-center h2 { margin-bottom: 0.2em; }
.download-center__meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 18px 0 28px; color: var(--muted); }
.download-center__note { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   14. PROS & CONS
   ========================================================================== */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros-card, .cons-card {
  border-radius: var(--radius-card); padding: 32px 28px; border: 1px solid var(--border);
}
.pros-card { background: #f0fdf4; border-color: #bbf7d0; }
.cons-card { background: #fef2f2; border-color: #fecaca; }
.pros-card h3, .cons-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 1em; }
.pros-list, .cons-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pros-list li, .cons-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.pros-list svg { width: 20px; height: 20px; color: var(--primary-dark); flex: none; margin-top: 3px; }
.cons-list svg { width: 20px; height: 20px; color: #dc2626; flex: none; margin-top: 3px; }

/* ==========================================================================
   15. ARTICLE / GUIDE SECTIONS
   ========================================================================== */
.guide-section .container-narrow, .container-narrow { max-width: 780px; margin: 0 auto; }
.guide-section h2 { margin-bottom: 0.5em; }
.guide-section h3 { margin-top: 1.8em; }
.guide-section p, .guide-section li { color: #334155; }
.guide-section ol.steps-list, ol.steps-list {
  counter-reset: step; list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px;
}
ol.steps-list li {
  counter-increment: step; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px 14px 60px; position: relative;
}
ol.steps-list li::before {
  content: counter(step); position: absolute; left: 16px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0; }
.bonus-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.bonus-card h4 { margin: 0 0 0.4em; color: var(--primary-deep); }
.bonus-card h3 { font-size: 1.25rem; margin: 0 0 0.6em; color: var(--ink); }
.bonus-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
/* Promotional-number rows inside the referral section. */
.promo-subheading { margin-top: 56px; margin-bottom: 8px; font-size: 1.5rem; }
.promo-cta { margin-top: 18px; font-weight: 700; color: var(--primary-deep); font-size: 1.05rem; }
.showcase-content h3 { margin-top: 0; }

/* ==========================================================================
   16. FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 780px; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--font); font-size: 1.02rem; font-weight: 700; color: var(--ink); text-align: left;
}
.faq-trigger:hover { color: var(--primary-dark); }
.faq-trigger__icon { width: 22px; height: 22px; flex: none; color: var(--primary-dark); transition: transform 0.25s ease; }
.faq-item.open .faq-trigger__icon { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-body__inner { padding: 0 22px 22px; color: var(--muted); }
.faq-body__inner p { margin: 0; }

/* ==========================================================================
   17. FINAL CTA
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta h2 { color: #fff; margin-bottom: 0.4em; }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 36rem; margin: 0 auto 30px; }
.final-cta .btn-download { background: #fff; color: var(--primary-deep); box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.final-cta .btn-download:hover { background: var(--primary-soft); color: var(--primary-deep); }

/* ==========================================================================
   18. CONCLUSION / RESPONSIBLE GAMING
   ========================================================================== */
.responsible-box {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-card);
  padding: 28px; margin-top: 32px;
}
.responsible-box h3 { color: #9a3412; margin-top: 0; }
.responsible-box p { color: #7c2d12; font-size: 0.98rem; }
.responsible-box p:last-child { margin-bottom: 0; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 18px; }

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; }
.site-footer p { font-size: 0.95rem; color: #94a3b8; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #64748b; text-align: center; }

/* ==========================================================================
   20. FALLBACK TEMPLATES (index.php / page.php)
   ========================================================================== */
.page-wrap { padding: 64px 0; }
.page-wrap .container-narrow article { background: #fff; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.post-card h2 { font-size: 1.4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary-dark); }
.entry-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.pagination { display: flex; gap: 12px; margin-top: 32px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .header-nav, .header-cta--desktop { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid, .whats-new-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Hero stacks text-first on mobile so the H1 + download buttons stay above the fold. */
  .hero-phone { width: 220px; }
  .app-info-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 32px; }
  .showcase-row.reversed { grid-template-columns: 1fr; }
  .showcase-row .showcase-content { order: 1; }
  .showcase-row .showcase-media { order: 2; }
  .section { padding: 48px 0; }
  .app-info-section { padding: 48px 0; }
  .hero-section { padding: 64px 0 56px; }
  .games-more { margin-top: 48px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
  .app-info-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .download-center { padding: 40px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-body { transition: none; }
  .mobile-download-bar, .back-to-top { transition: none; }
}

/* ==========================================================================
   22. SINGLE ARTICLE (single.php)
   ========================================================================== */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: var(--border); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

.article__title { margin-bottom: 0.4em; }
.article__meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 26px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.article__meta-item { display: inline-flex; align-items: center; gap: 7px; }
.article__meta-item svg { color: var(--primary-dark); }
.article__featured { margin: 0 0 30px; }
.article__featured img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

.article-body { max-width: 68ch; font-size: 1.06rem; color: #334155; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.8em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-deep); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--primary); color: var(--muted); font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.4em 0; }
.article-body th, .article-body td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.article-body img { border-radius: 12px; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--soft); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px; margin: 40px 0 0;
}
.author-box__avatar img { border-radius: 50%; }
.author-box__name { font-weight: 800; margin-bottom: 4px; }
.author-box__bio { margin: 0; color: var(--muted); font-size: 0.95rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav__item a {
  display: block; padding: 16px 20px; border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-nav__item a:hover { border-color: var(--primary); transform: translateY(-2px); }
.post-nav__next { text-align: right; }

.related { margin-top: 56px; }
.related__title { font-size: 1.4rem; margin-bottom: 1em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.related-card__image { display: block; }
.related-card__title { font-size: 1.02rem; margin: 0; padding: 18px 18px 4px; }
.related-card__title a { color: var(--ink); text-decoration: none; }
.related-card__title a:hover { color: var(--primary-dark); }
.related-card .entry-meta { padding: 0 18px 18px; margin: 0; }

/* ==========================================================================
   23. STICKY MOBILE DOWNLOAD BAR + BACK TO TOP
   ========================================================================== */
.mobile-download-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  display: none; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 12px 12px 12px 18px; box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  transform: translateY(120%); transition: transform 0.3s ease;
}
.mobile-download-bar.is-visible { transform: translateY(0); }
.mobile-download-bar__text { flex: 1; min-width: 0; }
.mobile-download-bar__text strong { display: block; font-size: 0.95rem; }
.mobile-download-bar__text span { font-size: 0.78rem; color: #94a3b8; }
.mobile-download-bar__btn {
  background: var(--primary); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; padding: 11px 20px; border-radius: var(--radius-pill);
  white-space: nowrap; box-shadow: var(--shadow-btn);
}
.mobile-download-bar__btn:hover { background: var(--primary-dark); }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

@media (max-width: 640px) {
  .mobile-download-bar { display: flex; }
  .back-to-top { bottom: 92px; right: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
