/* === Board-Box === */
.game-board-box {
  justify-content: center;
  background: #2a2a2a url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  background-size: cover;
  background-blend-mode: multiply;
}

/* === Board-Tabelle anpassen === */
#board {
  border-collapse: separate;
  border-spacing: 6px;
  background: transparent;
}

#board td {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e1e1e, #000);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#board td.cell-X {
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #8b0000);
}

#board td.cell-O {
  background: radial-gradient(circle at 30% 30%, #4dff4d, #006400);
}

#board td:hover {
  transform: scale(1.05);
}



/* === Vier Gewinnt Spielfeld === */
#board {
  border-collapse: separate;
  border-spacing: 6px;
  margin: 0 auto;
  padding: 14px;
  background: linear-gradient(180deg, #b37a32 0%, #8c5a24 100%); /* Holzoptik */
  border: 8px solid #5c3a1e; /* dunkler Holzrahmen */
  border-radius: 18px;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(255, 180, 80, 0.2);
  position: relative;
  transform: scale(0.85);
  transform-origin: top center;
}

/* Holzmaserung-Effekt */
#board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 220, 150, 0.1) 0,
    rgba(255, 220, 150, 0.1) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
  opacity: 0.4;
}

/* === Zellen (Löcher im Holz) === */
#board td {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0a0a0a 0%, #1e1e1e 85%);
  box-shadow:
    inset 0 0 8px rgba(0, 0, 0, 0.8),
    0 0 2px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

/* Hover nur oberste Reihe */
#board tr:first-child td:hover {
  transform: translateY(-3px);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 85%);
}

/* === Steine === */
.cell-X {
  background: radial-gradient(circle at 30% 30%, #ff4d4d 0%, #a60000 85%);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.4),
    0 0 8px rgba(255,0,0,0.6);
}

.cell-O {
  background: radial-gradient(circle at 30% 30%, #4dff4d 0%, #009900 85%);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.4),
    0 0 8px rgba(0,255,0,0.5);
}

/* === Statusanzeige & Button === */
#status {
  margin: 8px 0 14px;
  font-size: 1.3em;
  text-align: center;
}

#new-game-btn {
  background: #ff4d4d;
  border: none;
  color: #fff;
  padding: 8px 18px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s ease, transform 0.1s;
}
#new-game-btn:hover {
  background: #e60000;
  transform: scale(1.05);
}
