@font-face {
  font-family: "Pixel";
  src: url("/JF-Dot-Shinonome-14-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #042b34;
  --deep: #032128;
  --cream: #fff2c7;
  --paper: #ffd99c;
  --coral: #ff6f70;
  --yellow: #ffe65b;
  --green: #93e271;
  --blue: #72d5df;
  --line: #fff8df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    url("/assets/retro-girl.png") fixed bottom left / contain no-repeat,
    linear-gradient(135deg, #043742, var(--deep));
  font-family: "Pixel", "Courier New", monospace;
  letter-spacing: 1.2px;
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #000 4px);
  z-index: 10;
}

.market-tape {
  display: none;
}
.market-tape span { animation: tape 22s linear infinite; }
@keyframes tape { to { transform: translateX(calc(-100% - 4rem)); } }

.shell { width: min(800px, calc(100% - 28px)); margin: 20px auto 70px; }
.brand-header { margin: 0 0 24px; text-align: center; }
.eyebrow, .kicker { margin: 0 0 5px; font-size: 13px; font-weight: 900; letter-spacing: 2.5px; }
.brand-header h1 { margin: 0; font-size: clamp(42px, 6vw, 58px); line-height: .95; color: var(--cream); text-shadow: 4px 3px 0 var(--coral); }
.brand-header h1 span { color: var(--yellow); }
.tagline { margin: 10px auto 0; color: var(--cream); font-weight: 900; text-shadow: 2px 2px 0 #bd394d; }

.panel {
  position: relative;
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 36px);
  color: var(--ink);
  background: var(--paper);
  border: 7px solid var(--line);
  border-radius: 44px;
}
.panel:not(.nav)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 8px;
  background: url("/assets/retro-divider.gif") repeat-x left center / auto 8px;
}
.nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 30px; padding: 14px 20px; }
a { color: #b63847; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--ink); }
.nav .x-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--cream);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 #bd394d;
  text-decoration: none;
}
.nav .x-button:hover,
.nav .x-button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
}

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 10px; background: var(--cream); border: 2px solid var(--ink); font-size: 12px; font-weight: 900; }
.status-dot { width: 9px; height: 9px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,111,112,.22); }
.status-dot.live-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(147,226,113,.28); }
.hero h2, .panel h2 { margin: 0; line-height: 1.1; }
.hero h2 { font-size: clamp(30px, 6vw, 52px); }
.hero h2 em { color: #bd394d; font-style: normal; }
.lead { margin-bottom: 0; font-size: 17px; }
.retro-lights {
  height: 29px;
  margin: 18px 0 -6px;
  background: url("/assets/retro-lights.gif") repeat-x left center / auto 29px;
}
.terminal-card { border: 4px solid var(--ink); background: var(--cream); box-shadow: 6px 6px 0 #bd394d; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 8px; color: var(--cream); background: var(--ink); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.terminal-bar b { margin-left: auto; font-size: 11px; }
dl { margin: 0; padding: 13px; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px dashed rgba(4,43,52,.25); }
dl div:last-child { border: 0; }
dt { font-size: 11px; font-weight: 900; }
dd { margin: 0; text-align: right; font-weight: 900; }
.pending { color: #bd394d; }
.live-value { color: #27734d; }

.vault-section { background: #a8d9c3; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(26px, 5vw, 42px); }
.sync-state { padding: 7px 10px; border: 3px solid var(--ink); background: var(--yellow); font-size: 11px; font-weight: 900; white-space: nowrap; }
.sync-state.live { background: var(--green); }
.sync-state.error { background: var(--coral); }
.vault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.balance-card { min-width: 0; padding: 22px; border: 4px solid var(--ink); background: var(--cream); box-shadow: 5px 5px 0 var(--ink); }
.balance-card p { margin: 0 0 12px; font-size: 12px; font-weight: 900; }
.balance-card strong { display: block; overflow-wrap: anywhere; font-size: clamp(34px, 8vw, 60px); line-height: 1; }
.balance-card span { display: block; margin-top: 8px; font-weight: 900; }
.bnb-card { border-top-color: #e6ad10; }
.mstr-card { border-top-color: #bd394d; }
.vault-meta { margin-top: 22px; border: 3px solid var(--ink); background: rgba(255,242,199,.6); }
.vault-meta div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 13px; border-bottom: 2px dashed rgba(4,43,52,.32); }
.vault-meta div:last-child { border: 0; }
.vault-meta span { font-size: 11px; font-weight: 900; }
.vault-meta code { font-family: inherit; overflow-wrap: anywhere; text-align: right; }
.vault-meta a { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.vault-note { margin: 18px 0 0; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article { padding: 18px; border: 3px solid var(--ink); background: var(--cream); }
.steps article > span { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--cream); background: var(--ink); font-weight: 900; }
.steps h3 { margin: 16px 0 7px; }
.steps p { margin: 0; font-size: 14px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; }
.launch-box { padding: 22px; text-align: center; border: 4px double var(--ink); background: var(--yellow); transform: rotate(1deg); }
.launch-box span, .launch-box small { display: block; font-weight: 900; }
.launch-box strong { display: block; margin: 9px 0; font-size: 30px; color: #bd394d; }
.contract-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contract-actions a { padding: 8px 12px; color: var(--cream); background: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 #bd394d; text-decoration: none; }
.contract-actions a:hover, .contract-actions a:focus-visible { color: var(--ink); background: var(--yellow); }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 26px 26px 38px; color: var(--ink); text-align: center; font-size: 12px; }
.site-footer strong { color: #bd394d; }
.site-footer small { flex-basis: 100%; opacity: .75; }
.sprite-row { flex-basis: 100%; display: flex; justify-content: center; align-items: end; gap: 4px; height: 58px; overflow: hidden; }
.sprite-row img { width: 32px; height: auto; image-rendering: pixelated; }

@media (max-width: 720px) {
  .shell { width: min(100% - 18px, 800px); margin-top: 22px; }
  .panel { border-width: 5px; border-radius: 20px; }
  .hero, .split { grid-template-columns: 1fr; }
  .vault-grid, .steps { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .sync-state { display: inline-block; margin-top: 12px; }
  .vault-meta div { grid-template-columns: 1fr; }
  .vault-meta code { text-align: left; }
  .brand-header h1 { font-size: clamp(36px, 13vw, 62px); text-shadow: 4px 4px 0 var(--coral), 7px 7px 0 #001d24; }
  .tagline { font-size: 13px; }
}

@media (max-width: 1050px) {
  body {
    background:
      linear-gradient(rgba(3,33,40,.72), rgba(3,33,40,.72)),
      url("/assets/retro-girl.png") fixed bottom left / contain no-repeat,
      var(--deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .market-tape span { animation: none; }
}
