/* styles.css */


html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: 'Poppins', sans-serif;
  height: auto;      /* scroll normal fuera del juego */
  overflow: auto;
}


body.game-active {
  overflow: hidden;
  height: 100svh;
  height: calc(var(--vh) * 100);
}

/* Contenedor Phaser */
#gameContainer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  height: calc(var(--vh) * 100);
  background-color: #202020;
  z-index: 1000;
  overflow: hidden;
}


#gameContainer > canvas {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100% !important;
  height: auto !important;
  max-height: 100%;
  display: block;
}


body.game-active #gameContainer { display: block; }


#mobileControls {
  display: none !important;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1100;
}


.control-button {
  pointer-events: all;
  position: absolute;
  font-size: 20px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border: 2px solid white;
  padding: 10px 30px;
  border-radius: 10px;
  user-select: none;
}
#leftButton  { bottom: 10px; left:  10px; }
#rightButton { bottom: 10px; right: 10px; }
#jumpButton  { bottom: 70px; right: 10px; }

/* Tema ámbar */
.bg-amber-500               { background-color: #FFC107 !important; }
.hover\:bg-amber-600:hover  { background-color: #FFB300 !important; }
.text-amber-400             { color: #FFC107 !important; }


.hidden { display: none !important; }


@media (max-width: 768px) {
  body.game-active #mobileControls {
    display: flex !important;
    justify-content: center;
  }
}
