:root{color-scheme:dark;font-family:"Trebuchet MS",Arial,sans-serif;color:#fff7e5;background:#102a28}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,summary{font:inherit}button{min-height:44px;cursor:pointer;border:2px solid #ffffff30;border-radius:12px;background:#173b37;color:#fff6df;padding:10px 16px;font-weight:900;touch-action:manipulation;box-shadow:0 3px 0 #09261e}button:hover{background:#28594b}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #f9ce78;outline-offset:3px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}
#app{position:relative;width:100%;height:100dvh;min-height:240px;overflow:hidden}#world{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%}.vignette{pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,#102b2838,transparent 30%,transparent 70%,#102b2866)}
.menu{position:absolute;left:6%;top:50%;transform:translateY(-50%);width:440px;max-width:88%;max-height:94%;overflow:auto;padding:12px 4px 15px}.menu h1{font-family:"Arial Black","Trebuchet MS",sans-serif;font-size:80px;line-height:.98;font-weight:900;letter-spacing:-4px;text-transform:uppercase;margin:0 0 18px;filter:drop-shadow(0 5px 0 #14372f);-webkit-text-stroke:2px #14372f;paint-order:stroke fill;transform:rotate(-3deg)}h1 em{color:#f1d394;font-style:italic}.lede{font-size:20px;font-weight:900;text-shadow:0 2px 3px #123a2b;margin:0 0 24px}.primary{background:linear-gradient(#ffe1a2,#e9c475);color:#153831;border-color:#f5deae;box-shadow:0 4px 0 #7b602c}.primary:hover{background:#ffdfa4}#play{width:315px;max-width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px 20px;font-size:23px}.quiet{background:#11372b9c;border:0;font-size:15px;padding:10px 15px;margin-top:10px}
#practice{margin-top:20px;width:315px;max-width:100%}summary{list-style:none;cursor:pointer;min-height:44px;padding:11px 14px;background:#153b32de;border:2px solid #e5cf9840;border-radius:10px;font-size:17px;font-weight:900;box-shadow:0 3px 0 #09261e}summary::-webkit-details-marker{display:none}#holePicker{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:10px 0 3px}#holePicker button{font-size:19px;min-width:44px;min-height:44px;padding:4px;border-radius:10px}
#hud{position:absolute;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 20px);display:flex;gap:22px;align-items:center;pointer-events:none;text-shadow:2px 2px 0 #153b2d,-1px -1px 0 #153b2d,1px -1px 0 #153b2d,-1px 1px 0 #153b2d}#hud button{pointer-events:auto}.hole-label{min-width:0;width:210px}.hole-label>span{display:block;color:#f5d285;font-size:16px;font-weight:900;margin-bottom:3px}.hole-label strong{display:block;font-size:23px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stats{display:flex;gap:22px}.stats span{font-size:13px;font-weight:900}.stats b{display:block;text-align:center;font-size:34px;font-weight:900;color:#fff7e5;margin-top:0}#pause{padding:8px 14px;font-size:20px}
#hint{position:absolute;top:95px;left:50%;transform:translateX(-50%);text-align:center;font-size:17px;font-weight:900;color:#fff0c7;white-space:nowrap;max-width:94%;overflow:hidden;text-overflow:ellipsis;text-shadow:2px 2px 0 #174532,-1px -1px 0 #174532,1px -1px 0 #174532,-1px 1px 0 #174532}
#controls{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:370px;max-width:calc(100% - 28px);background:#11312dbc;border-radius:16px;padding:10px 14px;backdrop-filter:blur(5px)}.power-row{display:flex;justify-content:space-between;font-size:14px;font-weight:900;color:#ffdfa0}#power{width:100%;margin:0;height:30px;accent-color:#f0cd80;cursor:pointer}.actions{display:flex;gap:8px}.actions .primary{flex:1;font-size:19px}
.panel{background:#11382dee;border:2px solid #e3c78580;box-shadow:0 7px 0 #08271ee0;border-radius:20px}.dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:380px;max-width:90%;max-height:90%;overflow:auto;padding:24px;text-align:center}.dialog h2{font-family:"Arial Black","Trebuchet MS",sans-serif;font-size:38px;font-weight:900;color:#ffe0a0;text-shadow:0 3px 0 #765929;margin:10px 0 15px}.eyebrow{font-size:15px;font-weight:900;color:#e9c985}.dialog p{color:#e3ecda;font-size:15px;line-height:1.5;font-weight:700}.dialog button{display:block;width:100%;margin-top:12px;font-size:18px}#toast{position:absolute;left:50%;top:40%;transform:translateX(-50%);pointer-events:none;font-family:"Arial Black","Trebuchet MS",sans-serif;font-size:36px;font-weight:900;color:#ffe2a3;text-shadow:2px 3px 0 #173c32;opacity:0;transition:opacity .3s;white-space:nowrap}#scorecard{display:grid;grid-template-columns:repeat(9,1fr);gap:3px;margin:18px 0}#scorecard span{padding:7px 0;border-radius:5px;background:#ffffff0a;color:#e9d6a5;font-size:12px;font-weight:900}#scorecard b{display:block;font-size:20px;margin-top:5px}
@media(max-width:600px){.menu{left:6%;width:340px}.menu h1{font-size:60px;letter-spacing:-3px}.lede{font-size:17px}.hole-label{width:123px}.hole-label>span{font-size:13px}.hole-label strong{font-size:17px}#hud{gap:10px}.stats{gap:10px}.stats span{font-size:11px}.stats b{font-size:26px}#pause{padding:8px 10px}#hint{top:88px;font-size:14px}.dialog{padding:22px}.dialog h2{font-size:33px}.dialog button{font-size:17px}}
@media(max-height:500px){.menu{width:340px;left:3%;padding:8px 4px}.menu h1{font-size:49px;letter-spacing:-2px;margin-bottom:8px}.lede{font-size:16px;margin-bottom:12px}#play{padding:10px 16px;font-size:20px;min-height:48px}#practice{margin-top:12px}.quiet{display:none}#holePicker{grid-template-columns:repeat(9,44px);width:452px;gap:6px}#practice[open]{width:470px;max-width:none}.menu:has(#practice[open]){width:470px;max-width:94%}#hud{top:8px;gap:18px}.hole-label>span{font-size:13px}.hole-label strong{font-size:19px}.stats b{font-size:26px}.stats span{font-size:12px}#hint{top:76px;left:18px;transform:none;max-width:45%;font-size:13px}#controls{left:auto;right:10px;bottom:10px;transform:none;width:285px;padding:8px 12px}#power{height:24px}.dialog{padding:16px}.dialog h2{font-size:31px;margin:8px 0}.dialog p{margin:10px 0}#scorecard{margin:12px 0}.dialog button{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
