* {
  box-sizing: border-box;
}

body {
  background-color: #444;
  display: flex;
  font-family: sans-serif;
  margin: 0;
}

h1 {
  color: #fff;
  font-size: 15vw;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  line-height: 0.9;
  margin: 0;
  opacity: 0.1;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 1s ease-out;
  z-index: 1;
}

.chewy-regular {
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-style: normal;
}

main {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}

#game-area {
  background-color: #4b9d00;
  background-image: radial-gradient(circle, #4b9d00, #297b00);
  block-size: calc(100vh - 10vmin - 4px);
  border: 2px solid #222;
  box-shadow: 0 0 0.25rem #000 inset;
  margin: 5vmin;
  position: relative;
}

.player {
  animation: fade-in 3s ease-out;
  border-radius: 50%;
  font-size: 2rem;
  position: absolute;
  transition: all 0.2s ease-out;
  z-index: 2;

  &.it {
    background-color: #c00;
    padding: 0.5rem;
  }
}

.emoji {
  aspect-ratio: 1 / 1;
  transition: all 1s ease-out;
}

.name {
  color: white;
  font-size: 0.75rem;
  inset-block-start: -0.667rem;
  inset-inline-start: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.player .name {
  color: white;
}

.message {
  animation: fade-in 3s ease-out, blink 10s ease-out 3s infinite;
  color: #fff;
  font-size: 10vw;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  line-height: 0.9;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.countdown {
  animation: fade-and-shrink 1s infinite linear;
  color: #fff;
  filter: drop-shadow(0 0 2px #000);
  font-size: 4rem;
  text-align: center;
}
