:root {
  --bg: #0b1026;
  --bg-2: #141a3d;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #eef1ff;
  --muted: #a3abd6;
  --gold: #ffcb05;
  --gold-2: #ffa500;
  --red: #ef3b36;
  --blue: #3d7dca;
  --green: #4ade80;
  --grass: #2f8f3a;
  --grass-dark: #1f6a2a;
  --pixel: "Press Start 2P", monospace;
  --pix2: "Pixelify Sans", monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img { image-rendering: pixelated; }
a { color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(11, 16, 38, 0.85), rgba(11, 16, 38, 0));
  backdrop-filter: blur(4px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--pixel); font-size: 14px; }
.brand img { width: 28px; height: 28px; }
.brand em { font-style: normal; color: var(--gold); margin-left: 6px; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); font-family: var(--pix2); font-size: 18px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 560px) { .nav nav a:not(.btn) { display: none; } .brand span { font-size: 11px; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  font-family: var(--pix2); font-weight: 700; font-size: 20px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn img { width: 26px; height: 26px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #1b1300;
  background: linear-gradient(180deg, #ffe066, var(--gold) 50%, var(--gold-2));
  box-shadow: 0 4px 0 #b37400, 0 10px 30px rgba(255, 203, 5, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 0 #b37400, 0 14px 40px rgba(255, 203, 5, 0.55); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.35); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 8px 16px; font-size: 16px; border-radius: 10px; color: #1b1300; background: var(--gold); box-shadow: 0 3px 0 #b37400; }
.btn-lg { padding: 18px 34px; font-size: 24px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 16px 190px;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, #2b2a6b 0%, #141a3d 45%, var(--bg) 100%);
}
.sky { position: absolute; inset: 0; z-index: -3; }
#stars { position: absolute; inset: 0; }
.star { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.moon {
  position: absolute; top: 12%; right: 10%;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe6, #ffe9a8 60%, #e6c56a);
  box-shadow: 0 0 60px 20px rgba(255, 233, 168, 0.25);
}
@media (max-width: 700px) { .moon { width: 40px; height: 40px; top: 76px; right: 6%; } }

.map-bg {
  position: absolute; inset: -10%; z-index: -2;
  background: url(assets/pallet-town.png) center / 900px auto repeat;
  image-rendering: pixelated;
  opacity: .16; filter: saturate(.6) hue-rotate(200deg) brightness(.8);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: pan 60s linear infinite;
}
@keyframes pan { from { background-position: 0 0; } to { background-position: 900px 750px; } }

.hero-inner { max-width: 900px; text-align: center; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--green); font-family: var(--pix2); font-weight: 600; font-size: 17px;
}
.badge-fan { background: rgba(255, 111, 177, 0.12); border-color: rgba(255, 111, 177, 0.5); color: #ff9cc8; }
.live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 12px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.title { margin: 28px 0 8px; font-family: var(--pixel); line-height: 1.15; font-weight: 400; }
.title .t0 { display: block; margin-bottom: 18px; font-family: var(--pix2); font-weight: 600; font-size: clamp(15px, 2vw, 19px); color: var(--text); letter-spacing: .04em; }
.title .t1 { display: block; font-size: clamp(18px, 3.4vw, 32px); color: var(--muted); letter-spacing: .2em; }
.title .t2 {
  display: block; margin-top: 14px;
  font-size: clamp(26px, 7vw, 68px);
  background: linear-gradient(180deg, #fff6c2 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a4f9a) drop-shadow(0 8px 0 #172a5a) drop-shadow(0 0 30px rgba(255, 203, 5, 0.35));
}
.date {
  margin: 18px 0 0; font-family: var(--pixel); font-size: clamp(22px, 5vw, 44px);
  color: #fff; letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(120, 160, 255, 0.6);
}
.date span { color: #fff; }
.lead { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.lead strong { color: var(--text); }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 32px 0 0; }
.countdown div {
  min-width: clamp(68px, 16vw, 104px); padding: 14px 8px 10px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-border);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}
.countdown b { display: block; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 4.4vw, 36px); color: var(--gold); }
.countdown small { display: block; margin-top: 8px; font-family: var(--pix2); font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }

/* grass + parade */
.grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: -1;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.08) 14px 16px),
    linear-gradient(180deg, var(--grass) 0%, var(--grass-dark) 100%);
  border-top: 6px solid #5cc35a;
  box-shadow: 0 -18px 40px rgba(20, 60, 30, .45);
}
.grass::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 18px;
  background: repeating-linear-gradient(90deg, #5cc35a 0 6px, transparent 6px 12px, #4aab48 12px 16px, transparent 16px 24px);
  clip-path: polygon(0 100%, 2% 0, 4% 100%, 6% 10%, 8% 100%, 10% 0, 12% 100%, 14% 20%, 16% 100%, 18% 0, 20% 100%, 22% 10%, 24% 100%, 26% 0, 28% 100%, 30% 20%, 32% 100%, 34% 0, 36% 100%, 38% 10%, 40% 100%, 42% 0, 44% 100%, 46% 20%, 48% 100%, 50% 0, 52% 100%, 54% 10%, 56% 100%, 58% 0, 60% 100%, 62% 20%, 64% 100%, 66% 0, 68% 100%, 70% 10%, 72% 100%, 74% 0, 76% 100%, 78% 20%, 80% 100%, 82% 0, 84% 100%, 86% 10%, 88% 100%, 90% 0, 92% 100%, 94% 20%, 96% 100%, 98% 0, 100% 100%);
}
.parade { position: absolute; inset: -50px 0 0 0; }
.walker {
  position: absolute; left: 0; top: var(--y, 0px);
  animation: walk var(--dur, 28s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.walker.left { animation-name: walk-left; }
@keyframes walk { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes walk-left { from { transform: translateX(calc(100vw + 40px)); } to { transform: translateX(-140px); } }

/* ---------- SPRITES (follower sheets 4x4, 64px frames) ---------- */
.mon {
  --s: 96px; --row: 0;
  width: var(--s); height: var(--s);
  background-image: var(--sprite);
  background-size: calc(var(--s) * 4) calc(var(--s) * 4);
  background-position: 0 calc(var(--row) * var(--s) * -1);
  image-rendering: pixelated;
  animation: frames .7s steps(4) infinite;
}
@keyframes frames { to { background-position: calc(var(--s) * -4) calc(var(--row) * var(--s) * -1); } }
.mon.mini { --s: 88px; }
.walker .mon { --s: 88px; animation-duration: .55s; }

/* ---------- STATS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1100px; margin: 56px auto 0; padding: 0 16px; position: relative; z-index: 2;
}
.stats div {
  padding: 22px 12px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, #1b2353, #141a3d); border: 1px solid var(--panel-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.stats b { display: block; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 3.4vw, 32px); color: var(--gold); }
.stats span { display: block; margin-top: 8px; font-family: var(--pix2); color: var(--muted); font-size: 17px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTIONS ---------- */
section.features, section.roadmap { max-width: 1100px; margin: 0 auto; padding: 110px 16px 40px; }
.section-title { text-align: center; margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 3.6vw, 34px); }
.section-title span { position: relative; display: inline-block; padding-bottom: 18px; }
.section-title span::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, #fff 50% 100%);
}
.section-sub { text-align: center; color: var(--muted); font-family: var(--pix2); font-size: 20px; margin: 18px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 56px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 24px 24px 26px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--panel-border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 203, 5, .45); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card .mon { --s: 80px; margin: -8px 0 4px -8px; }
.card h3 { margin: 4px 0 8px; font-family: var(--pix2); font-size: 24px; font-weight: 700; color: #fff; }
.card p { margin: 0; color: var(--muted); }
.shiny-card { border-color: rgba(255, 203, 5, .35); }
.shiny-card::before {
  content: "✦"; position: absolute; top: 18px; right: 22px; color: var(--gold); font-size: 22px;
  animation: sparkle 2s ease-in-out infinite;
}
.news .card { border-color: rgba(74, 222, 128, .28); }
.news .card:hover { border-color: rgba(74, 222, 128, .6); }
.new {
  position: absolute; top: 18px; right: 20px;
  padding: 2px 12px; border-radius: 999px;
  font-family: var(--pix2); font-size: 15px; font-weight: 600;
  color: var(--green); background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .45);
}
@keyframes sparkle { 0%,100% { opacity: .3; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(30deg); } }

/* ---------- ROADMAP ---------- */
.timeline { list-style: none; margin: 64px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 74%, var(--green) 82%, #8b7cff 100%);
  opacity: .8;
}
.step { position: relative; display: flex; margin-bottom: 44px; }
.step:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 48px); }
.step:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 48px); }
.marker {
  position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 4px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(255, 203, 5, .4);
  z-index: 1;
}
.marker img { width: 34px; height: 34px; }
.marker span { font-size: 26px; color: #c9b8ff; }
.step.now .marker { border-color: var(--green); box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(74, 222, 128, .55); }
.step.now .marker .live { width: 16px; height: 16px; }
.step.launch .marker { border-color: #8b7cff; box-shadow: 0 0 0 6px var(--bg), 0 0 36px rgba(139, 124, 255, .7); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 60px rgba(139, 124, 255, 1); } }

.step-card {
  position: relative; width: 100%;
  padding: 24px 26px; border-radius: 20px;
  background: linear-gradient(160deg, #1c2457, #121839);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.step-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase { font-family: var(--pixel); font-size: 12px; color: var(--gold); letter-spacing: .08em; }
.tag { font-family: var(--pix2); font-size: 15px; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.tag-done { color: var(--gold); background: rgba(255, 203, 5, .12); border: 1px solid rgba(255, 203, 5, .4); }
.tag-done::before { content: "✓ "; }
.tag-now { color: var(--green); background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .45); }
.tag-launch { color: #c9b8ff; background: rgba(139, 124, 255, .15); border: 1px solid rgba(139, 124, 255, .5); }
.step-card h3 { margin: 12px 0 6px; font-family: var(--pix2); font-size: 28px; font-weight: 700; }
.step-card p { margin: 0 0 12px; color: var(--muted); }
.step-card ul { margin: 0; padding: 0; list-style: none; }
.step-card li { position: relative; padding-left: 26px; margin: 6px 0; }
.step-card li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 0 45%, #222 45% 55%, #fff 55%);
}
.step-card .mon.mini { position: absolute; right: 14px; bottom: 10px; opacity: .95; }
.step.done .step-card ul { padding-right: 70px; }
.step.now .step-card { border-color: rgba(74, 222, 128, .45); box-shadow: 0 0 0 1px rgba(74,222,128,.2), 0 18px 50px rgba(74, 222, 128, .12); }
.step.now .btn { margin-top: 16px; }
.step.launch .step-card {
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, #241e5c, #151236) padding-box,
    linear-gradient(120deg, var(--gold), #8b7cff, #ff6fb1, var(--gold)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: border-flow 6s linear infinite;
}
@keyframes border-flow { to { background-position: 0 0, 300% 0; } }
.step.launch .phase { color: #c9b8ff; font-size: 14px; }
.launch-mons { display: flex; gap: 6px; margin-top: 8px; }
.launch-mons .mon.mini { position: static; }

@media (max-width: 820px) {
  .timeline::before { left: 28px; }
  .step:nth-child(odd), .step:nth-child(even) { padding: 0 0 0 76px; justify-content: flex-start; }
  .marker { left: 28px; }
  .step-card .mon.mini { display: none; }
  .step.done .step-card ul { padding-right: 0; }
  .launch-mons .mon.mini { display: block; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 90px auto 0; padding: 0 16px; }
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-border); }
.faq details[open] { border-color: rgba(255, 203, 5, .45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--pix2); font-weight: 600; font-size: 20px; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--pixel); font-size: 16px; line-height: 1.6; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 17px; }

/* ---------- FAN ---------- */
.fan { max-width: 860px; margin: 90px auto 0; padding: 0 16px; text-align: center; }
.fan-mons { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.fan h2 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(18px, 3.4vw, 30px); color: #ff9cc8; line-height: 1.5; }
.fan p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 22px auto 0; max-width: 720px; }
.fan p strong { color: var(--text); }
.fan .fan-legal {
  font-size: 14px; padding: 14px 18px; border-radius: 14px;
  background: var(--panel); border: 1px dashed var(--panel-border);
}

/* ---------- FINAL ---------- */
.final {
  max-width: 1000px; margin: 80px auto 0; padding: 64px 24px; text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at top, rgba(255, 203, 5, .18), transparent 60%),
    linear-gradient(160deg, #1e2a6b, #121839);
  border: 1px solid var(--panel-border);
}
@media (max-width: 1032px) { .final { margin-left: 16px; margin-right: 16px; } }
.final h2 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(16px, 3vw, 26px); line-height: 1.6; }
.final p { color: var(--muted); font-size: 18px; margin: 18px 0 30px; }

.footer { padding: 56px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.footer p { margin: 4px 0; }
.footer strong { color: var(--text); }
.footer .fine { opacity: .7; font-size: 12px; max-width: 640px; margin: 8px auto 0; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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