/* ==========================================================================
   666D Game — core stylesheet (loaded on every page)
   Simple, light design: white background, dark text, lime-green accent
   (matched to the real in-app register/button color).
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8f4;
  --surface: #f2f4ef;
  --card: #ffffff;
  --border: rgba(10, 15, 8, 0.10);
  --border-strong: rgba(10, 15, 8, 0.18);
  --text: #15170f;
  --text-dim: #3d4136;
  --text-mute: #6c7166;
  --green: #7bc72e;
  --green-bright: #8fd936;
  --green-deep: #3f7f16;
  --green-text: #4c8f1b;
  --green-ink: #0a0a0b;
  --danger: #c0293a;
  --warn: #966009;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 32px -20px rgba(20, 30, 10, 0.22);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-text); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green);
  color: var(--green-ink);
}
.btn-primary:hover { background: var(--green-bright); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); text-decoration: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-wide { min-width: 150px; box-shadow: 0 14px 30px -10px rgba(123, 199, 46, 0.55); }
@media (min-width: 480px) { .btn-wide { min-width: 220px; } }
@media (max-width: 380px) {
  .hero-ctas { gap: 8px; flex-wrap: nowrap; }
  .hero-ctas .btn-lg { padding: 13px 16px; font-size: 0.92rem; }
}

/* ---------------------------------- Navbar ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { height: 28px; width: auto; }
.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text-dim); font-weight: 600; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------------------------------- Breadcrumb -------------------------- */
.crumb { font-size: 0.82rem; color: var(--text-mute); padding: 14px 0 0; }
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: var(--green-deep); }
.crumb span[aria-current] { color: var(--text-dim); }

/* ---------------------------------- Hero -------------------------------- */
.hero { background: var(--bg-alt); padding: 40px 0 52px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }
.hero h1 { margin-bottom: 14px; }
.hero-sub { font-size: 1.05rem; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.82rem; color: var(--text-mute); margin-top: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot-pip { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-logo-card {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.hero-logo-card img { width: min(220px, 60vw); height: auto; }

/* ---------------------------------- Stat cards --------------------------- */
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card b { display: block; font-size: 1.35rem; color: var(--green-deep); font-weight: 800; }
.stat-card span { font-size: 0.78rem; color: var(--text-mute); }

/* ---------------------------------- Sticky pill TOC ----------------------- */
.toc-bar { position: sticky; top: 61px; z-index: 40; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border); }
.toc-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px; max-width: var(--container); margin: 0 auto; scrollbar-width: none; }
.toc-scroll::-webkit-scrollbar { display: none; }
.toc-scroll a {
  flex: 0 0 auto; font-size: 0.8rem; font-weight: 700; color: var(--text-mute);
  background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; white-space: nowrap;
}
.toc-scroll a:hover, .toc-scroll a.active { color: var(--green-ink); background: var(--green); border-color: var(--green); text-decoration: none; }

/* ---------------------------------- Sections ------------------------------ */
.section { padding: 52px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-alt { background: var(--bg-alt); }

/* ---------------------------------- Feature grid ----------------------- */
.hex-badge {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--green-ink);
  font-weight: 800; font-size: 1.05rem; flex: none;
}
.hex-badge.alt { background: var(--surface); border: 1px solid var(--border-strong); color: var(--green-deep); }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.feature-card, .game-card, .blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-card { display: flex; flex-direction: column; gap: 12px; }
.feature-card h3 { margin: 0; }
.feature-card p { margin: 0; font-size: 0.94rem; }

.game-card { position: relative; }
.game-card .tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--green-ink); background: var(--green);
  padding: 4px 9px; border-radius: 6px; text-transform: uppercase; margin-bottom: 10px;
}
.game-card h3 { margin: 0 0 8px; }
.game-card p { font-size: 0.92rem; margin: 0; }

/* ---------------------------------- Steps -------------------------------- */
.steps { display: grid; gap: 14px; margin-top: 10px; }
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--green-deep); font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: 0.93rem; }

/* ---------------------------------- Callouts ------------------------------ */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  margin: 20px 0;
}
.callout b, .callout strong { color: var(--text); }
.callout-tip { border-left: 3px solid var(--green); }
.callout-risk { border-left: 3px solid var(--danger); }
.callout-warn { border-left: 3px solid var(--warn); }

/* ---------------------------------- FAQ ----------------------------------- */
.faq { display: grid; gap: 10px; margin-top: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; font-weight: 700; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; color: var(--green-deep); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 0 16px; font-size: 0.93rem; }

/* ---------------------------------- Pros/cons ------------------------------ */
.pros-cons { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pc-col { border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); background: var(--bg); }
.pc-col.good { border-top: 3px solid var(--green); }
.pc-col.bad { border-top: 3px solid var(--danger); }
.pc-col h3 { margin: 0 0 10px; font-size: 1rem; }
.pc-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.pc-col li { padding-left: 22px; position: relative; }
.pc-col.good li::before { content: "\2713"; position: absolute; left: 0; color: var(--green-deep); font-weight: 800; }
.pc-col.bad li::before { content: "\2717"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }

/* ---------------------------------- CTA banner ------------------------------ */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  background: var(--green);
  color: var(--green-ink);
  text-align: center;
}
.cta-band h2 { color: var(--green-ink); margin-bottom: 8px; }
.cta-band p { color: rgba(10,10,11,0.75); max-width: 56ch; margin: 0 auto 20px; }
.cta-band .btn-outline { color: var(--green-ink); border-color: rgba(10,10,11,0.3); }
.cta-band .btn-outline:hover { border-color: var(--green-ink); color: var(--green-ink); }

/* ---------------------------------- Footer ------------------------------ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 46px 0 24px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { height: 26px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; max-width: 32ch; }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-mute); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-dim); font-size: 0.88rem; }
.footer a:hover { color: var(--green-deep); }
.footer-legal {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-mute);
}
.footer-disclaimer { font-size: 0.78rem; color: var(--text-mute); margin-top: 16px; line-height: 1.6; border-top: 1px solid var(--border); padding-top: 16px; }

/* ---------------------------------- Utility ------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--text-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.updated { display: none; }
