/* styles.css */
:root {
  --cell-size: 72px;
  --gap: 10px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background: #000000;
  color: #e2e8f0;
}

.container { width: min(480px, 92vw); }

h1 { margin: 16px 0 20px; font-weight: 700; font-size: 1.25rem; }

.grid {
  display: grid;
  gap: var(--gap);
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.cell {
  width: 100%;
  height: var(--cell-size);
  text-align: center;
  font-size: 1.25rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #1d1d1d;
  border-radius: 10px;
  cursor: pointer;
}

.cell:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.cell:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

#resetgame {
  padding: 10px 16px;
  border-radius: 10px;
  background: #60a5fa;
  color: #0b1220;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

#resetgame:hover { background: #93c5fd; }
#resetgame:active { background: #bfdbfe; }
