@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #e6ddd0;
  --paper: #faf2e8;
  --ink: #141414;
  --metal: #beb8b0;
  --red: #ff4032;
  --acid: #f8ff52;
  --blue: #4a79ff;
  --green: #7dff53;
  --line: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --display: "Black Ops One", Impact, Haettenschweiler, "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #e8ded2 0%, #efe7dc 48%, #ddd0c2 100%);
  background-size: 28px 28px, 28px 28px, cover;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 22px 18px 34px;
}

.grain,
.burst,
.slash {
  position: absolute;
  pointer-events: none;
}

.grain {
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(0, 0, 0, 0.05) 2px 4px,
    transparent 4px 8px
  );
  mix-blend-mode: multiply;
  opacity: 0.3;
  z-index: -2;
}

.burst {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 255, 82, 0.92) 0 14%, rgba(255, 64, 50, 0.88) 14% 27%, transparent 27% 100%);
  filter: blur(2px);
  opacity: 0.55;
  animation: pulse-burst 6s steps(4) infinite;
}

.burst-a {
  top: -40px;
  left: -30px;
  transform: rotate(14deg);
}

.burst-b {
  right: -70px;
  bottom: 40px;
  width: 260px;
  height: 260px;
  animation-duration: 8s;
}

.slash {
  background: var(--ink);
  opacity: 0.08;
}

.slash-a {
  top: 9%;
  left: 49%;
  width: 6px;
  height: 240px;
  transform: rotate(16deg);
}

.slash-b {
  right: 10%;
  bottom: 8%;
  width: 220px;
  height: 5px;
  transform: rotate(-12deg);
}

.title-stack {
  position: absolute;
  top: clamp(16px, 4vw, 42px);
  left: clamp(14px, 4vw, 56px);
  z-index: 5;
  width: min(36vw, 420px);
}

.tiny-chip {
  display: inline-block;
  padding: 6px 10px;
  border: var(--line);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(-6deg);
}

.main-title {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 0.82;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--paper), 8px 8px 0 var(--ink);
}

.main-title span {
  display: block;
}

.main-title span:last-child {
  margin-left: 18px;
  color: var(--red);
  transform: skew(-11deg) rotate(-3deg);
}

.ticker-box {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border: var(--line);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 7px 7px 0 var(--ink);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 12px;
  transform: rotate(4deg);
}

.coin-zone {
  position: relative;
  min-height: calc(100svh - 130px);
}

.coin-backdrop {
  position: absolute;
  top: 51%;
  left: 50%;
  width: min(61vw, 700px);
  height: min(61vw, 700px);
  transform: translate(-50%, -52%) rotate(-7deg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(192, 182, 172, 0.95));
  clip-path: polygon(8% 8%, 92% 4%, 98% 90%, 14% 96%, 2% 24%);
  box-shadow: 18px 18px 0 var(--ink);
  opacity: 0.62;
}

.hero-frame {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 3;
  margin: 0;
  width: min(52vw, 660px);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.hero-rattle {
  position: absolute;
  inset: -16px;
  border: 3px dashed var(--ink);
  transform: rotate(4deg);
  opacity: 0.35;
  animation: rattle-border 5s steps(3) infinite;
}

.hero-image {
  position: relative;
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(18px 18px 0 rgba(20, 20, 20, 0.36));
  transform-origin: 50% 50%;
  animation: hero-spinshake 7.8s ease-in-out infinite;
  user-select: none;
}

.hero-frame figcaption {
  position: absolute;
  left: -28px;
  bottom: 14px;
  padding: 8px 12px;
  border: var(--line);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 0.09em;
  transform: rotate(-7deg);
}

.floating-link {
  --dx: 12px;
  --dy: 9px;
  --rot: 4deg;
  --speed: 5s;
  position: absolute;
  z-index: 8;
  display: grid;
  grid-template-columns: 24px 30px 1fr 18px;
  align-items: center;
  gap: 9px;
  min-width: 165px;
  padding: 10px 12px;
  border: var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
  text-decoration: none;
  transform-origin: center;
  animation: floater-drift var(--speed) ease-in-out infinite alternate;
  transition: transform 0.15s steps(2), box-shadow 0.15s steps(2), background 0.15s steps(2);
}

.floating-link:hover,
.floating-link:focus-visible {
  outline: none;
  transform: scale(1.02) rotate(calc(var(--rot) * -1));
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--acid);
}

.float-num {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.7;
}

.float-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: transparent;
}

.float-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.float-arrow {
  font-size: 18px;
  line-height: 1;
}

