:root {
  --bgColor: #ccc;
}

body, html {
  height: 100dvh;
  margin: 0;
  padding: 0;
  
}

body {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shrinkIn 1s cubic-bezier(0,.36,.35,1) 1 forwards;
  transform-origin: center;
  cursor: pointer;
}

#fun-frame {
  animation: borderReveal 1s cubic-bezier(0,.36,.35,1) 1 forwards;
  box-shadow: inset 0 0 0 1rem #fff;
  z-index: 1;
}

h1 {
  will-change: unset;
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(4rem, 7vw + 1rem, 8rem);
  color: #FFF;
  user-select: none;
  filter: drop-shadow(rgba(0, 0, 0, 0.2) 0 0 10px);
}

.title {
}

.bg-color {
  background-color: var(--bgColor);
}

.wobbleText > span {
  display: inline-block;
}

#flare-field {
}

.flare {
  position: fixed;
  aspect-ratio: 1;
  translate: -50% -50%;
  animation: 10s ease-out 0s 1 both bloom;
  border-radius: 50% 50%;
  transform-origin: center;
  mix-blend-mode: hard-light;
}

.full-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.barber-pole {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.4) 1rem,
    rgba(255, 255, 255, 0) 1rem,
    rgba(255, 255, 255, 0) 2rem
  );
  background-size: calc(2rem * sqrt(2)), calc(2rem * sqrt(2));
  animation: scroll-stripes 1s linear infinite;
}

@keyframes wobble {
  0% {
    transform: rotate(0turn) translate(5%) rotate(1turn);
  }
  25% {
    transform: rotate(.25turn) translate(5%) rotate(.74turn); 
  }
  75% {
    transform: rotate(.75turn) translate(5%) rotate(.26turn);
  }
  100% {
    transform: rotate(1turn) translate(5%) rotate(0turn);
  }
}

@keyframes scroll-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(2rem * sqrt(2)), calc(2rem * sqrt(2));
  }
}

@keyframes borderReveal {
  from {
    box-shadow: inset 0 0 0 min(50dvw, 50dvh) #fff;
  }
  to {
    box-shadow: inset 0 0 0 1rem #fff;
  }
}

@keyframes shrinkIn {
  from {
    transform: scale(120%);
  }
  to {
    transform: none;
  }
}