:root {
  --ink: #0c0c0c;
  --bg: #0f172a;
  --bg-alt: #111827;
  --panel: #131c2f;
  --accent: #7cfc00;
  --accent-2: #33d6ff;
  --muted: #6b7280;
  --border: #1f2937;
  --shadow: 0 10px 0 #0a0f1a;
  --pixel: 4px;
}

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

body {
  margin: 0;
  font-family: "VT323", monospace;
  background: var(--bg);
  color: #e5e7eb;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  background:
    radial-gradient(circle at 1px 1px, #1e293b 1px, transparent 0) 0 0/32px 32px,
    radial-gradient(circle at 1px 1px, #111827 1px, transparent 0) 0 0/16px 16px,
    linear-gradient(135deg, #0f172a 0%, #0b1120 100%);
}

.pixel-shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: var(--pixel) solid var(--border);
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.brand-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Press Start 2P", cursive;
  letter-spacing: 1px;
}

.brand-tag {
  color: var(--muted);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  padding: 12px 14px;
  border: var(--pixel) solid var(--border);
  background: #0b1222;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.nav-link .nav-edge {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 120ms ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 0 #0a0f1a;
}

.nav-link:hover .nav-edge {
  opacity: 1;
}

.nav-link.active {
  background: linear-gradient(135deg, #0f172a 0%, #1d2538 100%);
  border-color: var(--accent);
  color: var(--accent);
}

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

.content.loading {
  position: relative;
}

.content.loading::after {
  content: "Loading...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  font-family: "Press Start 2P", cursive;
  letter-spacing: 2px;
  color: var(--accent);
}

.panel {
  padding: 26px 28px;
  background: var(--panel);
  border: var(--pixel) solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-text h1,
.panel h1 {
  margin: 8px 0 12px;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.hero-text .lede,
.panel .lede {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(51, 214, 255, 0.1);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: var(--pixel) solid var(--border);
  background: #0b1222;
  color: #e5e7eb;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 0 #0a0f1a;
}

.btn.primary {
  background: linear-gradient(135deg, #7cfc00, #3cff00);
  color: #0c0c0c;
  border-color: #0f0;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn.block {
  width: 100%;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  padding: 8px 10px;
  border: var(--pixel) solid var(--border);
  background: #0b1222;
  font-size: 14px;
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.pixel-frame {
  width: 100%;
  max-width: 360px;
  background: #0b1222;
  border: var(--pixel) solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-label {
  color: var(--muted);
  margin: 0;
}

.stat-value {
  margin: 4px 0 0;
  font-family: "Press Start 2P", cursive;
}

.mini-map {
  margin-top: 16px;
  background:
    linear-gradient(90deg, rgba(124, 252, 0, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(51, 214, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(124, 252, 0, 0.18);
  animation: pulse 2s infinite;
  top: 30%;
  left: 20%;
}

.pulse.delay {
  top: 55%;
  left: 60%;
  animation-delay: 0.6s;
}

.pulse.slow {
  top: 70%;
  left: 35%;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

.panel.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.card {
  background: #0b1222;
  border: var(--pixel) solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0;
}

.metric-value {
  font-size: 28px;
  font-family: "Press Start 2P", cursive;
  color: var(--accent);
}

.metric-label {
  color: var(--muted);
}

.list {
  padding-left: 16px;
  margin: 8px 0;
  color: #d1d5db;
}

.list li {
  margin-bottom: 8px;
}

.grid.two,
.grid.three {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: var(--pixel) solid #0f0;
  box-shadow: var(--shadow);
}

.timeline-body {
  margin-left: 24px;
  border-left: var(--pixel) solid var(--border);
  padding-left: 12px;
}

.timeline-body h4 {
  margin: 0 0 6px;
  font-family: "Press Start 2P", cursive;
}

.specs {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.specs div {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border: var(--pixel) solid var(--border);
}

.specs span {
  color: var(--muted);
}

.wallet-head,
.social-head,
.exchange-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.badge {
  padding: 6px 8px;
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  border: var(--pixel) solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.badge.success {
  background: rgba(124, 252, 0, 0.2);
  color: #ccff90;
}

.badge.info {
  background: rgba(51, 214, 255, 0.2);
  color: #a5f3ff;
}

.badge.muted {
  background: rgba(107, 114, 128, 0.2);
  color: #cbd5e1;
}

.wallet.unavailable,
.exchange.unavailable {
  opacity: 0.7;
}

.footer {
  margin-top: 12px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel);
  border: var(--pixel) solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.footer-dots {
  display: flex;
  gap: 6px;
}

.footer-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: var(--pixel) solid #0f0;
  box-shadow: 0 0 0 var(--pixel) #0c0c0c;
  animation: blink 1.2s infinite;
}

.footer-dots span:nth-child(2) { animation-delay: 0.2s; }
.footer-dots span:nth-child(3) { animation-delay: 0.4s; }
.footer-dots span:nth-child(4) { animation-delay: 0.6s; }

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }
}
