/* Mancala Styles */

.game-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ede8;
  padding: 1rem;
  overflow: hidden;
}

.board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
}

.player-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: opacity 0.3s, transform 0.3s;
}
.player-banner.active {
  transform: scale(1.05);
}
.player-banner:not(.active) {
  opacity: 0.4;
}

.mancala-board {
  display: flex;
  align-items: stretch;
  background: #fff;
  padding: 1rem;
  border-radius: 40px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.store {
  flex: 1;
  min-width: 60px;
  background: #f5f4f0;
  border-radius: 30px;
  position: relative;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.pits-grid {
  flex: 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.pit {
  flex: 1;
  aspect-ratio: 1;
  background: #f5f4f0;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.pit.interactive:active {
  transform: scale(0.92);
}
.pit.interactive:hover {
  background: #eee;
}

/* For capturing animation/highlight */
.pit.highlight, .store.highlight {
  background: #fffbeb;
}

.board-divider {
  height: 2px;
  background: #f0ede8;
  border-radius: 2px;
  margin: 0 1rem;
}

.stone-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pit-label {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #bbb;
  pointer-events: none;
}
.store .pit-label {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(0,0,0,0.1);
}

.stone {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #444;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.2);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), top 0.3s cubic-bezier(0.32, 0.72, 0, 1), left 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  z-index: 10;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .mancala-board {
    padding: 0.5rem;
    border-radius: 24px;
    gap: 0.5rem;
  }
  .store {
    min-width: 40px;
    border-radius: 20px;
  }
  .row {
    gap: 0.25rem;
  }
  .pit-label {
    font-size: 0.65rem;
    bottom: -16px;
  }
  .stone {
    width: 10px;
    height: 10px;
  }
}
