.game-shell[data-theme="tictactoe"] {
  --game-accent: #ffb864;
  --game-accent-2: #ffe17d;
  --game-accent-soft: rgba(255, 184, 100, 0.22);
  --game-accent-deep: rgba(255, 225, 125, 0.12);
}

.ttt-stage {
  display: grid;
  gap: 14px;
  padding-block: 4px 2px;
}

.ttt-banner {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 184, 100, 0.18);
  background: rgba(255, 184, 100, 0.08);
  color: #fff0d0;
  line-height: 1.6;
}

.ttt-banner.is-attack {
  border-color: rgba(122, 255, 185, 0.24);
  background: rgba(122, 255, 185, 0.1);
  color: #e4fff0;
}

.ttt-banner.is-block {
  border-color: rgba(134, 232, 255, 0.22);
  background: rgba(134, 232, 255, 0.1);
  color: #dcf9ff;
}

.ttt-board {
  grid-template-columns: repeat(3, minmax(92px, 122px));
  gap: 14px;
  max-width: 430px;
  margin: 0 auto;
}

.ttt-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 24, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
}

.ttt-cell::after {
  content: attr(data-coord);
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ttt-cell.is-empty::before {
  content: attr(data-mark);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: rgba(255, 255, 255, 0.14);
  transition: opacity 0.14s ease;
}

.ttt-cell.is-empty:hover::before {
  opacity: 1;
}

.ttt-cell.mark-x {
  color: #ffd96f;
  text-shadow: 0 0 24px rgba(255, 217, 111, 0.16);
}

.ttt-cell.mark-o {
  color: #86e8ff;
  text-shadow: 0 0 24px rgba(134, 232, 255, 0.16);
}

.ttt-cell.is-last {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ttt-cell.is-suggested {
  border-color: rgba(255, 225, 125, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 125, 0.16),
    0 18px 36px rgba(255, 184, 100, 0.12);
}

.ttt-cell.is-winning {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(255, 184, 100, 0.18);
}

@media (max-width: 560px) {
  .ttt-board {
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 10px;
  }

  .ttt-cell {
    border-radius: 22px;
  }
}
