@font-face {
  font-family: "A Black Lives";
  src: url("assets/aBlackLives.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-ink: #08110c;
  --color-lime: #55ff55;
  --font-display: "A Black Lives", Impact, "Arial Black", sans-serif;
  --font-ui: Inter, "Arial Black", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--color-ink); }

body {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
}

button { font: inherit; }

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #09170f;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/street-composite.webp") center center / cover no-repeat;
}

.hero__logo {
  position: absolute;
  top: 1.48%;
  left: 50%;
  width: min(35vh, 58vw);
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 0.45vh 0.7vh rgb(0 0 0 / 50%));
}

.hero__eyebrow {
  position: absolute;
  top: 19.4%;
  left: 50%;
  width: max-content;
  margin: 0;
  padding: 0.62vh 2.1vh 0.72vh;
  transform: translateX(-50%);
  border: 0.2vh solid #53fc63;
  color: #56ff77;
  background: rgb(0 26 12 / 64%);
  box-shadow: 0 0 1.2vh rgb(38 255 79 / 16%);
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.63vh, 20px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title {
  position: absolute;
  top: 22.7%;
  left: 50%;
  width: min(72.96svh, 94vw);
  margin: 0;
  transform: translateX(-50%);
}

.hero__title-line {
  display: block;
  height: auto;
  filter: drop-shadow(0 0.45vh 0 #050605) drop-shadow(0 0.25vh 0.28vh rgb(0 0 0 / 75%));
}

.hero__title-line--white {
  width: 100%;
}

.hero__title-line--gold {
  width: 57.87%;
  margin: -5.71% auto 0;
}

.hero__subtitle {
  position: absolute;
  top: 41.7%;
  left: 50%;
  width: max-content;
  max-width: 94vw;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: min(2.4vh, 1.45vw);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.2vh 0.3vh #000, 0 0 1vh rgb(0 0 0 / 75%);
}

.zombie-choices {
  position: absolute;
  z-index: 1;
  top: 44.7%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.92%;
  width: min(80.37vh, 92vw);
  aspect-ratio: 868 / 410;
  transform: translateX(-50%);
}

.zombie-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: center 78%;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), filter 350ms ease;
  -webkit-tap-highlight-color: transparent;
}

.zombie-card--doctor {
  --tilt: -2deg;
  --glow: #28ff26;
}

.zombie-card--punk {
  --tilt: 1deg;
  --glow: #ff2eec;
}

.zombie-card--granny {
  --tilt: 2deg;
  --glow: #ffd334;
}

.zombie-card__frame {
  position: absolute;
  z-index: 0;
  top: 13%;
  left: 0;
  display: block;
  width: 100%;
  /* The complete frame continues behind the button to the card's bottom. */
  height: 87%;
  object-fit: fill;
  pointer-events: none;
}

.zombie-card__button {
  position: absolute;
  z-index: 2;
  top: 76%;
  left: 0;
  display: block;
  width: 100%;
  height: 22%;
  object-fit: fill;
  pointer-events: none;
}

.zombie-card__character {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
}

.zombie-card__idle,
.zombie-card__motion {
  position: absolute;
  top: -10.6%;
  left: -3%;
  display: block;
  width: 106%;
  height: 111%;
  /* Keep the character above the frame inside the card's hover/click area. */
  pointer-events: auto;
}

.zombie-card__idle { object-fit: fill; }
.zombie-card__motion { opacity: 0; }
.zombie-card__motion[hidden] { display: none; }
.zombie-card--playing .zombie-card__idle { opacity: 0; }
.zombie-card--playing .zombie-card__motion { opacity: 1; }

/* Hover is gated on a real pointer. A touch device fires :hover on tap and
   then keeps it, which left a card stuck scaled-up and glowing behind the
   modal for the rest of the session. */
@media (hover: hover) and (pointer: fine) {
  .zombie-card:hover {
    z-index: 2;
    transform: translateY(-1.1vh) rotate(var(--tilt)) scale(1.045);
    filter: drop-shadow(0 0 1.5vh var(--glow)) drop-shadow(0 1vh 1vh rgb(0 0 0 / 50%));
  }
}

.zombie-card:focus-visible {
  z-index: 2;
  transform: translateY(-1.1vh) rotate(var(--tilt)) scale(1.045);
  filter: drop-shadow(0 0 1.5vh var(--glow)) drop-shadow(0 1vh 1vh rgb(0 0 0 / 50%));
}

