* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "Roboto Mono", monospace;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120,219,255,0.2) 0%, transparent 50%);
  animation: bgShift 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgShift {
  0% { transform: translateX(-10px) translateY(-5px); }
  100% { transform: translateX(10px) translateY(5px); }
}

canvas {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

.ui-container {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  pointer-events: auto;
  justify-content: center;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.control-btn.active {
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  border: none;
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.stats {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.stats:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .control-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .stats {
    font-size: 0.7rem;
    padding: 0.6rem 0.8rem;
    right: 0.5rem;
    top: 0.5rem;
  }

  .ui-container {
    bottom: 1rem;
    padding: 0 1rem;
  }

  .controls {
    gap: 0.5rem;
  }
}