/* A Walk Through the Ledger: XRPL Education Month */

@font-face {
  font-family: "Bangers";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bangers-400.woff2?v=1") format("woff2");
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka.woff2?v=1") format("woff2");
}

:root {
  --sky-0: #040507;
  --sky-1: #090a0f;
  --sky-2: #0f1116;
  --sky-3: #1d1d1d;
  --purple: #8a6e12;
  --purple-bright: #ffd04d;
  --gold: #e8c047;
  --gold-soft: #f6e3a1;
  --cream: #e0e0e0;
  --paper: #e0e0e0;
  --ink: #0b0d13;
  --ink-soft: #383838;
  --coral: #ff6b6b;
  --teal: #e2b864;
  --mint: #ffd04d;
  --muted: #a0a0a0;
  --line: rgba(247, 243, 228, 0.14);
  --shadow: 0 16px 40px rgba(2, 3, 4, 0.45);
  --font-display: "Bangers", "Impact", "Haettenschweiler", "Arial Black", cursive;
  --font-ui: "Fredoka", "Segoe UI", "Trebuchet MS", sans-serif;
  --nav-h: 58px;
  --app-h: 100dvh;
  --pad: clamp(18px, 4vw, 36px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  background: var(--sky-0);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-t) + 10px);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(138, 110, 18, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(226, 184, 100, 0.12), transparent 55%),
    var(--sky-0);
  color: var(--cream);
}

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

a { color: var(--gold); }

button, .btn {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

#error-banner {
  position: sticky;
  top: calc(var(--nav-h) + var(--safe-t));
  z-index: 60;
  background: #7a2e3a;
  color: #fff;
  padding: 10px var(--pad);
  font-size: 0.95rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-t);
  background: rgba(4, 5, 7, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
  padding: 6px max(var(--pad), calc(var(--pad) + var(--safe-r))) 6px max(var(--pad), calc(var(--pad) + var(--safe-l)));
}

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.05;
}
.brand-mark {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--gold);
}
.brand-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }

#site-nav {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#site-nav::-webkit-scrollbar { display: none; }
#site-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  width: max-content;
}
#site-nav a {
  display: inline-block;
  padding: 8px 11px;
  min-height: 36px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
#site-nav a[aria-current="true"],
#site-nav a:hover,
#site-nav a:focus-visible {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(var(--app-h, 100vh) - var(--nav-h) - var(--safe-t));
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 24px max(var(--pad), calc(var(--pad) + var(--safe-r))) calc(36px + var(--safe-b)) max(var(--pad), calc(var(--pad) + var(--safe-l)));
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: twinkle 3.6s ease-in-out infinite;
}
.star.gold {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 192, 71, 0.9);
  width: 4px;
  height: 4px;
}
.constellation {
  position: absolute;
  inset: 8% 8% auto 8%;
  height: 42%;
  width: auto;
  opacity: 0.55;
}
.constellation line { stroke: rgba(238, 210, 119, 0.45); stroke-width: 1.2; }
.constellation circle { fill: #fff; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-bottom: 8px;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: clamp(3rem, 12vw, 6.4rem);
  line-height: 0.92;
  margin: 0 0 14px;
  color: var(--cream);
  text-shadow: 0 6px 0 rgba(0,0,0,0.25);
}
.lede {
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 243, 228,0.35);
}

.hero-cast {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 28px 0 8px;
}
.hero-bear {
  position: absolute;
  right: max(0px, var(--safe-r));
  top: calc(10px + var(--safe-t));
  width: min(36vw, 150px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.45));
}
.hero-bear img { width: 100%; height: auto; }
@media (min-width: 800px) {
  .hero-bear {
    top: auto;
    bottom: 0;
    width: min(40vw, 300px);
  }
}

/* ---------- Chapters ---------- */
.chapter {
  position: relative;
  padding: 72px max(var(--pad), calc(var(--pad) + var(--safe-r))) 72px max(var(--pad), calc(var(--pad) + var(--safe-l)));
  border-top: 1px solid var(--line);
}
.chapter-inner { max-width: 1080px; margin: 0 auto; }
.chapter h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.98;
  margin: 0 0 8px;
  color: var(--cream);
}
.chapter-num {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.chapter-lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 38em;
}

