:root {
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-soft: rgba(16,185,129,0.12);
  --color-secondary: #0ea5e9;
  --color-accent: #facc15;
  --color-bg: #040d0a;
  --color-bg-soft: #071410;
  --color-surface: #0b1813;
  --color-surface-strong: #0f2018;
  --color-card: #0f2018;
  --color-card-alt: #112820;
  --color-border: #1a3028;
  --color-border-strong: #245a40;
  --color-text: #f0fdf4;
  --color-text-soft: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #020a07;
  --color-footer-text: #94a3b8;
  --shadow-header: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --motion-slow: 0.4s;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --container-max: 1200px;
  --container-wide: 1280px;
  --section-y: clamp(48px, 6vw, 80px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }

.text-accent { color: var(--color-primary); }

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(4,13,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--motion-normal);
}
.site-header.scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, .72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: clamp(13px, .84vw, 15px);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--motion-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-login {
  background: transparent;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-size: 0.88rem;
  min-height: 40px;
}
.btn-login:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-register {
  background: var(--color-primary);
  color: #040d0a;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 40px;
}
.btn-register:hover { background: var(--color-accent); }

.btn-primary-cta {
  background: var(--color-primary);
  color: #040d0a;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
}
.btn-primary-cta:hover {
  background: var(--color-primary-dark);
  color: #040d0a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.btn-outline-cta {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-cta:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { display: block; width: 100%; text-align: center; }

.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: 2px;
  padding: 0;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  z-index: 999;
  box-shadow: var(--shadow-card-hover);
}
.mobile-menu.is-open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text-soft);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.mobile-nav a:hover { background: var(--color-primary-soft); color: var(--color-primary); }

@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(5px, 1.6vw, 8px);
    white-space: nowrap;
  }
  .header-actions .btn {
    min-height: 40px;
    padding-inline: clamp(10px, 2.6vw, 14px);
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
  }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 38px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ===== HERO ===== */
.home-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-soft) 50%, var(--color-surface) 100%);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-lead {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero-img { width: 100%; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ===== TRUST STRIP ===== */
.home-trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.trust-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 600px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTIONS ===== */
section { padding: var(--section-y) 0; }

.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.section-desc {
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===== FEATURE CARDS ===== */
.home-feature-grid { background: var(--color-surface); }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--motion-normal), transform var(--motion-normal);
}
.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* ===== SHOWCASE ===== */
.home-game-showcase { background: var(--color-surface); padding: 32px 0; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.showcase-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.showcase-img { width: 100%; display: block; transition: transform 0.3s; }
.showcase-img-wrap:hover .showcase-img { transform: scale(1.03); }
@media (max-width: 640px) { .showcase-row { grid-template-columns: 1fr; } }

/* ===== COMPARE TABLE ===== */
.home-compare-section { background: var(--color-bg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; }
.compare-table thead th {
  background: var(--color-surface-strong);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th.highlight { color: var(--color-primary); }
.compare-table tbody tr:nth-child(even) td { background: var(--color-surface); }
.compare-table tbody tr:nth-child(odd) td { background: var(--color-bg-soft); }
.compare-table tbody td {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(26,48,40,0.5);
}
.compare-table tbody td:first-child { font-weight: 600; color: var(--color-text); }
.check-cell { color: var(--color-primary); }
.cross-cell { color: var(--color-danger); }
.partial-cell { color: var(--color-accent); }

/* ===== STEP CARDS ===== */
.home-guide-panel { background: var(--color-bg); }
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color var(--motion-normal);
}
.step-card:hover { border-color: var(--color-primary); }
.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(16,185,129,0.15);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h3 { color: var(--color-primary); font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* ===== GAME CARDS ===== */
.home-games-grid { background: var(--color-surface); }
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--motion-normal), transform var(--motion-normal);
  display: block;
  color: var(--color-text);
}
.game-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-text);
}
.game-card-img { width: 100%; height: 180px; object-fit: cover; }
.game-card-body { padding: 16px 18px; }
.game-badge {
  display: inline-block;
  background: rgba(250,204,21,0.15);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.game-card-body h3 { font-size: 0.95rem; margin-bottom: 4px; }
.game-card-body p { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }

/* ===== CONTENT SECTION ===== */
.home-content-section { background: var(--color-bg); }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.content-main p { color: var(--color-text-soft); line-height: 1.85; }
.content-main h3 { color: var(--color-primary); font-size: 1.25rem; margin: 28px 0 12px; }
.content-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin: 24px 0;
}

.privacy-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-primary-soft);
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-icon { font-size: 1.5rem; color: var(--color-primary); flex-shrink: 0; }
.callout-body strong { color: var(--color-text); display: block; margin-bottom: 6px; }
.callout-body p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }

.content-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-cta-card, .sidebar-nav-card, .sidebar-safe-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-cta-card h3 { color: var(--color-primary); font-size: 1.1rem; }
.sidebar-cta-card p { color: var(--color-text-muted); font-size: 0.9rem; }
.sidebar-login-link { text-align: center; margin-top: 10px; }
.sidebar-login-link a { font-size: 0.82rem; color: var(--color-text-muted); }
.sidebar-login-link span { color: var(--color-primary); }

