/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #0d1117;
  --bg-card: #1a2035;
  --bg-panel: #141926;
  --bg-header: #0a0d14;
  --accent-green: #00c853;
  --accent-green-hover: #00e676;
  --accent-green-dim: rgba(0, 200, 83, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0aab4;
  --text-muted: #5a6475;
  --gold: #ffd700;
  --orange: #ff6b35;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo span { color: var(--accent-green); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-green);
}

.nav-link .icon { font-size: 16px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-green);
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-outline:hover { background: var(--accent-green-dim); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.btn-back:hover { color: var(--accent-green); }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.badge-green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-blue {
  background: rgba(64, 158, 255, 0.12);
  color: #409eff;
  border: 1px solid rgba(64, 158, 255, 0.3);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 200, 83, 0.3);
}

/* ===== GAME CARDS ===== */
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 200, 83, 0.4);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 12px;
}

.game-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.game-card-provider {
  font-size: 11px;
  color: var(--text-muted);
}

.game-card .btn-primary {
  width: 100%;
  text-align: center;
  padding: 7px;
  font-size: 13px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0a0d14 0%, #141926 50%, #0d1a10 100%);
  padding: 48px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title .highlight { color: var(--accent-green); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
}

/* ===== SECTION ===== */
.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0 0;
  flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--accent-green); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-secondary); }

/* ===== GAME HERO (tutorial pages) ===== */
.game-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.game-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-hero-info { flex: 1; }

.game-hero-name {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.game-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.game-hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .game-hero-inner { flex-direction: column; align-items: flex-start; }
  .game-icon { width: 72px; height: 72px; font-size: 40px; }
  .game-hero-name { font-size: 22px; }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== STEP CARDS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent-green);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== FEATURES ===== */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .features-list { grid-template-columns: 1fr; }
}

/* ===== TIPS ===== */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.tip-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.tip-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== CTA BOX ===== */
.cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0d1a10 100%);
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 32px 0;
}

.cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

/* ===== FAQ STYLES ===== */
.faq-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.faq-article-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  transform: translateX(4px);
}

.faq-article-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.faq-article-info { flex: 1; }

.faq-article-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.faq-article-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.faq-article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.faq-article-arrow {
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
}

/* FAQ Article content */
.article-body {
  max-width: 780px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--accent-green);
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.info-box {
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.info-box strong { color: var(--accent-green); }

.warning-box {
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.warning-box strong { color: var(--orange); }

/* Table */
.table-wrapper { overflow-x: auto; margin: 16px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

td strong { color: var(--text-primary); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
  margin-top: 48px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-logo span { color: var(--accent-green); }

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--accent-green); }

/* ===== UTILITIES ===== */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.fw-700 { font-weight: 700; }
