:root{--wg-sky:#bfe4f6;--wg-peach:#fde3cc;--wg-ink:#5b4a6b;--wg-clay:#fff7ee;--wg-clay-edge:#e6d3c3;--wg-coral:#ff9f88;--wg-coral-edge:#e07a62;--wg-sun:#ffd56b;--wg-sun-edge:#e0ae35;--wg-water:#3fb6ff;--wg-water-edge:#1f8bd6;--wg-mint:#8fd6a0;--wg-mint-edge:#5fae74;--wg-display:"Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif}*{box-sizing:border-box}body{background:var(--wg-sky);min-width:320px;color:var(--wg-ink);margin:0}button{font:inherit;color:inherit}.wg-page{font-family:var(--wg-display);background:radial-gradient(circle at 82% 12%, #fff6c8f2 0 7vmin, #ffecaa59 7.2vmin, transparent 20vmin), linear-gradient(180deg, var(--wg-sky) 0%, #d9eef4 55%, var(--wg-peach) 100%);user-select:none;-webkit-tap-highlight-color:transparent;position:fixed;inset:0;overflow:hidden}.wg-stage{position:absolute;inset:0}.wg-stage canvas{display:block}.wg-failed{place-items:center;margin:0;font-size:5rem;display:grid;position:absolute;inset:0}.wg-top,.wg-bottom{padding:0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));pointer-events:none;align-items:center;display:flex;position:absolute;left:0;right:0}.wg-top{top:max(12px, env(safe-area-inset-top));justify-content:space-between}.wg-bottom{bottom:max(16px, env(safe-area-inset-bottom));justify-content:center;gap:clamp(10px,3vw,22px)}.wg-top>*,.wg-bottom>*{pointer-events:auto}.wg-button{--face:var(--wg-clay);--edge:var(--wg-clay-edge);background:radial-gradient(circle at 34% 28%, #ffffffb3, transparent 46%), var(--face);width:72px;height:72px;color:var(--wg-ink);box-shadow:inset -3px -5px 0 #0000000f, 0 6px 0 var(--edge), 0 12px 18px #5b4a6b2e;cursor:pointer;border:0;border-radius:46% 54% 50% 50%/52% 48%;flex:none;place-items:center;padding:0;text-decoration:none;transition:translate .12s,box-shadow .12s,opacity .2s,scale .2s;display:grid}.wg-button svg{width:34px;height:34px}.wg-button:hover:not(:disabled){translate:0 -2px}.wg-button:active:not(:disabled){box-shadow:inset -3px -5px 0 #0000000f, 0 1px 0 var(--edge);translate:0 5px}.wg-button:disabled{cursor:default;opacity:.45}.wg-button:focus-visible,.wg-level:focus-visible,.wg-valve:focus-visible,.wg-tile:focus-visible{outline:4px solid var(--wg-water-edge);outline-offset:4px}.wg-button--small{width:64px;height:64px}.wg-button--small svg{width:30px;height:30px}.wg-button--hint{--face:var(--wg-sun);--edge:var(--wg-sun-edge)}.wg-button--go{--face:var(--wg-mint);--edge:var(--wg-mint-edge);color:#fff;width:96px;height:96px}.wg-button--go svg{width:44px;height:44px}.wg-level{background:radial-gradient(circle at 34% 24%, #ffffffb3, transparent 50%), var(--wg-clay);min-width:96px;min-height:64px;box-shadow:inset -3px -5px 0 #0000000f, 0 6px 0 var(--wg-clay-edge), 0 12px 18px #5b4a6b2e;cursor:pointer;border:0;border-radius:28px 32px 30px 26px;place-items:center;gap:0;padding:4px 18px 8px;display:grid}.wg-level__number{font-size:2rem;font-weight:800;line-height:1}.wg-valve{background:radial-gradient(circle at 34% 28%, #ffffff8c, transparent 45%), var(--wg-coral);color:#fff;width:108px;height:108px;box-shadow:inset -4px -7px 0 #00000014, 0 8px 0 var(--wg-coral-edge), 0 16px 24px #e07a6259;cursor:pointer;border:0;border-radius:50% 48% 52% 50%;place-items:center;margin-left:clamp(4px,2vw,16px);padding:0;transition:translate .12s,box-shadow .12s,opacity .2s;display:grid}.wg-valve svg{width:70px;height:70px}.wg-valve:active:not(:disabled){box-shadow:inset -4px -7px 0 #00000014, 0 2px 0 var(--wg-coral-edge);translate:0 6px}.wg-valve:disabled{cursor:default}.wg-valve:disabled:not(.is-flowing){opacity:.5}.wg-valve__wheel{transform-origin:32px 26px}.wg-valve.is-flowing .wg-valve__wheel{animation:1s linear infinite wg-spin}.wg-valve.is-ready{animation:1.2s ease-in-out infinite wg-wobble}.wg-level__stars,.wg-tile__stars,.wg-win__stars{justify-content:center;display:flex}.wg-level__stars svg,.wg-tile__stars svg,.wg-win__stars svg{fill:#5b4a6b29;stroke:none}.wg-level__stars svg.is-on,.wg-tile__stars svg.is-on,.wg-win__stars svg.is-on{fill:var(--wg-sun);filter:drop-shadow(0 2px 0 var(--wg-sun-edge))}.wg-level__stars svg{width:18px;height:18px}.wg-tile__stars svg{width:22px;height:22px}.wg-win__stars{gap:6px}.wg-win__stars svg{width:84px;height:84px;animation:.5s cubic-bezier(.2,1.6,.4,1) both wg-pop}.wg-win__stars svg:nth-child(2){width:104px;height:104px;margin-top:-18px;animation-delay:.25s}.wg-win__stars svg:nth-child(3){animation-delay:.5s}.wg-sheet{z-index:10;backdrop-filter:blur(6px);background:#bfe4f6b8;place-items:center;padding:16px;animation:.3s both wg-fade;display:grid;position:fixed;inset:0}.wg-sheet--clear{padding-bottom:max(16px, env(safe-area-inset-bottom));backdrop-filter:none;background:linear-gradient(#0000 55%,#fff6e699);place-items:end center}.wg-picker,.wg-win{background:var(--wg-clay);box-shadow:inset -5px -8px 0 #0000000d, 0 10px 0 var(--wg-clay-edge), 0 24px 50px #5b4a6b40;border-radius:40px 44px 42px 38px;animation:.45s cubic-bezier(.2,1.4,.4,1) both wg-pop;position:relative}.wg-picker{width:min(640px,100%);max-height:100%;padding:84px 20px 24px;overflow-y:auto}.wg-close{position:absolute;top:12px;right:12px}.wg-picker__grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px;display:grid}.wg-tile{min-height:104px;box-shadow:inset -3px -5px 0 #0000000d, 0 6px 0 var(--wg-mint-edge);cursor:pointer;background:radial-gradient(circle at 34% 26%,#fff9,#0000 50%),#c9ecd2;border:0;border-radius:30px 34px 32px 28px;align-content:center;place-items:center;gap:2px;padding:8px 4px;font-size:2.4rem;font-weight:800;line-height:1;display:grid}.wg-tile:active:not(:disabled){box-shadow:0 2px 0 var(--wg-mint-edge);translate:0 4px}.wg-tile.is-current{box-shadow:0 6px 0 var(--wg-water-edge);background:radial-gradient(circle at 34% 26%,#fff9,#0000 50%),#bfe4f6}.wg-tile:disabled{box-shadow:0 6px 0 var(--wg-clay-edge);color:#b9aab0;cursor:default;background:#ece4dc}.wg-tile:disabled svg{width:40px;height:40px}.wg-win{justify-items:center;gap:22px;padding:30px clamp(20px,5vw,40px);animation-delay:.1s;display:grid}.wg-win__actions{align-items:center;gap:18px;display:flex}@keyframes wg-spin{to{rotate:360deg}}@keyframes wg-wobble{0%,to{rotate:0deg;scale:1}25%{rotate:-8deg;scale:1.08}75%{rotate:8deg;scale:1.08}}@keyframes wg-pop{0%{opacity:0;transform:scale(.4)}}@keyframes wg-fade{0%{opacity:0}}@media (width<=520px){.wg-button{width:64px;height:64px}.wg-button svg{width:30px;height:30px}.wg-valve{width:96px;height:96px}.wg-valve svg{width:62px;height:62px}.wg-bottom{gap:8px}}@media (prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
