/* ==========================================================================
   Blitzpad — visual layer

   One layer, one cascade. Tokens first, then the page in markup order, then
   motion, then the breakpoints. Nothing here overrides anything earlier in
   this file; if a value needs to change, it changes at its definition.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Neutrals carry a green cast so they sit under the acid accent rather than
     fighting it. */
  --ink: #0b0e0c;
  --ink-soft: #151b16;
  --ink-deep: #101614;
  --paper: #ffffff;
  --paper-veil: #fcfdfc;
  --paper-tint: #f7faf5;
  --paper-sink: #eef3ea;

  --rule: #dfe5dc;
  --rule-strong: #c6cfc2;
  --rule-dark: #2c3830;

  --muted: #6b766d;
  --muted-soft: #8d978d;
  --muted-dark: #9aa89b;

  /* One accent, spent on the few things that ask for a decision. */
  --acid: #a3f428;
  --acid-ink: #16240b;
  --acid-deep: #34701f;

  --rise: #3f7d33;
  --fall: #b35a50;
  --warn: #e0a32a;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* The page gutter, shared by every full-bleed band. */
  --gutter: 4%;
  /* Market rows and their header share one track list. */
  --market-cols: 32px minmax(0, 1.55fr) minmax(0, 1.2fr) minmax(0, 0.92fr)
    minmax(0, 1.15fr) minmax(0, 0.86fr) 32px;
  --market-gap: 24px;

  --ease: cubic-bezier(0.4, 0.14, 0.3, 1);
}

/* ---------------------------------------------------------------- reset -- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border-radius: 0;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--acid);
  color: var(--acid-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--acid-deep);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 40;
  padding: 15px;
  background: var(--acid);
  color: var(--acid-ink);
  font-family: var(--mono);
  font-size: 12px;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* --------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.054em;
  white-space: nowrap;
}

.trademark {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.header nav {
  display: flex;
  gap: 27px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
}

.header nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.header nav a:hover,
.header nav a.active {
  color: var(--ink);
}

.header nav a:hover::after,
.header nav a.active::after {
  transform: scaleX(1);
}

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

/* -------------------------------------------------------------- buttons -- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  min-height: 41px;
  padding: 0 0 0 15px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

/* The trailing glyph is a block of its own, split off by a hairline. */
.button > span:last-child {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 46px;
  border-left: 1px solid currentColor;
  font-size: 20px;
  line-height: 1;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button-dark > span:last-child {
  border-left-color: color-mix(in srgb, var(--paper) 28%, transparent);
  background: var(--acid);
  color: var(--acid-ink);
}

.button-dark:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}

.button-dark:hover > span:last-child {
  background: var(--ink);
  color: var(--acid);
  border-left-color: var(--ink);
}

.button-green {
  min-height: 50px;
  padding-left: 22px;
  gap: 27px;
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-green > span:last-child {
  width: 50px;
  border-left-color: color-mix(in srgb, var(--acid-ink) 30%, transparent);
  font-size: 22px;
}

.button-green:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}

.button-green:hover > span:last-child {
  border-left-color: color-mix(in srgb, var(--acid) 40%, transparent);
}

.quiet-button {
  justify-content: center;
  padding: 0 18px;
  border-color: var(--rule-strong);
  color: var(--muted);
  font-size: 13px;
}

.quiet-button:hover {
  background: var(--paper-sink);
  border-color: var(--ink);
  color: var(--ink);
}

.text-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px 0 0;
  margin-top: auto;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.text-button > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--paper-sink);
  color: var(--ink);
  font-size: 15px;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.text-button:hover > span {
  background: var(--ink);
  color: var(--acid);
}

.x-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 41px;
  padding: 0 15px;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.x-social-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.x-social-button:hover {
  background: var(--paper);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.about-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.wallet-button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.wallet-button svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------------- hero -- */

.strike-hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.strike-layout {
  position: relative;
  height: 760px;
  background: var(--paper-veil);
}

.strike-art,
.hero-stage,
#hero-canvas {
  position: absolute;
  inset: 0;
}

.strike-art {
  z-index: 0;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  touch-action: none;
}

