/* ===========================================================
   AllYonoBets.com — Light Green Theme Design System
   =========================================================== */

:root {
  --green-primary: #00A344;
  --green-bright: #0A8A40;      /* readable accent-text green on light bg */
  --green-deep: #E9F6EE;        /* light green surface (alt sections / soft cards) */
  --green-forest: #D5EEDF;      /* slightly deeper light green */
  --bg-dark: #F4FAF6;           /* page background (var name kept for compatibility) */
  --bg-card: #FFFFFF;           /* card surface */
  --bg-card-hover: #F0F8F3;
  --gold-accent: #B8860B;       /* deeper gold, readable on light */
  --text-primary: #10231A;      /* near-black, green-tinted */
  --text-muted: #56655C;
  --border-soft: rgba(6, 120, 60, 0.16);
  --cta-gradient: linear-gradient(135deg, #00C853 0%, #00A344 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 10px 30px rgba(0, 168, 71, 0.20);
  --shadow-soft: 0 4px 18px rgba(16, 35, 26, 0.06);
  --font-display: 'Baloo 2', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

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

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--cta-gradient);
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0,40,15,.15);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,230,118,.45); }

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--green-primary);
  color: var(--green-bright);
}
.btn-outline:hover { background: var(--cta-gradient); color: #FFFFFF; border-color: transparent; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(0, 200, 83, .12);
  color: var(--green-bright);
  border: 1px solid var(--border-soft);
}
.badge-gold { background: rgba(255, 213, 74, .12); color: var(--gold-accent); border-color: rgba(255,213,74,.3); }

/* Generic inline SVG icon sizing */
.icon-svg { width: 18px; height: 18px; flex: 0 0 auto; display: block; }
.inline-icon { display: inline-flex; vertical-align: -3px; }
.inline-icon .icon-svg { width: 15px; height: 15px; }
.badge .icon-svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(16, 35, 26, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.logo-word span { color: var(--green-bright); }

/* Square logo mark — fixed square on every device */
.logo-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-gradient);
  color: #04210F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  box-shadow: 0 0 18px rgba(0,200,83,.35);
  overflow: hidden;
}
img.logo-mark {
  object-fit: cover;
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--green-bright); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: .45rem .55rem;
  cursor: pointer;
}
.nav-toggle .icon-svg { width: 20px; height: 20px; }

.age-badge {
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  font-size: .72rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(16, 35, 26, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s var(--ease);
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--border-soft); }
  .main-nav a { display: block; padding: 1rem 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Sub nav (guides bar) ---------- */

.sub-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(233, 246, 238, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.sub-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav ul::-webkit-scrollbar { display: none; }
.sub-nav a {
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--green-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(0,200,83,.14), transparent 58%),
    radial-gradient(ellipse at bottom left, rgba(0,163,68,.10), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-dark) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,230,118,.16), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroFloat 14s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.12); }
}
.hero .container { position: relative; z-index: 1; }

.hero .eyebrow {
  color: var(--green-bright);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .8rem;
  display: block;
}

.hero p.lead {
  max-width: 680px;
  font-size: 1.08rem;
  margin: 1rem 0 1.8rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* ---------- Section shells ---------- */

section { padding: 3.2rem 0; }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { margin-top: .5rem; }
.alt-bg { background: var(--green-deep); }

/* ---------- Filter tabs ---------- */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.8rem;
}
.filter-tab {
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
}
.filter-tab:hover { color: var(--text-primary); border-color: var(--green-primary); }
.filter-tab.active {
  background: var(--cta-gradient);
  color: #FFFFFF;
  border-color: transparent;
}

/* ---------- Game grid & cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--green-primary);
}
.game-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-deep);
}
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card .info { padding: .75rem .85rem .9rem; }
.game-card .info h3 { font-size: .92rem; margin-bottom: .3rem; }
.game-card .info span.cat { font-size: .74rem; color: var(--text-muted); }

/* ---------- App / keyword hub cards ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .15s, transform .15s;
}
.app-card:hover { border-color: var(--green-primary); transform: translateY(-2px); }
.app-card h3 { margin-bottom: .5rem; }
.app-card p { font-size: .92rem; margin-bottom: .9rem; }
.app-card .meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---------- Content / prose pages ---------- */

.prose { max-width: 820px; font-size: 1.02rem; }
.prose.prose-wide { max-width: 1000px; }
.prose h2 {
  margin-top: 2.6rem;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  position: relative;
}
.prose h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 3px;
  border-radius: 3px;
  background: var(--cta-gradient);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7rem; margin-bottom: .5rem; color: var(--green-bright); font-size: 1.22rem; }
.prose h4 { margin-top: 1.2rem; margin-bottom: .4rem; font-family: var(--font-body); font-size: 1.02rem; color: var(--text-primary); }
.prose p { margin-bottom: 1.05rem; }
.prose > ul:not([class]), .prose > ol:not([class]) { margin: 0 0 1.2rem 1.3rem; color: var(--text-muted); }
.prose > ul:not([class]) { list-style: disc; }
.prose > ol:not([class]) { list-style: decimal; }
.prose > ul:not([class]) > li, .prose > ol:not([class]) > li { margin-bottom: .5rem; }
.prose strong { color: var(--text-primary); }
.prose a:not(.btn) { color: var(--green-bright); border-bottom: 1px solid rgba(0,230,118,.3); }
.prose a:not(.btn):hover { border-bottom-color: var(--green-bright); }
.lead-para { font-size: 1.12rem; color: var(--text-primary); margin-bottom: 1.4rem; }

