:root {
  --bg: #f4f4f1;
  --ink: #0d0d0d;
  --line: #111111;
  --paper: rgba(255, 255, 255, 0.85);
  --accent: #0f1eff;
  --accent-2: #ffe100;
  --accent-3: #ff3ad5;
  --accent-4: #00c15a;
  --rail-width: 220px;
  --shadow-hard: 10px 10px 0 #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(255, 225, 0, 0.25), transparent 20%),
    radial-gradient(circle at 80% 78%, rgba(255, 58, 213, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f6f2 0%, #ecebe5 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.noise,
.scanlines,
.scribble {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.noise {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0, 0, 0, 0.8) 0 0.5px, transparent 0.5px),
    radial-gradient(circle at 65% 30%, rgba(0, 0, 0, 0.7) 0 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 80%, rgba(0, 0, 0, 0.75) 0 0.5px, transparent 0.5px);
  background-size: 14px 14px, 18px 18px, 16px 16px;
}

.scanlines {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.3;
}

.scribble::before,
.scribble::after {
  content: "";
  position: absolute;
  border: 5px solid #000;
  border-left: none;
  border-bottom: none;
  width: 220px;
  height: 220px;
}

.scribble-one::before {
  top: 5%;
  left: 4%;
  transform: rotate(-8deg);
}

.scribble-one::after {
  top: 16%;
  right: 7%;
  transform: rotate(12deg) scaleX(-1);
}

.scribble-two::before {
  bottom: 9%;
  left: 8%;
  transform: rotate(184deg);
}

.scribble-two::after {
  bottom: 6%;
  right: 5%;
  transform: rotate(96deg);
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  padding: 28px calc(var(--rail-width) + 24px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ticker-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.ticker-strip span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  background: #ffffff;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #000;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  transform: skew(-3deg);
}

.ticker-strip span:nth-child(1) {
  background: var(--accent-2);
  transform: rotate(-2deg);
}

.ticker-strip span:nth-child(2) {
  background: #fff;
  transform: rotate(1.2deg);
}

.ticker-strip span:nth-child(3) {
  background: var(--accent-3);
  color: #fff;
  transform: rotate(-1.5deg);
}

.hero-shell {
  position: relative;
  width: min(760px, 100%);
  padding: 34px 24px 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 5px solid #000;
  box-shadow: 14px 14px 0 #000;
  overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border: 4px solid #000;
  width: 120px;
  height: 32px;
  background: #fff;
}

.hero-shell::before {
  top: 18px;
  right: -30px;
  transform: rotate(13deg);
}

.hero-shell::after {
  bottom: 18px;
  left: -22px;
  transform: rotate(-11deg);
  background: var(--accent-2);
}

.hero-burst {
  position: absolute;
  inset: auto;
  z-index: 0;
  width: 220px;
  height: 220px;
  border: 5px solid #000;
  filter: blur(0.4px);
}

.hero-burst-a {
  top: 14px;
  left: 20px;
  background: var(--accent-2);
  transform: rotate(23deg);
  animation: wobbleBurst 8s ease-in-out infinite;
}

.hero-burst-b {
  right: 18px;
  top: 120px;
  background: rgba(15, 30, 255, 0.18);
  transform: rotate(-18deg);
  animation: wobbleBurst 7s ease-in-out infinite reverse;
}

.hero-frame {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  margin: 8px auto 10px;
}

.hero-frame::before {
  content: "";
  position: absolute;
  width: 74%;
  height: 74%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0 30%, rgba(255, 255, 255, 0.25) 31% 60%, transparent 61%),
    linear-gradient(135deg, rgba(255, 58, 213, 0.8), rgba(15, 30, 255, 0.7));
  border: 5px solid #000;
  transform: rotate(-7deg);
  box-shadow: var(--shadow-hard);
}

.hero-frame::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 14px;
  bottom: 24px;
  background: #000;
  filter: blur(20px);
  opacity: 0.35;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 72vh;
  object-fit: contain;
  transform-origin: center center;
  animation: heroFloat 4s ease-in-out infinite, heroJitter 8s steps(1) infinite;
  filter: drop-shadow(0 18px 0 #000) drop-shadow(12px 12px 0 rgba(255, 58, 213, 0.45));
}

.headline-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  transform: rotate(-1.5deg);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  font-weight: 900;
  color: var(--accent);
  text-shadow:
    3px 3px 0 #000,
    7px 7px 0 var(--accent-2),
    11px 11px 0 #000;
  transform: rotate(-1deg);
}

.ticker {
  margin: 18px 0 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker span {
  background: #fff;
  border: 3px solid #000;
  padding: 6px 10px;
  box-shadow: 5px 5px 0 #000;
  display: inline-block;
  transform: rotate(1.4deg);
}

.ca-panel {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 9px 9px 0 #000;
  transform: rotate(-0.8deg);
}

.ca-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

#contractAddress {
  display: inline-block;
  max-width: 100%;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-all;
}

.copy-button {
  border: 4px solid #000;
  background: var(--accent-4);
  color: #fff;
  padding: 14px 16px;
  min-width: 96px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translate(-3px, -3px) rotate(-2deg);
  box-shadow: 10px 10px 0 #000;
}

.copy-button.copied {
  background: var(--accent-3);
}

.float-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 4;
  pointer-events: none;
}