.link-twitter {
  top: 18%;
  right: 4%;
  background: #ffed89;
  --dx: -11px;
  --dy: 12px;
  --rot: -6deg;
  --speed: 4.8s;
}

.link-dex {
  top: 41%;
  left: 3%;
  background: #ffffff;
  --dx: 12px;
  --dy: -10px;
  --rot: 5deg;
  --speed: 5.6s;
}

.link-pump {
  right: 3.6%;
  top: 67%;
  background: #d6ff75;
  --dx: -14px;
  --dy: 8px;
  --rot: 7deg;
  --speed: 4.5s;
}

.link-fomo {
  left: 11%;
  bottom: 18%;
  background: #ffd5c1;
  --dx: 14px;
  --dy: -12px;
  --rot: -7deg;
  --speed: 5.3s;
}

.contract-bar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 9;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(780px, calc(100% - 34px));
  padding: 10px 12px;
  border: var(--line);
  background: #fffaf0;
  box-shadow: 8px 8px 0 var(--ink);
  transform: translateX(-50%) rotate(-1deg);
}

.contract-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.solana-icon {
  width: 18px;
  height: 18px;
}

.contract-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contract-bar code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.copy-button {
  border: var(--line);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.12s steps(2), background 0.12s steps(2), color 0.12s steps(2);
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--red);
  color: #ffffff;
  transform: rotate(-3deg) translateY(-2px);
  outline: none;
}

.side-stamp {
  position: absolute;
  color: rgba(20, 20, 20, 0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.side-stamp-left {
  left: 8px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.side-stamp-right {
  right: 10px;
  top: 52%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right top;
}

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

@keyframes hero-spinshake {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  14% {
    transform: rotate(3deg) translate(8px, -5px) scale(1.02);
  }
  31% {
    transform: rotate(-4deg) translate(-9px, 7px) scale(0.99);
  }
  49% {
    transform: rotate(2deg) translate(10px, 3px) scale(1.03);
  }
  71% {
    transform: rotate(-5deg) translate(-6px, -4px) scale(1.01);
  }
  88% {
    transform: rotate(1deg) translate(5px, -2px) scale(1);
  }
}

@keyframes floater-drift {
  from {
    transform: translate(0, 0) rotate(var(--rot));
  }
  to {
    transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * -1));
  }
}

@keyframes pulse-burst {
  0%,
  100% {
    transform: scale(0.95) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) rotate(15deg);
    opacity: 0.65;
  }
}

@keyframes rattle-border {
  0%,
  100% {
    transform: rotate(4deg) translate(0, 0);
  }
  33% {
    transform: rotate(-2deg) translate(4px, -4px);
  }
  66% {
    transform: rotate(6deg) translate(-3px, 3px);
  }
}

@media (max-width: 1100px) {
  .title-stack {
    width: 46vw;
  }

  .hero-frame {
    width: min(60vw, 620px);
  }
}

@media (max-width: 820px) {
  .site-shell {
    padding-top: 22px;
    padding-bottom: 108px;
  }

  .title-stack {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .coin-zone {
    min-height: 58vh;
  }

  .coin-backdrop {
    top: 47%;
    width: min(84vw, 520px);
    height: min(84vw, 520px);
  }

  .hero-frame {
    width: min(74vw, 520px);
  }

  .floating-link {
    min-width: 148px;
    padding: 10px;
  }

  .link-twitter {
    top: 8px;
    right: 0;
  }

  .link-dex {
    top: auto;
    left: 0;
    bottom: 205px;
  }

  .link-pump {
    right: 0;
    top: auto;
    bottom: 140px;
  }

  .link-fomo {
    left: 10px;
    bottom: 76px;
  }

  .contract-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    transform: translateX(-50%) rotate(-1deg);
  }

  .contract-left {
    justify-content: center;
  }

  .contract-bar code {
    text-align: center;
  }

  .copy-button {
    width: 100%;
  }

  .side-stamp {
    display: none;
  }
}

@media (max-width: 560px) {
  .main-title {
    font-size: clamp(34px, 15vw, 58px);
  }

  .tiny-chip,
  .ticker-box {
    font-size: 9px;
  }

  .hero-frame figcaption {
    left: -10px;
    bottom: 6px;
    font-size: 8px;
  }

  .floating-link {
    grid-template-columns: 21px 24px 1fr 14px;
    gap: 7px;
    min-width: 134px;
  }

  .float-text {
    font-size: 10px;
  }

  .float-arrow {
    font-size: 14px;
  }

  .link-twitter {
    top: 12px;
    right: 2px;
  }

  .link-dex {
    left: 2px;
  }

  .link-pump {
    right: 2px;
  }

  .link-fomo {
    left: 2px;
  }
}
