:root {
  --green: #4f9a42;
  --green-dark: #2f6b27;
  --green-light: #7cc26c;
  --grey: #a8a6a7;
  --grey-light: #d6d4d5;
  --grey-dark: #6f6d6e;
  --ink: #111;
  --red: #b8361f;
  --cream: #f4f1e8;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --border: 4px solid var(--ink);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--green);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: "Luckiest Guy", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Luckiest Guy", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  background: var(--grey-light);
  border: var(--border);
  border-radius: 999px;
  padding: 0.8rem 1.6rem 0.6rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--green-light); }
.btn--dark { background: var(--ink); color: var(--grey-light); box-shadow: 6px 6px 0 var(--green-dark); }
.btn--dark:hover { background: #222; color: #fff; box-shadow: 8px 8px 0 var(--green-dark); }
.btn--small { font-size: 1rem; padding: 0.55rem 1.1rem 0.4rem; box-shadow: 4px 4px 0 var(--ink); }
.btn--big { font-size: 1.6rem; padding: 1rem 2.2rem 0.8rem; }

.tag {
  display: inline-block;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--ink);
  color: var(--grey-light);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.tag--dark { background: var(--green); color: var(--ink); border: 3px solid var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem clamp(16px, 4vw, 48px);
  background: rgba(79, 154, 66, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: "Luckiest Guy", sans-serif;
  font-size: 1.6rem;
  margin-right: auto;
}
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a { text-decoration: none; font-weight: 800; }
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(16px, 4vw, 48px) clamp(3rem, 7vw, 6rem);
}
.hero__title {
  font-size: clamp(3.4rem, 9vw, 7rem);
  margin: 1rem 0 1.5rem;
  color: var(--grey-light);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.hero__title .line { display: block; }
.hero__title .line--green { color: var(--green-light); position: relative; }
.hero__title .line--green::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: auto;
  width: 3.1em;
  top: 46%;
  height: 0.12em;
  background: var(--red);
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
  border-radius: 4px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero__art { position: relative; }
.hero__frame {
  border: 6px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
  animation: peek 6s ease-in-out infinite;
  background: var(--green);
}
@keyframes peek {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  45% { transform: rotate(-1deg) translateY(-8px); }
  50% { transform: rotate(-3deg) translateY(-10px); }
  55% { transform: rotate(-1deg) translateY(-8px); }
}
.sticker {
  position: absolute;
  font-family: "Luckiest Guy", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  padding: 0.6rem 1rem 0.4rem;
  border: var(--border);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker--a { top: -18px; left: -18px; background: var(--red); color: #fff; transform: rotate(-10deg); }
.sticker--b { bottom: 28px; right: -16px; background: var(--grey-light); transform: rotate(6deg); }
.hero__fine { margin-top: 1.4rem; text-align: center; font-weight: 800; font-size: 0.85rem; opacity: 0.85; }

/* ---------- Dialog box (NPC game style) ---------- */
.dialog {
  position: relative;
  background: #0f0f0f;
  color: #f2f2f2;
  border: 4px solid var(--grey-light);
  outline: 4px solid var(--ink);
  border-radius: 10px;
  padding: 1rem 1.2rem 1.1rem;
  font-family: "VT323", monospace;
  font-size: 1.55rem;
  line-height: 1.25;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}
.dialog__name {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-size: 1.1rem;
  padding: 0 0.5rem;
  margin-bottom: 0.4rem;
  border-radius: 3px;
}
.dialog--hero { max-width: 520px; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--grey-light);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: 0 -20px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: "Luckiest Guy", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  padding: 0.7rem 0 0.5rem;
}
.marquee__track span { padding: 0 1.4rem; white-space: nowrap; }
.marquee__track span:nth-child(3n + 1) { color: var(--green-light); }
.marquee__track span::after { content: "✦"; margin-left: 2.8rem; color: var(--grey); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(16px, 4vw, 48px);
}
.section--grey,
.section--dark {
  max-width: none;
  border-top: var(--border);
  border-bottom: var(--border);
}
.section--grey {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 40%),
    var(--grey);
}
.section--dark { background: var(--ink); color: var(--grey-light); }
.section--dark .tag { background: var(--green); color: var(--ink); }
.section--dark h2 { color: var(--green-light); }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.3rem, 6vw, 4rem); margin-top: 1rem; }
.section__sub { font-weight: 700; font-size: 1.15rem; margin-top: 0.8rem; }

