:root{--ink:#173042;--yellow:#ffd84d;--red:#ed4d3d;--green:#46ad59;--cream:#fff8dd;--shadow:0 12px 30px #17304238;font-family:Inter,ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;color:var(--ink)}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;min-height:100%;overscroll-behavior:none}body{background:linear-gradient(#72cff3,#d8f6d0);padding:max(10px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));touch-action:manipulation}.page-shell{width:min(100%,430px);margin:auto}.game{position:relative;width:100%;aspect-ratio:2/3;max-height:calc(100dvh - 100px);border:4px solid #fff8;border-radius:24px;overflow:hidden;background:#70cdf2;box-shadow:var(--shadow);isolation:isolate;user-select:none;touch-action:none}.sky{position:absolute;inset:0;overflow:hidden}.world{position:absolute;left:0;top:0;width:400px;height:600px;overflow:hidden;transform-origin:top left}.sun{position:absolute;width:76px;height:76px;border-radius:50%;background:#ffe878;right:28px;top:80px;box-shadow:0 0 35px #fff08c}.cloud{position:absolute;width:90px;height:28px;background:#fff;border-radius:40px;opacity:.75;filter:drop-shadow(0 3px 0 #77b9d055);animation:drift 18s linear infinite}.cloud:before,.cloud:after{content:"";position:absolute;background:#fff;border-radius:50%}.cloud:before{width:38px;height:38px;left:18px;top:-18px}.cloud:after{width:50px;height:50px;right:10px;top:-28px}.cloud-a{top:120px;left:-100px}.cloud-b{top:220px;left:-150px;scale:.7;animation-delay:-8s}.hill{position:absolute;left:-15%;width:130%;border-radius:50% 50% 0 0;bottom:-42px}.hill-back{height:145px;background:#67bd6e;clip-path:polygon(0 60%,16% 26%,31% 65%,49% 15%,68% 64%,84% 32%,100% 70%,100% 100%,0 100%)}.hill-front{height:105px;background:#3e9c55;clip-path:polygon(0 52%,18% 20%,37% 58%,56% 10%,74% 50%,90% 25%,100% 55%,100% 100%,0 100%)}@keyframes drift{to{translate:620px 0}}
.hud{position:absolute;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;width:100%;padding:18px 20px;color:white;text-shadow:0 2px 2px #17304288;pointer-events:none}.hud>div{display:flex;flex-direction:column}.hud-best{align-items:flex-end}.hud-label{font-size:10px;letter-spacing:2px;font-weight:900}.hud strong{font-size:30px;line-height:1}.hud-center{margin-top:12px!important;color:var(--yellow);font-weight:1000;font-size:13px;animation:pop .35s ease}.bird{position:absolute;z-index:10;width:46px;height:36px;left:22%;top:45%;will-change:transform}.bird-body{display:block;position:relative;width:44px;height:32px;background:#99512c;border:3px solid #5d351f;border-radius:55% 48% 55% 45%;filter:drop-shadow(0 4px 2px #17304235)}.bird-eye{position:absolute;width:13px;height:13px;border-radius:50%;background:white;right:3px;top:3px;border:2px solid #5d351f}.bird-eye:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#111;right:1px;top:3px}.bird-wing{position:absolute;width:22px;height:13px;border-radius:70%;background:#6e3b25;left:8px;top:13px;transform-origin:right center}.bird.flap .bird-wing{animation:wing .18s ease}.bird-beak{position:absolute;right:-13px;top:12px;border-left:14px solid #ffb52e;border-top:6px solid transparent;border-bottom:6px solid transparent}.pipe{position:absolute;width:64px;background:linear-gradient(90deg,#257c3a 0 10%,#57c865 12% 77%,#2d9145 80%);border:3px solid #1d6831;box-shadow:inset 5px 0 #a7ed8c55;will-change:transform}.pipe.top{top:0;border-radius:0 0 8px 8px}.pipe.bottom{bottom:0;border-radius:8px 8px 0 0}.pipe:after{content:"";position:absolute;left:-8px;width:74px;height:28px;background:inherit;border:3px solid #1d6831;border-radius:6px}.pipe.top:after{bottom:-3px}.pipe.bottom:after{top:-3px}.perfect-line{position:absolute;left:0;width:64px;height:3px;background:#ffe44d;box-shadow:0 0 10px #fff}.poop,.pueh{position:absolute;z-index:12;pointer-events:none}.poop{font-size:19px;animation:poop 1.5s ease-in forwards}.pueh{color:#fff;font-weight:1000;text-shadow:0 2px #173042;font-size:14px;animation:pueh .75s ease-out forwards}.particle{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--yellow);animation:burst .65s ease-out forwards}
.screen{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:linear-gradient(#173042e8,#10252ef0);color:white}.screen[hidden]{display:none}.start-screen h1{font-size:46px;line-height:.9;margin:7px 0 8px;letter-spacing:-3px}.start-screen h1 em{display:block;color:var(--yellow);font-style:normal;font-size:54px}.logo-bird{font-size:42px;animation:floatBird 1.4s ease-in-out infinite}.tagline{color:#cfeaf0;font-size:17px;margin:8px 0 28px}.primary,.secondary,.icon-button,.text-button,.dialog-head button{font:inherit;cursor:pointer}.primary{border:0;border-bottom:5px solid #a92823;border-radius:15px;background:var(--red);color:white;font-size:20px;font-weight:1000;letter-spacing:.5px;padding:15px 38px;min-width:190px;box-shadow:0 8px 18px #0004}.primary:active{translate:0 3px;border-bottom-width:2px}.secondary{border:2px solid #fff8;border-radius:13px;background:#fff1;color:white;font-weight:900;padding:11px 24px}.how{display:flex;gap:10px;margin-top:26px;font-size:11px;color:#d4e8e9;flex-wrap:wrap;justify-content:center}.how span{background:#fff1;border:1px solid #fff2;border-radius:20px;padding:7px 9px}.icon-button{position:absolute;right:15px;bottom:15px;border:0;border-radius:50%;width:42px;height:42px;background:#fff2;color:white}.screen h2{font-size:34px;margin:4px 0 10px}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--yellow);font-weight:900}.medal{font-size:46px;margin:4px}.result-card{display:flex;background:#fff1;border:1px solid #fff2;border-radius:17px;margin:8px 0 10px}.result-card div{min-width:105px;padding:12px 20px}.result-card div+div{border-left:1px solid #fff2}.result-card span{display:block;font-size:10px;letter-spacing:2px;color:#b7d6da}.result-card strong{font-size:31px}.new-record{margin:0 0 10px;color:var(--yellow);font-weight:1000;animation:pop .5s ease}.actions{display:flex;gap:8px;align-items:center}.actions .primary{min-width:145px;padding-inline:20px}.run-stats{font-size:11px;color:#a9c6c9;margin:15px 0 0}.toast{position:absolute;z-index:40;top:92px;left:50%;translate:-50% -20px;opacity:0;width:max-content;max-width:85%;padding:9px 15px;border-radius:30px;background:#173042e9;color:white;font-weight:900;font-size:12px;pointer-events:none;transition:.25s}.toast.show{translate:-50% 0;opacity:1}.below-game{text-align:center;font-size:12px;color:#315260;padding:10px}.below-game a{color:#9b3029;font-weight:800}.text-button{border:0;background:#fff9;border-radius:20px;padding:8px 14px;color:var(--ink);font-weight:900}.text-button span{color:#56717d;margin-left:5px}
dialog{width:min(92vw,420px);max-height:80dvh;border:0;border-radius:22px;padding:0;color:var(--ink);box-shadow:0 24px 80px #17304288}dialog::backdrop{background:#102832aa;backdrop-filter:blur(4px)}.dialog-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:white;padding:20px;border-bottom:1px solid #dce7e8}.dialog-head small{letter-spacing:2px;font-weight:900;color:#5b7881}.dialog-head h2{margin:2px 0}.dialog-head button{border:0;border-radius:50%;width:38px;height:38px;font-size:25px}.achievement-list{padding:12px}.achievement-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:12px;border-radius:13px}.achievement-item:nth-child(odd){background:#eef7f2}.achievement-item.locked{filter:grayscale(1);opacity:.5}.achievement-item b{font-size:20px}.achievement-item span{font-size:13px;font-weight:700}.achievement-item small{color:#547078}.achievement-item i{font-style:normal;font-weight:900;color:#278346;font-size:11px}
@keyframes wing{50%{rotate:-40deg}}@keyframes floatBird{50%{translate:0 -8px}}@keyframes pop{50%{scale:1.14}}@keyframes pueh{to{translate:18px -42px;opacity:0}}@keyframes poop{to{translate:0 400px;rotate:300deg;opacity:.4}}@keyframes burst{to{translate:var(--dx) var(--dy);opacity:0;scale:.2}}.shake{animation:shake .28s linear}@keyframes shake{25%{translate:-5px 2px}50%{translate:5px -2px}75%{translate:-3px 1px}}
@media(max-height:680px){body{padding-block:4px}.game{max-height:calc(100dvh - 50px)}.below-game{padding:5px}.start-screen h1{font-size:38px}.start-screen h1 em{font-size:45px}.how{margin-top:18px}.tagline{margin-bottom:20px}}
.bird{left:0;top:0}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
