body {
  margin: 0;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  color: #c0c0d0;
  font-family: sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 24px 0 16px;
}

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

.site-footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px 0;
}

.site-footer a {
  color: #9090b0;
  font-family: sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #b0b0d0;
}

.clock {
  width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 1rem;
}

.clock-time {
  font-family: monospace;
  font-size: 1.2rem;
}

.clock-black {
  background: #2c2c2c;
  color: #f0f0f0;
}

.clock-white {
  background: #f0f0f0;
  color: #1a1a1a;
}

#clock-top {
  margin-bottom: 4px;
}

#clock-bottom {
  margin-top: 4px;
}

.clock {
  align-items: flex-start;
}

.clock-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clock-captures {
  display: flex;
  align-items: center;
  gap: 6px;
}

.captures-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.captures-pieces img {
  width: 1.3rem;
  height: 1.3rem;
}

.captures-advantage {
  font-size: 1rem;
}

.result-banner {
  width: 400px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #2a2a4a;
  color: #e0e0e0;
  font-family: sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

.result-detail {
  font-size: 0.85rem;
  color: #a0a0b0;
  margin-top: 4px;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.button,
.button-row button {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: #3a3a5c;
  color: #c0c0d0;
  font-family: sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover,
.button-row button:hover {
  background: #50507a;
}

cg-board {
  background-image: url("images/board/brown.svg");
}

piece.pawn.white {
  background-image: url("images/pieces/wP.svg");
}
piece.bishop.white {
  background-image: url("images/pieces/wB.svg");
}
piece.knight.white {
  background-image: url("images/pieces/wN.svg");
}
piece.rook.white {
  background-image: url("images/pieces/wR.svg");
}
piece.queen.white {
  background-image: url("images/pieces/wQ.svg");
}
piece.king.white {
  background-image: url("images/pieces/wK.svg");
}

piece.pawn.black {
  background-image: url("images/pieces/bP.svg");
}
piece.bishop.black {
  background-image: url("images/pieces/bB.svg");
}
piece.knight.black {
  background-image: url("images/pieces/bN.svg");
}
piece.rook.black {
  background-image: url("images/pieces/bR.svg");
}
piece.queen.black {
  background-image: url("images/pieces/bQ.svg");
}
piece.king.black {
  background-image: url("images/pieces/bK.svg");
}
