*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#19343a}body{font-family:Georgia,serif}#farm{position:relative;width:100%;height:100svh;overflow:hidden;touch-action:none;cursor:grab;outline:none}#farm.dragging{cursor:grabbing}#world{position:absolute;transform-origin:0 0;will-change:transform;user-select:none}.landscape{display:block;width:100%;height:100%;pointer-events:none}.brand{position:absolute;left:4.4%;top:.4%;width:18.1%;height:9.2%;overflow:hidden;border-radius:50%;background:#102840;box-shadow:0 1px 3px #0009}.brand img{position:absolute;width:188.3%;max-width:none;height:auto;left:-46.8%;top:-24.8%;pointer-events:none}.song{position:absolute;left:17.2%;width:13.6%;height:3.3%;background:transparent;border:0;border-radius:20px;cursor:pointer;touch-action:none}.flagler{top:81.25%}.potato{top:84.95%}.song:hover,.song:focus-visible{background:#fff2a72a;outline:2px solid #fff4b2}.song[aria-pressed=true]{box-shadow:0 0 10px 3px #f9dc5d,inset 0 0 10px #f9dc5d99}#ambience{position:fixed;right:16px;bottom:16px;min-height:44px;padding:9px 16px;color:#fff4cd;background:#173c2bc9;border:1px solid #e5c46e;border-radius:25px;font:14px Georgia,serif;cursor:pointer;backdrop-filter:blur(6px)}#ambience[aria-pressed=false]{opacity:.7}#hint{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);color:#fff7db;background:#19372bb8;padding:8px 16px;border-radius:25px;font-size:14px;white-space:nowrap;pointer-events:none;transition:opacity 1s}#hint.hidden{opacity:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#flies{position:absolute;inset:0;pointer-events:none}.firefly{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff1a0;box-shadow:0 0 7px 3px #ffd34a88;animation:float 8s ease-in-out infinite,glow 4s ease-in-out infinite}@keyframes float{50%{transform:translate(16px,-25px)}}@keyframes glow{0%,100%{opacity:.05}50%{opacity:.9}}@media(max-width:600px){#hint{bottom:72px;font-size:12px}.song{min-height:24px}#ambience{font-size:12px;right:10px;bottom:10px}}@media(prefers-reduced-motion:reduce){.firefly{animation:none;opacity:.35}}
.brand{width:14%;height:auto;aspect-ratio:666/480;overflow:hidden;z-index:2}.landscape{position:relative}#world:before{content:"";position:absolute;left:0;top:0;width:24%;height:9.5%;background:#102b40;z-index:1;pointer-events:none}

.brand{position:fixed;left:12px;top:10px;width:clamp(110px,14vw,190px);z-index:5}

#header{position:fixed;inset:0 0 auto;height:88px;z-index:10;display:flex;align-items:center;justify-content:center;padding:0 16px 0 200px;background:linear-gradient(0deg,#122b3c,#203b4c);border-bottom:4px solid #b18c48;box-shadow:0 3px 12px #0005}#header h1{margin:0;color:#f5ce62;font-size:clamp(24px,4.5vw,64px);font-weight:600;text-shadow:1px 2px 2px #000;white-space:nowrap}#header .brand{position:absolute;left:20px;top:4px;width:110px;height:auto;aspect-ratio:666/480}#world:before{display:none}.landscape{clip-path:inset(9.5% 0 0)}@media(max-width:600px){#header{height:76px;padding-left:115px;padding-right:8px}#header .brand{left:8px;top:4px;width:95px}#header h1{font-size:clamp(19px,4.6vw,29px)}}

#header{background:#aa6c32 none center/100% 100% no-repeat;border-bottom:3px solid #5b3116;box-shadow:inset 0 3px 8px #fff4,0 4px 12px #0007}#header h1{color:#603315;text-shadow:0 1px 0 #ffd997,0 -1px 1px #2d130b,1px 2px 1px #ebbb78;font-weight:700;letter-spacing:.025em}

#header{background:#122a40 url("assets/wonder-sky-farms.png") center top/100% auto no-repeat;border-bottom:3px solid #a47c3d}#header h1{color:#f3cb63;text-shadow:0 -1px 0 #fff0b1,1px 2px 1px #533816,2px 3px 3px #0009;background:#142c40;box-shadow:0 0 18px 16px #142c40;padding:0 20px}#header .brand{z-index:2}@media(max-width:600px){#header{background-size:auto 800px}#header h1{padding:0 4px;box-shadow:0 0 8px 6px #142c40}}

