:root {
  --void: #070406;
  --blood: #c4122a;
  --bile: #7cff4a;
  --ash: #e8dcc8;
  --ink: #0b0709;
  --panel: rgba(8, 4, 6, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  color: var(--ash);
  font-family: Literata, Georgia, "Times New Roman", serif;
  background: var(--void);
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heroes {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(
      180deg,
      rgba(7, 4, 6, 0.35) 0%,
      rgba(7, 4, 6, 0.15) 35%,
      rgba(7, 4, 6, 0.55) 70%,
      rgba(7, 4, 6, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(120, 0, 20, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(80, 0, 10, 0.4) 100%
    ),
    url("/bg-heroes.webp") center 35% / cover no-repeat;
  filter: saturate(1.15) contrast(1.08);
  animation: ken 28s ease-in-out infinite alternate;
  transform-origin: center center;
}

.embers {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(196, 18, 42, 0.35), transparent 28%),
    radial-gradient(circle at 82% 68%, rgba(196, 18, 42, 0.28), transparent 26%),
    radial-gradient(circle at 50% 18%, rgba(124, 255, 74, 0.12), transparent 34%);
  animation: pulse-glow 6s ease-in-out infinite;
  mix-blend-mode: screen;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.55) 70%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%, transparent 60%, rgba(0, 0, 0, 0.85));
}

.halftone {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#000 0.85px, transparent 1.1px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.35;
}

.frame {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.logo {
  width: min(58vw, 280px);
  height: auto;
  /* crisp hi-res at modest size — avoids stretch-pixel look */
  image-rendering: auto;
  filter:
    drop-shadow(0 0 20px rgba(196, 18, 42, 0.4))
    drop-shadow(0 14px 32px rgba(0, 0, 0, 0.7));
  animation: pop-in 0.95s cubic-bezier(0.2, 1.2, 0.3, 1) both,
    float 5.5s ease-in-out 0.95s infinite;
}

.blurb {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  line-height: 1.55;
  color: #f3e7d4;
  background: var(--panel);
  border: 3px solid #f2d7a8;
  border-radius: 2px;
  padding: 1.1rem 1.25rem;
  box-shadow:
    5px 5px 0 #000,
    0 0 0 1px rgba(196, 18, 42, 0.55),
    0 0 40px rgba(196, 18, 42, 0.18);
  backdrop-filter: blur(6px);
  animation: rise 0.8s ease 0.25s both;
}

.cta {
  font-family: Bangers, Impact, Haettenschweiler, sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: 0.04em;
  color: #14080a;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe27a, #ffb020);
  border: 3px solid #f2d7a8;
  padding: 0.55rem 1.15rem 0.4rem;
  box-shadow: 4px 4px 0 #000, 0 0 24px rgba(255, 176, 32, 0.25);
  transition: translate 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: rise 0.8s ease 0.45s both;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.08);
  translate: 2px 2px;
  box-shadow: 2px 2px 0 #000, 0 0 28px rgba(255, 176, 32, 0.4);
  outline: none;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ken {
  from {
    transform: scale(1.05) translate3d(-1.2%, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(1.2%, -1.5%, 0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .blurb {
    box-shadow: 4px 4px 0 #000;
    text-align: left;
  }

  .heroes {
    background-position: center 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .blurb,
  .cta,
  .credit,
  .heroes,
  .embers {
    animation: none;
  }
}
