:root {
  --ink: #0a0f1c;
  --ink-2: #0f1626;
  --panel: #131c30;
  --panel-2: #182238;
  --line: #243450;
  --paper: #eaf0fb;
  --muted: #8a96b4;
  --brett: #2f9bff;
  --brett-deep: #1d6fd6;
  --mag: #ff3d8b;
  --orange: #ff8a1e;
  --acid: #c6ff4a;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --font-display: "Bricolage Grotesque", serif;
  --font-body: "Familjen Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(47, 155, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 0% 18%, rgba(255, 61, 139, 0.1), transparent 55%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed grain overlay (never on scrolling content) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.num {
  font-family: var(--font-mono);
  font-size: 0.5em;
  font-weight: 700;
  color: var(--brett);
  vertical-align: middle;
  margin-right: 0.6em;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 42%, #fff 0 3px, transparent 3.5px),
    radial-gradient(circle at 66% 42%, #fff 0 3px, transparent 3.5px),
    var(--brett);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 4px;
  border-radius: 4px;
  background: var(--mag);
}

.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.topnav a:hover {
  color: var(--paper);
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brett);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .topnav,
  .chip {
    display: none;
  }
  /* Nav and chip are gone on mobile, so the tab pushes itself to the corner. */
  .directions-tab {
    margin-left: auto;
  }
}

/* ---------- Directions tab (upper-right) + modal ---------- */
.directions-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--brett);
  color: var(--ink);
  background: linear-gradient(180deg, var(--brett), var(--brett-deep));
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(47, 155, 255, 0.9);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.directions-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(47, 155, 255, 1);
}
.directions-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.78);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
}

.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 40px);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.74);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}
.modal-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 4px 0 12px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.6);
  color: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--mag);
  color: var(--mag);
}
.modal-lede {
  color: var(--paper);
  opacity: 0.9;
  line-height: 1.55;
  max-width: 60ch;
}
.modal-lede strong {
  color: var(--brett);
}

