/* Tiro al vuelo · estilos propios (el resto viene de ../style.css) */

#bg, #gl, #fx { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; height: 100dvh; }
#bg, #gl { pointer-events: none; }
#fx { touch-action: none; }
body.pointer #fx { cursor: none; }

.how { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.how span { display: inline-block; width: 22px; }

/* ───────── Marcador ───────── */
.hud {
  position: fixed; z-index: 5;
  top: calc(14px + var(--safe-t)); left: calc(18px + var(--safe-l)); right: calc(16px + var(--safe-r));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(-6px); transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
body.ingame .hud { opacity: 1; transform: none; }
body.ingame .hud .btn { pointer-events: auto; }
.hud-score { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.combo { margin-left: 10px; font-size: 16px; font-weight: 700; color: #ffd93b; }
.hud-time { font-size: 30px; font-weight: 250; font-variant-numeric: tabular-nums; }
.hud-time.low { color: #ff6b7d; font-weight: 500; }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.tank {
  width: 110px; height: 12px; border-radius: 999px; overflow: hidden; margin-right: 6px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .08);
}
.tank-fill { height: 100%; background: linear-gradient(90deg, #2f8bff, #8ff6ff); transform-origin: left center; }
.tank.empty .tank-fill { background: #ff6b7d; }

/* ───────── Mensajes ───────── */
.count {
  position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none;
  font-size: min(30vw, 220px); font-weight: 200; color: rgba(255, 255, 255, .95);
  text-shadow: 0 0 40px rgba(130, 225, 255, .5); font-variant-numeric: tabular-nums;
}
.count:empty { display: none; }
.count span { animation: countPop .9s ease-out both; }
@keyframes countPop { from { transform: scale(1.4); opacity: 0; } 20% { opacity: 1; } to { transform: scale(.9); opacity: .2; } }

.label {
  position: fixed; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, 0);
  max-width: min(420px, calc(100vw - 40px)); padding: 8px 14px; border-radius: 14px; text-align: center;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  background: rgba(10, 10, 16, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
}
.label:empty { display: none; }

.game-hint {
  position: fixed; z-index: 6; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%);
  font-size: 14px; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  pointer-events: none; white-space: nowrap;
}

/* ───────── Resultados ───────── */
.results {
  position: fixed; z-index: 7; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px)); padding: 18px 20px 14px; border-radius: 22px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.results h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.res-score { margin: 4px 0 2px; font-size: 52px; font-weight: 250; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.res-record { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.res-record.new { color: #ffd93b; font-weight: 600; }
.res-stats { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; }
.results .fine { margin-top: 10px; }

@media (max-width: 760px) {
  .hud { left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); gap: 8px; }
  .hud-score, .hud-time { font-size: 24px; }
  .tank { width: 64px; margin-right: 2px; }
  .res-score { font-size: 44px; }
}
