:root {
  --ink: #090909;
  --paper: #f2efe7;
  --signal: #d82446;
  --acid: #d8ff48;
  --line: 1px solid rgba(242,239,231,.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(9,9,9,.79), rgba(9,9,9,.84)),
    url("assets/nio-grid.gif") 0 0 / 220px auto repeat fixed,
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: url("assets/syringe-cursor.png") 1 1, crosshair;
  overflow-x: hidden;
}
body.sound-gated { overflow: hidden; }

a, button, code { cursor: url("assets/syringe-cursor.png") 1 1, crosshair; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sound-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(216,255,72,.1), transparent 42%),
    rgba(5,5,5,.94);
  backdrop-filter: blur(14px);
  transition: opacity .35s ease, visibility .35s ease;
}
.sound-gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.sound-gate-button {
  width: min(330px, calc(100vw - 48px));
  padding: 26px 28px 24px;
  display: grid;
  justify-items: center;
  gap: 11px;
  color: var(--paper);
  border: 1px solid rgba(242,239,231,.3);
  border-radius: 28px;
  background: rgba(13,13,13,.92);
  box-shadow: 0 30px 100px rgba(0,0,0,.72), 0 0 0 8px rgba(216,255,72,.035);
  text-transform: uppercase;
}
.sound-gate-button:hover, .sound-gate-button:focus-visible { border-color: var(--acid); outline: none; transform: translateY(-2px); }
.sound-gate-button img { width: 132px; height: 132px; margin-bottom: 8px; object-fit: cover; border: 4px solid var(--acid); border-radius: 50%; box-shadow: 0 0 0 10px rgba(216,255,72,.07); animation: cover-spin 8s linear infinite; }
.sound-gate-button span { font-size: 32px; font-weight: 950; letter-spacing: .035em; }
.sound-gate-button small { color: var(--acid); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .16em; }

