/**
 * Tic-Tac-Toe Styles
 */

/* Mini board in bubble */
.ttt-mini-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 60px;
  margin: 8px auto 0;
  font-family: monospace;
  font-size: 0.9em;
}

.ttt-mini-cell {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Full board */
.ttt-board {
  justify-content: center;
}

.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(300px, 100%);
  margin: 0 auto;
}

.ttt-cell {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 8vw, 3rem);
  transition: background 0.2s ease, transform 0.15s ease;
  /* Reset button styles */
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ttt-cell.clickable {
  cursor: pointer;
}

.ttt-cell.clickable:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.ttt-cell.clickable:active {
  transform: scale(0.95);
}

.ttt-x {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.ttt-o {
  color: #4dabf7;
  text-shadow: 0 0 10px rgba(77, 171, 247, 0.5);
}

/* Animations */
.ttt-cell.filled {
  animation: cell-pop 0.3s ease;
}

@keyframes cell-pop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
