/* tetris.css — Ajustes propios del TETRIS por encima del style.css compartido
   (que es una copia del CSS del CHALLENGE, para mantener la misma estética). */

/* El puntaje arriba es más chico que en el flappy: el tablero necesita el centro
   de la pantalla y los puntajes del tetris tienen muchos dígitos. */
#hud { justify-content: center; text-align: center; }
#scoreHud {
  font-size: clamp(26px, 7vw, 44px);
}
#statsHud {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  margin-top: 2px;
}
html[data-theme="light"] #statsHud { color: rgba(11, 18, 32, .65); }

/* ── Botones táctiles (solo en pantallas táctiles, solo jugando) ── */
#touchControls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  pointer-events: none;
}
#touchControls.playing { display: flex; }
/* En PC (mouse) no hacen falta: está el teclado. */
@media (hover: hover) and (pointer: fine) {
  #touchControls.playing { display: none; }
}

.tc-group { display: flex; gap: 10px; pointer-events: auto; }

.tc-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--panel-bd);
  background: var(--panel); color: var(--text);
  font-size: 24px; font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tc-btn:active { transform: scale(.9); background: var(--accent); color: #fff; }

.tc-rotate, .tc-drop {
  width: 64px; height: 64px; font-size: 28px;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(34, 197, 94, .35);
}

/* Los controles rápidos (tema/sonido) suben para no chocar con los botones táctiles */
@media (hover: none) and (pointer: coarse) {
  #quickControls { bottom: auto; top: 64px; right: 10px; flex-direction: column; }
}