/* Section intro heading block */
.content-lead { max-width: 780px; margin-bottom: 1.6rem; }

/* Feature / benefit grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--green-primary); transform: translateY(-3px); }
.feature-card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0,200,83,.12);
  color: var(--green-bright);
  margin-bottom: .8rem;
}
.feature-card .feature-icon .icon-svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 .4rem; font-size: 1.08rem; color: var(--text-primary); }
.feature-card p { font-size: .92rem; margin: 0; }

/* Numbered step list */
.step-list { list-style: none; margin: 1.6rem 0; padding: 0; counter-reset: step; }
.step-list .step {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.step-list .step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-gradient);
  color: #04210F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.step-body h3 { margin: .2rem 0 .35rem; font-size: 1.1rem; color: var(--text-primary); }
.step-body p { margin: 0; font-size: .96rem; }

/* Callouts */
.callout {
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--green-primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  background: rgba(0,200,83,.05);
}
.callout h4 { margin: 0 0 .35rem; color: var(--green-bright); }
.callout p { margin: 0; font-size: .95rem; }
.callout-warn { border-left-color: var(--gold-accent); background: rgba(255,213,74,.05); }
.callout-warn h4 { color: var(--gold-accent); }

/* Key takeaways */
.takeaways {
  background: var(--green-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
}
.takeaways h4 { margin: 0 0 .7rem; color: var(--green-bright); font-family: var(--font-display); }
.takeaways ul { margin: 0 0 0 1.1rem; list-style: none; }
.takeaways li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; font-size: .96rem; color: var(--text-primary); }
.takeaways li::before { content: "\2713"; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }

/* Spec / definition table */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table caption { text-align: left; color: var(--text-muted); font-size: .85rem; margin-bottom: .6rem; }
.spec-table th, .spec-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.spec-table th[scope="row"] { color: var(--text-primary); font-weight: 600; width: 42%; background: rgba(6,120,60,.04); }
.spec-table td { color: var(--text-muted); }

/* Rich list */
.rich-list { margin: 1rem 0 1.2rem; list-style: none; padding: 0; }
.rich-list li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; color: var(--text-muted); }
.rich-list li::before { content: "\25B8"; position: absolute; left: 0; color: var(--green-primary); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros-cons .box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.pros-cons .box h4 { margin-bottom: .6rem; font-family: var(--font-body); }
.pros-cons .pros h4 { color: var(--green-bright); }
.pros-cons .cons h4 { color: var(--gold-accent); }
.pros-cons ul { margin-left: 1rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

.cta-box {
  background: var(--green-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0;
}
.cta-box h3 { margin-bottom: .2rem; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 1.1rem 0;
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: .5rem; color: var(--text-primary); }
.faq-item p { font-size: .95rem; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--green-bright); }
.breadcrumb span { margin: 0 .35rem; }

/* ---------- Related strip ---------- */

.related-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.related-strip .game-card { flex: 0 0 150px; }

/* ---------- Blog cards ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.blog-card .tag { color: var(--green-bright); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blog-card h3 { margin: .5rem 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, #EDF7F1 0%, #E4F2EA 100%);
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { font-size: .9rem; margin-bottom: .9rem; color: var(--text-primary); }
.footer-grid ul li { margin-bottom: .55rem; }
.footer-grid a { color: var(--text-muted); font-size: .88rem; }
.footer-grid a:hover { color: var(--green-bright); }

.footer-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
.footer-brand-name span { color: var(--green-bright); }

.disclaimer-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  background: rgba(255, 213, 74, .04);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.disclaimer-box strong { color: var(--gold-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 1.2rem;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Category hub intro strip ---------- */

.stat-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: 1.2rem 0 2rem; }
.stat-row .stat { min-width: 120px; }
.stat-row .stat .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-bright); font-weight: 800; }
.stat-row .stat .label { font-size: .8rem; color: var(--text-muted); }

/* ---------- Hero two-column + media ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-media { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hero-media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 0 60px rgba(0, 200, 83, .3);
}
.hero-media .btn { width: 100%; max-width: 380px; }

/* ---------- App icon (real images + fallback) ---------- */

