:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --accent-teal: #00d4aa;
  --accent-blue: #58a6ff;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --font-main: 'Inter', sans-serif;
  --sidebar-width: 220px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-blue); }

img { max-width: 100%; height: auto; }

/* ===== SIDEBAR NAV (desktop) ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.sidebar-logo img { width: 48px; height: 48px; border-radius: 8px; }
.sidebar-logo span { font-weight: 700; font-size: 18px; margin-left: 10px; vertical-align: middle; }

.sidebar-nav { list-style: none; flex: 1; }

.sidebar-nav li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--accent-teal);
  background: rgba(0,212,170,.06);
  border-left-color: var(--accent-teal);
}

.sidebar-cta {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.btn-teal {
  display: inline-block;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: opacity .2s;
}

.btn-teal:hover { opacity: .85; color: var(--bg-primary); }

/* ===== MOBILE NAV ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1001;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}

.hamburger {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
}

.offcanvas-backdrop.show { display: block; }

.sidebar.mobile-open { transform: translateX(0) !important; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 48px 60px;
  min-height: 70vh;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-text h1 .teal { color: var(--accent-teal); }

.hero-text h2 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-text .btn-teal { width: auto; padding: 12px 32px; font-size: 16px; }

.hero-text .disclaimer { font-size: 12px; color: var(--text-secondary); margin-top: 12px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 60px rgba(0,212,170,.15);
}

/* ===== QUICK STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 48px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 28px; font-weight: 800; color: var(--accent-teal); }
.stat-item .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ===== SECTION COMMON ===== */
.section {
  padding: 64px 48px;
}

.section-alt { background: var(--bg-secondary); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 2px solid var(--bg-primary);
}

.timeline-item .year {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.timeline-item h3 { font-size: 18px; font-weight: 600; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* ===== TABBED GAMES ===== */
.game-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.game-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s;
}

.game-tab:hover { border-color: var(--accent-teal); color: var(--text-primary); }
.game-tab.active { background: var(--accent-teal); color: var(--bg-primary); border-color: var(--accent-teal); }

.game-panel { display: none; }
.game-panel.active { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }

.game-panel img { border-radius: var(--radius); width: 280px; }
.game-panel h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.game-panel p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.game-panel .play-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ===== VIDEO SECTION ===== */
.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.video-text {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== HORIZONTAL SCROLL BONUSES ===== */
.bonus-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bonus-scroll::-webkit-scrollbar { height: 6px; }
.bonus-scroll::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 3px; }
.bonus-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.bonus-card {
  min-width: 260px;
  max-width: 260px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.bonus-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.bonus-card p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ===== STEPPER ===== */
.stepper {
  display: flex;
  position: relative;
  gap: 0;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border-color);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* ===== PAYMENT TABS ===== */
.pay-tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.pay-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s;
}

.pay-tab:hover { border-color: var(--accent-blue); color: var(--text-primary); }
.pay-tab.active { background: var(--accent-blue); color: var(--bg-primary); border-color: var(--accent-blue); }

.pay-panel { display: none; }
.pay-panel.active { display: flex; flex-wrap: wrap; gap: 10px; }

.badge-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== RATING CARD ===== */
.rating-card {
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
}

.stars { color: #f0b429; font-size: 28px; margin-bottom: 4px; letter-spacing: 2px; }
.rating-score { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.rating-card h3 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }

.rating-card ul {
  list-style: none;
  padding: 0;
}

.rating-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.rating-card ul li::before { margin-right: 8px; }
.pros li::before { content: '+'; color: #3fb950; font-weight: 700; }
.cons li::before { content: '-'; color: #f85149; font-weight: 700; }

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-grid details {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0;
}

.faq-grid summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid summary::after {
  content: '+';
  float: right;
  font-size: 18px;
  color: var(--accent-teal);
  font-weight: 700;
}

.faq-grid details[open] summary::after { content: '-'; }

.faq-grid details[open] summary {
  border-bottom: 1px solid var(--border-color);
}

.faq-grid .faq-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-grid .faq-body a { color: var(--accent-teal); }

/* ===== CTA CARD ===== */
.cta-card {
  max-width: 600px;
  border-radius: var(--radius);
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
}

.cta-card-inner {
  background: var(--bg-secondary);
  border-radius: calc(var(--radius) - 2px);
  padding: 40px;
}

.cta-card-inner h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.cta-card-inner p { color: var(--text-secondary); margin-bottom: 20px; }
.cta-card-inner .disclaimer { font-size: 12px; color: var(--text-secondary); margin-top: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent-teal); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; z-index: 1002; }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; padding-top: 56px; }

  .hero { grid-template-columns: 1fr; padding: 40px 20px; min-height: auto; text-align: center; }
  .hero-text h1 { font-size: 30px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 160px; height: 160px; }

  .stats-bar { gap: 24px; padding: 20px; }
  .stat-item .stat-num { font-size: 22px; }

  .section { padding: 40px 20px; }
  .section-title { font-size: 24px; }

  .game-panel.active { grid-template-columns: 1fr; }
  .game-panel img { width: 100%; max-width: 280px; }

  .stepper { flex-direction: column; gap: 20px; align-items: flex-start; }
  .stepper::before { top: 24px; bottom: 24px; left: 24px; width: 2px; height: auto; right: auto; }
  .step { text-align: left; padding-left: 68px; }
  .step-num { position: absolute; left: 0; }

  .faq-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .cta-card { max-width: 100%; }
  .rating-card { max-width: 100%; }
}
