:root{color:#3d2918;font-family:Nunito,Trebuchet MS,sans-serif;background:#1d3d28}*{box-sizing:border-box}html,body{margin:0;height:100%}body{min-height:100dvh;display:grid;place-items:center}button,input{font:inherit}button{cursor:pointer;border:0}#app{position:relative;width:min(480px,100%);height:min(960px,100dvh);display:flex;flex-direction:column;overflow:hidden;background:#fff8ee;box-shadow:0 18px 50px #00000047}.screen{display:flex;flex-direction:column;flex:1;min-height:0}.screen.hidden{display:none}#lobby{justify-content:center;overflow:auto;padding:24px 16px calc(24px + env(safe-area-inset-bottom));background:radial-gradient(circle at 80% 0%,#ffe7a8 0,transparent 32%),linear-gradient(#fff8ee,#f3e2c4)}.card{width:min(100%,380px);margin:0 auto}.mascot{width:116px;height:auto;display:block}.eyebrow{margin:0;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#a15a32}h1{margin:2px 0 8px;font-family:Fredoka,Nunito,sans-serif;font-size:48px;line-height:1;font-weight:700}.lead{margin:0 0 18px;font-size:16px;line-height:1.4}h2{margin:2px 0 8px;font-family:Fredoka,Nunito,sans-serif;font-size:32px;line-height:1;font-weight:700}#lobby-home.hidden,#lobby-account.hidden,#email-step.hidden,#code-step.hidden,.session-card.hidden,#create.hidden,#sign-in.hidden{display:none}#code-step{display:flex;flex-direction:column;align-items:stretch}#resend-code,#change-email{align-self:center}.session-card{margin-bottom:14px;padding:12px 12px 12px 14px;background:#fff;border:2px solid #ecd9bf;border-radius:18px}.session-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.session-id{min-width:0}.session-card .eyebrow{margin-bottom:2px}#session-email{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:800}.secondary{width:100%;margin-top:12px;min-height:52px;background:transparent;color:#8a5a12;border:2px solid #e0c4a0;border-radius:14px;font-family:Fredoka,Nunito,sans-serif;font-size:20px;font-weight:700}#account-out,#resend-code,#change-email{background:transparent;color:#8a5a12;font-weight:800;min-height:36px;padding:0 10px}#account-out:disabled,#resend-code:disabled,#change-email:disabled,#send-code:disabled,#confirm-code:disabled{opacity:.45;cursor:default}.back-link{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;padding:0;background:transparent;color:#6d5344;font-weight:800}.back-link svg{width:18px;height:18px;display:block}#account-code{letter-spacing:.42em;text-align:center;font-family:Fredoka,Nunito,sans-serif;font-size:28px}.join-card{margin-top:22px;padding:14px;background:#ffffffb8;border-radius:18px}.join-card .eyebrow{margin-bottom:10px}.field{display:grid;gap:6px;font-size:14px;font-weight:800}input{width:100%;border:2px solid #ecd9bf;background:#fff;border-radius:14px;padding:12px 14px;font-size:16px;color:#3d2918}input:focus{outline:3px solid #f0c36a;border-color:#e0a04a}.primary,.join-row button,.actions button{border-radius:14px;font-family:Fredoka,Nunito,sans-serif;font-weight:700}.primary,.join-row button{background:#2f7d46;color:#fff}.primary{width:100%;margin-top:12px;min-height:52px;font-size:20px}.primary:disabled,.join-row button:disabled,.actions button:disabled{opacity:.45;cursor:default}.divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:16px 0;color:#8a6a52;font-size:13px;font-weight:800}.divider:before,.divider:after{content:"";height:1px;background:#ecd9bf}.join-row{display:grid;grid-template-columns:1fr auto;gap:8px}#code{text-transform:uppercase;letter-spacing:.18em;font-family:Fredoka,Nunito,sans-serif;font-size:22px;text-align:center}.history{margin-top:18px}.history.hidden{display:none}#history-list{display:grid;gap:8px;margin-top:8px}.history-row{display:grid;grid-template-columns:1fr auto;gap:8px}.history-enter,.history-forget{background:#fff;border:2px solid #ecd9bf;border-radius:14px;color:#3d2918}.history-enter{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:8px 14px;text-align:left}.history-enter strong{font-family:Fredoka,Nunito,sans-serif;font-size:22px;letter-spacing:.14em}.history-enter span{font-size:13px;font-weight:800;color:#8a6a52}.history-forget{min-width:72px;font-family:Fredoka,Nunito,sans-serif;font-size:15px;font-weight:700;color:#8a6a52}.history-enter:disabled,.history-forget:disabled{opacity:.45;cursor:default}.join-row button{min-width:108px;min-height:52px;font-size:18px}.status{min-height:1.3em;margin:12px 0 0;color:#8a3d2a;font-weight:800}#play{position:relative;background:#f6efe2}header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px}.brand{flex:1;min-width:0}.code-row{display:flex;align-items:center;flex-wrap:nowrap;gap:6px}#room-code{font-family:Fredoka,Nunito,sans-serif;font-size:28px;letter-spacing:.14em;line-height:1}.icon-btn{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;background:#fff;color:#6d5344;border-radius:50%}.icon-btn svg{width:18px;height:18px;display:block}#player-pills{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.side-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:46%}.coin-pill{display:inline-flex;align-items:baseline;gap:4px;background:#f0b429;color:#4a3010;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;white-space:nowrap}.coin-pill strong{font-family:Fredoka,Nunito,sans-serif;font-size:16px;line-height:1}#coin-line{margin:0;padding:6px 10px;border-radius:999px;background:#f0b429;color:#4a3010;font-size:13px;font-weight:800;white-space:nowrap}.pill{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:5px 8px;font-size:13px;font-weight:800}.pill .dot{width:8px;height:8px;border-radius:50%;background:#2f7d46}.pill.away{color:#8a7768}.pill.away .dot{background:#c4b5a5}.yard-wrap{position:relative;flex:1.4;min-height:280px;display:flex}#yard{flex:1;width:100%;min-height:280px;touch-action:none;background:linear-gradient(#8fd3f4,#8fce67)}.float-actions{position:absolute;right:8px;top:10px;display:flex;flex-direction:column;gap:8px;z-index:2}.float{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;color:#fff;box-shadow:0 5px 10px #2818083d;overflow:hidden}.float .ico{position:relative;z-index:1;display:grid;width:22px;height:22px}.float:has(em) .ico{transform:translateY(-4px)}.float svg{width:22px;height:22px;display:block}.float em{position:absolute;z-index:1;left:50%;bottom:3px;transform:translate(-50%);color:#fff;font-size:9px;font-style:normal;font-weight:800;line-height:1;text-shadow:0 1px 2px rgba(40,24,8,.45)}.float.sack{background:#e39b2b}.float.store{background:#d4533c}.float.basket{background:#8c5a32}.float.water{background:#3aa0d8}.float.clean{background:#5aaa45}.float.sack.armed{box-shadow:0 0 0 2px #fff4d2,0 5px 10px #2818083d}.float:disabled{opacity:.5}.float:active:not(:disabled){transform:scale(.96)}.panel{padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:#fff8ee;border-top:1px solid #f0e2cc}#care.hidden,.gift-box.hidden{display:none}.gift-copy{margin:4px 0 10px;line-height:1.35}.gift-form{display:grid;gap:8px}.gift-form.hidden{display:none}.gift-form button{min-height:48px;border-radius:14px;background:#e25b8a;color:#fff;font-family:Fredoka,Nunito,sans-serif;font-weight:700;font-size:18px}.panel-top{display:flex;justify-content:space-between;gap:10px;align-items:end}#bird-name{font-family:Fredoka,Nunito,sans-serif;font-size:22px}.name-line{display:flex;align-items:center;gap:8px}.name-line.hidden{display:none}#rename{border:0;background:#f3e4cf;color:#6d4a2e;border-radius:999px;padding:4px 10px;min-height:32px;font-family:Fredoka,Nunito,sans-serif;font-size:13px}.rename-form{display:flex;gap:6px;margin-top:2px}.rename-form.hidden{display:none}.rename-form input{width:8.5rem;min-height:40px;padding:8px 10px}.rename-form button{border:0;background:#2f7d46;color:#fff;border-radius:12px;padding:0 12px;min-height:40px;font-family:Fredoka,Nunito,sans-serif}.resources{display:grid;grid-template-columns:auto auto;gap:4px 10px;font-size:12px;font-weight:800}.res{display:flex;align-items:center;gap:6px;color:#6d5344}.res strong{color:#3d2918;font-size:14px}.shop.hidden{display:none}.shop{position:absolute;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:4}.shop-card{background:#fffaf3;border-radius:18px;padding:14px;box-shadow:0 12px 32px #3c1e0a33;max-height:min(78vh,640px);overflow:auto}.shop-card strong{display:block;margin:2px 0 6px;font-family:Fredoka,Nunito,sans-serif;font-size:22px}.shop-card p{margin:0 0 12px;color:#6d5344;font-weight:800}.shop-actions{display:flex;gap:8px}.shop-actions button{flex:1;min-height:46px;border-radius:999px;font-family:Fredoka,Nunito,sans-serif;font-weight:700;font-size:16px}#buy-coins:disabled,#buy-eggs:disabled,.bird-offer button:disabled{opacity:1;background:#efe6d8;color:#8d7768}#buy-coins,#buy-eggs,#sell-egg{background:#e39b2b;color:#fff}#eat-egg{background:#e25b8a;color:#fff}#shop .shop-card{padding:0;background:#7a4a28;border-radius:22px;box-shadow:0 14px #5c3418,0 22px 36px #28120859}#shop .awning{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 16px;background:repeating-linear-gradient(90deg,#e15b4c 0,#e15b4c 16px,#f6efe2 16px,#f6efe2 32px);box-shadow:inset 0 -6px #5a181233}#shop .sign{display:inline-block;margin:0;padding:2px 12px 4px;background:#fffaf3;color:#3d2918;border-radius:8px;font-size:22px;box-shadow:0 3px #5a1e1040}#shop .counter-top{padding:16px 12px 6px;background:linear-gradient(180deg,rgba(255,236,196,.28),transparent 28px),repeating-linear-gradient(90deg,#c99255 0,#c99255 14px,#b88346 14px,#b88346 22px,#c99255 22px,#c99255 36px);box-shadow:inset 0 10px #9a6840}#shop .good-body>p{margin:2px 0 8px;font-size:14px;font-weight:700}#shop .good-body .offer-note{margin:8px 0 0}#shop .offer{background:#fffaf3f2;border:0;border-radius:16px;padding:10px;margin-bottom:10px;box-shadow:0 5px #4a2a1247}#shop .good{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:start}.good-mark{position:relative;width:48px;height:48px;margin-top:2px}.good-mark.grain{border-radius:16px 16px 12px 12px;background:#f0b429;box-shadow:inset 0 -7px #d08912,0 4px #4a2a1240}.good-mark.grain:before{content:"";position:absolute;left:8px;right:8px;top:12px;height:7px;border-radius:99px;background:#ffe08a}.good-mark.hen,.good-mark.rooster{width:42px;height:32px;margin:12px 3px 0;border-radius:50%;background:#f6d7a2;box-shadow:0 4px #4a2a1240}.good-mark.rooster{background:#f09a3a}.good-mark.hen:before,.good-mark.rooster:before{content:"";position:absolute;top:-8px;left:14px;width:12px;height:10px;background:#e15b4c;border-radius:50% 50% 35% 35%}.good-mark.hen:after,.good-mark.rooster:after{content:"";position:absolute;right:-4px;top:10px;border:6px solid transparent;border-left:8px solid #e39b2b}#shop .offer-top span,#shop .tag{background:#fff6d8;border:1px dashed #e2b15a;border-radius:3px 8px 8px 3px;padding:2px 7px;box-shadow:2px 2px #5a32101f}#shop .counter-lip{padding:8px 12px 12px;background:linear-gradient(180deg,#8d5a32,#6e4324);box-shadow:inset 0 8px #0000001f}#shop .sheet-close{margin-top:0}.offer{background:#fff;border:1px solid #f3e6d4;border-radius:16px;padding:12px;margin-bottom:8px}.offer-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.offer-top strong{margin:0;font-size:18px}.offer-top span{color:#8a5a12;font-size:13px;font-weight:800;white-space:nowrap}.shop-card .offer>p{margin:4px 0 10px;font-size:14px;font-weight:700}.shop-card .offer-note{margin:8px 0 0;color:#a15a32;font-size:13px}.offer-note:empty{display:none}.offer.owned .bird-offer,.offer.owned .good-body>p:not(.offer-note){display:none}.bird-offer{display:grid}.bird-offer button{width:100%;min-height:46px;padding:0 14px;border-radius:999px;background:#2f7d46;color:#fff;font-family:Fredoka,Nunito,sans-serif;font-weight:700}#shop-close,.sheet-close{background:#fff;color:#6d5344;border:2px solid #ecd9bf}.sheet-close{width:100%;min-height:42px;margin-top:8px;border-radius:999px;font-family:Fredoka,Nunito,sans-serif;font-weight:700}#corn:empty{display:none}#corn{color:#a15a32;font-style:normal;font-size:12px}.bar{height:8px;flex:1;background:#eadfce;border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;width:0%;border-radius:inherit;background:#3aa0d8}.egg-line{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin:8px 0;font-size:12px;font-weight:800;color:#6d5344}.bar.egg>span{background:#f0b429}#bars{display:grid;gap:4px;margin-bottom:8px}.stat{display:grid;grid-template-columns:72px 1fr 32px;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#6d5344}.stat .bar>span{transition:width .45s linear}.stat.hunger .bar>span{background:#e39b2b}.stat.thirst .bar>span{background:#3aa0d8}.stat.mood .bar>span{background:#e25b8a}.stat.clean .bar>span{background:#5aaa45}.stat.low em,.stat.low{color:#c43b3b}.stat em{font-style:normal;text-align:right;color:#3d2918}.actions{display:grid;grid-template-columns:1fr;gap:8px}.actions button{position:relative;overflow:hidden;min-height:48px;padding:8px 4px;color:#fff;font-size:15px;line-height:1.1;white-space:nowrap}.actions button:nth-child(1){background:#e25b8a}.actions button.armed{box-shadow:0 0 0 3px #fff4d2}.actions button:active:not(:disabled){transform:translateY(1px) scale(.98)}.actions .label{position:relative;z-index:1}.wipe{position:absolute;left:0;top:0;bottom:0;width:0%;background:#ffffff47}.hint{min-height:2.5em;margin:8px 0 0;color:#6d5344;font-size:14px;font-weight:800}.toast{position:absolute;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));background:#3d2918;color:#fff8ee;border-radius:14px;padding:12px 14px;font-weight:800;text-align:center;z-index:3;overflow-wrap:anywhere}.toast.hidden{display:none}
