:root {
  --bg: #020202;
  --ink: #f4f4f4;
  --red: #ff1717;
  --red-dark: #680000;
  --acid: #d8ff00;
  --panel: #0a0a0a;
  --border: 4px solid var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,0,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 8px solid var(--red);
  pointer-events: none;
  z-index: 50;
  animation: borderPulse 1.7s steps(2, end) infinite;
}

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

.noise {
  z-index: 40;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.scanlines {
  z-index: 39;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,0,0,.04) 3px 4px);
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.hero-card {
  width: min(1120px, 96vw);
  min-height: min(860px, 92vh);
  position: relative;
  background: #050505;
  border: 7px solid #fff;
  box-shadow: 14px 14px 0 var(--red), -10px -10px 0 #222;
  transform: rotate(-.5deg);
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 16px;
  background: var(--acid);
  z-index: 8;
}
.hero-card::before { top: 22px; right: -30px; transform: rotate(13deg); }
.hero-card::after { bottom: 26px; left: -40px; transform: rotate(-10deg); }

.title-wrap {
  position: absolute;
  z-index: 8;
  top: 28px;
  left: 30px;
  right: 30px;
  transform: rotate(-2deg);
}
.micro {
  display: inline-block;
  background: var(--red);
  color: #000;
  padding: 2px 10px;
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: .15em;
  border: 3px solid #000;
}

h1 {
  margin: -2px 0 0;
  font-size: clamp(52px, 10vw, 142px);
  line-height: .78;
  letter-spacing: -.045em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 #650000, 14px 14px 0 #111;
  white-space: nowrap;
}

.ticker {
  position: absolute;
  right: 0;
  top: 64px;
  padding: 4px 12px 1px;
  background: var(--acid);
  color: #000;
  border: 4px solid #000;
  font-size: clamp(20px, 3vw, 42px);
  transform: rotate(5deg);
}

.portrait-wrap {
  position: absolute;
  inset: 125px 0 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.2) saturate(1.35) brightness(.84);
  transform: scale(1.06);
  animation: imageJolt 5.3s steps(1, end) infinite;
}

.red-flash {
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: color-burn;
  opacity: 0;
  animation: flash 4.7s steps(1, end) infinite;
}

.crosshair {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 3px solid var(--acid);
  z-index: 5;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--acid);
}
.crosshair::before { width: 78px; height: 3px; left: -16px; top: 22px; }
.crosshair::after { width: 3px; height: 78px; left: 22px; top: -16px; }
.crosshair-a { left: 8%; top: 28%; transform: rotate(11deg); }
.crosshair-b { right: 8%; top: 49%; transform: rotate(-8deg); }

.ca-box {
  position: absolute;
  z-index: 10;
  left: 24px;
  bottom: 22px;
  width: min(500px, calc(100% - 48px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border: 5px solid #000;
  box-shadow: 7px 7px 0 var(--red);
  transform: rotate(1.4deg);
  cursor: pointer;
}
.ca-box span, .ca-box em { font-style: normal; font-size: 20px; }
.ca-box strong {
  font-family: "Courier New", Courier, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.ca-box:hover { transform: rotate(-1deg) translate(3px,-3px); }

.chaos-nav {
  position: absolute;
  z-index: 15;
  right: 22px;
  bottom: 24px;
  width: 420px;
  height: 230px;
}

.chaos-btn {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  padding: 9px 12px 8px;
  text-decoration: none;
  color: #fff;
  background: #0a0a0a;
  border: 4px solid #fff;
  box-shadow: 7px 7px 0 #000;
  font-size: 25px;
  line-height: 1;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: filter .12s linear;
  animation: drift 3.4s steps(2, end) infinite alternate;
}
.chaos-btn img {
  width: 34px;
  height: 34px;
  image-rendering: auto;
}
.chaos-btn:hover {
  filter: invert(1);
  animation-duration: .35s;
}
.chaos-btn:active { scale: .92; }

.btn-buy { right: 15px; top: 9px; background: var(--red); color: #000; animation-delay: -.8s; }
.btn-dex { left: 8px; top: 40px; animation-delay: -1.4s; }
.btn-x { right: 42px; bottom: 9px; background: #fff; color: #000; animation-delay: -2.1s; }
.btn-fomo { left: 34px; bottom: 4px; background: var(--acid); color: #000; animation-delay: -2.8s; }

.stamp {
  position: absolute;
  z-index: 14;
  padding: 4px 8px;
  background: #000;
  color: var(--red);
  border: 3px solid var(--red);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  letter-spacing: .12em;
}
.stamp-top { right: 22px; top: 18px; transform: rotate(8deg); }
.stamp-side { left: 9px; top: 47%; transform: rotate(-90deg); font-size: 24px; }

.warning-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 112px;
  height: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: var(--acid);
  z-index: 7;
  font-size: 13px;
  transform: rotate(.3deg);
}

@keyframes drift {
  0% { transform: translate(-6px, 3px) rotate(-8deg); }
  35% { transform: translate(10px, -4px) rotate(4deg); }
  70% { transform: translate(-2px, 8px) rotate(11deg); }
  100% { transform: translate(7px, -7px) rotate(-3deg); }
}

@keyframes imageJolt {
  0%, 87%, 100% { transform: scale(1.06) translate(0,0); }
  88% { transform: scale(1.08) translate(-7px, 4px); }
  89% { transform: scale(1.06) translate(5px, -3px); }
  90% { transform: scale(1.07) translate(-3px, 2px); }
}

@keyframes flash {
  0%, 76%, 78%, 100% { opacity: 0; }
  77% { opacity: .32; }
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--red); }
  50% { border-color: #3a0000; }
}

@media (max-width: 820px) {
  body::before { border-width: 4px; }
  .stage { padding: 18px 10px; }
  .hero-card {
    width: 100%;
    min-height: 840px;
    border-width: 4px;
    box-shadow: 7px 7px 0 var(--red);
    transform: none;
  }
  .title-wrap { top: 20px; left: 14px; right: 14px; }
  h1 {
    font-size: clamp(48px, 15vw, 98px);
    white-space: normal;
    max-width: 88%;
    line-height: .76;
  }
  .ticker { top: 78px; right: 0; }
  .portrait-wrap { inset: 145px 0 245px; }
  .hero-image { object-position: center top; transform: scale(1.02); }
  .warning-strip { top: 130px; }
  .ca-box { left: 12px; right: 12px; bottom: 192px; width: auto; }
  .chaos-nav { left: 12px; right: 12px; bottom: 12px; width: auto; height: 168px; }
  .chaos-btn { min-width: 122px; font-size: 21px; padding: 8px 10px; }
  .chaos-btn img { width: 30px; height: 30px; }
  .btn-buy { top: 0; right: 4px; }
  .btn-dex { top: 17px; left: 0; }
  .btn-x { bottom: 2px; right: 18px; }
  .btn-fomo { bottom: 0; left: 10px; }
  .stamp-side { display: none; }
}

@media (max-width: 520px) {
  .hero-card { min-height: 780px; }
  .portrait-wrap { inset: 155px 0 255px; }
  h1 { font-size: clamp(44px, 16vw, 72px); }
  .ticker { top: 100px; font-size: 20px; }
  .ca-box { grid-template-columns: auto 1fr; row-gap: 2px; }
  .ca-box em { grid-column: 1 / -1; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
