/* Touch-first adjustments */

/* Attract screen background image (se setea también por JS como fallback) */
#attract-screen {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mantiene el overlay/gradiente existente si lo hay */
/* #attract-screen::before {
  pointer-events: none;
} */


/* Permite que Pointer Events funcionen sin scroll/zoom accidental */
html,
body {
  touch-action: none;
  overscroll-behavior: none;
}

/* Oculta el cursor custom en todas las plataformas */
#cursor {
  display: none !important;
}

/* Restaura cursor normal del sistema */
html,
body {
  cursor: auto;
}

/* Feedback visual rápido al tap */
.tap-feedback {
  position: fixed;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 999;
  animation: tapPop 280ms ease-out forwards;
}
@keyframes tapPop {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Fuerza a ocultar cualquier barra de vida que exista en el DOM */
.bug-bar,
.bug-bar-inner {
  display: none !important;
}

/* Bugs (sprites por imagen) */
.bug {
  position: absolute;
  transform: translate(-50%, -50%);
  will-change: transform, left, top, opacity;
  z-index: 10;
  pointer-events: auto;

  /* Animación de aparición */
  opacity: 0;
  animation: bugPop 260ms ease-out forwards;
}

@keyframes bugPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.bug img {
  display: block;
  width: clamp(48px, 7vw, 110px);
  height: auto;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* el click/tap lo maneja el contenedor .bug */
}

/* Golden: un poco más brillante */
.bug.golden img {
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.65)) saturate(1.15);
}

/* Butterfly: un pelín más grande */
.bug.butterfly img {
  width: clamp(56px, 8vw, 130px);
}
