
  body {
    margin: 0;
    font-family: sans-serif;
    background: #111;
    color: white;
  }

  .container {
    max-width: 500px;
    margin: auto;
    padding: 10px;
  }

  .bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

.cell {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 6px;

  /* KEY FIX: prevents layout shift */
  box-sizing: border-box;
  overflow: hidden;

  /* TEXT CONTROL */
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;

  /* RESPONSIVE FONT (VERY IMPORTANT) */
  font-size: clamp(9px, 2vw, 14px);
  line-height: 1.1;

  border-radius: 10px;
  background: #eee;
  color: #222;

  cursor: pointer;
  user-select: none;
}

  .cell.active {
    background: #ff0000;
    color: white;
  }

  .cell.free {
    background: #ff0000;
    font-weight: bold;
  }

  .status {
    text-align: center;
    margin-top: 15px;
    font-size: 20px;
    letter-spacing: 5px;
  }

.winner-box,
.instructions {
    margin-top: 25px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}

.winner-box a {
    color: gold;
    text-decoration: none;
}

.instructions h2 {
    color: gold;
    margin-top: 20px;
}

@media (max-width: 480px) {
  .cell {
    font-size: clamp(8px, 3.2vw, 12px);
    padding: 4px;
  }
}
@media print {

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .bingo-grid {
    gap: 4px;
  }

  .cell {
    background: white !important;
    color: black !important;
    border: 2px solid black;
  }

  .cell.active,
  .cell.free {
    background: #d9d9d9 !important;
    color: black !important;
  }

  .winner-box,
  .instructions {
    background: white !important;
    color: black !important;
    border: 1px solid black;
  }

  .instructions h2,
  .winner-box a {
    color: black !important;
  }

}