body {
  text-align: center;
  background: linear-gradient(270deg, #0f0c29, #1c193b, #24243e, #060b11);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0.5rem;
  overflow: scroll;
  font-family: 'Orbitron', sans-serif;
  color: #e0e1dd;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
  opacity: 0.8;
  z-index: -1;
}

h1 {
  font-size: clamp(1.8rem, 8vw, 3rem);
  color: #00f7ff;
  text-shadow: 0 0 8px #00f7ff, 0 0 15px #DA0463;
  font-family: 'Orbitron', sans-serif;
  margin: clamp(0.8rem, 4vw, 1.2rem) 0;
  animation: neonStaticGlow 2s ease-in-out infinite alternate;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

footer {
  color: #e0e1dd;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.8rem, 3vw, 1rem);
  margin-top: clamp(0.8rem, 3vw, 1.2rem);
  text-shadow: 0 0 6px #00f7ff;
  padding: 0.6rem;
  background: rgba(27, 38, 59, 0.6);
  border-radius: 10px;
  position: relative;
  animation: fadeInUp 1s ease-in-out;
  z-index: 1;
}
footer::after {
  content: 'Designed by Amit Pandey';
  display: block;
  font-size: clamp(0.6rem, 2.5vw, 0.8rem);
  color: #ff00ff;
  text-shadow: 0 0 4px #ff00ff;
  margin-top: 0.4rem;
  letter-spacing: 1.5px;
}

.set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(80px, 22vw, 110px), 1fr));
  gap: clamp(0.6rem, 2.5vw, 1.2rem);
  max-width: 98%;
  margin: clamp(1%, 4vw, 2%) auto;
  padding: clamp(0.5rem, 2vw, 1rem);
  background: rgba(27, 38, 59, 0.7);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
  position: relative;
  z-index: 1;
}

.drum {
  outline: none;
  border: clamp(3px, 1.2vw, 5px) solid #00f7ff;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #DA0463;
  text-shadow: 0 0 6px #DA0463;
  border-radius: clamp(12px, 3.5vw, 18px);
  width: clamp(80px, 22vw, 110px);
  height: clamp(80px, 22vw, 110px);
  text-align: center;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.45));
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.7);
  touch-action: manipulation;
}

.drum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 247, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drum:hover::before,
.drum:active::before {
  opacity: 1;
}

.drum:hover,
.drum:active {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 247, 255, 0.9), 0 0 40px rgba(218, 4, 99, 0.6);
  border-color: #ff00ff;
}