.hero-stage[data-state="ready"] #hero-canvas {
  opacity: 1;
}

.hero-stage[data-state="fallback"] #hero-canvas {
  display: none;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.hero-fallback img {
  width: min(42vmin, 348px);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-stage[data-state="fallback"] .hero-fallback {
  opacity: 1;
}

.hero-edition,
.scene-coordinate {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
  pointer-events: none;
}

.hero-edition {
  top: 26px;
}

.hero-edition > span::before {
  content: "+";
  margin-right: 8px;
  font-size: 14px;
  vertical-align: -1px;
  color: var(--muted-soft);
}

/* The scene coordinate is a second edition line, kept for the 3D stage. */
.scene-coordinate {
  top: 26px;
  visibility: hidden;
}

.strike-copy {
  position: absolute;
  top: 171px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(1250px, 92%);
  text-align: center;
  pointer-events: none;
}

.strike-copy > * {
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  box-shadow: 0 4px 18px rgb(21 36 18 / 0.05);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.hero-kicker > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 25%, transparent);
}

.hero-kicker:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 6px 22px rgb(21 36 18 / 0.1);
}

.kicker-arrow {
  color: var(--muted);
}

#hero-title {
  margin: 13px 0 8px;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: 1.08;
  letter-spacing: -0.078em;
}

.hero-registered {
  font-family: var(--mono);
  font-size: 0.1em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--muted);
}

.hero-tagline {
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--ink);
}

.hero-summary {
  max-width: 440px;
  margin: 17px auto 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.strike-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-explore {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 41px;
  padding: 0 0 0 18px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.hero-explore > span {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 44px;
  border-left: 1px solid var(--rule-strong);
  font-size: 17px;
  transition: transform 0.2s var(--ease);
}

.hero-explore:hover {
  border-color: var(--ink);
  background: var(--paper-tint);
}

.hero-explore:hover > span {
  transform: translateY(2px);
}

.hero-insight {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 3;
  width: 190px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  text-align: left;
}

.insight-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.insight-dot {
  width: 6px;
  height: 6px;
  background: var(--acid);
}

.insight-pair {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.insight-pair > span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.insight-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

.insight-action:hover {
  color: var(--acid-deep);
}

.insight-note {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.scene-ui {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.scene-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: color-mix(in srgb, var(--paper) 87%, transparent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.scene-hint svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.scene-ui > div {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}

.scene-ui button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 87%, transparent);
  font-size: 15px;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.scene-ui button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}

.strike-footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-left: var(--gutter);
}

.hero-bottom-title {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 34px 22px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-bottom-title strong {
  color: var(--ink);
  font-weight: 600;
}

/* Two crossed bars: the mark that sits beside the closing hero line. */
.hero-signal {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.hero-signal::before,
.hero-signal::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 12px;
  height: 5px;
  background: var(--ink);
}

.hero-signal::before {
  transform: rotate(-45deg);
}

.hero-signal::after {
  transform: rotate(45deg);
}

.hero-stock-controls {
  display: flex;
  align-items: stretch;
}

.pair-selector-label {
  display: flex;
  align-items: center;
  max-width: 128px;
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.hero-stock-controls button {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-left: 1px solid var(--rule);
  background: var(--paper);
  text-align: left;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.hero-stock-controls button::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.hero-stock-controls button[aria-pressed="true"] {
  background: var(--paper-tint);
}

.hero-stock-controls button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.hero-stock-controls button:hover:not(:disabled) {
  background: var(--paper-tint);
}

.hero-stock-controls button > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
}

.hero-stock-controls button small,
.asset-company small,
.asset-strip > span small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.hero-stock-controls button b {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-soft);
}

.stock-brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------- section -- */

.section {
  padding: 88px var(--gutter) 54px;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.7fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 44px;
}

.section-id {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.section-index {
  color: var(--ink);
  font-size: 11px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.057em;
}

.explore h2 > span {
  color: var(--acid-deep);
}

.heading-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.data-label,
.section-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  white-space: nowrap;
}

.data-label i {
  width: 6px;
  height: 6px;
  background: var(--acid);
}

/* -------------------------------------------------------------- explore -- */

.explorer-controls {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 58px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.tabs {
  display: flex;
}

.tab {
  position: relative;
  padding: 16px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  background: var(--ink);
  color: var(--paper);
}

#token-count {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.tab.active #token-count {
  padding: 2px 5px;
  background: var(--acid);
  color: var(--acid-ink);
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(285px, 32%);
  padding: 0 18px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
}

.search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  border: 0;
  background: none;
  outline-offset: 6px;
  font-size: 13px;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted-soft);
}

.market-head {
  display: grid;
  grid-template-columns: var(--market-cols);
  align-items: center;
  gap: var(--market-gap);
  padding: 19px 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted-soft);
}

.market-head > span:nth-child(4),
.market-head > span:nth-child(5),
.market-head > span:nth-child(6) {
  text-align: right;
}

.market-head > span:last-child {
  text-align: center;
}

.token-grid {
  display: flex;
  flex-direction: column;
}

.token-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--market-cols);
  align-items: center;
  gap: var(--market-gap);
  min-height: 109px;
  padding: 23px 10px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

