html,body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#a8e0f7;height:100%;margin:0;overflow:hidden}#park{touch-action:none;width:100vw;height:100dvh;display:block}#picker{z-index:50;background:#281e1473;justify-content:center;align-items:center;display:none;position:fixed;inset:0}#picker.open{display:flex}#picker .card{background:#fff8e7;border:5px solid #3a2a1e;border-radius:32px;flex-wrap:wrap;justify-content:center;gap:14px;max-width:min(92vw,740px);padding:16px;animation:.25s cubic-bezier(.34,1.56,.64,1) popin;display:flex;box-shadow:0 8px #3a2a1e59}@keyframes popin{0%{transform:scale(.6)}}#picker .species{box-sizing:border-box;color:#5a3b00;cursor:pointer;background:#e7f9d9;border:4px solid #3a2a1e;border-radius:26px;flex-direction:column;justify-content:space-between;align-items:center;width:150px;height:172px;padding:6px 4px;font:900 22px/1 system-ui,sans-serif;display:flex;box-shadow:0 4px #3a2a1e59}#picker .species:active{transform:translateY(3px);box-shadow:0 1px #3a2a1e59}#picker .species.poor{opacity:.4}#picker .portrait{pointer-events:none;width:128px;height:112px}#picker .row{pointer-events:none;align-items:center;gap:8px;display:flex}#picker .badge{width:28px;height:28px}.coin{box-sizing:border-box;background:radial-gradient(circle at 35% 35%,#fff3a0,#ffd43b 55%,#f0a500);border:3px solid #3a2a1e;border-radius:50%;width:22px;height:22px;display:inline-block}.shake{animation:.35s shake}@keyframes shake{25%{transform:translate(-6px)}50%{transform:translate(6px)}75%{transform:translate(-3px)}}#hud{top:max(12px, env(safe-area-inset-top));left:max(12px, env(safe-area-inset-left));z-index:20;pointer-events:none;gap:10px;display:flex;position:fixed}#hud .counter{color:#5a3b00;font-variant-numeric:tabular-nums;background:#fff8e7;border:4px solid #3a2a1e;border-radius:999px;align-items:center;gap:8px;min-width:88px;padding:6px 14px 6px 8px;font:900 26px/1 system-ui,sans-serif;display:flex;box-shadow:0 4px #3a2a1e59}#hud .icon.coin{width:30px;height:30px}.icon.heart,.fly.heart{width:32px;height:32px}.icon.heart svg,.fly.heart svg{fill:#ff6b81;stroke:#3a2a1e;stroke-width:2.4px;stroke-linejoin:round;width:100%;height:100%}.fly{z-index:30;pointer-events:none;position:fixed;top:0;left:0}.fly.coin{width:28px;height:28px}#buildbar{padding:10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));scrollbar-width:none;z-index:15;background:#f6e3b4;border-top:5px solid #3a2a1e;align-items:center;gap:10px;display:flex;position:fixed;bottom:0;left:0;right:0;overflow:auto hidden}#buildbar::-webkit-scrollbar{display:none}#buildbar button{cursor:pointer;border:4px solid #3a2a1e;flex:none;padding:0;box-shadow:0 4px #3a2a1e59}#buildbar button:active{transform:translateY(3px);box-shadow:0 1px #3a2a1e59}#buildbar .group{background:#fff8e7;border-radius:24px;width:76px;height:76px;font-size:42px;line-height:1}#buildbar .group[aria-expanded=true]{background:#ffd43b}#buildbar .items{gap:10px;display:none}#buildbar .items.open{animation:.2s ease-out unfold;display:flex}@keyframes unfold{0%{opacity:0;transform:translate(-12px)}}#buildbar .item{box-sizing:border-box;background:#e7f9d9;border-radius:22px;flex-direction:column;justify-content:space-between;align-items:center;width:108px;height:116px;padding:4px 2px 6px;display:flex}#buildbar .item canvas{pointer-events:none;width:100px;height:84px}#buildbar .item .price{color:#5a3b00;pointer-events:none;align-items:center;gap:5px;font:900 19px/1 system-ui,sans-serif;display:flex}#buildbar .item .coin{border-width:2.5px;width:18px;height:18px}#buildbar .item.poor{opacity:.4}#buildbar .item.active{background:#c3f7a0;transform:translateY(-6px)scale(1.05)}.round{color:#fff;z-index:16;cursor:pointer;border:5px solid #3a2a1e;border-radius:50%;justify-content:center;align-items:center;width:76px;height:76px;padding:0;font:900 40px/1 system-ui,sans-serif;display:none;position:fixed;top:0;left:0;box-shadow:0 5px #3a2a1e66}body.building .round{display:flex}#build-ok{background:#40c057}#build-cancel{background:#fa5252}#build-ok.off{opacity:.7;background:#adb5bd}body.selecting .round.pick:not([hidden]){display:flex}#rearrange-move{background:#4dabf7}#rearrange-remove{background:#ff922b}body.building .round.pick{display:none}#hud .counter.level{gap:10px;min-width:0;padding-right:10px}#hud .level .star{clip-path:polygon(50% 0,63% 33%,98% 36%,71% 59%,80% 95%,50% 76%,20% 95%,29% 59%,2% 36%,37% 33%);color:#5a3b00;box-sizing:border-box;background:#ffd43b;place-items:center;width:40px;height:40px;margin:-4px 0 -4px -2px;padding-top:4px;font:900 19px/1 system-ui,sans-serif;display:grid}#hud .level .bar{background:#f3dcc2;border:3px solid #3a2a1e;border-radius:999px;width:120px;height:20px;position:relative;overflow:hidden}#hud .level .fill{background:#ff6b81;border-radius:999px;transition:width .3s ease-out;position:absolute;inset:0 auto 0 0}#celebration{z-index:25;pointer-events:none;display:none;position:fixed;inset:0}#celebration.on{display:block}#celebration .rays,#celebration .bigstar{position:absolute;top:42%;left:50%}#celebration .rays{background:repeating-conic-gradient(#ffe678bf 0 12deg, transparent 12deg 30deg);border-radius:50%;width:420px;height:420px;mask:radial-gradient(circle,#000 35%,#0000 70%)}#celebration .bigstar{box-sizing:border-box;clip-path:polygon(50% 0,63% 33%,98% 36%,71% 59%,80% 95%,50% 76%,20% 95%,29% 59%,2% 36%,37% 33%);color:#5a3b00;filter:drop-shadow(0 6px #3a2a1e59);background:#ffd43b;place-items:center;width:200px;height:200px;padding-top:22px;font:900 72px/1 system-ui,sans-serif;display:grid}#celebration .hero{filter:drop-shadow(0 6px #3a2a1e4d);width:240px;height:210px;display:none;position:absolute;top:46%;left:calc(50% + 200px)}#celebration.grand .hero{display:block}#celebration.grand .rays{background:repeating-conic-gradient(#ff8fab 0 10deg, transparent 10deg 20deg, #ffd43b 20deg 30deg, transparent 30deg 40deg, #69db7c 40deg 50deg, transparent 50deg 60deg, #4dabf7 60deg 70deg, transparent 70deg 80deg, #b197fc 80deg 90deg, transparent 90deg 100deg);width:760px;height:760px}#celebration.grand .bigstar{width:260px;height:260px;font-size:96px}@media (max-width:700px){#celebration .hero{top:68%;left:50%}}#celebration.bonus .bigstar:after{content:"";background:radial-gradient(circle at 35% 35%,#fff3a6,#ffc21a 60%,#d99a00);border:5px solid #3a2a1e;border-radius:50%;width:64px;height:64px}.shadow canvas{filter:brightness(0)opacity(.25)}.lock{display:none}.shadow .lock{width:26px;height:26px;display:block;position:absolute;top:4px;right:4px}.shadow .lock svg{fill:#ff6b81;stroke:#3a2a1e;stroke-width:2.4px;width:100%;height:100%}#buildbar .item.shadow,#picker .species.shadow{cursor:default;background:#e6e1d8;position:relative}#buildbar .item.shadow .price,#picker .species.shadow .row{visibility:hidden}#buildbar .hidden,#picker .hidden{display:none!important}#guide{pointer-events:none;z-index:22;width:100vw;height:100vh;position:fixed;inset:0}.parent-lock{top:max(10px, env(safe-area-inset-top));right:max(10px, env(safe-area-inset-right));opacity:.45;z-index:40;touch-action:none;cursor:pointer;background:#fff8e759;border:none;border-radius:50%;width:52px;height:52px;padding:0;position:fixed}.parent-lock.holding{opacity:1}.parent-lock .symbol{place-items:center;font-size:22px;display:grid;position:absolute;inset:0}.ring{pointer-events:none;position:absolute;inset:0}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4px}.ring .track{stroke:#0000}.ring .fill{stroke:#3a2a1e;stroke-linecap:round;stroke-dasharray:calc(var(--hold,0) * 100) 100;visibility:hidden}.holding .ring .fill{visibility:visible;stroke:#ff922b}.parent-overlay{z-index:60;color:#3a2a1e;-webkit-user-select:none;user-select:none;background:#281e148c;justify-content:center;align-items:center;font:500 18px/1.4 system-ui,sans-serif;display:none;position:fixed;inset:0}.parent-overlay.open{display:flex}.parent-overlay .card{box-sizing:border-box;background:#fff8e7;border:5px solid #3a2a1e;border-radius:28px;box-shadow:0 8px #3a2a1e59}.parent-overlay button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#parent-question .card{flex-direction:column;align-items:center;gap:18px;padding:28px 32px;display:flex}#parent-question .sum{font:900 44px/1 system-ui,sans-serif}#parent-question .choices{gap:18px;display:flex}#parent-question .choice{background:#ffe066;border:4px solid #3a2a1e;border-radius:22px;width:110px;height:96px;font:900 40px/1 system-ui,sans-serif;box-shadow:0 5px #3a2a1e59}#parent-area .card{-webkit-overflow-scrolling:touch;width:min(760px,100vw - 24px);max-height:calc(100dvh - 24px);padding:8px 24px 24px;overflow-y:auto}#parent-area .header{z-index:1;background:#fff8e7;justify-content:space-between;align-items:center;padding:12px 0 8px;display:flex;position:sticky;top:-8px}#parent-area h1{margin:0;font-size:28px}#parent-area h2{margin:18px 0 8px;font-size:21px}#parent-area .text{margin:4px 0 10px}#parent-area .close{background:#fff;border:4px solid #3a2a1e;border-radius:50%;width:56px;height:56px;font:900 26px/1 system-ui,sans-serif}#parent-area .part{border-top:3px dashed #e4c58a}#parent-area .row{align-items:center;gap:12px;padding:6px 0;display:flex}#parent-area .row .label{min-width:90px;font-weight:700}#parent-area .row .state{min-width:34px}#parent-area .switch{background:#dee2e6;border:4px solid #3a2a1e;border-radius:999px;width:78px;height:44px;padding:0;position:relative}#parent-area .switch[aria-checked=true]{background:#69db7c}#parent-area .switch .knob{box-sizing:border-box;background:#fff;border:3px solid #3a2a1e;border-radius:50%;width:30px;height:30px;position:absolute;top:3px;left:3px}#parent-area .switch[aria-checked=true] .knob{left:37px}#parent-area .tabs{gap:10px;display:flex}#parent-area .tab{background:#fff;border:3px solid #3a2a1e;border-radius:999px;padding:8px 18px;font-weight:700}#parent-area .tab[aria-selected=true]{background:#a5d8ff}#parent-area .steps{grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0 0;padding:0;list-style:none;display:grid}#parent-area .step{flex-direction:column;gap:6px;font-size:16px;display:flex}#parent-area .picture{aspect-ratio:4/3;background:#fff;border:3px solid #3a2a1e;border-radius:16px;width:100%}#parent-area .reset,#parent-area .reset-confirm{background:#fff;border:4px solid #3a2a1e;border-radius:18px;padding:12px 20px;font-weight:700;position:relative}#parent-area .confirm{display:none}#parent-area .confirm.open{display:block}#parent-area .reset-confirm{touch-action:none;background:#ffc9c9;align-items:center;gap:10px;padding-left:12px;display:inline-flex}#parent-area .reset-confirm .ring{width:36px;height:36px;position:relative}#parent-area .reset-confirm .ring .track{stroke:#3a2a1e33}#parent-area .hold{margin-left:12px;font-size:15px}#parent-area .version{opacity:.7;font-size:15px}@media (max-width:560px){#parent-area .steps{grid-template-columns:1fr}}
