/* 미니게임(활쏘기) 오버레이 — VN 위에 덮이는 한 판.
   색은 base.css 토큰(--gold, --line, --ink)을 그대로 쓴다. */

.vn-minigame {
  position: absolute;
  inset: 0;
  z-index: 9;                 /* 대사창(5)·선택지(7)·종료(8) 위 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(90% 70% at 50% 40%, rgba(10, 13, 27, 0.90), rgba(4, 6, 14, 0.98));
  animation: mgFadeIn 0.35s ease both;
}

@keyframes mgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mg-panel {
  width: min(680px, calc(100vw - 24px));
  max-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 18px;
  background:
    /* 한지 결 — 아주 옅은 사선 */
    repeating-linear-gradient(135deg, rgba(216, 180, 90, 0.028) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(16, 21, 42, 0.96), rgba(10, 13, 27, 0.98));
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-dim);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.mg-prompt {
  margin: 0;
  text-align: center;
  color: var(--gold-bright);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.mg-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 360;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--ink);
  touch-action: manipulation;  /* 모바일 더블탭 확대 방지 — 연타가 곧 조작이다 */
  cursor: crosshair;
}

.mg-status {
  margin: 0;
  min-height: 2.6em;
  text-align: center;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
}

.mg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mg-shoot { min-width: 148px; }

.mg-actions .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.mg-actions .btn:disabled { opacity: 0.5; cursor: wait; }

@media (max-width: 480px) {
  .mg-panel { padding: 12px 10px 14px; gap: 8px; }
  .mg-prompt { font-size: 0.96rem; }
  .mg-shoot { min-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .vn-minigame { animation: none; }
}
