:root{--ink: #0f2418;--text: #ffffff;--glass: rgba(12, 30, 24, .45);--line: rgba(255, 255, 255, .22);--accent: #ffd43b;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px)}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;overflow:hidden;background:#1b4332}body,canvas{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}body{font-family:Outfit,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text)}#game{position:fixed;inset:0;width:100%;height:100%;display:block}h1,h2,h3,.btn,.stats b,#toast{font-family:Fredoka,Outfit,system-ui,sans-serif}[hidden]{display:none!important}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.glass{background:var(--glass);border:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 8px 24px #0000002e}.btn{min-height:48px;padding:0 20px;border-radius:16px;font-weight:600;font-size:15px;letter-spacing:.02em;transition:transform .12s,filter .12s}.btn:not(:disabled):hover{filter:brightness(1.12)}button:not(:disabled):active{transform:scale(.95)}.btn.primary{background:linear-gradient(180deg,#ffe066,#fab005);color:#3b2a00;box-shadow:0 5px #b97c00,0 12px 24px #00000040}.btn.big{width:100%;min-height:54px;font-size:18px}.btn.active{background:var(--accent);color:#3b2a00}.icon{width:48px;height:48px;flex-shrink:0;border-radius:14px;font-size:20px}.pill{border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600}#hud{position:fixed;inset:0;pointer-events:none}#hud button,#hud .glass{pointer-events:auto}.hud-top{position:absolute;top:calc(10px + var(--safe-top));left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right));display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.stats{display:flex;border-radius:16px;padding:4px 6px}.stats div{min-width:62px;text-align:center}.stats small{display:block;font-size:10px;font-weight:700;opacity:.75;letter-spacing:.08em}.stats b{font-size:22px;line-height:1.1}#hud-name{position:absolute;top:calc(70px + var(--safe-top));left:50%;transform:translate(-50%);white-space:nowrap;pointer-events:none!important;font-size:12px}.hud-bottom{position:absolute;bottom:calc(14px + var(--safe-bottom));left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px}.hud-bottom .btn{white-space:nowrap;font-size:13px;padding:0 16px}.btn.aim{width:72px;height:72px;border-radius:50%;font-size:18px;background:linear-gradient(180deg,#69db7c,#2b8a3e);border:3px solid rgba(255,255,255,.8);box-shadow:0 8px 20px #0000004d}.btn.aim.active{background:linear-gradient(180deg,#ffe066,#fab005)}#hint{position:absolute;bottom:calc(100px + var(--safe-bottom));left:50%;transform:translate(-50%);width:max-content;max-width:calc(100% - 32px);text-align:center;font-size:12px;pointer-events:none!important}#power{position:absolute;right:calc(14px + var(--safe-right));top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.6)}.power-track{width:18px;height:min(220px,36vh);display:flex;align-items:flex-end;overflow:hidden;border-radius:12px;background:#0006;border:2px solid rgba(255,255,255,.7)}#power-fill{width:100%}#screen{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;padding:calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));animation:fade .2s ease-out}#screen.dim{background:#040e0a59}#screen.bottom{align-items:flex-end}.menu{width:min(340px,100%);max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:12px;text-align:center;padding:4px 4px 8px;touch-action:pan-y}.menu h1{font-size:clamp(40px,12vw,58px);line-height:.95;text-shadow:0 4px 0 #1b4332,0 10px 30px rgba(0,0,0,.35)}.menu h1 span,.menu h1 em{display:block}.menu h1 em{font-style:normal;color:var(--accent)}.sub{font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.7);margin-bottom:6px}.toggles{display:flex;justify-content:center;gap:10px}.panel{width:min(760px,100%);max-height:100%;display:flex;flex-direction:column;border-radius:24px;background:#0a1c18c7}.panel-head{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line)}.panel-head h2{flex:1}.panel-head.center{text-align:center}.coins{color:var(--accent)}.scroll{overflow-y:auto;padding:6px 14px 18px;touch-action:pan-y;-webkit-overflow-scrolling:touch}.scroll h3{margin:14px 0 8px}h3 small{font-weight:400;opacity:.65;font-size:12px}.grid{display:grid;gap:10px}.grid.holes{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}.grid.items{grid-template-columns:repeat(auto-fill,minmax(124px,1fr))}.hole,.item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:16px;text-align:center}.hole b{font-size:24px}.hole span,.item span{font-size:12px;font-weight:600}.hole small,.item small{font-size:11px;opacity:.85}.hole.theme-0{background:linear-gradient(160deg,#52b73c8c,#14462880)}.hole.theme-1{background:linear-gradient(160deg,#e8a04699,#6e3c1980)}.hole.theme-2{background:linear-gradient(160deg,#7864f099,#1e145a8c)}.item.used{border:2px solid var(--accent)}.item.poor{opacity:.6}.swatch{width:48px;height:48px;display:grid;place-items:center;font-size:28px}.swatch.ball{border-radius:50%;box-shadow:inset -8px -10px 16px #0006,inset 5px 6px 10px #ffffff73}.swatch.trail{width:80px;height:14px;margin:17px 0;border-radius:999px}.stars i{font-style:normal;color:#ffffff40}.stars i.on{color:var(--accent);text-shadow:0 0 8px rgba(255,212,59,.7)}.card{width:min(420px,100%);max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:24px;text-align:center;background:#0a1c18b8}.card h2{font-size:34px;color:var(--accent)}.big-stars{font-size:40px;letter-spacing:6px}.reward{color:var(--accent);font-weight:700}.row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}.row .btn{flex:1;padding:0 10px;font-size:13px}.note{margin-top:10px;font-size:13px;opacity:.85;text-align:center}.total{margin-top:12px;text-align:center;font-size:40px;font-weight:700}.total em{font-style:normal;color:var(--accent)}.score{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:center}.score th,.score td{padding:6px 2px;border:1px solid var(--line)}.score th:first-child{width:68px;font-size:11px}.score td.now{background:#ffd43b40}.under{color:#8ce99a;font-weight:700}.over{color:#ffa8a8;font-weight:700}#toast{position:fixed;top:28%;left:50%;z-index:20;transform:translate(-50%);white-space:nowrap;pointer-events:none;font-size:clamp(28px,8vw,48px);font-weight:700;text-shadow:0 3px 0 var(--ink),0 6px 24px rgba(0,0,0,.5);animation:pop .35s cubic-bezier(.2,1.6,.4,1)}#toast.good{color:var(--accent)}#toast.danger{color:#ff8787;font-size:clamp(24px,7vw,40px)}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translate(-50%) scale(.5)}}@media(max-height:520px){.menu{gap:8px}.menu h1{font-size:34px}.menu h1 span,.menu h1 em{display:inline;margin:0 4px}.btn.big{min-height:44px;font-size:15px}#hud-name{display:none}.btn.aim{width:60px;height:60px}.hud-bottom{left:auto;right:calc(10px + var(--safe-right));bottom:calc(8px + var(--safe-bottom));transform:none}#hint{top:calc(70px + var(--safe-top));bottom:auto}#power{top:44%}.power-track{height:30vh}.card{gap:5px;padding:12px}.card h2{font-size:24px}.big-stars{font-size:26px}#screen.bottom{align-items:center}}
