/* Modernized styles-ter-game.css */

.border-primary {
  border-color: rgba(63, 63, 70, 0.3) !important;
}

/* Tic Tac Toe Cell Grids */
table {
  width: 100%;
  table-layout: fixed;
  text-align: center;
  border-collapse: collapse;
}

td {
  position: relative;
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  height: 90px;
  border: 1px solid rgba(63, 63, 70, 0.4) !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

table td:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

td:after {
  content: '';
  display: block;
  margin-top: 100%;
}

td .cell-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 800;
  user-select: none;
}

/* Intercept basic colors from script and apply beautiful Tailwind palette */
.cell-content[style*="color:blue"] {
  color: #38bdf8 !important; /* sky-400 */
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.cell-content[style*="color:red"] {
  color: #f43f5e !important; /* rose-500 */
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.5));
}

/* Premium Neon Crossing Lines on Win */
td.diagonalRising {
  background: linear-gradient(135deg, transparent 0%, transparent 46%, #10b981 48%, #10b981 52%, transparent 54%, transparent 100%) !important;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}

td.diagonalFalling {
  background: linear-gradient(45deg, transparent 0%, transparent 46%, #10b981 48%, #10b981 52%, transparent 54%, transparent 100%) !important;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}

td.vertical {
  background: linear-gradient(90deg, transparent 46%, #10b981 48%, #10b981 52%, transparent 54%) !important;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}

td.horizontal {
  background: linear-gradient(180deg, transparent 0%, transparent 46%, #10b981 48%, #10b981 52%, transparent 54%, transparent 100%) !important;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}