:root{font-family:'Trebuchet MS',Arial,sans-serif;color:#4b301d;font-synthesis:none;--cream:#fff1ce;--gold:#eac56c;--green:#557c3c}*{box-sizing:border-box}body{margin:0;background:#263e28;overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer;border:0;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.45)}button:not(:disabled):active{translate:0 2px}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ffe497;outline-offset:3px;box-shadow:0 0 0 5px #426338}[hidden]{display:none!important}svg{width:25px;height:25px;vertical-align:middle;flex-shrink:0}.symbols{position:absolute;width:0;height:0}.wood{color:#fff1d2;background:linear-gradient(110deg,#724827,#946338 45%,#664023);border:3px solid #57391f;border-radius:14px;box-shadow:inset 0 0 0 2px #bb945c,inset 0 4px #fff2,0 6px 15px #241b163d}.paper{background:linear-gradient(125deg,#fff7df,#eddbb0);border:2px solid #b19261;border-radius:13px;box-shadow:inset 0 0 0 2px #fff4,0 5px 12px #3a261c22}.green,.cream{border:2px solid #627643;border-radius:8px;padding:9px 14px;box-shadow:inset 0 2px #fff5,0 2px #2e44283d;font-weight:bold;font-size:12px;background:linear-gradient(#849e54,#50753d);color:#fff8df}.cream{color:#62482b;border-color:#b99c6c;background:linear-gradient(#fff6dc,#e4d1a3)}.close{background:#87533a;color:#fff3d5;border:1px solid #bd9474;border-radius:7px;width:30px;height:30px;font-size:23px;flex-shrink:0}.meter{height:7px;display:block;background:#9a835a47;border-radius:12px;overflow:hidden}.meter>b{display:block;height:100%;background:linear-gradient(90deg,#537846,#a5b864);border-radius:inherit;width:0;transition:width .2s}#game{position:relative;width:100%;height:100dvh;min-height:620px;isolation:isolate;overflow:hidden}.landscape,.shade,#habitat{position:absolute;inset:0;pointer-events:none;z-index:-3}.landscape{background:url('assets/farm-clear.png') center/cover;transition:filter 1s}.shade{z-index:-2;background:linear-gradient(0deg,#18351cc9,transparent 24%,#1e2d1b18 75%,#26352355)}#habitat{z-index:-1}#habitat>svg{position:absolute;width:53%;height:37%;left:9%;top:29%;filter:drop-shadow(0 9px 4px #282b1933)}.hud{position:absolute;left:22px;right:22px;top:18px;height:72px;display:flex;gap:14px;align-items:stretch;z-index:5}.brand{font:bold 35px Georgia;padding:5px 20px}.wallet{display:flex;align-items:center;gap:12px;padding:8px 19px;min-width:155px}.wallet svg{width:35px;height:35px}.hud small{font-size:8px;letter-spacing:1.5px;display:block}.wallet strong{display:block;font-size:26px;letter-spacing:1px}.stock{margin:auto;display:flex;align-items:center;gap:15px;padding:9px 15px;width:min(430px,45%);height:72px}.stock>span{flex:1}.stock strong{display:block;margin:3px 0;font-size:15px}.stock>svg{height:40px;width:32px}.stock .green{font-size:10px}.gear{width:64px}.goal{position:absolute;top:109px;left:25px;width:300px;text-align:left;padding:13px 17px;z-index:3}.goal small{font-size:8px;letter-spacing:2px;color:#8b693b}.goal strong{display:block;font:bold 19px Georgia;margin:5px 0}.goal>span{display:block;font-size:11px;line-height:1.45}.area-nav{position:absolute;right:25px;top:110px;display:flex;gap:6px;z-index:3}.area-nav button{border-radius:22px;padding:10px 16px;background:#fff0cbdc;border:1px solid #b6945c;font-size:11px}.area-nav button.active{background:#4c6b3d;color:#fff4d4;border-color:#d9d090}.area-nav button small{display:block;font-size:8px;opacity:.7;margin-top:2px}.bird-stage{position:absolute;left:9%;top:29%;width:245px;height:320px;text-align:center}.nameplate{display:inline-flex;flex-direction:column;padding:5px 20px;position:absolute;top:-5px;left:50%;transform:translateX(-50%);z-index:3;white-space:nowrap;border-radius:50%}.nameplate strong{font: bold 20px Georgia}.nameplate small{font-size:8px;margin-top:2px}.bird-shadow{position:absolute;width:72%;height:24px;left:14%;bottom:67px;background:#302c2747;border-radius:50%;filter:blur(5px)}#bird{position:absolute;top:32px;left:0;width:100%;height:235px;background:none;padding:0;border-radius:45%;touch-action:none}#hen-art{position:absolute;inset:0;display:block}#hen-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.hen-base{clip-path:inset(66% 0 0 0)}.hen-body{clip-path:inset(0 0 32% 0);transform-origin:50% 65%;animation:breathe 3s ease-in-out infinite}#bird.peck .hen-body{animation:hen-peck .3s ease-in-out}.bird-sprite{display:block;background-image:url('assets/birds.png');background-size:400% 100%;background-repeat:no-repeat;aspect-ratio:3/4}.bird-stage .bird-sprite{position:absolute;width:176px;height:235px;left:calc(50% - 88px);top:0;animation:breathe 3s ease-in-out infinite}.bird-rate{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 14px;font-size:11px}.bird-hint{position:absolute;bottom:0;left:0;width:100%;font-size:9px;color:#fff2cc;text-shadow:0 1px 3px #382410}kbd{background:#efe0b9;color:#755631;border-radius:3px;padding:1px 4px;font-size:9px}.life{position:absolute;left:25px;bottom:113px;width:260px;text-align:left;padding:12px;font-size:11px;z-index:2}.life strong{display:block;margin-bottom:7px}.life span{display:block;font-size:10px;margin-top:6px;color:#806743}.life.dead{border-color:#b06243}.workers{position:absolute;left:31%;top:30%;width:27%;height:140px;pointer-events:none}.worker{position:absolute;width:65px;height:95px}.worker>.bird-sprite{height:82px;width:61px;filter:drop-shadow(0 4px 1px #49352133)}.collector{left:0;top:10px}.opener{right:0;top:15px;transform:scaleX(-1)}.worker small{display:block;text-align:center;background:#fff0cbe3;border-radius:8px;font-size:8px;padding:3px}.opener small{transform:scaleX(-1)}.carried-egg{position:absolute;width:17px;height:23px;background:#ffeccd;border:2px solid #94714b;border-radius:50% 50% 43% 43%;left:42px;top:45px;display:none}.workers.collecting .collector{animation:carry 1.8s ease-in-out}.workers.collecting .carried-egg{display:block}.workers.pecking .opener>.bird-sprite{animation:helper-peck .4s ease-in-out infinite}.work-caption{position:absolute;top:-6px;left:45%;transform:translateX(-50%);font-size:9px;padding:6px 10px;white-space:nowrap}.area-play{position:absolute;right:26px;top:165px;width:310px;padding:12px 16px;font-size:11px}.area-play h3{font: bold 19px Georgia;margin:0 0 6px}.area-play p{margin:6px 0;line-height:1.4}.dive-track{height:15px;background:#b9bc95;position:relative;border-radius:10px;overflow:hidden;margin:9px 0}.dive-track>i{position:absolute;left:35%;width:23.3%;height:100%;background:#4c994e}.dive-track>b{position:absolute;width:5px;height:100%;background:#fff4c8;border:1px solid #6a582c;left:0}.area-play .green{padding:5px 10px;font-size:10px}.bench{position:absolute;right:25px;bottom:112px;width:calc(100% - 365px);max-width:1070px;z-index:3;padding:15px 18px 12px;background:linear-gradient(110deg,#744c2e,#93693f);}.bench>header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.bench header small{font-size:8px;letter-spacing:2px;color:#e7c9a0}.bench h2{font:bold 21px Georgia;margin:4px 0}.bench header .cream{font-size:10px;padding:6px 10px}.tray{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.egg-card{position:relative;background:linear-gradient(#e3c89c,#cfaf7a);border:2px solid #b5935e;box-shadow:inset 0 -4px #ad8a5755;border-radius:12px;padding:5px;text-align:center;color:#674623;min-width:0}.egg-main{width:100%;height:106px;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;touch-action:none;user-select:none}.egg-main>svg{width:69px;height:83px;overflow:visible;filter:drop-shadow(0 3px 1px #714f2944)}.egg-main:not(:disabled):hover>svg{transform:rotate(-4deg) scale(1.05)}.egg-main strong{font-size:10px;margin-top:2px}.egg-card small{display:block;font-size:8px;min-height:13px}.egg-actions{display:flex;gap:3px;margin-top:4px}.egg-actions button{flex:1;border:1px solid #b1915b;border-radius:5px;padding:4px 0;font-size:9px;background:#f4e5c4}.egg-card.revealed{background:linear-gradient(#ffe9ae,#d3b574);animation:reveal .4s ease-out}.egg-card.revealed .egg-main{opacity:1;filter:none}.egg-card.revealed b{font:bold 19px Georgia;margin:5px}.egg-card.revealed svg{height:45px;width:45px}.egg-card.radiant{box-shadow:inset 0 0 12px #fff4a8}.egg-card.mystery{background:linear-gradient(#cac1d0,#b8a5bd)}.egg-card .progress{height:3px;margin-top:4px;background:#a78958;border-radius:5px;overflow:hidden}.egg-card .progress>i{display:block;height:100%;background:#fff2bd}.egg-card .warm-label{position:absolute;top:10px;left:6px;right:6px;padding:5px;background:#ab673be6;color:white;border-radius:4px;font-size:9px}.bench>footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.bench>footer>span{font-size:10px;line-height:1.5;color:#f0dfbb;max-width:65%;min-height:30px}.bench>footer button{font-size:10px;white-space:nowrap}.bottom{position:absolute;bottom:9px;left:25px;right:25px;z-index:5}.navigation{display:flex;justify-content:space-around;padding:8px;height:64px;gap:4px}.navigation button{flex:1;background:none;color:#f6e4ba;font-size:12px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px}.navigation button:hover,.navigation button.active{background:#d1ad6630}.save-line{font-size:8px;display:flex;justify-content:space-between;color:#dddfc2;padding:7px 10px 0}.panel{position:absolute;right:25px;top:106px;bottom:112px;width:min(535px,calc(100% - 50px));z-index:10;display:flex;flex-direction:column;overflow:hidden}.panel>header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-radius:10px 10px 0 0;flex-shrink:0}.panel h2{font: bold 24px Georgia;margin:0}#panel-body{padding:18px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#ab8952 #ead5ac}.panel p,dialog p{font-size:12px;line-height:1.6}.card{padding:15px;border:1px solid #bc9b66;border-radius:10px;margin:10px 0;background:#fff9df66}.card h3{font:bold 20px Georgia;margin:0 0 7px}.card h3 small{font:10px Arial;float:right}.card p{margin:6px 0 12px}.card .row{display:flex;justify-content:space-between;align-items:center;gap:10px}.card.locked{opacity:.8}.card .green{font-size:11px}.rule{display:flex;justify-content:space-between;gap:8px;margin:8px 0;font-size:12px;align-items:center}select{padding:7px;background:#fff8e4;border:1px solid #b29971;border-radius:5px;color:#634d2f;max-width:65%}.notice{border-left:3px solid #75904a;padding:9px 12px;background:#76915018;font-size:11px;line-height:1.6}.pill{font-size:10px;display:inline-block;background:#ddd2a8;padding:5px 9px;border-radius:10px;margin:3px}.checks p{border-bottom:1px solid #bca67a55;padding-bottom:8px}.phoenix-icon{display:block;width:130px;height:150px;margin:12px auto;filter:drop-shadow(0 0 25px #eab752);color:#f0c365}.final-sky .landscape{filter:saturate(1.15) brightness(1.1)}.menu{position:absolute;inset:0;z-index:20;background:linear-gradient(90deg,#f6e4bbfa 0%,#f6e4bbeb 36%,#e6d29c44 70%,#27351d55);display:flex;align-items:center}.menu-copy{margin-left:8%;width:430px;z-index:1}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#7e5e36}.menu h1{font:bold 104px Georgia;margin:12px 0 0;color:#694326;text-shadow:0 3px #fff3c8}.menu h2{font:24px Georgia;margin:0 0 20px}.menu p{font-size:14px;line-height:1.7}.menu-hen{position:absolute;width:40%;max-height:68vh;object-fit:contain;right:6%;bottom:14%;filter:drop-shadow(0 15px 10px #472d2f33)}.start{width:100%;padding:16px;text-align:left;font-size:17px;margin:15px 0 10px}.menu-buttons{display:flex;gap:8px}.menu-buttons button{flex:1;font-size:11px}.menu-note{display:block;font-size:10px;margin-top:20px;color:#80673f}.resume{padding:13px;font-size:12px;margin-top:20px}.resume small{display:block;margin-top:6px;font-size:10px}.menu-open>.hud,.menu-open>.goal,.menu-open>.area-nav,.menu-open>.bird-stage,.menu-open>.workers,.menu-open>.area-play,.menu-open>.life,.menu-open>.bench,.menu-open>.bottom{visibility:hidden}.panel-open .bench{visibility:hidden}dialog{border:3px solid #866036;border-radius:15px;background:linear-gradient(135deg,#fff4d4,#ead0a2);color:#573b24;width:min(560px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:28px;box-shadow:0 15px 80px #1d211978}dialog::backdrop{background:#19261caa;backdrop-filter:blur(4px)}dialog>.close{position:absolute;right:12px;top:12px}dialog h2{font:bold 28px Georgia;margin:5px 30px 18px 0}.actions{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap}.setting{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #bca67b66;font-size:12px}.setting input{accent-color:#607f45}.setting input[type=range]{width:150px}#toast{position:absolute;bottom:90px;left:50%;transform:translateX(-50%) translateY(15px);background:#355438f5;border:1px solid #d3c585;color:#fff2ce;padding:12px 20px;border-radius:25px;max-width:80%;font-size:12px;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateX(-50%)}#particles{position:absolute;inset:0;pointer-events:none;z-index:4}.flying-egg{position:absolute;width:23px;height:31px;background:linear-gradient(115deg,#fff9e8,#d8b98a);border:2px solid #8b653d;border-radius:50% 50% 43% 43%;animation:egg-flight .75s ease-in forwards;box-shadow:1px 4px 4px #39261833}.spark{position:absolute;width:7px;height:12px;border-radius:3px;background:#ffd971;animation:spark .9s ease-out forwards}.big-type .panel p,.big-type dialog p{font-size:15px}.big-type .goal>span{font-size:13px}.reduced-motion *{animation:none!important;transition:none!important}.reduced-motion .flying-egg{display:none}.reduced-motion .spark{display:none}
@keyframes breathe{50%{transform:translateY(-3px) rotate(.5deg)}}@keyframes hen-peck{45%{transform:scale(1.035,.96) rotate(-2deg)}}@keyframes helper-peck{40%{transform:rotate(12deg) translateY(5px)}}@keyframes carry{0%,100%{translate:0 0}45%,65%{translate:95px 20px}}@keyframes reveal{from{transform:scale(.9);filter:brightness(1.6)}to{transform:scale(1);filter:brightness(1)}}@keyframes egg-flight{0%{transform:translate(0,0) rotate(-15deg);opacity:0}20%{opacity:1}50%{transform:translate(45px,-35px) rotate(15deg)}100%{transform:translate(90px,60px) rotate(35deg);opacity:0}}@keyframes spark{to{transform:translate(var(--x),var(--y)) rotate(180deg);opacity:0}}
@media(min-height:850px){.bird-stage{top:32%;width:280px;height:370px}.bird-stage #bird{height:285px}.bird-stage .bird-sprite{height:285px;width:214px;left:calc(50% - 107px)}.bench{bottom:120px;padding:20px}.egg-main{height:140px}.egg-main>svg{height:113px;width:90px}.workers{top:38%}.area-play{top:180px}.bench h2{font-size:25px}}
@media(max-width:1050px){.hud{left:15px;right:15px;gap:8px}.brand{font-size:27px;padding:5px 10px}.wallet{min-width:124px;padding:8px 10px}.stock{width:42%;gap:7px}.stock .green{padding:7px}.goal{left:15px;width:265px}.area-nav{right:15px}.area-nav button{padding:8px 10px}.bird-stage{left:5%;width:215px;top:31%}.bench{right:15px;width:calc(100% - 295px);padding:12px}.life{left:15px;width:240px}.tray{gap:5px}.egg-main{height:95px}.egg-main>svg{width:55px;height:72px}.egg-main strong{font-size:9px}.bench h2{font-size:18px}.bench>footer{gap:5px}.bench>footer button{white-space:normal;max-width:130px}.area-play{right:15px;width:280px}.workers{left:30%;width:28%;top:30%}.navigation button{font-size:10px;gap:5px}.navigation svg{width:20px}.bottom{left:15px;right:15px}}
@media(max-height:690px){.goal{padding:9px 13px}.goal strong{font-size:17px}.goal>span{font-size:10px}.bird-stage{top:31%;height:275px;width:205px}#bird{height:195px}.bird-stage .bird-sprite{height:195px;width:146px;left:calc(50% - 73px)}.nameplate{top:-8px}.bird-rate{bottom:24px}.bird-hint{bottom:3px}.bench{bottom:103px}.egg-main{height:80px}.egg-main>svg{height:60px}.area-play{top:155px;padding:9px;font-size:10px}.area-play p{margin:3px 0}.area-play h3{font-size:16px}.life{bottom:108px;padding:8px}.life span{font-size:9px}.workers{top:28%}.menu h1{font-size:80px}.menu h2{font-size:21px}.menu p{font-size:12px}.resume{margin-top:10px}.menu-note{margin-top:10px}.panel{bottom:103px}}
@media(max-width:750px){body{overflow:auto}#game{min-width:620px;min-height:650px}.hud{height:61px}.brand{display:none}.stock{height:61px;width:55%}.wallet strong{font-size:21px}.hud small{font-size:7px}.gear{width:46px}.goal{top:92px;width:230px}.area-nav{top:94px;gap:3px}.area-nav button{font-size:9px;padding:8px}.bird-stage{left:1%;top:31%;width:195px}.bench{width:calc(100% - 235px);right:10px;padding:9px}.bench h2{font-size:15px}.bench header small{font-size:7px}.egg-actions{flex-direction:column}.egg-main{height:83px}.egg-main>svg{width:44px;height:60px}.egg-main strong{font-size:8px}.egg-card{padding:3px}.egg-card small{font-size:7px}.bench>footer>span{font-size:9px}.bench header .cream{font-size:9px;padding:5px}.life{left:10px;width:200px}.workers{left:35%;width:27%;top:29%;scale:.75}.area-play{width:230px;right:10px;top:145px;font-size:10px}.area-play h3{font-size:16px}.navigation button{font-size:9px;gap:3px}.navigation svg{display:none}.menu-copy{margin-left:5%;width:320px}.menu-hen{right:0;width:42%;bottom:18%}.menu h1{font-size:80px}.menu p{font-size:12px}.panel{right:10px;width:calc(100% - 30px);top:90px}.bottom{left:10px;right:10px}}
#game[data-area="1"] .landscape{background-image:url('assets/farm-pond.png')}#game[data-area="2"] .landscape{background-image:url('assets/farm-garden.png')}#game[data-area="3"] .landscape{background-image:url('assets/farm-ridge.png')}.hen-dead .hen-body{opacity:0}.hen-dead #bird{opacity:.65}.hen-dead .nameplate{opacity:.75}#game[data-area="1"] .workers{left:43%;width:21%}#game[data-area="1"] .bird-shadow{background:#78bfc06b;filter:none;border:2px solid #cef0de8c;height:15px;width:63%;left:19%;bottom:65px;animation:ripple 2s ease-in-out infinite}@keyframes ripple{50%{scale:1.07;opacity:.6}}@media(max-width:1050px){#game[data-area="1"] .workers{left:44%;width:19%}}
/* Scene-first PC layout: compact perimeter UI and central interaction. */
.hud{height:56px;top:16px;left:20px;right:20px;gap:10px}.brand{font-size:27px;padding:4px 15px}.wallet{min-width:130px;padding:5px 13px}.wallet strong{font-size:22px}.wallet svg{width:27px;height:27px}.stock{height:56px;width:340px;margin:0 auto;padding:6px 11px;gap:9px}.stock>svg{width:24px;height:30px}.stock strong{font-size:12px;margin:2px 0}.stock .green{padding:7px 9px}.gear{width:52px}.hud small{font-size:7px;letter-spacing:1px}
.goal{top:96px;left:20px;width:220px;padding:12px 14px;background:#fff1d3ed}.goal strong{font-size:17px}.goal>span{font-size:10px;line-height:1.5}.goal small{font-size:7px}.area-nav{top:94px;right:20px;flex-direction:column;gap:5px;width:136px}.area-nav button{padding:8px 12px;border-radius:8px;text-align:left;font-size:11px;display:flex;justify-content:space-between;align-items:center}.area-nav button small{font-size:8px;margin:0}.area-play{right:20px;top:290px;width:190px;padding:11px 13px;background:#fff2d6e8}.area-play h3{font-size:16px;line-height:1.2}.area-play p{font-size:10px;line-height:1.5}.area-play .green{font-size:10px}.life{left:20px;bottom:105px;width:210px;padding:10px;font-size:10px}.life span{font-size:9px}
.bird-stage{left:50%;top:calc(50% - 180px);width:270px;height:280px;transform:translateX(-50%)}.bird-stage #bird{top:24px;height:205px}.bird-stage .bird-sprite{height:205px;width:154px;left:calc(50% - 77px)}.nameplate{top:-7px;padding:5px 18px}.nameplate strong{font-size:20px}.nameplate small{display:none}.bird-rate{bottom:20px;padding:5px 12px;font-size:10px}.bird-hint{bottom:0;font-size:9px}.bird-shadow{bottom:46px}.workers,#game[data-area="1"] .workers{left:calc(50% - 230px);top:calc(50% - 58px);width:460px;height:100px}.worker{scale:.85;transform-origin:bottom}.opener{transform:scaleX(-1)}.work-caption{top:88px;left:50%;font-size:8px;padding:4px 8px}.worker small{display:none}
.bench{left:50%;right:auto;bottom:101px;transform:translateX(-50%);width:min(620px,calc(100% - 490px));max-width:none;padding:9px 12px 8px;border-width:2px;border-radius:12px;background:linear-gradient(110deg,#765033eb,#8c653bea);box-shadow:inset 0 0 0 1px #bc975b,0 5px 16px #3d2d2133}.bench>header{margin-bottom:6px}.bench header small{display:none}.bench h2{font:bold 15px Georgia;margin:0}.bench header .cream{padding:4px 7px;font-size:9px}.tray{gap:6px}.egg-card{padding:4px;border-width:1px;min-height:96px;background:#efd9acb8;box-shadow:inset 0 -3px #96754130}.egg-main{height:69px}.egg-main>svg{height:51px;width:43px}.egg-main strong{font-size:9px}.egg-card small{font-size:8px;min-height:11px}.egg-card.revealed .egg-main{height:69px}.egg-card.revealed svg{height:25px;width:25px}.egg-card.revealed b{font-size:14px;margin:2px}.egg-actions{margin-top:3px;gap:2px}.egg-actions button{font-size:9px;padding:3px 0}.egg-card .progress{height:2px;margin-top:3px}.bench>footer{margin-top:6px;gap:7px}.bench>footer>span{font-size:9px;line-height:1.4;max-width:64%;min-height:24px}.bench>footer button{font-size:9px;padding:6px 8px;white-space:normal;max-width:150px}.egg-card .warm-label{font-size:8px;padding:4px;top:5px}
.bottom{left:50%;right:auto;transform:translateX(-50%);width:min(860px,calc(100% - 40px));bottom:12px}.navigation{height:49px;padding:5px;border-width:2px}.navigation button{font-size:11px;gap:7px}.navigation svg{width:18px;height:18px}.save-line{font-size:8px;padding-top:6px}.panel{top:90px;bottom:96px;right:20px;width:min(420px,calc(100% - 40px))}.panel h2{font-size:21px}.panel>header{padding:12px 16px}.panel-open .bench{visibility:visible;opacity:.4;pointer-events:none}.panel-open .bird-stage{opacity:.8}#toast{bottom:80px;font-size:11px}#game[data-area="1"] .bird-shadow{bottom:46px}
@media(min-height:850px){.bird-stage{top:calc(50% - 190px);height:330px;width:320px}.bird-stage #bird{height:250px}.bird-stage .bird-sprite{height:250px;width:188px;left:calc(50% - 94px)}.workers,#game[data-area="1"] .workers{top:calc(50% - 40px)}.bench{bottom:116px}.egg-main,.egg-card.revealed .egg-main{height:89px}.egg-main>svg{height:68px;width:55px}}
@media(max-width:1100px){.bench{width:min(580px,calc(100% - 350px))}.goal{width:185px;padding:10px}.goal strong{font-size:15px}.life{width:170px;font-size:9px}.area-play{width:154px;padding:9px;top:280px}.area-play h3{font-size:14px}.area-nav{width:126px}.workers,#game[data-area="1"] .workers{width:390px;left:calc(50% - 195px)}.stock{width:310px}.bench h2{font-size:13px}.navigation button{font-size:10px}.egg-main strong{font-size:8px}}
@media(max-height:690px){.bird-stage{top:155px;height:230px;width:230px}.bird-stage #bird{height:165px;top:20px}.bird-stage .bird-sprite{height:165px;width:124px;left:calc(50% - 62px)}.workers,#game[data-area="1"] .workers{top:240px}.bench{bottom:90px}.egg-main,.egg-card.revealed .egg-main{height:57px}.egg-main>svg{height:41px}.egg-card{min-height:80px}.bird-rate{bottom:19px}.area-play{top:270px}.life{bottom:99px}.panel{bottom:90px}}
@media(max-width:750px){#game{min-width:620px;min-height:700px}.hud{left:12px;right:12px}.stock{width:330px}.goal{left:12px;top:86px;width:180px}.goal>span{font-size:9px}.area-nav{right:12px;top:86px;width:115px}.bird-stage{top:207px;left:48%;width:225px;height:250px}.bird-stage #bird{height:175px}.bird-stage .bird-sprite{height:175px;width:131px;left:calc(50% - 65px)}.workers,#game[data-area="1"] .workers{left:calc(48% - 150px);width:300px;top:275px;scale:.8}.area-play{right:12px;top:274px;width:130px}.area-play p{font-size:9px}.area-play h3{font-size:13px}.life{left:12px;bottom:96px;width:130px;font-size:9px}.life span{font-size:8px}.bench{left:auto;right:12px;transform:none;bottom:96px;width:calc(100% - 166px);padding:8px}.egg-actions{flex-direction:row}.egg-main,.egg-card.revealed .egg-main{height:60px}.egg-main>svg{height:43px;width:35px}.bench h2{font-size:12px}.bench header .cream{font-size:8px;padding:4px}.bench>footer>span{font-size:8px}.navigation button{font-size:9px}.bottom{width:calc(100% - 24px)}.panel{top:85px;right:12px;width:calc(100% - 24px)}}
.chain-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#ead198;color:#5b4225;border-radius:6px;padding:6px 8px;margin-top:6px;font-size:10px;line-height:1.4}.chain-strip .green{font-size:9px;padding:5px 8px;white-space:nowrap}.egg-card.revealed{opacity:.75}.egg-card.revealed .egg-actions{display:none}
#game>.bird-rate{left:20px;bottom:188px;top:auto;transform:none;padding:6px 10px;font-size:10px}#game>.bird-hint{left:20px;bottom:176px;top:auto;width:210px;text-align:left;font-size:9px;color:#fff5d9} .menu-open>.bird-rate,.menu-open>.bird-hint{visibility:hidden}@media(max-width:750px){#game>.bird-rate{left:12px;bottom:192px;font-size:9px}#game>.bird-hint{left:12px;bottom:166px;width:130px;line-height:1.5}}

/* Landscape browser testing: preserve the central scene without a desktop minimum size. */
.rotate-notice{display:none}
@media (orientation:landscape) and (max-height:600px){
 body{overflow:hidden}
 #game{min-width:0;min-height:0;height:100dvh;width:100%;--edge-l:max(8px,env(safe-area-inset-left));--edge-r:max(8px,env(safe-area-inset-right));--floor:max(5px,env(safe-area-inset-bottom));--rail:clamp(120px,18vw,165px)}
 .hud{top:max(5px,env(safe-area-inset-top));left:var(--edge-l);right:var(--edge-r);height:39px;gap:6px}
 .brand{display:block;font-size:20px;padding:2px 9px;border-radius:8px}
 .wallet{min-width:85px;padding:3px 7px;gap:5px;border-radius:8px}.wallet strong{font-size:16px;letter-spacing:0}.wallet svg{width:20px;height:20px}
 .hud small{font-size:7px;letter-spacing:.3px}.stock{height:39px;width:clamp(230px,37vw,320px);padding:3px 7px;gap:6px;border-radius:8px}.stock strong{font-size:10px}.stock>svg{height:22px;width:18px}.stock .meter{height:4px}.stock .green{font-size:9px;padding:5px 7px;min-height:29px}.gear{width:39px;border-radius:8px}.gear svg{width:21px;height:21px}
 .goal{left:var(--edge-l);top:53px;width:var(--rail);padding:8px;border-radius:9px;max-height:calc(100% - 164px);overflow:auto}.goal small{font-size:7px;letter-spacing:1px}.goal strong{font-size:13px;margin:4px 0}.goal>span,.big-type .goal>span{font-size:10px;line-height:1.35}
 .area-nav{right:var(--edge-r);top:53px;width:var(--rail);gap:3px}.area-nav button{min-height:25px;padding:4px 7px;font-size:10px;border-radius:6px}.area-nav button small{font-size:8px}
 .area-play{right:var(--edge-r);top:172px;bottom:calc(var(--floor) + 43px);width:var(--rail);padding:7px;overflow:auto}.area-play h3{font-size:13px;margin:0 0 4px}.area-play p{font-size:10px;line-height:1.35;margin:3px 0}.area-play .green{min-height:29px;padding:4px 7px;font-size:10px}.dive-track{margin:6px 0}.area-play>span{font-size:9px}
 .bird-stage{left:50%;top:54px;width:170px;height:calc(100dvh - 260px);min-height:90px;max-height:205px;transform:translateX(-50%)}
 .bird-stage #bird{top:18px;height:calc(100% - 18px);width:100%}.bird-stage .bird-sprite{height:100%;width:auto;aspect-ratio:3/4;left:50%;transform:translateX(-50%);animation:none}.nameplate{top:0;padding:2px 11px}.nameplate strong{font-size:14px}.bird-shadow,#game[data-area="1"] .bird-shadow{bottom:0;height:9px;width:50%;left:25%}
 .workers,#game[data-area="1"] .workers{left:calc(50% - 135px);top:calc(54px + (100dvh - 260px)/2);width:270px;height:60px;scale:1}.worker{scale:.5;transform-origin:top center}.worker.collector,.worker.opener{top:0}.work-caption{display:none}
 .life{left:var(--edge-l);bottom:calc(var(--floor) + 44px);width:var(--rail);padding:7px;font-size:10px}.life strong{margin-bottom:4px}.life span{font-size:9px;line-height:1.35;margin-top:4px}.life .meter{height:5px}
 #game>.bird-rate{left:var(--edge-l);bottom:calc(var(--floor) + 118px);font-size:9px;padding:4px 7px}#game>.bird-hint{display:none}
 .bench{left:50%;right:auto;bottom:calc(var(--floor) + 43px);transform:translateX(-50%);width:calc(100% - 2*var(--rail) - var(--edge-l) - var(--edge-r) - 18px);padding:6px;border-radius:9px}.bench>header{margin-bottom:4px;gap:4px}.bench h2{font-size:12px}.bench header .cream{font-size:9px;padding:4px 6px;min-height:27px}
 .tray{gap:4px}.egg-card{padding:3px;min-height:0;border-radius:7px}.egg-main,.egg-card.revealed .egg-main{height:48px}.egg-main>svg{height:32px;width:28px}.egg-main strong{font-size:8px}.egg-card.revealed svg{height:18px;width:18px}.egg-card.revealed b{font-size:12px}.egg-card small{font-size:8px;line-height:1.1;min-height:17px}.egg-actions{flex-direction:row;gap:2px;margin-top:2px}.egg-actions button{font-size:9px;padding:3px 0;min-height:25px}.egg-card .progress{margin-top:2px}.egg-card .warm-label{font-size:8px;left:2px;right:2px;padding:3px}
 .bench>footer{margin-top:4px;gap:5px}.bench>footer>span{font-size:9px;line-height:1.2;min-height:0;max-width:none;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bench>footer button{font-size:9px;padding:4px 6px;min-height:28px;max-width:130px}.chain-strip{padding:4px 6px;margin-top:4px;font-size:9px;line-height:1.2;gap:5px}.chain-strip .green{min-height:28px;padding:4px 6px;font-size:9px}
 .bottom{left:var(--edge-l);right:var(--edge-r);width:auto;transform:none;bottom:var(--floor)}.navigation{height:36px;padding:2px;border-radius:8px;gap:2px}.navigation button{font-size:10px;gap:4px;min-width:0}.navigation svg{display:inline-block;width:15px;height:15px}.save-line{display:none}
 .panel{left:auto;right:var(--edge-r);top:49px;bottom:calc(var(--floor) + 43px);width:min(420px,calc(100% - var(--edge-l) - var(--edge-r)));border-radius:9px}.panel>header{padding:6px 10px}.panel h2{font-size:18px}#panel-body{padding:10px}.panel p{font-size:12px}.card{padding:10px;margin:8px 0}.card h3{font-size:17px}.close{min-width:32px;min-height:32px}.panel-open .bench{visibility:hidden}
 .menu{overflow:auto;padding:14px max(20px,env(safe-area-inset-left));align-items:center}.menu-copy{margin:0;width:52%;max-width:430px}.menu .eyebrow{font-size:8px;letter-spacing:1px}.menu h1{font-size:48px;margin:2px 0}.menu h2{font-size:18px;margin:0 0 6px}.menu p{font-size:11px;line-height:1.4;margin:6px 0}.resume{padding:7px;font-size:11px;margin-top:7px}.resume small{font-size:9px;margin-top:3px}.start{font-size:13px;padding:9px;margin:8px 0 6px;min-height:36px}.menu-buttons{gap:5px}.menu-buttons button{padding:7px 5px;font-size:10px;min-height:32px}.menu-note{font-size:9px;margin-top:7px}.menu-hen{right:5%;bottom:10%;width:37%;max-height:75dvh}
 dialog{max-height:calc(100dvh - 16px);width:min(560px,calc(100% - 32px));padding:17px;margin:auto}dialog h2{font-size:22px;margin-bottom:10px}dialog>.close{position:sticky;float:right;top:0;right:0;z-index:2}#toast{bottom:calc(var(--floor) + 43px);font-size:10px;padding:7px 12px;max-width:65%}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:700px){.brand{display:none}.stock{width:270px}.egg-actions{flex-wrap:wrap}.egg-actions button{min-width:45%}.navigation svg{display:none}.menu h1{font-size:40px}}
@media (orientation:portrait) and (max-width:750px){
 body{overflow:hidden}#game{min-width:0;min-height:0;height:100dvh;visibility:hidden}dialog[open]{visibility:hidden}
 .rotate-notice{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;background:radial-gradient(ellipse at top,#587646,#243e2a);color:#fff0ca}.rotate-notice svg{width:90px;height:90px;margin-bottom:18px}.rotate-notice h1{font:bold 25px Georgia;margin:0 0 12px}.rotate-notice p{font-size:15px;line-height:1.6;margin:0}
}
@media (orientation:landscape) and (max-height:600px){
 #game:has(#chain-strip:not([hidden])) .bird-stage{height:calc(100dvh - 310px);min-height:65px}
 #game:has(#chain-strip:not([hidden])) .workers{top:75px}
 #game:has(#chain-strip:not([hidden])) .worker{scale:.4}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:700px){.brand{display:block;font-size:17px;padding:2px 6px}.hud{gap:4px}.stock{width:250px}}
@media (orientation:portrait) and (max-width:750px){#game,dialog[open]{display:none}}