.directions-steps {
  margin: 22px 0 8px;
  padding-left: 20px;
  display: grid;
  gap: 11px;
}
.directions-steps li {
  line-height: 1.5;
  color: var(--muted);
}
.directions-steps strong {
  color: var(--paper);
}
.directions-steps em {
  color: var(--brett);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.directions-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 26px 0 4px;
}
.directions-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 14px;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.style-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.45);
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    transform 0.12s ease,
    background 0.12s ease;
}
.style-card:hover {
  border-color: var(--brett);
  transform: translateY(-2px);
  background: rgba(47, 155, 255, 0.1);
}
.style-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--paper);
}
.style-eg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.directions-foot {
  margin-top: 20px;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.92rem;
}
.directions-foot em {
  color: var(--brett);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

@media (max-width: 560px) {
  .style-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--mag);
  color: #150512;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  animation: scroll 26s linear infinite;
}
.ticker-track span {
  display: inline-block;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Layout shell ---------- */
main {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

section {
  padding: clamp(56px, 9vw, 120px) 0;
  border-bottom: 1px solid rgba(36, 52, 80, 0.5);
}

.section-head {
  margin-bottom: 42px;
  max-width: 640px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
}
.section-head p {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 1.05rem;
}

/* ---------- Splash ---------- */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.6s ease;
}
.splash-overlay.is-done {
  opacity: 0;
  pointer-events: none;
}
.splash-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Shown only when the browser blocks autoplay-with-sound. */
.splash-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 15, 28, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.splash-start-main {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 800;
}
.splash-start-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.splash-skip {
  position: absolute;
  bottom: clamp(16px, 4vh, 36px);
  right: clamp(16px, 4vw, 36px);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--brett);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
}
.hl-blue {
  color: var(--brett);
}
.hl-mag {
  color: var(--mag);
}
.lede {
  margin: 26px 0 32px;
  max-width: 30em;
  color: #c3cde3;
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Collage */
.hero-collage {
  position: relative;
  height: 520px;
}
.hero-collage figure {
  position: absolute;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage-a {
  width: 43%;
  height: 50%;
  left: 1%;
  top: 3%;
  transform: rotate(-5deg);
  z-index: 5;
}
.collage-b {
  width: 41%;
  height: 44%;
  right: 1%;
  top: 0;
  transform: rotate(4deg);
  z-index: 4;
}
.collage-c {
  width: 40%;
  height: 48%;
  left: 31%;
  top: 26%;
  transform: rotate(-2deg);
  z-index: 6;
}
.collage-d {
  width: 37%;
  height: 46%;
  left: 0;
  bottom: 0;
  transform: rotate(6deg);
  z-index: 3;
}
.collage-e {
  width: 41%;
  height: 44%;
  right: 0;
  bottom: 1%;
  transform: rotate(-4deg);
  z-index: 2;
}
.collage-f {
  width: 30%;
  height: 30%;
  left: 22%;
  bottom: 3%;
  transform: rotate(7deg);
  z-index: 1;
}
.hero-collage figure {
  animation: floaty 7s ease-in-out infinite;
}
.collage-b {
  animation-delay: -1.6s;
}
.collage-c {
  animation-delay: -3.1s;
}
.collage-d {
  animation-delay: -4.4s;
}
.collage-e {
  animation-delay: -2.3s;
}
.collage-f {
  animation-delay: -5.2s;
}
@keyframes floaty {
  50% {
    transform: translateY(-12px) rotate(var(--r, 0deg));
  }
}
.collage-a {
  --r: -5deg;
}
.collage-b {
  --r: 4deg;
}
.collage-c {
  --r: -2deg;
}
.collage-d {
  --r: 6deg;
}
.collage-e {
  --r: -4deg;
}
.collage-f {
  --r: 7deg;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-collage {
    height: 420px;
    order: -1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-sm {
  padding: 11px 16px;
  font-size: 0.78rem;
}
.btn-primary {
  background: var(--brett);
  color: #04122a;
  box-shadow: 0 0 0 0 rgba(47, 155, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(47, 155, 255, 0.8);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brett);
  color: var(--brett);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Forge ---------- */
.forge-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.forge-panel {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.forge-panel label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
textarea {
  width: 100%;
  resize: vertical;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}
textarea:focus {
  outline: none;
  border-color: var(--brett);
}
.forge-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.forge-error {
  margin: 14px 0 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Stage */
.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px),
    var(--ink-2);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}
.stage-empty-inner {
  text-align: center;
  color: var(--muted);
}
.stage-mark {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 34% 44%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 66% 44%, #fff 0 5px, transparent 6px),
    var(--brett);
  opacity: 0.55;
  animation: blink 4s infinite;
}
@keyframes blink {
  48%,
  52% {
    filter: brightness(1.4);
  }
}
.stage figure {
  margin: 0;
  width: 100%;
}
.stage img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.stage figcaption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.tag {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-style {
  color: #04122a;
  background: var(--brett);
  border-color: var(--brett);
}
.stage .desc {
  width: 100%;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #c3cde3;
}

/* Loading skeleton */
.skeleton {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 820px) {
  .forge-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 1 / 1;
  animation: pop 0.4s ease backwards;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.06);
}
.card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 10px;
  background: linear-gradient(transparent, rgba(6, 10, 20, 0.92));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover .overlay {
  opacity: 1;
}
.card .overlay p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .src {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brett);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Telegram steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.step:nth-child(odd) {
  transform: translateY(-10px);
}
.step-n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: #04122a;
  background: var(--acid);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--brett);
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .step:nth-child(odd) {
    transform: none;
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Identity ---------- */
.identity {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.identity-art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.identity-art img {
  display: block;
  width: 100%;
}
.identity-copy h2 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
}
.identity-copy p {
  color: #c3cde3;
  margin: 18px 0;
}
.trait-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trait-list li {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding-left: 22px;
  position: relative;
  color: var(--paper);
}
.trait-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--mag);
}
.fineprint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted) !important;
}
@media (max-width: 820px) {
  .identity {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buy on Uniswap ---------- */
.buy {
  display: flex;
  justify-content: center;
}
.buy-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  text-align: center;
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(47, 155, 255, 0.18), transparent 60%),
    radial-gradient(120% 140% at 50% 120%, rgba(255, 61, 139, 0.16), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--ink-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.buy-card h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 6px 0 0;
}
.buy-lede {
  color: #c3cde3;
  margin: 16px auto 26px;
  max-width: 34em;
  font-size: 1.06rem;
}
.btn-buy {
  font-size: 1rem;
  padding: 17px 30px;
  border-radius: 14px;
  color: #04122a;
  /* Built from the page's own blue→magenta accents so it belongs here,
     but saturated and glowing so it clearly pops as the primary action. */
  background: linear-gradient(100deg, var(--brett), var(--mag));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 18px 44px -16px rgba(47, 155, 255, 0.75);
  animation: buyPulse 2.6s ease-in-out infinite;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 22px 54px -14px rgba(255, 61, 139, 0.8);
}
.buy-uni {
  font-size: 1.15em;
  line-height: 1;
}
@keyframes buyPulse {
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22) inset,
      0 18px 52px -12px rgba(255, 61, 139, 0.7);
  }
}
.buy-contract {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.buy-contract code {
  color: var(--brett);
}

/* ---------- Live price marquee ---------- */
.pricebar {
  position: relative;
  z-index: 3;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(47, 155, 255, 0.12), rgba(255, 61, 139, 0.12)),
    var(--ink-2);
  height: 48px;
}
.pricebar-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  height: 100%;
  padding-top: 1px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  animation: scroll 24s linear infinite;
}
.pricebar-track .up {
  color: var(--acid);
}
.pricebar-track .down {
  color: var(--mag);
}
.pricebar-track .pb-label {
  color: var(--brett);
}
.pricebar-track .pb-sep {
  color: var(--muted);
}
/* The little BRETT jogs from one side of the screen to the other, chasing the ticker. */
.pricebar-brett {
  position: absolute;
  bottom: 4px;
  left: -8%;
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
  animation: brettRun 13s linear infinite, brettBob 0.5s ease-in-out infinite;
}
@keyframes brettRun {
  from {
    left: -8%;
  }
  to {
    left: 104%;
  }
}
@keyframes brettBob {
  50% {
    transform: translateY(-5px) rotate(-3deg);
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 56px) 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer p {
  margin: 0;
}

/* Copyable contract address — clicking it triggers a little trumpet fanfare. */
.ca {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}
.ca:hover {
  border-color: var(--brett);
  box-shadow: 0 0 0 1px rgba(47, 155, 255, 0.35);
}
.ca:active {
  transform: scale(0.97);
}
.ca-label {
  color: var(--muted);
  font-weight: 700;
}
.ca-addr {
  color: var(--brett);
  overflow-wrap: anywhere;
}
.ca-action {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.ca.ca-copied {
  border-color: var(--acid);
  box-shadow: 0 0 0 1px rgba(198, 255, 74, 0.4);
}
.ca.ca-copied .ca-action {
  background: var(--acid);
  color: var(--ink);
}
@media (max-width: 720px) {
  .ca {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

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