:root {
  --acid: #c4ff00;
  --acid-2: #8df500;
  --red: #ff1616;
  --blue: #1348ff;
  --yellow: #ffe600;
  --paper: #fffef0;
  --black: #020202;
  --purple: #5b00ff;
  --cyan: #00e5ff;
  --border: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 255, 0, 0.14), transparent 17rem),
    radial-gradient(circle at 80% 22%, rgba(255, 22, 22, 0.11), transparent 14rem),
    #000;
  font-family: Impact, Haettenschweiler, "Arial Black", "Comic Sans MS", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  image-rendering: pixelated;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(#fff 0 1px, transparent 2px),
    radial-gradient(var(--acid) 0 1px, transparent 2px),
    radial-gradient(var(--red) 0 1px, transparent 2px);
  background-position: 0 0, 31px 60px, 82px 19px;
  background-size: 129px 113px, 181px 137px, 223px 179px;
  opacity: 0.55;
}

a {
  color: var(--acid);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}

.warning {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.warning.is-hidden {
  display: none;
}

.warning-box {
  width: min(520px, 100%);
  padding: 22px;
  color: #000;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 12px, var(--acid) 12px, var(--acid) 24px);
  border: 8px ridge var(--red);
  box-shadow: 11px 11px 0 var(--blue);
}

.warning-box p {
  margin: 0 0 18px;
  color: var(--red);
  font-size: clamp(38px, 8vw, 70px);
  line-height: 0.9;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 #000;
}

.warning-subcopy {
  display: block;
  margin: -6px auto 16px;
  padding: 7px 9px;
  color: var(--acid);
  background: #000;
  border: 3px dashed var(--blue);
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: clamp(16px, 4vw, 25px);
}

.audio-warning {
  display: none;
  margin: -6px auto 12px;
  padding: 6px 8px;
  color: #fff;
  background: #000;
  border: 3px dotted var(--red);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.audio-warning.is-visible {
  display: block;
}

.warning-box button {
  margin: 6px;
  padding: 8px 14px;
  color: #fff;
  background: #000;
  border: 4px outset #fff;
  box-shadow: 4px 4px 0 var(--red);
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(90deg, #071700, #000 30%, #102900 70%, #000);
  border-bottom: 5px solid var(--acid);
}

.top-strip a {
  display: inline-block;
  padding: 5px 10px;
  color: #000;
  background: var(--acid);
  border: 3px outset #fff;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.page-shell {
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto 40px;
}

.hero {
  position: relative;
  margin-top: 14px;
  padding: 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.78);
  border: 6px ridge var(--acid);
  box-shadow: 0 0 0 5px var(--red), 12px 12px 0 rgba(19, 72, 255, 0.92);
}

.ticker-rain {
  padding: 5px;
  overflow: hidden;
  color: #000;
  background: var(--acid);
  border: 3px dashed #000;
  font-size: clamp(18px, 3vw, 30px);
  white-space: nowrap;
}

h1 {
  max-width: 100%;
  margin: 14px auto 8px;
  color: var(--red);
  font-size: clamp(38px, 9vw, 106px);
  line-height: 0.78;
  overflow-wrap: anywhere;
  text-shadow:
    3px 3px 0 #fff,
    6px 6px 0 #000,
    9px 9px 0 var(--blue);
  transform: rotate(-1deg);
}

.subhead {
  margin: 0 auto 15px;
  color: var(--yellow);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #000, 6px 6px 0 var(--red);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(76px, 120px) minmax(0, 1fr) minmax(150px, 240px);
  gap: 10px;
  align-items: stretch;
}

.left-rack,
.right-rack,
.logo-card,
.box,
.broken-table,
.lore,
.pictures,
.links {
  border: var(--border) ridge #fff;
  background: rgba(0, 0, 0, 0.86);
}

.left-rack {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
}

.left-rack span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 3px solid #fff;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
}

.left-rack span:nth-child(1),
.left-rack span:nth-child(4),
.left-rack span:nth-child(6) {
  color: #fff;
  background: var(--red);
}

.left-rack span:nth-child(2),
.left-rack span:nth-child(5) {
  color: #fff;
  background: var(--blue);
}

.left-rack span:nth-child(3),
.left-rack span:nth-child(7) {
  color: #000;
  background: var(--yellow);
}

.logo-card {
  padding: 8px;
}

.logo-card img {
  display: block;
  width: min(100%, 650px);
  margin: 0 auto;
  border: 3px solid var(--blue);
  image-rendering: auto;
}

.logo-caption {
  margin-top: 7px;
  color: var(--acid);
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: 17px;
}

.right-rack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.quote {
  padding: 10px;
  color: #000;
  background: var(--yellow);
  border: 4px dashed var(--red);
  font-size: 26px;
  line-height: 0.95;
}

.coin {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #050505;
  background:
    radial-gradient(circle at 35% 30%, #f2ff8a, var(--acid) 40%, #39a800 70%),
    var(--acid);
  border: 9px ridge #d8ff41;
  border-radius: 50%;
  font-size: clamp(40px, 6vw, 68px);
  text-shadow: 2px 2px 0 #fff;
  transform: rotate(8deg);
}

.slot {
  padding: 8px;
  color: var(--red);
  background: #fff;
  border: 6px ridge var(--yellow);
  font-size: 52px;
  letter-spacing: 8px;
}

.mini-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mini-links a {
  padding: 8px;
  color: #fff;
  background: var(--blue);
  border: 4px outset var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}

.marquee-wrap {
  overflow: hidden;
  margin-top: 12px;
  color: #000;
  background: var(--red);
  border: 4px inset var(--yellow);
}

.marquee {
  width: max-content;
  padding: 7px 0;
  font-size: 28px;
  white-space: nowrap;
  animation: marquee 14s linear infinite;
}

.wide-meme {
  margin: 14px 0 0;
  padding: 8px;
  background: #000;
  border: 5px ridge var(--blue);
  box-shadow: 0 0 0 4px var(--yellow);
}

.wide-meme img {
  display: block;
  width: 100%;
  border: 3px solid var(--red);
}

.wide-meme figcaption {
  margin-top: 6px;
  color: var(--acid);
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  text-transform: uppercase;
}

@keyframes marquee {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

.broken-table,
.lore,
.pictures,
.links,
.two-col {
  margin-top: 22px;
}

.section-title {
  margin: -4px -4px 12px;
  padding: 7px 10px;
  color: #000;
  background: linear-gradient(90deg, var(--acid), var(--yellow), var(--red));
  border-bottom: 4px ridge #fff;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #fff;
}

.table-grid {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 5px;
  padding: 12px;
}

.cell {
  min-height: 62px;
  padding: 12px;
  color: #000;
  background: var(--paper);
  border: 4px groove var(--blue);
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: clamp(19px, 3vw, 30px);
}

.blink {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 44px;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  50% {
    color: var(--acid);
    background: var(--blue);
  }
}

.contract-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 12px 12px;
  padding: 10px;
  color: #000;
  background: var(--acid);
  border: 5px dashed var(--red);
  font-family: "Courier New", monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contract-box button {
  padding: 7px 12px;
  color: #fff;
  background: #000;
  border: 4px outset #fff;
}

.lore {
  padding-bottom: 14px;
}

.lore-copy {
  columns: 2 280px;
  gap: 22px;
  padding: 0 16px;
}

.lore-copy p {
  margin-top: 0;
  color: #fff;
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.15;
  text-shadow: 2px 2px 0 #000;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.box {
  min-height: 260px;
}

.ugly-list {
  margin: 0;
  padding: 4px 26px 18px 38px;
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: clamp(18px, 2.3vw, 25px);
}

.ugly-list li {
  margin: 10px 0;
  color: #fff;
}

.terminal-box {
  color: var(--acid);
  text-align: center;
}

.counter {
  display: inline-block;
  margin: 12px auto;
  padding: 10px 18px;
  color: var(--red);
  background: #030303;
  border: 4px inset var(--acid);
  font-family: "Courier New", monospace;
  font-size: clamp(34px, 7vw, 76px);
  letter-spacing: 4px;
  text-shadow: 0 0 9px var(--red);
}

.terminal-box p {
  margin: 8px 14px 18px;
  font-family: "Comic Sans MS", Impact, sans-serif;
  font-size: 22px;
}

.pictures {
  padding-bottom: 16px;
}

.picture-grid {
  column-count: 3;
  column-gap: 14px;
  padding: 0 12px;
}

.meme-card {
  display: inline-block;
  width: 100%;
  margin: 0;
  margin-bottom: 14px;
  padding: 7px;
  color: #000;
  background: repeating-linear-gradient(45deg, var(--acid), var(--acid) 8px, var(--yellow) 8px, var(--yellow) 16px);
  border: 5px outset #fff;
  box-shadow: 7px 7px 0 var(--blue);
  transform: rotate(var(--tilt, -2deg));
}

.meme-card:nth-child(even) {
  --tilt: 2deg;
}

.meme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
  border: 4px solid #000;
}

.meme-card.big img,
.meme-card.tall img {
  aspect-ratio: auto;
}

.meme-card figcaption {
  margin-top: 7px;
  padding: 5px;
  color: #fff;
  background: #000;
  border: 3px dashed var(--red);
  font-size: clamp(16px, 2.2vw, 25px);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--blue);
}

.links {
  padding-bottom: 16px;
}

.link-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 12px;
}

.link-wall a {
  padding: 9px 12px;
  color: #000;
  background: var(--acid);
  border: 4px outset #fff;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 18px 10px 30px;
  color: var(--yellow);
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 12px, 1120px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .left-rack {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: none;
  }

  .left-rack span {
    min-height: 42px;
    font-size: 34px;
  }

  .right-rack {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .coin {
    max-width: 180px;
    justify-self: center;
    width: 100%;
  }

  .slot {
    font-size: 34px;
    letter-spacing: 3px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .picture-grid {
    column-count: 1;
  }

  .table-grid {
    grid-template-columns: 52px 1fr;
  }
}

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