:root{--ui-bg:#fff8ec;--ui-fg:#1f3b2c;--ui-muted:#1f3b2ca6;--ui-accent:#f0643c;--ui-accent-fg:#fff;--ui-accent-edge:#b8441f;--ui-danger:#b8361f;--ui-edge:#e3d3b8;--ui-track:#ede2cf;--ui-dim:#1f3b2c73;--ui-shadow:0 4px 0 var(--ui-edge), 0 8px 18px #1f3b2c26;--ui-font:Fredoka, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--ui-bottom:calc(env(safe-area-inset-bottom,0px) + var(--ao-consent-height,0px));--ao-consent-bg:#fff8ec;--ao-consent-fg:#1f3b2c;--ao-consent-accent:#f0643c;--ao-consent-accent-fg:#fff;--ao-consent-border:#e3d3b8;--ao-consent-radius:18px;--ao-consent-button-radius:14px;--ao-consent-shadow:0 4px 0 #e3d3b8, 0 8px 18px #1f3b2c26}html,body{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100%;margin:0;overflow:hidden}canvas#game{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}.mg-ui [hidden],.mg-ui[hidden]{display:none!important}.mg-ui{pointer-events:none;font:600 16px/1.35 var(--ui-font);color:var(--ui-fg);position:fixed;inset:0}.mg-ui *,.mg-ui :before,.mg-ui :after{box-sizing:border-box}.mg-ui button,.mg-ui a,.mg-ui .card,.mg-ui .screen{pointer-events:auto}.screen-layer{pointer-events:none;position:absolute;inset:0}.screen{padding:max(16px, env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) calc(16px + var(--ui-bottom)) max(16px, env(safe-area-inset-left,0px));justify-content:center;align-items:center;display:flex;position:absolute;inset:0;overflow:hidden}.screen.dim{background:var(--ui-dim)}.card{background:var(--ui-bg);box-shadow:0 6px 0 var(--ui-edge), 0 20px 50px #1f3b2c4d;border-radius:24px;flex-direction:column;gap:12px;width:min(380px,100%);max-height:100%;padding:24px;display:flex;overflow:auto}.card h1,.card h2,.card p{margin:0}.card h2{font-size:26px;font-weight:700}.game-title{letter-spacing:-.01em;font-size:44px;font-weight:700;line-height:1}.game-title span{color:var(--ui-accent)}.muted{color:var(--ui-muted);font-weight:500}.row{gap:10px;display:flex}.row>*{flex:1}.btn{min-height:52px;color:var(--ui-fg);font:600 18px var(--ui-font);box-shadow:0 4px 0 var(--ui-edge);cursor:pointer;background:#fff;border:0;border-radius:16px;padding:0 16px}.btn:active,.hole:active,.icon-btn:active{box-shadow:0 2px 0 var(--ui-edge);transform:translateY(2px)}.btn.primary{background:var(--ui-accent);color:var(--ui-accent-fg);box-shadow:0 4px 0 var(--ui-accent-edge)}.btn.primary:active{box-shadow:0 2px 0 var(--ui-accent-edge)}.btn.danger{color:var(--ui-danger)}.btn.toggle{min-width:88px}.btn:focus-visible,.icon-btn:focus-visible,.hole:focus-visible,.foot a:focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}.tl,.tr{flex-direction:column;gap:12px;display:flex}.foot{color:var(--ui-muted);flex-wrap:wrap;justify-content:center;gap:10px;font-size:14px;font-weight:500;display:flex}.foot a{color:inherit;align-items:center;min-height:44px;padding:0 6px;display:inline-flex}.best{text-align:center;font-size:15px;font-weight:600}.head{align-items:center;gap:12px;display:flex}.head .btn{flex:none;min-height:44px}.holes{flex-direction:column;gap:10px;display:flex}.hole{text-align:left;min-height:72px;box-shadow:0 4px 0 var(--ui-edge);font:inherit;color:inherit;cursor:pointer;background:#fff;border:0;border-radius:18px;grid-template-columns:52px 1fr auto;align-items:center;gap:12px;padding:10px 14px;display:grid}.hole .n{color:#fff;background:#86c96f;border-radius:14px;place-items:center;width:52px;height:52px;font-size:26px;font-weight:700;display:grid}.hole.locked{opacity:.6}.hole.locked .n{background:#c9bfae}.hole strong{font-size:18px;display:block}.hole small{color:var(--ui-muted);font-size:14px;font-weight:500}.hole .b{text-align:right;color:var(--ui-muted);font-size:13px;font-weight:600}.hole .b b{color:var(--ui-fg);font-size:22px;display:block}.word{color:var(--ui-accent);text-align:center;font-size:48px;font-weight:700;line-height:1;animation:.2s ease-out pop}@keyframes pop{0%{transform:scale(.8)}to{transform:scale(1)}}.sub{text-align:center;font-size:18px;font-weight:600}.badge{background:#f7c948;border-radius:999px;align-self:center;padding:4px 12px;font-size:14px;font-weight:700}.card table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:17px}.card th,.card td{text-align:center;padding:8px 6px}.card th{letter-spacing:.06em;text-transform:uppercase;color:var(--ui-muted);font-size:12px;font-weight:600}.card td:first-child,.card th:first-child{text-align:left}.card tbody tr{border-top:1.5px solid var(--ui-track)}.card tfoot td{border-top:2px solid var(--ui-fg);font-size:20px;font-weight:700}.under{color:#2e8b57}.over{color:var(--ui-danger)}.setting{justify-content:space-between;align-items:center;font-size:18px;font-weight:600;display:flex}.hud{padding:calc(env(safe-area-inset-top,0px) + 14px) max(14px, env(safe-area-inset-right,0px)) calc(18px + var(--ui-bottom)) max(14px, env(safe-area-inset-left,0px));pointer-events:none;flex-direction:column;justify-content:space-between;display:flex;position:absolute;inset:0}.hud-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.chip{background:var(--ui-bg);box-shadow:var(--ui-shadow);border-radius:18px;gap:16px;padding:8px 14px;display:flex}.chip small{letter-spacing:.06em;text-transform:uppercase;color:var(--ui-muted);font-size:12px;font-weight:600;display:block}.chip b{font-variant-numeric:tabular-nums;font-size:26px;font-weight:700;line-height:1}.chip b i{color:var(--ui-muted);font-size:16px;font-style:normal}.hud-btns{gap:8px;display:flex}.icon-btn{background:var(--ui-bg);width:48px;height:48px;box-shadow:var(--ui-shadow);font:700 20px var(--ui-font);color:var(--ui-fg);cursor:pointer;pointer-events:auto;border:0;border-radius:16px}.meter{background:var(--ui-bg);box-shadow:0 5px 0 var(--ui-edge), 0 10px 24px #1f3b2c2e;border-radius:22px;padding:12px 14px}.bar{background:var(--ui-track);border-radius:7px;height:14px;overflow:hidden}.bar i{background:linear-gradient(90deg,#8bd17c,#f7c948 55%,#f0643c);background-size:var(--full,100%) 100%;border-radius:7px;width:0;height:100%;display:block}.mtext{justify-content:space-between;gap:8px;margin-top:8px;font-size:15px;font-weight:600;display:flex}.mtext em{color:var(--ui-accent);font-style:normal;font-weight:700}.meter.idle .bar{display:none}.meter.idle .mtext{margin-top:0}@media (min-width:1000px){.meter{align-self:center;width:440px}}.toast{left:50%;top:calc(env(safe-area-inset-top,0px) + 90px);background:var(--ui-fg);color:#fff;pointer-events:none;z-index:9;white-space:nowrap;border-radius:14px;padding:10px 16px;font-weight:600;position:absolute;transform:translate(-50%)}@media (orientation:landscape) and (max-height:500px){.card{gap:8px;padding:16px 18px}.btn{min-height:46px}.card h2{font-size:22px}.word{font-size:38px}.tcard{grid-template-columns:1fr 1fr;gap:6px 18px;width:min(620px,100%);padding:18px 20px;display:grid}.tcard .game-title{font-size:36px}.tcard .tl{justify-content:center}.tcard .foot{grid-column:1/-1;margin-top:-4px}.hcard{width:min(620px,100%)}.holes{grid-template-columns:repeat(3,1fr);display:grid}.hole{grid-template-columns:1fr auto;min-height:0;padding:10px 12px}.hole .n{width:40px;height:40px;font-size:20px}.hole .hole-text{order:3;grid-column:1/-1}.scard{grid-template-columns:1fr 200px;align-content:start;gap:8px 16px;width:min(560px,100%);display:grid}.scard h2,.scard table{grid-column:1}.scard table{grid-row:2/span 3;font-size:15px}.scard th,.scard td{padding:4px}.scard .sub,.scard .badge,.scard .btn{grid-column:2}.hud{padding-top:calc(env(safe-area-inset-top,0px) + 10px);padding-bottom:calc(10px + var(--ui-bottom))}.chip{padding:6px 12px}.chip b{font-size:22px}.chip small{font-size:11px}.meter{border-radius:18px;width:320px;min-height:44px;padding:8px 12px}.mtext{margin-top:4px;font-size:13px}.meter-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.meter:not(.idle) .meter-text{display:none}.meter:not(.idle) .mtext{justify-content:flex-end}}@media (orientation:landscape) and (max-height:380px){.meter{width:300px}.scard table{font-size:14px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@font-face{font-family:Fredoka;font-style:normal;font-weight:500 700;font-display:swap;src:url(/fonts/fredoka-latin.woff2)format("woff2")}body{background:linear-gradient(#bfe6ff 0 46%,#8fd18a 46% 58%,#3e8e3e 58%)}
