/* A picture-first game surface with the controls tucked into the scene. */
:root{--game-dark:#264e41}.visual-mode{background:#e4ebd8}.visual-mode header{height:64px;padding:9px 4%;background:#f7f7ec;border-bottom:1px solid #ced8c2}.visual-mode .brand{font-size:27px;gap:8px}.visual-mode .brand span{font-size:8px;letter-spacing:2px}.visual-mode .brand b{font-size:12px}.visual-mode .edition{display:none}.visual-mode #next{padding:8px 15px;font-size:22px;border-radius:25px;background:#ead69a;color:#72603d}.visual-mode main{max-width:1440px;padding:0 20px 10px}.visual-mode .sim-title,.visual-mode .section-head,.visual-mode aside,.visual-mode footer{display:none}.visual-mode .stats{display:flex;justify-content:center;gap:22px;margin:0;padding:9px 0}.visual-mode .stat{background:transparent;border:0;border-radius:0;padding:0;gap:7px}.visual-mode .stat i{background:transparent;font-size:18px;padding:0}.visual-mode .stat small{display:none}.visual-mode .stat b{font-size:15px}.visual-mode .stat em{font-size:10px}.visual-mode nav{justify-content:center;gap:30px;border-bottom:0;padding-bottom:9px}.visual-mode nav button{font-size:11px;padding:8px 0 5px;font-weight:600}.visual-mode nav button.active{border-width:2px}.cinematic-stage{border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #294f351c;border:1px solid #b7c9b1;background:#b6d2c7}.cinematic-stage .scene{aspect-ratio:1000/560;min-height:450px;max-height:760px;isolation:isolate}.sky-hud{position:absolute;top:18px;left:20px;right:20px;display:flex;gap:10px;align-items:center;z-index:220;pointer-events:none}.sky-hud>span,.sky-hud button{pointer-events:auto;background:#fff9e4c9;border:1px solid #fff8ddcc;backdrop-filter:blur(6px);border-radius:22px;padding:8px 13px;color:#496857;font-size:12px;box-shadow:0 2px 6px #40674a09}.sky-hud #inside-count{margin-left:auto}.sky-hud button{font-size:13px;font-weight:700;min-height:36px;min-width:36px;padding:8px}.sky-hud #inside-count span{color:#9cac94}.touch-hint{position:absolute;top:65px;left:50%;transform:translateX(-50%);font-size:11px;color:#425b4b;background:#fff8dd9c;border-radius:20px;padding:7px 15px;z-index:155;white-space:nowrap;pointer-events:none}.touch-hint:empty{display:none}.cinematic-stage .scene.pairing .touch-hint{background:#fff2e5;color:#b86f74;font-size:13px}.scene-bird{width:110px;height:105px;transform:translate(-50%,-75%) scale(var(--size,1));transition:none}.scene-bird svg{overflow:visible}.sprite-stack{width:100%;height:100%;position:relative}.sprite-stack .pigeon-sprite{width:100%;height:auto;position:absolute;inset:0}.sprite-stack .flying-sprite{position:absolute;width:150%;height:150%;left:-25%;top:-35%;display:none}.scene-bird.airborne .pigeon-sprite{display:none}.scene-bird.airborne .flying-sprite{display:block;transform:scaleX(var(--dir,1)) rotate(var(--bank,0deg))}.flying-sprite .near-wing{transform-origin:85px 94px;animation:real-wing .38s ease-in-out infinite alternate}.flying-sprite .far-wing{transform-origin:85px 94px;animation:far-wing .38s ease-in-out infinite alternate}.scene-bird.flight{width:102px;height:100px}.scene-bird.takeoff{width:112px;height:105px}.scene-bird.roost .bird-legs{opacity:.1}.scene-bird.roost .bird-body{transform:translateY(8px) scaleY(.9)}.scene-bird.chick .bird-body{filter:sepia(.4) saturate(.7)}.scene-bird.waiting .bird-shadow{opacity:.16}.scene-bird.waiting .flap-wing{animation:none}.scene-bird.selected::before{background:#fff5b633;box-shadow:0 0 16px #f5d77a99;border-width:2px}.scene-bird.mate-option::before{border-width:3px}.scene-bird .bird-label{font-size:10px;padding:4px 8px;background:#fff8e6e6;bottom:3px;box-shadow:0 2px 5px #294a3022}.bird-emote{top:1px;font-size:22px}.nest-heart{transform-box:fill-box;transform-origin:center;animation:heart-bob 2.4s ease-in-out infinite}.scene .nest-item{left:38%;top:46%;width:18%;height:14%;z-index:5;min-width:0;min-height:0;opacity:0;color:#edb5b1;font-size:35px}.scene.pairing .nest-item{opacity:.35;background:none;pointer-events:none}.scene .feed-item{width:125px;top:78%;z-index:100;transition:transform .2s}.scene .feed-item:active,.scene .water-item:active{transform:translate(-50%,-50%) scale(1.08)}.scene .trough{height:29px;border-width:5px;border-top-width:8px;border-radius:7px 7px 17px 17px;box-shadow:0 9px 5px #65502e30}.scene .feed-item small,.scene .water-item small{background:#fff5d1d9;border-radius:50%;display:inline-block;font-size:15px;padding:4px;margin-top:3px;box-shadow:none;line-height:1}.scene .water-item{width:70px;top:75%;z-index:100}.scene .water-tank{height:60px;width:42px}.scene .water-tank b{left:-14px;width:64px;height:16px;bottom:-10px}.scene .gate-hit{z-index:100}.scene .gate-hit span{background:#fff6dfbf;border-radius:50%;padding:6px;font-size:13px;bottom:-28px}.action-dock{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:8px 12px;background:#fffae2d9;border:1px solid #fff6d5;border-radius:22px;backdrop-filter:blur(10px);box-shadow:0 7px 20px #37583933;z-index:230}.action-dock button{padding:5px 8px 6px;min-width:64px;min-height:70px;background:transparent;border:1px solid transparent;border-radius:14px;color:#526b4d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;transition:background .2s,transform .15s}.action-dock button svg{width:43px;height:43px;filter:drop-shadow(0 2px 1px #47613e1a)}.action-dock button small{font-size:9px;line-height:1.3;font-weight:600}.action-dock button:hover{background:#e5edcd}.action-dock button:active{transform:scale(.92);background:#d6e4bb}.action-dock .gate-is-open{background:#dce7c5;border:1px solid #b9ce9f}.mini-resources{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:20px;z-index:230}.mini-resources>span{display:flex;align-items:center;gap:4px;font-size:12px;color:#415b39}.mini-resources meter{width:62px;height:9px}.mini-resources b{font-size:9px;font-weight:500;min-width:17px}.bird-inspector{display:none;position:absolute;right:17px;bottom:143px;z-index:240;width:276px;border:1px solid #f9f1d4;border-radius:17px;box-shadow:0 8px 30px #27433138;backdrop-filter:blur(12px);background:#fffbeded;padding:12px 14px}.bird-inspector.is-visible{display:block;animation:panel-appear .2s ease-out}.selected-name{display:flex;align-items:center;gap:13px;font-size:13px}.selected-name>b{flex:1}.selected-name>b span{color:#8ca28a;font-size:12px}.selected-name>span{font-size:11px;color:#a68b4f}.selected-name>button{padding:3px 7px;min-height:26px;font-size:22px;font-weight:400;background:transparent;color:#7f8e75}.mini-needs{display:flex;gap:9px;margin:9px 0 12px}.mini-needs>span{display:flex;gap:3px;align-items:center;font-size:10px;color:#b78173}.mini-needs meter{width:54px;height:9px}.bird-inspector .inspector-actions{display:flex;flex-direction:row;justify-content:space-between;gap:3px}.bird-inspector .inspector-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:57px;background:#eef0e0;color:#6c805e;padding:5px 3px;min-height:54px;border-radius:10px}.bird-inspector .inspector-actions button svg{height:30px;width:30px}.bird-inspector .inspector-actions button small{font-size:8px;margin-top:3px;white-space:nowrap}.bird-inspector .inspector-actions button[data-live=pair]{background:#f7e3d9;color:#a66c6b}.bird-inspector .inspector-actions button:disabled{opacity:.35}.flock-details{padding:8px 3px}.flock-details summary{font-size:11px;color:#73876b;list-style:none;display:inline-block;padding:9px 10px;border-radius:8px}.flock-details summary:hover{background:#d5dfcb}.small-print{font-size:11px}.visual-mode #toast{bottom:auto;top:76px;background:#fff7dfef;color:#4c684e;box-shadow:0 4px 18px #29472d22;font-size:14px;z-index:1000;padding:11px 17px;border-radius:25px;max-width:88%;text-align:center;pointer-events:none}.pour{left:34%;top:62%;width:70px;height:60px;font-size:0}.pour.feed,.pour.water{animation:none}.pour i{position:absolute;top:0;left:25%;height:8px;width:4px;border-radius:50%;background:#efc35c;animation:grain-fall .65s linear infinite;box-shadow:0 0 1px #987644}.pour i:nth-child(2){left:40%;animation-delay:-.21s}.pour i:nth-child(3){left:57%;animation-delay:-.4s}.pour i:nth-child(4){left:72%;animation-delay:-.12s}.pour i:nth-child(5){left:46%;animation-delay:-.55s}.pour.water{left:57%;top:58%;width:25px}.pour.water i{background:#7ac7e1;width:7px;height:12px;animation:grain-fall .7s linear infinite;box-shadow:none}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.clouds{animation:cloud-drift 25s ease-in-out infinite alternate}@keyframes real-wing{from{transform:rotate(-28deg) scaleY(1)}to{transform:rotate(38deg) scaleY(.28)}}@keyframes far-wing{from{transform:rotate(18deg) scaleY(.7)}to{transform:rotate(-35deg) scaleY(1.1)}}@keyframes heart-bob{50%{transform:translateY(-5px) scale(1.08)}}@keyframes cloud-drift{to{transform:translateX(24px)}}@keyframes grain-fall{from{transform:translateY(0);opacity:0}20%{opacity:1}to{transform:translateY(85px);opacity:0}}@keyframes panel-appear{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@media(min-width:1450px){.visual-mode main{max-width:1500px}.cinematic-stage .scene{max-height:800px}}@media(max-width:900px){.scene-bird{width:95px;height:92px}.scene-bird.flight,.scene-bird.takeoff{width:93px;height:92px}.action-dock{gap:5px;padding:7px 8px}.action-dock button{min-width:59px;padding:4px}.action-dock button svg{width:39px;height:39px}.scene .feed-item{width:102px}.bird-inspector{width:260px}}@media(max-width:600px){.visual-mode header{height:52px;padding:6px 13px}.visual-mode main{padding:0 0 8px}.visual-mode .brand{font-size:24px;gap:6px}.visual-mode .brand span{font-size:7px}.visual-mode .brand b{font-size:11px}.visual-mode #next{font-size:18px;padding:6px 12px}.visual-mode .stats{padding:8px 10px 4px;gap:17px;justify-content:space-around}.visual-mode .stat{gap:4px}.visual-mode .stat i{font-size:15px}.visual-mode .stat b{font-size:12px}.visual-mode .stat em{font-size:8px}.visual-mode nav{gap:24px;padding:0 12px 7px;justify-content:flex-start}.visual-mode nav button{font-size:10px;padding:8px 0 4px}.cinematic-stage{border-radius:0;border:0;border-top:1px solid #b7c9b1;border-bottom:1px solid #b7c9b1;box-shadow:none}.cinematic-stage .scene{aspect-ratio:auto;height:calc(100svh - 164px);min-height:470px;max-height:780px}.sky-hud{top:12px;left:11px;right:11px;gap:7px}.sky-hud>span{font-size:11px;padding:6px 9px}.sky-hud button{min-width:31px;min-height:31px;font-size:12px;padding:5px}.touch-hint{top:55px;font-size:10px;padding:6px 12px}.action-dock{bottom:33px;width:calc(100% - 18px);justify-content:space-around;gap:0;border-radius:18px;padding:7px 4px}.action-dock button{flex:1;min-width:0;min-height:59px;max-width:64px;padding:2px}.action-dock button svg{width:35px;height:35px}.action-dock button small{font-size:8px}.mini-resources{gap:17px;bottom:11px}.mini-resources meter{width:46px}.mini-resources b{font-size:8px}.mini-resources>span{font-size:10px}.scene-bird{width:76px;height:74px}.scene-bird.flight,.scene-bird.takeoff{width:85px;height:81px}.scene .feed-item{width:88px;top:77%;transform:translate(-50%,-50%) scale(.85)}.scene .water-item{transform:translate(-50%,-50%) scale(.85);top:74%}.scene .gate-hit{left:67%;top:42%;width:9%;height:24%}.scene .gate-hit span{font-size:10px;bottom:-23px;padding:5px}.bird-inspector{bottom:120px;right:9px;width:247px;padding:9px 11px;border-radius:14px}.selected-name{font-size:12px}.bird-inspector .inspector-actions button{width:51px;min-height:48px}.bird-inspector .inspector-actions button svg{width:27px;height:27px}.bird-inspector .inspector-actions button small{font-size:7px}.mini-needs{gap:8px;margin:5px 0 9px}.mini-needs meter{width:48px}.flock-details{margin:0 12px;padding:2px 0}.flock-details summary{font-size:10px;padding:9px 0}.scene-bird .bird-label{font-size:8px;padding:3px 5px;bottom:2px}.bird-emote{font-size:17px;top:0}.visual-mode #toast{top:55px;font-size:12px}.scene .loft-world{filter:saturate(1.03)}.scene .nest-item{transform:none}.visual-mode .grid{grid-template-columns:1fr}}@media(max-height:550px) and (min-width:600px){.visual-mode header{height:46px}.visual-mode .stats{padding:4px}.visual-mode nav{padding-bottom:4px}.cinematic-stage .scene{min-height:340px}.action-dock{bottom:25px}.mini-resources{bottom:5px}}@media(prefers-reduced-motion:reduce){.clouds,.nest-heart,.flying-sprite *,.pour i{animation:none!important}}
@media(max-width:600px){.loft-world .sun-disc{transform-box:fill-box;transform-origin:center;transform:scaleY(.36)}.loft-world .clouds{transform-box:fill-box;transform-origin:center;animation:none;transform:scaleY(.48)}.loft-world .roof-decoration{transform-box:fill-box;transform-origin:center bottom;transform:scaleY(.63)}}
.scene.pairing .bird-inspector{display:none}
