/* The valley stays visible; detailed controls share a compact, responsive panel. */
:root{--panel:#fbf8ef;--green:#456d51;--muted:#788071;--line:#e4e4d5}
.topbar{background:#20352cf7}.account-btn{border-radius:22px;padding:5px 12px 5px 5px}.account-avatar{width:26px;height:26px;border-radius:50%;background:#e7ead4;display:grid;place-items:center;font-size:16px;color:#456d51}.map-location b{font-weight:500}.resource{backdrop-filter:blur(8px);border-radius:13px}.toolbar{padding:5px;background:#253e31b8;border:1px solid #ffffff18;border-radius:16px;backdrop-filter:blur(12px);gap:3px}.toolbar button{border:0;background:transparent;box-shadow:none;border-radius:11px;padding:12px 15px}.toolbar button.active{background:#e8c981}.toolbar button:hover{background:#ffffff17}.toolbar button.active:hover{background:#efd595}.farm-panel{width:370px;right:75px;top:18px;max-height:calc(100% - 112px);border-radius:19px;box-shadow:0 16px 60px #122c304d;background:#fbf8effa;border:1px solid #fff9}.panel-head{padding:12px 18px;background:#eef0e2;color:#526448;font-size:9px}.panel-content{padding:18px}.panel-content>h2{font-size:25px;line-height:1.35}.panel-content>p{font-size:11px;margin-bottom:15px}.panel-tabs button{font-size:10px;padding:12px 5px}.panel-tabs button[aria-pressed=true]{font-weight:700}.store-wallet{display:grid;grid-template-columns:1fr 1fr;background:#eaf0e1;border:1px solid #dce5cf;border-radius:12px;margin-bottom:15px;padding:12px;gap:12px}.store-wallet>span{font-size:9px;color:#738067;display:grid;gap:4px}.store-wallet b{font-size:15px;color:#4b6746}.store-wallet>span+span{border-left:1px solid #d7dfcc;padding-left:14px}.trade-detail{padding:14px;border:1px solid #dddcc7;background:#fffdf6;border-radius:15px;box-shadow:0 3px 12px #46543a05}.trade-product{display:grid;grid-template-columns:92px 1fr;gap:13px;align-items:center}.trade-art{height:102px;border-radius:12px;background:radial-gradient(ellipse,#e7ead6,#f2efdf);display:grid;place-items:center;overflow:hidden}.trade-art img,.product-art img,.building-art img,.seed-art img{width:100%;height:100%;object-fit:contain}.product-emoji{font-size:52px;filter:drop-shadow(0 7px 3px #59674520)}.product-type{font:6px ui-monospace,monospace;letter-spacing:1.6px;color:#8c9674}.trade-product h3{font:700 22px 'Libre Baskerville',Georgia,serif;margin:6px 0;color:#344d38}.trade-product p{font-size:10px;line-height:1.7;color:#778369;margin:0 0 5px}.trade-product small{font-size:9px;color:#7d8b6d}.quantity-line{display:flex;align-items:center;gap:8px;margin:15px 0 12px}.quantity-line>span{font-size:10px;margin-right:auto;color:#6e7b61}.quantity-control{display:flex;align-items:center;border:1px solid #dde2d0;border-radius:9px;overflow:hidden;background:#eef1e5}.quantity-control button{border-radius:0;padding:7px 10px;border:0;font-size:14px}.quantity-control output{min-width:28px;text-align:center;font-weight:700;font-size:12px;color:#4c6947}.quantity-presets{display:flex;gap:4px}.quantity-presets button{padding:7px 9px;font-size:9px}.trade-total{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px dashed #dddfce;margin-top:10px}.trade-total>span{font-size:10px;color:#727e66}.trade-total small{display:block;font-size:8px;color:#8d987e;margin-top:4px}.trade-total b{font-size:20px;color:#5f724a}.trade-detail>.action{width:100%;font-size:11px;padding:11px}.trade-warning{color:#ae7653;font-size:9px;line-height:1.7;margin:8px 0 0}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:20px 0 11px}.catalog-heading h3,.section-title{font-size:12px;margin:0;color:#4d6147}.catalog-heading>span{font-size:8px;color:#939d85}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.product-card{display:block;text-align:left;background:#fffdf6;border:1px solid #e1e3d2;border-radius:13px;overflow:hidden;padding:0;min-width:0}.product-card.selected{border-color:#729269;box-shadow:0 0 0 1px #729269}.product-art{height:113px;position:relative;background:radial-gradient(ellipse,#e2e8cf,#f1f0e1);display:grid;place-items:center}.product-stock{position:absolute;right:7px;top:7px;font-size:7px;color:#638153;background:#fdfcebdd;border-radius:12px;padding:4px 7px;border:1px solid #fff7}.product-info{padding:10px}.product-info h3{font-size:11px;margin:0 0 4px;color:#435c3d}.product-info small{font-size:8px;color:#8b967b;display:block;line-height:1.6;min-height:13px}.product-price{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-top:8px;margin-top:7px;border-top:1px solid #eaecdd}.product-price b{font-size:9px;color:#87904d;line-height:1.5}.product-price span{font-size:8px;color:#648255;white-space:nowrap}.product-card:hover:not(:disabled){background:#f9fbea;filter:none;transform:translateY(-1px)}.cost-list{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.cost-chip{display:inline-flex;align-items:center;font-size:9px;padding:5px 7px;background:#edf1e1;color:#648154;border-radius:7px;border:1px solid #dce5cc}.cost-chip.missing{background:#f5e9da;border-color:#ead8bf;color:#9c7654}.trade-buttons{display:grid;gap:7px}.trade-buttons .action{padding:11px;font-size:10px}.building-card{background:#fffdf5;border:1px solid #e3e4d3;border-radius:14px;overflow:hidden;margin-bottom:12px}.building-art{height:150px;display:grid;place-items:center;background:radial-gradient(ellipse,#dce5c9,#eeefe0)}.building-copy{padding:13px}.building-copy h3{font:700 18px 'Libre Baskerville',Georgia,serif;margin:0 0 7px}.building-copy p{font-size:10px;color:#859074;margin:0;line-height:1.6}.seed-shelf{display:grid;grid-template-columns:1fr 1fr;gap:9px}.seed-card{background:#fffdf5;border:1px solid #dce3ce;border-radius:13px;padding:0 0 11px;color:#556e47;text-align:left;overflow:hidden}.seed-card.selected{border-color:#729269;box-shadow:0 0 0 1px #729269}.seed-art{display:grid;place-items:center;height:104px;background:radial-gradient(ellipse,#e6eacd,#f3f1e4)}.seed-card h3{font-size:12px;margin:11px 11px 5px}.seed-card small{font-size:8px;display:block;margin:0 11px 9px;color:#849275}.seed-card>span{display:block;margin:0 11px;font-size:9px;font-weight:700}.empty-state{text-align:center;padding:28px 18px;background:#eef2e3;border:1px dashed #d3ddc3;border-radius:13px}.empty-state>span{font-size:36px}.empty-state h3{font-size:13px}.empty-state p{font-size:10px;line-height:1.7;color:#859374}.plot-grid{grid-template-columns:repeat(4,1fr)}.plot-grid button{font-size:9px}.layout-expansion{display:flex;gap:12px;padding:15px;background:linear-gradient(135deg,#e9efdb,#f5edd8);border:1px solid #dbe3c9;border-radius:13px}.layout-icon{font-size:28px}.layout-expansion h3{font-size:13px;margin:0 0 6px}.layout-expansion p{font-size:9px;color:#899675;line-height:1.7;margin:0}.layout-expansion .action{font-size:8px;padding:8px 7px}.layout-row{display:flex;gap:11px;align-items:center;padding:12px;background:#fffdf5;border:1px solid #e4e7d6;border-radius:11px;margin-bottom:7px}.layout-row>span{font-size:25px}.layout-row>div{display:grid;gap:4px;margin-right:auto}.layout-row b{font-size:11px}.layout-row small{font-size:8px;color:#8d997e}.layout-row .action{font-size:9px;padding:8px}.layout-plots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.layout-plots button{display:grid;gap:5px;text-align:center;background:#eff2e5;border:1px solid #dbe3ce;border-radius:11px;padding:11px 5px;color:#58714a}.layout-plots span{font-size:23px}.layout-plots b{font-size:9px}.layout-plots small{font-size:7px;color:#8a9a75}.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0}.inventory-grid article{display:grid;gap:6px;text-align:center;padding:11px 4px;background:#eff2e4;border-radius:10px;border:1px solid #dfe6d2}.inventory-grid span{font-size:25px}.inventory-grid b{font-size:9px;color:#5c784d}.inventory-grid small{font-size:7px;color:#8a9978}.section-title{margin:20px 0 8px}.placement-dock{position:absolute;left:50%;bottom:97px;transform:translateX(-50%);width:min(460px,calc(100% - 34px));padding:15px 17px;background:#fbf8eff5;border:1px solid #fff9;border-radius:16px;box-shadow:0 9px 35px #19352742;z-index:7;backdrop-filter:blur(8px)}.placement-info .eyebrow{font-size:7px;letter-spacing:1.5px}.placement-info h3{font:700 19px 'Libre Baskerville',Georgia,serif;margin:7px 0}.placement-info p{font-size:10px;line-height:1.6;margin:0;color:#8b806c}.placement-dock[data-valid=true] .placement-info p{color:#668559}.placement-controls{display:flex;gap:7px;justify-content:flex-end;margin-top:12px}.placement-controls button{font-size:10px;padding:10px 12px}.placement-dock:not([hidden])~.toast{bottom:275px}.account-locked .placement-dock{visibility:hidden}#accountDialog{width:min(530px,calc(100% - 28px));padding:22px}#accountTitle{font-size:20px}.profile-banner{position:relative;isolation:isolate;padding:19px 20px 21px;border-radius:16px;background:linear-gradient(140deg,#344e3a,#839961);color:#f7f1df;text-align:center;overflow:hidden}.profile-banner:before,.profile-banner:after{content:'';position:absolute;z-index:-1;bottom:-70px;width:340px;height:150px;border-radius:50%;background:#b3c38722;transform:rotate(-13deg);left:-60px}.profile-banner:after{left:auto;right:-80px;bottom:-100px;background:#cdd6a932;transform:rotate(10deg)}.profile-avatar{display:grid;place-items:center;width:65px;height:65px;border-radius:50%;font-size:37px;background:#f2eedc;border:4px solid #fffff066;box-shadow:0 6px 20px #25362440;margin:0 auto 12px}.profile-banner>span{font:7px ui-monospace,monospace;letter-spacing:2px;color:#d2d8b8}.profile-banner h3{font:700 24px 'Libre Baskerville',Georgia,serif;margin:9px 0 5px;overflow-wrap:anywhere}.profile-banner p{color:#e0e6c8;font-size:10px;margin:0}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#edf1e2;border-radius:12px;border:1px solid #dfe6cf;margin:13px 0 17px;padding:13px 0;text-align:center}.profile-stats>div{display:grid;gap:5px}.profile-stats>div+div{border-left:1px solid #d8e0ca}.profile-stats b{font-size:18px;color:#627d4d}.profile-stats span{font-size:8px;color:#869574}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-fields label{font-size:9px;font-weight:700;color:#778369;display:grid;gap:7px}.profile-fields input{width:100%;min-width:0;font:12px 'DM Sans',sans-serif;background:#fffdf6;border:1px solid #dbe2cd;color:#4c6446;padding:11px;border-radius:8px;outline-offset:2px}.avatar-options{padding:0;border:0;margin:16px 0;display:flex;gap:9px}.avatar-options legend{font-size:9px;color:#859476;margin-bottom:9px}.avatar-options input{position:absolute;opacity:0}.avatar-options span{display:grid;place-items:center;width:43px;height:43px;background:#eef1e1;border:1px solid #dbe2cc;border-radius:11px;font-size:25px;cursor:pointer}.avatar-options input:checked+span{background:#e2e9cf;border-color:#7d9c69;box-shadow:0 0 0 1px #7d9c69}.avatar-options input:focus-visible+span{outline:3px solid #e7ae54;outline-offset:2px}.profile-save{display:flex;align-items:center;gap:10px;margin-bottom:13px}.profile-save>span{font-size:9px;color:#82976b}.account-email{font-size:10px!important;border-top:1px solid #e4e6d6;padding-top:13px;margin:14px 0 4px;color:#7a8c6d!important}.account-meta{margin:0}.account-status{margin-top:11px;font-size:10px;padding:12px}.account-actions{margin:13px 0}.account-actions>.primary{font-size:11px;padding:12px 18px}.account-footer{font-size:9px!important;line-height:1.7!important}.account-locked .profile-banner{display:none}
@media(min-width:1600px){.farm-panel{width:385px;right:82px}}
@media(max-width:1000px){.farm-panel{width:340px;right:67px}.product-art{height:101px}.toolbar button{padding:12px}.map-location{font-size:8px}.map-note{display:none}}
@media(max-width:580px){.farm-panel{left:10px;right:10px;top:auto;bottom:80px;width:auto;max-height:67%}.panel-content{padding:15px}.panel-content>h2{font-size:21px}.panel-content>p{font-size:10px}.panel-head{padding:10px 15px}.product-art{height:115px}.trade-product{grid-template-columns:84px 1fr;gap:10px}.trade-art{height:90px}.trade-product h3{font-size:20px}.quantity-presets button{padding:6px 8px}.quantity-line{gap:5px}.trade-detail{padding:12px}.toolbar{bottom:13px;left:10px;right:10px;padding:4px}.toolbar button{padding:12px 2px;font-size:9px}.storage-meter{bottom:75px}.placement-dock{bottom:90px;padding:13px;width:calc(100% - 22px)}.placement-dock:not([hidden])~.toast{bottom:264px}.placement-info h3{font-size:17px}.placement-info p{font-size:9px}.placement-controls button{padding:9px 10px}.layout-expansion{padding:12px;gap:8px}.layout-icon{font-size:22px}.layout-expansion .action{font-size:7px;padding:8px 6px}.world-label{font-size:8px}.profile-fields{gap:8px}.profile-stats b{font-size:16px}.profile-stats span{font-size:7px}#accountDialog{padding:17px}.profile-banner{padding:16px}.profile-banner h3{font-size:23px}.profile-avatar{width:55px;height:55px;font-size:31px}.avatar-options span{width:38px;height:38px;font-size:23px}}
@media(prefers-reduced-motion:reduce){.product-card:hover{transform:none}}

.motion-setting{display:flex;align-items:center;gap:8px;font-size:11px;color:#718763;margin:18px 0}.motion-setting input{accent-color:#557c50;width:16px;height:16px}.farm-panel .panel-content img{filter:contrast(1.025)}@media(max-width:580px){.account-name{max-width:80px}.map-location{max-width:calc(100% - 62px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}@media(max-width:340px){.account-name{max-width:64px}}

.map{user-select:none}.trade-art,.building-art,.product-art,.seed-art{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}.trade-art img,.building-art img,.product-art img,.seed-art img{display:block;min-height:0;min-width:0;max-height:100%;max-width:100%;object-fit:contain}#profileForm{user-select:text}

.profile-play{font-size:10px;background:#f1dfae;color:#4f653f;border:1px solid #fdf8d45e;border-radius:16px;padding:8px 15px;margin-top:13px}.profile-stats b{overflow-wrap:anywhere}
.map.is-carrying #worldCanvas{cursor:grabbing}.pickup-hint{position:absolute;z-index:6;pointer-events:none;width:38px;height:38px;transform:translate(-50%,-50%);border:3px solid #fff8;border-radius:50%;box-shadow:0 2px 12px #1a362e44}.pickup-hint:before{content:'';position:absolute;inset:-3px;border:3px solid #eac779;border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;animation:pickup-hold 1.5s linear}.pickup-hint span{position:absolute;top:46px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;border-radius:15px;padding:6px 10px;color:#f9f2db;background:#203d31e8}@keyframes pickup-hold{from{transform:rotate(-90deg)}to{transform:rotate(990deg)}}
.placement-dock[data-valid=false] .placement-info p{color:#b2473e}

.placement-dock[data-follow=true]{display:flex;align-items:center;gap:16px;width:min(570px,calc(100% - 34px));padding:10px 13px;bottom:84px}.placement-dock[data-follow=true] .eyebrow{display:none}.placement-dock[data-follow=true] h3{font-size:14px;margin:0 0 4px}.placement-dock[data-follow=true] p{font-size:9px}.placement-dock[data-follow=true] .placement-controls{margin:0;flex-shrink:0;gap:5px}.placement-dock[data-follow=true] button{padding:9px 10px;white-space:nowrap}.placement-dock[data-follow=true]~.toast{bottom:175px}@media(max-width:580px){.placement-dock[data-follow=true]{flex-wrap:wrap;gap:8px;width:calc(100% - 22px)}.placement-dock[data-follow=true] .placement-controls{margin-left:auto}.placement-dock[data-follow=true]~.toast{bottom:210px}}

/* The world fills the browser; navigation and game controls float above it. */
.map{position:fixed;inset:0;width:100%;height:100dvh}.topbar{position:absolute;inset:0 0 auto;height:58px;background:linear-gradient(#193529c7,#19352900);border:0;pointer-events:none}.topbar>a,.topbar>nav,.topbar>#accountRoot{pointer-events:auto}.resource-bar,.zoom-tools{top:72px}.map-location{top:132px}.farm-panel{top:72px;max-height:calc(100% - 170px)}.selection{top:145px}.welcome{justify-items:center;text-align:center;padding:74px 22px 45px;background:radial-gradient(ellipse at 50% 47%,#163b296b 0%,#142e251a 45%,#142e2545 100%)}.welcome-content{width:min(570px,100%);margin:auto}.welcome h1{font-size:clamp(42px,7vw,104px);line-height:1.05;letter-spacing:-.045em;text-shadow:0 5px 28px #152c2959;margin:22px 0}.welcome #welcomeCopy{margin:0 auto 24px;max-width:340px;text-shadow:0 2px 7px #142f28}.welcome .primary{border:2px solid #fff4d9;box-shadow:0 7px 0 #193c2c77,0 14px 40px #142c2830;border-radius:18px;padding:16px 32px;font-size:16px}.welcome-tags{justify-content:center;margin-top:22px}.welcome-foot{line-height:1.7}.welcome-active .brand-caption,.welcome-active .save-status{display:none}.welcome-active .topbar{background:none}.welcome-active #helpButton{font-size:0;background:#e8ecddeb;border:1px solid #fff9;border-radius:12px;width:37px;height:37px;padding:0;color:#39563e}.welcome-active #helpButton:after{content:'i';font:700 22px Georgia,serif}.welcome-active .world-labels{opacity:.48}.graphics-readout{font:11px ui-monospace,monospace;color:#557652;line-height:1.7}.profile-avatar,.account-avatar{overflow:hidden}.profile-avatar img,.account-avatar img{width:100%;height:100%;object-fit:cover;display:block}.photo-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:17px 0}.photo-upload{position:relative;background:#e7eddc;border:1px solid #d2dcc4;border-radius:10px;padding:11px 14px;font-size:11px;cursor:pointer;color:#4d6747}.photo-upload:focus-within{outline:3px solid #e7ae54;outline-offset:3px}.photo-upload input{position:absolute;width:1px;height:1px;opacity:0;left:0;bottom:0}.photo-remove{font-size:10px;padding:10px;background:none;color:#8c5144}.photo-controls small{flex-basis:100%;font-size:9px;line-height:1.7;color:#78816c}.pickup-hint span{max-width:260px;text-align:center;white-space:normal;width:245px;line-height:1.5}
@media(max-width:1000px){.brand-caption{display:none}.farm-panel{right:67px}}
@media(max-width:580px){.topbar{height:54px;padding:0 12px}.topbar nav{gap:14px}.save-status{display:none}.resource-bar{top:65px}.map-location{top:115px}.zoom-tools{top:135px}.selection{top:132px}.farm-panel{top:auto;bottom:80px;max-height:calc(100% - 210px)}.welcome{padding:76px 18px 36px}.welcome-content{width:min(360px,100%);margin:auto}.welcome h1{font-size:clamp(38px,13vw,68px)}.welcome #welcomeCopy{max-width:280px;font-size:12px}.welcome .primary{font-size:13px;padding:14px 24px}.welcome .eyebrow{font-size:7px}.welcome-tags{margin-top:21px}.photo-controls{gap:5px}.photo-upload{padding:10px 12px}.pickup-hint span{font-size:9px;width:205px}.welcome-active .account-name{max-width:90px}}
@media(max-height:580px) and (min-width:581px){.welcome{padding:54px 18px 18px}.welcome h1{font-size:52px;margin:8px 0 12px}.welcome #welcomeCopy{font-size:11px;margin-bottom:13px}.welcome .primary{padding:11px 24px;font-size:13px}.welcome-foot{margin:13px 0}.welcome-tags{margin-top:12px}}

.asset-loading{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);padding:8px 14px;border-radius:18px;background:#21392be8;color:#f4f0dc;font-size:12px;pointer-events:none;z-index:8;max-width:80vw;text-align:center}
.asset-loading[hidden]{display:none}

.resource-art{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden}.resource-art img{width:100%;height:100%;object-fit:cover}.resource-art img[hidden]{display:none}

/* Original player-supplied produce photographs also serve the seed and harvest catalogue. */
.trade-art img.uploaded-produce,.product-art img.uploaded-produce,.seed-art img.uploaded-produce{display:block;background:#fff;object-fit:contain}

.placement-navigation{display:block;font-size:9px;line-height:1.5;color:#77816d;margin-top:5px}.placement-dock[data-follow=true] .placement-info{min-width:0;flex:1}

.sound-toggle{font-size:16px!important;line-height:1;min-width:30px;border-radius:8px!important}.sound-toggle[aria-pressed=true]{opacity:.6}.audio-settings{margin:22px 0 16px;padding:16px;border:1px solid #dce4d1;border-radius:13px;background:#f1f4e9}.audio-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:15px}.audio-heading h3{margin:0;font-size:16px;color:#486542}.audio-switch{display:flex;align-items:center;gap:7px;font-size:11px}.audio-settings>label{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px;margin-top:14px;color:#526c49}.audio-settings output{font-variant-numeric:tabular-nums;color:#7c876e}.audio-settings input[type=range]{grid-column:1/-1;width:100%;accent-color:#55794c;cursor:pointer}.audio-settings input[type=checkbox]{accent-color:#55794c}.audio-preview{display:flex;align-items:center;gap:12px;margin-top:18px}.audio-preview button{font-size:10px;white-space:nowrap;padding:10px}.audio-preview small{font-size:9px;line-height:1.5;color:#7c876e}.audio-settings>p{font-size:9px;line-height:1.7;color:#849078;margin:14px 0 0}