/* A rail that wipes in on hover, the row's only decoration. */
.token-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--acid-deep);
  transform: scaleY(0);
  transition: transform 0.2s var(--ease);
}

.token-card:hover {
  background: var(--paper-tint);
}

.token-card:hover::before {
  transform: scaleY(1);
}

.market-rank {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.token-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.token-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--ink-soft);
  color: var(--acid);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.token-title {
  min-width: 0;
}

.token-title h3 {
  margin-bottom: 7px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.018em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-title p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.token-status {
  padding: 2px 4px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-sink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.token-status.live {
  border-color: color-mix(in srgb, var(--acid-deep) 35%, var(--paper));
  background: color-mix(in srgb, var(--acid) 16%, var(--paper));
  color: var(--acid-deep);
}

.token-status.fresh {
  border-color: var(--rule-strong);
  background: var(--paper);
  color: var(--muted);
}

.pair-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.pair-stock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.pair-stock::before {
  content: "↗";
  margin-right: 6px;
  color: var(--acid-deep);
}

.market-price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-change {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.spark {
  width: 84px;
  height: 34px;
  flex-shrink: 0;
  overflow: visible;
  stroke: var(--rise);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.spark.negative {
  stroke: var(--fall);
}

.change {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--rise);
  white-space: nowrap;
}

.change.negative {
  color: var(--fall);
}

.market-liquidity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-liquidity small {
  font-size: 10px;
  color: var(--muted-soft);
}

.row-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--paper-sink);
  font-size: 15px;
  color: var(--ink);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.token-card:hover .row-arrow {
  background: var(--ink);
  color: var(--acid);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 88px 20px;
  text-align: center;
}

.empty-pair-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule-strong);
  font-size: 22px;
  color: var(--muted-soft);
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
}

.empty-state .button {
  margin-top: 10px;
}

.explore-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

#show-more {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

#show-more > span {
  background: none;
  width: auto;
  height: auto;
  font-size: 16px;
}

#show-more:hover {
  color: var(--acid-deep);
}

#show-more:hover > span {
  background: none;
  color: var(--acid-deep);
}

/* ---------------------------------------------------------- asset strip -- */

.asset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-tint);
}