.topbar {
  width: min(1480px, calc(100% - 44px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--line);
  position: relative;
  z-index: 10;
}

.logo { color: var(--paper); font-size: 26px; font-weight: 900; font-kerning: none; letter-spacing: .025em; text-decoration: none; }
.audio-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(390px, calc(100vw - 28px));
  min-height: 72px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 46px minmax(92px, 1fr) minmax(120px, 1.35fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(242,239,231,.28);
  border-radius: 18px;
  background: rgba(9,9,9,.88);
  box-shadow: 0 18px 55px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.audio-toggle { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: white; border: 2px solid var(--acid); border-radius: 50%; background: var(--ink); overflow: hidden; position: relative; }
.audio-toggle:hover, .audio-toggle:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.audio-cover { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.audio-action-icon { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 2px; color: white; background: rgba(0,0,0,.48); font-size: 13px; font-weight: 950; line-height: 1; opacity: 0; transition: opacity .18s; }
.audio-toggle[aria-pressed="false"] .audio-action-icon, .audio-toggle:hover .audio-action-icon, .audio-toggle:focus-visible .audio-action-icon { opacity: 1; }
.audio-toggle[aria-pressed="true"] .audio-cover { animation: cover-spin 5.5s linear infinite; }
.audio-toggle[aria-pressed="true"] .audio-action-icon { padding-left: 0; }
.audio-meta { min-width: 0; display: grid; gap: 5px; }
.audio-meta strong { overflow: hidden; color: var(--paper); font-size: 11px; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.volume-control { min-width: 0; display: grid; grid-template-columns: 14px minmax(62px, 1fr) 34px; gap: 7px; align-items: center; color: rgba(242,239,231,.58); }
.volume-control input { width: 100%; height: 4px; accent-color: var(--acid); cursor: url("assets/syringe-cursor.png") 1 1, crosshair; }
.volume-control output { color: rgba(242,239,231,.62); font: 700 9px/1 ui-monospace, monospace; text-align: right; }
.stage {
  width: min(1480px, calc(100% - 44px));
  min-height: calc(100vh - 136px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 7vw, 118px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.identity { min-width: 0; }
h1 { margin: 0 0 24px; font-size: clamp(42px, 5.2vw, 84px); line-height: .95; font-kerning: none; letter-spacing: .02em; font-weight: 900; }

.contract-card { max-width: 660px; padding: 18px; border: var(--line); border-radius: 18px; background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.contract-label { display: flex; justify-content: space-between; margin-bottom: 13px; color: rgba(242,239,231,.55); font: 750 10px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.verified-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(216,255,72,.08); }
.contract-row { display: flex; min-width: 0; border: 1px solid rgba(242,239,231,.25); border-radius: 11px; overflow: hidden; }
.contract-row code { flex: 1; min-width: 0; padding: 16px; overflow: hidden; color: white; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.contract-row button { flex: 0 0 auto; padding: 0 21px; color: var(--ink); background: var(--acid); border: 0; font-weight: 900; text-transform: uppercase; }
.contract-row button.copied { background: var(--signal); color: white; }
.copy-status { min-height: 17px; margin: 11px 0 0; color: rgba(242,239,231,.5); font-size: 11px; }

.social-row { display: flex; gap: 10px; margin-top: 13px; }
.social-row a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 15px 22px; color: var(--ink); background: #fff; border: 1px solid #fff; border-radius: 12px; font-size: 13px; font-weight: 850; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.social-row a:hover, .social-row a:focus-visible { color: #fff; background: transparent; border-color: rgba(242,239,231,.4); outline: none; }

.chart-panel { width: 100%; min-height: 730px; border: 1px solid rgba(242,239,231,.25); border-radius: 28px; background: #111; box-shadow: 0 34px 100px rgba(0,0,0,.65), 0 0 0 8px rgba(255,255,255,.025); overflow: hidden; position: relative; }
.chart-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px rgba(255,255,255,.12); }
.chart-head { min-height: 62px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; color: rgba(242,239,231,.55); border-bottom: var(--line); font: 750 11px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.chart-head > div { display: flex; align-items: center; gap: 10px; }
.chart-head strong { color: var(--paper); font-weight: 800; }
.chart-head a { color: rgba(242,239,231,.62); text-decoration: none; }
.chart-head a:hover, .chart-head a:focus-visible { color: var(--acid); outline: none; }
.chart-title { min-width: 0; }
.chart-status { max-width: 240px; overflow: hidden; color: rgba(242,239,231,.43); font-size: 9px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.chart-actions { flex: 0 0 auto; }
.chart-actions button { padding: 8px 10px; color: rgba(242,239,231,.62); border: 1px solid rgba(242,239,231,.18); border-radius: 8px; background: rgba(255,255,255,.035); font: inherit; letter-spacing: .08em; text-transform: uppercase; }
.chart-actions button:hover, .chart-actions button:focus-visible { color: var(--ink); border-color: var(--acid); background: var(--acid); outline: none; }
.chart-actions button:disabled { cursor: wait; opacity: .5; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(216,36,70,.55); animation: pulse 2s infinite; }
.dex-chart { display: block; width: 100%; height: 668px; border: 0; background: #111; }

.pill-field { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.bouncing-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(72px, 8vw, 126px);
  height: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.55));
}

footer { width: min(1480px, calc(100% - 44px)); min-height: 58px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: rgba(242,239,231,.38); border-top: var(--line); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 2; }

.droplet-field { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.droplet-field i { position: absolute; left: var(--x); top: -40px; width: var(--size); height: calc(var(--size) * 1.45); border-radius: 65% 35% 68% 32% / 70% 35% 65% 30%; background: var(--signal); opacity: .22; transform: rotate(35deg); animation: ambient-drop var(--duration) linear var(--delay) infinite; }
.cursor-drop { position: fixed; z-index: 9999; width: var(--drop-size); height: calc(var(--drop-size) * 1.5); pointer-events: none; border-radius: 70% 30% 62% 38% / 75% 38% 62% 25%; background: var(--signal); box-shadow: 0 0 16px rgba(216,36,70,.38); transform: rotate(35deg); animation: needle-drop .9s ease-in forwards; }

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(216,36,70,0); } 100% { box-shadow: 0 0 0 0 rgba(216,36,70,0); } }
@keyframes cover-spin { to { transform: rotate(360deg); } }
@keyframes ambient-drop { from { transform: translateY(-10vh) rotate(35deg); } to { transform: translateY(115vh) rotate(35deg); } }
@keyframes needle-drop { 0% { opacity: .9; transform: translate(0,0) rotate(35deg) scale(1); } 100% { opacity: 0; transform: translate(var(--drift),72px) rotate(35deg) scale(.2); } }

@media (max-width: 1040px) {
  .stage { grid-template-columns: 1fr; }
  .identity { padding-top: 24px; }
  h1 { font-size: clamp(36px, 8vw, 64px); }
  .chart-panel { min-height: 650px; }
  .dex-chart { height: 590px; }
}

@media (max-width: 620px) {
  body { background-size: auto, 160px auto, auto; }
  .topbar, .stage, footer { width: min(100% - 24px, 1480px); }
  .topbar { min-height: 66px; }
  .stage { min-height: auto; padding: 58px 0 60px; gap: 46px; }
  h1 { font-size: clamp(30px, 9vw, 48px); }
  .contract-card { padding: 12px; }
  .contract-row { display: block; }
  .contract-row code { display: block; }
  .contract-row button { width: 100%; height: 46px; }
  .social-row { display: flex; }
  .chart-panel { min-height: 620px; border-radius: 20px; }
  .chart-head { padding-inline: 14px; }
  .chart-status { display: none; }
  .chart-actions { gap: 6px !important; }
  .chart-actions button, .chart-head a { font-size: 9px; }
  .dex-chart { height: 560px; }
  footer { padding: 20px 0; gap: 12px; align-items: flex-start; flex-direction: column; }
  .audio-player { right: 12px; bottom: 12px; width: calc(100vw - 24px); grid-template-columns: 42px minmax(86px, .75fr) minmax(112px, 1.25fr); gap: 9px; min-height: 64px; padding: 9px 10px; border-radius: 15px; }
  .audio-toggle { width: 42px; height: 42px; }
}

@media (hover: none), (pointer: coarse) { body, a, button, code { cursor: auto; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .droplet-field i { animation: none; }
  .cursor-drop { display: none; }
  .audio-toggle[aria-pressed="true"] .audio-cover { animation: none; }
  .sound-gate { transition: none; }
  .sound-gate-button img { animation: none; }
  .bouncing-pill:nth-child(1) { transform: translate(6vw, 14vh) !important; }
  .bouncing-pill:nth-child(2) { transform: translate(55vw, 9vh) !important; }
  .bouncing-pill:nth-child(3) { transform: translate(28vw, 54vh) !important; }
  .bouncing-pill:nth-child(4) { transform: translate(72vw, 68vh) !important; }
  .bouncing-pill:nth-child(5) { transform: translate(12vw, 82vh) !important; }
  .bouncing-pill:nth-child(6) { transform: translate(84vw, 28vh) !important; }
  .bouncing-pill:nth-child(7) { transform: translate(44vw, 12vh) !important; }
  .bouncing-pill:nth-child(8) { transform: translate(62vw, 48vh) !important; }
  .bouncing-pill:nth-child(9) { transform: translate(4vw, 42vh) !important; }
  .bouncing-pill:nth-child(10) { transform: translate(36vw, 76vh) !important; }
  .bouncing-pill:nth-child(11) { transform: translate(78vw, 86vh) !important; }
  .bouncing-pill:nth-child(12) { transform: translate(22vw, 34vh) !important; }
  .bouncing-pill:nth-child(13) { transform: translate(56vw, 88vh) !important; }
  .bouncing-pill:nth-child(14) { transform: translate(88vw, 56vh) !important; }
}
