/* ============================================================
   666baji-game.com - Global Stylesheet
   Style DNA: Mixed aggregation-dispatch + long-form SEO
   Primary: #f5a623 | Accent: #e8520a | Dark BG: #0d1b2a
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-primary: #f5a623;
  --color-primary-dark: #e8520a;
  --color-accent: #ffd700;
  --color-bg-dark: #0d1b2a;
  --color-bg-mid: #132236;
  --color-bg-card: #1a2e48;
  --color-bg-card-hover: #1f3655;
  --color-bg-section-alt: #0f2035;
  --color-text: #e8edf2;
  --color-text-muted: #8fa3b8;
  --color-text-heading: #ffffff;
  --color-border: rgba(245,166,35,0.2);
  --color-border-light: rgba(255,255,255,0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-hover: 0 8px 32px rgba(245,166,35,0.2);
  --shadow-btn: 0 4px 16px rgba(232,82,10,0.4);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --transition: 0.25s ease;
  --container-max: 1280px;
  --header-height: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  background-color: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Topbar ---- */
.topbar {
  background: #0a1520;
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-badge {
  background: var(--color-primary);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- Header ---- */
.site-header {
  background: var(--color-bg-mid);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img,
.site-logo svg {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ---- Main Navigation ---- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(245,166,35,0.12);
  color: var(--color-primary);
}

/* ---- Header CTA Buttons ---- */
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-register {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-btn);
  animation: bounce-btn 2.5s infinite;
}
@keyframes bounce-btn {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}
.btn-register:hover {
  background: linear-gradient(90deg, #ffb83a, #f06020);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232,82,10,0.5);
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---- Mobile Menu Toggle ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Mobile Nav Drawer ---- */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg-mid);
  border-bottom: 2px solid var(--color-primary);
  z-index: 999;
  padding: 16px 20px;
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-drawer a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
}
.mobile-nav-drawer a:hover { color: var(--color-primary); }
.mobile-nav-cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mobile-nav-cta .btn { flex: 1; justify-content: center; }

/* ---- Hero Banner ---- */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-dark);
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ---- Section Base ---- */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--color-bg-section-alt);
}
.section-dark {
  background: #0a1520;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}
.section-title span { color: var(--color-primary); }
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.section-header { margin-bottom: 36px; }
.section-header.center { text-align: center; }

/* ---- Shortcut Icon Grid ---- */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.shortcut-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.shortcut-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.shortcut-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.shortcut-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

/* ---- Feature Cards (4-col) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.feature-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- Game Category Cards (2-col) ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.game-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}
.game-card-header {
  background: linear-gradient(135deg, var(--color-bg-mid), var(--color-bg-card));
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.game-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.game-card-header h3 {
  font-size: 20px;
  color: var(--color-text-heading);
}
.game-card-header p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.game-card-body { padding: 20px 24px 24px; flex: 1; }
.game-card-body p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.game-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.game-tag {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-card:hover {
  color: #fff;
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
}

/* ---- Content Feed / Article Cards ---- */
.content-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.article-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.article-card-body { padding: 16px; }
.article-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.article-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card h4 a { color: var(--color-text-heading); }
.article-card h4 a:hover { color: var(--color-primary); }
.article-card p { font-size: 13px; color: var(--color-text-muted); }

/* ---- Promotion Banner Strip ---- */
.promo-strip {
  background: linear-gradient(90deg, #1a0a00, var(--color-bg-card), #1a0a00);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-strip-text h3 { font-size: 22px; color: var(--color-primary); margin-bottom: 6px; }
.promo-strip-text p { font-size: 14px; color: var(--color-text-muted); }
.promo-strip-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* ---- Steps / Process ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
}
.step-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--color-primary); }
.step-item p { font-size: 13px; color: var(--color-text-muted); }

/* ---- Long-form Content Area ---- */
.longform-content {
  max-width: 900px;
  margin: 0 auto;
}
.longform-content h2 {
  font-size: 24px;
  color: var(--color-primary);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.longform-content h3 {
  font-size: 19px;
  color: var(--color-text-heading);
  margin: 24px 0 10px;
}
.longform-content p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.8;
}
.longform-content ul,
.longform-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.longform-content ul { list-style: disc; }
.longform-content ol { list-style: decimal; }
.longform-content li {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.7;
}
.longform-content strong { color: var(--color-primary); }
.longform-content a { color: var(--color-primary); text-decoration: underline; }

