body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e1e1e 0%, #000000 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
}
#game-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}
.hidden {
  display: none !important;
}
.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin-bottom: 10rem;
}
.game-logo-title {
  max-width: 100%;
  width: 85%;
  height: auto;
  display: block;
}
.splash-text {
  position: absolute;
  bottom: -3rem;
  right: 1rem;
  transform: rotate(-15deg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: #FFD700;
  text-shadow: 2px 2px 0px #000, 0 0 10px rgba(255, 215, 0, 0.5);
  animation: splashPulse 0.5s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
}

@keyframes splashPulse {
  0% {
    transform: rotate(-15deg) scale(0.92);
  }
  100% {
    transform: rotate(-15deg) scale(1.08);
  }
}
.score-display {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #fff;
  z-index: 5;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.lives-display {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #E62272;
  z-index: 5;
}
.game-btn {
  background: #E62272;
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.game-btn:hover {
  background: #c21a5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 34, 114, 0.4);
}
.game-btn:active {
  transform: translateY(0);
}
.game-over-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: #ff3333;
  margin-bottom: 1rem;
}
.final-score {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.name-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  border-radius: 8px;
  outline: none;
  width: 250px;
}
.name-input:focus {
  border-color: #E62272;
  box-shadow: 0 0 10px rgba(230, 34, 114, 0.2);
}
.leaderboard-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  width: 400px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Hide scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.leaderboard-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.leaderboard-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #E62272;
  text-align: center;
}
.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.leaderboard-item:last-child {
  border-bottom: none;
}
.leaderboard-item .rank {
  color: #E62272;
  font-weight: bold;
  width: 30px;
}
.leaderboard-item .name {
  flex: 1;
  font-weight: 500;
}
.leaderboard-item .score {
  font-weight: bold;
}
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.back-btn:hover {
  opacity: 1;
}

/* Preload images to avoid delay */
#preload { display: none; }