.asset-strip-label {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

.asset-strip > span:not(.asset-strip-label) {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.asset-company img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* The name sits over its ticker; the logo stays beside both. */
.asset-company > span,
.asset-strip > span:not(.asset-strip-label):not(.asset-company) {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
}

.asset-strip > b {
  font-size: 22px;
  font-weight: 400;
  color: var(--muted-soft);
}

/* ----------------------------------------------------------- strategies -- */

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.strategy-card {
  display: flex;
  flex-direction: column;
  padding: 27px 36px 25px;
  border-right: 1px solid var(--rule-strong);
  background: var(--paper);
  transition: background 0.25s var(--ease);
}

.strategy-card:hover {
  background: var(--paper-tint);
}

.strategy-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.strategy-type {
  padding: 5px 6px;
  border: 1px solid var(--rule-strong);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.strategy-illustration {
  height: 161px;
  margin-top: 23px;
  overflow: hidden;
}

.strategy-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-width: 1.5;
}

.strategy-illustration .diagram-grid {
  stroke: var(--rule);
  stroke-width: 0.7;
}

.strategy-illustration .diagram-muted {
  stroke: var(--muted-soft);
  stroke-width: 1;
}

.strategy-illustration .diagram-arc,
.strategy-illustration .diagram-signal,
.strategy-illustration .diagram-arrow {
  stroke: var(--acid-deep);
  stroke-width: 2.3;
}

.strategy-illustration .diagram-dash {
  stroke: var(--rule-strong);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.strategy-illustration .diagram-node {
  fill: var(--acid-deep);
  stroke: var(--paper);
  stroke-width: 2;
}

.strategy-illustration .diagram-moon {
  fill: var(--ink-soft);
  stroke: none;
}

.strategy-illustration .diagram-average {
  stroke: var(--muted-soft);
  stroke-width: 1.4;
}

.strategy-illustration .diagram-guide {
  stroke: var(--muted);
  stroke-dasharray: 2 3;
  stroke-width: 1;
}

.strategy-illustration text {
  stroke: none;
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.strategy-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.strategy-card h3 {
  margin: 32px 0 17px;
  font-size: clamp(1.6rem, 2.3vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.038em;
}

.strategy-card p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.strategy-leverage {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--acid-deep);
}

/* The second card runs inverted, so the grid reads as a composition rather
   than nine identical tiles. */
.strategy-card:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}

.strategy-card:nth-child(2):hover {
  background: var(--ink-soft);
}

.strategy-card:nth-child(2) .strategy-number,
.strategy-card:nth-child(2) .strategy-caption,
.strategy-card:nth-child(2) p {
  color: var(--muted-dark);
}

.strategy-card:nth-child(2) .strategy-type {
  border-color: var(--rule-dark);
  color: var(--muted-dark);
}

.strategy-card:nth-child(2) .strategy-leverage {
  color: var(--acid);
}

.strategy-card:nth-child(2) .strategy-caption,
.strategy-card:nth-child(2) .text-button {
  border-top-color: var(--rule-dark);
}

.strategy-card:nth-child(2) .text-button > span {
  background: var(--acid);
  color: var(--acid-ink);
}

.strategy-card:nth-child(2) .text-button:hover > span {
  background: var(--paper);
  color: var(--ink);
}

.strategy-card:nth-child(2) .diagram-grid {
  stroke: var(--rule-dark);
}

.strategy-card:nth-child(2) .diagram-arc,
.strategy-card:nth-child(2) .diagram-signal,
.strategy-card:nth-child(2) .diagram-arrow {
  stroke: var(--acid);
}

.strategy-card:nth-child(2) .diagram-node {
  fill: var(--acid);
  stroke: var(--ink);
}

.strategy-card:nth-child(2) .diagram-moon {
  fill: var(--paper);
}

.strategy-card:nth-child(2) .diagram-average,
.strategy-card:nth-child(2) .diagram-muted {
  stroke: var(--muted);
}

.strategy-card:nth-child(2) .diagram-dash,
.strategy-card:nth-child(2) .diagram-guide {
  stroke: var(--muted);
}

.strategy-card:nth-child(2) text {
  fill: var(--muted-dark);
}

/* --------------------------------------------------------- how it works -- */

.how-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 8%;
  padding: 77px var(--gutter) 28px;
  background: var(--ink-deep);
  color: var(--paper);
  overflow: hidden;
}

.how-intro .section-id {
  color: var(--muted-dark);
}

.how-intro .section-index {
  color: var(--acid);
}

.how-intro h2 {
  margin: 27px 0 26px;
  font-size: clamp(2.6rem, 5.4vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.how-intro h2 > span {
  color: var(--acid);
}

.how-intro > p {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.pair-equation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.equation-token,
.equation-pool {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--rule-dark);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.equation-token small,
.equation-pool small {
  position: absolute;
  margin-top: 84px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  white-space: nowrap;
}

.equation-stock,
.equation-pool {
  color: var(--acid);
  border-color: color-mix(in srgb, var(--acid) 45%, transparent);
}

.equation-link,
.equation-equals {
  font-size: 18px;
  color: var(--muted-dark);
}

.how-intro .button-green {
  margin-top: 46px;
}

.steps {
  padding-top: 44px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 29px;
  gap: 18px;
  padding: 27px 0 31px;
  border-top: 1px solid var(--rule-dark);
}

.step-number {
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--muted-dark);
}

.step h3 {
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.step b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  align-self: start;
  border: 1px solid var(--rule-dark);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-dark);
}

.how-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  gap: 47px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted-dark);
}

.how-note > span {
  flex-shrink: 0;
  color: var(--acid);
}

/* -------------------------------------------------------------- closing -- */

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 84px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-tint);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.closing-signal {
  color: var(--acid-deep);
  font-size: 13px;
}

