/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/games/Chess/chess.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
.chess-game {
  font-family: var(--font-share), "Share Tech Mono", monospace;
  color: #e8dcc4;
}

.chess-title {
  font-family: var(--font-bebas), "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: #d4a853;
  text-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 0.25rem;
}

.chess-subtitle {
  text-align: center;
  font-size: 0.75rem;
  color: #8b7355;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
}

.chess-layout {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chess-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chess-status {
  background: linear-gradient(180deg, rgba(139, 115, 85, 0.3), rgba(45, 24, 16, 0.5));
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #d4a853;
  text-align: center;
  letter-spacing: 1px;
}

.chess-board-wrapper {
  background: linear-gradient(135deg, #3d2817 0%, #2d1810 100%);
  border: 3px solid #8b4513;
  border-radius: 8px;
  padding: 0;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chess-captured {
  min-height: 32px;
  margin: 0.5rem 0;
}

.captured-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.captured-piece {
  font-size: 24px;
  line-height: 1;
}

.captured-pieces.white .captured-piece {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.captured-pieces.black .captured-piece {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.chess-controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.chess-btn {
  background: linear-gradient(180deg, rgba(139, 115, 85, 0.4), rgba(45, 24, 16, 0.6));
  border: 1px solid rgba(212, 168, 83, 0.5);
  color: #d4a853;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chess-btn:hover {
  background: linear-gradient(180deg, rgba(139, 115, 85, 0.6), rgba(45, 24, 16, 0.8));
  border-color: #d4a853;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2);
}

.chess-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
  max-width: 250px;
}

.move-history {
  background: rgba(45, 24, 16, 0.6);
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 8px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.move-history h3 {
  font-size: 0.8rem;
  color: #d4a853;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.moves-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.move-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.move-number {
  color: #8b7355;
  min-width: 24px;
}

.move {
  padding: 2px 6px;
  border-radius: 3px;
}

.white-move {
  background: rgba(240, 217, 181, 0.2);
  color: #f0d9b5;
}

.black-move {
  background: rgba(0, 0, 0, 0.3);
  color: #b58863;
}

.chess-info {
  background: rgba(45, 24, 16, 0.6);
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

.chess-info h3 {
  font-size: 0.8rem;
  color: #d4a853;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.chess-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chess-info li {
  font-size: 0.75rem;
  color: #a08060;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.chess-info li::before {
  content: "♟";
  position: absolute;
  left: 0;
  color: #d4a853;
  font-size: 10px;
}

/* Scrollbar for move history */
.move-history::-webkit-scrollbar {
  width: 6px;
}

.move-history::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.move-history::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 85, 0.5);
  border-radius: 3px;
}

.move-history::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 115, 85, 0.7);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .chess-layout {
    flex-direction: column;
    align-items: center;
  }

  .chess-sidebar {
    flex-direction: row;
    max-width: 100%;
    width: 100%;
  }

  .move-history {
    max-height: 200px;
    flex: 1;
  }

  .chess-info {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .chess-game {
    padding: 0.5rem;
  }

  .chess-title {
    font-size: 1.75rem;
    letter-spacing: 3px;
  }

  .chess-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .chess-status {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .chess-board-wrapper {
    border-width: 2px;
  }

  .chess-sidebar {
    flex-direction: column;
  }

  .chess-controls {
    margin-top: 0.75rem;
  }

  .chess-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .captured-piece {
    font-size: 18px;
  }

  .chess-captured {
    min-height: 24px;
    margin: 0.25rem 0;
  }
}

@media (max-width: 400px) {
  .chess-title {
    font-size: 1.5rem;
  }

  .move-history,
  .chess-info {
    padding: 0.75rem;
  }

  .move-history h3,
  .chess-info h3 {
    font-size: 0.7rem;
  }

  .move-pair {
    font-size: 0.75rem;
  }

  .chess-info li {
    font-size: 0.65rem;
  }
}

