/* ===== 두더지 잡기 — 3×3 구멍판 ===== */
.stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 40px;
}
.board-area {
  position: relative;
  width: min(460px, 92vw, calc(100vh - 230px));
}
.whack-board {
  width: 100%; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: #17141F;
  border: 3px solid var(--wall);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.hole {
  font: inherit; border: none; cursor: pointer;
  border-radius: 12px; background: #241F33;
  display: grid; place-items: center;
  font-size: clamp(1.8rem, 9vw, 3rem);
  transition: background .1s;
  position: relative; overflow: hidden;
}
.hole::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 8%;
  height: 14%; border-radius: 50%;
  background: rgba(0,0,0,.5);
}
.hole.up { background: #35304A; }
.hole.up:active { background: #453D5C; }
.hole .mole { transition: transform .12s ease; transform: translateY(0); }
.hole:not(.up) .mole { transform: translateY(130%); }
html.reduce-motion .hole .mole { transition: none; }

.score-line { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.score-line b { color: var(--gold); font-variant-numeric: tabular-nums; }

.overlay-btns { display: grid; gap: 10px; justify-items: center; }
.overlay-btns-sub { display: flex; gap: 8px; }

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(14,11,20,.7);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 24px;
  max-width: 480px; width: 100%;
  max-height: 85vh; overflow-y: auto;
}
.modal-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.modal-card .btn-primary { margin-top: 18px; width: 100%; }
.how-list { list-style: none; display: grid; gap: 10px; }
.how-list li { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.how-controls {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.12);
  font-size: .78rem; color: var(--ink-2);
}
.log-table .rank-1 td:first-child { color: #FFD166; font-weight: 800; }
.log-table .rank-2 td:first-child { color: #C9C3DD; font-weight: 800; }
.log-table .rank-3 td:first-child { color: #D2936B; font-weight: 800; }
