* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #2a1246 0%, #170a2e 45%, #0c0620 100%);
  color: #f3e9ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap {
  text-align: center;
  padding: 2rem;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.05em;
}
.brand .dot {
  color: #ff7a45;
}
h2 {
  margin-top: 0;
  font-weight: 400;
  color: #c9a8ec;
}
.mode-select {
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  color: #c9a8ec;
  font-size: 0.95rem;
}
.mode-select label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
#status {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  min-height: 1.5em;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  grid-template-rows: repeat(3, 90px);
  gap: 8px;
  margin: 0 auto 1.5rem;
}
.cell {
  background: #1f0f38;
  border: 2px solid #4a2a70;
  border-radius: 8px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f3e9ff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cell:hover:not(:disabled) {
  background: #2b1650;
}
.cell:disabled {
  cursor: default;
}
.cell.x { color: #ff7a45; }
.cell.o { color: #00e0d6; }
.cell.win {
  background: #452074;
  border-color: #ff7a45;
}
#reset {
  background: linear-gradient(135deg, #ff7a45, #ff477e);
  color: #170a2e;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.2rem;
}
#reset:hover {
  filter: brightness(0.9);
}
.score {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  color: #c9a8ec;
  font-size: 0.95rem;
}
