@import "https://fonts.googleapis.com/css2?family=Bangers&family=Fredoka:wght@400;600&display=swap";
:root {
  --pop-pink: #ff0099;
  --pop-cyan: #00ffff;
  --pop-yellow: #ffff00;
  --pop-lime: #ccff00;
  --pop-purple: #9900ff;
  --bg-dark: #1a0b2e;
}
* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background-color: var(--bg-dark);
  background-image: radial-gradient(
      circle at 20% 30%,
      #4a005f 0%,
      transparent 20%
    ),
    radial-gradient(circle at 80% 70%, #004a5f 0%, transparent 20%);
  font-family: Fredoka, sans-serif;
  overflow: hidden;
  touch-action: none;
}
h1,
h2,
p {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.menu-container {
  text-align: center;
  background: #ffffff1a;
  padding: 20px;
  border: 4px solid var(--pop-yellow);
  border-radius: 30px;
  box-shadow: 0 0 0 10px #00000080, 0 0 50px var(--pop-pink);
  position: relative;
  backdrop-filter: blur(10px);
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: float 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-container::-webkit-scrollbar {
  display: none;
}
@keyframes float {
  0%,
  to {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
h1 {
  font-family: Bangers, cursive;
  font-size: clamp(2rem, 10vw, 4.5rem);
  color: var(--pop-yellow);
  -webkit-text-stroke: 2px #000;
  text-shadow: 5px 5px 0px var(--pop-purple);
  line-height: 0.9;
  margin-bottom: 10px;
  transform: rotate(-3deg);
  width: 100%;
}
h2 {
  color: var(--pop-cyan);
  font-family: Bangers, cursive;
  font-size: clamp(1rem, 4.5vw, 1.8rem);
  -webkit-text-stroke: 1px #000;
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 1rem;
  width: 100%;
}
.controls-info {
  margin: 10px 0;
  background: #000;
  padding: 15px;
  border-radius: 15px;
  border: 3px dashed var(--pop-lime);
  font-size: clamp(0.8rem, 3.5vw, 1rem);
  text-align: left;
  color: #fff;
  width: 100%;
}
.controls-info p {
  margin: 5px 0;
}
.controls-info strong {
  color: var(--pop-yellow);
  font-family: Bangers, cursive;
  letter-spacing: 1px;
  font-size: 1.1em;
}
.btn {
  background: var(--pop-pink);
  color: #fff;
  border: 4px solid #000;
  border-radius: 50px;
  padding: 10px 0;
  width: 100%;
  font-family: Bangers, cursive;
  font-size: clamp(1.5rem, 5vw, 2rem);
  cursor: pointer;
  transition: 0.1s;
  margin-top: 15px;
  box-shadow: 5px 5px #000;
}
.btn:hover {
  background: var(--pop-lime);
  color: #000;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px #000;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px #000;
}
.game-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111;
}
canvas {
  background: #1a0b2e;
  border-radius: 20px;
  box-shadow: 0 0 50px #00000080;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  object-fit: contain;
  border: 4px solid var(--pop-purple);
}
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
}
.hud-panel {
  font-family: Bangers, cursive;
  font-size: 2.5rem;
  color: #fff;
  -webkit-text-stroke: 1.5px #000;
  text-shadow: 3px 3px 0px var(--pop-purple);
  background: #0009;
  padding: 10px 25px;
  border-radius: 15px;
  border: 3px solid var(--pop-cyan);
  transform: rotate(-2deg);
}
.mobile-controls {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 20;
}
.joystick-zone {
  width: 140px;
  height: 140px;
  border: 4px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: relative;
  pointer-events: auto;
  background: #0003;
  touch-action: none;
}
.joystick-knob {
  width: 60px;
  height: 60px;
  background: var(--pop-cyan);
  border: 3px solid #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 5px 5px #00000080;
}
.action-btn {
  width: 100px;
  height: 100px;
  background: var(--pop-pink);
  border: 4px solid #fff;
  border-radius: 50%;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Bangers, cursive;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px #905;
  transition: 0.1s;
  touch-action: none;
}
.action-btn:active {
  transform: translateY(10px);
  box-shadow: 0 0 #905;
}
@media (hover: hover) and (pointer: fine) {
  .mobile-controls {
    display: none;
  }
}