.zombie-card:active { transform: translateY(-0.4vh) scale(0.985); }
.zombie-card:focus-visible { outline: none; filter: drop-shadow(0 0 1.5vh #fff) drop-shadow(0 0 1.5vh var(--glow)); }

.reveal-plaque {
  position: absolute;
  z-index: 0;
  top: 82%;
  left: 50%;
  width: min(51vh, 70vw);
  aspect-ratio: 1158 / 478;
  transform: translateX(-50%);
  filter: drop-shadow(0 0.65vh 0.9vh rgb(0 0 0 / 55%));
  pointer-events: none;
}

.reveal-plaque__slime-still,
.reveal-plaque__motion { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; }
.reveal-plaque__motion[hidden] { display: none; }
.reveal-plaque--ready .reveal-plaque__slime-still { opacity: 0; }

.reveal-plaque__wood {
  position: absolute;
  z-index: 0;
  top: 8.2%;
  left: 0.52%;
  display: block;
  width: 98.88%;
  height: auto;
  pointer-events: none;
}

.reveal-plaque__label {
  position: absolute;
  z-index: 2;
  top: 44.1%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: min(2.35vh, 1.45vw);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.18vh 0.3vh #000, 0 0 0.5vh #000;
}

.reveal-dialog {
  width: min(61.3svh, 94vw);
  max-width: none;
  max-height: 96svh;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  overflow: visible;
  translate: 0 -4svh;
}

.reveal-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
}

.reveal-dialog[open] { animation: dialog-enter 240ms cubic-bezier(.2,.8,.2,1) both; }
.reveal-dialog__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: min(3.3svh, 36px); }
.reveal-dialog__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reveal-dialog__media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: clamp(3px, .46svh, 5px) solid #00f342;
  background: #000;
  box-shadow: 0 0 18px rgb(0 255 57 / 20%);
}
.reveal-dialog__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
/* Now an <a>, so that Voluum's DTP script rewrites its href like any other
   link on the page. The button reset has to be restated for an anchor. */
.reveal-dialog__cta {
  display: block;
  width: 58.8%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / 70%));
  animation: claim-enter 320ms cubic-bezier(.2,.8,.2,1) both;
}
.reveal-dialog__cta[hidden] { display: block; visibility: hidden; pointer-events: none; }
.reveal-dialog__cta img { display: block; width: 100%; height: auto; }
.reveal-dialog__cta:focus-visible { transform: translateY(-3px) scale(1.025); filter: drop-shadow(0 0 16px rgb(75 255 20 / 70%)); }
@media (hover: hover) and (pointer: fine) {
  .reveal-dialog__cta:hover { transform: translateY(-3px) scale(1.025); filter: drop-shadow(0 0 16px rgb(75 255 20 / 70%)); }
}
.reveal-dialog__cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 18px; }

@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes claim-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (max-aspect-ratio: 1.15), (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(4px, 1.2svh, 12px);
    height: auto;
    min-height: 100svh;
    padding-top: clamp(6px, 1.5svh, 16px);
  }

  /* Normal flow reserves each element's actual height on short screens. */
  .hero__logo,
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .zombie-choices,
  .reveal-plaque {
    position: relative;
    top: auto;
    left: auto;
    flex: none;
    margin: 0;
    transform: none;
  }

  .hero__scene { background-position: 50% 50%; }
  .hero__logo { width: min(55vw, 25svh); }
  .hero__eyebrow { padding: .5svh 1.4svh; border-width: 1.5px; font-size: clamp(10px, 1.7svh, 14px); }
  .hero__title {
    width: min(96vw, 65svh);
    margin-top: clamp(0px, calc((100svh - 500px) * .08), 28px);
  }
  .hero__subtitle {
    width: min(94vw, 680px);
    max-width: none;
    font-size: clamp(11px, min(3.1vw, 2.4svh), 17px);
    line-height: 1.15;
    white-space: normal;
  }
  .zombie-choices {
    width: min(96vw, 76svh, 590px);
    margin-top: clamp(4px, calc((100svh - 500px) * .05), 18px);
  }
  .reveal-plaque {
    --plaque-width: min(88vw, 58svh);
    width: var(--plaque-width);
    margin-top: auto;
    /* Only the decorative drip tail extends beyond the viewport edge. */
    margin-bottom: calc(var(--plaque-width) * -.15);
  }
  .reveal-plaque__label { font-size: clamp(9px, min(2.45vw, 1.7svh), 18px); }
}

@media (max-height: 560px) and (min-width: 701px) {
  .hero__title { font-size: 9.7vh; }
  .hero__subtitle { top: 42%; }
  .zombie-choices { top: 45.5%; width: min(76vh, 85vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