/* ---- Info Box ---- */
.info-box {
  background: rgba(245,166,35,0.07);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box p { margin: 0; font-size: 14px; }

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--color-text-muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--color-text-heading);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-stack);
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(245,166,35,0.06); }
.faq-question.open { color: var(--color-primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  background: rgba(245,166,35,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-primary);
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--color-border-light);
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--color-primary); }

/* ---- YouTube Video Module ---- */
.video-section { text-align: center; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 860px;
  margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, #1a0a00, var(--color-bg-card), #0d1b2a);
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  text-align: center;
  padding: 64px 20px;
}
.cta-section h2 { font-size: 32px; margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition);
}
.btn-cta-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,82,10,0.5); }
.btn-cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-cta-secondary:hover { background: var(--color-primary); color: #fff; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 6px; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-bg-mid), var(--color-bg-dark));
  border-bottom: 2px solid var(--color-border);
  padding: 48px 0 36px;
}
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--color-text-muted); max-width: 640px; }

/* ---- Archive / Listing Grid ---- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.archive-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.archive-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.archive-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-bg-mid), var(--color-bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.archive-card-body { padding: 20px; }
.archive-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.archive-card h3 { font-size: 17px; margin-bottom: 10px; }
.archive-card h3 a { color: var(--color-text-heading); }
.archive-card h3 a:hover { color: var(--color-primary); }
.archive-card p { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.archive-card-meta { font-size: 12px; color: var(--color-text-muted); }

/* ---- Sidebar Layout ---- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-link-list li { margin-bottom: 10px; }
.sidebar-link-list a {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-link-list a:hover { color: var(--color-primary); }

/* ---- Contact Form ---- */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-stack);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-error { font-size: 12px; color: #ff6b6b; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-success {
  background: rgba(122,156,89,0.15);
  border: 1px solid #7a9c59;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #a8d08d;
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ---- Contact Info Block ---- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-info-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.contact-info-item .ci-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.contact-info-item h4 { font-size: 15px; color: var(--color-primary); margin-bottom: 6px; }
.contact-info-item p { font-size: 14px; color: var(--color-text-muted); }

/* ---- Policy / Terms Content ---- */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h2 {
  font-size: 22px;
  color: var(--color-primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.policy-content h3 { font-size: 18px; margin: 20px 0 8px; }
.policy-content p { font-size: 15px; color: var(--color-text); margin-bottom: 14px; line-height: 1.8; }
.policy-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.policy-content li { font-size: 15px; color: var(--color-text); margin-bottom: 6px; }

/* ---- Footer ---- */
.site-footer {
  background: #080f1a;
  border-top: 2px solid var(--color-border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-light);
}
.footer-brand img,
.footer-brand svg {
  height: 40px;
  width: auto;
  max-width: 160px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: var(--color-text-muted); }
.footer-col ul a:hover { color: var(--color-primary); }
.footer-contact-list li {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-list li strong { color: var(--color-text); min-width: 60px; }
.footer-contact-list a { color: var(--color-text-muted); }
.footer-contact-list a:hover { color: var(--color-primary); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--color-text-muted); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--color-primary); }

/* ---- 404 Page ---- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}
.error-page h2 { font-size: 28px; margin-bottom: 12px; }
.error-page p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 32px; }
.error-nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
}
.badge-new {
  background: #e8520a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}
.highlight-box {
  background: rgba(245,166,35,0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .content-feed { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-cta .btn-login { display: none; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-feed { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .promo-strip { flex-direction: column; text-align: center; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .cta-section h2 { font-size: 24px; }
  .site-logo img, .site-logo svg { height: 36px; max-height: 36px; }
  .hero-banner img, .hero-banner svg { max-height: 220px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .btn { padding: 8px 16px; font-size: 13px; }
  .error-code { font-size: 80px; }
}
