.ttt-game-wrapper {
  text-align: center;
  padding: 20px;
}

.ttt-ui {
  max-width: 650px;
  margin: auto;
}

.ttt-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}

.game-area {
  position: relative;
  display: flex;
  justify-content: center;
}

#board {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  background: #0f0f18;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.25);
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  background: #1f1f2f;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cell:hover {
  background: #7c4dff;
}

.start-screen,
.game-over,
.pause-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 14px;
}

.game-over,
.pause-screen {
  display: none;
}

/* buttons */

.ttt-btn {
  padding: 12px 26px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin: 8px;
  transition: all 0.2s ease;
}

.ttt-btn.primary {
  background: #7c4dff;
  color: white;
}

.ttt-btn.primary:hover {
  background: #6a3dff;
  transform: translateY(-1px);
}

.ttt-btn.secondary {
  background: #1f1f2f;
  color: white;
  border: 1px solid #7c4dff;
}

.ttt-btn.secondary:hover {
  background: #7c4dff;
}

.game-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.control-guide {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.85;
  text-align: left;
}

/* mobile */

@media (max-width: 768px) {
  .ttt-ui {
    max-width: 95%;
  }

  .ttt-stats {
    font-size: 14px;
  }

  .cell {
    font-size: 2.5rem;
  }
}