:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#57331b;background:#8cd7ec;font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;--green:#4baf20;--gold:#ffc82d;--wood:#a45720;--cream:#fff6cf}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 12% 0,#e6fcff 0,transparent 42%),linear-gradient(#67cde9,#c5ed9e 700px,#90bf4d);min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;color:inherit;border:0}button:disabled{opacity:.55;cursor:default}button:not(:disabled):hover{filter:brightness(1.06)}button:not(:disabled):active{translate:0 2px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #0a74bd;outline-offset:3px}[hidden]{display:none!important}.game-shell{max-width:1540px;margin:auto;padding:15px 26px 20px}.topbar{height:82px;display:flex;align-items:center;gap:22px;padding:0 19px 0 0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#70401e;margin-right:auto;font-weight:700;font-size:29px;letter-spacing:-.5px;text-shadow:none}.brand small{display:block;color:#2d704e;text-shadow:none;font-size:11px;letter-spacing:1.5px;margin-top:7px}.brand>span:first-child{display:grid;place-items:center;width:73px;height:73px;border:4px solid #ffe877;border-radius:24px;background:linear-gradient(#fff5be,#ffc72e);box-shadow:0 4px 0 #b37419,inset 0 2px #fff,0 6px 12px #265e3c40;rotate:-5deg}.brand .animal-art{width:66px;height:66px;rotate:5deg}.level-card{display:flex;align-items:center;gap:7px;background:linear-gradient(#62d7fd,#159ae1);border:3px solid #dafaff;border-radius:18px;padding:6px 17px 8px 7px;box-shadow:0 4px #187dac,inset 0 2px #c0f8ff;color:white;text-shadow:none}.level-icon{width:42px;height:42px;filter:drop-shadow(0 2px 1px #076693)}.level-icon svg{width:100%;height:100%}.level-card strong{display:block;font-size:15px}.level-card span{display:block;font-size:11px;margin-top:1px}.xp-track{width:108px;height:7px;border-radius:5px;background:#10668c;box-shadow:inset 0 1px 2px #043659;margin-top:5px;overflow:hidden}.xp-track i{display:block;height:100%;background:linear-gradient(#e9ff77,#a3e925);border-radius:4px;transition:width .3s}.wallet{display:flex;align-items:center;gap:8px;background:linear-gradient(#fff7ad,#ffd34d);border:3px solid #fffae2;border-radius:18px;padding:10px 17px;box-shadow:0 4px #ca8a26,inset 0 2px white}.coin{display:grid;place-items:center;font-size:25px;width:32px;height:32px;border-radius:50%;color:#fffbc1;background:linear-gradient(#ffe96e,#f6a70f);border:3px solid #e6950e;text-shadow:none;box-shadow:inset 0 2px #fff9ab}.wallet strong{font-size:23px;text-shadow:none}.coin-label{font-size:11px;color:#8e6024}.round,.dialog-x{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;border:3px solid #eaffff;background:linear-gradient(#78e4ff,#1b9bd8);color:white;font-size:24px;text-shadow:none;box-shadow:0 4px #1578a6,inset 0 2px #b3f9ff}.page{padding-top:12px}.greeting{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 15px;gap:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.2px;color:#a16b36}h1{font-size:22px;color:#285d32;text-shadow:none;margin:5px 0 0}.greeting .eyebrow{color:#387b5a}.weather{font-size:12px;font-weight:700;color:#3f7643}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:19px;align-items:start}.farm-column{min-width:0}.farm-card{position:relative;border:5px solid #b17532;border-top-color:#ffdb83;border-left-color:#f3c364;border-radius:25px;background:#95cd34 url('farm-world.png') center/100% 100% no-repeat;overflow:hidden;box-shadow:0 7px 0 #77502c,0 12px 24px #315e3b3b;min-height:690px}.farm-nav{height:51px;position:absolute;inset:0 0 auto;z-index:2;display:flex;align-items:center;gap:8px;padding:6px 12px;background:linear-gradient(#174d2066,transparent)}.farm-nav .active{margin-right:auto;font-size:14px;color:white;text-shadow:none}.farm-nav button{padding:9px 13px;border:2px solid #fff7c8;border-radius:12px;background:linear-gradient(#fff9d4,#f4cf65);box-shadow:0 3px #ad6b27;font-size:12px}.scene{position:relative;height:350px}.pens{position:absolute;inset:57px 7% 29px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6%}.pen{position:relative;min-width:0;text-align:center;height:100%}.pen-main{position:relative;background:transparent;width:100%;height:100%;display:block;padding:0}.building-art{display:none}.pen-name{position:absolute;top:0;left:50%;translate:-50% 0;display:block;width:max-content;max-width:100%;background:linear-gradient(#d58b3d,#a45a22);color:#fff8d2;border:2px solid #f7cc75;border-radius:9px;padding:5px 9px;box-shadow:0 3px #694319;font-size:12px;text-shadow:none}.pen-name small{display:inline-block;border-radius:5px;background:#7b451f;padding:2px 4px;color:#fff0a8;margin-left:5px;font-size:11px}.pen-animals{position:absolute;left:0;right:0;bottom:18%;display:flex;justify-content:center;align-items:flex-end;pointer-events:none;filter:drop-shadow(3px 8px 2px #37651b66)}.animal-art{display:inline-block;flex-shrink:0;width:100px;height:100px;background-image:url('farm-animals.png');background-size:200% 200%;background-repeat:no-repeat;vertical-align:middle}.sprite-hen{background-position:0 0}.sprite-goat{background-position:100% 0}.sprite-goose{background-position:0 100%}.sprite-chick{background-position:100% 100%}.pen-animals>.animal-art{width:42%;height:auto;aspect-ratio:1;max-width:104px;margin:0 -4%;animation:animal-bob 3.4s ease-in-out infinite;transform-origin:center bottom}.pen-animals>.animal-art:nth-child(2){animation-delay:-1.4s;transform:scaleX(-1)}.pen-animals>.animal-art:nth-child(3){animation-delay:-2.5s}.pen-animals>.baby{width:28%}.pen-status{position:absolute;bottom:0;left:50%;translate:-50% 0;display:flex;align-items:center;justify-content:center;gap:3px;padding:7px 12px;min-height:38px;border:2px solid #edffc4;border-radius:13px;box-shadow:0 4px #447b16,0 6px 8px #477e2933;background:linear-gradient(#b6ec5c,#67bd27);color:#244e16;font-size:12px;white-space:nowrap;text-shadow:none}.pen-status.ready{background:linear-gradient(#fff277,#ffc51f);border-color:#fffcd3;box-shadow:0 4px #c07a1b,0 0 16px #fff571;color:#834b0e}.pen-status svg{width:26px;height:26px;margin:-6px 0;filter:saturate(1.4) drop-shadow(0 1px 1px #76522240)}.pen-manage{position:absolute;top:41px;right:0;width:33px;height:33px;border:2px solid #fff4bd;border-radius:50%;background:linear-gradient(#ffe889,#f5b62b);font-size:23px;line-height:10px;box-shadow:0 3px #a77528;color:#86531c}.scene-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#fff;font-size:11px;font-weight:700;text-shadow:none;pointer-events:none}.field{position:relative;padding:16px 20px 12px;width:84%;max-width:780px;margin:10px auto 18px;background:linear-gradient(#ffefb9ee,#f8df9bdc);border:3px solid #fff0b2;border-bottom-color:#cc9244;border-radius:20px;box-shadow:0 5px 0 #996b27,0 9px 18px #41662044}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}h2{font-size:21px;font-weight:700;margin:0;letter-spacing:-.5px}h2 span{display:inline-block;font:700 10px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#a17740;letter-spacing:0;margin-left:6px}.text-button{font-size:11px;background:linear-gradient(#92df50,#52b224);color:white;border:2px solid #e7ffb7;box-shadow:0 3px #40811e;border-radius:9px;padding:7px 12px;min-height:34px;text-shadow:none}.seed-picker{display:flex;gap:8px;margin-bottom:16px}.seed-option{display:flex;justify-content:center;align-items:center;gap:5px;flex:1;padding:7px 5px;min-width:0;border:2px solid #ecc57e;border-bottom-width:4px;border-radius:11px;background:linear-gradient(#fffcde,#f8e1a6)}.seed-option.active{background:linear-gradient(#d8f996,#a3df50);border-color:#73ac2e;box-shadow:inset 0 2px #f8ffd0,0 0 0 2px #fffae0}.seed-option svg{width:35px;height:37px;filter:saturate(1.4) drop-shadow(1px 2px 1px #8e722740)}.seed-option strong{display:block;font-size:11px}.seed-option small{display:block;font-size:11px;color:#8f7446;font-weight:500;margin-top:4px}.plots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.plot{position:relative;aspect-ratio:.95;min-height:72px;background:repeating-linear-gradient(0deg,#874d23 0px,#9d6031 6px,#b87b3d 10px,#82451d 14px);border:3px solid #b57937;border-bottom:7px solid #633718;border-radius:11px;box-shadow:0 3px 0 #deb45d,inset 0 2px 2px #53361766;overflow:hidden;color:#fff3c4}.plot.empty{background:repeating-linear-gradient(0deg,#a26435 0,#b67a43 7px,#8d512a 13px)}.plot.ready{border-color:#ffdf57;border-bottom-color:#be8d25;box-shadow:0 0 0 2px #f4ff90,0 4px #8d7d29,inset 0 0 9px #ffd55366}.plot-plus{display:inline-block;font-size:34px;color:#ebc285;text-shadow:none}.plot-label{position:absolute;bottom:4px;left:0;right:0;font-size:11px;font-weight:700;text-shadow:none}.crop-art{position:absolute;inset:0 0 15px;display:flex;justify-content:center;align-items:center;pointer-events:none;filter:saturate(1.4) drop-shadow(3px 4px 1px #4b310588)}.crop-art svg{width:65%;height:95%;margin:0 -11px}.plot.growing .crop-art{transform:scale(.6);transform-origin:50% 85%}.field-tip{text-align:center;font-size:11px;color:#97713a;font-weight:700;margin:12px 0 0}.world-footer{text-align:center;color:#fff4be;font-size:11px;font-weight:700;text-shadow:none;padding:0 0 16px}.inventory-panel{padding:18px 20px;margin-top:22px;background:linear-gradient(#fff4c7,#ffe4a0);border:3px solid #fff5ca;border-radius:18px;box-shadow:0 5px #ad7c36,0 7px 15px #477c3030}.inventory-panel h2{font-size:19px}.inventory{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.inventory-item{text-align:center;background:linear-gradient(#fffdeb,#ffedbb);padding:7px 3px;border:2px solid #eccc8d;border-bottom-width:4px;border-radius:13px}.inventory-item svg{display:block;margin:0 auto 2px;width:39px;height:39px;filter:saturate(1.4) drop-shadow(1px 2px 1px #ba852633)}.inventory-item strong{display:block;font-size:17px}.inventory-item span{display:block;font-size:11px;color:#9e783e;margin-top:3px}.sidebar{min-width:0;display:flex;flex-direction:column;gap:17px}.mission-card,.orders-panel{background:linear-gradient(#fff9d9,#ffe7ad);border:3px solid #fff4c4;border-radius:18px;padding:17px;box-shadow:0 5px #ae7533,0 8px 17px #3a793a33}.mission-card{background:linear-gradient(#bced68,#dff4aa);border-color:#edffc3;box-shadow:0 5px #609c2c}.mission-card .eyebrow{color:#548724}.mission-card h3{font-size:18px;margin:8px 0}.mission-card p{font-size:11px;line-height:1.65;color:#587333;margin:0}.mission-progress{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:12px;font-size:12px;font-weight:700}.mission-progress button,.order-bottom button{border:2px solid #eaffb8;border-radius:9px;padding:7px 9px;background:linear-gradient(#92de42,#55af21);color:white;box-shadow:0 3px #428322;font-size:11px;text-shadow:none}.orders-panel h2{font-size:22px;margin-top:6px}.order{padding:13px 0;border-top:2px dashed #eac68b}.order h3{font-size:13px;margin:0 0 4px}.order .who{font-size:11px;color:#9b773e}.order-needs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.need{display:flex;align-items:center;gap:3px;font-size:12px;font-weight:700;color:#a68658}.need svg{width:31px;height:31px;filter:saturate(1.3)}.need.met{color:#529326}.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:13px;font-weight:700;color:#c78b15}.order-bottom small{font-size:11px;color:#9f7c37}.orders-note{text-align:center;color:#a07d41;font-size:11px;line-height:1.6;margin-bottom:0}.save-note{text-align:center;color:#416b34;font-size:11px;margin:23px 0 0}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%);z-index:20;background:linear-gradient(#ffffdc,#d8f7a6);border:3px solid #fff9cb;border-radius:15px;padding:14px 22px;box-shadow:0 5px #63942b,0 8px 30px #24420e55;color:#376522;font-size:14px;font-weight:700;max-width:calc(100% - 24px);width:max-content;animation:toast-in .2s ease-out}.toast.error{background:#ffedc0;border-color:#fff7df;box-shadow:0 5px #bc7630;color:#a95e27}dialog{width:min(510px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:31px 25px 24px;border:5px solid #e5ad58;border-top-color:#fff0b5;border-left-color:#ffe49c;border-radius:25px;background:linear-gradient(#fff9df,#ffedc0);color:#613d20;box-shadow:0 8px #895126,0 25px 80px #193b2270;overflow:auto}dialog::backdrop{background:#153d3980;backdrop-filter:blur(5px)}dialog h2{font-size:27px;margin:10px 0 13px;padding-right:13px}dialog p{font-size:13px;color:#99784b;line-height:1.7}.dialog-x{position:absolute;top:10px;right:11px;width:34px;height:34px;background:linear-gradient(#ff9768,#eb582d);border-color:#ffdb9b;box-shadow:0 3px #a74725;text-shadow:none;font-size:25px;border-radius:11px}.dialog-art{display:flex;justify-content:center;height:135px}.dialog-art .animal-art{width:133px;height:133px;filter:drop-shadow(0 5px 2px #ab7a3d44)}.dialog-art svg{width:130px;height:130px}.pen-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;text-align:center;background:#f3dc9c;border:2px solid #fff4c9;border-radius:13px;padding:13px;margin:16px 0}.pen-metrics strong{display:block;font-size:24px}.pen-metrics span{display:block;font-size:11px;color:#9b753b;margin-top:3px}.primary,.secondary{width:100%;border:2px solid #e9ffb4;background:linear-gradient(#a4e64b,#62b921);color:white;padding:12px;border-radius:12px;box-shadow:0 4px #428d1e,inset 0 1px #d6ff9a;text-shadow:none;font-size:14px;min-height:44px}.secondary{background:linear-gradient(#fff5bb,#f9d05f);border-color:#fff9dc;box-shadow:0 4px #c4953c;color:#8d6126;text-shadow:none}.action-row{display:flex;gap:9px;margin:13px 0 5px}.cost-line{font-size:11px!important;text-align:center;margin:12px 0 17px}.nursery-note{padding:12px;background:#fff4cb;border:2px solid #f1d48e;border-radius:11px;font-size:12px;line-height:1.65;color:#956e36}.market-row{display:flex;align-items:center;gap:8px;padding:13px 0;border-bottom:2px dashed #e7c687}.market-row svg{width:43px;height:43px}.market-row>div{flex:1}.market-row strong{font-size:13px;display:block}.market-row small{font-size:11px;color:#9f8052;display:block;margin-top:5px}.market-row button{padding:10px 8px;border-radius:8px;background:linear-gradient(#a9e460,#6dc62f);color:#35621b;font-size:11px;box-shadow:0 3px #569c20}.species-tabs{display:flex;gap:8px;margin:18px 0}.species-tabs button{flex:1;padding:10px;border:2px solid #efcc89;border-radius:10px;background:#fff2c4;font-size:12px}.species-tabs button.active{background:linear-gradient(#ade957,#72c031);border-color:#559d24;box-shadow:inset 0 2px #eaffb2;color:#305b12}.help-list{padding-left:20px;font-size:13px;line-height:1.8;color:#9a7545}.help-list li{margin-bottom:10px}@keyframes animal-bob{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -5px;rotate:1deg}}@keyframes toast-in{from{opacity:0;margin-bottom:-7px}to{opacity:1;margin-bottom:0}}.collected{animation:collected .4s ease-out}@keyframes collected{40%{filter:brightness(1.3);scale:1.06}100%{filter:brightness(1);scale:1}}
.community-strip{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin:0 0 26px}.farmer-card,.quiz-card{position:relative;display:flex;align-items:center;gap:20px;text-align:left;padding:21px 24px;border:1px solid #e2dfc9;border-radius:17px;background:linear-gradient(115deg,#f2edda,#faf7eb)}.quiz-card{background:linear-gradient(115deg,#e9eedc,#f4f5e9);border-color:#dce3cd}.farmer-medal,.quiz-card-icon{font-size:43px;line-height:1.3}.farmer-info{flex:1;min-width:0}.farmer-card strong,.quiz-card strong{display:block;font:23px Georgia,serif;margin:7px 0}.farmer-card span#farmer-score{font-size:12px;color:#857449}.farmer-card small,.quiz-card small{display:block;font-size:11px;color:#879071;line-height:1.5}.rank-track{display:block;background:#e5dfc9;height:4px;border-radius:5px;margin:10px 0 6px;max-width:250px;overflow:hidden}.rank-track i{display:block;height:100%;background:#bf9a46;transition:width .3s}.card-arrow{align-self:flex-start;color:#a48e58}.quiz-card-link{display:block;font-size:11px;color:#637c43;margin-top:12px}.community-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh}.quiz-emblem{text-align:center;font-size:58px;margin:20px 0}.quiz-question{font-size:28px;line-height:1.25;margin:18px 0 22px}.quiz-dots{display:flex;gap:7px;margin:20px 0}.quiz-dots i{height:7px;flex:1;background:#e5e7d9;border-radius:5px}.quiz-dots .current{box-shadow:0 0 0 2px #d2bf85}.quiz-dots .correct{background:#8ea76b}.quiz-dots .wrong{background:#c99979}.quiz-options{display:grid;gap:10px;margin-bottom:18px}.quiz-option{display:flex;align-items:center;text-align:left;gap:14px;border-radius:12px;background:#f1f2e7;border:1px solid #e1e5d2;padding:15px;font-size:14px;line-height:1.5;min-height:56px}.quiz-option>span{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;background:#e2e7d2;font-weight:600}.quiz-option:disabled{opacity:1}.quiz-option.correct{background:#e8efdc;border-color:#8ba76a}.quiz-option.correct>span{background:#789457;color:white}.quiz-option.wrong{border-color:#cea78c;background:#f4e9e0}.quiz-option.wrong>span{background:#c99875;color:white}.quiz-explanation{padding:16px;background:#edf1e4;border-radius:12px;margin-bottom:18px;font-size:13px;line-height:1.6}.quiz-explanation p{margin:8px 0!important}.quiz-explanation a{font-size:11px;color:#657d46}.quiz-note{font-size:11px!important;line-height:1.65!important;color:#818a75!important}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.record-grid>div{text-align:center;background:#eff1e4;border-radius:11px;padding:15px 4px;min-width:0}.record-grid strong{display:block;font:25px Georgia,serif;overflow-wrap:anywhere}.record-grid span{display:block;font-size:11px;color:#8a937b;margin-top:6px}.rank-hero{display:flex;align-items:center;gap:19px;margin:22px 0;background:#f3ecd8;border-radius:13px;padding:18px}.rank-hero>span{font-size:43px}.rank-hero strong{font:24px Georgia,serif}.rank-hero p{margin:6px 0 0!important;color:#958057!important}.score-rules{font-size:12px;line-height:1.6;margin-bottom:17px}.score-rules summary{cursor:pointer;color:#7e8a69}.score-rules p{font-size:11px}.rank-empty{padding:25px 12px;text-align:center;font-size:13px;line-height:1.7;background:#f1f2e8;border-radius:12px}.rank-empty button{display:block;margin:15px auto 0;padding-inline:20px}.leaderboard{list-style:none;padding:0;margin:0;max-height:300px;overflow:auto}.leaderboard li{display:flex;align-items:center;gap:12px;padding:13px 12px;border-bottom:1px solid #e5e7da;min-height:57px}.rank-position{width:28px;text-align:center;font-size:19px;flex-shrink:0}.rank-name{flex:1;font-size:14px;overflow-wrap:anywhere;min-width:0}.leaderboard strong{font-size:17px;font-variant-numeric:tabular-nums;text-align:right}.leaderboard small{display:block;font-size:11px;color:#84906f;font-weight:400;margin-top:3px}.leaderboard .is-you{background:#edf1df;border-radius:9px}.own-rank{background:#e7edda;padding:12px;border-radius:10px;font-size:12px;margin-bottom:10px}#ranking-form{margin-top:22px}#ranking-form label{display:block;font-size:12px;margin-bottom:8px}.publish-row{display:flex;gap:8px}.publish-row input{min-width:0;flex:1;width:100%;border:1px solid #d9decc;border-radius:10px;background:#fcfcf6;padding:12px;font:14px system-ui;color:#3c4936}.publish-row button{width:auto;white-space:nowrap}.beta-note{font-size:11px!important;border-top:1px solid #e3e5d7;padding-top:12px}.community-dialog .primary{min-height:44px}.community-dialog .species-tabs button{font-size:12px;min-height:42px}@media(max-width:700px){.community-strip{gap:10px}.farmer-card,.quiz-card{padding:16px 13px;gap:10px}.farmer-medal,.quiz-card-icon{font-size:29px}.farmer-card strong,.quiz-card strong{font-size:19px}.card-arrow{display:none}.farmer-card small,.quiz-card small{font-size:11px}.community-strip .eyebrow{font-size:11px;letter-spacing:1px}}@media(max-width:480px){.community-strip{grid-template-columns:1fr;margin-bottom:20px;gap:10px}.farmer-card{padding:15px 17px}.quiz-card{padding:13px 17px}.quiz-card>span:last-child{flex:1}.quiz-card strong{font-size:20px}.quiz-card-link{margin-top:5px}.quiz-card-icon,.farmer-medal{font-size:35px;width:42px;text-align:center}.rank-track{max-width:none}.farmer-card strong{font-size:23px}.community-strip .eyebrow{font-size:11px}.quiz-question{font-size:24px}.quiz-option{font-size:13px;padding:12px;gap:10px}.publish-row{flex-direction:column}.publish-row button{width:100%}.community-dialog .eyebrow{font-size:11px}.record-grid strong{font-size:23px}.rank-hero strong{font-size:22px}.rank-name{font-size:12px}.leaderboard li{gap:7px;padding:12px 7px}}
/* Community panels share the same bright, raised game surfaces. */
.community-strip{display:flex;flex-direction:column;gap:15px;margin:0}.farmer-card,.quiz-card{padding:15px 12px;gap:10px;border:3px solid #fff0b5;border-radius:18px;background:linear-gradient(130deg,#ffe986,#ffc642);box-shadow:0 5px #c1842b,0 7px 15px #457c2630}.quiz-card{background:linear-gradient(130deg,#91dafa,#4bb5e6);border-color:#d4f6ff;box-shadow:0 5px #2a89b4}.farmer-card .eyebrow{color:#b07826;font-size:11px;letter-spacing:.7px}.quiz-card .eyebrow{color:#237a9c;font-size:11px;letter-spacing:.7px}.farmer-medal,.quiz-card-icon{font-size:34px;width:41px;filter:drop-shadow(0 3px 1px #bc862b55)}.farmer-card strong,.quiz-card strong{font:700 17px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;margin:6px 0}.quiz-card strong{color:#105d81}.farmer-card span#farmer-score{font-size:12px;font-weight:700;color:#9c6b1e}.farmer-card small{font-size:11px;color:#a1792e}.quiz-card small{font-size:11px;color:#206c8e}.quiz-card-link{font-size:11px;color:#fff;text-shadow:none;margin-top:8px}.rank-track{background:#d99b2b;box-shadow:inset 0 1px #b6791d;height:7px;margin:8px 0 5px}.rank-track i{background:linear-gradient(#faff96,#a0d431)}.card-arrow{color:#ad7928}.rank-hero{background:linear-gradient(#ffeb91,#ffd05b);border:2px solid #fff8d1}.rank-hero strong{font:700 22px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.rank-hero p{color:#aa7621!important}.record-grid>div{background:#fff1bc;border:2px solid #edcd84;border-bottom-width:4px}.record-grid strong{font:700 25px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#956820}.record-grid span{color:#a7834c}.quiz-option{background:linear-gradient(#fffcdf,#f8e3ab);border:2px solid #edca7d;border-bottom-width:4px;color:#815b2d}.quiz-option>span{background:#ecd18b;color:#8d622b}.quiz-option.correct{background:linear-gradient(#e5ffa8,#bae578);border-color:#79b333}.quiz-option.correct>span{background:#6bac2c}.quiz-option.wrong{background:#ffe2c1;border-color:#d5985e}.quiz-dots i{background:#ebd598}.quiz-dots .correct{background:#86c333}.quiz-dots .wrong{background:#df9953}.quiz-explanation{background:#edfacb;border:2px solid #c5de89}.quiz-explanation p{color:#62813f}.quiz-note{color:#9b7a49!important}.leaderboard .is-you,.own-rank{background:#e5f2bc}.leaderboard li{border-color:#eedbb0}.rank-empty{background:#fff1bd;color:#967043}.leaderboard small{color:#8d864d}.publish-row input{background:#fffdf0;border:2px solid #e3c383}.score-rules summary{color:#9b7e47}.quiz-emblem{filter:drop-shadow(0 4px 2px #c4903744)}.community-dialog .eyebrow{font-size:11px}.beta-note{border-color:#e9cc93}.community-dialog .quiz-question{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:-.6px;font-weight:700}
@media(min-width:1400px){.farm-card{min-height:770px}.scene{height:400px}.field{margin-top:6px}.plots{gap:12px}.plot{aspect-ratio:1.05}.pen-animals>.animal-art{max-width:115px}.pen-status{bottom:3px}.scene-caption{font-size:11px}.field-tip{margin-top:16px}.world-footer{padding-bottom:21px}}
@media(max-width:1100px){.game-shell{padding:12px 15px 20px}.workspace{grid-template-columns:minmax(0,1fr) 247px;gap:14px}.brand{font-size:25px}.brand>span:first-child{width:60px;height:60px}.brand .animal-art{width:55px;height:55px}.topbar{gap:13px}.wallet{padding:8px 10px}.coin-label{display:none}.level-card{padding:6px 11px 8px 5px}.farm-card{min-height:600px}.scene{height:296px}.field{width:89%;padding:13px 12px}.pen-name{font-size:11px;padding:5px 6px}.pen-name small{font-size:11px;margin-left:3px}.pen-status{font-size:11px;padding:5px 8px}.pen-status svg{width:23px;height:23px}.scene-caption{font-size:11px}.pens{gap:4%;inset-inline:6%}.plots{gap:6px}.plot{aspect-ratio:.85;min-height:75px}.seed-option svg{width:28px;height:31px}.seed-option strong{font-size:11px}.field-tip{font-size:11px}.weather{font-size:11px}.orders-panel,.mission-card{padding:13px}.orders-panel h2{font-size:20px}.farmer-card strong,.quiz-card strong{font-size:15px}.farmer-medal,.quiz-card-icon{font-size:29px;width:31px}.card-arrow{display:none}.topbar .level-icon{width:32px;height:32px}h1{font-size:20px}.inventory-item span{font-size:11px}}
@media(max-width:850px){.game-shell{padding:9px 12px 17px}.workspace{grid-template-columns:1fr}.topbar{height:72px;padding:0;gap:10px}.brand{font-size:23px}.brand small{font-size:11px;letter-spacing:.7px}.brand>span:first-child{width:56px;height:56px;border-radius:19px}.brand .animal-art{width:49px;height:49px}.level-card{padding:7px 10px}.level-icon{display:none}.level-card strong{font-size:12px}.xp-track{width:80px}.wallet strong{font-size:19px}.wallet{gap:5px;padding:7px 9px}.coin{width:26px;height:26px;font-size:19px}.round{width:37px;height:37px;font-size:21px}.weather{display:none}.greeting{padding:2px 2px 11px}.greeting .eyebrow{font-size:11px}.farm-card{min-height:680px}.scene{height:340px}.field{max-width:670px}.plot{aspect-ratio:1;min-height:65px}.pen-name{font-size:12px}.pen-status{font-size:12px}.pens{inset-inline:7%;gap:6%}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:18px}.community-strip{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr}.orders-panel{grid-column:2;grid-row:2}.mission-card{grid-column:1;grid-row:2}.farmer-card strong,.quiz-card strong{font-size:18px}.farmer-medal,.quiz-card-icon{font-size:36px;width:43px}.inventory-panel{margin-bottom:7px}.farmer-card,.quiz-card{padding:15px;gap:12px}.farmer-card small{font-size:11px}.world-footer{font-size:11px}.greeting h1{font-size:19px}.scene-caption{font-size:11px}.seed-option strong{font-size:12px}.seed-option small{font-size:11px}}
@media(max-width:550px){.game-shell{padding:8px 7px 18px}.topbar{gap:7px;height:64px;flex-wrap:wrap;position:relative;padding-right:43px;padding-bottom:0}.brand{font-size:23px;width:calc(100% - 43px);height:36px}.brand small{display:none}.brand>span:first-child{width:42px;height:42px;border-width:2px;border-radius:15px;position:absolute;left:2px;top:8px}.brand .animal-art{width:40px;height:40px}.brand>span:last-child{margin-left:51px}.level-card{position:absolute;left:54px;top:43px;display:flex;gap:5px;padding:3px 8px;border-width:2px;border-radius:8px}.level-card strong{display:inline;font-size:11px}.level-card span{display:inline;font-size:11px;margin-left:6px}.xp-track{width:100%;height:4px;margin:2px 0 0}.wallet{position:absolute;right:43px;top:4px;border-width:2px;border-radius:11px;padding:4px 7px;gap:4px}.wallet strong{font-size:17px}.wallet .coin{width:21px;height:21px;border-width:2px;font-size:16px}.brand{font-size:19px}.round{position:absolute;right:0;top:5px;width:34px;height:34px;border-width:2px;border-radius:11px}.page{padding-top:16px}.greeting{padding:2px 3px 10px}.greeting h1{font-size:15px;margin-top:0}.greeting .eyebrow{display:none}.workspace{gap:16px}.farm-card{border-width:3px;border-radius:18px;min-height:650px;background-size:100% 57%;background-position:center top;background-color:#8ece30}.farm-card:after{content:'';position:absolute;left:0;right:0;top:315px;height:75px;background:linear-gradient(transparent,#8ece30);pointer-events:none;z-index:0}.farm-nav{height:44px;gap:5px;padding:5px 7px}.farm-nav .active{font-size:11px}.farm-nav button{font-size:11px;padding:7px;border-radius:9px;min-height:32px}.scene{height:245px;z-index:1}.pens{inset:48px 3% 27px;gap:1%}.pen-name{font-size:11px;padding:4px 5px;border-width:1px;border-radius:7px;white-space:nowrap}.pen-name small{font-size:11px;padding:2px;margin-left:2px}.pen-manage{width:28px;height:28px;top:30px;right:3px;font-size:21px}.pen-animals{left:0;right:0;bottom:25%}.pen-animals>.animal-art{width:47%;max-width:66px;margin:0 -7%}.pen-status{font-size:11px;min-height:34px;padding:5px 6px;border-radius:10px;border-width:2px}.pen-status svg{width:21px;height:21px}.scene-caption{font-size:11px;padding:0 5px;bottom:2px}.field{position:relative;z-index:1;margin:11px auto 13px;width:91%;padding:12px 10px;border-radius:15px;border-width:2px}.field h2{font-size:18px}.field h2 span{font-size:11px;margin-left:3px}.text-button{font-size:11px;padding:6px 8px;min-height:34px}.section-heading{margin-bottom:10px}.seed-picker{gap:5px;margin-bottom:12px}.seed-option{padding:5px 3px;gap:1px;border-width:1px;border-bottom-width:3px;border-radius:9px}.seed-option svg{width:25px;height:29px}.seed-option strong{font-size:11px}.seed-option small{font-size:11px;margin-top:2px}.plots{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.plot{aspect-ratio:1.2;min-height:63px;border-bottom-width:6px}.plot-label{font-size:11px}.crop-art svg{width:55%;height:93%;margin:0 -9px}.field-tip{font-size:11px;line-height:1.6;margin:10px 0 0}.world-footer{position:relative;z-index:1;font-size:11px;padding-bottom:13px}.inventory-panel{padding:13px 10px;margin-top:18px;border-width:2px;border-radius:15px}.inventory-panel h2{font-size:18px}.inventory{gap:4px}.inventory-item{padding:5px 1px;border-width:1px;border-bottom-width:3px;border-radius:9px}.inventory-item svg{width:30px;height:30px}.inventory-item strong{font-size:15px}.inventory-item span{font-size:11px}.community-strip{gap:10px}.farmer-card,.quiz-card{padding:12px 9px;gap:6px;border-width:2px;border-radius:14px;align-items:flex-start}.farmer-card strong,.quiz-card strong{font-size:14px}.farmer-medal,.quiz-card-icon{font-size:25px;width:27px;flex-shrink:0}.community-strip .eyebrow{font-size:11px;letter-spacing:.3px}.farmer-card span#farmer-score{font-size:11px}.farmer-card small,.quiz-card small{font-size:11px}.quiz-card-link{font-size:11px}.sidebar{gap:14px}.mission-card,.orders-panel{border-width:2px;padding:12px}.mission-card h3{font-size:17px}.mission-card p{font-size:11px}.orders-panel h2{font-size:18px}.orders-panel .eyebrow{font-size:11px}.order h3{font-size:12px}.order-bottom{flex-wrap:wrap;gap:8px}.order-bottom button{width:100%}.order .who{font-size:11px}.order-needs{gap:6px}.need{font-size:11px}.need svg{width:25px;height:25px}.order-bottom small{font-size:11px}.save-note{font-size:11px;line-height:1.6;padding-inline:10px}.toast{font-size:12px;padding:12px 16px}.market-row{gap:6px}.market-row svg{width:35px}.market-row strong{font-size:11px}.market-row button{font-size:11px}.community-dialog{padding:29px 17px 20px}.community-dialog .eyebrow{font-size:11px}.record-grid strong{font-size:23px}.rank-hero strong{font-size:20px}.record-grid span{font-size:11px}.quiz-question{font-size:24px}.dialog-art{height:130px}dialog h2{font-size:25px}dialog{padding:30px 17px 22px}.quiz-note{font-size:11px!important}.rank-name{font-size:12px}.dialog-x{top:8px;right:9px}}
@media(max-width:370px){.brand{font-size:17px}.brand>span:last-child{margin-left:48px}.wallet strong{font-size:15px}.wallet{right:38px;padding:4px}.coin-label{display:none}.farmer-medal,.quiz-card-icon{display:none}.greeting h1{font-size:14px}.pen-name{font-size:11px}.pen-status{font-size:11px}.seed-option svg{width:20px}.seed-option strong{font-size:11px}.field h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.mobile-dock{display:none}@media(max-width:550px){body{padding-bottom:80px}.mobile-dock{position:fixed;z-index:8;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:7px 12px max(10px,env(safe-area-inset-bottom));border-top:3px solid #ffe298;background:linear-gradient(#b67534,#82471f);box-shadow:0 -4px 18px #34521644}.mobile-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 5px;background:linear-gradient(#fff4b7,#f5ce6a);border:2px solid #fff5ce;border-radius:12px;color:#8e5b24;font-size:11px;box-shadow:0 3px #5a311b;min-height:53px}.mobile-dock button span{font-size:25px;line-height:1.15;filter:drop-shadow(0 2px 1px #a06d2844)}.toast{bottom:87px}}

/* Keep small interface labels legible without outlining or scaling the glyphs. */
.brand small{letter-spacing:.6px;font-weight:600;line-height:1.4}
.plot-label{background:#61350fe6;bottom:0;padding:4px 2px;line-height:1.25}
.scene-caption{background:#34511ccf;padding:5px 9px;margin:0 auto;width:max-content;max-width:96%;border-radius:7px;line-height:1.4}
.world-footer>span{display:inline-block;background:#34511ccf;padding:5px 9px;border-radius:7px}
.seed-option small,.inventory-item span,.field-tip{color:#765527}
.primary,.text-button,.mission-progress button,.order-bottom button,.quiz-card-link{color:#254810}
.pen-name{white-space:normal;line-height:1.3}
@media(max-width:850px){.brand small{display:none}}
@media(max-width:550px){
 .topbar{height:91px;align-items:flex-start}.brand{font-size:22px;margin-top:11px;white-space:nowrap}
 .brand>span:first-child{top:9px}.brand>span:last-child{margin-left:51px}
 .wallet{top:49px;right:3px}.level-card{top:52px;left:54px;max-width:calc(100% - 152px)}
 .level-card strong{font-size:11px}.level-card span{font-size:11px;margin-left:4px}.level-card>div{white-space:nowrap}
 .round{top:10px}.page{padding-top:9px}.greeting h1{font-size:15px}
 .farm-nav .active{font-size:11px}.farm-nav button{font-size:11px;padding:7px 5px}
 .pen-name{width:100%;padding:4px 1px;font-size:11px}.pen-name small{display:block;width:max-content;margin:3px auto 0;font-size:11px}
 .pen-manage{top:57px}.pen-status{font-size:11px;padding:5px 3px;gap:1px}.pen-status svg{width:16px;height:20px}
 .scene-caption{font-size:11px;padding:4px 7px;max-width:95%}.scene{height:266px}.pens{bottom:42px}
 .seed-option{flex-direction:column;gap:2px}.seed-option strong{font-size:12px}.seed-option small{font-size:11px;line-height:1.25;min-height:28px}
 .field-tip,.inventory-item span,.save-note,.world-footer,.community-strip .eyebrow,.farmer-card small,.quiz-card small{font-size:11px}
 .community-strip .eyebrow{letter-spacing:0;line-height:1.4}.farmer-medal,.quiz-card-icon{display:none}
 .farmer-card strong,.quiz-card strong{font-size:16px}.mobile-dock button{font-size:12px}
 .record-grid span,.quiz-note{font-size:12px!important}.field h2 span{font-size:11px}
 .field .section-heading{flex-wrap:wrap}.farm-card{background-size:100% 380px}.farm-card:after{top:320px}
}
@media(max-width:370px){.brand{font-size:20px}.level-card{left:10px;max-width:calc(100% - 99px)}.level-card span{margin-left:3px}.pen-status{font-size:10px}.seed-option strong{font-size:11px}.field h2{font-size:16px}}

/* Proportionate livestock; small sprites retain the full pen as a touch target. */
.pen-animals>.animal-art{width:29%;max-width:70px;margin:0 1%;animation-duration:5s}
.pen-animals>.animal-art.baby{width:20%;max-width:46px}
.pen-animals{filter:drop-shadow(2px 4px 1px #37651b55)}
@media(max-width:850px){
 .pen-animals>.animal-art{width:30%;max-width:58px}
 .pen-animals>.animal-art.baby{width:21%;max-width:39px}
 .pen-manage{width:44px;height:44px;display:grid;place-items:center}
 .farm-nav button,.text-button,.order-bottom button,.market-row button,.species-tabs button{min-height:44px}
}
@media(max-width:550px){
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .game-shell{padding:5px 6px 12px}.page{padding-top:5px}.greeting{display:none}
 .topbar{height:89px}.brand{margin-top:7px}.brand>span:first-child{top:5px}
 .round{top:7px;width:44px;height:44px}.wallet{top:49px}.level-card{top:51px}
 .workspace{gap:12px}.farm-card{min-height:0;border-radius:15px;background-size:100% 330px}
 .farm-card:after{top:270px;height:60px}
 .farm-nav{height:48px;padding:3px 5px;gap:5px}.farm-nav .active{font-size:11px}
 .farm-nav button{min-height:44px;padding:6px}
 .scene{height:237px}.scene-caption{display:none}
 .pens{inset:51px 2% 9px;gap:2%}
 .pen-name{font-size:11px;padding:4px 1px;line-height:1.2}
 .pen-name small{margin-top:2px;padding:1px 3px}
 .pen-manage{top:auto;bottom:44px;right:0;width:44px;height:44px;background:transparent;border:0;box-shadow:none;isolation:isolate}
 .pen-manage:before{content:'';position:absolute;inset:7px;background:linear-gradient(#ffe889,#f5b62b);border:2px solid #fff4bd;border-radius:50%;box-shadow:0 2px #a77528;z-index:-1}
 .pen-animals{bottom:53%;left:0;right:0;filter:none}
 .pen-animals>.animal-art{width:30%;max-width:39px;height:auto;margin:0 1%;animation:none}
 .pen-animals>.animal-art.baby{width:21%;max-width:27px}
 .pen-status{min-height:44px;padding:6px 2px;gap:0;font-size:11px;border-radius:10px}
 .pen-status svg{width:17px;flex-shrink:0}.pen-status.hungry{letter-spacing:-.25px}
 .field{width:95%;padding:9px 8px;margin:4px auto 12px;border-radius:13px}
 .field .section-heading{margin-bottom:8px;gap:4px;flex-wrap:nowrap}
 .field h2{font-size:17px;letter-spacing:-.5px}.field h2 span{font-size:11px;margin-left:3px;letter-spacing:0}
 .field .text-button{min-height:44px;padding:6px 8px}
 .seed-picker{gap:5px;margin-bottom:10px}.seed-option{padding:5px 2px;flex-direction:row;align-items:center;gap:3px;min-height:62px}
 .seed-option svg{width:23px;height:28px;flex-shrink:0}
 .seed-option strong{font-size:11px}.seed-option small{font-size:11px;min-height:0;margin-top:2px;line-height:1.2}
 .plots{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .plot{aspect-ratio:auto;height:70px;min-height:70px}.plot-label{padding:3px 1px}
 .crop-art{bottom:18px}.crop-art svg{height:90%;width:45%;margin:0 -6px}
 .field-tip,.world-footer{display:none}
 .inventory-panel{margin-top:15px;padding:10px 8px}.inventory-panel .section-heading{margin-bottom:8px}
 .inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .inventory-item{display:grid;grid-template-columns:32px 1fr;align-items:center;padding:4px 5px}
 .inventory-item svg{grid-row:1 / 3;margin:0;width:30px;height:30px}
 .inventory-item strong{font-size:15px;line-height:1.3}.inventory-item span{font-size:11px;margin-top:0;line-height:1.2}
 .sidebar{grid-template-columns:1fr;gap:12px}.community-strip{grid-column:1;grid-template-columns:1fr 1fr}
 .mission-card,.orders-panel{grid-column:auto;grid-row:auto}
 .orders-panel .order-bottom{flex-wrap:nowrap}.order-bottom button{width:auto;padding:8px 15px}
 .order{padding:12px 0}.order h3{font-size:14px}
 .mobile-dock{padding:5px 9px max(8px,env(safe-area-inset-bottom));gap:7px}
 .mobile-dock button{min-height:50px}.mobile-dock button span{font-size:22px}
 dialog{max-height:calc(100dvh - 20px);padding:26px 15px 18px;overscroll-behavior:contain}
 dialog::backdrop{backdrop-filter:none}
 .dialog-x{width:44px;height:44px;top:6px;right:7px;font-size:25px}
 dialog h2{padding-right:34px;font-size:23px}.dialog-art{height:92px}
 .dialog-art .animal-art,.dialog-art svg{width:90px;height:90px}
 .pen-metrics{padding:10px;margin:12px 0}.pen-metrics strong{font-size:21px}
 .species-tabs{margin:13px 0}.cost-line{margin:10px 0 13px}
 .action-row{gap:7px}.action-row .primary,.action-row .secondary{padding:10px 6px;font-size:13px}
 .publish-row input{font-size:16px;min-height:44px}
}
@media(max-width:370px){
 .farm-nav .active{font-size:10px}.farm-nav button{font-size:11px;padding:5px}
 .pen-status{font-size:10px}.pen-status svg{width:14px}
 .field h2{font-size:15px}.field h2 span{font-size:11px}.field .text-button{font-size:11px;padding-inline:6px}
 .seed-option{flex-direction:column;min-height:77px}.seed-option svg{height:21px;width:21px}
 .seed-option small{font-size:11px}.plot{height:65px;min-height:65px}
 .market-row{flex-wrap:wrap}.market-row>div{min-width:110px}
}

/* Optional neighbors use the same actions without squeezing the three main pens. */
.sprite-sheep,.sprite-duck,.sprite-lamb,.sprite-duckling{background-image:url('farm-neighbors.png')}
.sprite-sheep{background-position:0 0}.sprite-duck{background-position:100% 0}
.sprite-lamb{background-position:0 100%}.sprite-duckling{background-position:100% 100%}
.neighbors-panel{margin-top:21px;border:3px solid #fff2c4;border-radius:17px;background:linear-gradient(#fff5cd,#ffdfa0);box-shadow:0 4px #ab7733;padding:0 14px 13px}
.neighbors-panel:not([open]){padding-bottom:0}.neighbors-panel>summary{padding:14px 2px;min-height:48px;cursor:pointer;font-size:17px;font-weight:700}
.neighbors-panel>summary small{margin-left:8px;color:#98713b;font-size:12px;font-weight:400}
.extra-pens{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.neighbor-card{padding:12px;background:linear-gradient(#c9ed94,#aada72);border:2px solid #f0ffce;border-radius:13px;min-width:0}
.neighbor-card:nth-child(2){background:linear-gradient(#bdeefe,#88d5e6);border-color:#e3faff}
.neighbor-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}
.neighbor-heading h3{margin:0;font-size:15px}.neighbor-heading>span{font-size:12px;padding:3px 5px;background:#ffffff88;border-radius:6px}
.neighbor-main{display:flex;flex-direction:column;align-items:center;background:transparent;width:100%;padding:0;min-height:108px}
.neighbor-herd{display:flex;align-items:flex-end;justify-content:center;gap:5px;min-height:66px}
.neighbor-herd .animal-art{width:52px;height:52px}.neighbor-herd .baby{width:36px;height:36px}
.neighbor-herd.empty-herd{opacity:.7}
.neighbor-main .pen-status{position:static;translate:none;min-height:44px;margin-top:4px;font-size:12px}
.neighbor-card p{text-align:center;font-size:12px;line-height:1.4;margin:10px 0;color:#466434}
.neighbor-card:nth-child(2) p{color:#326e7d}
.neighbor-manage{display:block;min-height:44px;width:100%;padding:8px;background:#fff8d4b8;border:1px solid #fffae0;border-radius:9px;font-size:12px}
.animal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.animal-tabs button{min-width:0;min-height:44px;padding:9px 6px}
@media(max-width:550px){
 .neighbors-panel{margin-top:16px;padding-inline:8px;border-width:2px}
 .neighbors-panel>summary{font-size:15px;padding-block:12px;line-height:1.5}
 .neighbors-panel>summary small{display:block;margin-left:20px;font-size:11px}
 .extra-pens{gap:7px}.neighbor-card{padding:8px 5px}
 .neighbor-heading h3{font-size:12px}.neighbor-heading>span{font-size:11px;padding:3px}
 .neighbor-herd .animal-art{width:34px;height:34px}.neighbor-herd .baby{width:24px;height:24px}
 .neighbor-herd{min-height:48px;gap:2px}.neighbor-main{min-height:94px}
 .neighbor-main .pen-status{font-size:11px;padding:5px}.neighbor-card p{font-size:11px;min-height:31px}
}

/* Optional daily goals reuse normal farming actions. */
.daily-card{padding:18px;border:2px solid #e7b65d;border-radius:22px;background:linear-gradient(145deg,#fffdf0,#fff1c9);box-shadow:0 5px 0 #b9853530;color:#514326}
.daily-card h2{margin:5px 0 0;font-size:20px}.daily-intro{font-size:12px;line-height:1.5;margin:8px 0 14px;color:#756341}.daily-tasks{display:grid;gap:12px}.daily-task{display:flex;align-items:center;gap:12px}.daily-task>div{flex:1;min-width:0}.daily-task strong{display:block;font-size:14px}.daily-task small{display:block;font-size:12px;line-height:1.4;margin:4px 0}.daily-task progress{display:block;width:100%;height:7px;accent-color:#5caa42}.daily-card button{min-height:44px;min-width:78px;padding:6px 10px;border:1px solid #76a84e;border-radius:12px;background:linear-gradient(#a4d965,#79b847);color:#274518;font-family:inherit;font-weight:700;font-size:12px;line-height:1.3;cursor:pointer}.daily-card button:disabled{cursor:default;background:#eee5cb;border-color:#dfd3b1;color:#796e54}.daily-task.done strong{color:#55823a}.daily-bonus{display:flex;gap:10px;justify-content:space-between;align-items:center;border-top:1px dashed #d3b778;margin-top:15px;padding-top:12px;font-size:13px}.daily-bonus strong{white-space:nowrap}@media(max-width:550px){.daily-card{padding:16px}.daily-card button{font-size:12px}}

/* Stock -> workshop -> market -> a larger estate. */
.stock-value{font-size:13px;color:#796241;margin:0 0 14px}.development-card{margin-top:18px;padding:22px;background:linear-gradient(140deg,#fff9dd,#e4efb8);border:3px solid #fff4cf;border-radius:22px;box-shadow:0 5px 0 #668d5440}.development-card h2{font-size:21px;margin:5px 0}.development-card p{font-size:14px;line-height:1.55;color:#5e6543}.development-next{display:grid;gap:9px;margin:15px 0}.development-next span,.development-tip{font-size:12px;color:#6b7251}.development-tip{display:block;margin-top:9px}.development-card button{min-height:44px;width:100%}.estate-complete{font-weight:700}.market-summary{display:grid;gap:8px;background:#edf2ce;padding:15px;border-radius:15px;margin-bottom:16px}.market-summary small{font-size:12px}.market-row{flex-wrap:wrap}.market-row button{min-height:44px}.recipe-list{display:grid;gap:12px}.recipe-card,.workshop-job{display:grid;grid-template-columns:50px 1fr;gap:10px;align-items:center;background:#fff5d9;padding:13px;border:1px solid #e3cd92;border-radius:16px}.recipe-card>svg,.workshop-job>svg{width:50px;height:50px}.recipe-card strong,.recipe-card small,.recipe-card span,.workshop-job strong,.workshop-job span{display:block}.recipe-card small{font-size:12px;line-height:1.5;margin:5px 0}.recipe-card span,.workshop-job span{font-size:12px;color:#6b7843}.recipe-card button,.workshop-job button{grid-column:1/-1;min-height:44px;border-radius:12px;background:#a9cf6a;border:1px solid #81a64e;padding:10px;font:inherit;font-weight:700}.recipe-card button:disabled{background:#e8e2ce;color:#89816b;border-color:#d5ccae}.workshop-job{background:#e4f1c9;margin-bottom:18px}#cancel-meat{margin-top:12px;width:100%}@media(max-width:550px){.development-card{padding:16px}.market-row{display:grid;grid-template-columns:40px repeat(3,1fr);gap:7px}.market-row>div{grid-column:2/-1}.market-row>svg{width:38px}.market-row button{grid-row:2;padding:6px;font-size:12px}.market-row button[data-sell]{grid-column:2}.market-row button[data-five]{grid-column:3}.market-row button[data-all]{grid-column:4}}

/* Small village activities use the same inventory and one-tap actions. */
.yard-card{margin-top:20px;padding:14px 18px 10px;border:3px solid #f6e5ac;border-radius:20px;background:linear-gradient(#f8f5c9,#c7e88a);box-shadow:0 4px #719d4250}.yard-card .section-heading{margin-bottom:0;flex-wrap:wrap}.yard-card h2{font-size:19px}#yard-title{font-size:12px;color:#667044}#yard-art>svg{width:100%;max-height:185px;display:block}#yard-prizes{display:flex;gap:6px;flex-wrap:wrap;font-size:11px;color:#536e39}#yard-prizes span{padding:5px 7px;border-radius:10px;background:#fff5ceaa}.village-board{display:grid;gap:12px}.village-heading{padding:4px}.village-heading h2{font-size:21px;margin-top:4px}.fair-card,.bulk-card,.guest-card{padding:16px;background:linear-gradient(145deg,#fff9da,#ffebb3);border:2px solid #fffbdf;border-radius:19px;box-shadow:0 4px #bd9b4540}.fair-card{display:flex;gap:9px;background:linear-gradient(145deg,#e4f4f6,#c7e8e5)}.fair-card>div{flex:0 0 42px}.fair-card svg{width:42px}.fair-card section{min-width:0}.village-board h3{margin:7px 0;font-size:16px}.village-board strong{font-size:14px}.village-board p{font-size:13px;line-height:1.5;margin:8px 0}.village-board small{display:block;font-size:11px;line-height:1.5;color:#76623f}.village-board button{min-height:44px;width:100%;margin-top:10px;padding:9px;border:2px solid #f8ffe5;border-radius:12px;background:linear-gradient(#bcdf75,#8fbc4b);font-size:12px}.bulk-needs span{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700}.bulk-needs svg{width:36px;height:36px}.guest-card{background:linear-gradient(145deg,#fff0db,#ffdfc6)}.coat-golden{filter:sepia(.8) saturate(1.65) brightness(1.1)}.coat-silver{filter:grayscale(.95) brightness(1.22) contrast(.85)}#residents-open{width:100%;min-height:44px}.residents{display:grid;gap:14px;margin:16px 0}.resident-card{display:grid;grid-template-columns:65px 1fr;gap:9px;align-items:center;background:#fff3d7;padding:14px;border:1px solid #e7cf99;border-radius:15px}.resident-card>.animal-art{width:60px;height:60px}.resident-card strong{font-size:15px;overflow-wrap:anywhere}.resident-card small{display:block;font-size:12px;margin-top:5px}.resident-card label,.resident-card input,.resident-card button{grid-column:1/-1}.resident-card label{font-size:12px}.resident-card input{width:100%;min-height:44px;border:2px solid #d5c292;background:#fffdf0;border-radius:10px;padding:9px;font:inherit;box-sizing:border-box}.resident-card button{min-height:44px;background:#aed370;border-radius:10px;font-size:14px}#residents-back{width:100%;min-height:44px}@media(max-width:550px){.yard-card{padding:12px 9px}.yard-card h2{font-size:17px}#yard-title{font-size:11px}.village-board{gap:10px}.fair-card,.bulk-card,.guest-card{padding:14px}.resident-card{padding:12px}}
.pen-animals>.animal-art,.neighbor-herd>.animal-art{position:relative}.animal-name{position:absolute;bottom:-10px;left:50%;translate:-50% 0;max-width:72px;padding:2px 4px;background:#fff5ceee;border-radius:5px;color:#584325;font:700 10px/1.25 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 2px #385d2830;pointer-events:none}@media(max-width:550px){.animal-name{max-width:52px;bottom:-9px;padding:1px 3px}}
.pen-animals>.animal-art:nth-child(2) .animal-name{transform:scaleX(-1)}

.care-tools{padding:11px 13px;margin-bottom:15px;border:2px solid #f7f2c9;border-radius:17px;background:linear-gradient(#fff9db,#ecedba);box-shadow:0 3px #6d983933}.care-tools>div{display:flex;gap:9px}.care-tools button{min-height:44px;flex:1;padding:9px 5px;border:2px solid #faffdb;border-radius:11px;background:linear-gradient(#c4e776,#97c149);font-size:13px}.care-tools small{display:block;font-size:11px;line-height:1.4;margin-top:7px;color:#6c7049}.pen-upgrade{display:grid;gap:9px;margin:14px 0;padding:14px;border:1px solid #d0d7a4;border-radius:14px;background:#edf4d4}.pen-upgrade strong{font-size:14px}.pen-upgrade small{font-size:12px;line-height:1.5}.pen-upgrade button{min-height:44px}.pen-main[data-grade="1"] .pen-name,.pen-main[data-grade="2"] .pen-name{border-color:#fff190;box-shadow:0 3px #694319,0 0 8px #ffdf5980}.neighbor-main[data-grade="1"],.neighbor-main[data-grade="2"]{border-radius:12px;background:#ffefa733}.bulk-needs span{flex-wrap:wrap}.bulk-needs small{flex:0 0 100%;padding-left:42px}@media(max-width:550px){.care-tools{padding:8px;margin-bottom:12px}.care-tools>div{gap:6px}.care-tools button{font-size:12px}}

/* Keep optional activities compact; core farming stays in view. */
.optional-heading h2{font-size:21px;margin:0 0 5px}.optional-heading p{font-size:13px;margin:0;color:#5c7146}.activity-fold{min-width:0;border:2px solid #fff5d5;border-radius:18px;background:linear-gradient(135deg,#fff8df,#f3df9f);box-shadow:0 4px #a8893940}.activity-fold>summary{cursor:pointer;min-height:64px;padding:14px 16px;font-weight:700;font-size:16px;color:#614e2f}.activity-fold>summary small{display:block;margin:5px 0 0 20px;font-weight:400;font-size:12px;color:#776143}.activity-fold>summary:focus-visible{outline:3px solid #3787a9;outline-offset:3px;border-radius:16px}.fold-content{padding:0 10px 12px;display:grid;gap:12px}.fold-content .village-heading{display:none}.fold-content .orders-panel,.fold-content .daily-card{box-shadow:none}.fold-content .community-strip{margin:0}.mission-card[hidden]{display:none}#optional-activities{scroll-margin-top:16px}
#action-receipt{position:fixed;z-index:110;left:50%;top:calc(env(safe-area-inset-top) + 105px);transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);display:flex;justify-content:center;flex-wrap:wrap;gap:6px;pointer-events:none;filter:drop-shadow(0 4px 7px #42663040)}#action-receipt[hidden]{display:none}#action-receipt>span{display:grid;grid-template-columns:30px auto;align-items:center;column-gap:5px;border:2px solid #fff8da;border-radius:13px;background:#fff3ca;padding:5px 8px;color:#52732f;animation:receipt-in .25s ease-out}#action-receipt svg{width:30px;height:30px;grid-row:1/3}#action-receipt b{font-size:16px}#action-receipt small{font-size:10px}#action-receipt .receipt-coins{display:flex;flex-direction:column;color:#9d6718}.care-collected{animation:care-pop .65s ease-out}.care-fed .animal-art{animation:care-nod .75s ease-in-out}.care-fed::after{content:'♥';position:absolute;left:50%;top:38%;color:#f78f8e;text-shadow:0 2px #fff3c1;font-size:24px;pointer-events:none;animation:care-heart .85s ease-out both}.neighbor-main{position:relative}@keyframes care-pop{0%,100%{filter:brightness(1)}35%{filter:brightness(1.3)}}@keyframes care-nod{0%,100%{translate:0 0}35%{translate:0 -5px}65%{translate:0 -2px}}@keyframes care-heart{from{opacity:0;transform:translate(-50%,5px) scale(.6)}25%{opacity:1}to{opacity:0;transform:translate(-50%,-24px) scale(1.2)}}@keyframes receipt-in{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){#action-receipt>span,.care-collected,.care-fed .animal-art,.care-fed::after{animation:none}}

.plant-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}.plant-tools button{min-height:44px;padding:9px 13px;border:2px solid #f3ffd0;border-radius:11px;background:linear-gradient(#bce875,#8dbd43);font-size:13px}.plant-tools small{font-size:12px;color:#6b592f}.replace-order{display:block;width:100%;min-height:44px;margin-top:12px;padding:8px;border:1px solid #d9c68e;border-radius:10px;background:#fff7d7;font-size:12px;color:#796237}#cancel-replace{margin-top:12px}.save-alert{margin:12px 0 18px;padding:18px;background:#fff4d4;border:2px solid #c28c3c;border-radius:16px}.save-alert strong{font-size:18px}.save-alert p{font-size:14px;line-height:1.5}.save-alert button{min-height:48px;padding:10px 18px;border-radius:12px;background:#aed572}.save-alert[hidden]{display:none}@media(max-width:550px){.plant-tools{gap:5px}.plant-tools button{width:100%;font-size:12px}.plant-tools small{width:100%;text-align:center;font-size:11px}}

/* Player market keeps its forms readable on narrow phones. */
#player-market{margin-bottom:16px}.trade-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}.trade-toolbar>span{min-width:0;overflow-wrap:anywhere;font-size:14px}.trade-toolbar button{width:auto;flex-shrink:0}.trade-bank,.trade-pending,.trade-confirm{margin:16px 0;padding:15px;border:1px solid #d7cb96;border-radius:15px;background:#f1f4cf}.trade-list{display:grid;gap:10px}.trade-offer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px;border:1px solid #dec58d;border-radius:14px;background:#fff5d4}.trade-offer>div{min-width:0;overflow-wrap:anywhere}.trade-offer strong,.trade-offer span,.trade-offer small{display:block}.trade-offer span{font-size:14px;margin:4px 0}.trade-offer small{font-size:12px;color:#75603a}.trade-offer button{width:auto;flex-shrink:0}.trade-form{display:grid;gap:9px;margin:12px 0}.trade-form input,.trade-form select{width:100%;min-width:0;min-height:48px;padding:10px;border:2px solid #d4bd85;border-radius:10px;background:#fffdf3;font:16px system-ui;color:#57331b}.trade-form label{font-weight:700;font-size:14px}.trade-new{margin:20px 0;border-top:1px solid #d8c693;padding-top:12px}.trade-new>summary{min-height:48px;cursor:pointer;font-weight:700;padding:12px 0}.trade-error{color:#913f24!important;background:#ffebd3;padding:12px;border-radius:10px}.trade-confirm .secondary{margin-top:12px}@media(max-width:370px){.trade-offer{align-items:stretch;flex-direction:column}.trade-offer button{width:100%}.trade-toolbar{flex-wrap:wrap}.trade-toolbar button{width:100%}}

.shop-entry{margin:10px 0 0;min-height:48px;padding:10px 16px}.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shop-product{min-width:0;display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #dabd79;border-radius:18px;background:linear-gradient(#fff9de,#f8e9b1)}.shop-product h3,.shop-product p{margin:0}.shop-product p{flex:1;font-size:14px}.shop-product button,.shop-tools button,.shop-bonus button,.shop-preview button{min-height:48px;padding:10px}.shop-icon{font-size:38px}.shop-tools{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.shop-message{background:#fff0bc;padding:12px;border-radius:12px}.shop-preview{padding:12px;background:#e2efb6;border-radius:16px;margin:12px 0}.shop-preview>svg{display:block;width:100%;height:auto}.shop-preview small{display:block;margin-bottom:10px}.shop-bonus{border-top:1px solid #d6b976;margin-top:20px;padding-top:20px}.shop-bonus small{display:block;margin-top:12px;line-height:1.6}.shop-bonus button{width:100%}@media(max-width:600px){.shop-products{grid-template-columns:1fr}.shop-product{display:grid;grid-template-columns:44px minmax(0,1fr)}.shop-product h3{align-self:center}.shop-product p{grid-column:1/-1}.shop-product button{grid-column:1/-1}.shop-tools button{width:100%}}

.shop-dialog{width:min(720px,calc(100% - 24px))}
.shop-preview{scroll-margin-top:56px}
