[hidden]{display:none!important}:root{--paper:#24331f;--card:#fffaf0;--ink:#1d1a17;--plum:#4b2d63;--accent:#2a7f86;--red:#c2412d;--gold:#e8b923;--soft:#ece2cd;--mint:#d9f2e6;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;color:var(--ink);overscroll-behavior:none;background:#24331f;margin:0;font:16px/1.35 ui-rounded,Trebuchet MS,system-ui,sans-serif;overflow:hidden}body{touch-action:none;-webkit-user-select:none;user-select:none;position:fixed;inset:0}canvas#game{width:100%;height:100%;display:block;position:fixed;inset:0}button{font:inherit;color:var(--ink);cursor:pointer;touch-action:manipulation}a{color:var(--ink)}.hit{z-index:4;touch-action:none;outline-offset:3px;cursor:pointer;background:0 0;border:0;margin:0;padding:0;position:fixed}.hit:focus-visible{outline:3px dashed var(--gold)}.guard{z-index:3;touch-action:none;background:0 0;width:34px;position:fixed}.card{background:var(--card);border:3px solid var(--ink);box-shadow:5px 5px 0 var(--ink);-webkit-overflow-scrolling:touch;touch-action:pan-y;border-radius:18px;width:min(440px,100vw - 24px);max-height:calc(100dvh - 24px);padding:18px 18px 16px;animation:.35s cubic-bezier(.2,1.4,.4,1) cardIn;position:relative;overflow:auto}@keyframes cardIn{0%{opacity:0;transform:translateY(26px)scale(.94)}}.card.wide{width:min(740px,100vw - 20px)}.card.center{text-align:center}.card h2{margin:0 0 8px;font-size:24px}.card h3{margin:14px 0 6px;font-size:18px}.card .lead{margin:0 0 12px;font-size:16px}.lead.small,.small{font-size:14px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.center{justify-content:center}.row.two>*,.row.three>*{flex:1 1 0}.col{flex-direction:column;align-items:stretch;gap:9px;display:flex}.screen button,.hud button,.coach button,.pad button{border:2.5px solid var(--ink);background:var(--card);min-height:46px;box-shadow:2px 2px 0 var(--ink);border-radius:999px;padding:8px 16px;font-size:16px;font-weight:800;transition:transform .1s}.screen button:active,.hud button:active,.pad button:active{box-shadow:1px 1px 0 var(--ink);transform:translate(1px,1px)}.screen button:disabled{opacity:.45;cursor:default}button.primary{background:var(--plum);color:#fff}button.big{min-height:58px;font-size:22px}button.daily{background:#fdf0c4}button small{opacity:.85;font-size:14px;font-weight:700}.closex{z-index:2;width:46px;height:46px;position:absolute;top:10px;right:10px;border-radius:50%!important;padding:0!important}.sheethead{min-height:46px;padding-right:54px;position:relative}.sheethead .closex{top:-4px;right:-4px}.bar2{border:2px solid var(--ink);background:var(--soft);border-radius:8px;height:12px;overflow:hidden}.bar2 i{background:linear-gradient(90deg, var(--plum), var(--accent));width:0;height:100%;transition:width .3s;display:block}.screen{z-index:30;background:#1c281bb8;place-items:center;padding:12px;display:grid;position:fixed;inset:0}.screen.clear{background:0 0}.round{border:2.5px solid var(--ink);background:var(--card);width:46px;height:46px;box-shadow:2px 2px 0 var(--ink);border-radius:50%;place-items:center;font-size:18px;font-weight:900;display:grid;padding:0!important}img.inl{object-fit:contain;vertical-align:middle;background:#fff6dc;border-radius:7px;width:26px;height:26px;margin:-4px 1px 0;padding:1px}.cornermute{top:calc(10px + var(--safe-t));z-index:31;position:fixed;right:10px}#title{background:linear-gradient(#24331f00 0 26%,#24331fcc 44%,#1a2617f7 58%);align-items:end}.titlewrap{text-align:center;width:min(560px,100vw - 24px);margin-bottom:max(10px, var(--safe-b));flex-direction:column;align-items:center;gap:8px;display:flex}.logo{letter-spacing:1px;white-space:nowrap;color:#ffb46b;text-shadow:3px 3px #1d1a17,0 0 18px #ffb46473;margin:0;font-size:clamp(34px,9.4vw,76px);line-height:.95}.logo span{animation:.8s ease-in-out infinite alternate hopL;display:inline-block}.logo span:nth-child(2n){color:#ffe9a8;animation-delay:-.4s}.logo span:nth-child(3n){color:#9fe0b0}@keyframes hopL{0%{transform:translateY(0)scale(1.05,.95)}to{transform:translateY(-8px)scale(.95,1.05)}}.sub{color:#fff6dc;text-shadow:0 1px 3px #00000080;max-width:480px;margin:0;font-size:15.5px;font-weight:650}.titlewrap .col{width:min(430px,100%)}.titlewrap .row button{flex:auto;padding:8px 10px}.bestline{min-height:1.2em;margin:0;font-size:15px;font-weight:800}#title .bestline,#title .credit,#title .backlink{color:#fff6dc;text-shadow:0 1px 3px #0009}.credit{font-weight:800}.backlink{font-size:15px;font-weight:700}.credit-foot{right:8px;bottom:calc(4px + var(--safe-b));z-index:5;opacity:.9;font-size:14px;font-weight:800;position:fixed}.credit-foot a{color:var(--ink);background:#fffaf0d9;border-radius:8px;padding:1px 6px;text-decoration:none}body.playing .credit-foot,body.ontitle .credit-foot{display:none}.hud{padding:calc(6px + var(--safe-t)) 8px 4px;z-index:10;pointer-events:none;justify-content:space-between;align-items:flex-start;gap:6px;display:flex;position:fixed;top:0;left:0;right:0}.hud>*{pointer-events:auto}.hudmid{pointer-events:none;flex-direction:column;flex:1;align-items:center;gap:3px;min-width:0;line-height:1.15;display:flex}.hud .lbl{white-space:nowrap;color:#fff6dc;text-shadow:2px 2px #1d1a17;text-overflow:ellipsis;max-width:100%;font-size:16px;font-weight:900;overflow:hidden}.prog{border:2.5px solid var(--ink);width:min(190px,100%);height:24px;box-shadow:2px 2px 0 var(--ink);background:#fffaf0eb;border-radius:999px;position:relative;overflow:hidden}.prog i{background:linear-gradient(90deg,#9fe0b0,#5fbf7a);width:0;transition:width .2s;position:absolute;top:0;bottom:0;left:0}.prog b{text-align:center;font-variant-numeric:tabular-nums;font-size:14px;font-weight:900;line-height:19px;display:block;position:relative}.hudright{pointer-events:none;flex-direction:column;align-items:flex-end;gap:4px;min-width:76px;display:flex}.lives{border:2.5px solid var(--ink);box-shadow:2px 2px 0 var(--ink);background:#fffaf0eb;border-radius:999px;align-items:center;gap:2px;min-height:26px;padding:1px 6px;display:flex}.lives img{object-fit:contain;width:22px;height:22px}.lives img.lost{opacity:.22}.lives:empty{display:none}.chips{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.hud .chip{white-space:nowrap;background:var(--card);border:2.5px solid var(--ink);box-shadow:2px 2px 0 var(--ink);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:3px;min-height:26px;padding:1px 8px 1px 5px;font-size:15px;font-weight:900;display:inline-flex}.hud .chip img{object-fit:contain;width:20px;height:20px}.hud .chip.bump{animation:.4s bump}.hud .shieldchip{background:#d8f0ff}@keyframes bump{40%{transform:scale(1.14)}}.pad{z-index:12;left:50%;bottom:calc(10px + var(--safe-b));grid-template-columns:repeat(4,64px);align-items:end;gap:8px;display:grid;position:fixed;transform:translate(-50%)}.pad button{touch-action:none;background:#fffaf0ed;place-items:center;width:64px;height:64px;padding:0;font-size:26px;display:grid}.pad button:disabled{opacity:.5}.pad button.pulse{animation:.8s ease-in-out infinite alternate goPulse}@keyframes goPulse{to{box-shadow:0 0 0 5px #4b2d6359, 2px 2px 0 var(--ink);transform:scale(1.06)}}.coach{z-index:14;border:3px solid var(--ink);width:min(460px,100vw - 84px);box-shadow:4px 4px 0 var(--ink);pointer-events:auto;background:#fffaf0;border-radius:16px;align-items:stretch;gap:8px;padding:8px 10px;animation:.3s cubic-bezier(.2,1.4,.4,1) cardIn;display:flex;position:fixed;left:50%;overflow:hidden;transform:translate(-50%)}.coach .ctext{flex-direction:column;flex:1;justify-content:safe center;align-self:stretch;margin:0;font-size:15px;font-weight:750;line-height:1.3;display:flex;overflow-y:auto}.coach .ctext>span{display:block}.coach .cbtns{flex-direction:column;flex:none;align-self:center;gap:5px;display:flex}.coach button{border:2px solid var(--ink);background:var(--soft);min-height:44px;box-shadow:none;white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:14px;font-weight:800}.coach button#coachbtn{background:var(--plum);color:#fff}.coach.hint{background:#fff6d2}.coach.now{background:#ffe9a8;animation:.5s ease-in-out infinite alternate nowPulse}@keyframes nowPulse{to{box-shadow:0 0 0 5px #e8a317b3, 4px 4px 0 var(--ink)}}.coach.no{animation:.35s shakeX}@keyframes shakeX{25%{margin-left:-6px}75%{margin-left:6px}}.coach.wide{flex-direction:column;align-items:stretch;width:300px;left:16px;transform:none}.coach.wide .cbtns{flex-direction:row}.coach.wide .cbtns button{flex:1}@media (width<=420px){.coach .ctext{font-size:14.5px;line-height:1.25}}.toast{z-index:16;left:50%;top:calc(76px + var(--safe-t));border:2.5px solid var(--ink);width:max-content;max-width:min(440px,100vw - 20px);box-shadow:2px 2px 0 var(--ink);pointer-events:none;text-align:center;background:#fffaf0;border-radius:16px;align-items:center;gap:8px;padding:6px 14px;font-size:15px;font-weight:800;display:flex;position:fixed;transform:translate(-50%)}.toast img{object-fit:contain;width:34px;height:34px}.toast.show{animation:2.6s both toastIn}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,-30px)}10%,85%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,-10px)}}.banner{z-index:15;pointer-events:none;text-align:center;color:#fff6dc;text-shadow:3px 3px #1d1a17,0 0 20px #ffc86499;white-space:nowrap;font-size:44px;font-weight:900;animation:1.3s both bannerIn;position:fixed;top:24%;left:50%;transform:translate(-50%)}.banner small{text-shadow:2px 2px #1d1a17;font-size:17px;display:block}@keyframes bannerIn{0%{opacity:0;transform:translate(-50%,12px)scale(.6)}15%,75%{opacity:1;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(-50%,-20px)scale(1.05)}}.newbest{background:var(--gold);border:2px solid var(--ink);border-radius:999px;margin:2px;padding:2px 12px;font-weight:900;animation:.6s 3 bump;display:inline-block}.helped{opacity:.85;margin:4px 0;font-size:14px;font-weight:750}.bigscore{font-variant-numeric:tabular-nums;margin:4px 0;font-size:54px;font-weight:900;line-height:1}.medalrow{justify-content:center;gap:8px;margin:8px 0;display:flex}.medal{opacity:.4;justify-items:center;font-size:14px;font-weight:800;display:grid}.medal span{font-size:30px}.medal small{font-size:14px}.medal.got{opacity:1;animation:.7s bump}.medal.ever{opacity:.75}.links{flex-direction:column;align-items:center;gap:0;margin:4px 0;font-weight:800;display:flex}.links a{align-items:center;min-height:44px;padding:6px 4px;display:inline-flex}.unlock{border:2px solid var(--ink);text-align:left;background:#f1ecf7;border-radius:12px;align-items:center;gap:10px;margin:8px 0;padding:6px 10px;font-size:14px;font-weight:750;display:flex}.unlock img{object-fit:contain;cursor:zoom-in;border-radius:6px;flex:none;width:54px;height:54px}.unlock .q{color:#9a8d75;border:2px dashed #b9ad97;border-radius:8px;flex:none;place-items:center;width:54px;height:54px;font-size:26px;font-weight:900;display:grid}.unlock>div{flex:1}.unlock .bar2{margin-top:4px}.unlock.ready{background:#d9f0c8}.share{white-space:pre-wrap;text-align:left;border:2px solid var(--ink);background:#fff;border-radius:12px;margin:10px 0;padding:10px;font-family:ui-monospace,Menlo,monospace;font-size:15px}.hostline{justify-content:center;align-items:center;gap:10px;margin:6px 0;font-weight:800;display:flex}.hostline img{object-fit:contain;transform-origin:50% 100%;max-width:90px;height:72px;animation:1s ease-in-out infinite alternate hop}@keyframes hop{0%{transform:translateY(0)scale(1)}to{transform:translateY(-5px)scale(.96,1.05)}}.dchoice{text-align:left;align-items:center;gap:10px;border-radius:16px!important;min-height:64px!important;padding:8px 12px!important;display:flex!important}.dchoice>span{flex:1;display:grid}.dchoice small{font-weight:700}.dchoice.done{background:#d9f0c8}.castrow{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:6px;margin:4px 0;display:flex}.castrow img{object-fit:contain;transform-origin:50% 100%;cursor:zoom-in;max-width:64px;height:56px;animation:.6s ease-in-out infinite alternate hop}.starimgs{justify-content:center;gap:6px;margin:6px 0 2px;display:flex}.starimgs img{object-fit:contain;opacity:.22;width:46px;height:46px;transition:opacity .3s,transform .3s;transform:scale(.85)}.starimgs img.got{opacity:1;animation:.7s cubic-bezier(.2,2,.4,1) both starBig;transform:scale(1)}@keyframes starBig{0%{opacity:0;transform:scale(2.2)rotate(-30deg)}}.goals{text-align:left;gap:4px;max-width:360px;margin:6px auto;display:grid}.goals div{border:2px solid var(--ink);background:#fff;border-radius:12px;align-items:center;gap:8px;padding:3px 10px;font-size:15px;font-weight:800;display:flex}.goals div.met{background:#e6f4dc}.goals div b{flex:1}.goals div i{color:var(--gold);text-shadow:1px 1px 0 var(--ink);font-style:normal}.agrid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin-top:8px;display:grid}.ccard{border:2.5px solid var(--ink);text-align:center;cursor:pointer;min-height:44px;font:inherit;color:var(--ink);background:#fff;border-radius:14px;align-content:start;justify-items:center;gap:3px;padding:8px 6px;font-size:14px;font-weight:750;display:grid;position:relative}.screen button.ccard{min-height:44px;box-shadow:2px 2px 0 var(--ink);border-radius:14px;padding:8px 6px;font-size:14px;font-weight:750}.ccard img{object-fit:contain;width:76px;height:76px}.ccard.pcard img{width:100%;height:118px}.ccard .q{color:#9a8d75;border:2px dashed #b9ad97;border-radius:12px;place-items:center;width:76px;height:76px;font-size:34px;font-weight:900;display:grid}.ccard.pcard .q{width:100%;height:118px}.ccard small{opacity:.85;font-weight:650}.ccard.me{background:#fff1c1}.tabs{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.tabs button{min-height:44px;padding:6px 12px}.tabs button.on{background:var(--ink);color:#fffaf0}.tabs button.locked{color:#8c8070;background:#ece5d6}.records{border-collapse:collapse;width:100%;margin-top:8px;font-size:15px}.records th,.records td{border-bottom:2px solid var(--soft);text-align:left;padding:8px 4px}.records td:not(:first-child),.records th:not(:first-child){text-align:center}.viewer img{object-fit:contain;max-width:100%;max-height:calc(100dvh - 250px);margin:30px auto 0;display:block}.goalslist{gap:4px;margin-top:8px;display:grid}.goalslist div{border:2px solid var(--ink);background:#fff;border-radius:12px;align-items:center;gap:8px;padding:4px 10px;font-size:14px;font-weight:750;display:flex}.goalslist div.met{background:#e6f4dc}.goalslist div b{flex:1;font-weight:750}.howpage{text-align:center;min-height:300px}.howpage h2{margin-top:4px;padding:0 40px}.howpage p{max-width:520px;margin:8px auto;font-size:16px}.howpage canvas.demo{border:2.5px solid var(--ink);border-radius:12px;width:min(260px,64vw);height:auto;margin:8px auto;display:block}.howpage .iconrow{flex-wrap:wrap;justify-content:center;gap:8px;max-width:420px;margin:8px auto;display:flex}.howpage .iconrow div{justify-items:center;gap:2px;width:78px;font-size:14px;font-weight:800;display:grid}.howpage .iconrow img{object-fit:contain;border:2px solid var(--ink);background:#fff;border-radius:12px;width:58px;height:58px;padding:3px;animation:.9s ease-in-out infinite alternate hop}.howpage .controls{flex-wrap:wrap;justify-content:center;gap:8px;margin:12px auto;font-size:26px;display:flex}.howpage .controls span{border:2.5px solid var(--ink);min-width:54px;height:50px;box-shadow:2px 2px 0 var(--ink);background:#fff;border-radius:14px;place-items:center;padding:0 8px;display:grid}.howpage .controls span small{font-size:14px}.dots{gap:6px;display:inline-flex}.dots i{border:1.5px solid var(--ink);background:#d8ccb6;border-radius:50%;width:10px;height:10px}.dots i.on{background:var(--plum)}@media (height<=700px){.howpage canvas.demo{width:min(200px,54vw)}.howpage{min-height:0}}.lgrid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:8px;margin-top:8px;display:grid}.screen button.lvl{font-variant-numeric:tabular-nums;border-radius:14px;place-items:center;gap:0;min-height:62px;padding:2px 0;font-size:19px;line-height:1;display:grid;position:relative}.lvl small{color:var(--gold);text-shadow:1px 1px 0 var(--ink);font-size:14px}.lvl small.none{color:#cbbfa8;text-shadow:none}.screen button.lvl.done{background:#e6f4dc}.screen button.lvl.next{background:var(--plum);color:#fff}.screen button.lvl.locked{color:#9a8d75;box-shadow:none;background:#ece5d6}.screen button.lvl.guestlvl{background:#fde3dc}.screen button.lvl.guestlvl.done{background:#e6f4dc}.pairsrow{flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0;display:flex}.pairsrow img{object-fit:contain;border:2px solid var(--ink);cursor:zoom-in;background:#fff;border-radius:50%;width:50px;height:50px;padding:3px;animation:.9s ease-in-out infinite alternate hop}@media (width>=760px) and (aspect-ratio>=6/5){#title{background:linear-gradient(90deg,#24331f00 0 46%,#24331fcc 62%,#1a2617f2);place-items:center end;padding-right:max(24px,5vw)}#title .titlewrap{width:min(480px,44vw);margin-bottom:0}}@media (width<=480px){.card.wide{padding:14px 30px 12px}.agrid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}}@media (width<=420px){.card{padding:14px 12px 12px}.hud .chip{padding:1px 6px 1px 4px}.banner{font-size:36px}}@media (height<=700px){.logo{font-size:clamp(30px,8.6vw,62px)}.sub{font-size:14px}}@media (prefers-reduced-motion:reduce){.logo span,.hostline img,.castrow img,.pairsrow img,.howpage .iconrow img{animation:none!important}}img.hs{vertical-align:-.24em;object-fit:contain;width:auto;height:1.2em;margin:0 1px;display:inline-block}img.hs.off{opacity:.28}img.hs.lane{vertical-align:middle;height:26px;margin:2px}.lanes{line-height:32px}.waterchip{border:1.5px solid var(--ink);vertical-align:middle;background:linear-gradient(#47a4cd,#6cc3e4);border-radius:8px;width:24px;height:16px;margin:2px;display:inline-block}.tabs img.hs{height:22px}.lvl small img.hs{height:15px;margin:0}.screen button.lvl{padding-bottom:4px}.goals div i img.hs{height:22px}.goals div span img.hs{height:20px}.titlepals{pointer-events:none;justify-content:center;align-items:flex-end;gap:22px;height:118px;margin-bottom:-6px;display:flex}.titlepals img{object-fit:contain;transform-origin:50% 100%;max-width:44vw;height:100%;animation:.62s ease-in-out infinite alternate palHop}.titlepals img+img{height:92%;animation-duration:.9s;animation-delay:-.3s}@keyframes palHop{0%{transform:translateY(0)scale(1.05,.95)}to{transform:translateY(-12px)scale(.96,1.05)}}.castrow img{max-width:110px;height:92px}.hostline img{max-width:120px;height:104px}.unlock img{width:86px;height:86px}.starimgs img{width:58px;height:58px}.card{box-shadow:0 16px 34px #1e281457, 5px 5px 0 var(--ink);background:linear-gradient(#fffdf6,#fbf3df)}.screen button.primary{background:linear-gradient(#5f3b7c,#4b2d63)}.pad button{box-shadow:0 6px 12px #1e28144d, 2px 2px 0 var(--ink);background:linear-gradient(#fffdf6,#efe6d2)}.pad button.up{background:linear-gradient(#fff2c0,#ffdf86)}.coach{box-shadow:0 10px 22px #1e28144d, 4px 4px 0 var(--ink)}.hud .lbl{color:var(--ink);text-shadow:none;border:2.5px solid var(--ink);box-shadow:2px 2px 0 var(--ink);background:#fffaf0eb;border-radius:999px;padding:0 10px}@media (height<=700px){.titlepals{height:74px}}@media (prefers-reduced-motion:reduce){.titlepals img{animation:none!important}}.dchoice>span:last-child{flex:none}.lvl small.none{color:#6d6452}.lvl.next small.none{color:#fff}.bsub{grid-column:1/-1;margin:14px 0 4px;font-size:16px}.lthings{flex-wrap:wrap;grid-column:1/-1;gap:6px;display:flex}.screen button.lt{border:2.5px solid var(--ink);width:52px;height:52px;min-height:52px;box-shadow:2px 2px 0 var(--ink);background:#fff;border-radius:12px;padding:4px}.lthings .lt img{object-fit:contain;width:100%;height:100%}
