html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #020004;
  overflow: hidden;
  cursor: crosshair;
  font-family: "Courier New", monospace;
}

#deadend {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(130,0,255,.18), transparent 45%),
    #020004;
}

#poster {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: contrast(1.08) saturate(1.15);
}

#static {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .22;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: scan 1.6s infinite linear;
}

#cursebox {
  position: fixed;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  color: #b7ff00;
  background: rgba(0,0,0,.82);
  border: 1px solid #b7ff00;
  padding: .75rem 1rem;
  text-shadow: 0 0 8px #b7ff00;
  opacity: .9;
  z-index: 5;
}

.hotspot {
  position: fixed;
  opacity: 0;
  border: 0;
  background: transparent;
  cursor: help;
  z-index: 4;
}

.clickhere { left: 6%; top: 37%; width: 18%; height: 9%; }
.yes { left: 39%; top: 89%; width: 10%; height: 7%; }
.no { left: 52%; top: 89%; width: 10%; height: 7%; }
.goat { left: 32%; top: 14%; width: 36%; height: 54%; }

body.cursed #poster {
  animation: glitch 240ms steps(2,end) 6;
}

@keyframes glitch {
  0% { transform: translate(0,0) skew(0deg); filter: hue-rotate(0deg); }
  25% { transform: translate(8px,-4px) skew(1deg); filter: hue-rotate(60deg); }
  50% { transform: translate(-10px,3px) skew(-1deg); filter: hue-rotate(180deg); }
  75% { transform: translate(5px,8px); filter: invert(.15) saturate(2); }
  100% { transform: translate(0,0); filter: none; }
}

@keyframes scan {
  from { transform: translateY(-20px); }
  to { transform: translateY(20px); }
}


/* stable full-screen glyph rain */
#glyphrain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  mix-blend-mode: screen;
}

.glyphcol {
  position: absolute;
  top: -80vh;
  white-space: pre;
  text-align: center;
  font-size: clamp(12px, 1.35vw, 21px);
  line-height: 1.22;
  opacity: .30;
  color: #b7ff00;
  text-shadow: 0 0 8px #b7ff00, 0 0 14px rgba(183,255,0,.55);
  animation: glyphFall linear infinite;
  will-change: transform;
}

.glyphcol.alt1 {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff, 0 0 14px rgba(255,0,255,.45);
  opacity: .22;
}

.glyphcol.alt2 {
  color: #00fff0;
  text-shadow: 0 0 8px #00fff0, 0 0 14px rgba(0,255,240,.4);
  opacity: .20;
}

@keyframes glyphFall {
  from { transform: translateY(-75vh); }
  to { transform: translateY(185vh); }
}


/* constant-but-random stable page glitch */
body.microglitch #poster {
  animation: microGlitch 140ms steps(2,end) 1;
}

body.sliceglitch #poster {
  transform: translate(var(--gx, 0px), var(--gy, 0px)) skew(var(--gskew, 0deg));
  filter:
    contrast(1.18)
    saturate(1.45)
    hue-rotate(var(--ghue, 0deg));
}

body.staticburst #static {
  opacity: .48;
}

body.staticburst #cursebox {
  transform: translateX(-50%) translate(var(--bx, 0px), var(--by, 0px));
}

body.textrot #cursebox {
  letter-spacing: .12em;
  filter: blur(.35px);
}

@keyframes microGlitch {
  0% {
    transform: translate(0,0);
    filter: contrast(1.08) saturate(1.15);
  }
  25% {
    transform: translate(6px,-2px) skew(.6deg);
    filter: hue-rotate(60deg) contrast(1.3);
  }
  50% {
    transform: translate(-7px,3px) skew(-.8deg);
    filter: hue-rotate(180deg) saturate(1.8);
  }
  75% {
    transform: translate(3px,5px);
    filter: invert(.12) contrast(1.4);
  }
  100% {
    transform: translate(0,0);
    filter: contrast(1.08) saturate(1.15);
  }
}


/* dumb meaningless clickable zones */
.logo { left: 3%; top: 3%; width: 30%; height: 14%; }
.overload { left: 39%; top: 2%; width: 26%; height: 7%; }
.memo { left: 68%; top: 34%; width: 22%; height: 18%; }
.download { left: 69%; top: 57%; width: 20%; height: 20%; }
.bass { left: 61%; top: 39%; width: 9%; height: 15%; }
.herdcomm { left: 16%; top: 66%; width: 18%; height: 19%; }
.redacted { left: 68%; top: 82%; width: 22%; height: 8%; }
.skullpic { left: 16%; top: 40%; width: 18%; height: 22%; }

body.bassquake #poster {
  animation: bassQuake 80ms steps(2,end) 14;
}

body.goatspin #poster {
  animation: goatSpin 650ms ease-in-out 1;
}

body.redactedflash #cursebox::after {
  content: " █████████████████████";
  color: #ff0033;
}

@keyframes bassQuake {
  0% { transform: translate(0,0) scale(1); }
  25% { transform: translate(10px,0) scale(1.006); }
  50% { transform: translate(-10px,4px) scale(1.01); }
  75% { transform: translate(6px,-5px) scale(1.004); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes goatSpin {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(.8deg) scale(1.015); }
  55% { transform: rotate(-.8deg) scale(1.015); }
  100% { transform: rotate(0deg) scale(1); }
}