.sidebar-nav-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 16px; }
.sidebar-nav-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav-card li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.sidebar-nav-card li:last-child { border-bottom: none; }
.sidebar-nav-card a { color: var(--color-text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.sidebar-nav-card i { color: var(--color-primary); }

.sidebar-safe-card {
  text-align: center;
  background: rgba(250,204,21,0.07);
  border-color: rgba(250,204,21,0.25);
}
.sidebar-safe-card i { font-size: 2rem; color: var(--color-accent); margin-bottom: 12px; }
.sidebar-safe-card h4 { color: var(--color-accent); font-size: 1rem; }
.sidebar-safe-card p { color: var(--color-text-muted); font-size: 0.85rem; }
.sidebar-safe-card a { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
}

/* ===== REVIEWS ===== */
.home-review-band { background: var(--color-bg); }
.review-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review-stars { color: var(--color-accent); font-size: 0.9rem; margin-bottom: 12px; }
.review-text { color: var(--color-text-muted); font-size: 0.92rem; font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--color-primary);
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.92rem; color: var(--color-text); }
.review-author span { font-size: 0.8rem; color: var(--color-text-muted); }

/* ===== FAQ ===== */
.home-faq-section, .game-faq-section, .page-faq-section { background: var(--color-surface); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-family: inherit;
}
.faq-trigger:hover { color: var(--color-primary); }
.faq-trigger i { transition: transform var(--motion-normal); color: var(--color-primary); flex-shrink: 0; }
.faq-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-content {
  display: none;
  padding: 0 22px 18px;
}
.faq-content.is-open { display: block; }
.faq-content p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; line-height: 1.8; }

/* ===== CTA SECTIONS ===== */
.home-final-cta, .game-final-cta { background: var(--color-bg); }
.final-cta-card, .inline-cta-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-card) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* ===== PAGE TITLE BAR ===== */
.page-title-bar {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
  padding: clamp(40px, 5vw, 60px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--color-border);
}
.page-title-bar h1 { margin-top: 16px; }
.page-lead { color: var(--color-text-soft); max-width: 640px; font-size: 1.05rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb-nav { margin-bottom: 8px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  font-size: 0.82rem;
}
.breadcrumb-item { color: var(--color-text-muted); }
.breadcrumb-item a { color: var(--color-text-muted); }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: var(--color-border-strong); }
.breadcrumb-item.active { color: var(--color-text-soft); }

/* ===== GAME DETAIL PAGES ===== */
.game-intro-section, .game-features-section, .game-howto-section,
.game-strategy-section, .game-safety-section, .game-related-section { padding: var(--section-y) 0; }

.game-intro-section { background: var(--color-bg); }
.game-intro-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.game-feature-img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); width: 100%; }

.game-features-section { background: var(--color-surface); }
.feature-detail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.feature-detail-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--motion-normal);
}
.feature-detail-card:hover { border-color: var(--color-primary); }
.fdc-icon { width: 48px; height: 48px; background: var(--color-primary-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--color-primary); margin-bottom: 14px; }

.game-howto-section { background: var(--color-bg); }
.howto-steps { max-width: 720px; }
.howto-step { display: flex; gap: 20px; margin-bottom: 28px; }
.step-number {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--color-primary);
}
.step-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-content p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; line-height: 1.8; }

.game-strategy-section { background: var(--color-surface); }
.strategy-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.strategy-list { list-style: none; padding: 0; margin: 16px 0; }
.strategy-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.7; }
.strategy-img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); width: 100%; }

.game-safety-section { background: var(--color-bg); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.safety-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.safety-card i { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 14px; }
.safety-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.safety-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.7; }

.game-related-section { background: var(--color-surface); }
.related-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.related-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--color-text-soft);
  font-size: 0.9rem; font-weight: 500;
  transition: border-color var(--motion-fast);
}
.related-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.related-link i { color: var(--color-primary); }

@media (max-width: 900px) {
  .game-intro-grid, .strategy-grid { grid-template-columns: 1fr; }
}

/* ===== AUTH PAGES ===== */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.auth-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-form-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}
.auth-form-card input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color var(--motion-fast);
  font-family: inherit;
}
.auth-form-card input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.auth-trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }

/* ===== POLICY PAGES ===== */
.policy-layout { max-width: 860px; margin: 0 auto; }
.policy-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.policy-toc ul { list-style: none; padding: 0; margin: 0; }
.policy-toc li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.policy-toc li:last-child { border-bottom: none; }
.policy-body h2 { color: var(--color-primary); margin: 32px 0 12px; font-size: 1.3rem; }
.policy-body p { color: var(--color-text-muted); line-height: 1.85; }
.policy-note {
  background: var(--color-primary-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.policy-note p { margin: 0; font-size: 0.9rem; }

/* ===== ABOUT PAGE ===== */
.about-story { background: var(--color-bg); }
.about-data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.about-value-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ===== FAQ PAGE ===== */
.faq-groups { padding: var(--section-y) 0; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { color: var(--color-primary); margin-bottom: 20px; font-size: 1.3rem; }

/* ===== LISTING PAGE ===== */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 50px 0 24px;
}
.footer-inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}
.footer-brand-col { }
.footer-logo { margin-bottom: 16px; height: 38px; width: auto; }
.footer-brand-desc { color: var(--color-footer-text); font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer-contact { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 12px; }
.footer-contact a { color: var(--color-primary); }

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--color-footer-text); font-size: 0.88rem; transition: color var(--motion-fast); }
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--color-text-muted); font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== FOCUS & A11Y ===== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== AOS FALLBACK ===== */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ===== SWIPER FALLBACK ===== */
.swiper:not(.swiper-initialized) { overflow-x: auto; display: flex; gap: 16px; scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide { scroll-snap-align: start; flex: 0 0 auto; }

/* ===== 404 PAGE ===== */
.page-404 { text-align: center; padding: clamp(80px, 10vw, 140px) 0; }
.page-404 h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--color-primary); margin-bottom: 16px; }

/* ===== MISC ===== */
@media (max-width: 414px) {
  body { font-size: 0.95rem; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
