@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap";:root{color:#2f4234;font-synthesis:none;--cream:#fffaf0;--green:#244c37;--ink:#2f4234;--line:#e6e4d5;--gold:#edca71;--muted:#798270;--shadow:0 10px 38px #243f3220;font-family:DM Sans,Arial,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0;overflow:hidden}button{font:inherit;cursor:pointer;color:inherit;background:0 0;border:0;border-radius:9px;justify-content:center;align-items:center;gap:9px;min-height:40px;transition:background .16s,transform .16s;display:inline-flex}button:hover{background:#eef0dc}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible{outline-offset:3px;outline:3px solid #b7802b}button svg{flex-shrink:0;width:21px;height:21px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:500}h2{font-size:29px;line-height:1.2}h3{font-size:21px}p{color:#73806c;font-size:14px;line-height:1.6}small{font-size:12px}#app,#world{position:fixed;inset:0}#world canvas{touch-action:none;width:100%;height:100%;display:block}.topbar{pointer-events:none;justify-content:space-between;align-items:center;gap:16px;display:flex;position:absolute;top:22px;left:24px;right:24px}.top-left,.top-right{pointer-events:auto;align-items:center;gap:24px;display:flex}.top-right{gap:14px}.shop-button,.sell-button{height:54px;box-shadow:var(--shadow);letter-spacing:1px;background:var(--cream);padding:0 25px;font-size:14px;font-weight:700}.shop-button{background:var(--green);color:#fff8df}.shop-button:hover{background:#346548}.sell-button{background:#eed08b}.sell-button:hover{background:#f2d99d}.farm-brand{text-shadow:0 2px 15px #fff5;align-items:center;gap:12px;font:500 23px Fraunces,Georgia,serif;display:flex}.farm-brand small{letter-spacing:2px;margin-top:5px;font:600 9px DM Sans,sans-serif;display:block}.brand-icon{background:#f6f0d9;border-radius:50%;padding:10px;display:flex}.brand-icon svg{width:24px;height:24px}.money{text-align:right;border-right:1px solid #637b5466;min-width:116px;padding:8px 16px 8px 0}.money span{letter-spacing:1.8px;margin-bottom:3px;font-size:10px;font-weight:700;display:block}.money strong{font-variant-numeric:tabular-nums;font-size:27px;font-weight:650}.icon-button{background:#fffaf0d9;width:40px;min-width:40px;padding:0}.world-heading{pointer-events:none;flex-direction:column;align-items:center;gap:7px;display:flex;position:absolute;top:99px;left:50%;transform:translate(-50%)}.weather{align-items:center;gap:8px;font-size:13px;font-weight:500;display:flex}.weather svg{color:#8e733c;width:17px;height:17px}#farm-stats{letter-spacing:.3px;color:#557044;font-size:11px}.panel{box-shadow:var(--shadow);background:#fffaf0f4;border:1px solid #ffffff80;border-radius:14px}.guide{width:285px;padding:23px;position:absolute;top:123px;left:24px}.eyebrow{letter-spacing:1.6px;color:#859173;justify-content:space-between;align-items:center;gap:6px;font-size:10px;font-weight:700;display:flex}.guide .eyebrow{margin-bottom:10px}.plain{min-height:20px;padding:0;font-size:20px;line-height:1}.guide h1{letter-spacing:-.7px;margin-bottom:12px;font-size:34px;line-height:1.12}.guide p{font-size:12px;line-height:1.75}.guide-progress{background:#e4e5d5;border-radius:5px;height:3px;margin:20px 0}.guide-progress i{background:#829665;height:100%;transition:width .3s;display:block}.step{color:#60715b;align-items:center;gap:10px;margin:13px 0;font-size:12px;line-height:1.4;display:flex}.step>span{color:#8b957e;border:1px solid #d7dcca;border-radius:50%;justify-content:center;align-items:center;width:21px;min-width:21px;height:21px;font-size:9px;font-weight:600;display:flex}.step.complete{color:#98a18c;text-decoration:line-through}.step.complete>span{color:#55764a;background:#e5ebd6;border:0}.step svg{width:13px;height:13px}.guide-tip{border-top:1px solid var(--line);color:#7c896c;gap:9px;margin-top:19px;padding-top:16px;font-size:11px;line-height:1.65;display:flex}.guide-tip svg{width:18px;min-width:18px;height:18px;margin-top:3px}.guide.collapsed{width:auto;padding:6px 12px}.guide.collapsed button{font-size:12px}.inspector{width:290px;max-height:calc(100vh - 240px);padding:24px;position:absolute;top:120px;right:24px;overflow:auto}.panel-close{width:28px;min-height:28px;position:absolute;top:9px;right:9px}.panel-close svg{width:16px;height:16px}.inspector h2{margin:8px 0 18px;font-size:24px}.inspector .eyebrow{padding-right:10px;font-size:9px}.welfare-summary{color:var(--muted);align-items:center;gap:8px;margin:-2px 0 21px;font-size:11px;display:flex}.welfare-summary>svg{color:#668158;width:16px;height:16px}.badge{white-space:nowrap;border-radius:5px;padding:4px 8px;font-size:10px;font-weight:600;line-height:1.3;display:inline-block}.excellent{color:#497341;background:#e0edd4}.good{color:#778044;background:#ecedce}.average{color:#9c8143;background:#f0e7c8}.poor{color:#a75e43;background:#f1dacd}.meter{margin:12px 0}.meter>span{color:#7a866f;justify-content:space-between;margin-bottom:7px;font-size:11px;display:flex}.meter b{color:#4c6247;font-weight:600}.meter>div{background:#e9ebdf;border-radius:5px;height:5px;overflow:hidden}.meter i{border-radius:5px;height:100%;transition:width .3s;display:block}.detail-line{justify-content:space-between;gap:8px;padding:7px 0;font-size:11px;display:flex}.detail-line>span{color:#7f8a76}.detail-line b{text-align:right;font-weight:500}.inspector-actions{flex-wrap:wrap;gap:5px;margin-top:15px;display:flex}.secondary{color:#4d6348;background:#efeee2;padding:8px 14px;font-size:12px}.primary{background:var(--green);color:#fff9e8;padding:11px 20px;font-size:13px;font-weight:600}.primary:hover{background:#356447}.full{width:100%;margin-top:10px}.compact{min-height:34px;padding:7px 13px}.text-danger{color:#a2745a;padding:6px 10px;font-size:11px}.text-danger:hover{background:#f2e2d5}.hint{color:#8a947d;margin-top:10px;font-size:11px;line-height:1.6;display:block}.pen-summary{justify-content:space-between;margin-bottom:15px;display:flex}.pen-summary>div{flex-direction:column;display:flex}.pen-summary b{font:500 28px Fraunces,Georgia,serif}.pen-summary span{color:#89927e;margin-top:3px;font-size:10px}.facility-list{margin:17px 0 7px}.facility-list>div{align-items:center;gap:7px;padding:6px 0;font-size:11px;display:flex}.facility-list svg{color:#8a9b73;width:14px;height:14px}.facility-list b{color:#849074;margin-left:auto;font-size:10px;font-weight:400}.produce-progress{background:#e8ebda;border-radius:5px;height:25px;margin-top:15px;position:relative;overflow:hidden}.produce-progress span{z-index:1;padding-left:9px;font-size:10px;line-height:25px;position:relative}.produce-progress i{background:#ccd8b5;height:100%;position:absolute;top:0;left:0}.warnings{flex-direction:column;align-items:flex-start;gap:6px;max-width:350px;display:flex;position:absolute;bottom:114px;left:24px}.warning{text-align:left;background:#fff4dbf2;justify-content:flex-start;min-height:34px;padding:8px 12px;font-size:11px;box-shadow:0 3px 15px #31432b10}.warning-dot{color:#af7a40;border:1px solid #c4965d;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;font-size:10px;display:inline-flex}.bottom-bar{pointer-events:none;justify-content:space-between;align-items:flex-end;gap:20px;display:flex;position:absolute;bottom:24px;left:24px;right:24px}.bottom-bar>*{pointer-events:auto}.time-control{box-shadow:var(--shadow);background:#fffaf0f5;border-radius:12px;min-width:155px;padding:13px 14px 8px}#day{align-items:center;gap:10px;font-size:13px;font-weight:600;display:flex}#day small{color:#7b8a70;margin-top:2px;font-size:10px;font-weight:400;display:block}.day-icon{color:#a58740;background:#f5edcf;border-radius:50%;padding:7px;display:flex}.day-icon svg{width:18px;height:18px}.speed-buttons{border-top:1px solid var(--line);gap:5px;margin-top:7px;padding-top:6px;display:flex}.speed-buttons button{min-height:24px;padding:1px 8px;font-size:11px}.speed-buttons .icon-button{background:0 0;width:31px;min-width:31px;height:24px}.speed-buttons svg{width:14px;height:14px}.speed.active{background:#e8edda}.tools{box-shadow:var(--shadow);background:#fffaf0fa;border-radius:13px;align-items:center;gap:4px;padding:7px;display:flex}.animals-button{letter-spacing:.7px;background:#ead3a4;height:53px;margin-right:8px;padding:0 18px;font-size:11px;font-weight:700}.animals-button:hover{background:#e5c488}.tools .tool{color:#65755a;flex-direction:column;gap:5px;min-width:57px;height:53px;padding:4px 8px;font-size:10px;position:relative}.tools .tool svg{width:20px;height:20px}.tools .tool.active{color:var(--green);background:#e5ebd6}.count{color:#fff;background:#244c37;border-radius:50%;min-width:15px;height:15px;font-size:9px;line-height:15px;position:absolute;top:2px;right:3px}.save-indicator{text-align:right;color:#f8f4e0;text-shadow:0 1px 5px #31422e;min-width:155px;font-size:10px}.camera-controls{gap:6px;display:flex;position:absolute;bottom:113px;right:24px}.camera-controls .icon-button{width:35px;min-width:35px;min-height:35px;font-size:23px;box-shadow:0 2px 12px #263c2120}.camera-controls svg{width:17px;height:17px}.placement{box-shadow:var(--shadow);background:#fffaf0f8;border-radius:12px;align-items:center;gap:18px;min-width:440px;max-width:calc(100% - 48px);padding:13px 15px;display:flex;position:absolute;bottom:110px;left:50%;transform:translate(-50%)}.placement[hidden]{display:none}.placement>div{flex:1}.placement strong{margin-bottom:5px;font-size:13px;display:block}.placement span{color:#78866c;font-size:11px;display:block}.placement .invalid{color:#b1684a}.mini{min-height:30px;font-size:11px}.mini svg{width:16px;height:16px}#toast{color:#fff5dc;width:max-content;max-width:600px;box-shadow:var(--shadow);z-index:8;pointer-events:none;background:#244c37;border-radius:9px;padding:12px 22px;font-size:13px;position:absolute;top:86px;left:50%;transform:translate(-50%)}#toast.error{background:#896449}dialog{width:min(840px,100vw - 40px);max-height:calc(100vh - 70px);color:var(--ink);background:var(--cream);border:1px solid #ffffffe0;border-radius:18px;padding:0;position:fixed;overflow:auto;box-shadow:0 25px 90px #112d3955}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1a382d4d}.dialog-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding:30px 32px 23px;display:flex}.dialog-header h2{margin-top:8px;font-size:33px}.dialog-header p{margin-top:9px;font-size:13px}.dialog-header .eyebrow{font-size:10px}.dialog-header .icon-button{background:#eeeee0}.shop-dialog{width:740px}.shop-layout{grid-template-columns:190px 1fr;min-height:310px;display:grid}.shop-tabs{border-right:1px solid var(--line);background:#f0f1e4;flex-direction:column;gap:3px;padding:16px 12px;display:flex}.shop-tabs button{justify-content:flex-start;padding:7px 13px;font-size:12px}.shop-tabs button.active{background:var(--cream);color:#315f3f;font-weight:600}.shop-items{padding:20px}.shop-card{text-align:left;background:#fffdf6;border:1px solid #e7e7d9;border-radius:11px;justify-content:flex-start;gap:13px;width:100%;min-height:85px;margin-bottom:10px;padding:16px 13px}.shop-art{color:#789363;background:#edf0da;border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:47px;height:47px;display:flex}.shop-art.water{color:#679caa;background:#deedef}.shop-art.animals{color:#aa8d5f;background:#f2e6d0}.shop-art.egg{color:#b2965f;background:#f6edd5}.shop-art svg{width:26px;height:26px}.shop-card-copy{flex-direction:column;flex:1;gap:6px;display:flex}.shop-card-copy strong{font-size:13px;font-weight:600}.shop-card-copy small{color:#8a927b;font-size:10px;line-height:1.5}.shop-card>b{font-size:14px;font-weight:600}.shop-card>svg{color:#879777;width:15px}.shop-note{margin:15px 7px 0;font-size:11px;line-height:1.6}.crop-intro{color:#647058;margin:22px 28px;line-height:1.65}.crop-kit{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 28px 24px;display:grid}.crop-card{border:1px solid var(--line);background:#fffdf6;border-radius:14px;flex-direction:column;min-width:0;padding:20px 16px;display:flex}.crop-card h3{margin:12px 0 8px;font-family:Georgia,serif;font-size:24px}.crop-card p{flex:1;font-size:12px;line-height:1.65}.crop-card .full{padding-inline:9px;font-size:11px}.crop-card small{color:#69745d;margin-top:10px;font-size:11px;line-height:1.5}.crop-icon{color:#577447;background:#e8eddc;border-radius:12px;place-items:center;width:46px;height:46px;margin-bottom:18px;display:grid}.crop-icon svg{width:28px;height:28px}.crop-icon.carrot,.shop-art.carrot{color:#b96c35;background:#f8e4ce}.crop-icon.wheat,.shop-art.wheat{color:#a08439;background:#f4ecca}.crop-harvest{background:#edf0df;justify-content:space-between;align-items:center;gap:22px;padding:24px 28px;display:flex}.crop-harvest p{margin:9px 0;font-size:13px;line-height:1.5}.crop-harvest small{font-size:11px;line-height:1.5}.crop-harvest>button{flex-shrink:0}@media (width<=700px){.crop-kit{grid-template-columns:1fr;padding:0 18px 18px}.crop-card{padding:18px}.crop-card h3{margin-top:8px}.crop-card .full{font-size:13px}.crop-icon{margin-bottom:12px}.crop-intro{margin:18px;font-size:13px}.crop-harvest{flex-direction:column;align-items:stretch;padding:20px 18px}}.empty-state{text-align:center;padding:50px 40px}.empty-state>svg{color:#8d9c72;width:52px;height:52px;margin-bottom:22px}.empty-state h3{font-size:25px}.empty-state p{max-width:435px;margin:14px auto 23px;font-size:13px}.market-table{padding:15px 27px;overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%}th{text-transform:uppercase;letter-spacing:1px;color:#8a967c;padding:15px 7px;font-size:10px;font-weight:500}td{border-bottom:1px solid var(--line);padding:18px 7px;font-size:13px}.market-total{background:#f0f1e4;justify-content:space-between;align-items:center;padding:25px 33px;display:flex}.market-total span{letter-spacing:1px;color:#8b977b;font-size:10px;display:block}.market-total strong{margin-top:5px;font-size:32px;font-weight:500;display:block}.animal-tabs{gap:7px;padding:20px 30px 15px;display:flex}.animal-tabs button{padding:8px 15px;font-size:12px}.animal-tabs span{background:#e9ebdd;border-radius:4px;padding:2px 6px;font-size:10px}.animal-tabs .active{background:var(--green);color:#fff8e5}.animal-tabs .active span{background:#4b6b4b}.animal-list{padding:0 30px 28px}.animal-row{text-align:left;background:#fffdf5;border:1px solid #e6e8da;border-radius:10px;gap:16px;width:100%;margin:10px 0;padding:20px 16px;display:flex}.animal-avatar{color:#b39a69;background:#f0e5ce;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.animal-avatar.pig{color:#ba8d80;background:#f2ddd4}.animal-avatar.sheep{color:#96977b;background:#eae9d9}.animal-avatar.cow{color:#7c927d;background:#dfe9de}.animal-row>div:nth-child(2){flex:1}.animal-row strong{font-size:14px;display:block}.animal-row small{color:#859178;margin-top:6px;font-size:10px;display:block}.animal-meters{width:125px}.animal-meters .meter{margin:5px 0}.animal-meters .meter span{margin-bottom:4px;font-size:9px}.animal-meters .meter>div{height:3px}.animal-row>div:last-child{align-items:center;gap:12px;display:flex}.animal-row>div:last-child svg{color:#8a977b;width:18px}.help-layout{grid-template-columns:1.2fr 1fr;gap:36px;padding:25px 32px 32px;display:grid}.help-layout h3{margin:0 0 10px;font-size:21px}.help-layout p{margin-bottom:18px;font-size:12px}.keys{color:#7a8970;grid-template-columns:1fr 1fr;gap:10px;font-size:11px;display:grid}.keys b{color:#46613f;font-weight:500}.save-buttons{margin-bottom:27px}.confirm-dialog{width:490px}.confirm-copy{padding:23px 30px;font-size:14px}.confirm-actions{justify-content:flex-end;gap:10px;padding:0 30px 28px;display:flex}.compat{max-width:520px;margin:20vh auto;padding:40px}.compat p{margin-top:20px}@media (width>=1700px){:root{font-size:16px}.guide{width:310px;padding:28px}.guide h1{font-size:40px}.guide p,.step{font-size:13px}.guide-tip{font-size:12px}.inspector{width:320px}.step{margin:17px 0}.tools .tool{min-width:70px}.animals-button{padding:0 25px}}@media (width<=1150px){.guide{width:240px;padding:19px}.guide h1{font-size:30px}.guide p{font-size:11px}.step{margin:10px 0;font-size:11px}.guide-tip{font-size:10px}.world-heading{top:100px;left:55%}.inspector{width:254px;padding:21px}.save-indicator{display:none}.bottom-bar{gap:10px}.tools{margin-left:auto}.top-left{gap:16px}.farm-brand{font-size:21px}.warnings{max-width:285px}.placement{min-width:360px;bottom:122px}.time-control{min-width:140px}}@media (width<=800px){.topbar{gap:8px;top:12px;left:12px;right:12px}.top-left,.top-right{gap:8px}.shop-button,.sell-button{height:45px;padding:0 14px;font-size:12px}.farm-brand{display:none}.money{min-width:96px;padding-right:10px}.money strong{font-size:23px}.money span{font-size:9px}.world-heading{gap:4px;width:100%;top:77px;left:50%}.weather{font-size:11px}#farm-stats{font-size:10px}.guide{width:208px;padding:16px;top:122px;left:12px}.guide h1{font-size:27px}.guide p{font-size:10px}.eyebrow{font-size:9px}.guide-progress{margin:15px 0}.step{margin:10px 0;font-size:10px}.guide-tip{margin-top:13px;padding-top:11px;font-size:10px}.inspector{z-index:3;width:245px;max-height:calc(100vh - 220px);top:122px;right:12px}.bottom-bar{align-items:flex-end;gap:8px;bottom:12px;left:12px;right:12px}.tools{flex:1;justify-content:space-between;gap:0;padding:5px}.tools .tool{gap:6px;min-width:40px;padding:4px 5px;font-size:9px}.tools .tool svg{width:18px;height:18px}.animals-button{min-width:44px;margin-right:2px;padding:0 12px;font-size:0}.animals-button svg{width:24px;height:24px}.time-control{min-width:92px;padding:9px 8px 5px}#day{gap:6px;font-size:11px}#day small{display:none}.day-icon{padding:5px}.day-icon svg{width:14px;height:14px}.speed-buttons{gap:1px}.speed-buttons button{padding:1px 5px;font-size:10px}.speed-buttons .icon-button{width:21px;min-width:21px}.camera-controls{bottom:96px;right:12px}.warnings{max-width:245px;bottom:99px;left:12px}.warning{min-height:28px;padding:6px 8px;font-size:10px}.placement{z-index:4;gap:9px;width:calc(100% - 24px);min-width:0;max-width:520px;padding:12px;bottom:156px}.placement strong{font-size:12px}.placement span{font-size:10px}.placement .compact{font-size:11px}.placement .mini{gap:0;font-size:0}.dialog-header{padding:23px}.dialog-header h2{font-size:27px}.shop-layout{grid-template-columns:150px 1fr}.shop-tabs{padding:12px 8px}.shop-tabs button{padding:5px 9px;font-size:11px}.shop-items{padding:13px}.shop-card{gap:9px;padding:12px 8px}.shop-art{width:34px;height:40px}.shop-art svg{width:22px}.shop-card-copy strong{font-size:12px}.shop-card-copy small{font-size:9px}.shop-card>svg{display:none}.shop-card>b{font-size:12px}.shop-note{font-size:10px}.animal-row{flex-wrap:wrap;gap:10px;padding:14px}.animal-row .animal-meters{order:4;gap:10px;width:100%;display:flex}.animal-meters .meter{flex:1}.animal-tabs{gap:2px;padding:16px}.animal-tabs button{padding:8px 9px;font-size:11px}.animal-list{padding:0 16px 20px}.help-layout{grid-template-columns:1fr;gap:16px;padding:23px}.market-table{padding:10px 16px}td{padding:14px 6px;font-size:11px}th{font-size:9px}.market-total{padding:20px}#toast{text-align:center;max-width:calc(100vw - 24px);font-size:12px;top:70px}}@media (width<=520px){.guide{width:195px}.guide:not(.collapsed){max-height:calc(100vh - 240px);overflow:auto}.guide h1{font-size:25px}.inspector{width:auto;max-height:55vh;padding:21px;inset:auto 12px 94px}.world-heading .weather{display:none}.world-heading{top:81px}.shop-layout{grid-template-columns:1fr}.shop-tabs{border-right:0;border-bottom:1px solid var(--line);flex-flow:wrap;gap:3px;padding:10px;display:flex}.shop-tabs button{min-height:30px;padding:4px 8px;font-size:10px}.shop-items{padding:14px}.shop-card{padding:12px}.shop-card-copy strong{font-size:13px}.shop-card-copy small{font-size:10px}.dialog-header{padding:22px 19px}.dialog-header h2{font-size:26px}.dialog-header p{font-size:12px}.animal-tabs button{padding:7px 8px;font-size:10px}.empty-state{padding:35px 24px}.empty-state h3{font-size:23px}.empty-state p{font-size:12px}.market-total strong{font-size:27px}.warning:nth-child(n+2){display:none}.camera-controls{bottom:94px}.tools .tool{min-width:34px;padding:4px;font-size:8px}.tools .tool svg{width:17px;height:17px}.animals-button{min-width:36px;padding:0 8px}.time-control{min-width:85px}.top-right>.icon-button{width:32px;min-width:32px}.placement{bottom:139px}.confirm-actions{gap:5px;padding:0 20px 24px}.confirm-copy{padding:22px}.inspector .meter{margin:9px 0}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.money{background:#fffaf0eb;border:0;border-radius:10px;min-width:120px;padding:8px 15px;box-shadow:0 4px 18px #263c2114}.world-heading{background:#fffaf0c7;border-radius:30px;padding:9px 18px;top:94px}.world-heading #farm-stats{color:#5b6f4f}@media (width<=800px){.money{min-width:99px;padding:6px 10px}.world-heading{white-space:nowrap;width:auto;padding:6px 13px;top:74px}.world-heading .weather{display:none}}@media (width<=420px){.bottom-bar{flex-direction:column;align-items:stretch}.time-control{justify-content:space-between;align-items:center;width:168px;height:40px;padding:7px 8px;display:flex}.time-control .speed-buttons{border:0;margin:0;padding:0}.tools{flex:none;width:100%;min-width:0}.tools .tool{flex:1}.camera-controls{bottom:85px}.warnings,.inspector{bottom:139px}.guide:not(.collapsed){max-height:calc(100vh - 260px)}}@media (width<=380px){.shop-button svg,.sell-button svg{display:none}.shop-button,.sell-button{padding-inline:12px}}#app,#world{height:100dvh}.guide:not(.collapsed){flex-direction:column;max-height:calc(100dvh - 250px);padding:0;display:flex;overflow:hidden}.guide .guide-header{flex:none;margin:0;padding:5px 14px 5px 20px}.guide-header .plain{width:44px;min-width:44px;min-height:44px}.guide-body{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;min-height:0;padding:0 20px 20px;overflow-y:auto}.guide.collapsed button{min-height:44px}.construction-mode .placement{flex-direction:column;align-items:stretch;gap:12px}.build-actions{grid-template-columns:1fr 1.7fr .8fr;gap:6px;display:grid}.build-actions>button{min-width:0;min-height:44px;padding:8px 7px;font-size:12px;line-height:1.25}.build-actions svg{width:17px;height:17px}@media (width<=800px),(pointer:coarse){.topbar{top:calc(12px + env(safe-area-inset-top,0px));left:max(12px, env(safe-area-inset-left,0px));right:max(12px, env(safe-area-inset-right,0px))}.bottom-bar{bottom:calc(12px + env(safe-area-inset-bottom,0px))}.world-heading{top:calc(74px + env(safe-area-inset-top,0px))}.guide{top:calc(122px + env(safe-area-inset-top,0px));left:max(12px, env(safe-area-inset-left,0px));z-index:5}.guide:not(.collapsed){width:min(320px,100vw - 24px);max-height:calc(100vh - 230px);max-height:calc(100dvh - 230px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.guide-body .step{margin:14px 0;font-size:12px}.guide-body .guide-tip{font-size:12px}.construction-mode .bottom-bar,.construction-mode .world-heading,.construction-mode .warnings{display:none}.construction-mode .guide{top:calc(82px + env(safe-area-inset-top,0px))}.construction-mode .guide:not(.collapsed){max-height:calc(100dvh - 250px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.construction-mode .camera-controls{top:calc(84px + env(safe-area-inset-top,0px));bottom:auto;right:max(12px, env(safe-area-inset-right,0px))}.construction-mode .camera-controls .icon-button{width:44px;min-height:44px}.construction-mode .placement{bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:520px}}@media (width<=420px){.guide:not(.collapsed){max-height:calc(100vh - 260px);max-height:calc(100dvh - 260px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.construction-mode .guide:not(.collapsed){max-height:calc(100dvh - 250px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}button.farm-brand{text-align:left;min-height:0;color:inherit;border-radius:40px;padding:4px 12px 4px 4px}button.farm-brand:hover{background:#fffaf099}#farm-name{text-overflow:ellipsis;white-space:nowrap;max-width:300px;display:block;overflow:hidden}.office-dialog{width:min(920px,100vw - 40px)}.office-tabs{border-bottom:1px solid var(--line);z-index:1;background:#f0f1e4;gap:4px;padding:12px 28px;display:flex;position:sticky;top:0}.office-tabs button{min-height:36px;padding:6px 14px;font-size:12px}.office-tabs button svg{width:17px;height:17px}.office-tabs button.active{background:var(--cream);color:#315f3f;font-weight:600}.office-section{padding:22px 28px 28px}.office-note{margin:0 0 18px;font-size:13px;line-height:1.65}.office-note strong{color:var(--ink)}.office-subhead{margin:24px 0 12px;font-size:19px}.name-card{border:1px solid var(--line);background:#fffdf6;border-radius:14px;margin-bottom:18px;padding:16px 18px}.name-card.plain{margin:0 32px 20px}.name-card small{color:#7d8770;margin-top:9px;display:block}.name-row{align-items:center;gap:8px;margin-top:8px;display:flex}.name-card input,.name-row input{width:100%;min-width:0;color:var(--ink);background:#fff;border:1px solid #d9d8c4;border-radius:10px;flex:1;margin-top:8px;padding:8px 12px;font:500 21px Fraunces,Georgia,serif}.name-row input{margin-top:0}.name-card input:focus-visible,.name-row input:focus-visible{outline-offset:1px;outline:3px solid #b7802b}.office-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px;display:grid}.office-stat{background:#f0f1e4;border-radius:12px;padding:13px 14px}.office-stat b{font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font:500 23px Fraunces,Georgia,serif;display:block;overflow:hidden}.office-stat span{color:#7d8770;font-size:11px}.hire-grid{gap:12px;display:grid}.hire-card{border:1px solid var(--line);background:#fffdf6;border-radius:14px;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:16px;display:grid}.hire-card h3{font-size:21px}.hire-card p{margin:4px 0;font-size:12px;line-height:1.55}.hire-card small{color:#7d8770;font-size:11px;line-height:1.5;display:block}.hire-icon,.staff-avatar{color:#3f6b4a;background:#e2ead6;border-radius:12px;place-items:center;width:46px;height:46px;display:grid}.hire-card.fieldhand .hire-icon,.staff-avatar.fieldhand{color:#4f78a3;background:#e3ebf3}.hire-icon svg,.staff-avatar svg{width:26px;height:26px}.hire-price{text-align:right;flex-direction:column;align-items:flex-end;gap:4px;display:flex}.hire-price b{font-size:18px}.hire-price span{color:#7d8770;font-size:11px}.staff-list{gap:8px;display:grid}.staff-row{border:1px solid var(--line);background:#fffdf6;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;display:grid}.staff-row.unpaid{background:#fbf1ea;border-color:#d9a48f}.staff-row strong{font-size:14px;display:block}.staff-row small{color:#7d8770;text-overflow:ellipsis;white-space:nowrap;font-size:11px;display:block;overflow:hidden}.staff-actions{gap:4px;display:flex}.segmented{background:#ecede0;border-radius:10px;gap:2px;padding:3px;display:inline-flex}.segmented button{border-radius:8px;min-height:30px;padding:3px 10px;font-size:11px}.segmented button svg{width:15px;height:15px}.segmented button.active{background:var(--cream);color:#315f3f;font-weight:650;box-shadow:0 1px 4px #2a3f2a1a}.inspector .segmented{margin:12px 0 4px;display:flex}.inspector .segmented button{flex:1}.invalid-note{color:#a1543c;margin:10px 0;font-size:12px}.empire-strip{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.empire-strip>div{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.region{margin-top:22px}.region-head{flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:10px;display:flex}.region-head h3{font-size:20px}.region-head small{color:#7d8770}.region-head strong{color:#6b5320}.region-chip{background:var(--region);border-radius:4px;align-self:center;width:12px;height:12px}.deeds{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.deed{border:1px solid var(--line);background:#fffdf6;border-radius:13px;flex-direction:column;display:flex;overflow:hidden}.deed header{background:var(--region);color:#fff;padding:10px 13px 11px}.deed:not(.owned) header{background:color-mix(in srgb, var(--region) 55%, #f4f1e4)}.deed header small{letter-spacing:1.2px;opacity:.9;font-size:9px;font-weight:700}.deed h4{text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font:500 18px Fraunces,Georgia,serif;overflow:hidden}.stars{color:#ffe8a3;letter-spacing:1px;font-size:13px}.stars.big{color:#c99a2e;font-size:22px}.deed-body{flex-direction:column;flex:1;gap:2px;padding:10px 13px 13px;display:flex}.deed-body>button{margin-top:auto}.deed .detail-line{padding:5px 0;font-size:12px}.till{grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin:6px 0 10px;font-size:12px;display:grid}.till:before{content:"";background:#ecebdc;border-radius:7px;grid-area:1/2;height:7px}.till i{background:#c99a2e;border-radius:7px;grid-area:1/2;justify-self:start;height:7px}.till span{color:#7d8770}.till.big{font-size:14px}.till.big b{font-size:18px}.estate-detail>.secondary{margin-bottom:14px}.estate-head{border-left:6px solid var(--region);justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;padding-left:14px;display:flex}.estate-head>div{flex:1;min-width:0}.estate-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.estate-panel{border:1px solid var(--line);background:#fffdf6;border-radius:14px;padding:16px}.estate-panel p{margin:8px 0;font-size:12px}.estate-panel h4{margin:18px 0 2px;font:500 18px Fraunces,Georgia,serif}.detail-line.total b{color:#315f3f;font-size:16px}.care-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.care-option{text-align:left;border:1px solid var(--line);background:#fffdf6;border-radius:12px;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;display:flex}.care-option span{font-size:13px;font-weight:600}.care-option small{color:#7d8770;font-size:11px}.care-option.active{background:#eef3df;border-color:#6f8f45;box-shadow:inset 0 0 0 1px #6f8f45}.estate-sell{border-top:1px solid var(--line);color:#7d8770;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding-top:16px;font-size:12px;display:flex}@media (width<=800px){.office-dialog{width:calc(100vw - 20px)}.office-tabs{padding:10px 14px;overflow-x:auto}.office-tabs button{flex-shrink:0}.office-section{padding:18px 16px 22px}.office-stats,.empire-strip>div{grid-template-columns:repeat(2,minmax(0,1fr))}.empire-strip{flex-direction:column;align-items:stretch}.deeds,.care-options,.estate-grid{grid-template-columns:1fr}.hire-card{grid-template-columns:auto 1fr}.hire-price{flex-direction:row;grid-column:1/-1;justify-content:space-between;align-items:center}.staff-row{grid-template-columns:auto minmax(0,1fr)}.staff-row>.segmented,.staff-actions{grid-column:1/-1}.staff-row>span:empty{display:none}.staff-actions{justify-content:flex-end}.estate-head,.estate-sell{flex-direction:column;align-items:stretch}.name-card.plain{margin:0 20px 18px}}.office-notice{color:#2f5a3d;background:#e7efdc;border-radius:11px;align-items:center;gap:10px;margin:14px 28px 0;padding:10px 14px;font-size:13px;display:flex}.office-notice.error{color:#8a3f2e;background:#f7e8df}.office-notice svg{flex-shrink:0;width:18px;height:18px}@media (width<=800px){.office-notice{margin:12px 16px 0}.world-heading{white-space:normal;text-align:center;border-radius:16px;max-width:calc(100vw - 24px)}.world-heading #farm-stats{line-height:1.45}}@media (width<=420px){.office-tabs button{padding:6px 10px}.office-tabs button svg{display:none}}