.app-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  border: 1px solid var(--border-soft);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-lg { width: 88px; height: 88px; border-radius: 20px; }
.app-icon-fallback {
  background: var(--cta-gradient);
  color: #04210F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.app-icon-lg.app-icon-fallback { font-size: 1.9rem; }

/* ---------- App card (icon header) ---------- */

.app-card-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .9rem;
}
.app-card-title { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.app-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.app-card:hover .app-card-name { color: var(--green-bright); }
.btn-block { width: 100%; }

/* ---------- App detail hero ---------- */

.app-hero { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0 1.2rem; }
.app-hero-body { min-width: 0; }
.app-hero-body h1 { margin-bottom: .5rem; }
.app-hero .meta { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Icon showcase strip ---------- */

.icon-showcase { padding: 2rem 0; border-bottom: 1px solid var(--border-soft); }
.showcase-title { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; margin-bottom: 1.1rem; }
.icon-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
}
.icon-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  font-size: .74rem;
  color: var(--text-muted);
  transition: transform .15s;
}
.icon-chip:hover { transform: translateY(-3px); }
.icon-chip:hover span { color: var(--green-bright); }
.icon-chip .app-icon { width: 64px; height: 64px; }

/* ---------- Mobile bottom bar (app-like) ---------- */

.mobile-bar { display: none; }

/* ===========================================================
   MOBILE-FIRST RESPONSIVE PASS
   =========================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-media { order: -1; }
  .hero-media img { max-width: 240px; }
  .hero-media .btn { max-width: 240px; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container { padding: 0 15px; }

  h1 { font-size: 1.75rem; line-height: 1.18; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 2.2rem 0 1.8rem; }
  .hero p.lead { font-size: 1rem; }
  section { padding: 2.2rem 0; }

  /* full-width tappable CTAs */
  .hero-ctas { gap: .7rem; }
  .hero-ctas .btn { flex: 1 1 100%; padding: .95rem 1rem; }

  /* 2-up game grid on phones, tighter gaps */
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .game-card .info { padding: .6rem .65rem .7rem; }
  .game-card .info h3 { font-size: .82rem; }

  /* one app card per row */
  .app-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* filter tabs: horizontal scroll instead of wrap */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -15px 1.5rem;
    padding: 0 15px .3rem;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex: 0 0 auto; }

  /* icon showcase scrolls horizontally */
  .icon-chips {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -15px;
    padding: 0 15px .5rem;
    gap: 1.1rem;
  }
  .icon-chips::-webkit-scrollbar { display: none; }
  .icon-chip { flex: 0 0 72px; }

  .app-hero { gap: .9rem; }
  .app-icon-lg { width: 64px; height: 64px; }
  .app-hero-body h1 { font-size: 1.5rem; }

  .cta-box { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-box .btn { width: 100%; }

  .related-strip .game-card { flex: 0 0 130px; }

  /* room for the bottom bar */
  body { padding-bottom: 64px; }
  .site-footer { margin-bottom: 0; }

  /* app-like sticky bottom navigation */
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    height: 60px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 20px rgba(16, 35, 26, 0.06);
  }
  .mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 600;
  }
  .mobile-bar a.active { color: var(--green-bright); }
  .mobile-bar .mb-icon { line-height: 1; }
  .mobile-bar .mb-icon .icon-svg { width: 21px; height: 21px; }
}

@media (max-width: 380px) {
  .game-grid { gap: .55rem; }
  .hero-ctas .btn { font-size: .9rem; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ===========================================================
   LIGHT-THEME POLISH & ANIMATIONS
   =========================================================== */

/* Soft elevation on surfaces so cards read on the light background */
.game-card,
.app-card,
.feature-card,
.blog-card,
.pros-cons .box,
.hero-media img {
  box-shadow: var(--shadow-soft);
}
.game-card:hover,
.app-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow-glow);
}

/* Smooth transitions on interactive accents */
.btn, .filter-tab, .icon-chip, .main-nav a, .sub-nav a,
.footer-grid a, .game-card, .app-card, .feature-card {
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,200,83,.32); }

/* Animated underline sweep on nav links */
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px; width: 100%;
  background: var(--cta-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
@media (max-width: 860px) { .main-nav a::after { display: none; } }

/* Scroll-reveal: elements fade + rise into view */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* Stagger children within a grid/row */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* Hero copy entrance on load */
.hero-copy > * { animation: riseIn .7s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero-copy > *:nth-child(5) { animation-delay: .37s; }
.hero-media { animation: popIn .8s var(--ease) both; animation-delay: .2s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn  { from { opacity: 0; transform: scale(.94) translateY(14px); } to { opacity: 1; transform: none; } }

/* Gentle float on the hero media image */
.hero-media img { animation: mediaFloat 6s ease-in-out infinite; }
@keyframes mediaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Badge / stat number subtle pulse-in */
.stat-row .stat .num { transition: transform .3s var(--ease); }
.reveal.in .stat-row .stat .num { animation: countPop .6s var(--ease) both; }
@keyframes countPop { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* FAQ accordion — animated open/close */
.faq-item h3 { cursor: pointer; padding-right: 1.8rem; position: relative; }
.faq-item h3::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--green-bright);
  transition: transform .25s var(--ease);
}
.faq-item.open h3::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  overflow: hidden;
  max-height: 600px;
  transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
}
.faq-item.collapsed p { max-height: 0; opacity: 0; margin: 0; }

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 20px; bottom: 22px;
  z-index: 150;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--cta-gradient);
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,168,71,.35);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
@media (max-width: 640px) { .to-top { bottom: 74px; } }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
