/* ===== Bingo CSS ===== */

.bingo-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}




.bingo-cell {
  background: linear-gradient(135deg, #fff7d6, #fde2f3);
  border-radius: 12px;
  padding: 6px 4px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;

  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  word-break: keep-all;

  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.bingo-cell.bingo-long {
  font-size: 12px;
  line-height: 1.1;
}


.bingo-cell:hover {
  box-shadow: 0 16px 30px rgba(0,0,0,0.2);
}

.bingo-cell:active {
  transform: scale(0.94);
}

.bingo-cell.marked {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  box-shadow: 0 0 0 3px #34d399 inset;
}

.bingo-cell.wrong {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  box-shadow: 0 0 0 3px #f87171 inset;
}

.bingo-cell.marked::after {
  content: "★";
  display: block;
  font-size: 22px;
  color: #065f46;
  margin-top: 6px;
}

.bingo-cell.wrong::after {
  content: "✖";
  display: block;
  font-size: 20px;
  color: #7f1d1d;
  margin-top: 6px;
}

.bingo-cell.bingo-line {
  position: relative;
  overflow: hidden;
}

.bingo-cell.bingo-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -120%;
  width: 240%;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent,
    #fb7185,
    #f472b6,
    #fb7185,
    transparent
  );
  transform: translateY(-50%) rotate(-2deg);
  animation: bingoSweep 2s ease-in-out forwards;
  box-shadow: 0 0 12px rgba(244,114,182,0.9);
  border-radius: 6px;
}

@keyframes bingoSweep {
  from { left: -120%; }
  to { left: 120%; }
}

.bingo-title {
  font-size: 28px;
  font-weight: 900;
  color: #7c3aed;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(124,58,237,0.25);
}

.bingo-instructions {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  background: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.stat-pill {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.bingo-translation {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 4px 8px;
  min-height: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}











@media (max-width: 480px) {
 .bingo-translation {
    font-size: 14px;
  }
  .app {
    padding-bottom: 16px;
  }

  .card {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .bingo-board {
    gap: 6px;
    margin: 14px 0;
  }


#playSoundBtn {
  position: relative;
  font-size: 20px;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #ffffff, #fde7ff, #e061cb);
  color: #111827;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  box-shadow: 0 10px 24px rgba(167,139,250,0.55);
  overflow: hidden;
  animation: magicPulse 2.2s ease-in-out infinite;
}


#playSoundBtn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: magicSpin 3s linear infinite;
}

@keyframes magicPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes magicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


  .topbar-title {
    font-size: 16px;
  }

  .stat-pill {
    font-size: 13px;
    padding: 8px 10px;
  }

  .bingo-instructions {
    font-size: 13px;
  }

  .bingo-cell.bingo-line::before {
    height: 4px;
    box-shadow: 0 0 10px rgba(244,114,182,0.85);
  }
}
