:root {
  color-scheme: dark;
  --green: #6cff7d;
  --text: #d8dfeb;
  --display: "Press Start 2P", monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #050b12;
}

.splash {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
  background: #050b12 url("assets/compound-hero-background-v03.png") center / cover no-repeat;
  background-image: image-set(
    url("assets/compound-hero-background-v03.webp") type("image/webp"),
    url("assets/compound-hero-background-v03.png") type("image/png"));
}

.splash::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 11, 18, .12) 0%, rgba(5, 11, 18, .42) 72%, rgba(5, 11, 18, .62) 100%);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 1;
  width: min(760px, 74vw);
  margin-top: -5vh;
  text-align: center;
}

.splash-content picture { display: block; }

.splash-content img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(1, 30, 8, .62)) drop-shadow(0 0 24px rgba(74, 255, 92, .14));
}

.splash-content p {
  margin: 34px 0 0;
  color: var(--text);
  font: clamp(11px, 1.25vw, 17px)/1.5 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(108, 255, 125, .28);
}

.splash-twex {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 7vw, 120px);
  bottom: calc(8.5svh - 10px);
  width: clamp(140px, 15vw, 230px);
  aspect-ratio: 1;
  pointer-events: none;
}

.splash-twex::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 34%;
  bottom: 3.5%;
  width: 48%;
  height: 5%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .52);
  filter: blur(3px);
}

.splash-twex picture { display: contents; }

.splash-twex-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
}

.splash-twex-open { opacity: 1; }
.splash-twex.blink-half .splash-twex-open,
.splash-twex.blink-closed .splash-twex-open { opacity: 0; }
.splash-twex.blink-half .splash-twex-half,
.splash-twex.blink-closed .splash-twex-closed { opacity: 1; }

@media (max-width: 760px) {
  .splash {
    padding: 24px;
    background-position: 62% center;
  }

  .splash-content {
    width: min(520px, 92vw);
    margin-top: -2vh;
  }

  .splash-content p {
    margin-top: 24px;
    font-size: 10px;
  }

  .splash-twex {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(8.5svh - 7px);
    width: clamp(118px, 34vw, 150px);
  }
}
