.game-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.ttt-score {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ttt-score-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 10px 6px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.ttt-score-box .label {
  font-size: 0.68rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

.ttt-score-box .val {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 2px;
}

.ttt-score-box.human .val {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
}

.ttt-score-box.draw .val {
  color: var(--text-sub);
}

.ttt-score-box.ai .val {
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(255, 30, 60, 0.7);
}

.ttt-status {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.ttt-status.win {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(0, 200, 255, 0.06);
}

.ttt-status.lose {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 30, 60, 0.06);
}

.ttt-status.draw {
  border-color: var(--text-sub);
  color: var(--text-sub);
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 auto 20px;
  max-width: 360px;
}

.ttt-cell {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  user-select: none;
}

.ttt-cell:hover:not(.taken) {
  background: rgba(0, 200, 255, 0.05);
  transform: scale(1.04);
}

.ttt-cell.human {
  color: var(--neon-blue);
  text-shadow: 0 0 16px rgba(0, 200, 255, 0.8);
}

.ttt-cell.ai {
  color: var(--neon-red);
  text-shadow: 0 0 16px rgba(255, 30, 60, 0.8);
}

.ttt-cell.win {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.04);
  animation: cellPulse 0.6s ease;
}

@keyframes cellPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
.ttt-reset {
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

.back-link:hover {
  color: var(--neon-blue);
}
