:root {
  --ink: #11131b;
  --paper: #f7f8ff;
  --blue: #195bff;
  --cyan: #00e7ff;
  --acid: #c7ff00;
  --red: #ff233b;
  --purple: #7928ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(25, 91, 255, 0.13), transparent 34%),
    linear-gradient(300deg, rgba(255, 35, 59, 0.12), transparent 32%),
    var(--paper);
  overflow-x: hidden;
}

body {
  position: relative;
}

.market-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(17, 19, 27, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 27, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: skewY(-1deg) scale(1.04);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: multiply;
}

.red-drop {
  position: fixed;
  z-index: 0;
  width: 16px;
  height: 180px;
  background: var(--red);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(17, 19, 27, 0.9);
  animation: candleFall 4s steps(2, end) infinite;
  transform: rotate(var(--r));
}

.red-drop::before,
.red-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 72px;
  background: var(--ink);
  transform: translateX(-50%);
}

.red-drop::before {
  top: -70px;
}

.red-drop::after {
  bottom: -70px;
}

.red-drop-a {
  top: 14vh;
  left: 13vw;
  --r: -7deg;
  animation-delay: -1.4s;
}

.red-drop-b {
  top: 7vh;
  right: 17vw;
  --r: 5deg;
  height: 240px;
  animation-delay: -2.2s;
}

.red-drop-c {
  bottom: 9vh;
  right: 10vw;
  --r: -3deg;
  height: 130px;
  animation-delay: -0.5s;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
}

.spectator-board {
  position: relative;
  width: min(1040px, 88vw);
  min-height: 700px;
  border: 6px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(17, 19, 27, 0.08) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(17, 19, 27, 0.08) 49% 51%, transparent 51%),
    #fdfdff;
  background-size: 110px 110px;
  box-shadow: 20px 20px 0 var(--ink);
  transform: rotate(-1.2deg) skewX(-0.5deg);
  overflow: visible;
}

.spectator-board::before {
  content: "MARKET VIEW ONLY";
  position: absolute;
  left: -38px;
  top: 46%;
  padding: 8px 14px 6px;
  border: 4px solid var(--ink);
  background: var(--acid);
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-90deg) translateY(-100%);
  transform-origin: left top;
}

.title-block {
  position: absolute;
  z-index: 8;
  left: 44px;
  top: 40px;
  width: min(520px, 56%);
}

.tiny-tag {
  display: inline-block;
  padding: 7px 10px 5px;
  border: 4px solid var(--ink);
  background: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: rotate(-4deg);
}

h1 {
  margin: 18px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Black", Arial, sans-serif;
  text-transform: lowercase;
  line-height: 0.82;
}

h1 span {
  display: block;
  width: fit-content;
  border: 5px solid var(--ink);
  padding: 4px 12px 0;
  box-shadow: 10px 10px 0 var(--ink);
}

.word-pepe {
  background: var(--paper);
  color: var(--red);
  font-size: clamp(62px, 9vw, 116px);
  transform: rotate(-3deg);
}

.word-spectator {
  margin-top: 10px;
  margin-left: 42px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(44px, 7.1vw, 91px);
  transform: rotate(2deg);
}

.ticker-stamp {
  display: inline-block;
  margin-top: 24px;
  margin-left: 96px;
  padding: 10px 14px 7px;
  border: 4px solid var(--ink);
  background: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.hero-shell {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(690px, 68%);
  aspect-ratio: 1 / 1;
  z-index: 5;
  transform: rotate(2deg);
  transition: transform 0.12s linear;
  filter: drop-shadow(20px 18px 0 rgba(17, 19, 27, 0.95));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: polygon(2% 1%, 99% 4%, 97% 98%, 4% 100%);
  border: 0;
  animation: spectatorBreathe 4.4s ease-in-out infinite;
}

.hero-ghost {
  position: absolute;
  inset: 2%;
  border: 5px solid var(--ink);
  pointer-events: none;
}

.hero-ghost-a {
  transform: translate(-12px, 10px) rotate(-2deg);
  background: rgba(0, 231, 255, 0.18);
  animation: ghostKickA 2.7s steps(2, end) infinite;
}

.hero-ghost-b {
  transform: translate(13px, -9px) rotate(2deg);
  background: rgba(255, 35, 59, 0.18);
  animation: ghostKickB 3.2s steps(2, end) infinite;
}

.watch-tag {
  position: absolute;
  right: -18px;
  bottom: 44px;
  z-index: 8;
  padding: 10px 13px 7px;
  border: 4px solid var(--ink);
  background: var(--paper);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(7deg);
}

.crosshair {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 4px solid var(--red);
  z-index: 10;
  pointer-events: none;
  animation: crosshairBlink 1.6s steps(2, end) infinite;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--red);
}

.crosshair::before {
  left: 50%;
  top: -22px;
  bottom: -22px;
  width: 4px;
  transform: translateX(-50%);
}

.crosshair::after {
  top: 50%;
  left: -22px;
  right: -22px;
  height: 4px;
  transform: translateY(-50%);
}

