:root {
  --bg-color: #1a1a1a;
  --board-color: #d4af37;
  --player1: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
  --player2: radial-gradient(circle at 30% 30%, #e0e0e0, #707070);
  --highlight: #00ffcc;
}

.game-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board-wrapper {
  position: relative;
  width: 90vw;
  max-width: 600px;
  margin: 20px 0;
}

#game-board {
  width: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.board-line {
  fill: none;
  stroke: var(--board-color);
  stroke-width: 4;
  stroke-linecap: round;
}

.node {
  fill: #333;
  stroke: var(--board-color);
  stroke-width: 2;
  cursor: pointer;
  transition:
    r 0.2s,
    fill 0.3s;
}

.node:hover {
  fill: #444;
  r: 12;
}

.node.active {
  stroke: var(--highlight);
  stroke-width: 4;
}

.stone {
  pointer-events: none;
  /* Ermöglicht das sanfte Gleiten der Koordinaten und das Ein-/Ausblenden */
  transition:
    cx 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    cy 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    r 0.3s ease;
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2;
}

/* Spezialeffekt beim Schlagen eines Steins */
.stone.removing {
  opacity: 0;
  r: 0;
}

/* Pulsieren für den aktuell ausgewählten Stein */
@keyframes pulse {
  0% {
    r: 16;
    stroke-width: 2;
  }
  50% {
    r: 19;
    stroke-width: 4;
  }
  100% {
    r: 16;
    stroke-width: 2;
  }
}

.stone-selected {
  animation: pulse 1.5s infinite;
  stroke: var(--highlight) !important;
}

.stone.player1 {
  fill: url(#grad1);
} /* Gradiente werden per JS/SVG-Def definiert oder vereinfacht: */
.stone-p1 {
  fill: #ffd700;
  filter: url(#f1);
}
.stone-p2 {
  fill: #c0c0c0;
  filter: url(#f1);
}

.sidebar {
  background: #252525;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.player-stat {
  margin: 10px 0;
  font-size: 1.1em;
}

#p1-count {
  color: #f1c40f;
}

/*------------------------------------------- */

h1,
h3,
h5 {
  font-family: "Courier New", Courier, monospace;
  font-size: 160%;
  text-align: center;
}

.rahmen {
  border: 2px solid grey;
  margin: 5px;
  padding: 10px;
}

body {
  width: 670px;
  margin: auto;
  font-size: 75%;
}

#scoreboard {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 0.9rem;
}

.score-box {
  background: #34495e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid #ecf0f1;
}

#white-count {
  color: #ecf0f1;
}
#black-count {
  color: #f1c40f;
} /* Gold für die KI-Punkte */

.hidden {
  display: none !important;
}

.button {
  font: bold 11px Arial;
  text-decoration: none;
  background-color: #ff0000;
  color: #ffffff;
  padding: 2px 6px 2px 6px;
  border-top: 1px solid #cccccc;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: 1px solid #cccccc;
}

.farbe1 {
  background-color: #f6ddab;
}

.farbe2 {
  background-color: #1a1b1b;
}

footer {
  border-radius: 4px;
  text-align: center;
  padding: 0px;
  background-color: rgb(167, 164, 0);
  color: white;
  font-size: 14px;
}
