canvas {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: block;
}

.overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  background: linear-gradient(135deg, #1a1a2ef2 0%, #16213ef2 100%);
  padding: 50px 60px;
  border-radius: 20px;
  z-index: 1000;
  border: 2px solid #4ade804d;
  box-shadow: 0 20px 60px #000c, inset 0 1px #ffffff1a;
  backdrop-filter: blur(10px);
  max-width: 90%;
  animation: .4s cubic-bezier(.34, 1.56, .64, 1) slideIn;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%)scale(.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%)scale(1);
  }
}

.overlay.hidden {
  display: none;
}

.title {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px #4ade804d;
  letter-spacing: 2px;
  margin: 0;
}

.instructions {
  font-size: 18px;
  color: #d0d0d0;
  text-align: center;
  line-height: 1.9;
  max-width: 550px;
  font-weight: 500;
}

.instructions strong {
  color: #4ade80;
  font-weight: 700;
}

.stats {
  font-size: 16px;
  color: #a0a0a0;
  text-align: center;
  line-height: 1.8;
  background: #4ade800d;
  padding: 15px 25px;
  border-radius: 12px;
  border-left: 3px solid #4ade80;
  min-width: 250px;
}

.stats span {
  color: #4ade80;
  font-weight: 700;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff3;
  transition: left .3s;
  z-index: -1;
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #4ade8066;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-start {
  padding: 14px 40px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #000;
  box-shadow: 0 8px 20px #4ade804d;
}

.btn-start:hover {
  box-shadow: 0 15px 35px #4ade8080;
}

.btn-restart {
  padding: 12px 35px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 20px #3b82f64d;
}

.btn-restart:hover {
  box-shadow: 0 15px 35px #3b82f680;
}
