:root {
  --bg: #000;
  --green: #47ff68;
  --green-soft: rgba(71,255,104,.16);
  --line: rgba(71,255,104,.34);
  --text: #f2f2f2;
  --muted: #737373;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(33,255,82,.08), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(33,255,82,.025), transparent 32%);
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 0 50px;
}

.hero {
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title-wrap { position: relative; z-index: 2; }
.ticker {
  margin: 0 0 6px;
  color: rgba(255,255,255,.56);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
}

h1 {
  margin: 0;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
  color: #fff;
}

.sub,
.microcopy {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  color: var(--muted);
}

.sub {
  margin: 10px 0 0;
  font-size: clamp(15px, 1.8vw, 21px);
}

.gif-stage {
  position: relative;
  width: min(500px, 74vw);
  aspect-ratio: 1;
  margin: 12px auto 10px;
}

.hero-gif {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  mix-blend-mode: normal;
  animation: floaty 4.2s ease-in-out infinite;
}

.green-halo {
  position: absolute;
  z-index: 1;
  inset: 27% 20% 22% 25%;
  border-radius: 50%;
  background: rgba(41,255,77,.11);
  filter: blur(38px);
  animation: breathe 2.5s ease-in-out infinite;
}

.ca-panel { width: min(720px, 100%); margin-top: 2px; }
.ca-box {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: #060606;
  color: var(--text);
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(71,255,104,.03) inset;
}

.ca-box:hover { border-color: var(--line); }
.ca-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.ca-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: #cfcfcf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.copy-mark { color: #cfcfcf; font-size: 22px; }

.actions {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.action-btn {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #030503;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(71,255,104,.08);
}
.action-btn.is-disabled {
  opacity: .35;
  pointer-events: none;
}

.microcopy {
  margin: 14px 0 0;
  font-size: 13px;
  color: #4a4a4a;
}

.chart-section {
  margin: 18px 0 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: #030303;
  overflow: hidden;
}
.chart-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chart-head a { color: var(--green); text-decoration: none; }
#dexFrame {
  width: 100%;
  height: 640px;
  display: block;
  border: 0;
  background: #000;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  transform: translate(-50%, 14px);
  opacity: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #050805;
  color: #d9ffdF;
  font-size: 12px;
  transition: .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }

@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-7px) rotate(.4deg); }
}
@keyframes breathe {
  0%,100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 20px, 1180px); padding-top: 32px; }
  .hero { min-height: auto; padding: 24px 0 18px; }
  .gif-stage { width: min(450px, 92vw); margin-top: 8px; }
  .actions { grid-template-columns: 1fr 1fr; }
  #dexFrame { height: 520px; }
}

@media (max-width: 460px) {
  h1 { font-size: 50px; }
  .ticker { font-size: 11px; }
  .actions { grid-template-columns: 1fr; }
  .ca-box { min-height: 58px; padding: 0 14px; }
  .ca-value { font-size: 12px; }
  #dexFrame { height: 430px; }
}
