/* ========== Board Layout ========== */

.board-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.board {
  width: 100%;
  max-width: 1000px;
  background: var(--board-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border: 3px solid #8b7355;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
  max-height: 650px;
  overflow-y: auto;
}

.board::-webkit-scrollbar {
  width: 10px;
}

.board::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.board::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 85, 0.5);
  border-radius: 10px;
}

.board::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 115, 85, 0.7);
}

/* ========== Responsive ========== */

@media (max-width: 1200px) {
  .board-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .side-panel {
    width: 100%;
    max-width: 800px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .panel-card {
    flex: 1;
    min-width: 220px;
  }
  
  .board {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .side-panel {
    flex-direction: column;
  }
  
  .panel-card {
    width: 100%;
  }
}
