/* 동물 장기 학생 화면: 판 크기와 화면 배치. 판·말 모양은 /animal/animal-board.css, 공통 화면 모양은 /shared/student.css */
:root {
  /* 판 말고 화면에 필요한 높이 (선수 줄, 상태 줄, 시계, 안내, 버튼) */
  --board-room: 250px;
}

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

.board-wrap {
  display: flex;
  justify-content: center;
}

/* 세로가 긴 판(3 × 5.6)이라 화면 높이에 맞춰 너비를 정한다. 360px 화면에서 칸이 약 80px 이상 */
#board {
  display: block;
  width: min(100%, calc((100dvh - var(--board-room)) * 3 / 5.6), 420px);
  min-width: 240px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.animal-board.review {
  display: block;
  width: min(100%, calc((100dvh - 320px) * 3 / 5.6), 340px);
  min-width: 200px;
}

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