.chapter-paper {
  background:
    linear-gradient(180deg, rgba(253, 249, 236,0.04), transparent 40%),
    var(--sky-1);
}
.chapter-gold { background: linear-gradient(180deg, #0d0e14, #191919 80%); }
.chapter-teal { background: linear-gradient(180deg, #0b0d13, #0d0e14); }
.chapter-cream {
  background: var(--paper);
  color: var(--ink);
}
.chapter-cream h2 { color: var(--ink); }
.chapter-cream .chapter-lead { color: var(--ink-soft); }

.scene {
  display: grid;
  gap: 22px;
}
@media (min-width: 840px) {
  .scene { grid-template-columns: 1fr 1fr; align-items: start; }
  .scene .lesson, .scene .interactive, .scene .portal { grid-column: 2; }
  .scene .cast { grid-column: 1; grid-row: 1 / span 6; }
}

.cast {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.speech {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 10px;
  align-items: start;
}
.speech .fig { grid-row: 1 / span 2; }
.bubble {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px 18px 18px 6px;
  padding: 12px 14px;
  font-size: 1.02rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
  position: relative;
}
.chapter-cream .bubble {
  background: #fff;
  border: 2px solid rgba(11, 13, 19, 0.08);
  box-shadow: 0 8px 20px rgba(11, 13, 19, 0.08);
}
.bubble strong { color: var(--purple); }
.who {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 4px;
}
.chapter-cream .who { color: var(--purple); }

.lesson, .interactive, .card {
  background: rgba(253, 249, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 18px;
}
.chapter-cream .lesson,
.chapter-cream .interactive,
.chapter-cream .card {
  background: #fff;
  border-color: rgba(11, 13, 19,0.08);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 13, 19,0.06);
}
.lesson h3, .interactive h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.lesson p, .interactive p, .card p { margin: 0 0 10px; }
.lesson p:last-child, .interactive p:last-child { margin-bottom: 0; }
.fact {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 12px;
  color: var(--gold-soft);
  font-size: 0.98rem;
  margin: 12px 0 0;
}
.chapter-cream .fact { color: var(--ink-soft); }

/* ---------- Stick figures ---------- */
.fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
  flex: 0 0 auto;
}
.fig-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}
.chapter-cream .fig-name { color: var(--ink-soft); }
.stick {
  width: 92px;
  height: auto;
  overflow: visible;
  display: block;
}
.stick line, .stick .torso {
  stroke: #0b0d13;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.stick .head circle:first-child {
  stroke: #0b0d13;
  stroke-width: 3;
}

.stick .arm-l, .stick .arm-r, .stick .leg-l, .stick .leg-r {
  transform-box: view-box;
}
.stick .arm-l, .stick .arm-r { transform-origin: 40px 54px; }
.stick .leg-l, .stick .leg-r { transform-origin: 40px 80px; }
.stick-pip .leg-l, .stick-pip .leg-r { transform-origin: 40px 70px; }
.stick-pip .arm-l, .stick-pip .arm-r { transform-origin: 40px 48px; }

.pose-wave .arm-r { animation: wave 1.6s ease-in-out infinite; }
.pose-jump { animation: hop 1.2s ease-in-out infinite; }
.pose-walk .leg-l { animation: stride 0.7s ease-in-out infinite; }
.pose-walk .leg-r { animation: stride 0.7s ease-in-out infinite reverse; }
.pose-walk .arm-l { animation: stride 0.7s ease-in-out infinite reverse; }
.pose-walk .arm-r { animation: stride 0.7s ease-in-out infinite; }

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes stride {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-16deg); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-cast .fig { width: 96px; }
.hero-cast .stick { width: 96px; }
.hero-copy { padding-top: 12px; }
@media (min-width: 800px) {
  .hero-copy { max-width: 680px; padding-right: 24px; }
}

/* ---------- Interactives ---------- */
#agree-game { text-align: center; }
.validators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 12px;
}
.validators button {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(247, 243, 228,0.16);
  border-radius: 16px;
  padding: 6px 4px 8px;
  min-width: 76px;
  color: inherit;
}
.validators button[aria-pressed="true"] {
  border-color: var(--mint);
  background: rgba(242, 221, 151, 0.12);
}
.validators .fig, .validators .stick { width: 72px; }
#agree-status { min-height: 3em; margin: 0 0 10px; }
#agree-game.is-agreed #agree-status { color: var(--mint); font-weight: 600; }

.spark-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#ffe3e3-spark {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6e3a1, var(--gold) 40%, #d59c29 75%);
  box-shadow: 0 0 0 6px rgba(232, 192, 71,0.25), 0 10px 24px rgba(0,0,0,0.3);
  position: relative;
}
#ffe3e3-spark .spark-core {
  font-size: 1.6rem;
  line-height: 92px;
}
#ffe3e3-spark.is-burned {
  animation: burn 1.1s ease forwards;
}
@keyframes burn {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(0.3); opacity: 0.5; filter: blur(2px); }
  100% { transform: scale(0.05); opacity: 0; }
}
#ffe3e3-spark-note { text-align: center; min-height: 2.6em; margin: 0; }