.crosshair-a {
  top: 16%;
  right: 15%;
  transform: rotate(5deg);
}

.crosshair-b {
  bottom: 17%;
  left: 13%;
  width: 62px;
  height: 62px;
  transform: rotate(-6deg);
  animation-delay: -0.7s;
}

.mini-chart {
  position: absolute;
  left: 48px;
  bottom: 44px;
  width: 290px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 18px;
  border: 5px solid var(--ink);
  background: #151824;
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(3deg);
}

.mini-chart i {
  position: relative;
  flex: 1;
  height: var(--h);
  background: var(--red);
  border: 2px solid #fff;
  animation: chartPanic 1.8s steps(2, end) infinite;
  animation-delay: var(--d);
}

.mini-chart i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  bottom: -20px;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.ca-panel {
  position: absolute;
  z-index: 20;
  left: 48px;
  right: 48px;
  bottom: -64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border: 5px solid var(--ink);
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.4deg);
}

.ca-label,
.copy-button {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 0 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ca-label {
  background: var(--red);
  color: #fff;
  border-right: 5px solid var(--ink);
}

.contract-display {
  min-width: 0;
  padding: 16px 18px 13px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.copy-button {
  border: 0;
  border-left: 5px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--cyan);
}

.floating-link {
  position: fixed;
  z-index: 30;
  width: 112px;
  height: 112px;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 13px 8px 10px;
  border: 5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 9px 9px 0 var(--ink);
  animation: edgeFloat var(--speed, 6s) ease-in-out infinite alternate;
  transform: rotate(var(--rot, 0deg));
}

.floating-link span {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.floating-link img {
  width: 51px;
  height: 51px;
  object-fit: contain;
}

.floating-link-pump {
  left: 3vw;
  top: 9vh;
  background: var(--acid);
}

.floating-link-dex {
  right: 3vw;
  top: 12vh;
  background: #ffffff;
}

.floating-link-x {
  left: 4vw;
  bottom: 10vh;
  background: #ffffff;
}

.floating-link-fomo {
  right: 4vw;
  bottom: 12vh;
  background: var(--cyan);
}

.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

@keyframes spectatorBreathe {
  0%, 100% { transform: scale(1) rotate(-0.5deg); }
  35% { transform: scale(1.018) rotate(0.8deg); }
  70% { transform: scale(0.995) rotate(-1deg); }
}

@keyframes ghostKickA {
  0%, 100% { transform: translate(-12px, 10px) rotate(-2deg); }
  50% { transform: translate(-19px, 4px) rotate(-3deg); }
}

@keyframes ghostKickB {
  0%, 100% { transform: translate(13px, -9px) rotate(2deg); }
  50% { transform: translate(20px, -2px) rotate(4deg); }
}

@keyframes crosshairBlink {
  0%, 46%, 100% { opacity: 1; }
  47%, 62% { opacity: 0.2; }
}

@keyframes chartPanic {
  0%, 100% { transform: translateY(0) skewX(-2deg); }
  50% { transform: translateY(8px) skewX(3deg); }
}

@keyframes candleFall {
  0%, 100% { transform: translateY(-12px) rotate(var(--r)); }
  50% { transform: translateY(26px) rotate(var(--r)); }
}

@keyframes edgeFloat {
  0% { transform: translate(0, 0) rotate(calc(var(--rot) - 5deg)); }
  35% { transform: translate(15px, -18px) rotate(calc(var(--rot) + 7deg)); }
  70% { transform: translate(-12px, 13px) rotate(calc(var(--rot) - 8deg)); }
  100% { transform: translate(7px, -7px) rotate(calc(var(--rot) + 3deg)); }
}

@media (max-width: 980px) {
  .stage {
    padding: 150px 18px 170px;
  }

  .spectator-board {
    width: min(760px, 94vw);
    min-height: 900px;
  }

  .title-block {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 32px 24px 0;
  }

  .hero-shell {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(640px, 92%);
    margin: 40px auto 0;
  }

  .mini-chart {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -24px 0 30px 28px;
  }

  .ca-panel {
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 700px) {
  .spectator-board::before,
  .red-drop-c {
    display: none;
  }

  .word-spectator {
    margin-left: 10px;
  }

  .ticker-stamp {
    margin-left: 24px;
  }

  .floating-link {
    width: 88px;
    height: 88px;
    padding: 9px 6px 7px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .floating-link img {
    width: 37px;
    height: 37px;
  }

  .floating-link span {
    font-size: 13px;
  }

  .floating-link-pump { left: 3vw; top: 3vh; }
  .floating-link-dex { right: 3vw; top: 4vh; }
  .floating-link-x { left: 3vw; bottom: 4vh; }
  .floating-link-fomo { right: 3vw; bottom: 5vh; }

  .mini-chart {
    width: calc(100% - 44px);
    height: 124px;
    margin-left: 22px;
  }

  .ca-panel {
    grid-template-columns: auto 1fr;
  }

  .copy-button {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 5px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
