.chess-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(20, 10, 30, 0.95));
  font-family: 'Courier New', monospace;
  overflow: auto;
  padding: 20px;
}

.chess-container {
  background: rgba(30, 20, 40, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 0, 60, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(255, 0, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 600px;
}

.chess-title {
  text-align: center;
  color: #ff003c;
  font-size: 32px;
  margin: 0 0 20px;
  text-shadow: 0 0 20px rgba(255, 0, 60, 0.8), 0 0 40px rgba(255, 0, 60, 0.4);
  letter-spacing: 8px;
}

.chess-hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}

.chess-score {
  color: #ff4488;
  text-shadow: 0 0 10px rgba(255, 68, 136, 0.6);
}

.chess-turn {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  font-weight: bold;
}

.chess-board-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.chess-captured {
  display: flex;
  gap: 5px;
  min-height: 30px;
  font-size: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  background: rgba(255, 0, 60, 0.3);
  padding: 2px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.4);
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.chess-square {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.chess-square.light {
  background: rgba(200, 180, 220, 0.9);
}

.chess-square.dark {
  background: rgba(80, 40, 100, 0.9);
}

.chess-square:hover {
  background: rgba(255, 0, 60, 0.4) !important;
  box-shadow: inset 0 0 15px rgba(255, 0, 60, 0.6);
}

.chess-square.selected {
  background: rgba(255, 0, 60, 0.6) !important;
  box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.8), 0 0 15px rgba(255, 0, 60, 0.6);
}

.chess-square.valid-move {
  background: rgba(0, 255, 136, 0.4) !important;
  box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.6);
}

.chess-piece {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.chess-piece.white {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.6);
}

.chess-piece.black {
  color: #1a1a2e;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 0, 60, 0.4);
}

.chess-controls {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.chess-btn {
  padding: 12px 30px;
  background: rgba(255, 0, 60, 0.2);
  border: 2px solid #ff003c;
  border-radius: 8px;
  color: #ff003c;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
  box-shadow: 0 4px 15px rgba(255, 0, 60, 0.3);
  transition: all 0.3s;
}

.chess-btn:hover {
  background: rgba(255, 0, 60, 0.4);
  box-shadow: 0 6px 25px rgba(255, 0, 60, 0.5);
  transform: translateY(-2px);
}

.chess-btn:active {
  transform: translateY(0);
}

.chess-status {
  text-align: center;
  margin-top: 15px;
  color: #ffff00;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
  min-height: 25px;
}
