/* Tic-Tac-Toe — 3×3 grid with bold X / O glyphs. */

.ttt-wrap {
  display: flex;
  justify-content: center;
  margin: 28px auto;
  padding: 0 8px;
}
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows:    repeat(3, 1fr);
  width: min(300px, calc(100vw - 32px));
  aspect-ratio: 1;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  border-radius: 8px;
  box-sizing: content-box;
  user-select: none;
}
.ttt-cell {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tahoma', 'Verdana', sans-serif;
  font-size: clamp(40px, 18vw, 80px);
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  color: #111827;
  transition: background 0.1s ease;
}
.ttt-cell:hover { background: #fff; }
.ttt-cell.x { color: #2563eb; }
.ttt-cell.o { color: #dc2626; }
.ttt-cell.win { background: #fde68a; }
.ttt-cell.win.x { color: #1d4ed8; }
.ttt-cell.win.o { color: #b91c1c; }

.ttt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.ttt-overlay.hidden { display: none; }
.ttt-overlay-card {
  background: white;
  color: #222;
  padding: 32px 40px;
  border-radius: 10px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ttt-overlay-card h1 { margin: 0 0 8px;  font-size: 30px; }
.ttt-overlay-card p  { margin: 0 0 20px; font-size: 14px; opacity: 0.85; }
