@font-face {
  font-family: "SUSE Mono";
  src: url("../fonts/SUSEMono-ExtraBold-subset.woff2") format("woff2");
  font-weight: 800 1000;
  font-style: normal;
  font-display: block;
}
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-height: 100vh;
  font-family: "Lucida Console", Monaco, monospace;
  font-optical-sizing: auto;
  font-style: normal;
  color: #fff;
}

#container {
  display: block;
  position: relative;
  aspect-ratio: 3/2;
  width: min(100vw, 150vh);
  height: min(66.67vw, 100vh);
  max-width: 1200px;
  max-height: 800px;
  overflow: hidden;
}

canvas {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 100%;
}

.offscreen {
  display: none;
}

#starfield {
  top: 0;
  left: 0;
  z-index: 1;
}

#vector3d {
  top: 11.25%;
  left: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

#backscroller {
  top: 37%;
  left: 0;
  background: transparent;
  z-index: 3;
  image-rendering: optimizeSpeed;
}

#cracktro {
  top: 48%;
  left: 0;
  z-index: 4;
}

#scroller {
  top: 37%;
  left: 0;
  background: transparent;
  z-index: 5;
  image-rendering: optimizeSpeed;
}

#typewriter {
  bottom: 8%;
  left: 0;
  z-index: 7;
  background: transparent;
  pointer-events: none;
  filter: drop-shadow(2px 2px 0px rgba(128, 0, 0, 0.6)) drop-shadow(-1px -1px 0px rgba(155, 0, 0, 0.6)) drop-shadow(0px 0px 10px rgba(108, 94, 181, 0.4));
}

#binaryscroller {
  top: 0;
  left: 0;
  z-index: 1;
}

#gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to bottom, #333333 0%, #002233 20%, #112244 30%, #223377 50%, #221144 70%, #220033 80%, #333333 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 6;
}

#ffx-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 14px;
  font-weight: bold;
  z-index: 8;
  pointer-events: none;
  animation: blink-badge 1s infinite;
}

#hq-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  display: none;
  justify-content: left;
  align-items: end;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 10px;
  font-weight: bold;
  z-index: 8;
  cursor: pointer;
  color: #fff;
}

#filter-badge {
  margin-left: 6px;
}

@keyframes blink-badge {
  0%, 100% {
    color: #000;
  }
  50% {
    color: #fff;
  }
}
#overlay-clicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 48px;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@media (max-width: 540px) or (max-height: 335px) {
  #overlay-clicker {
    font-size: 30px;
  }
}
@media ((aspect-ratio >= 1.5) and (aspect-ratio < 2.05) and (any-pointer: coarse)) {
  #ffx-badge {
    position: fixed;
  }
  #hq-badge {
    position: fixed;
  }
}
@media ((aspect-ratio >= 1.5) and (aspect-ratio < 2.05) and (any-pointer: coarse)), ((aspect-ratio < 1.5) and (any-pointer: coarse)) {
  #container {
    width: 100%;
    height: auto;
    position: absolute;
    max-width: none;
    max-height: none;
  }
}