@import url("https://fonts.googleapis.com/css2?family=Titan+One&display=swap");
@font-face {
  font-family: "Bones";
  src: url("HeadhunterRegular.woff2") format("woff");
}
@font-face {
  font-family: "Stranger";
  src: url("GhoulishFrightAOE.woff2") format("woff2");
}
body {
  display: grid;
  place-items: center;
  height: 100vh;
  background: #666;
  overflow: hidden;
  width: 100vw;
}
body.ghost {
  --bg: url("ghostweave.jpg");
}
body.vampire {
  --bg: url("vampireweave.jpg");
}
body.skeleton {
  --bg: url("skullweave.jpg");
}
body.marshmallow {
  --bg: url("frankenweave.jpg");
}
body.ghoul {
  --bg: url("ghoulweave.jpg");
}
body.werewolf {
  --bg: url("werewolfpattern.jpg");
}
body:before, body:after {
  content: "";
  position: absolute;
  width: calc(100vw + 20px);
  height: calc(100vh + 20px);
  min-height: 100vw;
  min-width: 100vh;
  z-index: -1;
  left: 50%;
  top: 50%;
  background: radial-gradient(circle at center, #fff, rgba(255, 255, 255, 0.75)), var(--bg) 50% 50%/600px auto;
  transition: 3s ease-in-out;
  transform: translate(-50%, -50%);
  filter: invert(1) blur(0px);
}
body:after {
  transition: 1.5s ease-in-out;
  opacity: 0.75;
  filter: none;
  background: #222;
}
body.loading > div {
  pointer-events: none;
}
body.loading:before {
  filter: invert(1) blur(10px);
  transition: 1s ease-in-out;
}
body.loading:after {
  opacity: 1;
}
body > div {
  width: 550px;
  height: 200px;
  transform: translateY(-100px);
  padding: 25px 75px 50px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px #da3743, 0 20px 40px -10px rgba(0, 0, 0, 0);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 9;
  backdrop-filter: blur(4px);
  border-radius: 10px;
}
body > div > span {
  font-family: "Stranger";
  font-size: 3.75rem;
  font-weight: 100;
  display: block;
  margin: 0.25rem 0 0.5rem;
  text-align: left;
  padding: 0 1rem 0 0;
  color: #000;
  background-image: linear-gradient(to bottom, #529671, #2e543f);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  text-shadow: 0 -5px 0 #aed3bf;
  line-height: 0.75;
}
body ul {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.005) 30px, #000 30px);
  width: 550px;
  height: 50px;
  position: relative;
  z-index: 3;
  list-style-type: none;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
body ul.pulse:not(.active) {
  animation: pulse 0.75s 1 forwards 2.5s;
}
@keyframes pulse {
  from {
    box-shadow: 0 0 10px -10px rgba(255, 255, 255, 0.5);
  }
  to {
    box-shadow: 0 0 10px 20px transparent;
  }
}
body ul:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #fff transparent transparent transparent;
  right: 10px;
  top: calc(50% - 2.5px);
  z-index: -2;
  transition: 0.2s ease-in-out;
}
body ul:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 100%;
  right: 0;
  top: 0;
  z-index: -3;
  background: #333;
  transition: 0.2s ease-in-out;
  box-shadow: inset 0 0 20px -10px #000;
}
body ul:not(.active):hover:before {
  border-color: #8dc1a5 transparent transparent transparent;
}
body ul.active {
  overflow: visible;
}
body ul.active:before {
  transform: rotate(180deg);
  border-color: #da3743 transparent transparent transparent;
}
body ul.active li {
  pointer-events: all;
  transition: 0.3s ease-in-out;
}
body ul.active li > * span.word span.char:after {
  transition: background-position 0.5s ease-in-out;
}
body ul.active li.active {
  background: transparent;
  box-shadow: inset 0 0 0 3px #da3743;
  border-radius: 5px 5px 0 0;
}
body ul.active li:not(.active):hover {
  background: #222;
  box-shadow: inset 0 0 10px 0 #000;
}
body ul.active li:not(.active):hover > span {
  transform: scale(0.95);
}
body ul.active li:not(.active):hover:before {
  transform: scaleY(1);
  transition-delay: 0s, 0.2s;
}
body ul.active li:not(.active):hover ~ li:before {
  transform-origin: top;
}
body ul.active li:not(.active):hover > * span.word span.char {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: 1s ease-in-out;
  transition-delay: 0.5s;
  animation: bounce 0.5s ease-in-out infinite alternate;
}
body ul.active li:not(.active):hover > * span.word span.char:after {
  transition: background-position 0.75s ease-in-out;
  background-position: calc(50% - 5px) calc(50% + var(--top)), calc(50% + 5px) calc(50% + var(--top)), 50% 100%;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(2n):after {
  transition-delay: 0.05s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(3n):after {
  transition-delay: 0.15s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(1) {
  animation-delay: -0.25s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(2) {
  animation-delay: -0.5s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(3) {
  animation-delay: -0.75s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(4) {
  animation-delay: -1s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(5) {
  animation-delay: -1.25s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(6) {
  animation-delay: -1.5s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(7) {
  animation-delay: -1.75s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(8) {
  animation-delay: -2s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(9) {
  animation-delay: -2.25s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(10) {
  animation-delay: -2.5s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(11) {
  animation-delay: -2.75s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(12) {
  animation-delay: -3s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(13) {
  animation-delay: -3.25s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(14) {
  animation-delay: -3.5s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(15) {
  animation-delay: -3.75s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(16) {
  animation-delay: -4s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(17) {
  animation-delay: -4.25s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(18) {
  animation-delay: -4.5s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(19) {
  animation-delay: -4.75s;
}
body ul.active li:not(.active):hover > * span.word span.char:nth-of-type(20) {
  animation-delay: -5s;
}
@keyframes bounce {
  from {
    transform: translate(0px, 1px) skewY(-5deg);
  }
  to {
    transform: translate(0px, -1px) skewY(5deg);
  }
}
body ul li {
  font-size: 30px;
  font-family: "Titan One";
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 50px;
  min-height: 50px;
  box-shadow: 0 0 0 1px;
  left: 0;
  position: relative;
  order: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  padding: 0 1rem;
  background: #000;
}
body ul li:not(.active) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
body ul li:not(.active) > span {
  transform: scale(0.75);
}
body ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: bottom;
  height: 100%;
  width: 3px;
  background: #cfe5d9;
  transition: transform 0.2s linear, transform-origin 0s linear;
  transform: scaleY(0);
}
body ul li > * {
  pointer-events: none;
  display: inline-block;
  transform-origin: left;
  transition: 0.2s ease-in-out;
}
body ul li > * span.word span.char {
  display: inline-block;
  position: relative;
  color: transparent;
  transition: 0.25s ease-in-out;
  text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  --top: 0px;
  --angle: 195deg;
}
body ul li > * span.word span.char:before {
  content: attr(data-char);
  position: absolute;
  color: #fff;
  font-family: "Bones";
  font-size: 20px;
  z-index: -1;
  top: 50%;
  left: 50%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 3.5px)) scale(1.1, 1);
}
body ul li > * span.word span.char:after {
  content: attr(data-char);
  position: absolute;
  top: 50%;
  left: 50%;
  color: #cfe5d9;
  transform: translate(-50%, -50%);
  transition: background-position 2.5s cubic-bezier(0.17, 0.01, 0.29, 0.99);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-image: radial-gradient(ellipse at center, #000 1px, rgba(255, 255, 255, 0.005) 1px), radial-gradient(ellipse at center, #000 1px, rgba(255, 255, 255, 0.005) 1px), linear-gradient(var(--angle), #da3743 5px, #aed3bf 5px, #6caf8a 30px, #6caf8a 100px, #fff 270px, rgba(255, 255, 255, 0.5) 300px);
  background-size: 10px 15px, 10px 15px, 100% 300px;
  background-position: calc(50% - 5px) -200px, calc(50% + 5px) -200px, 50% -10px;
  background-repeat: no-repeat;
}
body ul li > * span.word span.char:nth-of-type(2n) {
  --top: 4px;
  --angle: 155deg;
}
body ul li > * span.word span.char:nth-of-type(3n) {
  --top: -4px;
  --angle: 180deg;
}
body ul li.active {
  order: 1;
  background: transparent;
  box-shadow: inset 0 0 0 1px #555;
  border-radius: 5px;
}
body ul li.active:before {
  opacity: 0;
}
body ul li.active > * {
  animation: fadeIn 0.25s ease-in-out 1 forwards;
  transform-origin: 0% 100%;
}
@keyframes fadeIn {
  from {
    transform: translateY(100%) scale(1.2);
  }
  to {
    transform: translateY(0) scale(1.2);
  }
}
body ul li.active > * span.word span.char:before {
  opacity: 1;
}
body ul li.active > * span.word span.char:after {
  background-position: calc(50% - 5px) -200px, calc(50% + 5px) -200px, 50% calc(35px + var(--top));
  transition-delay: 0.5s;
}
body ul li.active > * span.word span.char:before {
  transition-delay: 1.75s;
}
body ul li.active > * span.word span.char:nth-of-type(2n):after {
  transition-delay: 0.55s;
}
body ul li.active > * span.word span.char:nth-of-type(3n):after {
  transition-delay: 0.45s;
}