/* ==========================================================================
   Minigolf
   ========================================================================== */
.mg { position: absolute; inset: 0; }
.mg-head { position: absolute; left: 10px; top: calc(var(--top) + 6px); right: 60px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: none; }
.mg-pill { padding: 4px 10px; border-radius: 99px; font: 700 12px var(--text); color: var(--paper); background: rgba(30, 22, 16, .72); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap; }
.mg-pill b { font: 800 15px var(--display); }
.mg-strip { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mg-strip::-webkit-scrollbar { display: none; }
.mg-p { flex: none; display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; color: var(--ink); background: var(--grain), var(--paper); font: 700 16px/1 var(--hand); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.mg-p .av { --s: 22px; }
.mg-p b { font: 800 13px var(--display); }
.mg-p.done { opacity: .6; }
.mg-p.holed b { color: var(--teal); }
.mg-p .ok { width: 14px; height: 14px; color: var(--teal); stroke-width: 2.6; }
/* Vollbild: die Bahn liegt auf dem ganzen Bildschirm, Leiste, Knöpfe und Zähler darüber */
.mg-canvas-wrap { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse 95% 75% at 50% 46%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .2)); }
.mg-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.mg-ctrl { position: absolute; right: 10px; top: calc(var(--top) + 6px); z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.mg-ctrl button { width: 40px; height: 40px; border: 0; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--grain), var(--paper); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); cursor: pointer; }
.mg-ctrl button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-ctrl button.on { background: var(--ink); color: var(--paper); }
.mg-ctrl button:active { transform: translateY(1px); }
.mg-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(28, 34, 30, .72); color: var(--on-wood); font: 700 15px var(--text); text-align: center; padding: 20px; }
.mg-loading[hidden] { display: none; }
.mg-loading span::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: mgspin .9s linear infinite; }
@keyframes mgspin { to { transform: rotate(360deg); } }
.mg-world { margin-left: 8px; padding: 1px 7px; border-radius: 99px; font: 800 9.5px/1.6 var(--text); letter-spacing: .1em; text-transform: uppercase; vertical-align: 3px; color: var(--paper); background: var(--teal); }
.mg-foot { position: absolute; left: 10px; right: 10px; bottom: var(--bot); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; font: 700 14px var(--text); color: var(--on-wood); text-shadow: var(--surface-shadow, 0 1px 3px rgba(0, 0, 0, .7)); text-align: center; }
.mg-foot { pointer-events: none; } .mg-foot > * { pointer-events: auto; }
.mg-foot .btn { text-shadow: none; }
.mg-pop { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; padding: 10px 22px; border-radius: 8px; color: var(--ink); background: var(--grain), var(--card); font: 800 26px var(--display); box-shadow: var(--shadow-2); border-left: 6px solid var(--c, var(--teal)); animation: banner 2s var(--ease) forwards; white-space: nowrap; }
.mg-pop small { display: block; font: 600 13px var(--text); color: var(--ink-2); }

.mg.table .mg-pill { font-size: 17px; padding: 6px 14px; } .mg.table .mg-pill b { font-size: 22px; }
.mg.table .mg-p { font-size: 24px; padding: 5px 14px 5px 5px; } .mg.table .mg-p .av { --s: 36px; } .mg.table .mg-p b { font-size: 18px; }
.mg.table .mg-ctrl button { width: 52px; height: 52px; }
.mg.table .mg-strip { justify-content: center; flex-wrap: wrap; gap: 10px; overflow: visible; }

/* Scorekarte */
.mg-card { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); }
.mg-card th, .mg-card td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.mg-card th { font: 800 10.5px var(--text); color: var(--ink-3); letter-spacing: .06em; }
.mg-card td:first-child, .mg-card th:first-child { text-align: left; }
.mg-card td.nm { font: 700 18px/1 var(--hand); white-space: nowrap; }
.mg-card td.nm .av { --s: 20px; display: inline-block; vertical-align: middle; margin-right: 4px; }
.mg-card td.s { font: 700 19px/1 var(--hand); color: #1f3b8f; }
.mg-card td.s.ace { color: var(--red); font-weight: 900; }
.mg-card td.s.under { color: var(--teal); }
.mg-card td.tot { font: 800 17px var(--display); }
.mg-card tr.par td { color: var(--ink-3); font: 700 12px var(--text); }
.mg-scroll { overflow-x: auto; margin: 8px -8px 0; padding: 0 8px; }

.mg-stroke { padding: 6px 12px; border-radius: 99px; background: rgba(20, 12, 8, .6); color: var(--on-wood); font: 700 13px var(--text); text-shadow: none; }
.mg-stroke b { font: 800 16px var(--display); }
.mg-foot .cue .ic { width: 14px; height: 14px; }

.mg-tier { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px 2px 7px; border-radius: 99px; font: 800 10.5px/1.6 var(--text); letter-spacing: .04em; color: #fff; background: var(--c); vertical-align: 2px; box-shadow: 0 0 12px -2px var(--c); white-space: nowrap; }
.mg-tier i, .mg-banner-tier i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); border-radius: 1px; }
.mg-tier i:last-of-type { margin-right: 4px; }
.mg-banner-tier { display: flex; gap: 4px; color: var(--c); }
.mg-banner-tier i { width: 11px; height: 11px; }
