:root {
  --black: #07100a;
  --deep: #0c1a0d;
  --forest: #123d1d;
  --forest-2: #1d6b35;
  --leaf: #52d36d;
  --leaf-hot: #93ff8b;
  --gold: #f3c65d;
  --ember: #ff7a3a;
  --bone: #f7edc6;
  --muted: #b4c79f;
  --bark: #4b2e1a;
  --card: rgba(10, 26, 13, 0.76);
  --line: rgba(147, 255, 139, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --pixel: "Press Start 2P", system-ui;
  --display: "Unbounded", system-ui, sans-serif;
  --fantasy: "MedievalSharp", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(circle at 18% 12%, rgba(82, 211, 109, .28), transparent 28rem),
    radial-gradient(circle at 80% 3%, rgba(243, 198, 93, .14), transparent 24rem),
    linear-gradient(180deg, #07100a 0%, #0b180c 46%, #030603 100%);
  font-family: var(--display);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    radial-gradient(circle, rgba(247,237,198,.85) 1px, transparent 1px),
    radial-gradient(circle, rgba(147,255,139,.7) 1px, transparent 1px);
  background-size: 71px 71px, 113px 113px;
  background-position: 0 0, 23px 31px;
  animation: starDrift 24s linear infinite;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
  opacity: .35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(7, 16, 10, .78);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
}

.brand, nav, .header-cta { display: flex; align-items: center; }
.brand { gap: 10px; font-family: var(--pixel); font-size: 14px; color: var(--leaf-hot); }
.brand img { width: 42px; height: 42px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(82,211,109,.45)); }
nav { gap: clamp(12px, 2vw, 26px); color: var(--muted); font-size: 13px; }
nav a:hover { color: var(--leaf-hot); }
.header-cta { min-height: 42px; padding: 0 16px; border: 2px solid var(--gold); color: var(--gold); box-shadow: 4px 4px 0 #000; font-size: 12px; }

.section-shell { width: min(1160px, calc(100vw - 32px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 64px 0 42px;
}

.eyebrow, .section-kicker {
  font-family: var(--pixel);
  color: var(--leaf-hot);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.8;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 32px; height: 12px; background: var(--leaf); box-shadow: 8px 8px 0 var(--gold); display: inline-block; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 9vw, 122px);
  line-height: .86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 #000, 0 0 40px rgba(82, 211, 109, .35);
}
h1 em {
  display: inline-block;
  font-family: var(--fantasy);
  color: var(--gold);
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.03em;
  transform: rotate(-1deg);
}
.lede { max-width: 640px; color: #d7e7c2; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.45; font-family: var(--fantasy); }

.hero-actions, .final-actions, .link-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn, .link-grid a, .link-grid button {
  border: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: var(--pixel);
  font-size: 10px;
  cursor: pointer;
  box-shadow: 5px 5px 0 #000;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover, .link-grid a:hover, .link-grid button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; filter: brightness(1.08); }
.primary { background: var(--leaf); color: #061108; border: 2px solid var(--leaf-hot); }
.ghost { background: rgba(247, 237, 198, .08); color: var(--bone); border: 2px solid rgba(247,237,198,.42); }

.contract-card {
  margin-top: 24px;
  max-width: 720px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, .34);
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.36), 5px 5px 0 #000;
}
.contract-card span { font-family: var(--pixel); color: var(--gold); font-size: 10px; }
.contract-card code { color: #e8ffd7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.contract-card button { min-height: 38px; border: 2px solid var(--leaf); background: #0c260f; color: var(--leaf-hot); font-family: var(--pixel); font-size: 9px; cursor: pointer; }

.hero-stage {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.moon {
  position: absolute;
  width: min(380px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff4bd, #d2a03d 52%, #5a3516 74%, transparent 75%);
  box-shadow: 0 0 80px rgba(243,198,93,.28);
  opacity: .92;
}
.target-rings {
  position: absolute;
  width: min(470px, 80vw);
  aspect-ratio: 1;
  border: 2px dashed rgba(147,255,139,.42);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.target-rings::before, .target-rings::after {
  content: ""; position: absolute; inset: 12%; border: 2px dashed rgba(243,198,93,.3); border-radius: inherit;
}
.target-rings::after { inset: 29%; border-color: rgba(247,237,198,.22); }
.mascot {
  position: relative;
  z-index: 3;
  width: min(480px, 96vw);
  filter: drop-shadow(16px 22px 0 rgba(0,0,0,.5)) drop-shadow(0 0 26px rgba(82,211,109,.28));
  animation: float 4.4s ease-in-out infinite;
}
.hero-mascot {
  image-rendering: auto;
  width: min(510px, 96vw);
  filter: drop-shadow(18px 24px 0 rgba(0,0,0,.45)) drop-shadow(0 0 42px rgba(147,255,139,.25));
}
.grass {
  position: absolute;
  bottom: 36px;
  width: 88%;
  height: 44px;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(82,211,109,.55) 12px 18px, transparent 18px 28px);
  opacity: .65;
  transform: skewX(-12deg);
}
.smoke {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(247,237,198,.65);
  filter: blur(.3px);
  box-shadow: 0 0 0 6px rgba(247,237,198,.08);
  animation: smoke 3s ease-in-out infinite;
}
.smoke-a { top: 202px; left: 112px; animation-delay: 0s; }
.smoke-b { top: 178px; left: 88px; animation-delay: .8s; }
.smoke-c { top: 154px; left: 126px; animation-delay: 1.5s; }

.rune-strip {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 16px 0;
  border-block: 2px solid var(--line);
  background: rgba(0,0,0,.28);
}
.rune-strip span {
  flex: 1 0 auto;
  text-align: center;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--gold);
  text-shadow: 3px 3px 0 #000;
}

.lore, .commandments, .mechanic, .roadmap, .final-cta { padding: 86px 0; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: .95; letter-spacing: -0.055em; max-width: 870px; text-shadow: 5px 5px 0 #000; }
.lore-grid, .quests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.lore-grid article, .quest, .parchment, .final-cta, .commandments {
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(0,0,0,.38);
}
.lore-grid article { padding: 24px; min-height: 260px; }
.pixel-icon { font-family: var(--pixel); font-size: 10px; color: #061108; background: var(--gold); padding: 10px; box-shadow: 4px 4px 0 #000; display: inline-flex; margin-bottom: 34px; }
h3 { font-size: 24px; color: var(--leaf-hot); margin-bottom: 12px; }
article p, .parchment p, .quest span, .final-cta p { color: var(--muted); line-height: 1.7; font-size: 15px; }

.commandments {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(56, 34, 16, .86), rgba(8, 24, 11, .9)),
    repeating-linear-gradient(0deg, rgba(243,198,93,.08) 0 1px, transparent 1px 18px);
  overflow: hidden;
}
.commandments::before {
  content: "✦";
  position: absolute;
  right: clamp(18px, 5vw, 54px);
  top: 26px;
  color: rgba(243,198,93,.32);
  font-size: clamp(72px, 16vw, 190px);
  line-height: 1;
  text-shadow: 0 0 40px rgba(243,198,93,.22);
}
.commandments-intro {
  max-width: 760px;
  color: #dccb98;
  font-family: var(--fantasy);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.35;
  margin-bottom: 28px;
}
.tablet-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tablet-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 92px;
  padding: 16px;
  background: rgba(0,0,0,.25);
  border: 2px solid rgba(243,198,93,.24);
  box-shadow: 4px 4px 0 rgba(0,0,0,.75);
}
.tablet-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--pixel);
  font-size: 9px;
  color: #08180b;
  background: var(--gold);
  box-shadow: 4px 4px 0 #000;
}
.tablet-list p {
  margin: 0;
  color: #f4e9bf;
  font-family: var(--fantasy);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.18;
}

.parchment { padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; background: linear-gradient(135deg, rgba(15,46,19,.92), rgba(33,21,11,.78)); }
.link-grid { grid-column: 1 / -1; }
.link-grid a, .link-grid button { background: rgba(243,198,93,.14); color: var(--gold); border: 2px solid rgba(243,198,93,.5); }

.quests { grid-template-columns: repeat(4, 1fr); }
.quest { padding: 20px; min-height: 170px; display: flex; flex-direction: column; gap: 18px; }
.quest b { color: var(--gold); font-family: var(--pixel); font-size: 10px; line-height: 1.8; }
.quest.active { border-color: var(--leaf-hot); background: rgba(18,61,29,.88); }

.final-cta { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 28px; padding: 28px; margin-bottom: 60px; }
.final-cta img { width: 160px; image-rendering: pixelated; filter: drop-shadow(8px 10px 0 #000); }
.final-cta h2 { margin-bottom: 12px; }
.final-actions { justify-content: flex-end; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 28px 16px 42px; color: rgba(247,237,198,.62); font-size: 12px; border-top: 2px solid var(--line); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; transform: translateY(90px); opacity: 0; transition: .22s ease; background: var(--leaf); color: #061108; border: 2px solid var(--leaf-hot); box-shadow: 5px 5px 0 #000; padding: 14px 18px; font-family: var(--pixel); font-size: 10px; }
.toast.show { transform: translateY(0); opacity: 1; }

.reveal { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal.show { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes smoke { 0% { transform: translate(0,0) scale(1); opacity: 0; } 20% { opacity: .8; } 100% { transform: translate(-42px,-70px) scale(2.4); opacity: 0; } }
@keyframes starDrift { to { background-position: 71px 71px, -90px 144px; } }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-stage { min-height: 500px; order: -1; }
  .lore-grid, .quests, .parchment, .final-cta, .tablet-list { grid-template-columns: 1fr; }
  .final-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .contract-card { grid-template-columns: 1fr; }
  .hero-stage { min-height: 390px; }
  .mascot { width: min(360px, 98vw); }
  .moon { width: 300px; }
  .smoke-a { top: 135px; left: 74px; }
  .smoke-b { top: 118px; left: 60px; }
  .smoke-c { top: 96px; left: 90px; }
  .rune-strip { flex-wrap: wrap; }
  .rune-strip span { flex-basis: 46%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
