* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1a2e;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.game {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #f39c12;
}

.score {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.status {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #e74c3c;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
  aspect-ratio: 1;
}

.cell {
  background: #16213e;
  border: none;
  border-radius: 12px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #f39c12;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 80px;
}

.cell:hover {
  background: #0f3460;
  transform: scale(1.05);
}

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

.cell.x {
  color: #e74c3c;
}

.cell.o {
  color: #3498db;
}

.reset {
  background: #f39c12;
  color: #1a1a2e;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.reset:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  .cell {
    font-size: 2rem;
    min-height: 70px;
  }
}
