/* ======================================================
   content.css  —  below-the-fold content sections only
   • No gap before footer
   • No broken sentences on mobile (max-width: 100%)
   • White section accent on section 1
   • Zero conflict with game CSS
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Tokens (--c- prefix — safe from game vars) ── */
:root {
  --c-green:   #aecc6e;
  --c-glt:     #d4e8a0;
  --c-ink:     #0c0e09;
  --c-surface: #111408;
  --c-card:    #161b0d;
  --c-border:  rgba(174, 204, 110, 0.14);
  --c-dim:     rgba(220, 235, 190, 0.62);
  --c-white:   #eef3e2;
  --c-font:    'DM Sans', Arial, sans-serif;
  --c-mono:    'Space Mono', monospace;
  --c-radius:  16px;
}

/* ── Dark background fixes — kills ALL green bleed ──
   Green shows in 3 places: right side overflow, bottom gap, around footer.
   These three rules kill all three. ── */

/* 1. html background dark = bottom gap gone */
html {
  background: var(--c-ink);
  overflow-x: hidden; /* 2. right side bleed gone */
}

/* 3. footer wrapper dark = green around footer gone */
#footer {
  background: var(--c-ink);
  overflow-x: hidden;
}

/* ── Wrapper ── */
.below-bg {
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  /* extend past any stray body background */
  padding-bottom: 1px;
  background: var(--c-ink);
  border-top: 1px solid var(--c-border);
  font-family: var(--c-font);
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ── Kill the green body gap before footer ──
   The footer sits in a div outside .below-bg.
   We give .below-bg a large negative margin-bottom
   so it overlaps into any leftover body background. */
.below-bg + * {
  margin-top: 0 !important;
}

/* ── Section shell ── */
.info-section {
  width: 100%;
  box-sizing: border-box;
  padding: 90px 48px;
  background: var(--c-ink);
  color: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

/* last section — no border so footer sits flush */
.below-bg > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 90px;
}

/* glow orb */
.info-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(174,204,110,0.09) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.info-section:nth-child(even)::before {
  left: -100px; right: auto;
}

/* remaining sections — dark */
.info-section:nth-child(even)   { background: var(--c-surface); }
.live-stats-section              { background: #090f07; }
.info-banner-section             { background: #07100a; }
.completed-levels-section        { background: #060e07; }

/* ── Centered container ── */
.info-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* KEY: prevents text from stretching full width and breaking weirdly */
  width: 100%;
}

/* ── Eyebrow ── */
.info-title {
  font-family: var(--c-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 14px;
  display: block;
  text-shadow: 0 0 16px rgba(174,204,110,0.5);
}

/* ── Big headline ── */
.info-section .section-headline {
  font-family: var(--c-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 26px;
  letter-spacing: -0.03em;
  /* prevents headline breaking mid-word */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── Body copy ── */
.info-section p {
  font-family: var(--c-font);
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-dim);
  margin-bottom: 20px;
  /* KEY: full width so text wraps cleanly, no orphan words */
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ── Sub-heading ── */
.info-section h3 {
  font-family: var(--c-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-glt);
  margin: 48px 0 18px;
  text-shadow: 0 0 12px rgba(212,232,160,0.35);
}

/* ── SEO keyword bold ── */
.info-section p strong {
  color: inherit;
  font-weight: 700;
  background: rgba(174,204,110,0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Feature list ── */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  background: var(--c-card);
  /* li uses position:relative for the → arrow */
  position: relative;
}

.info-list li {
  /* display:block lets inline text + <strong> flow naturally */
  display: block;
  padding: 16px 22px 16px 46px; /* left indent makes room for the → arrow */
  position: relative;
  border-bottom: 1px solid var(--c-border);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-dim);
  font-family: var(--c-font);
  transition: background 0.2s;
  word-break: normal;
  overflow-wrap: break-word;
}

.info-list li:hover   { background: rgba(174,204,110,0.05); }
.info-list li:last-child { border-bottom: none; }

.info-list li::before {
  content: '→';
  font-family: var(--c-mono);
  font-size: 12px;
  color: var(--c-green);
  text-shadow: 0 0 8px rgba(174,204,110,0.5);
  position: absolute;
  left: 20px;
  top: 18px; /* aligns with first line of text */
}

.info-list li strong {
  color: var(--c-white);
  font-weight: 700;
}

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  margin: 36px 0;
  box-shadow: 0 0 36px rgba(174,204,110,0.07);
}

.stat-cell {
  background: var(--c-card);
  padding: 28px 12px;
  text-align: center;
  transition: background 0.2s;
}

.stat-cell:hover { background: rgba(174,204,110,0.06); }

.stat-cell .num {
  font-family: var(--c-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--c-green);
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(174,204,110,0.5);
}

.stat-cell .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
  font-family: var(--c-font);
}

/* ── CTA card ── */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 32px 36px;
  margin-top: 48px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
  width: 100%;
}

.cta-card:hover {
  border-color: var(--c-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(174,204,110,0.13);
}

.cta-card .cta-text { min-width: 0; flex: 1; }

.cta-card .cta-text .eyebrow {
  font-family: var(--c-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(174,204,110,0.45);
}

.cta-card .cta-text strong {
  font-family: var(--c-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cta-card .cta-text p {
  font-size: 15px;
  color: var(--c-dim);
  margin: 0;
  line-height: 1.6;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

.cta-card .cta-arrow {
  font-family: var(--c-mono);
  font-size: 28px;
  color: var(--c-green);
  flex-shrink: 0;
  transition: transform 0.25s;
  text-shadow: 0 0 14px rgba(174,204,110,0.65);
}

.cta-card:hover .cta-arrow { transform: translateX(6px); }

/* ── Tip box ── */
.tip-box {
  background: rgba(174, 204, 110, 0.05);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-green);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 16px;
  color: var(--c-dim);
  line-height: 1.75;
  font-family: var(--c-font);
  word-break: normal;
  overflow-wrap: break-word;
}

.tip-box strong {
  color: var(--c-glt);
  text-shadow: 0 0 10px rgba(212,232,160,0.3);
}

/* section-gap: kill it everywhere */
.section-gap { display: none; }

/* ── Kill green body background gap before footer ──
   The body is #aecc6e so any exposed gap shows as green.
   This makes the #footer container inherit the dark background. */
#footer {
  background: var(--c-ink);
  margin-top: 0 !important;
}

/* Also covers the gap if there's a div#footer wrapper */
body > #footer,
body > div > #footer {
  background: var(--c-ink);
}

/* ══════════════════════════════════════
   MOBILE  ≤ 768px
   • Full-width padding so text never breaks at edge
   • Flush to footer (no extra bottom space)
   • Stat grid 2-col
   • CTA card stacks vertically
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  .below-bg {
    overflow-x: hidden;
    width: 100%;
    margin-top: 24px;
  }

  .info-section {
    /* ✅ generous side padding stops sentences breaking at screen edge */
    padding: 56px 22px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  /* last section still flush to footer on mobile */
  .below-bg > section:last-child {
    padding-bottom: 56px;
  }

  .info-section::before {
    width: 180px; height: 180px;
    top: -50px; right: -50px;
  }

  .info-section .section-headline {
    font-size: 28px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .info-section p {
    font-size: 15px;
    /* full width on mobile = no mid-sentence break */
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .info-section h3 { margin: 36px 0 14px; }

  /* 2-column stat grid on mobile */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell .num { font-size: 32px; }
  .stat-cell { padding: 20px 10px; }

  /* list items — slightly smaller but still readable */
  .info-list li {
    font-size: 14px;
    padding: 14px 16px 14px 40px; /* indent for arrow */
    word-break: normal;
    overflow-wrap: break-word;
  }

  .info-list li::before {
    left: 14px;
    top: 16px;
  }

  /* CTA card stacks on mobile */
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    gap: 16px;
    margin-top: 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .cta-card .cta-text strong { font-size: 18px; }

  .cta-card .cta-text p {
    font-size: 13px;
    max-width: 100%;
  }

  .cta-card .cta-arrow {
    align-self: flex-end;
    font-size: 22px;
  }

  .tip-box {
    font-size: 14px;
    padding: 16px 16px;
  }
}