h1 { color: #2196f3; }

.mode-btn.active { background: #2196f3; color: #fff; }

.scores {
  display: flex;
  gap: 24px;
  margin: 10px 0 14px;
  font-size: 0.95rem;
  color: #aaa;
  flex-wrap: wrap;
  justify-content: center;
}
.scores span b { color: #fff; font-size: 1.2rem; }

.status {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  margin-bottom: 16px;
  color: #aaa;
  min-height: 28px;
  text-align: center;
  padding: 0 12px;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: min(360px, 90vw);
  height: min(360px, 90vw);
}

.cell {
  background: #111127;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 8vw, 3rem);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid #ffffff0a;
}
.cell:hover:not(.taken) { background: #1a1a38; transform: scale(1.04); }
.cell.x  { color: #e91e63; text-shadow: 0 0 20px #e91e6388; }
.cell.o  { color: #2196f3; text-shadow: 0 0 20px #2196f388; }
.cell.win { background: #ffffff12; border-color: #ffd600; }

button.reset {
  margin-top: 16px;
  background: #2196f3;
  color: #fff;
}

@media (max-width: 420px) {
  .board { gap: 6px; }
  .cell { border-radius: 8px; }
}
