:root {
  --lime: #ccff00;
  --lime-dim: #9acc00;
  --lime-glow: rgba(204, 255, 0, 0.45);
  --lime-soft: rgba(204, 255, 0, 0.1);
  --void: #050505;
  --panel: #0a0a0e;
  --panel2: #111116;
  --text: #ececf4;
  --muted: #7a7a94;
  --font-ui: "VT323", Consolas, monospace;
  --font-pixel: "Press Start 2P", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
}

body.loaded { overflow-y: auto; }

code { color: var(--lime); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; }

/* Boot */
#boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--void);
  display: grid;
  place-items: center;
  transition: opacity 0.4s, visibility 0.4s;
}

#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-inner { text-align: center; }

.boot-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--lime);
  margin: 16px 0;
  text-shadow: 0 0 24px var(--lime-glow);
}

#boot-bar {
  width: 200px;
  height: 4px;
  background: #222;
  margin: 0 auto 16px;
}

#boot-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime-glow);
  transition: width 0.1s;
}

#boot-skip {
  font-family: var(--font-ui);
  font-size: 18px;
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
  padding: 8px 20px;
  cursor: pointer;
}

#boot-skip:hover { background: var(--lime-soft); }

/* BG effects */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.digit-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.digit-rain span {
  position: absolute;
  top: -20px;
  color: rgba(204, 255, 0, 0.15);
  font-family: var(--font-pixel);
  font-size: 10px;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(110vh); opacity: 0; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid rgba(204, 255, 0, 0.15);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lime);
  font-family: var(--font-pixel);
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
  transition: color 0.2s;
}

.nav a:hover { color: var(--lime); }

.nav-x {
  font-size: 20px !important;
  color: var(--lime) !important;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
}

.phase-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 6px 10px;
  border: 1px solid var(--lime);
  color: var(--lime);
  background: var(--lime-soft);
}

.phase-badge[data-phase="mint_live"] { border-color: var(--lime); color: var(--lime); animation: pulse 2s infinite; }
.phase-badge[data-phase="staking"] { animation: pulse 2s infinite; }

@keyframes pulse {
  50% { box-shadow: 0 0 16px var(--lime-glow); }
}

/* Buttons */
.btn {
  font-family: var(--font-ui);
  font-size: 17px;
  padding: 10px 18px;
  border: 2px solid var(--lime);
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover:not(:disabled) { background: var(--lime-soft); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-lime { background: var(--lime); color: #000; font-weight: bold; }
.btn-lime:hover:not(:disabled) { background: var(--lime-dim); }
.btn-lime.connected { background: transparent; color: var(--lime); }
.btn-ghost { border-color: rgba(204, 255, 0, 0.35); }
.btn-lg { padding: 14px 28px; font-size: 19px; }
.btn-sm { padding: 4px 10px; font-size: 15px; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(36px, 8vw, 64px);
  color: var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.h-stat {
  padding: 12px;
  border: 1px solid rgba(204, 255, 0, 0.2);
  background: var(--lime-soft);
  text-align: center;
}

.h-stat b {
  display: block;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--lime);
  margin-bottom: 4px;
}

.h-stat span { font-size: 13px; color: var(--muted); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note { font-size: 15px; color: var(--muted); }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.mascot-frame {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  border: 3px solid var(--lime);
  box-shadow: 0 0 60px var(--lime-glow), inset 0 0 40px var(--lime-soft);
  display: grid;
  place-items: center;
  background: var(--lime);
  position: relative;
  overflow: hidden;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.mascot-label {
  position: absolute;
  bottom: -14px;
  font-family: var(--font-pixel);
  font-size: 8px;
  background: var(--void);
  padding: 4px 12px;
  border: 1px solid var(--lime);
  color: var(--lime);
}

.hero-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  justify-content: center;
}

.hero-ticker span:nth-child(odd) { color: var(--lime); }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-dark { background: var(--panel); }

.section-head {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--lime);
  margin-bottom: 40px;
  text-align: center;
}

.subhead {
  font-size: 18px;
  color: var(--lime);
  margin: 24px 0 12px;
  border-bottom: 1px solid rgba(204, 255, 0, 0.15);
  padding-bottom: 6px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel2);
}

.about-card h3 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--lime);
  margin-bottom: 12px;
}

.about-card p { color: var(--muted); font-size: 17px; }

/* Collection */
.collection-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.trait-list { list-style: none; }

.trait-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  color: var(--muted);
}

.trait-list span {
  display: inline-block;
  width: 90px;
  color: var(--lime);
}

.rarity-note { margin-top: 16px; font-size: 15px; color: var(--muted); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.preview-tile {
  aspect-ratio: 1;
  background: var(--lime);
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-pixel);
  font-size: 9px;
  border: 2px solid #000;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

.preview-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.preview-tile small {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 11px;
  margin: 0;
  padding: 4px 6px;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
  color: var(--lime);
}

.preview-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--lime-glow);
  z-index: 2;
}

/* Roadmap */
.roadmap { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.road-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel2);
}

.road-step.next,
.road-step.live { border-color: var(--lime); box-shadow: 0 0 24px var(--lime-soft); }
.road-step.done { opacity: 0.7; }

.road-num {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--lime);
  min-width: 40px;
}

.road-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.road-status {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--lime);
  margin-left: 8px;
}

.road-body p { color: var(--muted); font-size: 16px; }

.timeline-box {
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(204, 255, 0, 0.3);
  background: var(--lime-soft);
}

.timeline-box span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.timeline-box strong { font-family: var(--font-pixel); font-size: 9px; color: var(--lime); }

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: -8px auto 28px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.section-lead a { color: var(--lime); }

