/* =========================
   🎮 GAME CONTAINER (PREMIUM)
========================= */
.game-container {
  text-align: center;
  margin-top: 20px;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

/* Title */
.game-container h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

/* =========================
   📊 STATUS
========================= */
.status {
  margin: 12px 0;
  font-size: 16px;
  color: #bbb;
}

/* =========================
   🎮 MODE + DIFFICULTY
========================= */
.mode-select,
.difficulty {
  margin-bottom: 10px;
}

.mode-select button,
.difficulty button {
  margin: 5px;
  padding: 6px 14px;

  border-radius: 20px;
  border: none;

  background: rgba(255,255,255,0.1);
  color: #ccc;

  cursor: pointer;
  transition: 0.25s;
}

/* Active */
.mode-select .active,
.difficulty .active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* Hover */
.mode-select button:hover,
.difficulty button:hover {
  background: rgba(255,255,255,0.2);
}

/* =========================
   🎯 BOARD
========================= */
.board {
  display: grid;
  grid-template-columns: repeat(3, 85px);
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

/* =========================
   ⬜ CELLS
========================= */
.cell {
  width: 85px;
  height: 85px;

  border-radius: 16px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.25s ease;

  box-shadow: inset 0 0 5px rgba(255,255,255,0.05);
}

/* Hover glow */
.cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(102,126,234,0.4);
}

/* =========================
   ✏️ SVG MARKS
========================= */
.mark {
  width: 55px;
  height: 55px;
}

/* X animation */
.draw-x {
  stroke: #ff6b6b;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 0.3s ease forwards;
}

.draw-x.second {
  animation-delay: 0.15s;
}

/* O animation */
.draw-o {
  fill: none;
  stroke: #4ecdc4;
  stroke-width: 8;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: drawCircle 0.4s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

/* =========================
   🏆 WINNING CELLS
========================= */
.cell.winning {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  box-shadow: 0 0 20px #4caf50, 0 0 35px #4caf50;
  animation: glowPulse 1s infinite alternate;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 10px #4caf50;
  }
  to {
    box-shadow: 0 0 30px #4caf50, 0 0 45px #4caf50;
  }
}

/* =========================
   🔁 RESTART BUTTON
========================= */
.restart-btn {
  margin-top: 18px;
  padding: 10px 20px;

  border-radius: 25px;
  border: none;

  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;

  cursor: pointer;
  font-weight: 500;

  transition: 0.25s;
}

.restart-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255,126,95,0.6);
}