body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #111, #111, #306);
  color: #fff;
  font-family: Arial, sans-serif;
}

h1 {
  font-size: 5rem;
  margin: 0;
}

h2 {
  font-size: 2.5rem;
  margin: 0;
}

form {
  text-align: center;
}

.player-list {
  background-color: rgb(0, 0, 0, 0.75);
  border: solid 2px #9c0;
  border-radius: 0.25rem;
  box-sizing: border-box;
  color: #ccc;
  display: block;
  field-sizing: content;
  font-family: monospace;
  font-size: 0.833333333333333rem;
  inline-size: 100%;
  margin: 0.5rem auto;
  max-inline-size: 8rem;
  min-block-size: 4rem;
  overflow: hidden;
  padding: 0.5rem;
  resize: none;
}

#start {
  background-color: #9c0;
  border: solid 4px #000;
  border-radius: 2rem;
  box-sizing: border-box;
  color: #111;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem auto;
  padding: 1rem 2rem;
}

/* flying fruit animation */

.scene {
  inset: 0;
  position: fixed;
  overflow: hidden;
  z-index: -1;
}

.fruit {
  position: absolute;
  left: 0;
  top: 0;
  user-select: none;
  pointer-events: none;
  will-change: transform;
  animation-name: fly;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  /* text-shadow:
      0 0 10px rgba(255,255,255,0.3),
      0 0 20px rgba(255,255,255,0.2); */
}

@keyframes fly {
  from {
    transform: translate(var(--start-x), var(--start-y)) rotate(0deg)
      scale(var(--scale));
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  to {
    transform: translate(var(--end-x), var(--end-y)) rotate(var(--rotation))
      scale(var(--scale));
    opacity: 0;
  }
}