#header{background:#122a40 none center/100% 100% no-repeat}#header h1{background:transparent;box-shadow:none}
#header{background:#122a40 url("assets/exact-header.png") center top/100% 1055% no-repeat;padding:0;border-bottom:2px solid #8f672e}#header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}#header .brand{left:5%;top:4%;width:auto;height:88%;aspect-ratio:666/480}@media(max-width:600px){#header{height:64px;background-size:100% 1055%}#header .brand{left:2%;height:70%;top:14%}}
#header{background-size:100% 1305%}@media(max-width:600px){#header{background-size:100% 1305%}}

#chickenWalk{position:fixed;z-index:7;left:0;bottom:-24px;width:420px;pointer-events:none;visibility:hidden;will-change:transform}#chickenWalk video{display:block;width:100%;height:auto}#chickenWalk.walking{visibility:visible;animation:chickenCross 18s linear 1 both}@keyframes chickenCross{from{transform:translateX(-420px)}to{transform:translateX(calc(100vw + 80px))}}@media(max-width:600px){#chickenWalk{width:330px;bottom:-16px}.walking{animation-duration:12s!important}}@media(prefers-reduced-motion:reduce){#chickenWalk{display:none}}

#coopChickens{position:absolute;left:5.5%;top:60.7%;width:17%;height:auto;pointer-events:none;z-index:1}.radio-front{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;clip-path:polygon(11% 91%,11% 74%,12% 70%,14% 66%,16% 63%,20% 60%,24% 60%,28% 63%,31% 68%,33% 73%,34% 91%)}.song{z-index:3}#flies{z-index:4}
#coopChickens{left:4.5%;top:58.5%;width:12%}

