body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;

  background-image: url("/dayflite_Illust_Full.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* LAYOUT */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* GRID */
.container {
  width: min(90vw, 850px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* CELL */
.cell {
  aspect-ratio: 1 / 1;
  border: 2px solid #00ffcc;
  background: rgba(20, 20, 20, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.cell:hover {
  transform: scale(1.05);
}

.cell span {
  width: 100%;
  text-align: center;

  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;

  line-height: 1.2;

  font-size: clamp(12px, 1.8vw, 18px);
}

.cell.checked {
  background: #00ffcc;
  color: black;
  font-weight: bold;
}

.cell.win {
  background: linear-gradient(135deg, #00ffcc, #00aaff);
  color: black;
  box-shadow: 0 0 20px #00ffcc;
}

/* BUTTONS */
.actions {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  background: #00ffcc;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #00ddb0;
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== BINGO CARD ===== */
#bingoMessage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;
  pointer-events: none;

  opacity: 0;
}

#bingoMessage.show {
  opacity: 1;
}

#bingoMessage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

#bingoMessage .card {
  position: relative;
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #00ffcc;
  border-radius: 20px;
  padding: 40px 60px;

  box-shadow:
    0 0 20px #00ffcc,
    0 0 60px rgba(0,255,204,0.3);

  animation: bingoPop 0.6s ease;
}

#bingoMessage .title {
  font-size: 60px;
  font-weight: bold;
  color: #00ffcc;

  text-shadow:
    0 0 10px #00ffcc,
    0 0 30px #00ffcc,
    0 0 60px #00ffcc;
}

@keyframes bingoPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
