/* ---------- Minigolf ---------- */
.sp-mg { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sp-mg-info { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 9px 14px; border-radius: 14px;
	background: linear-gradient(160deg, #ecfdf5, #fff); border: 2px solid #bbf7d0; font-size: .95rem; line-height: 1.35; color: var(--sp-ink); }
.sp-mg-bahn { font-weight: 800; }
.sp-mg-msg { text-align: center; font-weight: 600; color: #15803d; }
.sp-mg-sum { text-align: right; font-weight: 700; color: var(--sp-ink-2, #475569); }
.sp-mg-cv { display: block; flex: 0 0 auto; border-radius: 20px; cursor: crosshair; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #bbf7d0, 0 26px 46px -26px rgba(20, 83, 45, .8); }
.sp-mg-cv.is-kbd:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #22c55e, 0 26px 46px -26px rgba(20, 83, 45, .8); }

.sp-mg-card { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: .9rem; table-layout: fixed; }
.sp-mg-card th { width: 5.2em; text-align: left; font-weight: 700; padding: 5px 6px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.sp-mg-card td { text-align: center; padding: 5px 2px; border: 1px solid #e2e8f0; }
.sp-mg-card tr:first-child td { background: #16a34a; color: #fff; font-weight: 700; border-color: #15803d; }
.sp-mg-card td.is-ace { background: #fef3c7; color: #92400e; font-weight: 800; }
.sp-mg-card td.is-good { background: #dcfce7; color: #166534; font-weight: 700; }
.sp-mg-card td.is-bad { background: #fee2e2; color: #991b1b; }
.sp-mg-card td:last-child { background: #f8fafc; font-weight: 700; }
.sp-mg-card tr:first-child td:last-child { background: #15803d; }

.sp-shell:fullscreen .sp-mg { height: 100%; justify-content: center; }
.sp-shell:-webkit-full-screen .sp-mg { height: 100%; justify-content: center; }

@media (max-width: 640px) {
	.sp-mg-info { grid-template-columns: minmax(0, 1fr) auto; font-size: .88rem; padding: 8px 10px; }
	.sp-mg-msg { grid-column: 1 / -1; grid-row: 2; text-align: left; }
	.sp-mg-cv { border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bbf7d0; }
	.sp-mg-card { font-size: .78rem; }
	.sp-mg-card th { width: 4.4em; padding: 4px; }
}
