/* games-tictactoe.css — re-themed jh3y/KKNwpzN cyber neon → WebStories
 * comic palette. X = cyan (var(--gm-accent-1)); O = pink (var(--gm-accent-2)).
 */
.ttt-stage { max-width: 560px; margin: 0 auto; padding: 22px; }

.ttt-turn {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.04em;
  color: var(--gm-accent-1);
  font-size: 1.2em;
}
.ttt-turn[data-turn="O"] { color: var(--gm-accent-2); }

.ttt-board {
  --cell: clamp(72px, 22vw, 130px);
  display: grid;
  grid-template-columns: repeat(3, var(--cell));
  grid-template-rows:    repeat(3, var(--cell));
  gap: 8px;
  justify-content: center;
  margin: 18px auto 26px;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(107, 247, 255, 0.16), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(255, 121, 242, 0.16), transparent 60%),
    rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gm-border);
  border-radius: 14px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.6);
}
.ttt-cell {
  background: var(--gm-bg-alt);
  border: 2px solid var(--gm-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Bangers', cursive;
  font-size: calc(var(--cell) * 0.65);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease;
  user-select: none;
  color: var(--gm-text);
  position: relative;
}
.ttt-cell:hover:not([disabled]) {
  transform: translateY(-2px);
  border-color: var(--gm-accent-1);
  box-shadow: 0 6px 16px rgba(107, 247, 255, 0.35);
}
.ttt-cell[data-mark="X"] {
  color: var(--gm-accent-1);
  text-shadow: 0 0 6px rgba(107, 247, 255, 0.6), 0 0 18px rgba(107, 247, 255, 0.4);
}
.ttt-cell[data-mark="O"] {
  color: var(--gm-accent-2);
  text-shadow: 0 0 6px rgba(255, 121, 242, 0.7), 0 0 18px rgba(255, 121, 242, 0.45);
}
.ttt-cell.is-win {
  background: rgba(107, 255, 142, 0.15);
  border-color: var(--gm-success);
  animation: ttt-pop 0.32s ease-out;
}
@keyframes ttt-pop {
  0%   { transform: scale(0.85); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.ttt-cell.is-drop-in {
  animation: ttt-drop 0.22s ease-out;
}
@keyframes ttt-drop {
  from { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.ttt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ttt-tally {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: 'Bangers', cursive;
  font-size: 1.05em;
  letter-spacing: 0.04em;
}
.ttt-tally-x { color: var(--gm-accent-1); }
.ttt-tally-o { color: var(--gm-accent-2); }
.ttt-tally-d { color: var(--gm-muted); }
.ttt-tally strong { padding: 0 4px; }

.ttt-banner {
  margin-top: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(107, 247, 255, 0.18), rgba(255, 121, 242, 0.18));
  border: 1px solid var(--gm-border);
  border-radius: 14px;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: 1.6em;
  letter-spacing: 0.05em;
}
.ttt-banner[data-result="win"]  { color: var(--gm-success); }
.ttt-banner[data-result="lose"] { color: var(--gm-error); }
.ttt-banner[data-result="draw"] { color: var(--gm-warn); }
