/* TETRIS */
.tetris-area {
  display: flex; gap: 18px; justify-content: center; align-items: flex-start;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .tetris-area { flex-direction: column-reverse; align-items: center; }
}
.tetris-painel {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  min-width: 140px;
}
@media (max-width: 720px) {
  .tetris-painel { flex-direction: row; flex-wrap: wrap; min-width: 0; width: 100%; max-width: 320px; align-items: center; }
  .tetris-prox-wrap { flex-basis: 100%; text-align: center; }
}
.tetris-prox-wrap {
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#tetris-proxima {
  display: block; margin: 6px auto;
  background: #0c1d4a;
  border-radius: 6px;
  width: 100px; height: 100px;
}
#tetris-canvas {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  aspect-ratio: 1 / 2;
  background: #0c1d4a;
  border: 3px solid #1e3a8a;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  outline: none;
  touch-action: none;
}
.tetris-touch {
  display: none;
  gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.tetris-touch button {
  width: 56px; height: 48px;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #fff;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
}
.tetris-touch button:active { background: rgba(167, 139, 250, 0.5); }
@media (max-width: 720px) {
  .tetris-touch { display: flex; }
}