.ledger-stage {
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#ledger-flip {
  width: min(100%, 260px);
  height: 170px;
  position: relative;
}
.page {
  position: absolute;
  inset: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 8px 10px 0 rgba(0,0,0,0.18), 0 0 0 1px rgba(11, 13, 19,0.08);
  padding: 16px 18px;
  font-weight: 700;
}
.page small { display: block; font-weight: 500; color: var(--ink-soft); margin-top: 8px; }
.page-back { transform: translate(10px, 10px) rotate(-3deg); opacity: 0.7; }
#ledger-flip.is-flipping .page-front {
  animation: pageflip 0.8s ease;
}
@keyframes pageflip {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(-80deg); }
  100% { transform: rotateY(0); }
}

.riddle-q {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
}
#riddle-answer {
  background: rgba(232, 192, 71, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 0;
}
.ticket-egg {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px dashed rgba(11, 13, 19,0.25);
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(11, 13, 19,0.38);
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(11, 13, 19,0.05) 8px 9px);
}

.locker-tag {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

/* ---------- Portals / explore ---------- */
.portal, .explore-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(253, 249, 236,0.09), rgba(253, 249, 236,0.03));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  min-height: 48px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.portal:hover, .explore-card:hover,
.portal:focus-visible, .explore-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.chapter-cream .portal {
  background: #fff;
  color: var(--ink);
  border-color: rgba(11, 13, 19,0.1);
  box-shadow: 0 10px 24px rgba(11, 13, 19,0.06);
}
.portal-kind, .explore-card .kind {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.portal strong, .explore-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.portal > span:not(.portal-kind):not(.portal-go),
.explore-card > span:not(.kind):not(.go) { display: block; }
.portal-go, .explore-card .go {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--gold);
}
.chapter-cream .portal-go { color: #8a6e12; }

.cameo {
  display: grid;
  gap: 14px;
  align-items: center;
  background: rgba(253, 249, 236,0.06);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-top: 8px;
}
.cameo img {
  width: 100%;
  border-radius: 14px;
}
.cameo p { margin: 0; }
@media (min-width: 640px) {
  .cameo { grid-template-columns: 180px 1fr; }
}

.explore-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .explore-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ---------- Quiz ---------- */
.q {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.q:last-of-type { border-bottom: 0; }
.q h3 { margin: 0 0 10px; font-size: 1.08rem; }
.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-options button {
  text-align: left;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(247, 243, 228,0.2);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font-size: 1rem;
}
.q-options button.is-right {
  border-color: var(--mint);
  background: rgba(242, 221, 151, 0.16);
}
.q-options button.is-wrong {
  border-color: var(--coral);
  background: rgba(255, 138, 122, 0.12);
}
.q-options button:disabled { opacity: 0.95; }
.q-feedback { margin: 10px 0 0; font-weight: 600; }
#quiz-result {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: var(--gold-soft);
  min-height: 1.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px max(var(--pad), calc(var(--pad) + var(--safe-r))) calc(28px + var(--safe-b)) max(var(--pad), calc(var(--pad) + var(--safe-l)));
  border-top: 1px solid var(--line);
  background: #030406;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .inner { max-width: 1080px; margin: 0 auto; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--gold-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .star, .pose-wave .arm-r, .pose-walk .leg-l, .pose-walk .leg-r, .pose-walk .arm-l, .pose-walk .arm-r, .pose-jump,
  #ffe3e3-spark.is-burned, #ledger-flip.is-flipping .page-front {
    animation: none !important;
  }
}

/* iPhone home-indicator breathing room for last chapter */
.chapter:last-of-type { padding-bottom: calc(48px + var(--safe-b)); }


@media (max-width: 799px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding-top: 8px;
  }
  .hero-bear {
    position: relative;
    top: auto;
    right: auto;
    width: 132px;
    align-self: flex-end;
    margin: 0 0 -36px;
    z-index: 1;
    order: -1;
  }
  .hero-copy { z-index: 2; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 799px) and (max-height: 720px) {
  .hero-bear { width: 110px; margin-bottom: -28px; }
}

/* Stick-figure name aliases (Sol / Luna / Gaia) */
.stick-sol .arm-l, .stick-sol .arm-r { transform-origin: 40px 54px; }
.stick-luna .arm-l, .stick-luna .arm-r { transform-origin: 40px 54px; }
.stick-gaia .leg-l, .stick-gaia .leg-r { transform-origin: 40px 70px; }
.stick-gaia .arm-l, .stick-gaia .arm-r { transform-origin: 40px 48px; }

