:root{--ink:#2d4c43;--soft:#6f8273;--cream:#fcfbf3;--orange:#e7855a;--green:#48795e}*{box-sizing:border-box}body{margin:0;background:#eef2e3;color:var(--ink);font-family:"Segoe UI",system-ui,sans-serif}.app{max-width:1400px;margin:0 auto;padding:24px 40px 12px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;background:#e9aa78;color:var(--cream);width:48px;height:48px;border-radius:17px;font-size:32px;transform:rotate(-9deg)}h1{font-size:27px;letter-spacing:-1px;margin:0;font-weight:800}.brand p{margin:2px 0 0;font-size:12px;letter-spacing:.6px;color:var(--soft)}button{font:inherit;cursor:pointer;border:0;color:var(--ink);font-weight:700;transition:transform .12s,background .12s}button:hover{transform:translateY(-2px);background:#e5ebd8}button:active{transform:translateY(1px)}button:focus-visible,canvas:focus-visible{outline:3px solid #e7855a;outline-offset:3px}.toolbar{display:flex;gap:8px}.light-button,.icon-button{background:#fcfbf3;border:1px solid #d8dfce;min-height:43px;border-radius:12px;padding:10px 18px}.icon-button{width:44px;padding:0;font-size:24px}.game-frame{position:relative;border-radius:24px;overflow:hidden;background:#ecf4de;box-shadow:0 14px 40px #37564112,0 0 0 1px #d3decb}.stage-bar{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:24px 28px;pointer-events:none;background:linear-gradient(#f6faedf0,#f6faed00)}.stage-name{display:flex;align-items:center;gap:12px}.stage-name>span{font-size:22px;border:1px solid #b4c6ac;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;font-weight:600}.stage-name small{font-size:9px;letter-spacing:2px;font-weight:700;color:#7f977a}.stage-name h2{font-size:20px;margin:3px 0 0;font-weight:700;letter-spacing:-.3px}.counters{display:flex;gap:22px;align-items:center}#shot-counter{display:flex;gap:7px}.shot-dot{background:var(--orange);border:2px solid #c57350;width:19px;height:19px;border-radius:50%;display:inline-block;box-shadow:inset -3px -3px #ce70433d}.shot-dot.used{background:#ccd9bf;border-color:#bccab0;box-shadow:none}.target-counter{display:flex;align-items:center;gap:8px;background:#fcfbf3b8;border-radius:20px;padding:8px 13px;font-size:14px}.target-counter>span:first-child{color:#dcac47;font-size:23px}.counter-label{font-size:11px;color:var(--soft)}canvas{display:block;width:100%;height:auto;touch-action:none;user-select:none;cursor:grab}canvas:active{cursor:grabbing}.play-hint{position:absolute;left:27px;bottom:23px;display:flex;gap:10px;align-items:center;pointer-events:none}.play-hint strong{font-size:14px;display:block}.play-hint small{font-size:11px;display:block;color:#6d8064;margin-top:3px}.mouse-symbol{font-size:27px;width:41px;height:41px;display:grid;place-items:center;border:1px solid #aabe8a;border-radius:12px}.skip-button{position:absolute;bottom:26px;right:28px;border-radius:12px;padding:12px 18px;background:var(--cream);box-shadow:0 2px 6px #2d4c4310;font-size:13px}.power-wrap{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);width:230px;text-align:center;font-size:9px;letter-spacing:2px;font-weight:800}.power-wrap>div{height:9px;background:#bdcca9;border-radius:6px;margin:6px 0}.power-wrap i{display:block;height:100%;background:#e7855a;border-radius:6px}.power-wrap small{letter-spacing:0;font-weight:500}.power-wrap button{display:block;margin:7px auto 0;background:#fff9e9;border-radius:7px;padding:5px 12px;font-size:11px}[hidden]{display:none!important}.outcome-overlay,.level-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#274c4338;backdrop-filter:blur(4px);padding:20px}.outcome-card{width:410px;background:var(--cream);padding:30px 28px;text-align:center;border-radius:24px;box-shadow:0 12px 50px #264c4320}.outcome-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#f6e7b3;color:#d3a23c;font-size:51px;margin:0 auto 18px}.outcome-card>p:first-of-type,.picker-heading p{font-size:10px;font-weight:800;letter-spacing:2px;color:#85966d;margin:0 0 10px}.outcome-card h2{font-size:28px;letter-spacing:-1px;margin:0 0 10px}.outcome-card p{font-size:14px;color:var(--soft)}.outcome-actions{display:flex;flex-direction:column;gap:9px;margin-top:24px}.primary-button{background:var(--green);color:#fff9ed;padding:13px 20px;border-radius:12px}.primary-button:hover{background:#38654d}.level-card{background:var(--cream);border-radius:24px;padding:26px;width:700px;max-height:95%;overflow:auto}.picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.picker-heading h2{margin:0;font-size:24px;letter-spacing:-.6px}#level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.level-choice{padding:20px 10px;background:#edf1e0;border:1px solid #d6dfc9;border-radius:15px;text-align:left;position:relative}.level-choice.current{border:2px solid #e7855a}.level-choice .mini-scene{display:block;height:49px;font-size:35px;letter-spacing:0;color:#bd9364;margin-bottom:12px}.level-choice strong{display:block;font-size:14px}.level-choice small{display:block;margin-top:5px;font-weight:400;font-size:11px;color:#76846a}.level-choice .badge{position:absolute;right:12px;top:12px;color:#d2a044;font-size:22px}.picker-note{text-align:center;font-size:12px;color:#7c8b70;margin:20px 0 0}footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7b8d77;padding:17px 3px;gap:14px}footer i{font-style:normal;margin:0 9px;color:#a8b49a}kbd{font-family:inherit;font-size:10px;background:#fafbef;border:1px solid #d5ddc8;border-radius:4px;padding:2px 5px}.material-key{display:flex;align-items:center;gap:6px}.material-key b{width:9px;height:9px;border-radius:2px;margin-left:8px}.wood-dot{background:#cd9c65}.glass-dot{background:#7fbfc5}.stone-dot{background:#8b969d}.offline-label{font-size:10px}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}@media(max-width:900px){.app{padding:16px}.stage-bar{padding:16px}.stage-name h2{font-size:16px}.counters{gap:10px}.play-hint{bottom:15px;left:15px}.play-hint small,.offline-label{display:none}footer{font-size:10px}.counter-label{display:none}.power-wrap{bottom:12px}}@media(max-width:600px){.app{padding:8px}.topbar{margin-bottom:10px}.brand-mark{width:36px;height:36px;font-size:24px}.brand{gap:8px}h1{font-size:20px}.brand p{font-size:9px}.light-button{padding:9px 12px}.toolbar .light-button span{display:none}.stage-bar{padding:9px}.stage-name small{display:none}.stage-name>span{width:29px;height:29px;font-size:14px}.stage-name h2{font-size:12px}.stage-name{gap:6px}.shot-dot{width:12px;height:12px}#shot-counter{gap:3px}.target-counter{padding:2px 7px;font-size:11px;gap:4px}.target-counter>span:first-child{font-size:17px}.play-hint{bottom:9px;left:10px;gap:5px}.play-hint strong{font-size:10px}.mouse-symbol{width:24px;height:24px;font-size:16px}.material-key{display:none}.game-frame{border-radius:14px}.power-wrap{width:160px;bottom:5px}.skip-button{padding:7px;bottom:10px;right:10px;font-size:10px}#level-grid{grid-template-columns:repeat(2,1fr)}.level-card{padding:16px}.picker-heading h2{font-size:18px}.level-choice{padding:12px}.level-choice .mini-scene{display:none}.picker-heading{margin-bottom:12px}.outcome-card{padding:16px}.outcome-icon{width:45px;height:45px;font-size:30px;margin-bottom:9px}.outcome-card h2{font-size:21px}.outcome-actions{margin-top:10px}.outcome-card p{margin:8px 0}.outcome-overlay,.level-overlay{padding:10px}}
/* Ball choices, adventure trail and motion settings. */
.ammo-picker{position:absolute;bottom:18px;right:22px;display:flex;gap:6px}.ammo-choice{position:relative;min-width:53px;padding:7px 7px 5px;border:2px solid transparent;border-radius:14px;background:#fffbeeeb;font-size:10px;box-shadow:0 2px 6px #354d4210}.ammo-choice.selected{border-color:#d88a57;background:#fff4d9}.ammo-choice:disabled{cursor:default;opacity:.42;transform:none}.ammo-choice small{display:block;font-size:9px;margin-top:2px}.ammo-choice b{position:absolute;top:1px;right:3px;background:#fafbf1;border-radius:50%;padding:1px 4px;font-size:10px}.ammo-icon{display:block;font-size:27px;line-height:30px;color:#d9865c}.ammo-icon.heavy{color:#718aa7}.ammo-icon.bouncy{color:#a879bb}.ammo-icon.bomb{color:#455467}.shot-dot.heavy{background:#718aa7;border-color:#576d88}.shot-dot.bouncy{background:#af82c1;border-color:#815997}.shot-dot.bomb{background:#455467;border-color:#29384a;position:relative}.shot-dot.bomb:before{content:'';position:absolute;top:-6px;left:7px;width:4px;height:7px;background:#bc9b58;border-radius:2px}.shot-dot.used{background:#ccd9bf;border-color:#bccab0;box-shadow:none}.shot-dot.used:before{display:none}.turn-badge{position:absolute;top:92px;left:25px;padding:7px 12px;border-radius:12px;font-size:12px;font-weight:700;pointer-events:none}.power-wrap>div{height:12px}.power-wrap i{transition:width .06s linear,background .1s,box-shadow .1s}.level-card{width:760px}.sticker-album{display:flex;justify-content:center;gap:14px;padding:12px;margin:0 0 18px;border-radius:16px;background:#f5edd5}.sticker{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e4e7d9;color:#a5ad97;font-size:27px}.sticker.earned{background:#fff8da;box-shadow:0 2px 6px #ae9b5730}#level-grid{position:relative;background:linear-gradient(145deg,#e0ecd1,#e1efe8 60%,#e4ecf7);padding:12px;border-radius:20px;gap:15px}.level-choice.garden{background:#edf3dce8}.level-choice.beach{background:#fbefcce8}.level-choice.snow{background:#e7eff9ee}.level-choice:nth-child(3n+2){transform:translateY(6px)}.level-choice:nth-child(3n+2):hover{transform:translateY(4px)}.trail-number{position:absolute;top:10px;left:10px;border:2px solid #b7c8a9;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:#fff9e8}.level-choice .mini-scene{text-align:center;color:inherit}.level-choice small{line-height:1.5}[data-reduced-motion=true] button{transition:none}[data-reduced-motion=true] button:hover{transform:none}[data-reduced-motion=true] .power-wrap i{transition:none}@media(prefers-reduced-motion:reduce){button{transition:none}}@media(max-width:900px){.ammo-picker{right:13px;bottom:13px;gap:4px}.ammo-choice{min-width:44px;padding:4px}.ammo-icon{font-size:22px;line-height:25px}.turn-badge{top:73px;left:16px;font-size:10px}}@media(max-width:600px){.toolbar{gap:3px}.toolbar .icon-button{width:32px;min-height:35px;font-size:19px}.toolbar .light-button{padding:5px;font-size:11px;min-height:35px}.brand p{display:none}h1{font-size:16px}.brand-mark{display:none}.ammo-picker{bottom:7px;right:7px;gap:3px}.ammo-choice{min-width:33px;padding:2px;border-radius:8px}.ammo-icon{font-size:20px;line-height:23px}.ammo-choice small{display:none}.ammo-choice b{font-size:8px}.turn-badge{top:49px;left:10px;padding:3px 6px;font-size:9px}.play-hint strong{max-width:100px}.power-wrap{width:145px;left:45%}.level-choice .trail-number{position:static;margin-bottom:5px}.sticker-album{gap:7px;padding:6px;margin-bottom:8px}.sticker{width:30px;height:30px;font-size:21px}.picker-heading{margin-bottom:8px}.picker-note{margin:10px 0 0}#shot-counter{gap:4px}.stage-name h2{max-width:110px}.counters{gap:7px}.shot-dot.bomb:before{left:4px}}
/* The numbered stops follow a visible winding trail. */
#level-grid:before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 280' preserveAspectRatio='none'%3E%3Cpath d='M100 70 H500 V210 H300' fill='none' stroke='%23a9bc91' stroke-width='8' stroke-linecap='round' stroke-dasharray='2 12'/%3E%3C/svg%3E") center/100% 100% no-repeat;pointer-events:none}.level-choice{z-index:1}.level-choice:nth-child(4){grid-column:3;grid-row:2}.level-choice:nth-child(5){grid-column:2;grid-row:2}@media(max-width:600px){.level-choice:nth-child(4),.level-choice:nth-child(5){grid-column:auto;grid-row:auto}#level-grid:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M100 50 H300 V150 H100 V250' fill='none' stroke='%23a9bc91' stroke-width='8' stroke-linecap='round' stroke-dasharray='2 12'/%3E%3C/svg%3E")}}
/* Keep the whole stage visible in a wide but shorter PC window. */
@media(min-width:901px) and (max-height:850px){.app{max-width:min(1400px,calc(177.778vh - 222px));min-width:700px;padding-top:16px}.topbar{margin-bottom:14px}}
.icon-button:disabled,.outcome-actions button:disabled{opacity:.45;cursor:default;transform:none}
/* Compact input choice; aiming HUD shares the existing power indicator. */
.control-toggle{white-space:nowrap;padding-left:10px;padding-right:10px}.control-toggle[aria-pressed=true]{background:#f5e6b9;border-color:#c5a66b}#angle-readout{letter-spacing:0;margin-left:3px}#angle-value{font-size:12px}.toolbar{flex-wrap:wrap;justify-content:flex-end}.power-wrap{background:#fcfbf3e8;padding:8px 12px;border-radius:13px;width:240px}.power-wrap>div{margin:5px 0}.power-wrap button{margin-top:5px}.play-hint{max-width:30%}.play-hint .mouse-symbol{flex-shrink:0}@media(max-width:900px){.brand{flex-shrink:0}.topbar{gap:10px}.toolbar{gap:5px}.toolbar .light-button{padding:8px}.power-wrap{width:195px;padding:6px 9px}.play-hint strong{font-size:11px}footer{flex-wrap:wrap}}@media(max-width:600px){.topbar{align-items:flex-start}.toolbar{max-width:80%}.power-wrap{width:155px;padding:4px 7px;left:46%;font-size:8px}.power-wrap button{font-size:9px;padding:3px 7px}.power-wrap small{font-size:8px}.play-hint .mouse-symbol{display:none}.play-hint strong{max-width:100px;font-size:9px}.play-hint{max-width:25%}#angle-value{font-size:10px}}
.power-wrap[data-easy=true]{padding:5px 10px;bottom:8px}.power-wrap[data-easy=true]>div{height:9px;margin:4px 0}.power-wrap[data-easy=true] small{font-size:9px}.power-wrap[data-easy=true] button{display:none}
.metal-dot{background:linear-gradient(#f3f6f8,#a6b2bd);border:1px solid #64727e}
/* Large cosmetic choices and optional short picnics. */
.face-bar{display:flex;align-items:center;justify-content:center;gap:12px;margin:-8px 0 10px;font-size:12px;font-weight:700}#face-picker{display:flex;gap:7px}.face-choice{width:44px;height:42px;background:#fff9e9;border:2px solid #d4ddc6;border-radius:13px;font-size:26px;padding:0}.face-choice[aria-pressed=true]{border-color:#d78555;background:#ffefce}.again-button{background:#f4d577;border:2px solid #c9a74b;min-width:105px;font-size:17px}.picker-tabs{display:flex;justify-content:center;gap:10px;margin-bottom:12px}.picker-tabs [aria-pressed=true]{background:#f5e6b9;border-color:#c5a66b}#level-grid[data-group=quick]:before{display:none}#level-grid[data-group=quick] .level-choice{grid-column:auto;grid-row:auto;transform:none}.sticker-album{flex-wrap:wrap;gap:8px;margin-bottom:12px;padding:8px}.sticker{width:34px;height:34px;font-size:23px}.outcome-actions #retry-button{font-size:18px;min-height:48px}@media(max-width:900px){.face-bar{margin:-6px 0 8px}.brand p{display:none}.toolbar{gap:4px}.topbar{margin-bottom:12px}}@media(max-width:600px){.face-bar{margin:0 0 7px;gap:8px}.face-choice{width:42px;height:40px}.again-button{min-width:85px;font-size:14px}.picker-tabs{gap:6px;margin-bottom:8px}.picker-tabs button{padding:7px 12px}.sticker-album{gap:4px}.sticker{width:25px;height:25px;font-size:18px}.picker-heading{margin-bottom:8px}}
.outcome-card{max-height:100%;overflow:auto}@media(max-width:900px){.outcome-card{padding:16px}.outcome-icon{width:40px;height:40px;font-size:30px;margin-bottom:8px}.outcome-card>p:first-of-type{margin-bottom:6px}.outcome-card h2{font-size:23px;margin-bottom:8px}.outcome-card p{font-size:12px;margin:6px 0}.outcome-actions{margin-top:12px;gap:6px}.outcome-actions .primary-button{padding:10px 16px}.outcome-actions .light-button{padding:8px 16px;min-height:40px}}
