/* 님 돌: 누구의 것도 아닌 회색 돌 (흑·백 돌과 헷갈리지 않게). 공통 화면 모양은 /shared/student.css */
:root {
  --pebble: var(--slate-600);
  --pebble-edge: var(--slate-800);
}

/* 먼저(●)·나중(○): 색이 아니라 모양과 글자로 구분한다 */
.side-mark {
  flex: none;
  font-size: 1.2rem;
  line-height: 1;
}

/* ── 돌 무더기: 7개씩 줄을 바꿔 360px 화면에 맞춘다 ── */
.piles {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.pile {
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pile-label {
  margin: 0 2px 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pile-label .empty {
  color: var(--muted);
  font-weight: 600;
}

.pile-stones {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 52px));
  gap: 4px;
  justify-content: center;
}

/* 돌 하나 = 누를 수 있는 버튼 (공통 버튼 모양을 지운다) */
.pile-stones .pebble {
  min-height: 0;
  padding: 0;
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.pile-stones .pebble::before {
  content: '';
  display: block;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: var(--pebble);
  border: 2px solid var(--pebble-edge);
}

.pile-stones .pebble:hover:not(:disabled) {
  background: transparent;
}

/* 가져가려고 고른 돌: 색만이 아니라 점선 테두리 + 빈 가운데로 모양이 바뀐다 */
.pile-stones .pebble.picked::before {
  background: var(--accent-soft);
  border: 3px dashed var(--accent);
}

/* 보낸 뒤 서버 답을 기다리는 돌 */
.pile-stones .pebble.picked.sending::before {
  opacity: 0.5;
}

/* 복기: 그 차례에 가져간 돌 (점선 빈 동그라미) */
.pile-stones .taken::before {
  content: '';
  display: block;
  width: 84%;
  height: 84%;
  margin: 8%;
  border-radius: 50%;
  border: 2px dashed var(--slate-500);
}

:is(.review-piles, .guide-piles) .pile-stones span {
  display: block;
  aspect-ratio: 1;
}

:is(.review-piles, .guide-piles) .pile-stones .pebble {
  display: flex;
}

:is(.review-piles, .guide-piles) .pile-stones .pebble::before {
  margin: auto;
}

.review-note {
  margin: 4px 0 0;
  text-align: center;
  font-weight: 700;
}
