/* ===================================================
   ภาวนา888 — CSS Design System
   Palette: Deep Indigo + Warm Copper
   Font: Kanit (Google Fonts)
   =================================================== */

/* === 1. CSS Variables === */
:root {
  --color-primary: #0A0818;
  --color-secondary: #7C3AED;
  --color-accent: #D97706;
  --color-bg: #06041A;
  --color-surface: rgba(124, 58, 237, 0.12);
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255,255,255,0.7);
  --color-border: rgba(124, 58, 237, 0.3);
  --bg-footer: #040312;
  --bg-header: #0A0818;
  --gradient-cta: linear-gradient(135deg, #7C3AED 0%, #D97706 100%);
  --gradient-hero: linear-gradient(160deg, #0A0818 0%, #1a0a40 50%, #0A0818 100%);
  --gradient-card: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(217,119,6,0.08) 100%);
  --shadow-card: 0 8px 32px rgba(124, 58, 237, 0.2);
  --shadow-cta: 0 4px 20px rgba(217, 119, 6, 0.4);
  --radius-card: 12px;
  --radius-btn: 8px;
  --font-main: 'Kanit', sans-serif;
  --transition: 0.3s ease;
}

/* === 2. Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }

/* === 3. Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.8rem; color: var(--color-accent); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.6rem; color: #C4B5FD; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }

/* === 4. Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 60px 0; }
.section-pad-sm { padding: 40px 0; }

/* === 5. Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-accent); }
.cta-header {
  background: var(--gradient-cta);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-cta);
  transition: var(--transition);
  -webkit-text-fill-color: #fff;
}
.cta-header:hover { opacity: 0.9; transform: translateY(-1px); }

/* === 6. Mobile Nav === */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 4, 26, 0.97);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay a {
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}
.mobile-nav-overlay a:hover { color: var(--color-accent); }
.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 1.2rem;
}

/* === 7. Hero Section === */
.hero {
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin: 24px auto;
  display: block;
}
.hero-badge {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-desc { font-size: 1.1rem; max-width: 700px; margin: 0 auto 28px; color: var(--color-text-muted); }

/* === 8. CTA Button === */
.cta-button {
  display: inline-block;
  background: var(--gradient-cta);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-cta);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}
.cta-button:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,119,6,0.5); }
.cta-button-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-accent) !important;
  -webkit-text-fill-color: var(--color-accent);
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-accent);
  transition: var(--transition);
}
.cta-button-outline:hover { background: var(--color-accent); color: #fff !important; -webkit-text-fill-color: #fff; }

/* === 9. TOC === */
.toc-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 32px 0;
}
.toc-container h2 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.toc-container ol { counter-reset: toc-counter; padding-left: 0; }
.toc-container ol li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc-container ol li::before {
  content: counter(toc-counter) ".";
  color: var(--color-accent);
  font-weight: 700;
  min-width: 20px;
}
.toc-container ol li a {
  color: var(--color-text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}
.toc-container ol li a:hover { color: var(--color-accent); }

/* === 10. Sections === */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--color-accent); font-size: clamp(1.4rem, 3vw, 2rem); }
.section-title p { color: var(--color-text-muted); font-size: 1rem; max-width: 600px; margin: 12px auto 0; }
.section-divider { width: 60px; height: 4px; background: var(--gradient-cta); border-radius: 2px; margin: 16px auto; }

/* === 11. Feature Grid === */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-secondary); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { color: #C4B5FD; font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* === 12. Game Grid === */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 28px; }
.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.game-card .game-icon { font-size: 2.5rem; margin-bottom: 12px; }
.game-card h3 { color: var(--color-accent); font-size: 1rem; margin-bottom: 8px; }
.game-card p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* === 13. Steps === */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.step-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  position: relative;
}
.step-number {
  position: absolute;
  top: -14px; left: 20px;
  background: var(--gradient-cta);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}