/* Fixed adventure preview; approved farm composition remains unchanged. */
#adventures{position:fixed;z-index:11;top:90px;left:300px;right:8%;display:flex;justify-content:center;gap:8px;pointer-events:none}.adventure{pointer-events:auto;width:min(43%,450px);aspect-ratio:459/108;border:0;border-radius:24px;background-image:url("assets/layout-reference.png");background-size:345.53% 918.52%;cursor:pointer;box-shadow:0 3px 5px #30190988}.table-mode{background-position:37.71% 10.75%}.train-mode{background-position:79.39% 10.75%}.adventure:focus-visible{outline:3px solid #fff3a1;outline-offset:3px}.adventure[aria-pressed=true]{filter:brightness(1.08);box-shadow:0 0 0 2px #f0c86e,0 3px 5px #30190988}
#harvestList{position:fixed;z-index:11;left:20px;top:100px;width:252px;padding:14px 17px 10px;background:repeating-linear-gradient(10deg,#fff5d611 0 2px,#b68c3d0a 3px 4px),linear-gradient(110deg,#f6dfad,#fff7dd 50%,#f0d59c);color:#48290f;border:2px solid #b68b44;border-radius:6px 13px 18px 5px;box-shadow:3px 5px 8px #412b1f66;transform:rotate(-2deg)}#harvestList:before{content:"";position:absolute;top:-7px;left:48%;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffed9f,#b37319 70%);box-shadow:1px 2px 2px #0007}#harvestList h2{font-size:23px;text-align:center;font-style:italic;line-height:1.15;margin:0 0 10px;border-bottom:1px solid #7c7c45;padding-bottom:10px}#harvestList ul{padding:0;margin:0;list-style:none}#harvestList li{display:flex;align-items:center;gap:7px;border-bottom:1px solid #8c965e80;min-height:49px;font-size:17px}#harvestList li>span{font-size:29px}#harvestList b{font-size:18px;white-space:nowrap;font-weight:normal;margin-left:auto}#listNote{font-size:11px;text-align:center;font-style:italic;margin:10px 0 0;color:#73623e}
#harvestBanner{position:fixed;z-index:10;left:0;right:0;bottom:0;min-height:64px;display:flex;align-items:center;justify-content:space-around;gap:18px;padding:10px 25px;background:repeating-linear-gradient(7deg,#fff3d60a 0 2px,#ae7b2910 3px 4px),linear-gradient(90deg,#eed0a0,#fff4d6 25%,#fff2d2 75%,#edcea0);border:3px double #bc9257;border-radius:22px 16px 15px 20px;box-shadow:0 -2px 5px #39251077;color:#48290f}#harvestBanner p{font:italic clamp(16px,1.7vw,27px) Georgia,serif;margin:0}.banner-leaf{color:#65723a;font-size:40px}.farm-regions{font-size:clamp(15px,1.5vw,23px);border:1px solid #ae884b;border-radius:10px;padding:6px 18px;white-space:nowrap}.farm-regions i{color:#ab672a;padding:0 8px}#ambience{bottom:78px}#hint{bottom:80px}
@media(max-width:750px){#adventures{top:66px;left:5px;right:5px;gap:5px}.adventure{width:49%;border-radius:13px}#harvestList{top:126px;left:8px;width:176px;padding:10px 11px}#harvestList h2{font-size:17px;margin-bottom:4px;padding-bottom:7px}#harvestList li{min-height:35px;font-size:12px;gap:4px}#harvestList li>span{font-size:21px}#harvestList b{font-size:13px}#listNote{font-size:9px}#harvestBanner{min-height:66px;gap:4px;padding:7px 10px;flex-wrap:wrap}#harvestBanner p{font-size:14px;text-align:center}.farm-regions{font-size:12px;padding:3px 12px}.banner-leaf{display:none}#ambience{bottom:79px}#hint{bottom:128px;font-size:11px}}
@media(min-width:751px) and (max-width:1000px){#adventures{left:265px;right:10px}#harvestList{width:225px;left:12px}}
#harvestList{width:280px;aspect-ratio:340/289;padding:0;border:0;border-radius:0;transform:none;background:url("assets/note-border-reference.png") 3.53% 10.81%/466.47% 343.25% no-repeat;box-shadow:none;clip-path:polygon(0 7%,94% 0,97% 9%,96% 85%,100% 94%,5% 100%,1% 91%)}#harvestList:before{display:none}#harvestList>*{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#harvestBanner{height:clamp(64px,6.68vw,106px);min-height:0;border:0;border-radius:0;box-shadow:none;padding:0;background:url("assets/note-border-reference.png") center bottom/100% 936% no-repeat}#harvestBanner>*{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:750px){#harvestList{width:190px;top:126px}#harvestBanner{height:64px;background-size:100% 936%}}@media(min-width:751px) and (max-width:1000px){#harvestList{width:235px}}
.train-mode{background-image:url("assets/book-train-button.png")}

#harvestBanner .farm-life{position:absolute;left:70.5%;top:23%;width:23%;height:48%;overflow:visible;clip-path:none;display:flex;align-items:center;justify-content:center;color:#45270e;font:italic 600 clamp(14px,1.65vw,26px) Georgia,serif;white-space:nowrap}@media(max-width:750px){#harvestBanner .farm-life{font-size:clamp(9px,1.65vw,13px)}}

#farmSoundControls{position:fixed;z-index:12;right:14px;bottom:clamp(80px,8vw,122px);display:flex;align-items:center;gap:9px;background:#173c2bdf;border:1px solid #e5c46e;border-radius:28px;padding:4px 12px 4px 3px;color:#fff4cd;backdrop-filter:blur(5px)}#farmSoundControls #ambience{position:static;border:0;background:none;backdrop-filter:none;padding:8px 10px;opacity:1}#farmVolume{width:100px;accent-color:#ecd078;cursor:pointer;touch-action:auto}#farmVolumeValue{font:11px system-ui,sans-serif;min-width:31px}@media(max-width:750px){#farmSoundControls{bottom:78px;right:8px;gap:5px}#farmVolume{width:72px}#farmSoundControls #ambience{font-size:11px;padding:6px}}

#harvestBanner #farmSoundControls{position:absolute;left:70%;right:auto;top:27%;bottom:auto;width:23%;height:38%;min-height:26px;clip-path:none;overflow:visible;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 7px;background:#173c2bde;border:1px solid #bd9a56;border-radius:16px;backdrop-filter:none}#harvestBanner #farmSoundControls #ambience{font-size:12px;min-height:24px;padding:0 4px;white-space:nowrap}#harvestBanner #farmVolume{width:100%;min-width:25px;height:4px;flex:1;margin:0;accent-color:#ecd078}#harvestBanner #farmVolumeValue{font-size:10px;min-width:27px}@media(max-width:750px){#harvestBanner #farmSoundControls{left:70%;width:23%;gap:3px;padding:0 4px;min-height:23px}#harvestBanner #farmSoundControls #ambience{font-size:9px;min-height:22px;padding:0}#harvestBanner #farmSoundControls #ambience span{display:none}#harvestBanner #farmVolumeValue{font-size:8px;min-width:20px}}
@media(min-width:751px){#harvestList{top:80px}}
@media(min-width:1001px){#harvestList{top:68px;left:55px}}
@media(min-width:751px){#harvestList{top:48px;z-index:13}}
@media(min-width:751px){#harvestList{top:70px}}@media(min-width:1001px){#harvestList{left:70px}}#header .brand{transform:translateY(-6px) scale(.86);transform-origin:top left}
