/* Hep Çiftlik — immersive gameplay shell. Game scene drawn in a real canvas. */
:root{color-scheme:light;--g-cream:#fff9e9;--g-wood:#84562c;--g-olive:#325e30;--g-gold:#f4c661}
html,body{height:100%;overscroll-behavior:none}
body{background:#3b8250;color:#243c24;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;overflow:hidden}
button,select{font:inherit}button:focus-visible,a:focus-visible,#farmCanvas:focus-visible{outline:3px solid #ffd25c;outline-offset:2px}
.farm-game-header{height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px clamp(12px,2.5vw,34px);background:linear-gradient(180deg,#fcf8e6,#efe6c5);border-bottom:4px solid #ba9c60;box-shadow:0 4px 12px #2c552a4f;position:relative;z-index:5}
.farm-game-home{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:2px solid #d7c195;background:#fff9df;border-radius:14px;color:#385d30;text-decoration:none;font-weight:850;font-size:14px;white-space:nowrap}
.farm-game-home:first-letter{font-size:20px}
.farm-game-logo{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;color:#345f35;white-space:nowrap}.farm-logo-flower{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(#f6d879,#e4a944);border:2px solid #fff6cb;box-shadow:0 3px 0 #c08c40;color:#fffbe8;font-size:24px}.farm-game-logo strong{display:block;font:900 20px/1.1 Georgia,serif;letter-spacing:.05em}.farm-game-logo small{display:block;font-size:9px;letter-spacing:.18em;font-weight:850}
.farm-game-connection{display:flex;gap:8px;align-items:center;color:#4d7345;font-weight:850;font-size:12px}.farm-game-connection .live-dot{flex:none}
.farm-play-container{height:calc(100vh - 62px);height:calc(100dvh - 62px);position:relative;overflow:hidden}.farm-game{height:100%;min-height:0}.farm-game-stage{position:relative;width:100%;height:100%;min-height:0;background:radial-gradient(circle at 42% 36%,#a4d475,#71b653 65%,#438941);overflow:hidden;isolation:isolate}
#farmCanvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;display:block;cursor:grab}#farmCanvas.dragging{cursor:grabbing}
/* Compact, single-surface farm HUD: map remains the main focus. */
.game-top-hud{position:absolute;z-index:3;top:12px;left:clamp(10px,1.7vw,24px);width:min(590px,calc(100% - 42px));box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"profile wallet" "info info";align-items:center;column-gap:12px;row-gap:5px;padding:10px 12px;background:linear-gradient(180deg,#fffdf2f2,#f5ecd6ea);backdrop-filter:blur(6px);border:1px solid #fffdf7;border-radius:18px;box-shadow:0 5px 0 #c2a76d,0 14px 26px #2141292f;color:#395236;pointer-events:auto}
.game-profile{grid-area:profile;display:flex;align-items:center;gap:7px;min-width:0}
.game-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;font-size:24px;background:#e4efbc;border-radius:11px}
.game-profile-text{min-width:0;flex:1}
.game-profile-text>span{display:block;font-size:8px;font-weight:900;letter-spacing:.09em;color:#9c783b}
.game-profile-text strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 16px/1.18 Georgia,serif;color:#355534}
.game-profile-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#778954}
.game-tiny-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;border:1px solid #e4d9ab;border-radius:9px;background:#f4eccd;color:#46643c;font-size:17px;cursor:pointer}
.game-wallet{grid-area:wallet;display:flex;align-items:center;gap:6px;min-width:0}
.game-stat{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #ead9a9;background:linear-gradient(180deg,#fff7dd,#f1e2b8);border-radius:11px;min-width:0;color:#355635;font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:inset 0 1px 0 #fff9ee}
.game-stat-emblem{font-size:16px;line-height:1}
.game-stat small{display:block;font-size:8px;line-height:1.1;font-weight:850;letter-spacing:.03em;color:#957034}
.game-stat b{display:block;font-size:15px;line-height:1.2;font-weight:900;color:#315d34}
.game-scene-info{grid-area:info;display:flex;flex-wrap:wrap;gap:5px;min-width:0;pointer-events:none}
.game-scene-info span{display:inline-flex;align-items:center;max-width:100%;padding:2px 7px;border:1px solid #dce9c9;border-radius:999px;background:#eaf3d9;color:#416539;font-size:10px;line-height:1.25;font-weight:800;white-space:normal}
.game-scene-info span:last-child{background:transparent;border-color:transparent;color:#79875e}
.game-return{position:absolute;top:91px;right:21px;z-index:3;padding:10px 12px;color:#395a37;background:#fffae6;border:2px solid #fff;box-shadow:0 3px 0 #bca26b;border-radius:13px;font-weight:850}
.game-map-controls{position:absolute;z-index:3;left:17px;top:47%;display:grid;gap:8px}.game-map-controls button{border-radius:13px;width:43px;height:43px;display:grid;place-items:center;font-size:25px;font-weight:850;color:#4b6f3c;background:#fffbeaeb;border:2px solid #fff;box-shadow:0 4px 0 #b1a17a,0 8px 17px #34592b44}.game-map-controls button:active{transform:translateY(3px);box-shadow:0 1px 0 #b1a17a}
.game-dock{position:absolute;z-index:3;right:clamp(8px,1.6vw,22px);top:112px;display:grid;gap:7px}.game-dock button{background:linear-gradient(180deg,#fffef0,#ecdbaa);color:#355b39;border:2px solid #fffdf6;border-radius:18px;box-shadow:0 4px 0 #b69557,0 10px 18px #2c482733;min-width:78px;min-height:70px;display:grid;place-items:center;align-content:center;gap:2px;padding:4px 6px}.game-dock button span{font-size:27px;line-height:1.06;filter:drop-shadow(0 1px 0 #fff3cc)}.game-dock button b{font-size:11px;letter-spacing:.01em}.game-dock button:hover{filter:brightness(1.07);transform:translateY(-2px)}.game-dock button:active{transform:translateY(3px);box-shadow:0 1px 0 #b69557}
.game-seedbar{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);width:min(880px,calc(100% - 190px));display:flex;align-items:center;gap:12px;z-index:3;background:linear-gradient(180deg,#fffbedf5,#efddb0f4);border:3px solid #fffce9;border-radius:24px;padding:10px 14px;box-shadow:0 5px 0 #a78c5a,0 15px 28px #37572b57;color:#345732;backdrop-filter:blur(4px)}
.game-seedbar-caption{display:grid;min-width:112px;gap:2px}.game-seedbar-caption span{font-size:11px;font-weight:950;letter-spacing:.04em}.game-seedbar-caption small{font-size:10px;color:#9e8251}
.game-seed-extra{display:grid;align-content:center;gap:6px;min-width:170px;max-width:170px}
.game-seed-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.game-seed-extra-grid button{min-height:44px;padding:7px 6px;border-radius:12px;border:2px solid #f9f2cf;background:linear-gradient(180deg,#fffdf2,#ead8a8);box-shadow:0 3px 0 #b7945b;color:#355a35;font-weight:900;font-size:12px;cursor:pointer}
.game-seed-extra-grid button[disabled]{cursor:not-allowed;opacity:.58;box-shadow:none}
.game-seed-extra-grid button[aria-pressed="true"],.game-seed-extra-grid button.is-active{background:linear-gradient(180deg,#f7f3ca,#d8efab);border-color:#fff8da;box-shadow:0 3px 0 #95a85d;color:#2f5a2f}
.game-batch-status{display:block;min-height:18px;font-size:10px;font-weight:800;color:#687f52;line-height:1.25;text-align:center}
.game-batch-progress{position:absolute;z-index:4;left:50%;bottom:106px;transform:translateX(-50%);width:min(430px,calc(100vw - 26px));padding:10px 12px;border:2px solid #fff4d4;border-radius:18px;background:linear-gradient(180deg,#fffdf2,#eef4d7);box-shadow:0 6px 0 #d1b780,0 14px 28px #24452930;color:#345636}
.game-batch-progress[hidden]{display:none!important}.game-batch-progress-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.game-batch-progress-head strong{font-size:14px}.game-batch-progress-head span{font-size:12px;font-weight:900;color:#7b8b4f}.game-batch-progress-bar{height:12px;border-radius:999px;background:#d7dfb9;overflow:hidden;box-shadow:inset 0 1px 3px #7d85531f;margin-bottom:6px}.game-batch-progress-bar span{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,#76bb54,#d9df76);transition:width .22s ease}.game-batch-progress small{display:block;font-size:11px;color:#617553;line-height:1.35}
.game-seed-list{flex:1;min-width:0;display:flex;gap:5px;justify-content:center}.game-seed-choice{min-width:0;flex:1;max-width:92px;border:2px solid #e3cc94;background:#fff8dc;border-radius:13px;position:relative;display:grid;place-items:center;padding:3px;min-height:68px;color:#426139}.game-seed-choice img{width:41px;height:40px;object-fit:contain;filter:drop-shadow(0 3px 2px #674b2f44)}.game-seed-choice span{font-size:9px;font-weight:900;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.game-seed-choice small{position:absolute;right:1px;top:1px;border-radius:6px;padding:0 4px;background:#f1deac;color:#76632f;font-size:10px;font-weight:900}.game-seed-choice[aria-pressed="true"]{border-color:#e6a035;background:#fff2b8;box-shadow:0 0 0 2px #f6c76799,0 2px 0 #ad8a49;transform:translateY(-4px)}.game-seed-choice:disabled{opacity:.48;filter:grayscale(.75)}
.game-seed-extra-grid button:disabled{opacity:.65}
.game-status{position:absolute;z-index:2;left:20px;bottom:121px;background:linear-gradient(180deg,#17492ecc,#113623c7);border:1px solid #d9f3a077;max-width:min(365px,45vw);color:#fffbe6;font-size:12px;font-weight:760;border-radius:14px;padding:10px 13px;pointer-events:none;text-shadow:0 1px 2px #1d422d;box-shadow:0 8px 18px #12331d35}
.game-dialog-backdrop{position:absolute;inset:0;background:#1739226b;z-index:6;display:flex;justify-content:flex-end;align-items:stretch;backdrop-filter:blur(2px)}.game-dialog{width:min(550px,100vw);background:linear-gradient(#f8f4dd,#eadbb8);display:flex;flex-direction:column;min-height:0;box-shadow:-12px 0 36px #14392188;border-left:5px solid #ad8a4b;color:#344b30;animation:slide-in .2s ease both}@keyframes slide-in{from{transform:translateX(50px);opacity:.5}to{transform:translateX(0);opacity:1}}
.game-dialog-header{padding:21px 21px 13px;display:flex;align-items:center;justify-content:space-between;gap:15px}.game-dialog-header small{font-size:10px;color:#9c743a;font-weight:950;letter-spacing:.13em}.game-dialog-header h2{margin:5px 0 0;font:900 27px/1 Georgia,serif;color:#386039}.game-dialog-header button{width:42px;height:42px;flex:none;border-radius:12px;background:#fff9e6;border:2px solid #e5d4b1;box-shadow:0 2px 0 #cdb780;font-size:19px;color:#6d573a}
.game-dialog-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 16px 13px}.game-dialog-tabs button{background:#fff9df;border:2px solid #e5d7b8;border-radius:12px;padding:9px 5px;color:#55704b;font-size:12px;font-weight:850}.game-dialog-tabs button[aria-selected="true"]{background:#e4ecba;border-color:#92b168;color:#355d34;box-shadow:0 2px 0 #b9c68b}
.game-dialog-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 13px 20px}.game-dialog-content h3{margin:10px 5px;padding:12px 8px 8px;border-bottom:2px solid #ddc99f;font:900 20px Georgia,serif;color:#426138}.game-dialog-content .farm-item,.game-dialog-content .farm-animal,.game-dialog-content .farm-stock,.game-dialog-content .farm-contract{background:#fffdf5;border-color:#dfd0a9;box-shadow:0 2px 0 #e6d9b9}.game-dialog-content .farm-item-info small,.game-dialog-content .stock-desc small{color:#7f866b}.game-dialog-content .farm-item-info>b,.game-dialog-content .stock-desc strong,.game-dialog-content .animal-details b{color:#3d5935}.game-dialog-content .farm-contracts{padding:5px;gap:8px}.game-dialog-content .farm-button{border-color:#c19d4d;color:#5d4929;background:linear-gradient(#ffedb2,#edc76b)}.game-dialog-content .farm-inventory{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px}.game-dialog-content .farm-animal-list,.game-dialog-content .farm-list{padding:5px}.game-dialog-content .farm-list-separator{color:#82642d;border-color:#dfcda6}.game-dialog-content .farm-rank{border-color:#dacba9}.game-dialog-foot{padding:11px;text-align:center;border-top:1px solid #d8c69e;color:#886d3f;font-size:11px;font-weight:800}
/* Non-scrolling, viewport-anchored game feedback. The overlay never occupies layout space. */
.game-notices{position:fixed;z-index:90;top:calc(62px + 10px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(430px,calc(100vw - 28px));max-height:40dvh;pointer-events:none;overflow:hidden}
.game-notice{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 11px;border:1px solid #a8d5b1;border-left:4px solid #3c9459;border-radius:12px;background:#f8fff6;color:#234a32;box-shadow:0 8px 22px #1e452b3d;font-size:13px;font-weight:750;line-height:1.4;overflow-wrap:anywhere;pointer-events:auto;animation:game-notice-in .18s ease-out both}
.game-notice-icon{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;color:#fff;background:#348b53;font-size:13px;font-weight:900}
.game-notice-message{flex:1;min-width:0;max-height:6em;overflow:hidden}
.game-notice-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:21px;line-height:1;cursor:pointer}
.game-notice-close:hover,.game-notice-close:focus-visible{background:#dcebdc}
.game-notice.is-error{background:#fff6f2;color:#893d31;border-color:#e8b7a6;border-left-color:#d75c4c}
.game-notice.is-error .game-notice-icon{background:#ca5345}
.game-notice.is-error .game-notice-close:hover,.game-notice.is-error .game-notice-close:focus-visible{background:#f9dfd6}
.game-notice.is-leaving{animation:game-notice-out .18s ease-in forwards}
@keyframes game-notice-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@keyframes game-notice-out{to{opacity:0;transform:translateY(-6px)}}
.game-loading,.game-welcome{height:100%;background:linear-gradient(180deg,#80c58a,#cfe6b5);display:grid;place-content:center;align-content:center;gap:12px;text-align:center;margin:0}.game-loading button,.game-welcome button{justify-self:center}.game-welcome p{max-width:470px}.game-big-button{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;border-radius:16px;padding:15px 24px;color:#fffdf0;background:linear-gradient(#66b759,#327a42);border:3px solid #daf2aa;font-weight:900;box-shadow:0 5px 0 #296d39}.farm-game-login{height:calc(100dvh - 62px);display:grid;place-items:center;padding:24px;background:linear-gradient(#d8edb0bf,#4c9349b9),url('/assets/img/farm/farm-landscape.svg') center/cover}.farm-game-login>div{text-align:center;background:#fff9eada;padding:34px;border:3px solid #fff8d6;border-radius:26px;box-shadow:0 12px 35px #28512c55;max-width:590px}.farm-game-login-icon{font-size:60px}.farm-game-login h1{font:900 clamp(25px,4vw,45px)/1.1 Georgia,serif;color:#3d6736}.farm-game-login p{color:#536b42}.farm-game-login small{display:block;margin-top:20px;color:#776c47}.game-kicker{letter-spacing:.1em;font-weight:900;font-size:12px;color:#a27b35!important}
@media(max-width:1000px){.game-seedbar{width:calc(100% - 125px);left:62px;transform:none}.game-seedbar-caption{display:none}.game-dock{top:auto;right:8px;bottom:122px;grid-template-columns:repeat(2,1fr);gap:6px}.game-dock button{min-width:56px;min-height:55px;padding:2px}.game-dock button span{font-size:23px}.game-dock button b{font-size:9px}.game-map-controls{left:8px;top:38%}.game-map-controls button{width:38px;height:38px}.game-status{bottom:119px;max-width:45vw}}
@media(max-width:680px){
.game-top-hud{top:8px;left:8px;width:calc(100% - 16px);max-width:392px;padding:7px 8px;column-gap:5px;row-gap:3px;border-radius:13px}
.game-profile{gap:5px}
.game-avatar{width:29px;height:29px;font-size:19px;border-radius:8px}
.game-profile-text>span,.game-profile-text small{display:none}
.game-profile-text strong{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:12px;line-height:1.15}
.game-tiny-icon{width:26px;height:28px;font-size:15px}
.game-wallet{gap:3px}
.game-stat{gap:2px;padding:4px 5px;border-radius:8px}
.game-stat small{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.game-stat-emblem{font-size:14px}
.game-stat b{font-size:13px}
.game-scene-info{gap:4px}
.game-scene-info span{padding:2px 5px;font-size:9px}
.game-scene-info #worldHint{display:none}
.farm-game-header{height:55px}.farm-play-container{height:calc(100vh - 55px);height:calc(100dvh - 55px)}.game-notices{top:65px;width:min(380px,calc(100vw - 20px))}.game-notice{font-size:12px;padding:9px 10px;min-height:43px}.farm-game-header .farm-game-logo{position:static;transform:none;gap:5px}.farm-logo-flower{width:32px;height:32px;font-size:20px}.farm-game-logo strong{font-size:14px}.farm-game-logo small{font-size:7px}.farm-game-home{font-size:11px;padding:8px}.farm-game-connection{font-size:0}.farm-game-connection .live-dot{width:11px;height:11px}.game-scene-info #worldHint{display:none}.game-dock{right:6px;bottom:110px;grid-template-columns:1fr;gap:4px}.game-dock button{min-width:53px;min-height:48px;border-radius:11px}.game-dock button span{font-size:22px}.game-dock button b{font-size:8px}.game-map-controls{top:45%;left:6px;gap:5px}.game-map-controls button{height:37px;width:37px;font-size:21px;border-radius:10px}.game-seedbar{left:5px;bottom:7px;transform:none;width:calc(100% - 10px);padding:5px 5px 7px;border-width:2px;gap:4px;border-radius:14px}.game-seed-list{gap:3px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.game-seed-choice{flex:0 0 48px;min-height:57px;border-radius:9px;padding:1px}.game-seed-choice img{width:34px;height:34px}.game-seed-choice span{font-size:8px}.game-seed-choice small{font-size:8px}.game-seed-extra{min-width:122px;max-width:122px;gap:4px}.game-seed-extra-grid{gap:4px}.game-seed-extra-grid button{min-height:33px;font-size:9px;padding:2px;border-radius:8px}.game-batch-status{font-size:8px;min-height:16px}.game-status{bottom:83px;left:7px;max-width:calc(100% - 80px);font-size:10px;padding:6px 9px}.game-dialog{width:100%;border-left:0;border-top:5px solid #ad8a4b;height:min(79dvh,680px);align-self:flex-end;border-radius:22px 22px 0 0}.game-dialog-backdrop{align-items:flex-end}.game-dialog-header{padding:11px 16px}.game-dialog-header h2{font-size:23px}.game-dialog-tabs{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 10px 8px}.game-dialog-tabs button{font-size:11px;padding:8px 1px}.game-dialog-content h3{font-size:18px}.game-dialog-content .farm-contracts{grid-template-columns:1fr}.game-loading,.game-welcome{padding:25px}.game-xp-stat{display:none}}
@media(max-width:360px){.game-top-hud{max-width:calc(100% - 16px);padding:5px 6px}.game-avatar{width:25px;height:25px;font-size:17px}.game-profile{gap:3px}.game-stat{padding:3px 4px}.game-stat-emblem{font-size:12px}.game-stat b{font-size:12px}.game-scene-info span{font-size:8px}.farm-game-home span{display:none}.game-seed-choice{flex-basis:45px}}
@media(prefers-reduced-motion:reduce){.game-dialog,.game-notice{animation:none}.game-seed-choice{transition:none}}

/* Safe fallback if canvas is unavailable (rare legacy browsers). */
.farm-game-stage>.game-fallback:not([hidden]){position:absolute;z-index:1;left:50%;top:47%;transform:translate(-50%,-50%);width:min(780px,calc(100% - 120px));display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:8px;border-radius:16px;background:#609846d9}

/* Integrated farm economy + construction progress: compact, finger-friendly */
.farm-market-summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;padding:12px 13px;border:1px solid #dfc98a;background:#f4e6b6;border-radius:12px;color:#3d592c;font-size:12px}
.farm-market-summary span{font-weight:850;color:#6d622f}
.farm-market-heading{margin:17px 6px 8px;color:#476039;font-size:14px;letter-spacing:.01em}
.farm-sale-item{flex-wrap:wrap;gap:9px}
.farm-sale-item .farm-item-info{min-width:150px;flex:1}
.farm-sale-item .farm-item-actions{flex-wrap:wrap;gap:6px}
.farm-sale-item .farm-button{white-space:normal;min-height:39px}
.farm-building-phase{font-weight:800;color:#a66d2d}
.farm-building-track{display:block;max-width:245px;height:9px;border-radius:99px;background:#d9c9a2;overflow:hidden;margin:6px 0 3px;border:1px solid #baa36f}
.farm-building-fill{display:block;height:100%;background:linear-gradient(90deg,#bb9143,#74ac59);transition:width .6s linear;border-radius:inherit}
.farm-building-timer{color:#76633c;font-variant-numeric:tabular-nums}
@media(max-width:680px){.farm-market-summary{padding:9px;font-size:11px}.farm-sale-item .farm-item-actions{width:100%}.farm-sale-item .farm-button{flex:1 1 30%;font-size:11px;padding:6px 4px}}

/* v1.4.94 — always single-column farm actions on all phones, including short screens. */
.game-dock{grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row;justify-items:stretch}
@media(max-width:1000px){.game-dock{top:clamp(104px,19dvh,140px)!important;bottom:auto!important;right:7px;gap:5px;max-height:calc(100dvh - 200px);overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}.game-dock::-webkit-scrollbar{display:none}.game-dock button{min-width:59px;min-height:49px;padding:3px 5px;border-radius:12px}.game-dock button span{font-size:21px}.game-dock button b{font-size:9px;white-space:nowrap}}
@media(max-width:680px){.game-dock{top:clamp(106px,18dvh,136px)!important;right:6px;gap:5px}.game-dock button{width:65px;min-width:65px;min-height:47px}.game-dock button span{font-size:21px}.game-dock button b{font-size:9px}}
@media(max-height:700px) and (max-width:680px){.game-dock{top:96px!important;bottom:auto!important;gap:3px;max-height:calc(100dvh - 185px)}.game-dock button{min-height:39px;width:57px;min-width:57px}.game-dock button span{font-size:18px}.game-dock button b{font-size:8px}}
.farm-share-button{font-size:24px;font-weight:900;background:linear-gradient(#eff9de,#d7eccb);border-color:#bbd39e}

/* Hep Çiftlik — game ambience and private neighbor chat */
.game-sound-toggle{border:1px solid #d9c795;background:#fff6d9;color:#39603a;min-width:38px;min-height:38px;border-radius:11px;cursor:pointer;font-size:18px;display:grid;place-items:center;box-shadow:0 2px 0 #d6b977}.game-sound-toggle[aria-pressed="true"]{background:#e2edc6;border-color:#87af72}
.farm-chat-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff9e7;border:1px solid #deceab;border-radius:12px;padding:10px 12px;margin:7px 4px;color:#355d39;font-size:13px;font-weight:800}.farm-chat-setting small{display:block;font-weight:500;color:#677d5c;font-size:11px;margin-top:3px}.farm-chat-setting .farm-button{min-width:85px;min-height:40px}.farm-chat-setting .farm-button[aria-pressed="false"]{background:#f2ede5;color:#716c61;border-color:#ded5c5}
.farm-chat-box{border:1px solid #d7c9a9;border-radius:14px;background:#f9f8ed;overflow:hidden;margin:9px 4px 14px;box-shadow:0 3px 0 #d2bf9b}.farm-chat-box[hidden]{display:none}.farm-chat-head{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:#e6eecf;color:#37603a;font-size:13px}.farm-chat-head button{min-width:34px;min-height:34px;border-radius:8px;border:1px solid #c2cda8;background:#fffbea}.farm-chat-messages{display:flex;flex-direction:column;gap:7px;padding:12px;min-height:130px;max-height:260px;overflow:auto;overscroll-behavior:contain}.farm-chat-bubble{max-width:88%;padding:8px 11px;background:#fffdf5;border:1px solid #ddd3b7;border-radius:12px 12px 12px 3px;color:#344c34;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}.farm-chat-bubble.is-mine{align-self:flex-end;background:#dff1d7;border-color:#a6d1a3;border-radius:12px 12px 3px 12px}.farm-chat-bubble time{font-size:10px;display:block;margin-top:3px;color:#7a866f}.farm-chat-empty{color:#6f7e65;text-align:center;font-size:12px;margin:auto}.farm-chat-compose{display:flex;gap:7px;padding:8px 10px;border-top:1px solid #e6dcc4}.farm-chat-compose input{flex:1;min-width:0;min-height:42px;padding:8px 10px;border-radius:9px;border:1px solid #d8cba8;background:white;color:#294b32;font-size:14px}.farm-chat-compose button{border:0;border-radius:9px;min-height:42px;padding:0 13px;background:#368150;color:white;font-weight:850}.farm-chat-privacy{display:block;padding:0 12px 10px;color:#708065;font-size:10px}
@media(max-width:680px){.game-sound-toggle{min-width:34px;min-height:34px;font-size:17px}.farm-game-header{gap:5px}.farm-chat-messages{max-height:210px}.farm-chat-setting{padding:8px}}

/* v1.4.79: crisp accessible in-game graphic controls and responsive placement UI */
.farm-graphics-toggle{font-weight:950;font-size:20px;min-width:38px;background:linear-gradient(180deg,#f1f6dc,#e1e8cb)}
.game-map-controls button:last-child{font-size:22px;background:#e5f2d9ee;color:#416b49}
.game-top-hud{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.game-dock button,.game-seed-choice,.game-map-controls button{touch-action:manipulation;transition:filter .12s,transform .12s}
@media(max-width:680px){.farm-graphics-toggle{min-height:34px;min-width:34px;font-size:18px}.game-map-controls{gap:4px}.game-map-controls button:last-child{font-size:20px}}

/* Recorded sound credits are reachable without covering the game map. */
.farm-audio-credits{margin:7px auto 0;max-width:430px;text-align:left;color:#536947;font-size:11px}.farm-audio-credits summary{cursor:pointer;text-align:center;min-height:25px;font-weight:800;list-style:disclosure-closed}.farm-audio-credits[open] summary{list-style:disclosure-open}.farm-audio-credits span{display:block;margin-bottom:5px}.farm-audio-credits a{display:block;color:#355e47;min-height:25px;padding:3px 1px;text-decoration:underline}

/* Hep Çiftlik player-to-player stall: tactile, compact, native form controls. */
.farm-p2p{margin:0 0 20px;padding:10px 11px 16px;background:linear-gradient(180deg,#fffaf0,#f4ebd6);border:1px solid #dac79f;border-radius:15px;box-shadow:0 3px 0 #d1bc8e}
.farm-p2p-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.farm-p2p-head h3{border:0!important;margin:4px 0!important;padding:6px 3px!important}
.farm-market-helper{font-size:12px;line-height:1.5;color:#6e7459;margin:5px 8px 12px}
.farm-stall-create{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(60px,.65fr) minmax(85px,.8fr);gap:9px;align-items:end;margin:8px 2px 14px;padding:11px;border:1px solid #dfd0ae;border-radius:13px;background:#fffdf6}
.farm-stall-create label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:800;color:#526545}
.farm-stall-create select,.farm-stall-create input,.farm-stall-buy input{box-sizing:border-box;width:100%;min-height:42px;border-radius:9px;border:1px solid #c7b997;background:white;color:#324c34;font-size:14px;padding:8px;min-width:0}
.farm-stall-create>button{min-height:42px;grid-column:1/-1}
.farm-stall-help{grid-column:1/-1;color:#77806c;font-size:11px}
.farm-stall-row{display:flex;align-items:center;gap:9px;justify-content:space-between;padding:10px 11px;margin:7px 2px;border:1px solid #ddcfb2;border-radius:12px;background:#fffdf7}
.farm-stall-row>.farm-item-info{flex:1;min-width:0}
.farm-stall-row>.farm-button{flex:none;min-height:40px}
.farm-stall-buy{flex:0 0 auto;display:flex;align-items:center;gap:6px}.farm-stall-buy input{width:55px;min-height:40px}.farm-stall-buy button{min-height:40px;white-space:nowrap}
.farm-stall-history{padding:8px 10px;border-bottom:1px solid #e0d5c0;font-size:12px;font-weight:750;color:#4f6f46}
@media(max-width:680px){.farm-p2p{padding:8px 7px 12px}.farm-stall-create{gap:6px;padding:7px}.farm-stall-row{flex-wrap:wrap;gap:8px}.farm-stall-buy{width:100%;justify-content:flex-end}.farm-stall-row>.farm-button{margin-left:auto}.farm-stall-buy input{width:80px}.farm-market-helper{font-size:11px}}

/* v1.4.89 - Public neighbor stalls: readable, compact, flat game controls */
.farm-neighbor-row{border-color:#d7c5a2;background:linear-gradient(135deg,#fffcf3,#f4f0db);box-shadow:inset 0 1px rgba(255,255,255,.8)}
.farm-neighbor-icon{flex:0 0 auto;display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:linear-gradient(#f4e6bf,#e2c489);border:1px solid #cda96f;box-shadow:0 2px 0 #c5a976;font-size:27px}
.farm-neighbor-row .farm-item-info small{display:block;overflow-wrap:anywhere}
@media(max-width:380px){.farm-neighbor-row{padding:8px;gap:7px}.farm-neighbor-icon{width:39px;height:39px;font-size:22px}.farm-neighbor-row .farm-stall-buy{width:100%}}

/* v1.4.91 — dog companion: an independent, accessible in-game store and care drawer. */
.game-dock button{position:relative}
.farm-dog-alert{position:absolute;top:1px;right:4px;display:grid;place-items:center;min-width:19px;height:19px;border-radius:100%;background:#bb513d;color:#fff;font-style:normal;font-size:12px;font-weight:950;line-height:1;box-shadow:0 0 0 2px #fff2d9}
.farm-dog-alert[hidden]{display:none}
.farm-dog-panel{display:grid;gap:13px;margin:3px auto 12px;max-width:770px}
.farm-dog-card{padding:14px;border:1.5px solid #dfcc9d;border-radius:16px;background:linear-gradient(160deg,#fffdf3,#f3e8c8);box-shadow:0 3px 0 #dac394;color:#38563b}
.farm-dog-hero{background:linear-gradient(125deg,#f8f0d6,#e7ecc9)}
.farm-dog-head{display:flex;align-items:center;gap:14px}
.farm-dog-head>div{min-width:0;display:grid;gap:2px}.farm-dog-head b{font-size:18px}.farm-dog-head small{font-size:12px;color:#758267}
.farm-dog-face{display:grid;place-items:center;width:59px;height:59px;border-radius:14px;border:2px solid #dbbf85;background:#fce2a4;font-size:34px;flex:none}
.farm-dog-desc{color:#5b6a53;font-size:13px;line-height:1.55;margin:10px 0 2px}
.farm-dog-card h4{margin:0 0 11px;font-size:16px;font-weight:900}
.farm-dog-breeds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.farm-dog-breed{display:grid;justify-items:center;align-content:center;gap:5px;min-height:85px;border:2px solid #dfcaa2;background:#fff9e8;border-radius:13px;color:#486340;padding:8px 3px;cursor:pointer}
.farm-dog-breed.is-selected{border-color:#78a05d;background:#e5edc9;box-shadow:inset 0 0 0 1px #9dc381}
.farm-dog-breed:focus-visible{outline:3px solid #4c9662;outline-offset:2px}
.farm-dog-breed strong{font-size:11px;text-align:center;line-height:1.25}
.farm-dog-breed-icon{font-size:30px}
.farm-dog-action{width:100%;min-height:46px;margin-top:12px}
.farm-dog-note{font-size:11px;line-height:1.5;color:#6d795e;margin:9px 0 0}
.farm-dog-statuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.farm-dog-status{display:grid;gap:5px;padding:12px;background:#e4edcf;border:1px solid #b5cd9b;border-radius:12px;min-width:0;color:#43613d}
.farm-dog-status.needs-care{background:#fff0da;border-color:#ce9460;color:#834a2b}
.farm-dog-status b{font-size:13px}.farm-dog-status small{font-size:11px;line-height:1.35;color:inherit;opacity:.85}
.farm-dog-actions{display:flex;flex-wrap:wrap;gap:8px}.farm-dog-actions .farm-button{flex:1 1 130px;min-height:42px}
.farm-dog-stock{font-size:12px;font-weight:850;color:#536b43;margin:12px 0}
@media(max-width:680px){.farm-dog-card{padding:10px}.farm-dog-breeds{gap:5px}.farm-dog-breed{min-height:74px;padding:5px 2px}.farm-dog-breed-icon{font-size:25px}.farm-dog-statuses{gap:6px}.farm-dog-status{padding:8px;font-size:11px}.game-dock button.game-dog-dock{min-height:46px}}
@media(max-width:360px){.farm-dog-head b{font-size:15px}.farm-dog-breed strong{font-size:10px}}

@media(max-height:700px) and (max-width:680px){.game-dock{grid-template-columns:repeat(2,minmax(0,1fr));bottom:112px}.game-dock button{min-width:42px;min-height:41px;padding:2px 3px}.game-dock button span{font-size:19px}.game-dock button b{font-size:8px}}


/* Farm visitor register — highlighted card near the lower-right corner. */
.game-visitors-trigger{position:absolute;z-index:4;right:clamp(8px,1.6vw,22px);bottom:clamp(117px,15dvh,183px);width:102px;min-height:94px;display:grid;justify-items:center;align-content:center;gap:4px;padding:8px 6px;border:2px solid #fff9df;border-radius:19px;color:#355b37;background:linear-gradient(180deg,#fffef6,#f2dfb2);box-shadow:0 5px 0 #b7965d,0 14px 22px #2445293d;cursor:pointer;font-weight:850;line-height:1.1;touch-action:manipulation;overflow:hidden}
.game-visitors-trigger::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top left,#ffffff88,transparent 40%),linear-gradient(180deg,#fffde6aa,transparent 50%);pointer-events:none}
.game-visitors-trigger:hover{filter:brightness(1.04)}.game-visitors-trigger:active{transform:translateY(2px);box-shadow:0 2px 0 #b7965d}
.game-visitors-trigger.is-hot{box-shadow:0 5px 0 #b7965d,0 14px 26px #2445294d,0 0 0 4px #ecf6b877;animation:visitorPulse 1.8s ease-in-out infinite}
@keyframes visitorPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
.game-visitors-icon{font-size:23px;line-height:1;position:relative;z-index:1}.game-visitors-meta{position:relative;z-index:1;display:grid;justify-items:center;gap:1px}.game-visitors-kicker{font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#8c7146;font-weight:950}.game-visitors-count{font-size:24px;font-weight:950;font-variant-numeric:tabular-nums;line-height:1}.game-visitors-label{font-size:11px}.game-visitors-trigger small{position:relative;z-index:1;font-size:8px;font-weight:800;color:#718a5a;background:#f4f6dd;border-radius:999px;padding:3px 7px}
.game-visitors-backdrop{position:fixed;inset:0;z-index:18;display:grid;place-items:center;padding:16px;background:#102b1d88;backdrop-filter:blur(3px)}.game-visitors-backdrop[hidden],.game-visitors-trigger[hidden]{display:none!important}
.game-visitors-dialog{display:flex;flex-direction:column;width:min(450px,100%);max-height:min(74dvh,600px);border-radius:21px;background:#fff8e4;border:2px solid #e6d19a;box-shadow:0 20px 45px #122c1d78;color:#335337;overflow:hidden}
.game-visitors-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:17px 17px 11px;background:#f7eed1;border-bottom:1px solid #ddcba5}
.game-visitors-dialog-head small{font-size:9px;letter-spacing:.11em;font-weight:900;color:#956d39}.game-visitors-dialog-head h2{font:900 21px/1.15 Georgia,serif;margin:5px 0;color:#35603a}
.game-visitors-dialog-head button{flex:none;display:grid;place-items:center;width:38px;height:38px;border:1px solid #d7bf8e;border-radius:11px;background:#fff9ec;color:#675438;font-size:18px;cursor:pointer}
.game-visitors-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 17px 3px;font-size:12px;font-weight:750;color:#506e48}.game-visitors-summary strong{font-size:19px;color:#316342;font-variant-numeric:tabular-nums}
.game-visitors-help{font-size:11px;line-height:1.4;color:#6e795f;padding:0 17px 10px;margin:5px 0 0;border-bottom:1px solid #ebe0c8}
.game-visitors-list{overflow-y:auto;min-height:65px;padding:8px 13px 12px;display:grid;gap:7px;overscroll-behavior:contain}
.game-visitors-entry{display:flex;align-items:center;gap:10px;background:#fffef8;border:1px solid #e4d8bb;border-radius:13px;padding:9px 11px}
.game-visitors-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e0edcc;color:#476844;font-weight:950;font-size:17px}
.game-visitors-entry-main{min-width:0;flex:1}.game-visitors-entry-main strong{display:block;font-size:13px;overflow-wrap:anywhere;color:#315636}.game-visitors-entry-main small{display:block;font-size:10px;color:#7a7f62;overflow-wrap:anywhere}
.game-visitors-recent{flex:none;border-radius:20px;padding:4px 7px;background:#e2f1d6;color:#3e7541;font-size:9px;font-weight:900}
.game-visitors-empty{text-align:center;padding:22px 10px;margin:0;font-size:13px;color:#6c7963}
.game-visitors-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;border-top:1px solid #eadfcb;background:#f6edd5}.game-visitors-footer small{font-size:10px;color:#7b7b62;max-width:260px}.game-visitors-footer button{padding:8px 10px;background:#e0eabf;border:1px solid #a8bb81;border-radius:10px;color:#41623d;font-weight:900;cursor:pointer}
@media(max-width:680px){.game-visitors-trigger{right:6px;bottom:clamp(109px,13dvh,165px);width:82px;min-height:72px;border-radius:15px;padding:6px 4px}.game-visitors-icon{font-size:18px}.game-visitors-kicker{font-size:6px}.game-visitors-count{font-size:18px}.game-visitors-label{font-size:9px}.game-visitors-trigger small{font-size:7px;padding:2px 5px}.game-visitors-dialog{max-height:76dvh}.game-visitors-dialog-head h2{font-size:19px}.game-batch-progress{left:6px;transform:none;bottom:92px;width:calc(100vw - 104px);max-width:320px;padding:8px 9px;border-radius:14px}.game-batch-progress-head strong{font-size:12px}.game-batch-progress-head span{font-size:10px}.game-batch-progress small{font-size:9px}}
@media(max-height:680px){.game-visitors-trigger{bottom:108px;min-height:51px}.game-visitors-icon{font-size:15px}.game-visitors-count{font-size:13px}}

/* Visitor portraits and levels (private profiles keep their initials). */
.game-visitors-avatar{position:relative;overflow:hidden}.game-visitors-avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}.game-visitors-level{display:inline-flex;margin:3px 0 2px;padding:2px 7px;border:1px solid #cadca8;background:#edf5db;border-radius:999px;color:#426846;font-size:10px;font-weight:900}

/* v1.5.00 — unobstructed farm HUD, contextual visitor count and lean seed dock. */
.game-top-hud{max-width:min(590px,calc(100% - 34px));box-shadow:0 4px 0 #c2a76d,0 10px 20px #21412923}
.game-profile-text strong{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:900;letter-spacing:-.02em}
.game-return{z-index:5;top:14px;right:clamp(108px,8vw,136px);max-width:min(196px,calc(100vw - 204px));box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:12px;background:#f8ffed;border-color:#caddb5;color:#38643c;box-shadow:0 3px 0 #a9bf8a,0 7px 16px #263f2330;font-size:12px;min-height:40px}
.game-dock{max-height:calc(100% - 230px);overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;align-content:start}
.game-dock::-webkit-scrollbar{display:none}
/* Visitor count is now a normal dock item, never a detached overlay covering crops or controls. */
.game-dock .game-visitors-trigger{position:relative;inset:auto;right:auto;bottom:auto;width:100%;min-width:0;min-height:76px;max-width:none;padding:5px 4px;display:grid;align-content:center;justify-items:center;gap:2px;border-radius:15px;box-shadow:0 4px 0 #b69557,0 8px 16px #2c482733;animation:none}
.game-dock .game-visitors-trigger.is-hot{outline:2px solid #78b85c;outline-offset:-3px;background:linear-gradient(180deg,#fbffe8,#e7efc7);box-shadow:0 4px 0 #9fba70,0 8px 16px #2c48272b;animation:none}
.game-dock .game-visitors-trigger .game-visitors-icon{font-size:23px;line-height:1.05}
.game-dock .game-visitors-trigger .game-visitors-meta{display:flex;align-items:baseline;gap:3px}
.game-dock .game-visitors-trigger .game-visitors-count{font-size:17px;line-height:1}
.game-dock .game-visitors-trigger .game-visitors-label{font-size:10px;font-weight:900}
.game-dock .game-visitors-trigger small{font-size:9px;padding:1px 4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-seedbar{max-width:min(880px,calc(100% - 182px))}
.game-seed-extra{min-width:112px;max-width:132px;flex:0 0 112px;align-content:center}
.game-seed-extra #expandButton{display:block;width:100%;min-height:57px;border:2px solid #d3a44b;background:linear-gradient(#fbe7ac,#f2c965);border-radius:11px;padding:6px;font-size:11px;line-height:1.25;font-weight:900;color:#68502a}
.game-seed-extra #expandButton:disabled{opacity:.55;cursor:not-allowed}
.game-seed-list{justify-content:center}
.game-batch-progress{z-index:3;width:min(330px,calc(100vw - 190px));bottom:112px;padding:7px 10px;border-radius:12px;box-shadow:0 3px 0 #d1b780,0 9px 16px #24452930}
.game-batch-progress-head strong{font-size:11px}.game-batch-progress-head span{font-size:10px}.game-batch-progress-bar{height:7px;margin-bottom:3px}
.game-batch-progress small{font-size:9px;line-height:1.2}
@media(max-width:1100px){.game-return{top:122px;right:clamp(85px,11vw,115px);max-width:200px}}
@media(max-width:680px){
 .game-top-hud{box-sizing:border-box;left:8px;top:7px;width:calc(100% - 16px);max-width:none;grid-template-columns:minmax(0,1fr) auto;gap:3px 5px;padding:8px 9px}
 .game-profile{min-width:0}.game-profile-text strong{font-size:13px;line-height:1.15}.game-avatar{width:30px;height:30px;font-size:19px}
 .game-wallet{gap:3px}.game-stat{padding:3px 4px}.game-stat b{font-size:12px}.game-stat-emblem{font-size:12px}
 .game-return{top:112px;right:85px;max-width:calc(100% - 195px);min-height:35px;padding:7px 9px;font-size:10px}
 .game-dock{top:clamp(111px,18dvh,142px)!important;max-height:calc(100dvh - 230px);right:6px!important;width:65px;gap:5px}
 .game-dock .game-visitors-trigger{width:65px;min-width:65px;min-height:52px;padding:3px 2px;border-radius:12px}
 .game-dock .game-visitors-trigger .game-visitors-icon{font-size:18px}.game-dock .game-visitors-trigger .game-visitors-count{font-size:13px}.game-dock .game-visitors-trigger .game-visitors-label{font-size:8px}.game-dock .game-visitors-trigger small{font-size:7px}
 .game-seedbar{max-width:none;left:5px;bottom:7px;transform:none;width:calc(100% - 10px);padding:5px 6px;gap:6px}
 .game-seed-list{justify-content:flex-start;gap:4px}.game-seed-extra{min-width:77px;max-width:77px;flex:0 0 77px}
 .game-seed-extra #expandButton{min-height:56px;padding:4px 2px;font-size:9px;line-height:1.2;border-radius:10px}
 .game-batch-progress{left:8px;transform:none;bottom:87px;max-width:calc(100vw - 108px);width:min(250px,calc(100vw - 108px));padding:6px 8px}
 .game-batch-progress-head strong{font-size:10px}.game-batch-progress-head span{font-size:9px}.game-batch-progress small{font-size:8px}
}
@media(max-height:700px) and (max-width:680px){.game-dock{top:105px!important;max-height:calc(100dvh - 185px)}.game-dock .game-visitors-trigger{min-height:41px}.game-return{top:98px}}
@media(prefers-reduced-motion:reduce){.game-dock .game-visitors-trigger{animation:none!important}}

/* v1.5.02 — adaptive full-height vertical dock, desktop and mobile.
   Reserve fixed game header/HUD and seed tray, then distribute every button
   into the remaining space instead of cropping controls behind a scrollbar. */
.farm-play-container .game-dock{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:repeat(8,minmax(0,1fr));
  grid-auto-flow:row!important;
  top:clamp(85px,11dvh,112px)!important;
  bottom:clamp(100px,14dvh,122px)!important;
  height:auto!important;max-height:none!important;
  gap:clamp(3px,.65dvh,7px)!important;
  overflow:visible!important;
  align-content:stretch!important;justify-items:stretch;
  width:82px;
}
.farm-play-container .game-dock>button{
  display:grid;box-sizing:border-box;min-height:0!important;height:100%!important;
  width:100%;min-width:0!important;max-width:100%;
  padding:2px 4px!important;gap:0!important;border-radius:12px;
  align-content:center;justify-items:center;overflow:hidden;
}
.farm-play-container .game-dock>button>span{font-size:clamp(17px,2.8dvh,23px)!important;line-height:1}
.farm-play-container .game-dock>button>b{font-size:clamp(8px,1.3dvh,10px)!important;line-height:1.05;text-align:center;white-space:nowrap}
.farm-play-container .game-dock>.game-visitors-trigger{min-height:0!important;height:100%!important;padding:2px 3px!important;gap:0!important}
.farm-play-container .game-dock>.game-visitors-trigger .game-visitors-icon{font-size:clamp(16px,2.5dvh,21px)!important}
.farm-play-container .game-dock>.game-visitors-trigger .game-visitors-count{font-size:clamp(13px,2.1dvh,16px)!important}
.farm-play-container .game-dock>.game-visitors-trigger .game-visitors-label{font-size:9px!important}
.farm-play-container .game-dock>.game-visitors-trigger small{font-size:8px!important;padding:0!important}
@media(min-width:681px) and (max-height:710px){
 .farm-play-container .game-dock{top:80px!important;bottom:92px!important;gap:3px!important;width:76px}
 .farm-play-container .game-dock>.game-visitors-trigger .game-visitors-kicker{display:none}
}
@media(max-width:680px){
 .farm-play-container .game-dock{top:clamp(104px,15dvh,135px)!important;bottom:clamp(102px,16dvh,136px)!important;right:6px!important;width:64px!important;gap:4px!important}
 .farm-play-container .game-dock>button{border-radius:10px!important}
 .farm-play-container .game-dock>.game-visitors-trigger .game-visitors-kicker{display:none}
 .farm-play-container .game-dock>.game-visitors-trigger small{font-size:7px!important}
}
@media(max-height:680px) and (max-width:680px){
 .farm-play-container .game-dock{top:98px!important;bottom:94px!important;gap:3px!important}
 .farm-play-container .game-dock>.game-visitors-trigger small{display:none}
}
/* Small-screen header: retain Home, brand, sound and connection without overflow. */
@media(max-width:360px){
 .farm-game-header{padding-left:6px;padding-right:6px;gap:3px}
 .farm-game-home{padding:6px 8px;font-size:12px;flex:0 0 auto}
 .farm-game-logo{gap:3px;min-width:0}
 .farm-logo-flower{width:26px;height:26px;font-size:17px;flex:0 0 26px}
 .farm-game-logo strong{font-size:11px;letter-spacing:0}
 .farm-game-logo small{font-size:6px;letter-spacing:.06em}
 .farm-game-connection{gap:3px;flex:0 0 auto}
 .farm-game-connection .game-sound-toggle{min-width:29px;min-height:29px;width:29px;height:29px;padding:2px;font-size:15px}
 .farm-game-connection .live-dot{width:9px;height:9px}
}

/* v1.5.05: compact drawer with optional licence attribution inside Animals. */
.game-dialog-content{padding-bottom:12px}.game-dialog-foot{display:none!important}.farm-credits-inline{padding:5px 9px 9px;border-top:1px solid #e2d6b7;margin-top:10px}.farm-credits-inline .farm-audio-credits{margin:0;max-width:none}.farm-credits-inline .farm-audio-credits summary{text-align:left;font-size:11px}.farm-share-icon{display:block;flex:none;width:23px;height:23px}.farm-share-button{display:grid;place-items:center}
.game-seed-choice .seed-queued-count{position:absolute;top:1px;right:1px;min-width:18px;height:18px;padding:1px 4px;display:grid;place-items:center;border-radius:999px;color:#214d30;background:#e5f5a6;border:1px solid #f8f7df;font-size:10px;line-height:1;font-weight:950;box-shadow:0 1px 2px #38543244;pointer-events:none}.game-seed-choice .seed-queued-count[hidden]{display:none!important}
@media(max-width:680px){.farm-share-icon{width:20px;height:20px}.game-seed-choice .seed-queued-count{min-width:17px;height:17px;font-size:9px;padding:1px 3px}}

/* v1.5.06 — narrower mobile dock and explicit read-only guest farm directory. */
@media(max-width:680px){
 .farm-play-container .game-dock{width:54px!important;right:5px!important;gap:3px!important}
 .farm-play-container .game-dock>button{padding:2px!important;border-radius:10px!important}
 .farm-play-container .game-dock>button>span{font-size:clamp(16px,2.7dvh,20px)!important}
 .farm-play-container .game-dock>button>b{font-size:clamp(7px,1.24dvh,9px)!important}
 .farm-play-container .game-dock>.game-visitors-trigger .game-visitors-label{font-size:8px!important}
}
.farm-directory{box-sizing:border-box;width:100%;height:100%;overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,36px);background:linear-gradient(165deg,#f7f2d8,#e4efcf 64%,#dce9bb);color:#36583b}
.farm-directory[hidden]{display:none!important}
.farm-directory-head{display:flex;justify-content:space-between;align-items:start;gap:12px;max-width:1120px;margin:0 auto 18px}
.farm-directory-head h1{font-family:Georgia,serif;font-size:clamp(26px,4vw,36px);margin:4px 0 7px;color:#2c6039}
.farm-directory-head p{font-size:13px;line-height:1.5;margin:0;max-width:680px}
.farm-directory-head .game-kicker{font-size:11px;font-weight:900;letter-spacing:.09em;color:#967744}
.farm-directory-head button{border-radius:12px;border:1px solid #b9cd9b;background:#fffdf1;color:#3f6b42;font-weight:900;padding:10px 13px;cursor:pointer;flex:none}
.farm-directory-search{box-sizing:border-box;display:grid;gap:6px;max-width:1120px;margin:0 auto 9px;font-size:12px;font-weight:900}
.farm-directory-search input{box-sizing:border-box;width:100%;padding:12px 13px;border-radius:12px;border:1px solid #c4d3a6;background:#fffdf4;color:#315237;font-size:15px;min-height:44px}
.farm-directory-status{max-width:1120px;margin:6px auto 13px;font-size:12px;font-weight:800;color:#56764b}
.farm-directory-list{max-width:1120px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin:0 auto;padding-bottom:28px}
.farm-directory-card{box-sizing:border-box;display:flex;text-align:left;align-items:center;gap:12px;padding:14px;border:1px solid #d5c79c;border-radius:15px;background:linear-gradient(145deg,#fffef4,#f7edcf);box-shadow:0 3px 0 #ddcda0;color:#325838;cursor:pointer;min-width:0;min-height:92px}
.farm-directory-card:hover{border-color:#84ad78;transform:translateY(-1px)}
.farm-directory-card:focus-visible{outline:3px solid #40855c;outline-offset:3px}
.farm-directory-avatar{display:grid;place-items:center;border-radius:12px;width:50px;height:50px;background:#e9ecc5;font-size:26px;flex:none}
.farm-directory-info{display:grid;gap:5px;min-width:0;flex:1}
.farm-directory-info strong{font-size:15px;overflow-wrap:anywhere}
.farm-directory-info small{font-size:11px;color:#6b7d61;overflow-wrap:anywhere}
.farm-directory-side{display:grid;justify-items:end;gap:7px;flex:none}
.farm-directory-side small{font-size:10px;color:#728c61}
.farm-directory-side b{font-size:11px;color:#306b3a}
.farm-directory-empty{padding:24px;background:#fffcef;border:1px solid #dbcfae;border-radius:13px;color:#66785e;grid-column:1/-1}
.game-directory-return{position:absolute;z-index:4;top:105px;right:clamp(90px,10vw,140px);border:1px solid #d6c593;border-radius:13px;padding:10px 12px;background:#fff8df;color:#395c3b;box-shadow:0 3px 0 #bea570;font-weight:900;cursor:pointer}
.game-directory-return[hidden]{display:none!important}
@media(max-width:680px){.farm-directory{padding:15px 11px}.farm-directory-head h1{font-size:26px}.farm-directory-head button{font-size:11px;padding:9px}.farm-directory-list{grid-template-columns:1fr}.farm-directory-card{padding:11px;min-height:79px}.farm-directory-side small{font-size:9px}.game-directory-return{top:clamp(108px,17dvh,138px);right:66px;padding:7px 8px;font-size:11px}}

/* v1.5.08: compact in-scene harvest shopping for registered neighbors. */
.game-seedbar[hidden]{display:none!important}
.farm-garden-cart{position:absolute;z-index:5;bottom:10px;left:50%;transform:translateX(-50%);width:min(580px,calc(100% - 22px));box-sizing:border-box;display:grid;gap:7px;padding:11px 13px;background:#fdfbf1f5;border:1px solid #d4dfc5;border-radius:17px;box-shadow:0 10px 30px #1a462e55,0 2px 0 #bad3a8;color:#32553d;backdrop-filter:blur(9px)}
.farm-garden-cart[hidden],.farm-garden-owner[hidden]{display:none!important}
.farm-garden-cart-head,.farm-garden-cart-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.farm-garden-cart-head>div{min-width:0;display:grid;gap:2px}.farm-garden-cart-head small{font-size:9px;letter-spacing:.09em;color:#729270;font-weight:900}.farm-garden-cart-head strong{font-size:15px;font-weight:900;line-height:1.1}
.farm-garden-cart-head button{background:transparent;border:0;color:#657d63;font-size:11px;font-weight:850;cursor:pointer;padding:5px 7px}
.farm-garden-items{display:flex;min-width:0;gap:5px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
.farm-garden-chip{flex:none;padding:5px 8px;border-radius:8px;background:#e6f1de;color:#385f43;border:1px solid #cbdfc2;font-size:11px;font-weight:800}
.farm-garden-placeholder{font-size:11px;color:#668066;padding:3px 0}
.farm-garden-cart-foot>span{font-size:13px;font-weight:950;font-variant-numeric:tabular-nums;color:#476a46}
.farm-garden-cart-foot button{border:1px solid #337b4c;border-radius:10px;min-width:130px;min-height:38px;padding:8px 12px;background:#377d50;color:#fff;font-size:13px;font-weight:900;cursor:pointer;transition:filter .15s}
.farm-garden-cart-foot button:hover:not(:disabled){filter:brightness(1.07)}
.farm-garden-cart-foot button:disabled{background:#b3bdaf;border-color:#b3bdaf;cursor:default}
.farm-garden-cart-hint{font-size:10px;line-height:1.35;color:#71816c}
.farm-garden-owner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf5e5;border:1px solid #d3e3c7;padding:12px;border-radius:12px;margin-bottom:12px}
.farm-garden-owner-copy{display:grid;gap:4px;min-width:0}.farm-garden-owner strong{font-size:13px;color:#3b6a4d}.farm-garden-owner small{font-size:11px;color:#637a64;line-height:1.4}
.farm-garden-owner .farm-button{flex:none;font-size:11px;min-height:37px}
.farm-game-stage.is-garden-visit .game-dock{bottom:160px}.farm-game-stage.is-garden-visit .game-status{bottom:155px}
@media(max-width:680px){.farm-garden-cart{bottom:max(7px,env(safe-area-inset-bottom));width:calc(100% - 12px);gap:5px;padding:8px 10px;border-radius:12px}.farm-garden-cart-head strong{font-size:13px}.farm-garden-cart-head small{font-size:8px}.farm-garden-cart-foot button{min-width:114px;min-height:35px;font-size:12px}.farm-garden-cart-hint{font-size:9px}.farm-garden-owner{align-items:stretch;gap:7px;flex-direction:column}.farm-garden-owner .farm-button{align-self:flex-start}.farm-game-stage.is-garden-visit .game-dock{bottom:158px}.farm-game-stage.is-garden-visit .game-status{bottom:149px;max-width:calc(100% - 90px)} }
@media(max-height:600px) and (max-width:680px){.farm-garden-cart-hint{display:none}.farm-garden-cart{gap:3px}.farm-game-stage.is-garden-visit .game-dock{bottom:125px}}
.farm-game-stage .farm-tile.is-garden-selected{outline:3px solid #ffdc78;outline-offset:-2px;box-shadow:0 0 0 3px #3b934c}

/* Accessible farm animal gestures and persistent public share control. */
.farm-animal-help{font-size:12px;line-height:1.5;color:#526b49;background:#edf5e5;border:1px solid #d4e5c7;border-radius:10px;padding:9px 11px;margin:3px 0 12px}
.farm-game-header #farmShareButton{display:grid!important;visibility:visible!important;opacity:1!important;flex:none;place-items:center;min-width:34px;min-height:34px}
.farm-game-header #farmShareButton[hidden]{display:grid!important}

/* v1.5.11: twelve readable crop choices. The seed belt scrolls horizontally
   instead of compressing every plant into 30px or covering the game field. */
.game-seed-list{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#bc9e61 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:5px 2px 9px;gap:6px}
.game-seed-choice{flex:0 0 69px;min-width:69px;max-width:69px;scroll-snap-align:start}
.game-seed-choice:focus-visible{outline:3px solid #398454;outline-offset:2px}
.game-seed-choice img{width:46px;height:44px}
.game-dialog-content .farm-animal{align-items:center;gap:8px}
.game-dialog-content .farm-animal .farm-button{flex-shrink:0}
@media(max-width:680px){.game-seed-list{gap:4px;padding:4px 1px 7px}.game-seed-choice{flex:0 0 49px;min-width:49px;max-width:49px}.game-seed-choice img{width:34px;height:34px}}
@media(max-width:360px){.game-seed-choice{flex-basis:45px;min-width:45px;max-width:45px}}
@media(prefers-reduced-motion:reduce){.game-seed-list{scroll-behavior:auto}}

/* Compact message indicator; remains visible on desktop/mobile without moving the game scene. */
.farm-chat-unread{display:inline-flex;align-items:center;justify-content:center;min-width:1.28rem;height:1.28rem;padding:0 .25rem;border-radius:99px;background:#bb3f43;color:#fff;font-size:.69rem;line-height:1;font-style:normal;font-weight:800;vertical-align:middle;box-shadow:0 1px 5px #342b2655}
.farm-chat-unread[hidden]{display:none!important}
.farm-peer-unread{display:block;margin-top:.2rem;color:#af4535;font-weight:800}

/* Pending sowing count and remaining stock must never overlap on the seed dock. */
.game-seed-choice .seed-queued-count{left:2px;right:auto;top:2px;background:#d6efd5;color:#245f39;border-color:#f8fdf1}
.game-seed-choice small.seed-stock-count{right:2px;left:auto}

/* v1.5.17: interactive world-space bazaar stands */
.farm-stall-overlay[hidden]{display:none!important}
.farm-stall-overlay{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(17,37,24,.67);backdrop-filter:blur(4px)}
.farm-stall-dialog{width:min(100%,550px);max-height:min(84dvh,720px);overflow:hidden;display:flex;flex-direction:column;min-width:0;border:2px solid #f7e5ae;border-radius:19px;background:#fff9e8;color:#37563a;box-shadow:0 16px 54px rgba(10,34,20,.35)}
.farm-stall-dialog-head{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:16px 18px 11px;background:#e9f0d5;border-bottom:1px solid #d5ddba}
.farm-stall-dialog-head small{font-size:10px;letter-spacing:.07em;font-weight:850;color:#73845a}
.farm-stall-dialog-head h2{font-size:20px;line-height:1.25;margin:4px 0 0;color:#355a37}
.farm-stall-dialog-head>button{min-width:42px;min-height:42px;border:1px solid #c8d4aa;border-radius:11px;background:#fff9e9;color:#365c3a;font-size:21px;cursor:pointer}
.farm-stall-dialog-intro{margin:0;padding:12px 18px;color:#627452;font-size:12px;line-height:1.5}
.farm-stall-offers{padding:0 14px 12px;overflow:auto;min-height:85px;overscroll-behavior:contain}
.farm-stall-offer{border:1px solid #e0d5b9;border-radius:12px;background:white;margin:0 0 9px;padding:12px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.farm-stall-offer-info{min-width:150px;flex:1;display:grid;gap:4px}.farm-stall-offer-info strong{font-size:14px}.farm-stall-offer-info small{font-size:11px;color:#66735c}
.farm-stall-offer-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.farm-stall-amount-label{display:grid;gap:3px;font-size:11px;font-weight:750;color:#647355}.farm-stall-amount-label input{box-sizing:border-box;width:66px;min-height:40px;padding:6px;border-radius:9px;border:1px solid #c7bd9e;background:#fff;color:#365338;font-size:15px}
.farm-stall-total{font-size:13px;white-space:nowrap;padding-bottom:11px}.farm-stall-offer-form .farm-button{min-height:40px;white-space:nowrap}
.farm-stall-readonly,.farm-stall-own-label{font-size:11px;color:#758158}
.farm-stall-dialog-foot{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:11px 16px;background:#f1ead5;border-top:1px solid #dfd4b8}
.farm-stall-dialog-foot span{font-weight:850;font-size:12px}.farm-stall-dialog-foot>div{display:flex;gap:7px}
.farm-stall-dialog-foot button{min-height:40px;padding:7px 12px;border:1px solid #cabb96;border-radius:10px;background:#fffcf1;color:#426044;font-size:12px;font-weight:800;cursor:pointer}
.farm-stall-dialog button:focus-visible,.farm-stall-dialog input:focus-visible{outline:3px solid #db973d;outline-offset:2px}
@media(max-width:600px){.farm-stall-overlay{padding:10px;align-items:center}.farm-stall-dialog{max-height:88dvh;border-radius:15px}.farm-stall-dialog-head{padding:12px}.farm-stall-dialog-head h2{font-size:17px}.farm-stall-offers{padding:0 9px 10px}.farm-stall-offer{padding:10px;gap:8px}.farm-stall-offer-form{width:100%;justify-content:space-between}.farm-stall-dialog-foot{padding:10px;gap:8px}.farm-stall-dialog-foot>div{margin-left:auto}}

/* v1.5.17: separate physical stall escrow from NPC inventory */
.farm-stall-reserves{margin:8px 1px 12px;padding:10px;border:1px solid #d5dba9;border-radius:13px;background:#eff4de}
.farm-stall-reserves h4{font-size:13px;margin:0 0 8px;color:#375736;font-weight:900}
.farm-stall-stock-line{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:6px 8px;margin:3px 0;border-radius:8px;background:#fffdf5;font-size:12px;font-weight:750}
.farm-stall-stock-line span:first-child{flex:1 1 115px}.farm-stall-stock-line span:nth-child(2){color:#477347}
.farm-stock-reserved{color:#815b2a;background:#f9e9c7;border-radius:8px;padding:3px 7px}.farm-stock-unreserved{color:#7e836e}
.farm-escrow-item{opacity:.85;background:#f5f0e2!important}
@media(max-width:600px){.farm-stall-stock-line{font-size:11px;gap:6px;padding:7px 6px}.farm-stall-reserves{padding:8px}}

/* Durable worker fatigue / rest. Compact, readable without covering fields. */
.game-top-hud{grid-template-areas:"profile wallet" "farmer farmer" "info info"}
.farm-farmer-energy{grid-area:farmer;display:flex;align-items:center;gap:7px;min-width:0;padding:3px 1px;color:#4f6540;font:800 11px/1.2 system-ui,sans-serif}
.farm-farmer-energy[hidden]{display:none!important}
.farm-farmer-energy-icon{font-size:15px;flex:none}
.farm-farmer-energy-label{white-space:nowrap;max-width:65%;text-overflow:ellipsis;overflow:hidden}
.farm-farmer-energy-track{flex:1;min-width:45px;max-width:170px;height:9px;border-radius:999px;background:#dfdfc3;border:1px solid #cfcca3;overflow:hidden}
.farm-farmer-energy-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#cf9140,#77b85b);border-radius:inherit;transition:width .35s ease}
.farm-farmer-energy.is-tired .farm-farmer-energy-track i{background:#db8056}
#farmerWakeButton{border:1px solid #caa76c;background:#fff3cc;color:#3b693b;border-radius:9px;font:800 11px/1 system-ui;padding:7px 9px;white-space:nowrap;cursor:pointer;min-height:32px}
#farmerWakeButton[hidden]{display:none}
@media(max-width:680px){.farm-farmer-energy{font-size:10px;padding:2px 0;gap:5px}.farm-farmer-energy-track{min-width:25px;max-width:80px;height:7px}#farmerWakeButton{font-size:10px;min-height:28px;padding:6px 8px}}


/* v1.5.20 · Farmer energy sits to the RIGHT of weather/plot counters, not on an
   extra full-width line. Two-row HUD regardless of stamina or sleep state. */
.game-top-hud{grid-template-areas:"profile wallet" "info farmer";grid-template-columns:minmax(0,1fr) auto;row-gap:4px;column-gap:8px}
.game-scene-info{min-width:0;flex-wrap:nowrap;overflow:hidden;align-items:center}
.game-scene-info span{white-space:nowrap;flex:0 0 auto}
.game-scene-info #plotCount{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.farm-farmer-energy{justify-self:end;align-self:center;gap:5px;min-width:0;max-width:100%;padding:1px 0;font-size:10px;white-space:nowrap}
.farm-farmer-energy-label{display:inline-flex;align-items:center;gap:3px;max-width:none!important;overflow:visible;font-variant-numeric:tabular-nums;line-height:1.2}
.farm-farmer-energy-label b{font-size:11px;font-weight:900}
.farm-farmer-energy-icon{font-size:14px}
.farm-farmer-energy-track{flex:none;width:68px;min-width:0;max-width:68px;height:8px}
.farm-farmer-energy.is-tired .farm-farmer-energy-label{color:#aa572e}
.farm-farmer-energy.is-sleeping .farm-farmer-energy-label{color:#4e7394}
.farm-farmer-energy.is-resting .farm-farmer-energy-label{color:#426b4d}
@media(max-width:680px){
 .game-top-hud{grid-template-areas:"profile wallet" "info farmer";grid-template-columns:minmax(0,1fr) auto;column-gap:5px;row-gap:3px}
 .farm-farmer-energy{gap:3px;padding:0;font-size:10px}
 .farm-farmer-energy-state{display:none}
 .farm-farmer-energy-icon{font-size:12px}
 .farm-farmer-energy-label b{font-size:10px}
 .farm-farmer-energy-track{width:40px;min-width:0;max-width:40px;height:6px}
 #farmerWakeButton{padding:4px 5px;font-size:9px;min-height:25px}
 .game-scene-info{flex-wrap:nowrap;gap:3px}
 .game-scene-info span{padding:2px 4px;white-space:nowrap}
 .game-scene-info #plotCount{overflow:hidden;text-overflow:ellipsis;min-width:0}
}
@media(max-width:390px){
 .farm-farmer-energy-track{width:29px;max-width:29px}
 .game-top-hud{column-gap:4px}
 .farm-farmer-energy{gap:2px}
}
@media(max-width:340px){
 .game-scene-info #weatherLabel{max-width:74px;overflow:hidden;text-overflow:ellipsis}
 .farm-farmer-energy-track{width:22px;max-width:22px}
 #farmerWakeButton{font-size:8px;padding:3px 4px}
}
@media(prefers-reduced-motion:reduce){.farm-farmer-energy-track i{transition:none}}

/* v1.5.28 — Viewer count follows Komşular as the final dock item.
   Keep it in normal grid flow rather than pinning it over the menu. */
.farm-play-container .game-dock>.game-visitors-trigger:not([hidden]){
 position:relative!important;top:auto!important;align-self:stretch;
 background:linear-gradient(180deg,#fffef2,#efe6bd);
}
.farm-play-container .game-dock>.game-visitors-trigger.is-hot{
 background:linear-gradient(180deg,#f6ffec,#e2f1ce);
}
.farm-play-container .game-dock>.game-visitors-trigger:focus-visible{
 outline:3px solid #21724f;outline-offset:-3px;
}

/* 1.5.26 / build 411 — keep desktop toolbars compact and maximize visible seeds.
   Does not apply at <=1000px; mobile/tablet arrangements remain unchanged. */
@media (min-width:1001px) {
  .game-map-controls{left:12px;gap:6px}
  .game-map-controls button{width:38px;height:38px;font-size:22px;border-radius:11px}
  .farm-play-container .game-dock{width:68px;right:clamp(8px,1vw,16px);gap:6px}
  .game-dock button{min-width:68px;min-height:59px;border-radius:13px;padding:3px 5px}
  .game-dock button span{font-size:23px}
  .game-dock button b{font-size:10px}
  .game-seedbar{width:min(1030px,calc(100% - 182px));max-width:min(1030px,calc(100% - 182px));gap:8px;padding:8px 10px}
  .game-seedbar-caption{min-width:80px;max-width:80px}
  .game-seedbar-caption span{font-size:10px}
  .game-seedbar-caption small{font-size:9px;line-height:1.2}
  .game-seed-extra{min-width:100px;max-width:100px;flex:0 0 100px}
  .game-seed-extra #expandButton{font-size:10px;min-height:54px;padding:5px 3px}
}

/* v1.5.30 — actual ready-to-collect and ready-to-deliver work indicators. */
.farm-play-container .game-dock .farm-ready-badge{position:absolute;right:2px;top:2px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:99px;border:1px solid #fff7dd;background:#28794b;color:#fff;font:850 10px/1 system-ui,sans-serif;box-shadow:0 1px 3px #194d3066;pointer-events:none;z-index:1}
.farm-play-container .game-dock .farm-ready-badge[hidden]{display:none!important}
.farm-production-summary{margin:0;padding:9px 11px;border:1px solid #d4dda7;border-radius:10px;background:#e8f2d6;color:#3b6140;font-size:12px;font-weight:800;line-height:1.4}
.farm-contract-summary{grid-column:1/-1}
.farm-contract.is-ready{border-color:#6ca85a;background:#eaf4db;color:#2b5238}
.farm-contract.is-ready .contract-head b{color:#2d633a}
@media(max-width:680px){.farm-production-summary{font-size:11px;padding:8px}.farm-play-container .game-dock .farm-ready-badge{right:1px;top:1px;min-width:16px;height:16px;font-size:9px}}

.farm-contract.is-ready .contract-head small{color:#5c6e43}
.farm-contract.is-ready .contract-items span{background:#fffdf0;color:#305b3a}
.farm-contract.is-ready .contract-items .missing-items{color:#8e553c}

/* v1.5.31 — Compact, owner-only stamina shop. Mobile layout unaffected. */
#farmerEnergyShopButton{display:inline-grid;place-items:center;flex:none;border:1px solid #d8c67e;background:#fff2c5;border-radius:8px;color:#6b5a2a;font:900 10px/1 system-ui,sans-serif;min-height:23px;min-width:24px;padding:3px;cursor:pointer}
#farmerEnergyShopButton[hidden]{display:none!important}
#farmerEnergyShopButton:focus-visible{outline:2px solid #176e4d;outline-offset:2px}
.farm-energy-backdrop{position:fixed;z-index:2500;inset:0;display:grid;place-items:center;padding:16px;background:#183c2b96;overscroll-behavior:contain}
.farm-energy-backdrop[hidden]{display:none!important}
.farm-energy-dialog{box-sizing:border-box;width:min(440px,100%);max-height:min(90dvh,680px);overflow:auto;background:#fffbea;border:1px solid #e4d7a9;border-radius:20px;box-shadow:0 20px 60px #173f3259;padding:18px;color:#31543b}
.farm-energy-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.farm-energy-dialog-header small{font:850 10px/1.5 system-ui;letter-spacing:1px;color:#6b7b52}
.farm-energy-dialog-header h2{font:900 21px/1.2 system-ui;margin:4px 0}
#farmEnergyShopClose{border:1px solid #dfd5ad;background:white;color:#305741;border-radius:10px;padding:7px 10px;cursor:pointer}
.farm-energy-summary{background:#eaf1d7;border:1px solid #ccdbab;border-radius:10px;padding:12px;font:800 14px/1.5 system-ui;margin:14px 0}
.farm-energy-offers{display:grid;gap:10px}
.farm-energy-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:white;border:1px solid #e8debd;border-radius:12px}
.farm-energy-offer-info{display:grid;gap:5px;min-width:0}
.farm-energy-offer-info strong{font:850 13px/1.4 system-ui}
.farm-energy-offer-info small{font:600 11px/1.3 system-ui;color:#76806a}
.farm-energy-buy{white-space:nowrap;background:#1a764e;color:white;border:0;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:800}
.farm-energy-buy:disabled{opacity:.46;cursor:not-allowed}
.farm-energy-note{font:600 11px/1.5 system-ui;color:#697866;margin:12px 0 0}
@media(max-width:680px){#farmerEnergyShopButton{min-width:20px;min-height:20px;padding:2px;font-size:9px}.farm-energy-dialog{padding:14px;border-radius:15px}.farm-energy-offer{padding:10px}}

/* v1.5.35: Harvest-ready shortcut reuses existing HUD chip; no new row. */
.game-scene-info #plotCount.farm-harvest-shortcut{
 display:inline-flex;align-items:center;flex:0 1 auto;min-width:0;max-width:100%;
 padding:2px 7px;border:1px solid #dce9c9;border-radius:999px;
 background:#eaf3d9;color:#416539;white-space:nowrap;
 font:800 10px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;
 overflow:hidden;text-overflow:ellipsis;cursor:default;pointer-events:auto;
}
.game-scene-info #plotCount.farm-harvest-shortcut:disabled{opacity:1}
.game-scene-info #plotCount.farm-harvest-shortcut.has-ready:not(:disabled){
 background:#dcf2d2;border-color:#94ca83;color:#286737;cursor:pointer;
 box-shadow:0 0 0 1px #b3deb1 inset;
}
.game-scene-info #plotCount.farm-harvest-shortcut.has-ready:not(:disabled):hover{background:#c9e8bd}
.game-scene-info #plotCount.farm-harvest-shortcut:focus-visible{outline:2px solid #2d8753;outline-offset:2px}
@media(max-width:680px){.game-scene-info #plotCount.farm-harvest-shortcut{padding:2px 4px;font-size:9px}}
@media(max-width:360px){.game-scene-info #plotCount.farm-harvest-shortcut{font-size:8px}}
