/* Realistic photographs, purpose-first controls, compact mobile playfield. */
:root{--fx-green:#315342;--fx-cream:#fffdf5;--fx-gold:#a28650;--fx-ink:#283d31}
body.frh-active-farm .top{grid-template-columns:minmax(0,1fr) auto 64px;padding:12px 20px;gap:12px}
body.frh-active-farm .frh-more{width:64px;justify-self:end;min-width:0}
body.frh-active-farm .frh-more-body .farm-header-controls{display:grid;gap:10px;width:100%;min-width:0}
body.frh-active-farm .frh-more-body #farmAudioControls{width:100%;margin:0;max-width:100%}
body.frh-active-farm .frh-more-body .farm-audio-panel{position:static;max-width:100%;width:100%;box-sizing:border-box}
body.frh-active-farm .frh-more-body .farm-audio-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0}
body.frh-active-farm .frh-more-body .farm-audio-row>label{grid-column:1/-1}
body.frh-active-farm .frh-more-body .farm-audio-foot{flex-wrap:wrap}
body.frh-active-farm #nav{padding:8px 14px;margin-block:10px;min-height:0}
nav.frp-material-switch{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}
nav.frp-material-switch>button[data-do]{min-height:44px;padding:9px 18px;border-radius:24px;display:block;min-width:0}
nav.frp-material-switch>button[data-do]>strong{font-size:13px;margin:0;line-height:1.6}
.frp,.frp *{box-sizing:border-box}
.frp{font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;font-size:15px;line-height:1.7;max-width:1180px;margin-inline:auto}
.frp h1,.frp h2{letter-spacing:.015em}
.frp button,.frp input,.frp select{min-height:44px}
.frp button{white-space:normal;overflow-wrap:anywhere}
.frp [data-fr-object],.frp [data-fr-field],.frp [data-fr-recycle-region]{scroll-margin-block:96px}
.frp [data-fr-object]:focus{outline:3px solid #b28a42;outline-offset:5px}
.frp .frp-scene-2k,.frp.frp-workshop .frp-workshop-scene.frp-scene-2k{aspect-ratio:auto;height:150px;min-height:0;margin-bottom:0;border-radius:22px 22px 0 0}
.frp .frp-scene-2k>.frp-scene-art{object-position:center 56%}
.frp .frp-scene-caption{font-size:11px;bottom:10px}
.frp .frp-guide{border-radius:0 0 22px 22px;margin:0 0 20px;padding:24px 28px;background:linear-gradient(110deg,#edf2e4,#fffdf5);border-top:0;gap:28px}
.frp .frp-guide>div:first-child{flex:1;min-width:0}
.frp .frp-guide h2{font-size:clamp(22px,3vw,30px);line-height:1.35}
.frp .frp-guide-actions{min-width:200px;max-width:300px}
.frp .frp-next-cta{min-height:52px;box-shadow:0 4px 0 #213b2f;transition:transform .15s,box-shadow .15s}
.frp .frp-next-cta:active{transform:translateY(2px);box-shadow:0 2px 0 #213b2f}
.frp .frp-guide-actions>.frp-button:not(.frp-primary){background:transparent;border-color:transparent;font-size:12px}
.frp-journey{list-style:none;padding:0;margin:15px 0;display:flex;gap:6px;flex-wrap:wrap}
.frp-journey li{display:flex;align-items:center;gap:6px;color:#667060;font-size:12px;padding:4px 8px;border-radius:8px}
.frp-journey li span{display:inline-grid;place-items:center;border:1px solid #bccbb2;border-radius:50%;width:22px;height:22px;font-variant-numeric:tabular-nums}
.frp-journey li[aria-current]{background:#315342;color:white;font-weight:700}
.frp-journey li[aria-current] span{border-color:#a5bd99}
.frp .frp-milestone-peek{font-size:12px;color:#6e603d;margin:10px 0 0}
.frp .frp-tutorial-note{background:#f6eedb;border:1px solid #ded0aa;border-radius:12px;padding:12px 16px;margin:0 0 14px;font-size:13px}
.frp .frp-tutorial-note p{margin:5px 0;font-size:12px}
.frp .frp-tutorial-note details{margin:4px 0 0;border:0;padding:0}
.frp .frp-tutorial-note summary{font-size:12px;font-weight:500;min-height:32px}
.frp .frp-storage-summary{margin:0 0 12px;border:0;padding:0;color:#64705c}
.frp .frp-storage-summary>summary{font-size:12px;font-weight:500;min-height:44px}
.frp .frp-storage-summary .frp-capacity{font-size:12px;padding:12px;margin-bottom:8px}
.frp .frp-section-nav{gap:6px;border-bottom:1px solid #d5ddc9;padding:0 0 12px;margin-bottom:0;overflow:visible;flex-wrap:wrap}
.frp .frp-section-nav .frp-button{border-radius:24px;padding:10px 20px}
.frp .frp-section-nav .frp-button:nth-last-child(-n+2){background:transparent;border-color:transparent;font-size:13px;padding-inline:12px}
.frp .frp-section-nav .frp-button.frp-primary{background:#315342;color:white;border-color:#315342}
.frp .frp-order-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));align-items:start;gap:18px}
.frp .frp-order{border-radius:18px;padding:22px;background:#fffef8;box-shadow:0 5px 24px #314b3410}
.frp .frp-order.frp-accepted{border-color:#60864e;box-shadow:0 0 0 3px #c7d6b840}
.frp .frp-order h3{font-family:"Noto Serif TC",Georgia,serif;font-size:21px}
.frp .frp-order>small{font-size:11px;line-height:1.7}
.frp-workload{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.frp-workload span{font-size:11px;padding:4px 7px;border-radius:6px;background:#eeeede;color:#53604a}
.frp .frp-order-stage{border-left:2px solid #bacdac;padding:8px 0 8px 12px;margin:12px 0}
.frp .frp-order-stage>.frp-requirements{font-size:12px}
.frp .frp-order-history article{background:#f5f4e9;border-radius:10px;padding:14px;margin:12px 0}
.frp .frp-production{display:flex;flex-direction:column;padding:22px;border:0;background:transparent;margin-top:18px}
.frp .frp-production>.frp-section-title{order:0;margin:0 0 16px}
.frp .frp-production>.frp-production-form{order:1;margin:0 0 22px;background:#f2f3e7;border:1px solid #cdd7bd;border-radius:16px;padding:20px;display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) 170px;align-items:start;gap:12px 18px}
.frp .frp-production-form>label{width:100%;min-width:0;max-width:none;font-size:13px}
.frp .frp-production-form input,.frp .frp-production-form select{width:100%;max-width:100%;min-width:0;background:#fffef8;border:1px solid #bec9b1;border-radius:8px;padding:10px;font-size:15px}
.frp .frp-production-form>.frp-actions{grid-column:1/3;margin:0;align-self:start}
.frp .frp-production-form>.frp-disabled-reason{grid-column:1/3;font-size:12px;margin:0}
.frp .frp-production-form>.frp-selected-art{grid-column:3;grid-row:1/5;min-height:0;max-width:170px;align-self:center;gap:4px}
.frp .frp-production-form>.frp-selected-art>.farm-art-2k{max-width:150px;background:transparent}
.frp .frp-production-form>p{grid-column:1/3;margin:0;font-size:12px;color:#657260}
.frp .frp-production-form>.frp-button{grid-column:1/3;justify-self:start}
.frp .frp-production>.frp-care-note{order:1;font-size:12px}
.frp .frp-production>.frp-slot-grid{order:2;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}
.frp .frp-slot{position:relative;padding:18px;border-radius:15px;border-top:4px solid #c8d3b8}
.frp .frp-slot[data-phase=ready]{border-top-color:#5e884c;background:#f5faed}
.frp .frp-slot[data-phase=hungry]{border-top-color:#bd8c3b;background:#fff9e8}
.frp .frp-slot[data-phase=expired]{border-top-color:#a65643;background:#fff1e9}
.frp .frp-slot[data-phase=ready]>.frp-badge::before{content:"✓ ";font-weight:800}
.frp .frp-slot[data-phase=hungry]>.frp-badge::before{content:"! ";font-weight:800}
.frp .frp-slot[data-phase=expired]>.frp-badge::before{content:"! ";font-weight:800}
.frp.frp-farm .frp-produce-icon{height:120px;max-height:120px;min-height:0;gap:4px;margin-bottom:10px}
.frp.frp-farm .frp-produce-icon>.farm-art-2k{width:100%;height:120px;max-width:160px;background:transparent;object-fit:contain}
.frp.frp-farm .frp-produce-icon>.frp-product-art{height:78px;max-width:86px}
.frp .frp-source-art,.frp .frp-product-art,.frp .frp-stock-art,.frp .frp-recipe-art{background:transparent;border-radius:0}
.frp .frp-recipe-art,.frp .frp-stock-art{width:100px;height:100px;margin:8px auto}
.frp .frp-empty-slot{min-height:70px;max-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px;border:1px dashed #c0ccb0;background:#eef2e580}
.frp .frp-empty-slot>span{display:none}
.frp .frp-empty-slot>strong{font-size:13px}
.frp .frp-empty-slot>small{font-size:11px}
.frp .frp-capacity,.frp .frp-guide,.frp .frp-production-form,.frp .frp-section-title{min-width:0;max-width:100%;overflow-wrap:anywhere}
.frp .frp-table-wrap{max-width:100%;overflow:auto}
.frp-stock-info{display:grid;gap:7px;margin-top:10px;border-top:1px solid #d9ddca;padding-top:12px;font-size:13px}
.frp-stock-info .frp-button{background:transparent;border-color:#cbd4be;font-size:12px}
.frp-workshop-other{margin:24px auto;max-width:1180px;color:#315342}
.frp-workshop-other>h2{font-size:20px;margin:0 0 8px}
.frp-workshop-other>p{color:#657260;font-size:13px}
.frp-workshop-other>details{border:1px solid #d2dcc5;border-radius:14px;background:#fffdf5;padding:14px 18px;margin:12px 0}
.frp-workshop-other>details>summary{min-height:44px;padding:10px 0;font-size:15px;font-weight:700;cursor:pointer}
.frp .frp-production>.frp-actions{order:2}
.farm-art-fallback{display:grid;align-content:center;justify-items:center;gap:5px;width:100%;min-width:0;min-height:60px;background:#edf0e4;color:#506148;border:1px dashed #b9c5aa;border-radius:10px;font:inherit;cursor:pointer;padding:10px}
.farm-art-fallback small{font-size:10px;color:#687a5e}
.frp-login-preview{display:flex;align-items:center;gap:20px;background:#f1f4e8;border-radius:16px;padding:18px;margin-bottom:20px;color:#315342}
.frp-login-preview img{width:110px;height:110px;object-fit:contain}
.frp-login-preview h2{font-size:22px;margin:0 0 8px}
.frp-login-preview p{font-size:13px;line-height:1.8;margin:0}
@media(max-width:700px){
 body.frh-active-farm .top{grid-template-columns:minmax(0,1fr) minmax(76px,100px) 44px;gap:8px;padding:10px 14px}
 body.frh-active-farm .frh-more{width:44px}
 body.frh-active-farm .frh-more-body{max-width:calc(100vw - 36px);right:0}
 body.frh-active-farm #nav{padding:8px;margin:8px 10px}
 body.frh-active-farm #nav a{padding:8px 10px;font-size:12px;min-height:44px}
 nav.frp-material-switch{margin:0 0 12px}
 nav.frp-material-switch>button[data-do]{min-height:44px;padding:8px 14px}
 .frp{font-size:14px}
 .frp .frp-scene-2k,.frp.frp-workshop .frp-workshop-scene.frp-scene-2k{height:100px;border-radius:16px 16px 0 0}
 .frp .frp-guide{display:block;padding:18px;border-radius:0 0 16px 16px;gap:12px}
 .frp .frp-guide h2{font-size:22px}
 .frp .frp-guide p{font-size:13px}
 .frp .frp-guide small{font-size:11px}
 .frp .frp-guide-actions{max-width:none;min-width:0;margin-top:14px;display:flex;flex-direction:column;gap:5px}
 .frp .frp-guide-actions>.frp-button:not(.frp-primary){min-height:32px;padding:5px}
 .frp-journey{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:12px 0}
 .frp-journey li{font-size:11px;padding:4px 6px;min-width:0}
 .frp .frp-section-nav{gap:4px}
 .frp .frp-section-nav .frp-button{padding:9px 15px;font-size:13px;flex:1 1 auto}
 .frp .frp-section-nav .frp-button:nth-last-child(-n+2){flex:0 1 auto;padding:8px 10px;font-size:12px}
 .frp .frp-production{padding:0;margin-top:18px}
 .frp .frp-production>.frp-production-form{grid-template-columns:minmax(0,1fr) 82px;gap:12px;padding:15px;margin-bottom:18px}
 .frp .frp-production-form>label:first-child{grid-column:1/3}
 .frp .frp-production-form>label:nth-child(2){grid-column:1}
 .frp .frp-production-form>.frp-selected-art{grid-column:2;grid-row:2/4;max-width:82px}
 .frp .frp-production-form>.frp-selected-art>.farm-art-2k{max-width:82px;height:82px}
 .frp .frp-production-form>.frp-actions{grid-column:1/3;width:100%;gap:8px}
 .frp .frp-production-form>.frp-actions>.frp-button{flex:1 1 110px;font-size:13px}
 .frp .frp-production-form>p,.frp .frp-production-form>.frp-disabled-reason{grid-column:1/3}
 .frp .frp-production>.frp-slot-grid{grid-template-columns:minmax(0,1fr)}
 .frp .frp-slot{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 12px;padding:14px}
 .frp.frp-farm .frp-slot>.frp-produce-icon{grid-column:1;grid-row:1/5;width:90px;height:100px;display:flex!important;flex-wrap:wrap;align-self:center;margin:0}
 .frp.frp-farm .frp-slot>.frp-produce-icon>.farm-art-2k{width:90px;height:90px}
 .frp.frp-farm .frp-slot>.frp-produce-icon>.frp-product-art{width:40px;height:40px;position:absolute;top:84px;left:64px}
 .frp .frp-slot>h3,.frp .frp-slot>.frp-badge,.frp .frp-slot>p,.frp .frp-slot>small{grid-column:2;margin:0;align-self:start;justify-self:start}
 .frp .frp-slot>h3{font-size:15px;line-height:1.45}
 .frp .frp-slot>.frp-actions,.frp .frp-slot>.frp-ranch-management{grid-column:1/3;margin:6px 0 0}
 .frp .frp-slot .frp-actions{flex-direction:row}
 .frp .frp-slot .frp-actions .frp-button{flex:1;min-width:0;font-size:13px}
 .frp .frp-empty-slot{display:flex;max-height:78px}
 .frp .frp-order-grid{grid-template-columns:minmax(0,1fr)}
 .frp .frp-order{padding:18px}
 .frp .frp-animal-product{grid-template-columns:75px minmax(0,1fr)}
 .frp .frp-animal-product>.farm-art-2k{max-width:75px}
 .frp .frp-requirements>span{font-size:13px;gap:5px;flex-wrap:wrap;min-width:0}
 .frp .frp-requirement-art{width:38px;height:38px}
 .frp .frp-reward{font-size:24px}
 .frp-login-preview{gap:12px;padding:14px}
 .frp-login-preview img{width:75px;height:75px}
 .frp-login-preview h2{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.frp *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
