﻿/* 지도와 카드가 좁은 휴대폰에서도 한 줄에 들어가게 한다. */
.bo-game {
  --grass: #ecf3df;
  --green: #28614c;
  display: grid;
  gap: 10px;
  max-width: 440px;
  margin: auto;
  color: var(--navy);
  font-size: 14px;
}
.bo-game *, .bo-game *::after { box-sizing: border-box; }
.bo-game [hidden] { display: none !important; }
.bo-game .senior-card { grid-area: auto; }
.bo-game button {
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  touch-action: manipulation;
}
.bo-game button:focus-visible { outline: 3px solid #1858a3; outline-offset: 1px; z-index: 1; }
.bo-intro, .bo-round { display: grid; gap: 8px; min-width: 0; }
.bo-samples, .bo-tray, .bo-actions { display: flex; gap: 5px; }
.bo-samples {
  justify-content: space-around;
  padding: 14px 4px;
  border: 2px solid #a3b995;
  border-radius: 4px;
  background: var(--grass);
}
.bo-samples > div, .bo-tray .btn, .bo-cell {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}
.bo-samples img, .bo-tray img, .bo-cell img {
  display: block;
  width: 40px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}
.bo-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bo-heading h3 { margin: 0; font-size: 16px; }
.bo-count { font-size: 13px; font-weight: 700; color: var(--green); }
.bo-time { width: 100%; height: 8px; border: none; border-radius: 2px; background: #d8e5d0; }
.bo-time::-webkit-progress-bar { background: #d8e5d0; }
.bo-time::-webkit-progress-value { background: var(--green); }
.bo-time::-moz-progress-bar { background: var(--green); }
.bo-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(44px, 1fr));
  gap: 2px;
  width: min(100%, calc(var(--cols) * 60px + 16px));
  justify-self: center;
  padding: 4px;
  border: 2px solid #738b6b;
  border-radius: 5px;
  background: #a9bd9b;
}
.bo-grid .bo-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  padding: 0;
  border: 1px solid #c7d4b9;
  border-radius: 2px;
  background: var(--grass);
  color: var(--navy);
}
.bo-grid button { cursor: pointer; }
.bo-grid .bo-filled { background: #fffcee; }
.bo-grid .bo-answer { border: 2px solid var(--green); }
.bo-cell img { width: 100%; height: clamp(26px, 7.8vw, 36px); }
.bo-cross {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 0 3px;
  border-radius: 2px;
  border: 1px solid #ae2433;
  background: #fff1ee;
  color: #ae2433;
  font: bold 16px/1 sans-serif;
}
.bo-tray .btn { flex: 1; padding: 4px 2px; }
.bo-tray img { height: 27px; }
.bo-actions .btn {
  display: grid;
  align-content: center;
  gap: 2px;
  flex: 1;
  padding: 6px 3px;
  font-size: 14px;
}
.bo-actions small { display: block; font-size: 12px; }
@media (max-height: 700px) {
  .bo-grid { max-width: calc(var(--cols) * 48px + 16px); }
  .bo-cell img { height: 28px; }
}
