:root {
  --bg: #0b0b0b;
  --neon-x: #39ff14;
  --neon-o: #ff2fd1;
}

body {
  background: radial-gradient(circle at top, #111, var(--bg));
  color: white;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.scoreboard {
  margin-bottom: 15px;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 12px;
}

.cell {
  width: 100px;
  height: 100px;
  background: #050505;
  border-radius: 15px;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cell.x {
  color: var(--neon-x);
  box-shadow: 0 0 25px var(--neon-x);
}

.cell.o {
  color: var(--neon-o);
  box-shadow: 0 0 25px var(--neon-o);
}

.buttons {
  margin-top: 15px;
}

.buttons button {
  padding: 10px 20px;
  background: black;
  color: white;
  border: 1px solid var(--neon-x);
  border-radius: 10px;
  cursor: pointer;
}

.legal {
  margin-top: 10px;
  font-size: 0.8rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.overlay.show {
  visibility: visible;
}

#overlayText {
  font-size: 3rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
}
