/* Cofre 500 - estilos complementares ao Tailwind (CDN) */

html, body {
  overscroll-behavior-y: contain;
}

#grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
@media (min-width: 420px) {
  #grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  #grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  #grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
}

.celula {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid #1f2637;
  background-color: #131826;
  color: #cbd5e1;
  transition: transform 0.15s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.celula:active {
  transform: scale(0.92);
}

.celula.disponivel:hover {
  border-color: #334155;
  background-color: #1a2133;
}

.celula.aguardando {
  background-color: rgba(250, 204, 21, 0.18);
  border-color: #facc15;
  color: #fde68a;
  animation: pulse-gold 1.6s ease-in-out infinite;
  cursor: default;
}

.celula.pago {
  background-color: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #6ee7b7;
  cursor: default;
}

.celula.pago-animando {
  animation: vitoria-bounce 0.6s ease;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
}

@keyframes vitoria-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
  animation: slide-up 0.25s ease-out;
}

#toast-vitoria.mostrar {
  display: block;
  animation: toast-in-out 2.8s ease forwards;
}
@keyframes toast-in-out {
  0% { opacity: 0; transform: translate(-50%, -12px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -12px); }
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #1f2637;
  border-radius: 4px;
}