.w.pressed {
  transform: scale(0.95) rotate(5deg);
  box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00, inset 0 0 15px rgba(0, 255, 0, 0.6);
  background: linear-gradient(45deg, #00ff00, #00f7ff);
  color: #fff;
  animation: kickPulse 0.3s ease;
}

.a.pressed {
  transform: scale(0.97) translateX(5px);
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, inset 0 0 15px rgba(255, 0, 255, 0.6);
  background: linear-gradient(45deg, #ff00ff, #DA0463);
  color: #fff;
  animation: snareShake 0.2s ease;
}

.s.pressed {
  transform: scale(0.9);
  box-shadow: 0 0 25px #ffff00, 0 0 50px #ffff00, inset 0 0 15px rgba(255, 255, 0, 0.6);
  background: linear-gradient(45deg, #ffff00, #00f7ff);
  color: #fff;
  animation: crashFlash 0.25s ease;
}

.d.pressed {
  transform: scale(0.95) rotate(-5deg);
  box-shadow: 0 0 20px #ff4500, 0 0 40px #ff4500, inset 0 0 15px rgba(255, 69, 0, 0.6);
  background: linear-gradient(45deg, #ff4500, #DA0463);
  color: #fff;
  animation: tom1Bounce 0.3s ease;
}

.j.pressed {
  transform: scale(0.97) translateY(-5px);
  box-shadow: 0 0 20px #00b7eb, 0 0 40px #00b7eb, inset 0 0 15px rgba(0, 183, 235, 0.6);
  background: linear-gradient(45deg, #00b7eb, #00f7ff);
  color: #fff;
  animation: tom2Wave 0.25s ease;
}

.k.pressed {
  transform: scale(0.95) rotate(3deg);
  box-shadow: 0 0 20px #ff1493, 0 0 40px #ff1493, inset 0 0 15px rgba(255, 20, 147, 0.6);
  background: linear-gradient(45deg, #ff1493, #ff00ff);
  color: #fff;
  animation: tom3Spin 0.3s ease;
}

.l.pressed {
  transform: scale(0.97) translateX(-5px);
  box-shadow: 0 0 20px #00fa9a, 0 0 40px #00fa9a, inset 0 0 15px rgba(0, 250, 154, 0.6);
  background: linear-gradient(45deg, #00fa9a, #00ff00);
  color: #fff;
  animation: tom4Glow 0.25s ease;
}

.game-over {
  background: linear-gradient(45deg, #ff0000, #b30000);
  opacity: 0.9;
  animation: glitch 0.4s ease-in-out;
}

.w { background-image: url('images/kick.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.a { background-image: url('images/snare.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.s { background-image: url('images/crash.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.d { background-image: url('images/tom1.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.j { background-image: url('images/tom2.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.k { background-image: url('images/tom3.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.l { background-image: url('images/tom4.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }

.red {
  color: #ff3333;
  text-shadow: 0 0 6px rgba(255, 51, 51, 0.8);
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sparkle {
  from { transform: translateY(0px); }
  to { transform: translateY(-200px); }
}

@keyframes neonStaticGlow {
  from { text-shadow: 0 0 8px #00f7ff, 0 0 15px #00f7ff, 0 0 25px #DA0463; }
  to { text-shadow: 0 0 12px #00f7ff, 0 0 20px #00f7ff, 0 0 30px #DA0463; }
}

@keyframes kickPulse {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(0.95) rotate(5deg); }
}

@keyframes snareShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(8px); }
  50% { transform: translateX(-8px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(5px); }
}

@keyframes crashFlash {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(0.9); opacity: 1; }
}

@keyframes tom1Bounce {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.9) rotate(-7deg); }
  100% { transform: scale(0.95) rotate(-5deg); }
}

@keyframes tom2Wave {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(-5px); }
}

@keyframes tom3Spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(0.95) rotate(3deg); }
}

@keyframes tom4Glow {
  0% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-8px); opacity: 0.8; }
  100% { transform: translateX(-5px); opacity: 1; }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 0); }
  80% { transform: translate(3px, 0); }
  100% { transform: translate(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: clamp(1.6rem, 7vw, 2.8rem);
  }

  .set {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-width: 95%;
    padding: 1rem;
  }

  .drum {
    width: clamp(100px, 45vw, 160px);
    height: clamp(100px, 45vw, 160px);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    border-width: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin: 0.7rem 0;
  }

  .set {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-width: 95%;
    padding: 0.8rem;
  }

  .drum {
    width: clamp(100px, 45vw, 140px);
    height: clamp(100px, 45vw, 140px);
    font-size: clamp(1.5rem, 4.8vw, 2.3rem);
    border-width: 3px;
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    margin: 0.5rem 0;
  }

  .set {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    max-width: 95%;
    padding: 0.6rem;
  }

  .drum {
    width: clamp(90px, 45vw, 130px);
    height: clamp(90px, 45vw, 130px);
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    border-width: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.8);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  footer {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    padding: 0.4rem;
  }
  footer::after {
    font-size: clamp(0.5rem, 2vw, 0.7rem);
    letter-spacing: 1px;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  body {
    padding: 0.3rem;
  }

  h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin: 0.4rem 0;
  }

  .set {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 90%;
    padding: 0.5rem;
  }

  .drum {
    width: clamp(80px, 22vw, 120px);
    height: clamp(80px, 22vw, 120px);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    border-width: 3px;
    border-radius: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0 8px rgba(0, 247, 255, 0.8);
  }

  footer {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    padding: 0.3rem;
    margin-top: 0.5rem;
  }
  footer::after {
    font-size: clamp(0.5rem, 1.5vw, 0.7rem);
    letter-spacing: 1px;
  }
}

@media (min-width: 1440px) {
  h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .drum {
    width: clamp(110px, 10vw, 140px);
    height: clamp(110px, 10vw, 140px);
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    border-width: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .set {
    max-width: 1000px;
    gap: 1.5rem;
  }
}
