/* CONECTA 4 */
.c4-main {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 50px 24px 80px;
  text-align: center;
}
.c4-cabecalho { margin-bottom: 24px; }
.c4-titulo {
  font-family: "Poppins", sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15;
  margin: 18px 0 0; color: #fff;
}
.c4-titulo em {
  font-family: "Lora", serif; font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, #f87171, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c4-controles {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  margin-bottom: 22px;
}
.c4-modo-grupo {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 4px;
}
.c4-modo-btn {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.85rem;
  background: transparent; color: #cbc4d9; border: 0; padding: 8px 14px;
  border-radius: 7px; cursor: pointer;
}
.c4-modo-btn.ativa {
  background: linear-gradient(120deg, #f87171, #fbbf24);
  color: #1a1230;
}
.c4-status {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: #fff;
  min-height: 1.5em;
}
.c4-status.vit-r { color: #f87171; }
.c4-status.vit-y { color: #fbbf24; }
.c4-status.empate { color: #cbc4d9; }
.c4-tabuleiro {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%; max-width: 480px;
  aspect-ratio: 7 / 6;
  margin: 0 auto 22px;
  background: #1e3a8a;
  border: 4px solid #1e40af;
  border-radius: 12px;
  padding: 8px; gap: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.c4-coluna {
  display: grid; grid-template-rows: repeat(6, 1fr);
  gap: 6px; cursor: pointer;
  position: relative;
}
.c4-coluna:hover .c4-celula:not(.r):not(.y):first-child::after {
  content: '⬇';
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
}
.c4-celula {
  background: #0c1d4a;
  border-radius: 50%;
  width: 100%; aspect-ratio: 1/1;
  position: relative;
}
.c4-celula.r {
  background: radial-gradient(circle at 35% 30%, #fca5a5, #b91c1c 70%);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.35);
}
.c4-celula.y {
  background: radial-gradient(circle at 35% 30%, #fde68a, #b45309 70%);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.35);
}
.c4-celula.r.vencedora,
.c4-celula.y.vencedora {
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.35),
              0 0 0 3px #fff,
              0 0 18px rgba(255,255,255,0.5);
  animation: c4Vence 0.6s ease-in-out 2;
}
@keyframes c4Vence {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.c4-celula.cair { animation: c4Cair 0.4s ease-out; }
@keyframes c4Cair {
  from { transform: translateY(-280px); }
  to   { transform: translateY(0); }
}
