/* ── Play layout: Bingo left, Rules right ── */
.play-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

@media (max-width: 900px) {
  .play-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.panel { position: relative; }

/* ── Bingo panel ── */
.login-prompt {
  text-align: center;
  padding: 32px 16px;
}
.login-hint {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--chalk3);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Bingo grid ── */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(180,200,230,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cell:hover {
  background: rgba(100,180,255,0.07);
  border-color: rgba(100,180,255,0.25);
}
.cell:active { transform: scale(0.96); }

.cell.marked {
  background: rgba(58,143,212,0.18);
  border-color: rgba(126,200,240,0.45);
}
.cell.marked .cell-text { opacity: 0.35; }
.cell.marked .x-mark { display: block; }

.cell.bingo-win {
  background: rgba(39,166,108,0.22);
  border-color: rgba(80,216,152,0.55);
  animation: winpulse 0.5s ease;
}

@keyframes winpulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cell-text {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  font-size: clamp(8px, 1.1vw, 11px);
  font-weight: 700;
  color: #dde4ee;
  line-height: 1.2;
  transition: opacity 0.15s;
  word-break: break-word;
  hyphens: auto;
}

.x-mark {
  display: none;
  position: absolute;
  inset: 5px;
  pointer-events: none;
}
.x-mark svg { width: 100%; height: 100%; }

/* Bingo banner */
.bingo-banner {
  display: none;
  text-align: center;
  padding: 12px 0 8px;
  margin-bottom: 14px;
}
.bingo-banner.show { display: block; }

.bingo-banner-text {
  font-family: 'Rye', serif;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--green2);
  letter-spacing: 0.1em;
  text-shadow: 0 0 24px rgba(80,216,152,0.35);
  animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
.bingo-banner-sub {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: var(--chalk3);
  margin-top: 3px;
}

@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Bingo actions */
.bingo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lock-notice {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: var(--chalk3);
  text-align: center;
  opacity: 0.7;
}
.lock-notice span { color: #e08070; }