.section-head-sm { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 16px; }

/* Official links */
.links-bar { padding-top: 32px; padding-bottom: 32px; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel2);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 20px var(--lime-soft);
}

.link-card-lime { border-color: rgba(204, 255, 0, 0.35); }

.link-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.link-card strong {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--lime);
  word-break: break-all;
}

.collection-cta { margin-top: 20px; }

/* Tokenomics flow */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.flow-step {
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel2);
  position: relative;
}

.flow-step-lime {
  border-color: var(--lime);
  box-shadow: inset 0 0 24px var(--lime-soft);
}

.flow-num {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #000;
  background: var(--lime);
  padding: 4px 8px;
  margin-bottom: 10px;
}

.flow-step h3 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--lime);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.flow-step a { color: var(--lime); }

.calc-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.staking-locked-banner {
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
  color: #ffb8f0;
  background: rgba(255, 43, 214, 0.08);
  border: 1px solid rgba(255, 43, 214, 0.35);
}

.nft-locked {
  display: block;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-pixel);
  color: var(--muted);
  padding: 8px 4px;
}

/* Staking terminal */
.demo-banner {
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: center;
  background: rgba(255, 43, 214, 0.1);
  border: 1px solid rgba(255, 43, 214, 0.35);
  color: #ffb8f0;
  font-size: 16px;
}

.terminal {
  border: 2px solid var(--lime);
  background: #000;
  box-shadow: 0 0 40px var(--lime-soft);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(90deg, #1a2a00, #111);
  border-bottom: 1px solid var(--lime);
  color: var(--lime);
  font-size: 16px;
}

.wallet-pill {
  font-size: 14px;
  padding: 2px 10px;
  border: 1px solid rgba(204, 255, 0, 0.4);
}

.terminal-body { padding: 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat {
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel2);
}

.stat b {
  display: block;
  font-family: var(--font-pixel);
  font-size: 11px;
  margin-bottom: 4px;
}

.stat span { font-size: 13px; color: var(--muted); }
.stat-lime b { color: var(--lime); text-shadow: 0 0 10px var(--lime-glow); }

.stake-actions { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 156px));
  justify-content: start;
  gap: 12px;
}

.nft-grid.is-loading {
  display: block;
}

.nft-card {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel2);
}

.nft-card.staked { border-color: var(--lime); box-shadow: inset 0 0 20px var(--lime-soft); }

.nft-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 136px;
  margin: 0 auto 8px;
  background: var(--lime);
  color: #000;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nft-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.nft-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 9px;
  background: var(--lime);
  z-index: 0;
}

.nft-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-family: var(--font-pixel);
  font-size: 7px;
  background: var(--lime);
  color: #000;
  letter-spacing: 0.04em;
  z-index: 2;
}

.nft-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.nft-id { color: var(--text); font-size: 14px; }

.nft-tier { color: var(--lime); }

.empty-msg { color: var(--muted); margin-bottom: 12px; }

.calc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.calc-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.calc-row input, .calc-row select {
  font-family: var(--font-ui);
  font-size: 18px;
  padding: 8px;
  background: #000;
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--text);
  width: 100px;
}

.calc-result { margin-top: 12px; color: var(--lime); }

/* Tokenomics */
.tok-header { text-align: center; margin-bottom: 32px; }

.tok-symbol {
  font-family: var(--font-pixel);
  font-size: 28px;
  color: var(--lime);
  text-shadow: 0 0 30px var(--lime-glow);
}

.alloc-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.alloc-head {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 6px;
}

.alloc-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.alloc-bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
}

.alloc-row small { color: var(--muted); font-size: 14px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-item {
  padding: 14px;
  border: 1px solid rgba(204, 255, 0, 0.2);
  background: var(--lime-soft);
  font-size: 15px;
  color: var(--muted);
}

/* FAQ */
.faq-list details {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  background: var(--panel2);
}

.faq-list summary {
  cursor: pointer;
  color: var(--lime);
  font-size: 17px;
}

.faq-list p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.disclaimer {
  margin-top: 24px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid rgba(204, 255, 0, 0.15);
  background: #000;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: var(--lime);
  text-decoration: none;
  font-size: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: #1a1a22;
  border: 1px solid var(--lime);
  color: var(--lime);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10000;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { border-color: #ff2bd6; color: #ffb8f0; }
.toast.err { border-color: #f44; color: #f99; }

/* Responsive */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.system-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.status-row {
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel2);
}

.status-row a { color: var(--lime); }

.status-row.ok { border-color: rgba(204, 255, 0, 0.35); color: var(--lime); }
.status-row.wait { border-color: rgba(255, 255, 255, 0.12); color: var(--muted); }
.status-row.lock { border-color: rgba(255, 43, 214, 0.35); color: #ffb8f0; }
.status-row.done { border-color: rgba(255, 255, 255, 0.2); color: var(--muted); }
.status-row.warn { border-color: rgba(255, 200, 0, 0.4); color: #ffd966; }

.contract-status {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px dashed rgba(204, 255, 0, 0.2);
}

.manual-stake {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  padding: 12px;
  background: var(--lime-soft);
  border: 1px solid rgba(204, 255, 0, 0.2);
}

.manual-stake label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.manual-stake input {
  font-family: var(--font-ui);
  font-size: 18px;
  padding: 8px;
  background: #000;
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--text);
  width: 140px;
}

.nav-os { color: var(--lime) !important; }

@media (max-width: 900px) {
  .rewards-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .collection-layout, .trust-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.98);
    padding: 20px;
    border-bottom: 1px solid rgba(204, 255, 0, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .phase-badge { display: none; }
}

@media (max-width: 500px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