/* ---------- Lore ---------- */
.chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.chapter {
  position: relative;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.8rem 1.8rem;
  transition: transform 0.2s ease;
}
.chapter:nth-child(odd) { transform: rotate(-0.8deg); }
.chapter:nth-child(even) { transform: rotate(0.8deg); }
.chapter:hover { transform: rotate(0) translateY(-4px); }
.chapter__num {
  position: absolute;
  top: -22px;
  left: 20px;
  font-family: "Luckiest Guy", sans-serif;
  font-size: 1.6rem;
  background: var(--grey);
  border: var(--border);
  border-radius: 12px;
  padding: 0.2rem 0.8rem 0;
}
.chapter h3 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.chapter p { font-size: 1.05rem; font-weight: 600; }
.chapter--glitch { background: var(--grey-light); }
.chapter--glitch h3 { animation: glitch 3.5s infinite; }
@keyframes glitch {
  0%, 90%, 100% { text-shadow: none; transform: none; }
  92% { text-shadow: 3px 0 var(--green), -3px 0 var(--red); transform: translateX(2px); }
  94% { text-shadow: -3px 0 var(--green), 3px 0 var(--red); transform: translateX(-2px); }
  96% { text-shadow: 2px 0 var(--green), -2px 0 var(--red); transform: none; }
}

.moral {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 760px;
  text-align: center;
  font-family: "Luckiest Guy", sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--grey-light);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.moral cite {
  display: block;
  margin-top: 1rem;
  font-family: "Nunito", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* ---------- Talk ---------- */
.talk {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.talk__face {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
}
.talk__face.is-talking { animation: bob 0.35s ease-in-out 4; }
@keyframes bob {
  50% { transform: translateY(-6px) rotate(-3deg); }
}
.dialog--big { width: 100%; min-height: 150px; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.dialog__arrow {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 1.2rem;
  animation: blink 0.8s steps(1) infinite;
}
.talk__count { font-weight: 800; }

/* ---------- Versus ---------- */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.versus__col {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  height: 100%;
}
.versus__col--npc { background: var(--grey); }
.versus__col--pepe { background: var(--green-light); }
.versus__title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.versus__title h3 { font-size: 1.8rem; }
.versus__title img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); }
.versus ul { list-style: none; display: grid; gap: 0.75rem; }
.versus li {
  font-weight: 700;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 3px solid var(--ink);
  border-radius: 10px;
  position: relative;
}
.versus__col--npc li::before,
.versus__col--pepe li::before {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
}
.versus__col--npc li::before { content: "✕"; color: var(--grey-dark); }
.versus__col--pepe li::before { content: "✓"; color: var(--green-dark); }
.versus__vs {
  font-family: "Luckiest Guy", sans-serif;
  font-size: 2.6rem;
  background: var(--red);
  color: #fff;
  border: var(--border);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-top: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-8deg);
}

/* Tiny CSS NPC face */
.mini-npc {
  position: relative;
  width: 40px;
  height: 46px;
  background: var(--grey-light);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 46% 46%;
  flex-shrink: 0;
}
.mini-npc::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 10px;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 13px 0 0 var(--ink);
}
.mini-npc::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10px;
  width: 16px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.stat {
  background: #1b1b1b;
  border: 4px solid var(--grey-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat:hover { border-color: var(--green-light); transform: translateY(-4px); }
.stat__label {
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat__value {
  font-family: "Luckiest Guy", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--grey-light);
  margin-top: 0.3rem;
  word-break: break-word;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.6rem 1.4rem 1.5rem;
}
.step__num {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding-top: 5px;
  font-family: "Luckiest Guy", sans-serif;
  font-size: 1.8rem;
  background: var(--grey);
  border: var(--border);
  border-radius: 50%;
}
.step h3 { font-size: 1.5rem; text-align: center; margin-bottom: 0.6rem; }
.step p { font-weight: 600; font-size: 0.98rem; }
.buy-cta { text-align: center; margin-top: 3.2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--grey);
  text-align: center;
  padding: 3.5rem clamp(16px, 4vw, 48px) 2.5rem;
  border-top: var(--border);
}
.footer__logo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; border: 3px solid var(--grey-light); }
.footer__name { font-family: "Luckiest Guy", sans-serif; font-size: 1.8rem; color: var(--grey-light); }
.footer__name span { color: var(--green-light); }
.footer__disclaimer { max-width: 720px; margin: 1.2rem auto; font-size: 0.9rem; }
.footer__copy { font-family: "VT323", monospace; font-size: 1.2rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity 0.6s ease, translate 0.6s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.8rem; }
}

@media (max-width: 860px) {
  .nav { gap: 0.8rem; }
  .nav__burger { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green);
    border-bottom: var(--border);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 1rem clamp(16px, 4vw, 48px); border-top: 2px solid rgba(0,0,0,0.2); }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__art { order: 1; max-width: 420px; margin: 0 auto; }
  .dialog--hero { margin: 0 auto; text-align: left; }
  .hero__cta { justify-content: center; }
  .hero__title .line--green::after { left: 50%; margin-left: -1.55em; }

  .chapters { grid-template-columns: 1fr; gap: 2.4rem; }
  .versus { grid-template-columns: 1fr; }
  .versus__vs { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .nav .btn--small { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .sticker--a { left: -6px; }
  .sticker--b { right: -6px; }
  .btn--big { font-size: 1.25rem; padding: 0.9rem 1.4rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