.float-rail-left {
  left: 0;
}

.float-rail-right {
  right: 0;
}

.orbit-link {
  position: absolute;
  display: block;
  width: 154px;
  text-decoration: none;
  color: #000;
  pointer-events: auto;
  will-change: transform;
}

.orbit-link-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #000;
  transform-origin: center;
  animation: spinTilt 8s ease-in-out infinite;
}

.orbit-link:nth-child(odd) .orbit-link-inner {
  background: var(--accent-2);
}

.orbit-link:nth-child(even) .orbit-link-inner {
  background: #ffffff;
}

.orbit-link:nth-child(3n) .orbit-link-inner {
  background: #d8e6ff;
}

.orbit-link:hover .orbit-link-inner,
.orbit-link:focus-visible .orbit-link-inner {
  transform: scale(1.06) rotate(-4deg);
}

.orbit-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 26px;
}

.orbit-text {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  25% {
    transform: translateY(-12px) rotate(1.3deg);
  }
  50% {
    transform: translateY(5px) rotate(-2deg);
  }
  75% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes heroJitter {
  0%, 18%, 24%, 46%, 100% {
    filter: drop-shadow(0 18px 0 #000) drop-shadow(12px 12px 0 rgba(255, 58, 213, 0.45));
  }
  19% {
    filter: drop-shadow(-8px 18px 0 #000) drop-shadow(16px -8px 0 rgba(15, 30, 255, 0.4));
  }
  47% {
    filter: drop-shadow(7px 18px 0 #000) drop-shadow(-12px 12px 0 rgba(255, 225, 0, 0.55));
  }
}

@keyframes wobbleBurst {
  0%, 100% {
    transform: rotate(23deg) scale(1);
  }
  50% {
    transform: rotate(16deg) scale(1.08);
  }
}

@keyframes spinTilt {
  0%, 100% {
    transform: rotate(-2deg) skew(-2deg);
  }
  50% {
    transform: rotate(3deg) skew(2deg);
  }
}

@media (max-width: 1100px) {
  :root {
    --rail-width: 170px;
  }

  .stage {
    padding-left: calc(var(--rail-width) + 12px);
    padding-right: calc(var(--rail-width) + 12px);
  }

  .orbit-link {
    width: 138px;
  }
}

@media (max-width: 900px) {
  :root {
    --rail-width: 128px;
  }

  .stage {
    padding: 20px calc(var(--rail-width) + 8px) 30px;
  }

  .hero-frame {
    min-height: 340px;
  }

  .hero-frame::before {
    width: 88%;
    height: 76%;
  }

  .orbit-link {
    width: 110px;
  }

  .orbit-text {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .orbit-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --rail-width: 0px;
  }

  .stage {
    padding: 16px 14px 140px;
  }

  .ticker-strip {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding: 24px 16px 20px;
  }

  .hero-frame {
    min-height: 280px;
    margin-top: 20px;
  }

  .hero-frame::before {
    width: 94%;
    height: 70%;
  }

  .ca-panel {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .float-rail {
    top: auto;
    bottom: 0;
    width: 50%;
    height: 126px;
  }

  .float-rail-left {
    left: 0;
  }

  .float-rail-right {
    right: 0;
  }

  .orbit-link {
    width: calc(100% - 18px);
  }
}