.closing h2 {
  margin-top: 23px;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.closing h2 > span {
  color: var(--muted-soft);
}

.end-launch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 204px;
  height: 204px;
  flex-shrink: 0;
  padding: 21px;
  border: 1px solid var(--acid-ink);
  background: var(--acid);
  color: var(--acid-ink);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.end-launch > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.end-launch > b {
  align-self: flex-end;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.end-launch:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}

.end-launch:hover > b {
  transform: translate(4px, -4px);
}

/* --------------------------------------------------------------- footer -- */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 34px var(--gutter);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

footer > .brand {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--ink);
}

footer > p {
  max-width: 46ch;
}

.footer-link {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--acid-deep);
}

/* --------------------------------------------------------------- dialog -- */

#app-dialog {
  width: 620px;
  max-width: calc(100% - 38px);
  max-height: min(90vh, 846px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px rgb(0 0 0 / 0.2);
}

#app-dialog::backdrop {
  background: rgb(10 14 11 / 0.45);
  backdrop-filter: blur(2px);
}

#dialog-content {
  padding: 32px;
}

.dialog-eyebrow {
  margin-bottom: 14px;
  color: var(--muted-soft);
}

.dialog-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

#dialog-title {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.close-dialog {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--rule-strong);
  font-size: 19px;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.close-dialog:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.dialog-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.risk-copy {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--acid);
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.dialog-actions .button {
  flex: 1;
  min-width: 180px;
}

.stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 25px;
}

.stepper span {
  flex: 1;
  height: 4px;
  background: var(--rule);
}

.stepper span.done {
  background: var(--acid-deep);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--ink);
  outline: none;
}

.field input[type="range"] {
  padding: 0;
  border: 0;
  accent-color: var(--acid);
}

.field small {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted-soft);
  text-transform: none;
}

.field strong {
  color: var(--ink);
}

.form-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-soft);
}

.error {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--fall);
  background: color-mix(in srgb, var(--fall) 7%, var(--paper));
  font-size: 13px;
  line-height: 1.6;
  color: var(--fall);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.review-row > span {
  color: var(--muted);
}

.review-row strong {
  font-weight: 600;
  text-align: right;
}

.review-token {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.review-token .token-icon {
  width: 54px;
  height: 54px;
  font-size: 30px;
}

.review-token h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.review-token p {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}

.chip:hover:not([aria-checked="true"]) {
  border-color: var(--ink);
  color: var(--ink);
}

.stock-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.stock-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  text-align: left;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.stock-option strong {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.stock-option small {
  font-size: 11px;
  color: var(--muted-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-option b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.stock-option:hover {
  border-color: var(--rule-strong);
  background: var(--paper-tint);
}

.stock-option[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--paper-tint);
}

.deploy-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-choice label {
  display: flex;
  align-items: start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.deploy-choice label:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-tint);
}

.deploy-choice label:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.deploy-choice input {
  margin-top: 3px;
  accent-color: var(--acid-deep);
}

.deploy-choice span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.deploy-choice small {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-soft);
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 22px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 26px;
}

.success h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.success p {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.deploy-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
}

.deploy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}

