/* 미니골프 — 화면 스타일 */
.mg-page{margin:0;background:#0d2216;color:#eefbf1;font-family:"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.65;overflow-x:hidden}
html.mg-lock,html.mg-lock body{overflow:hidden;overscroll-behavior:none}
.mg-wrap,.mg-wrap *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.mg-wrap{position:relative;width:100%;max-width:1100px;margin:0 auto;height:100vh;height:100svh;max-height:min(900px,210vw);overflow:hidden;background:#163a24;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (orientation:landscape){.mg-wrap{max-height:min(62vw,820px);min-height:420px}}
.mg-wrap canvas{display:block;position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none;outline:none}
.mg-wrap.mg-playing{touch-action:none}
.mg-btns{position:absolute;top:10px;right:12px;display:flex;gap:5px;z-index:5}
.mg-ib{width:34px;height:34px;border:0;border-radius:11px;background:rgba(0,0,0,.4);color:#fff;font:900 15px/1 sans-serif;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.2);display:inline-flex;align-items:center;justify-content:center;padding:0}
.mg-ib:active{transform:translateY(1px)}
.mg-toast{position:absolute;left:50%;bottom:52px;transform:translate(-50%,20px);background:rgba(0,0,0,.78);color:#fff;font-weight:800;font-size:14px;padding:8px 16px;border-radius:999px;opacity:0;transition:.2s;pointer-events:none;z-index:6;white-space:nowrap;max-width:94%;overflow:hidden;text-overflow:ellipsis}
.mg-toast.on{opacity:1;transform:translate(-50%,0)}
.mg-ui{position:absolute;inset:0;z-index:4;display:none;align-items:flex-start;justify-content:center;padding:54px 12px 16px;background:radial-gradient(ellipse at 50% 35%,rgba(10,40,20,.55),rgba(3,14,7,.9));overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.mg-ui.on{display:flex}
.mg-cardw{width:100%;max-width:480px;margin:auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;animation:mgIn .2s ease-out}
@keyframes mgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mg-cardw h2{margin:0;font-family:"Black Han Sans",sans-serif;font-weight:400;font-size:clamp(26px,7.5vw,38px);line-height:1.1;color:#ffe14d;text-shadow:0 3px 0 rgba(0,0,0,.5)}
.mg-logo{display:flex;flex-direction:column;align-items:center;line-height:1;font-family:"Black Han Sans",sans-serif;text-shadow:0 4px 0 rgba(0,0,0,.45)}
.mg-logo span{font-size:clamp(18px,5vw,26px);color:#c8f0d0;letter-spacing:.08em}
.mg-logo b{font-weight:400;font-size:clamp(50px,14vw,70px);background:linear-gradient(180deg,#fff,#a7f3b5 50%,#22a447);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 0 rgba(0,0,0,.45))}
.mg-tiny{margin:0;font-size:12px;color:#b4d8bd;line-height:1.6}
.mg-emo{font-size:48px;line-height:1}
.mg-big{margin:0;font-weight:900;font-size:clamp(26px,8vw,36px);color:#fff}
.mg-big small{font-size:.55em;color:#ffe14d;margin-left:4px}
.mg-mode{width:100%;font:inherit;color:#fff;border:0;border-radius:16px;padding:12px 16px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:2px;background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.06));box-shadow:inset 0 0 0 2px rgba(255,255,255,.2),0 4px 0 rgba(0,0,0,.3)}
.mg-mode:active{transform:translateY(2px)}
.mg-mode:hover{box-shadow:inset 0 0 0 2px #ffe14d,0 4px 0 rgba(0,0,0,.3)}
.mg-mode b{font-size:17px}
.mg-mode small{font-size:12px;color:#cfe9d5}
.mg-stat{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;font-size:12px}
.mg-stat span{background:rgba(0,0,0,.35);padding:3px 10px;border-radius:999px}
.mg-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mg-btn{font:inherit;font-weight:900;font-size:16px;border:0;border-radius:14px;padding:11px 20px;cursor:pointer;color:#1d1600;background:linear-gradient(180deg,#fff08a,#ffc21a);box-shadow:0 4px 0 #a87400;min-height:44px}
.mg-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #a87400}
.mg-btn.g{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.mg-btn:disabled{opacity:.6;cursor:default}
.mg-rk{width:100%;max-width:400px;font-size:13px;background:rgba(0,0,0,.3);border-radius:14px;padding:8px 10px;min-height:40px}
.mg-rk div{display:flex;justify-content:space-between;gap:8px;padding:3px 4px}
.mg-rk div:nth-child(odd){background:rgba(255,255,255,.05);border-radius:6px}
.mg-rk small{color:#b4d8bd}
.mg-muted{justify-content:center!important;color:#b4d8bd}
.mg-reg{display:flex;gap:6px;width:100%;max-width:380px}
.mg-reg input{flex:1;min-width:0;font:inherit;font-size:16px;padding:9px 12px;border-radius:12px;border:0}
.mg-reg .mg-btn{font-size:15px;padding:9px 14px}
.mg-sc{width:100%;display:flex;flex-direction:column;gap:6px}
.mg-sc table{width:100%;border-collapse:collapse;font-size:12px;background:rgba(0,0,0,.55);border-radius:10px;overflow:hidden;table-layout:fixed}
.mg-sc th,.mg-sc td{padding:4px 0;text-align:center;border-bottom:1px solid rgba(255,255,255,.07)}
.mg-sc th{width:38px;color:#b4d8bd;font-weight:700}
.mg-sc tr:first-child td{color:#9fc7a9;font-weight:700}
.mg-sc td{font-weight:900}
.mg-sc .ace{background:#ffe14d;color:#1d1600}
.mg-sc .eg{background:#f59e0b;color:#1d1600}
.mg-sc .bd{background:#ef4444;color:#fff}
.mg-sc .pr{color:#fff}
.mg-sc .bg{background:#2563eb;color:#fff}
.mg-sc .db{background:#1e3a8a;color:#fff}
.mg-leg{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin:0;font-size:11px}
.mg-leg span{padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.1)}
.mg-holes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
@media (min-width:600px){.mg-holes{grid-template-columns:repeat(6,minmax(0,1fr))}}
.mg-holes button{font:inherit;border:0;border-radius:12px;padding:7px 4px;cursor:pointer;background:rgba(255,255,255,.1);color:#fff;display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.3;min-height:64px}
.mg-holes button b{font-size:18px;color:#ffe14d}
.mg-holes button span{font-size:12px;font-weight:800}
.mg-holes button small{font-size:10px;color:#b4d8bd}
/* 아래 글 */
.mg-below{max-width:760px;margin:0 auto;padding:16px 16px 40px;box-sizing:border-box}
.mg-crumb{font-size:.82rem;color:#b4d8bd;margin:0 0 10px}
.mg-box{background:#123020;border:1px solid #24563a;border-radius:18px;padding:16px 18px;margin-bottom:14px}
.mg-box h1{font-size:1.25rem;margin:0 0 8px;color:#ffe14d;line-height:1.4}
.mg-box h2{font-size:1.08rem;margin:0 0 8px;color:#c8f0d0}
.mg-box ul{margin:0;padding-left:1.2em}
.mg-box li{margin:4px 0}
.mg-box p{margin:0 0 6px}
.mg-box details{border-top:1px solid #24563a;padding:8px 0}
.mg-box details:first-of-type{border-top:0}
.mg-box summary{cursor:pointer;font-weight:800}
.mg-box details p{margin-top:6px;color:#d5ecdb}
.mg-mt{width:100%;border-collapse:collapse;font-size:.92rem}
.mg-mt th{text-align:left;white-space:nowrap;padding:6px 10px 6px 0;color:#ffe14d;vertical-align:top}
.mg-mt td{padding:6px 0;color:#e2f5e7}
.mg-mt tr+tr th,.mg-mt tr+tr td{border-top:1px solid #24563a}
.mg-hl{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:4px 12px;font-size:.88rem;margin:0;padding:0;list-style:none}
.mg-hl li{margin:0;padding:3px 0;border-bottom:1px dashed #24563a}
.mg-hl b{color:#ffe14d}
.mg-more{font-size:.85rem;color:#b4d8bd}
.mg-page a{color:#ffd23f}