/* ---------- Quiet Easter eggs & Buzz the bee ---------- */
.egg-compass {
  position: absolute;
  right: 7%;
  top: 6%;
  width: min(22vw, 150px);
  height: auto;
  opacity: 0.16;
  color: #f6e3a1;
  pointer-events: none;
  z-index: 0;
}
.egg-compass path,
.egg-compass circle { stroke: currentColor; fill: none; }
.egg-compass .egg-g {
  fill: currentColor;
  stroke: none;
  font-family: "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.bumblebee {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  flex: 0 0 auto;
  animation: bee-hover 2.2s ease-in-out infinite;
}
.bee-svg { width: 84px; height: auto; display: block; overflow: visible; }
.bee-svg .wing-l,
.bee-svg .wing-r {
  transform-box: fill-box;
  transform-origin: center;
  animation: wing-flap 0.28s ease-in-out infinite;
}
.bee-svg .wing-r { animation-direction: reverse; }
.hero-cast .bumblebee { width: 80px; margin-left: 2px; }
.hero-cast .bee-svg { width: 80px; }

@keyframes bee-hover {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}
@keyframes wing-flap {
  0%, 100% { transform: rotate(10deg) scaleY(1); }
  50% { transform: rotate(-18deg) scaleY(0.72); }
}

.bee-with-hive {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
}
.beehive-svg {
  width: 56px;
  height: auto;
  margin-top: -6px;
  display: block;
}

.pillars {
  position: absolute;
  inset: 24px 0 auto;
  height: 160px;
  pointer-events: none;
  opacity: 0.13;
  z-index: 0;
}
.pillars svg {
  width: 100%;
  height: 160px;
  display: block;
}
#notebook .chapter-inner { position: relative; z-index: 1; }

.egg-euclid-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 0;
  opacity: 0.32;
}
.egg-euclid { width: 88px; height: auto; color: #5a4c20; }
.chapter-cream .egg-euclid { color: #4a3f1c; }

.egg-tools-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 0;
  opacity: 0.4;
}
.egg-tools { width: 132px; height: auto; color: var(--gold-soft); }

.ashlar-pair {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 12px 0 2px;
  opacity: 0.55;
}
.ashlar-pair svg { width: 64px; height: auto; color: #5a4c20; }
.ashlar-cap {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 13, 19,0.45);
  text-align: center;
  margin-top: 2px;
}

.watcher-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  position: relative;
}
.egg-eye {
  width: 42px;
  height: auto;
  color: var(--gold-soft);
  opacity: 0.55;
  flex: 0 0 auto;
  transform: translateY(4px);
}
.egg-eye-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.mosaic-pavement {
  height: 22px;
  margin: 14px 0 8px;
  border-radius: 6px;
  background-color: rgba(247, 243, 228,0.06);
  background-image:
    linear-gradient(45deg, rgba(4, 5, 8,0.55) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(4, 5, 8,0.55) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(247, 243, 228,0.28) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(247, 243, 228,0.28) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  opacity: 0.42;
  pointer-events: none;
}

.egg-steps-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  opacity: 0.28;
}
.egg-steps { width: min(100%, 260px); height: auto; color: var(--gold-soft); }

.east-sun {
  position: absolute;
  right: max(12px, var(--safe-r));
  top: 28px;
  width: 86px;
  opacity: 0.2;
  pointer-events: none;
  color: var(--gold);
}
#pages { position: relative; }
#pages .chapter-inner { position: relative; z-index: 1; }

.egg-acacia {
  width: 36px;
  height: auto;
  display: block;
  margin: 0 0 12px;
  opacity: 0.7;
}

@media (max-width: 839px) {
  .pillars { height: 72px; opacity: 0.1; inset: 8px 0 auto; }
  .pillars svg { height: 72px; }
  .egg-compass { width: 92px; top: 22%; left: 6%; right: auto; opacity: 0.2; }
  .east-sun { width: 64px; opacity: 0.16; }
}

@media (prefers-reduced-motion: reduce) {
  .bumblebee, .bee-svg .wing-l, .bee-svg .wing-r {
    animation: none !important;
  }
}

.speech .bumblebee,
.speech .bee-with-hive { grid-row: 1 / span 2; }

/* ---------- Arcade ---------- */
.arcade-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .arcade-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.arcade-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(253, 249, 236,0.09), rgba(253, 249, 236,0.03));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.arcade-card:hover,
.arcade-card:focus-within {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.arcade-thumb {
  display: block;
  background: #030406;
}
.arcade-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 358;
  object-fit: cover;
  object-position: top center;
}
.arcade-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
}
.arcade-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}
.arcade-body p {
  margin: 0;
  color: var(--muted);
  flex: 1 1 auto;
}
.arcade-body .btn { width: 100%; }

