/* ===== BDG GAME — KHELV-STYLE LAYOUT ===== */
:root {
  --gold: #d4a017;
  --gold2: #f0c040;
  --gold3: #ffd700;
  --bg: #1a1409;
  --darker: #0d0a04;
  --card: #231c0d;
  --card2: #2a2210;
  --text: #f5e6c8;
  --text2: #c8a96e;
  --muted: #8a7550;
  --border: #3a2e14;
  --warn-bg: #2a1a08;
  --warn-border: #8b5e1a;
  --success-bg: #0d1f0d;
  --success-border: #2a6b2a;
  --tip-bg: #0d1a2a;
  --tip-border: #1a4a8b;
  --radius: 8px;
  --max: 820px;
  --font: 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== TOPBAR ===== */
.topbar {
  background: var(--darker);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text2);
}
.topbar a { color: var(--gold3); font-weight: 600; }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--darker);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all .2s;
}
.nav-links a:hover { color: var(--gold2); background: rgba(212,160,23,.1); text-decoration: none; }
.nav-links .cta-nav a {
  background: linear-gradient(135deg,#c8900a,var(--gold2));
  color: #0d0a04;
  font-weight: 700;
  padding: 7px 16px;
}
.nav-links .cta-nav a:hover { background: linear-gradient(135deg,var(--gold2),var(--gold3)); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--gold2); border-radius: 2px; transition: all .3s; }

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0 0;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb span { margin: 0 6px; }

/* ===== HERO ===== */
.page-hero {
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 42px;
}
.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.page-hero h1 em { font-style: normal; color: var(--gold2); }
.page-hero .subtitle {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 24px;
  max-width: 600px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  background: linear-gradient(135deg,#c8900a,var(--gold2),#ffd700);
  color: #0d0a04;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(240,192,64,.4), 0 0 0 1px rgba(255,215,0,.2);
  transition: all .2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240,192,64,.55);
  text-decoration: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  background: transparent;
  color: var(--gold2);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  transition: all .2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(212,160,23,.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== QUICK-INFO BOX (like khelv's tabbed preview area) ===== */
.info-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 42px;
}
.info-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 14px;
}
.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-links-grid a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
  transition: all .2s;
  text-decoration: none;
}
.quick-links-grid a:hover {
  border-color: var(--gold);
  color: var(--gold2);
  text-decoration: none;
}

/* ===== SCREENSHOT IMAGE ===== */
.screen-ref {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.screen-ref img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.screen-ref-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  margin-bottom: 48px;
}
.content-section h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.content-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold2);
  margin: 24px 0 10px;
}
.content-section p { margin-bottom: 14px; color: var(--text); }
.content-section ul, .content-section ol {
  margin: 0 0 14px 20px;
  color: var(--text);
}
.content-section li { margin-bottom: 6px; }

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}
.info-table th {
  background: var(--card2);
  color: var(--gold2);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.info-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.info-table tr:nth-child(even) td { background: var(--card); }
.info-table tr:hover td { background: var(--card2); }

/* ===== STEPS LIST ===== */
.steps-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.steps-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#c8900a,var(--gold2));
  color: #0d0a04;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.step-text p { margin: 0; font-size: 14px; color: var(--text2); }

/* ===== QUICK LINKS SECTION ===== */
.qlinks-section {
  margin-bottom: 48px;
}
.qlinks-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* ===== INFO BOXES ===== */
.box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
}
.box-warn { background: var(--warn-bg); border-left: 4px solid var(--warn-border); }
.box-success { background: var(--success-bg); border-left: 4px solid var(--success-border); }
.box-tip { background: var(--tip-bg); border-left: 4px solid var(--tip-border); }
.box-gold { background: var(--card2); border-left: 4px solid var(--gold); }
.box strong { color: var(--text); display: block; margin-bottom: 6px; }

/* ===== FAQ ===== */
.faq-section { margin-bottom: 48px; }
.faq-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q:hover { color: var(--gold2); }
.faq-q .arrow { color: var(--gold2); font-size: 18px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 16px; font-size: 14px; color: var(--text2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p { font-size: 14px; color: var(--text2); margin-top: 10px; line-height: 1.6; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--gold2); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold2); text-decoration: none; }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold2);
  color: #0d0a04;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(240,192,64,.4);
  transition: all .2s;
  z-index: 999;
}
.back-top.show { display: flex; }
.back-top:hover { transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--darker);
    border-bottom: 2px solid var(--gold);
    padding: 16px 20px;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { padding: 28px 0 24px; }
}
