body {
  font-family: sans-serif;
  text-align: center;
  background-color: #fafafa;
}

#board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  width: fit-content;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  gap: 10px;
}

.store {
  height: 140px;
  width: 60px;
  border-radius: 20px;
}

.pit.clicked {
  background-color: #ffd54f;
  transition: background-color 0.1s ease;
}

#turn-indicator {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 20px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#turn-indicator.a-turn {
  color: #1976d2; /* 青 - あなた */
}

#turn-indicator.b-turn {
  color: #d32f2f; /* 赤 - CPU */
}

#scoreboard {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.score-block.you {
  color: #1976d2;
}

.score-block.cpu {
  color: #d32f2f;
}

.pit, .store {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #555;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden; /* はみ出し防止 */
  position: relative;
}

.stone {
  width: 20px;
  height: 20px;
  background-image: url("img/stone.png");
  background-size: cover;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
  border-radius: 50%;
  animation: pop-in 0.3s ease-out;
}
.stone.small {
  width: 15px;
  height: 15px;
}

.stone.tiny {
  width: 12px;
  height: 12px;
}

@keyframes drop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.flying-stone {
  width: 16px;
  height: 16px;
  background-image: url("img/stone.png");
  background-size: cover;
  border-radius: 50%;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
  position: absolute;
  z-index: 999;
  transition: all 0.5s ease;
  pointer-events: none;
}