.deploy-row > span:first-child {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.deploy-box a,
.deploy-address {
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.deploy-box a {
  color: var(--acid-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deploy-address {
  color: var(--muted);
}

.deploy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.deploy-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.deploy-pill[data-status="deployed"]::before {
  background: var(--rise);
}

.deploy-pill[data-status="pending"]::before {
  background: var(--warn);
  animation: op-pulse 1.2s infinite;
}

.deploy-pill[data-status="failed"]::before {
  background: var(--fall);
}

.deploy-box .error {
  margin: 0;
}

.deploy-box .form-note {
  margin: 0;
}

.deploy-box .dialog-actions {
  margin-top: 4px;
}

/* The ticker is stored uppercase, and reads uppercase while it is typed —
   though its example placeholder keeps its own casing. */
#launch-form input[name="symbol"] {
  text-transform: uppercase;
}

#launch-form input[name="symbol"]::placeholder {
  text-transform: none;
}

/* -------------------------------------------------------- token dialog -- */

.detail-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.token-price {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.detail-hero .change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.secondary-meta {
  color: var(--muted-soft);
}

.periods {
  display: flex;
  flex-shrink: 0;
}

.periods button {
  padding: 8px 13px;
  border: 1px solid var(--rule-strong);
  border-left-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.periods button:first-child {
  border-left-width: 1px;
}

.periods button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.detail-chart {
  width: 100%;
  height: 145px;
  margin-top: 22px;
  stroke: var(--acid-deep);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.detail-metrics span,
.vault-strip span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-metrics b,
.vault-strip b {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.vault-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.vault-strip > div {
  padding: 14px;
  border: 1px solid var(--rule);
}

.market-phase {
  font-size: 12px !important;
  line-height: 1.4;
}

.detail-strategy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.detail-strategy small {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-strategy strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-strategy b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--acid-deep);
}

.detail-strategy:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trade-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
}

.trade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trade-tabs {
  display: flex;
}

.trade-tabs button {
  padding: 9px 20px;
  border: 1px solid var(--rule-strong);
  border-left-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.trade-tabs button:first-child {
  border-left-width: 1px;
}

.trade-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.mini-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.max-button {
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.max-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}

.trade-box .field {
  margin: 14px 0;
}

.trade-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.trade-output strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.trade-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted-soft);
}

.trade-box .button-green {
  width: 100%;
  margin-top: 16px;
}

/* ------------------------------------------------------ strategy dialog -- */

.simulator {
  margin-top: 25px;
  padding: 25px;
  background: var(--ink-deep);
  color: var(--paper);
}

.simulator h3 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.simulator > p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.simulator .field {
  color: var(--muted-dark);
}

.simulator .field strong {
  color: var(--acid);
}

.scenario-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--rule-dark);
}

.scenario-result span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.scenario-result strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.scenario-result > b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--acid);
}

.scenario-result > b[data-direction="down"] {
  color: #fc9b87;
}

.simulator-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

/* -------------------------------------------------------- wallet dialog -- */

.wallet-balance {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
}

.wallet-balance > span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.wallet-balance strong {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.wallet-balance small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-soft);
}

.small-heading {
  margin: 22px 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.holding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  transition: background 0.2s var(--ease);
}

.holding:hover {
  background: var(--paper-tint);
}

.holding .token-icon {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.holding > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.holding strong {
  font-size: 15px;
  font-weight: 600;
}

.holding small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-soft);
}

.holding > b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- toast -- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 30;
  max-width: calc(100% - 28px);
  padding: 17px 25px;
  background: var(--ink-soft);
  border: 1px solid var(--rule-dark);
  color: var(--paper);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- keyframes -- */

@keyframes drift {
  50% {
    translate: 0 -12px;
    rotate: 1.2deg;
  }
}

