* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  overflow: hidden;
  background-color: rgb(217, 235, 25);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#nameScreen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Animated background particles effect */
#nameScreen::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(2px 2px at 70% 90%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.nameBox {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 45px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(100, 100, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
  min-width: 360px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nameBox h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nameBox p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  margin-bottom: 30px;
}

.nameBox input {
  padding: 14px 20px;
  margin: 10px 0 20px 0;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
}

.nameBox input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.nameBox input:focus {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.nameBox button {
  padding: 14px 40px;
  cursor: pointer;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #6366f1, #3b82f6);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.nameBox button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #818cf8, #60a5fa);
}

.nameBox button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Shimmer effect on button */
.nameBox button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}

/* Decorative glow ring */
.nameBox::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.3),
    transparent,
    rgba(96, 165, 250, 0.3)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.nameBox:hover::before {
  opacity: 1;
}