/* ---------- Validated series ---------- */
.episode-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 8px;
  justify-items: center;
}
@media (min-width: 860px) {
  .episode-grid:has(.episode-card:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }
}
.episode-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(253, 249, 236,0.09), rgba(253, 249, 236,0.03));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.episode-player {
  display: flex;
  justify-content: center;
  background: #030406;
}
.episode-player video {
  width: 100%;
  max-width: 420px;
  max-height: min(72vh, 720px);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #030406;
  display: block;
}
.episode-body {
  padding: 14px 16px 18px;
}
.episode-date {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.episode-body h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.2;
}
.episode-body p {
  margin: 0;
  color: var(--muted);
}
.catalog-empty {
  margin: 8px 0 0;
  color: var(--muted);
}
.catalog-status[hidden] { display: none; }

#arcade,
#validated { position: relative; }
#arcade .chapter-inner,
#validated .chapter-inner { position: relative; z-index: 1; }
#arcade .mosaic-pavement { margin: 4px 0 18px; }
#validated .egg-tools-wrap {
  justify-content: flex-end;
  opacity: 0.28;
  margin: 0 0 10px;
}

/* ---------- Start Here page ---------- */
body.start-here .hero {
  min-height: 0;
  padding: 28px 0 36px;
}
body.start-here .hero-copy { max-width: 720px; }
.start-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.start-crumb a {
  color: var(--gold-soft);
  text-decoration: none;
}
.start-crumb a:hover,
.start-crumb a:focus-visible { text-decoration: underline; }
.start-guide .chapter-inner { max-width: 760px; }
.start-steps {
  display: grid;
  gap: 18px;
  margin: 8px 0 0;
}
.start-step {
  background: rgba(253, 249, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 18px;
}
.chapter-cream .start-step {
  background: #fff;
  border-color: rgba(11, 13, 19, 0.08);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 13, 19, 0.06);
}
.start-step .step-num {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.chapter-cream .start-step .step-num { color: #7b620f; }
.start-step h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}
.start-step p { margin: 0 0 10px; }
.start-step p:last-child { margin-bottom: 0; }
.start-basics {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}
@media (min-width: 700px) {
  .start-basics { grid-template-columns: 1fr 1fr; }
}
.start-basics .lesson { margin: 0; }
.start-next { margin-top: 8px; }
.start-next .explore-grid { margin-top: 16px; }
#site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ================= LHT edition ================= */

.hero-nfa { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.btn-discord {
  background: #5865f2; border-color: #5865f2; color: #fff;
  gap: 10px; box-shadow: 0 8px 22px rgba(88, 101, 242, 0.45);
}
.btn-discord:hover, .btn-discord:focus-visible { background: #4752c4; border-color: #4752c4; }
.btn-discord .dc-ico { width: 24px; height: 24px; flex: 0 0 auto; }
.btn-discord.btn-lg { min-height: 60px; font-size: 1.15rem; padding: 12px 28px; }
.btn-discord.btn-sm { min-height: 40px; font-size: 0.92rem; padding: 6px 16px; }
.dc-inline { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: #8f98ff; }
#site-nav li.nav-discord a { background: #5865f2; color: #fff; border-radius: 999px; font-weight: 700; }
.coinbuddy { display: flex; flex-direction: column; align-items: center; width: 80px; flex: 0 0 auto; animation: bee-hover 2.4s ease-in-out infinite; }
.coinbuddy .coin-svg { width: 80px; height: auto; display: block; overflow: visible; }
.coin-spin { transform-box: fill-box; transform-origin: center; animation: coin-flip 2.6s ease-in-out infinite; }
@keyframes coin-flip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.18); } }
.speech .coinbuddy { grid-row: 1 / span 2; }
.hero-cast .coinbuddy { margin-left: 2px; }
@media (prefers-reduced-motion: reduce) { .coinbuddy, .coin-spin { animation: none; } }
.chapter-lht { background: radial-gradient(900px 400px at 85% 0%, rgba(232, 192, 71,0.12), transparent 60%), linear-gradient(180deg, #08090d, #0d0e14 85%); }
.facts-card { background: rgba(232, 192, 71,0.07); border: 1px solid rgba(232, 192, 71,0.35); border-radius: 18px; padding: 20px; grid-column: 1 / -1; }
.facts-card h3 { margin: 0 0 12px; font-family: var(--font-display); letter-spacing: 0.04em; font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 16px; margin: 0; }
.facts-grid div { background: rgba(0,0,0,0.28); border-radius: 12px; padding: 10px 12px; }
.facts-grid .wide { grid-column: 1 / -1; }
.facts-grid dt { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts-grid dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts-grid code, .lesson code, .steps code, .safety code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; background: rgba(232, 192, 71,0.14); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; word-break: break-all; }
.chapter-cream .lesson code, .chapter-cream .steps code { background: rgba(138, 110, 18,0.14); color: var(--ink); }
.facts-grid code.small { font-size: 0.74em; }
.small-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.chapter-cream .small-note { color: var(--ink-soft); }
ul.tidy, ol.tidy { margin: 8px 0 10px; padding-left: 1.2em; }
ul.tidy li, ol.tidy li { margin: 0 0 7px; }
.alloc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.alloc li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(232, 192, 71,0.07); border: 1px solid rgba(232, 192, 71,0.16); }
.alloc li:first-child { background: rgba(232, 192, 71,0.18); }
.alloc b { color: var(--gold); white-space: nowrap; }
.nfa { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px 16px; border-left: 4px solid var(--gold); background: rgba(232, 192, 71,0.08); border-radius: 0 12px 12px 0; font-size: 0.95rem; }
.chapter-cream .nfa { background: rgba(138, 110, 18,0.1); color: var(--ink); border-left-color: #8a6e12; }
.lesson.unconfirmed { border-style: dashed; }
.lesson.warn { border-color: #ff6b6b; background: rgba(232, 93, 76,0.12); }
.chapter-cream .lesson.warn { background: rgba(232, 93, 76,0.1); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(180deg, var(--gold), rgba(232, 192, 71,0.2)); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #0f1015; border: 3px solid var(--gold); }
.timeline li.key::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 192, 71,0.25); }
.timeline time { display: inline-block; font-family: var(--font-display); letter-spacing: 0.05em; font-size: 1.25rem; color: var(--gold); }
.timeline p { margin: 2px 0 0; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-column: 1 / -1; counter-reset: s; }
.steps li { background: rgba(255,255,255,0.7); border: 2px solid rgba(11, 13, 19,0.12); border-radius: 16px; padding: 14px 16px; color: var(--ink); }
.steps li h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); font-family: var(--font-ui); }
.steps li p { margin: 0; color: var(--ink-soft); }
.steps a { color: #7a6110; font-weight: 600; }
.path-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 760px) { .path-grid { grid-template-columns: repeat(2, 1fr); } }
.path { background: rgba(232, 192, 71,0.07); border: 1px solid rgba(232, 192, 71,0.3); border-radius: 18px; padding: 18px; }
.path h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.path-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 3px 10px; }
.path li { list-style: disc; }
.safety { margin-top: 18px; border-color: rgba(232, 192, 71,0.5); }
.join-hero { display: grid; gap: 16px; align-items: center; grid-template-columns: 1fr; background: rgba(0,0,0,0.3); border: 1px solid rgba(232, 192, 71,0.35); border-radius: 22px; padding: 18px; margin-top: 12px; }
@media (min-width: 700px) { .join-hero { grid-template-columns: 200px 1fr; } }
.join-hero img { width: min(200px, 60vw); height: auto; margin: 0 auto; }
.join-hero h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; font-size: 2rem; color: var(--gold); }
.follow-title { margin: 26px 0 10px; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; font-size: 1.8rem; }
.follow-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .follow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .follow-grid { grid-template-columns: repeat(3, 1fr); } }
.follow-grid a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; min-height: 64px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,0.32); border: 1px solid rgba(232, 192, 71,0.3); color: var(--cream); text-decoration: none; }
.follow-grid a:hover, .follow-grid a:focus-visible { border-color: var(--gold); background: rgba(232, 192, 71,0.12); }
.follow-grid b { color: var(--gold); font-size: 1.05rem; overflow-wrap: anywhere; }
.follow-grid span { grid-column: 1; font-size: 0.82rem; color: var(--muted); }
.follow-grid i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 700; font-size: 0.85rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 6px 14px; }
.lht-callout { border-color: rgba(232, 192, 71,0.5); }
.stick line, .stick .torso { stroke: var(--cream); }
.chapter-cream .stick line, .chapter-cream .stick .torso, .start-guide .stick line { stroke: var(--ink); }
.stick .badge { stroke: var(--ink); }
.hero-bear img { border-radius: 0; }
.hero-bear { filter: drop-shadow(0 0 28px rgba(232, 192, 71,0.45)) drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
@media (min-width: 840px) {
  .scene .facts-card, .scene .nfa, .scene .steps { grid-column: 2; }
  .scene.wide { grid-template-columns: 1fr; }
  .scene.wide > * { grid-column: 1 !important; }
}
.facts-card, .nfa, .steps { min-width: 0; }
.scene > * { min-width: 0; }
@media (max-width: 480px) {
  .hero-cast { gap: 4px; }
  .hero-cast .stick { width: 72px; }
  .hero-cast .coinbuddy, .hero-cast .coin-svg { width: 60px; }
}
@media (max-width: 799px) { .hero-bear { margin-bottom: -4px; } }
body.start-here .hero { padding-left: max(var(--pad), calc(var(--pad) + var(--safe-l))); padding-right: max(var(--pad), calc(var(--pad) + var(--safe-r))); }

/* =====================================================================
   Official LHT brand palette
   Sources (checked Nov 12, 2026):
   - lhtoken.io theme palette and computed styles: primary/accent #e8c047,
     hover #ffd04d, page background #08090d, body text #e0e0e0, muted #a0a0a0,
     panel #232323 / #1a1a1a, deep #0d0f14 / #060709, red #ff6b6b, green #4caf50, blue #5b9bd5
   - LHT logo files (lht-logo.webp, lh-logo-x, favicon): gold measured #e8c047 on black
   - @GetLHT banner: amber highlights #dfa931, navy cabinet #08213f, jackpot green #49e379, cream #f8f3e6
   ===================================================================== */
:root {
  --lht-gold: #e8c047;
  --lht-gold-hi: #ffd04d;
  --lht-amber: #dfa931;
  --lht-bg: #08090d;
  --lht-bg-2: #0d0f14;
  --lht-bg-3: #060709;
  --lht-panel: #1a1a1a;
  --lht-panel-2: #232323;
  --lht-navy: #08213f;
  --lht-text: #e0e0e0;
  --lht-muted: #a0a0a0;
  --lht-red: #ff6b6b;
  --lht-green: #4caf50;
  --lht-blue: #5b9bd5;
  --sky-0: #08090d;
  --sky-1: #0d0f14;
  --sky-2: #0f1116;
  --sky-3: #1a1a1a;
  --gold: #e8c047;
  --gold-soft: #f3dfa3;
  --purple: #e8c047;
  --purple-bright: #ffd04d;
  --cream: #e0e0e0;
  --paper: #1a1a1a;
  --ink: #e0e0e0;
  --ink-soft: #a0a0a0;
  --muted: #a0a0a0;
  --coral: #ff6b6b;
  --teal: #dfa931;
  --mint: #ffd04d;
  --line: rgba(232, 192, 71, 0.18);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
html { background: var(--lht-bg); color: var(--lht-text); }
body {
  background:
    radial-gradient(circle at 12% -8%, rgba(232, 192, 71, 0.08), transparent 520px),
    radial-gradient(circle at 88% 24%, rgba(232, 192, 71, 0.04), transparent 640px),
    var(--lht-bg);
  color: var(--lht-text);
}
a { color: var(--lht-gold); }
a:hover { color: var(--lht-gold-hi); }
.chapter-cream { background: linear-gradient(180deg, var(--lht-bg-2), #0a0c11); color: var(--lht-text); }
.chapter-cream h2 { color: #fff; }
.chapter-paper { background: linear-gradient(180deg, rgba(232,192,71,0.04), transparent 40%), var(--lht-bg-2); }
.chapter-gold { background: linear-gradient(180deg, var(--lht-bg-3), var(--lht-navy) 135%); }
.chapter-teal { background: linear-gradient(180deg, var(--lht-bg), var(--lht-bg-3)); }
.chapter-lht { background: radial-gradient(900px 400px at 85% 0%, rgba(232,192,71,0.10), transparent 60%), linear-gradient(180deg, var(--lht-bg-3), var(--lht-bg-2) 85%); }
.chapter-data { background: radial-gradient(900px 420px at 10% 0%, rgba(8,33,63,0.75), transparent 65%), linear-gradient(180deg, var(--lht-bg-3), var(--lht-bg-2)); }
.bubble, .chapter-cream .bubble { background: var(--lht-panel); color: var(--lht-text); border: 1px solid rgba(232,192,71,0.28); box-shadow: 0 8px 20px rgba(0,0,0,0.45); }
.bubble strong { color: var(--lht-gold); }
.lesson, .interactive, .card,
.chapter-cream .lesson, .chapter-cream .interactive, .chapter-cream .card {
  background: rgba(35,35,35,0.72); border: 1px solid rgba(232,192,71,0.16); color: var(--lht-text); box-shadow: none;
}
.chapter-cream .who, .who { color: var(--lht-gold); }
.chapter-cream .fact, .fact { color: var(--lht-gold-hi); }
.chapter-cream .fig-name, .fig-name { color: var(--lht-muted); }
.chapter-cream .small-note, .small-note { color: var(--lht-muted); }
.chapter-cream .nfa, .nfa { background: rgba(232,192,71,0.08); color: var(--lht-text); border-left-color: var(--lht-gold); }
.chapter-cream .lesson code, .chapter-cream .steps code, .facts-grid code, .lesson code, .steps code, .safety code { background: rgba(232,192,71,0.12); color: var(--lht-gold-hi); }
.chapter-cream .portal, .portal { background: rgba(35,35,35,0.72); color: var(--lht-text); border-color: rgba(232,192,71,0.25); }
.chapter-cream .portal-go { color: var(--lht-gold); }
.chapter-cream .start-step { background: rgba(35,35,35,0.72); color: var(--lht-text); border-color: rgba(232,192,71,0.16); }
.chapter-cream .start-step .step-num { color: var(--lht-gold); }
.chapter-cream .stick line, .chapter-cream .stick .torso, .start-guide .stick line { stroke: var(--lht-text); }
.chapter-cream .lesson.warn, .lesson.warn { background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.35); }
.site-header { background: rgba(0,0,0,0.55); border-bottom-color: rgba(232,192,71,0.14); }
.site-footer { background: var(--lht-bg-3); color: var(--lht-muted); border-top: 1px solid rgba(232,192,71,0.14); }

/* ---------- Data chapter ---------- */
.data-stamp { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: rgba(232,192,71,0.08); border: 1px solid rgba(232,192,71,0.22); max-width: 820px; }
.data-h { margin: 28px 0 10px; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; font-size: 1.6rem; color: var(--lht-gold); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0 0 8px; }
.stat-grid.tight { margin-top: 14px; }
.stat { background: rgba(35,35,35,0.72); border: 1px solid rgba(232,192,71,0.18); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-k { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lht-muted); font-weight: 700; }
.stat-v { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.03em; color: var(--lht-gold); line-height: 1.1; overflow-wrap: anywhere; }
.stat-s { font-size: 0.86rem; color: var(--lht-muted); overflow-wrap: anywhere; }
.stat-s a { color: var(--lht-gold); }
.stat-s code { font-size: 0.9em; }
.mig-bar { height: 16px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(232,192,71,0.25); overflow: hidden; }
.mig-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lht-amber), var(--lht-gold) 60%, var(--lht-gold-hi)); border-radius: 999px; }
.alloc li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; background: rgba(232,192,71,0.05); border: 1px solid rgba(232,192,71,0.14); }
.alloc li:first-child { background: rgba(232,192,71,0.14); }
.alloc .al-name { min-width: 0; }
.alloc .al-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.alloc .al-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lht-amber), var(--lht-gold)); border-radius: 999px; }
.alloc b { text-align: right; line-height: 1.15; }
.alloc b small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--lht-muted); }
.addr-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.addr-list li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,0.3); border: 1px solid rgba(232,192,71,0.12); }
.addr-list li span { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lht-muted); font-weight: 700; }
.addr-list a { text-decoration: none; }
.addr-list code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86rem; word-break: break-all; overflow-wrap: anywhere; background: transparent; padding: 0; }
@media (max-width: 560px) {
  .alloc li { grid-template-columns: 1fr auto; }
  .alloc .al-bar { grid-column: 1 / -1; order: 3; }
  .stat-v { font-size: 1.6rem; }
}

