/*
Theme Name: MaanWin Official VIP Theme
Theme URI: https://maanwin.game/
Author: Antigravity VIP
Author URI: https://maanwin.game/
Description: 100% Bug-Free, High-Performance, Mobile-First SEO WordPress Theme for Maan Win Game. Features 14-Point H2 semantic architecture, complete Schema Graph, zero shadowban terms, and instant responsive layouts.
Version: 1.0.3
License: GPLv2
Text Domain: maanwin-vip
*/

/* ==========================================================================
   MAANWIN OFFICIAL PORTAL - FULL MULTI-DEVICE RESPONSIVE STYLESHEET
   Supported Devices: Mobile (320px+), Tablet (768px-1024px), Laptop & Desktop PC
   ========================================================================== */

:root {
  --primary: #ff7a00;
  --primary-hover: #e66a00;
  --primary-light: #fff3e6;
  --secondary: #0b1224;
  --secondary-surface: #172036;
  --accent-gold: #ff9f2d;
  --text-main: #20252a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-main: #fff7ef;
  --bg-card: #ffffff;
  --border-color: #ffd6ad;
  --success: #10b981;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ==========================================================================
   Base Reset & Viewport Lock (Prevents all horizontal scroll leaks)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  background: linear-gradient(135deg, #fffaf5 0%, #fff2e8 50%, #fff8f2 100%);
  color: var(--text-main);
  line-height: 1.68;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  max-width: none; /* Allow horizontal table scrolling inside .table-responsive */
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-name-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-name-text span {
  color: var(--primary);
}

/* Desktop Navigation Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ffa133 100%);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e66a00 0%, #ff7a00 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 122, 0, 0.45);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--secondary) !important;
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-light);
}

.btn-accent {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(11, 18, 36, 0.25);
}

.btn-accent:hover {
  background: var(--secondary-surface);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #fff2e3 0%, rgba(255,247,239,0.5) 100%);
  padding: 45px 0 35px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.hero-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--secondary);
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-section p.lead {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: #475569;
  max-width: 820px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  width: 100%;
}

/* Hero App Banner (Transparent Cutout) */
.hero-image-wrap {
  max-width: 380px;
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 380px;
  height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 16px 28px rgba(0, 90, 220, 0.28));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-image-wrap img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 20px 34px rgba(255, 122, 0, 0.35));
}

.hero-meta-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  width: 100%;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   Main Content & Cards
   ========================================================================== */
.main-content {
  padding: 38px 0 65px 0;
  width: 100%;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  scroll-margin-top: 80px;
}

.content-card h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-card h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--secondary);
  margin-top: 10px;
  margin-bottom: 18px;
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--secondary);
  margin-top: 24px;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 16px;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-card p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
}

.content-card ul, .content-card ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.content-card li {
  margin-bottom: 9px;
  color: #334155;
}

/* ==========================================================================
   Visual Guide Screenshots & Grid Layout
   ========================================================================== */
.guide-grid-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0;
  width: 100%;
}

.guide-figure {
  margin: 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.guide-figure.mobile-shot {
  max-width: min(340px, 100%);
}

.guide-figure.mobile-shot img {
  max-height: 560px;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 0.25s ease;
}

.guide-figure.banner-shot {
  max-width: 100%;
}

.guide-figure.banner-shot img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  display: block;
}

.guide-figure img:hover {
  transform: scale(1.01);
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 8px;
}

.guide-figure-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
  width: 100%;
}

.guide-figure-row .guide-figure {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
}

/* ==========================================================================
   Step-by-Step Boxes Grid
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 22px 0;
  width: 100%;
}

.step-box {
  background: #fffaf5;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.step-num {
  width: auto !important;
  min-width: 32px !important;
  height: auto !important;
  min-height: 28px !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--primary, #ff7a00), var(--accent-gold, #ff9f2d)) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  word-break: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35) !important;
}

.step-box h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* ==========================================================================
   Data Tables (Fully Responsive on All Devices)
   ========================================================================== */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: inset -4px 0 6px -3px rgba(0,0,0,0.06);
}