@keyframes hero-copy-arrive {
  0% {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-detail-arrive {
  0% {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes op-pulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .strike-copy {
    animation: hero-copy-arrive 0.85s ease-out both;
  }

  .hero-insight {
    animation: hero-detail-arrive 1s ease-out 0.15s both;
  }

  .empty-pair-mark {
    animation: drift 9s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1150px) {
  :root {
    --market-cols: 32px minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr)
      minmax(0, 1.1fr) 32px;
    --market-gap: 18px;
  }

  .market-head > span:nth-child(6),
  .market-liquidity {
    display: none;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .section-id {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-card {
    border-bottom: 1px solid var(--rule-strong);
  }
}

@media (max-width: 900px) {
  :root {
    --market-cols: 32px minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr) 32px;
  }

  .market-head > span:nth-child(3),
  .pair-stack {
    display: none;
  }

  .how-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .steps {
    padding-top: 10px;
  }

  .how-note {
    flex-direction: column;
    gap: 14px;
  }

  .closing {
    flex-direction: column;
    align-items: start;
    gap: 34px;
  }

  .strike-footer {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .hero-bottom-title {
    padding: 22px var(--gutter);
  }

  .hero-stock-controls {
    border-top: 1px solid var(--rule);
  }

  .asset-strip {
    flex-wrap: wrap;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .header nav {
    display: none;
  }

  .x-social-button > span {
    display: none;
  }

  .x-social-button {
    width: 44px;
    padding: 0;
  }

  .strike-layout {
    height: 620px;
  }

  .strike-copy {
    top: 118px;
  }

  .hero-insight {
    display: none;
  }

  .section {
    padding: 56px var(--gutter) 40px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 30px;
  }

  .strategy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategy-card {
    border-right: 0;
  }

  .explorer-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 12px 18px;
  }

  /* Rows stop being a table and become stacked cards. */
  :root {
    --market-cols: minmax(0, 1fr) minmax(0, auto);
    --market-gap: 12px;
  }

  .market-head {
    display: none !important;
  }

  .token-card {
    grid-template-areas:
      "name price"
      "pair change";
    align-items: center;
    min-height: 0;
    padding: 20px 10px;
  }

  .token-top {
    grid-area: name;
  }

  .market-price {
    grid-area: price;
  }

  .market-change {
    grid-area: change;
  }

  .market-price {
    text-align: left;
  }

  .market-rank,
  .row-arrow {
    display: none;
  }

  .spark {
    width: 60px;
  }

  #dialog-content {
    padding: 22px;
  }

  .detail-metrics,
  .vault-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dialog-actions .button {
    min-width: 0;
  }

  footer {
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .header {
    gap: 10px;
  }

  .wallet-button {
    min-width: 0;
    padding-left: 11px;
    gap: 8px;
    font-size: 11px;
  }

  .wallet-button svg {
    display: none;
  }

  .wallet-button > span:last-child {
    width: 38px;
    font-size: 17px;
  }

  #wallet-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .strike-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .strike-actions .button,
  .hero-explore {
    width: 100%;
  }

  .hero-stock-controls {
    flex-wrap: wrap;
  }

  .pair-selector-label {
    display: none;
  }

  .hero-stock-controls button {
    flex: 1 0 50%;
  }

  .hero-stock-controls button b {
    display: none;
  }

  .end-launch {
    width: 100%;
  }

  .explore-bottom {
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }

  .detail-metrics,
  .vault-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .stock-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-hint {
    display: none;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }

  .token-card {
    grid-template-areas:
      "name name"
      "price change";
  }

  .brand {
    font-size: 22px;
  }

  /* On a 320px screen the wordmark, the sandbox note and the wallet button no
     longer fit side by side. The wallet button loses its trailing arrow and is
     allowed to shrink, so the row stays on one line instead of pushing the
     whole page sideways. */
  .header-right,
  .wallet-button {
    min-width: 0;
  }

  .wallet-button > span:last-child {
    display: none;
  }

  .wallet-button {
    padding-right: 11px;
  }

  #wallet-label {
    min-width: 0;
  }
}

@media (min-width: 1700px) {
  :root {
    --gutter: 6%;
  }
}

/* ------------------------------------------------------- crash fallback -- */

/* Shown only when the app throws; it cannot rely on anything the app renders. */
.app-error {
  max-width: 560px;
  margin: 0 auto;
  padding: 18vh var(--gutter) 10vh;
  font-family: var(--body);
  color: var(--ink);
}

.app-error h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.app-error p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.app-error pre {
  margin: 0 0 24px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.app-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
