/* Mini Golf — the course is one canvas that fills the stage; these are the few styles around it. */

.mg-course { cursor: pointer; background: var(--lapis-deep); direction: ltr; touch-action: none; -webkit-user-select: none; user-select: none; }

/* The score card on the result panel: holes across, strokes and points under them. */
.mg-card { width: 100%; border-collapse: collapse; direction: ltr; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mg-card th, .mg-card td { padding: 4px 0; text-align: center; font-size: 0.82rem; border: 1px solid var(--hairline); color: var(--parchment); }
.mg-card th { font-weight: 600; color: var(--mist); background: rgba(255, 241, 214, 0.05); }
.mg-card tr:last-child td { color: var(--gold); font-weight: 700; }
.mg-card .mg-ace { background: var(--w-red); color: var(--w-cream); }
.mg-card .mg-row { width: 22%; font-size: 0.72rem; color: var(--mist); font-weight: 600; }

@media (max-width: 360px) {
  body[data-game="minigolf"] .fa-bar { gap: 5px; }
  body[data-game="minigolf"] .fa-title { font-size: 0.95rem; }
}

/* Short phones (320 x 568): tighter panels, so the buttons show without scrolling. */
@media (max-height: 600px) {
  body[data-game="minigolf"] .fa-panel { padding: 14px 18px; }
  body[data-game="minigolf"] .fa-panel__art { margin: 0 0 6px; }
  body[data-game="minigolf"] .kit-start .kit-art { max-width: 104px; border-radius: 12px; }
  body[data-game="minigolf"] .fa-panel__title { margin: 2px 0 4px; font-size: 1.5rem; }
  body[data-game="minigolf"] .fa-panel__text { margin-bottom: 10px; font-size: 0.88rem; line-height: 1.35; }
  body[data-game="minigolf"] .fa-panel__body { margin-bottom: 10px; }
  body[data-game="minigolf"] .fa-stats { margin-bottom: 10px; }
  body[data-game="minigolf"] .fa-howto { gap: 5px; margin: 0; font-size: 0.88rem; line-height: 1.3; }
}
