:root{
  --neon1:#00f5ff;
  --neon2:#ff00ff;
  --neon3:#00ff85;
  --ink:#0ff;
  --bg1:#0a0a12;
}

/* Fix alto real de vh en móviles */
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg1);
  overflow: hidden;
}

/* Fondo animado estilo neón */
.neon-bg {
  position: fixed;
  inset: -50% -50%;
  background: radial-gradient(60vmax 60vmax at 20% 20%, rgba(0,255,255,.08), transparent 60%),
              radial-gradient(50vmax 50vmax at 80% 10%, rgba(255,0,255,.08), transparent 60%),
              radial-gradient(70vmax 70vmax at 50% 90%, rgba(0,255,133,.08), transparent 60%),
              linear-gradient(180deg, #06060b 0%, #0a0a12 100%);
  filter: blur(0.2px);
  z-index: -2;
  animation: floatBg 28s linear infinite alternate;
}
@keyframes floatBg {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.02); }
}

/* Título */
.game-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(0,255,255,.6), 0 0 28px rgba(255,0,255,.25);
}
.game-title span {
  color: var(--neon2);
}

/* HUD */
.hud-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: .25rem .75rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 16px rgba(0,255,255,.12) inset;
}
.hud-pill small { color: #b6e8ff; display:block; line-height: 1; }
.hud-pill strong { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; }

.glow { box-shadow: 0 0 18px rgba(0,255,255,.25), 0 0 2px rgba(255,255,255,.35) inset; }

/* Layout juego */
.game-wrap {
  height: calc(100dvh - 140px); /* header + footer aproximado */
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 768px){
  .game-wrap { height: calc(100dvh - 120px); }
}

/* área de juego sin padding interno (evita confusiones de medida) */
.game-area {
  position: relative;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(1200px 400px at 50% 105%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,255,255,.12) inset, 0 0 60px rgba(255,0,255,.1) inset;
}

/* burbujas: avisamos al navegador que solo cambia transform */
.bubble {
  position: absolute;
  left: 0;
  top: -60px;
  translate: -50% 0;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10, 18, 24, 0.55);
  color: #e9feff;
  text-shadow: 0 0 6px rgba(0,255,255,.6), 0 0 20px rgba(255,0,255,.35);
  box-shadow:
    0 0 16px rgba(0,255,255,.25),
    0 0 36px rgba(255,0,255,.15) inset,
    0 0 0 2px rgba(255,255,255,.06) inset;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.bubble::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px dashed rgba(0,255,255,.2);
  filter: blur(1px);
}

/* Explosión */
.pop {
  animation: pop 180ms ease-out forwards;
}
@keyframes pop {
  to {
    transform: scale(1.25);
    opacity: 0;
    filter: blur(2px);
  }
}

/* Input inferior */
.neon-input .input-group-text {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.neon-input input {
  border: 1px solid rgba(0,255,255,.35);
  background: rgba(9,15,20,.7);
  color: #dffcff;
  text-shadow: 0 0 6px rgba(0,255,255,.35);
  outline: none;
  box-shadow: 0 0 12px rgba(0,255,255,.12) inset;
}
.neon-input input::placeholder { color: #97cdda; }
.neon-input .btn {
  border-color: rgba(255,255,255,.2);
}

/* Modal */
.neon-modal {
  background: rgba(9,15,20,.92);
  color: #e7fbff;
  box-shadow: 0 0 40px rgba(255,0,255,.2), 0 0 24px rgba(0,255,255,.25) inset;
  border: 1px solid rgba(255,255,255,.15);
}
/* margen de seguridad visual: evita que toquen el borde borroso */
