/* === Synthwave Snake UI Styles === */

body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', cursive;
  background-color: #0a001f;
  color: #fff;
  overflow: hidden;
}

.gif-background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.gif-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hidden {
  display: none;
}

.glass-container {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border: 2px solid #ff00ff;
  border-radius: 16px;
  box-shadow: 0 0 20px #ff00ff, inset 0 0 30px #00ffff;
  text-align: center;
  backdrop-filter: blur(5px);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

p.intro, p.tutorial, p.footer-version {
  font-size: 0.6rem;
  margin-bottom: 1rem;
  color: #ddd;
}

.legend-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.legend-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.55rem;
}

.volume-controls {
  margin: 1rem 0;
}

.volume-label {
  font-size: 0.5rem;
  margin: 0.25rem 0;
}

.volume-meter {
  display: flex;
  gap: 3px;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.volume-square {
  width: 12px;
  height: 20px;
  background: #333;
  border: 1px solid #666;
  cursor: pointer;
}

.volume-square.filled {
  background: #00ffff;
}

.synth-button {
  font-size: 0.8rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  color: white;
  text-shadow: 0 0 5px #000;
  box-shadow: 0 0 15px #ff00ff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.synth-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff00cc, 0 0 35px #3333ff;
}

#game-canvas {
  border: 2px solid #ff00ff;
  box-shadow: 0 0 15px #ff00ff;
  background: #000;
  image-rendering: pixelated;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.2);          /* Fondo translúcido */
  backdrop-filter: blur(8px);             /* Desenfoque del fondo */
}

.score-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.score-container canvas {
  background: #111;
  border: 0px solid #888;
}

.version {
  color: #00ffff;
  font-size: 0.6rem;
  margin-left: 0.5rem;
}