.step-card h3 { color: #C4B5FD; margin-top: 8px; font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* === 14. Two-Column Layout === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.two-col-reverse .two-col { direction: rtl; }
.two-col-reverse .two-col > * { direction: ltr; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* === 15. FAQ === */
.faq-list { margin-top: 28px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-text);
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--color-accent); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 24px 18px; color: var(--color-text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* === 16. Promo Cards === */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 32px; }
.promo-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.promo-card img { width: 100%; height: 220px; object-fit: cover; }
.promo-body { padding: 24px; }
.promo-badge {
  display: inline-block;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.promo-body h3 { color: var(--color-accent); font-size: 1.2rem; margin-bottom: 10px; }
.promo-body p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 16px; }

/* === 17. Login Form === */
.login-section { background: var(--gradient-hero); padding: 80px 0; }
.login-wrapper { max-width: 480px; margin: 0 auto; }
.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.login-card h2 { color: var(--color-accent); text-align: center; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--color-text-muted); }
.form-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--color-text-muted); font-size: 0.85rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* === 18. Blog Cards (Archive) === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 32px; }
.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.blog-date { font-size: 0.8rem; color: var(--color-text-muted); }
.blog-reading-time { font-size: 0.8rem; color: var(--color-accent); background: var(--color-surface); padding: 2px 8px; border-radius: 4px; }
.blog-card-body h3 { color: var(--color-text); font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.blog-read-more { color: var(--color-accent); font-size: 0.9rem; font-weight: 600; }
.blog-read-more:hover { color: var(--color-secondary); }

/* === 19. Blog Post Page === */
.blog-post { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.blog-post-header { margin-bottom: 32px; }
.blog-post-header h1 { color: var(--color-text); margin-bottom: 16px; }
.blog-featured-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 28px; }
.blog-post h2 { color: var(--color-accent); margin: 32px 0 14px; }
.blog-post h3 { color: #C4B5FD; margin: 20px 0 10px; }
.blog-post p { color: var(--color-text-muted); }
.blog-post ul, .blog-post ol { padding-left: 20px; margin-bottom: 16px; }
.blog-post ul li, .blog-post ol li { margin-bottom: 8px; color: var(--color-text-muted); list-style: disc; }
.blog-post ol li { list-style: decimal; }
.blog-post a { color: var(--color-accent); }
.blog-post .related-posts { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; margin-top: 40px; }
.blog-post .related-posts h3 { margin: 0 0 14px; color: var(--color-accent); }

/* === 20. Table === */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
th { background: rgba(124,58,237,0.2); color: var(--color-accent); padding: 12px 16px; text-align: left; border: 1px solid var(--color-border); font-weight: 700; }
td { padding: 10px 16px; border: 1px solid var(--color-border); color: var(--color-text-muted); }
tr:nth-child(even) td { background: rgba(124,58,237,0.06); }

/* === 21. Stats Section === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 28px; }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 900; color: var(--color-accent); display: block; }
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }

/* === 22. Image with caption === */
.img-wrapper { margin: 24px 0; }
.img-wrapper img { width: 100%; border-radius: var(--radius-card); }
.img-caption { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; }

/* === 23. CTA Banner === */
.cta-banner {
  background: var(--gradient-cta);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.cta-banner .cta-button { background: #fff; color: var(--color-secondary) !important; -webkit-text-fill-color: var(--color-secondary); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.cta-banner .cta-button:hover { opacity: 0.95; }

/* === 24. Floating CTA === */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  animation: pulse-cta 2.5s infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 20px rgba(217,119,6,0.4); }
  50% { box-shadow: 0 6px 32px rgba(217,119,6,0.7); }
}
.floating-cta a {
  background: var(--gradient-cta);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(217,119,6,0.5);
}

/* === 25. Footer === */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.3rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }
.footer-col h4 { color: var(--color-accent); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 16px; }

/* === 26. Breadcrumb === */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-accent); margin: 0 6px; }

/* === 27. Alert / Notice === */
.notice {
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.3);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 16px 0;
  color: var(--color-text-muted);
}

/* === 28. List style === */
.check-list { padding-left: 0; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }

/* === 29. Back to Top === */
#back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; }

/* === 30. Scroll Animations === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === 31. Page Hero (inner pages) === */
.page-hero {
  background: var(--gradient-hero);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.page-hero h1 { color: var(--color-text); margin-bottom: 12px; }
.page-hero p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* === 32. Payment Icons Section === */
.payment-icons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.payment-icon {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* === 33. Mobile Bottom Nav === */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--color-border);
  padding: 8px 0;
  z-index: 997;
}
.mobile-bottom-nav ul { display: flex; justify-content: space-around; }
.mobile-bottom-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.mobile-bottom-nav ul li a span.icon { font-size: 1.2rem; }
.mobile-bottom-nav ul li a:hover { color: var(--color-accent); }

/* === 34. Responsive === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .cta-header { display: none; }
  .hero { padding: 50px 0; }
  .section-pad { padding: 40px 0; }
  .feature-grid, .game-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 60px; }
  .floating-cta { bottom: 72px; }
  #back-to-top { bottom: 120px; }
  .blog-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.6rem; }
  .cta-button { padding: 12px 24px; font-size: 0.95rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 35. Mobile Overflow Fix === */
.two-col img, .promo-card img, .blog-card img, .hero-img, .blog-featured-img {
  max-width: 100%;
  height: auto;
}
.two-col img {
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .two-col img {
    max-width: 100%;
  }
  table { min-width: 0; }
  .promo-grid, .blog-grid, .feature-grid, .game-grid, .steps-grid, .stats-grid {
    max-width: 100%;
  }
}