/* Hero title: white to gold, as on lhtoken.io */
.hero h1 {
  color: #fff;
  background: linear-gradient(105deg, #ffffff 0%, #e0e0e0 55%, #e8c047 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 5px 0 rgba(0,0,0,0.45));
}

/* Dark text is reserved for gold surfaces (buttons, pills), as on lhtoken.io */
:root { --ink: #111111; }
.chapter-cream, .bubble, .chapter-cream .bubble, .lesson, .card, .chapter-cream .card { color: var(--lht-text); }
.steps li { background: rgba(35,35,35,0.72); border: 1px solid rgba(232,192,71,0.18); color: var(--lht-text); }
.steps li h3 { color: #fff; }
.steps li p { color: var(--lht-text); }
.steps a { color: var(--lht-gold); }
.chapter-cream .lesson h3, .lesson h3 { color: #fff; }
.start-step h3 { color: #fff; }
.btn { color: #111111; }
.btn-ghost { color: var(--lht-text); }
.btn-discord { color: #fff; }

/* quick start: long addresses must wrap on small screens */
.start-steps { grid-template-columns: minmax(0, 1fr); }
.start-step { min-width: 0; }
.start-step code, .start-step li, .start-step p { overflow-wrap: anywhere; }
.start-step code { word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86em; background: rgba(232,192,71,0.12); color: var(--lht-gold-hi); padding: 1px 6px; border-radius: 6px; }

/* Arcade badge (Zodiac Wheel demo label) */
.arcade-badge { display: inline-block; align-self: flex-start; margin: 0 0 6px; padding: 3px 10px; border: 1px solid #e8c047; border-radius: 999px; background: rgba(232, 192, 71, 0.12); color: #e8c047; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