table.data-table {
  width: 100%;
  min-width: 480px; /* Ensures readable columns without aggressive squishing */
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.data-table th, table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

table.data-table th {
  background: #fff0df;
  color: var(--secondary);
  font-weight: 700;
  white-space: nowrap;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tr:nth-child(even) {
  background: #fffdf9;
}

/* ==========================================================================
   Category & Games Grid
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 24px 0;
  width: 100%;
}

.game-card {
  background: #fffaf5;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.game-card .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: inline-block;
}

.game-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--secondary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-answer {
  color: #475569;
  font-size: 0.98rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Notices & Alerts */
.notice-box {
  background: #f0fdf4;
  border-left: 4px solid var(--success);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.warning-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Sticky Mobile Action Bar (Only on Mobile/Tablets)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  z-index: 999;
}

.mobile-sticky-bar .bar-inner {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 10px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

/* ==========================================================================
   24/7 Floating Live Support / Telegram Widget
   ========================================================================== */
.floating-support-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #ffffff !important;
  padding: 10px 18px 10px 12px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-support-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 136, 204, 0.6);
  background: linear-gradient(135deg, #0099e6 0%, #0077b3 100%);
}

.support-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.support-icon-wrap svg {
  fill: #0088cc;
  width: 22px;
  height: 22px;
}

.pulse-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.support-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.support-label strong {
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.support-label small {
  font-size: 0.74rem;
  color: #e0f2fe;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 50px 0 30px 0;
  font-size: 0.92rem;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 100 !important;
  clear: both !important;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.badge-18 {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #94a3b8;
  display: inline-block;
  padding: 2px 0;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.partner-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0 !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
}

.partner-badge-link:hover {
  background: rgba(255, 122, 0, 0.25);
  border-color: var(--primary);
  color: #ffffff !important;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-surface);
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
}

.footer-disclaimer {
  margin-bottom: 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet, Laptop, Mobile)
   ========================================================================== */

/* 1. TABLET DEVICES (769px - 1024px, iPads, Galaxy Tabs) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 24px;
  }
  .guide-grid-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .hero-image-wrap {
    max-width: 340px;
  }
}

/* 2. TABLET & MOBILE (< 768px) */
@media (max-width: 768px) {
  /* CRITICAL FIX 1: Hide desktop text navigation menu so header never overflows */
  .nav-links {
    display: none !important;
  }

  .nav-wrap {
    padding: 8px 0;
  }

  .brand-logo img {
    height: 38px;
  }

  .brand-name-text {
    font-size: 1.24rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  .container {
    padding: 0 16px;
  }

  .content-card {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
  }

  .content-card h2 {
    font-size: 1.35rem;
    padding-left: 12px;
    border-left-width: 4px;
  }

  /* Single column flow for guides */
  .guide-grid-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guide-figure.mobile-shot {
    max-width: min(340px, 100%);
  }

  .hero-image-wrap {
    max-width: 290px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* Show Sticky Action Bar at bottom */
  .mobile-sticky-bar {
    display: block !important;
  }

  /* CRITICAL FIX 2: Sleek Circular Floating Telegram Support Button (Never blocks screen text) */
  .floating-support-btn {
    bottom: 74px;
    right: 14px;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45);
  }

  .floating-support-btn .support-label {
    display: none !important; /* Hide wide text pill on mobile */
  }

  .floating-support-btn .support-icon-wrap {
    width: 44px;
    height: 44px;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
  }

  .floating-support-btn .support-icon-wrap svg {
    fill: #ffffff;
    width: 24px;
    height: 24px;
  }

  .floating-support-btn .pulse-indicator {
    top: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
  }

  .hero-meta-strip {
    gap: 10px 14px;
    font-size: 0.84rem;
  }

  /* Safe Area Padding for bottom sticky bar & iOS home bar */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-footer {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
  }

  table.data-table {
    font-size: 0.88rem;
  }

  table.data-table th, table.data-table td {
    padding: 10px 12px;
  }
}

/* 3. PHONES & SMALL SCREENS (< 640px) */
@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 24px auto;
    gap: 10px;
    padding: 0 4px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.96rem;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-figure-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .guide-figure-row .guide-figure {
    flex: none;
    max-width: min(330px, 100%);
    width: 100%;
  }
}

/* 4. COMPACT SMARTPHONES (< 480px, iPhone SE, compact Androids) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .brand-logo img {
    height: 34px;
  }

  .brand-name-text {
    font-size: 1.14rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 6px 11px;
    font-size: 0.80rem;
  }

  .hero-section {
    padding: 30px 0 25px 0;
  }

  .hero-image-wrap {
    max-width: 250px;
  }

  .hero-image-wrap img {
    max-width: 250px;
  }

  .badge-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-meta-strip {
    gap: 8px;
    font-size: 0.78rem;
  }

  .hero-meta-item {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    border: 1px solid rgba(255, 214, 173, 0.6);
  }

  .content-card {
    padding: 18px 12px;
    margin-bottom: 16px;
  }

  .content-card h2 {
    font-size: 1.22rem;
    padding-left: 10px;
  }

  .content-card p, .content-card li {
    font-size: 0.95rem;
  }

  .mobile-sticky-bar .btn {
    padding: 9px 2px;
    font-size: 0.80rem;
  }
}
