@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#173c35;background:#f6f3e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:76px;max-width:1100px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:0 28px;border-bottom:1px solid #d8ded2}.brand{text-decoration:none;color:inherit;font-weight:800;letter-spacing:2px;font-size:17px;display:flex;align-items:center;gap:10px}.apple{color:#e36c41;font-size:29px}.place{font-size:10px;letter-spacing:2px;border-left:1px solid #b5c3b3;padding-left:14px;margin-left:5px}.icon{border:1px solid #cbd3c4;border-radius:30px;padding:10px 15px;background:transparent;color:inherit;cursor:pointer}main{max-width:900px;margin:auto;padding:36px 26px 0}.heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#65796c}h1{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:36px;margin:8px 0 0;letter-spacing:-1px}.tag{font-family:Georgia,serif;font-style:italic;font-size:15px;padding-bottom:5px;color:#607567}.game{border-radius:20px;overflow:hidden;background:#c0e3d9;box-shadow:0 12px 45px #183d3514;border:1px solid #163d3520}.hud{height:78px;background:#173c35;color:#f4f4dc;display:flex;justify-content:space-between;align-items:center;padding:12px 25px}.hud>div{width:33%}.hud small{font-size:9px;letter-spacing:2px;color:#b9ceb4;display:block;margin-bottom:3px}.hud strong{font-size:25px;font-weight:600}.hud strong span{font-size:12px;font-weight:400}.center{text-align:center}.right{text-align:right}#lives{font-size:17px;letter-spacing:2px;color:#f4ba65}.scene{width:100%;position:relative;aspect-ratio:720/670;max-height:calc(100dvh - 210px);min-height:400px;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:#163e3528;backdrop-filter:blur(2px)}.overlay[hidden]{display:none}.card{width:345px;max-width:100%;background:#faf8ecf7;border-radius:16px;padding:28px;box-shadow:0 10px 50px #113e3540;text-align:center}.pill{font-size:9px;font-weight:700;letter-spacing:2px;color:#55765b}h2{font-family:'Fraunces',Georgia,serif;font-size:44px;line-height:1;letter-spacing:-1.6px;margin:15px 0}#intro{font-size:13px;line-height:1.6;color:#526259;margin:0 0 18px}.instructions{border-top:1px solid #dce1d1;padding-top:4px;text-align:left}.instructions p{display:flex;gap:12px;align-items:center;font-size:11px;line-height:1.6;margin:10px 0}.instructions p>b{flex-shrink:0;width:29px;height:29px;border-radius:50%;text-align:center;line-height:29px;font-size:19px}.red{background:#f9d9c3;color:#b54825}.blue{background:#d0e6e9;color:#287d96}.instructions strong{font-size:12px}.primary{width:100%;border:0;background:#e9ac4d;color:#173c35;border-radius:9px;font-family:inherit;font-weight:700;font-size:14px;padding:16px;cursor:pointer;margin-top:16px;display:flex;justify-content:space-between;align-items:center}.primary:hover{background:#f1bc64}.primary:active{transform:translateY(1px)}.card>small{display:block;font-size:9px;color:#748174;margin-top:13px}.water{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;background:#173c35e8;color:#fff;padding:10px 13px;border-radius:30px;font-size:9px;letter-spacing:1px;pointer-events:none}.water>div{width:95px;height:6px;background:#496f64;border-radius:5px;overflow:hidden}.water i{display:block;height:100%;width:100%;background:#8fd9ed;transition:width .1s}.pause{position:absolute;top:13px;right:14px;width:37px;height:37px;border:1px solid #fff7;background:#f5f3dfdc;color:#173c35;border-radius:50%;font-weight:bold;cursor:pointer}#notice{position:absolute;left:50%;top:11px;transform:translateX(-50%);max-width:80%;text-align:center;background:#fff9e8eb;border-radius:30px;padding:9px 16px;font-size:12px;font-weight:700;pointer-events:none;opacity:0;transition:opacity .2s}.under{display:flex;justify-content:space-between;font-size:11px;color:#657568;margin:15px 3px}footer{text-align:center;font-size:10px;color:#748174;padding:10px 0 25px;line-height:1.8}footer span{color:#929c8d}button:focus-visible,canvas:focus-visible{outline:3px solid #e9ac4d;outline-offset:3px}@media(min-width:850px){main{max-width:790px}.scene{aspect-ratio:720/650;max-height:none;height:600px}}@media(max-width:560px){header{height:57px;padding:0 16px}.brand{font-size:14px;letter-spacing:1px}.place{font-size:8px}.icon{font-size:10px;padding:8px 10px}main{padding:19px 12px 0}.heading{margin-bottom:15px}.eyebrow{font-size:8px}h1{font-size:27px}.tag{display:none}.hud{padding:10px 15px;height:66px}.hud strong{font-size:23px}#lives{font-size:13px;letter-spacing:0}.scene{aspect-ratio:390/530;min-height:430px;max-height:calc(100dvh - 205px)}.game{border-radius:15px}.card{padding:24px 22px;width:300px}h2{font-size:40px}.under{font-size:9px;margin:12px 0}footer{font-size:9px}.hud small{font-size:8px;letter-spacing:1px}}@media(max-height:700px){.card{padding:15px 22px}h2{font-size:32px;margin:10px 0}.instructions p{margin:7px 0}.primary{margin-top:8px}#intro{margin-bottom:10px}}
.leaderboard{margin:25px 0 20px;padding:23px;background:#eeeedf;border:1px solid #d8decc;border-radius:16px}.leaderhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.leaderboard h2{font-size:25px;letter-spacing:-.7px;margin:8px 0}.leadernote,.leaderboard small{font-size:11px;color:#687767;line-height:1.5}.leaderboard ol{padding:0;list-style:none;margin:16px 0 0}.leaderboard li{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid #d8decc;font-size:14px}.rank{color:#8b967e;display:inline-block;width:28px;font-size:11px}.leaderboard li:first-child .rank{color:#af762a}.leaderboard li strong{font-variant-numeric:tabular-nums}.leaderboard [role=status]{font-size:12px;line-height:1.5;color:#657568}#submitform{border-top:1px solid #ccd5bf;margin-top:18px;padding-top:17px}#submitform[hidden]{display:none}#submitform label{display:block;font-weight:700;font-size:13px;margin-bottom:9px}.scoreentry{display:flex;gap:8px;margin-bottom:9px}.scoreentry input{min-width:0;flex:1;border:1px solid #b4c1aa;border-radius:8px;padding:12px;font-size:16px;color:#173c35;background:#fffdf2}.scoreentry button{margin:0;width:auto;font-size:12px;white-space:nowrap}.primary:disabled{opacity:.6;cursor:wait}.leaderhead button{white-space:nowrap;font-size:11px}@media(max-width:560px){.leaderboard{padding:17px}.leaderboard h2{font-size:22px}.leaderhead{align-items:start}.scoreentry button{padding:11px}.leadernote{font-size:10px}}
.fullscreen-toggle{position:absolute;top:13px;right:60px;z-index:5;border:1px solid #fff7;background:#f5f3dff2;color:#173c35;border-radius:24px;padding:11px 12px;font:600 10px 'DM Sans',sans-serif;cursor:pointer}.pause{z-index:5}.apple-counter{position:absolute;left:13px;top:14px;background:#f5f3dff2;padding:9px 11px;border-radius:22px;font-size:11px;font-weight:700;pointer-events:none}.scene #notice{top:59px;z-index:4}.boardbutton{width:100%;margin:10px 0 0;padding:10px;border:1px solid #cbd3c4;border-radius:9px;background:transparent;color:#173c35;font:600 12px 'DM Sans',sans-serif;cursor:pointer}.boardbutton[hidden]{display:none}body.game-screen{overflow:hidden}.game-screen .game,.game:fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#173c35}.game-screen .hud,.game:fullscreen .hud{flex:0 0 66px}.game-screen .scene,.game:fullscreen .scene{flex:1;min-height:0;max-height:none;height:auto;aspect-ratio:auto;width:100%}.game-screen .overlay,.game:fullscreen .overlay{padding-top:57px;padding-bottom:52px}.game-screen .card,.game:fullscreen .card{max-height:100%;overflow:auto}.game::backdrop{background:#173c35}@media(max-height:520px){.game-screen .hud,.game:fullscreen .hud{flex-basis:48px;height:48px;padding:5px 20px}.game-screen .card{width:460px;padding:15px 22px}.game-screen h2{font-size:27px}.game-screen .instructions p{font-size:10px}.game-screen .water{bottom:8px}}
.overlay .card{max-height:100%;overflow:auto}
