:root{--pine:#173b31;--pine2:#275542;--moss:#567b4f;--sage:#a8bd91;--cream:#f5f0df;--paper:#fffdf5;--sun:#e8b953;--rust:#c96c45;--ink:#263c31;--muted:#809084;--line:#e7e4d5;--font:"DM Sans",sans-serif;--display:"Fraunces",Georgia,serif}
*{box-sizing:border-box}html{min-height:100%;background:#e9efdf}body{margin:0;color:var(--ink);font-family:var(--font);background:radial-gradient(ellipse at 4% 0%,#f7f5e9 0,#f1f2e6 38%,#e6eddf 100%);min-height:100dvh}.game-shell{width:min(1240px,100%);margin:0 auto;padding:0 32px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9e1d1}.wordmark{font:700 21px var(--display);color:var(--pine);text-decoration:none;letter-spacing:-.6px}.mark{display:inline-grid;place-items:center;margin-right:8px;color:var(--rust);font:22px var(--font)}.season{display:flex;align-items:center;gap:10px;color:#4d6957;font-size:13px;font-weight:600}.sun-icon{font-size:18px;color:#d79c32}.weather{padding-left:10px;border-left:1px solid #d1dbcc;color:#829184;font-size:12px;font-weight:500}.icon-button,.quiet-button{border:1px solid #d8e0d4;color:var(--pine);background:#f8f8ee;border-radius:50%;width:35px;height:35px;font-size:17px;cursor:pointer}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:38px;padding:31px 0 24px}.field-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.eyebrow{margin:0 0 5px;color:#7a8b77;font-size:9px;letter-spacing:1.35px;font-weight:700}.field-heading h1{font:600 clamp(25px,3vw,34px)/1.1 var(--display);margin:0;color:var(--pine);letter-spacing:-.8px}.clock-box{display:flex;gap:10px;align-items:center;padding:7px 13px 7px 10px;background:#fffdf6;border:1px solid #e7e4d5;border-radius:12px}.clock-face{font-size:22px;color:var(--moss)}.clock-box small{display:block;color:#859284;font-size:8px;font-weight:700;letter-spacing:1px}.clock-box strong{font-size:16px;color:var(--pine);font-variant-numeric:tabular-nums}.world-frame{position:relative;background:#6e9b66;padding:9px;border:1px solid #bfd0ae;border-radius:17px;box-shadow:0 9px 30px #28473816;overflow:hidden}.world-frame:after{position:absolute;inset:9px;border:1px solid #ffffff40;border-radius:9px;content:"";pointer-events:none}#farm{width:100%;display:block;aspect-ratio:15/10;height:auto;image-rendering:pixelated;border-radius:9px;touch-action:none;outline:none}.world-hud{position:absolute;left:19px;right:19px;top:18px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.world-hud span{font-size:10px;color:white;font-weight:600;text-shadow:0 1px 3px #223f27a8}.world-hud #weather-pill{border-radius:20px;background:#23452a80;padding:6px 9px;backdrop-filter:blur(5px)}#weather-pill i,.save-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f2ce69;margin:0 5px 1px 0}.map-hint{opacity:.86}.toast{position:absolute;bottom:18px;left:50%;transform:translate(-50%,10px);opacity:0;transition:opacity .18s,transform .18s;background:#203f32e8;color:#fff6d9;padding:9px 15px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none;z-index:2}.toast.show{opacity:1;transform:translate(-50%,0)}.play-controls{display:flex;align-items:center;gap:25px;padding:16px 8px 0}.dpad{width:94px;height:80px;display:grid;grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,25px);gap:1px}.pad{border:1px solid #d8dfcf;background:#f8f8ef;color:#35513e;border-radius:7px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 2px 0 #d6dccd;touch-action:manipulation}.pad:active,.action-button:active,.sleep-button:active{transform:translateY(1px);box-shadow:none}.pad.up{grid-column:2;grid-row:1}.pad.left{grid-column:1;grid-row:2}.pad.down{grid-column:2;grid-row:2}.pad.right{grid-column:3;grid-row:2}.control-hint{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#7a887a;font-size:11px;flex:1}.keycap{border:1px solid #d7ddce;border-bottom-width:2px;border-radius:5px;background:#f8f8ef;padding:5px 7px;color:#526552;font-size:9px;font-weight:700;letter-spacing:.3px}.action-button{border:0;border-radius:8px;background:var(--pine);color:#f8f2dc;padding:10px 14px;margin-left:5px;font:600 11px var(--font);cursor:pointer}.action-button span{display:inline-block;background:#ffffff27;border-radius:4px;margin-left:8px;padding:2px 4px}.sleep-button{border:1px solid #d8dfcf;border-radius:9px;background:#f8f8ef;color:var(--pine);padding:9px 11px;font:600 10px var(--font);cursor:pointer;box-shadow:0 2px 0 #d6dccd;white-space:nowrap}.sleep-button>span:first-child{color:#d39f48;font-size:15px;vertical-align:-1px;margin-right:3px}.sleep-sub{display:block;color:#899486;font-weight:400;font-size:8px;margin-top:2px}.side-column{padding-top:1px}.ledger{background:#fffdf6;border:1px solid #e5e3d5;border-radius:13px;padding:16px 17px 12px;box-shadow:0 4px 16px #344d3710}.ledger-top{display:flex;align-items:center;gap:10px;margin-bottom:13px}.sun-stamp{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#f4e7bd;color:#bb8530;font-size:23px}.ledger-top .eyebrow{font-size:8px}.ledger-top h2{margin:0;color:var(--pine);font:600 18px var(--display)}.quiet-button{margin-left:auto;width:27px;height:27px;font-weight:600;font-size:13px}.money-row{display:flex;align-items:center;justify-content:space-between;background:#edf1df;border-radius:7px;padding:9px 10px;margin-bottom:5px;font-size:11px;color:#647464}.money-row strong{font:600 20px var(--display);color:#2a6243}.ledger-line{display:flex;justify-content:space-between;padding:8px 2px;border-bottom:1px solid #efeddf;color:#768477;font-size:10px}.ledger-line strong{color:#385342;font-size:10px;font-weight:600}.ledger-line:last-child{border:0}.chapter-card{margin-top:13px;background:#f8edcf;border:1px solid #ede0bd;border-radius:13px;padding:14px 15px 12px;overflow:hidden;position:relative}.chapter-art{height:58px;position:absolute;top:0;right:0;width:104px;overflow:hidden;opacity:.72}.art-sun{position:absolute;right:22px;top:10px;font-size:26px;color:#dcac54}.art-leaf{position:absolute;right:45px;top:24px;font-size:48px;color:#82a06b;transform:rotate(-35deg)}.art-hill{position:absolute;right:-6px;bottom:-22px;width:87px;height:46px;border-radius:50% 50% 0 0;background:#b6c08b;transform:rotate(-9deg)}.chapter-copy{position:relative;z-index:1}.chapter-copy .eyebrow{font-size:8px;color:#9a8255}.chapter-copy h2{font:600 19px var(--display);margin:0 0 5px;color:#4d4d31}.chapter-copy p:last-child{margin:0;max-width:230px;color:#77806b;font-size:10px;line-height:1.45}.goal-track{height:4px;background:#e9ddbf;border-radius:5px;margin:15px 0 7px;overflow:hidden}.goal-track-fill{height:100%;width:0;background:#70925f;transition:width .35s;border-radius:5px}.goal-row{display:flex;justify-content:space-between;color:#7c8068;font-size:9px}.goal-row strong{color:#5a654c;font-variant-numeric:tabular-nums}.inventory-section{margin-top:20px}.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px}.section-head h2{margin:0;font:600 16px var(--display);color:var(--pine)}.text-button{border:0;background:none;color:#788873;font:500 9px var(--font);cursor:pointer;padding:4px}.text-button span{color:#c47d44;margin-left:3px}.inventory-list{display:grid;gap:5px}.inventory-row{display:flex;align-items:center;gap:9px;background:#fbfaf1;border:1px solid #e7e7d9;border-radius:8px;padding:7px 9px}.item-icon{display:grid;place-items:center;width:27px;height:27px;background:#e9efd9;border-radius:7px;font-size:15px}.item-copy{flex:1}.item-copy b{display:block;color:#53634f;font-size:10px;font-weight:600}.item-copy small{color:#95a08f;font-size:8px}.item-count{font-size:10px;font-weight:700;color:#446047}.empty-note{border:1px dashed #d9dfd1;border-radius:8px;padding:13px 11px;color:#859184;font-size:10px;line-height:1.45}.quick-actions{margin-top:19px;border-top:1px solid #dce2d5}.quick-action{display:flex;align-items:center;width:100%;border:0;border-bottom:1px solid #dce2d5;background:transparent;padding:10px 2px;text-align:left;cursor:pointer;color:inherit}.quick-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;font-size:16px;margin-right:9px}.market-icon{background:#f5e4c6;color:#ae753c}.journal-icon{background:#e2ead9;color:#64805d}.quick-action b{display:block;font:600 11px var(--display);color:#385440}.quick-action small{display:block;color:#929c8f;font-size:8px;margin-top:2px}.quick-arrow{margin-left:auto;color:#a2ab9d;font-size:14px}.save-note{padding-top:12px;color:#9aa394;font-size:8px}.save-dot{width:5px;height:5px;background:#83a576}.footer{height:42px;border-top:1px solid #d9e1d1;display:flex;justify-content:space-between;align-items:center;color:#97a092;font-size:9px}.heart{color:#ca8058;margin-left:3px}
.dialog-panel{border:0;padding:0;background:transparent;width:min(440px,calc(100% - 28px));max-width:440px;max-height:calc(100% - 32px);overflow:visible}.dialog-panel::backdrop{background:#162e27a8;backdrop-filter:blur(3px)}.dialog-inner{position:relative;background:#fffdf4;border:1px solid #e7e1cb;border-radius:17px;padding:26px 25px 22px;box-shadow:0 18px 55px #0e291f42;max-height:calc(100dvh - 32px);overflow:auto}.dialog-close{position:absolute;right:13px;top:11px;border:0;background:transparent;color:#839080;font-size:23px;cursor:pointer}.panel-eyebrow{margin:0 0 6px;color:#84907a;font-size:9px;letter-spacing:1.2px;font-weight:700}.panel-title{margin:0 0 7px;color:var(--pine);font:600 25px var(--display)}.panel-intro{margin:0 0 18px;color:#798578;font-size:12px;line-height:1.5}.market-list{display:grid;gap:8px}.market-item{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid #e7e6d7;border-radius:10px;background:#fffef9}.market-item .item-icon{width:34px;height:34px;font-size:18px}.market-item b{display:block;font-size:11px;color:#3d5b42}.market-item small{display:block;font-size:9px;color:#90998b;margin-top:3px}.market-item button,.panel-primary{border:0;border-radius:7px;padding:8px 10px;background:var(--pine);color:#fff8e3;font:600 10px var(--font);cursor:pointer}.market-item button:disabled{background:#dfe4d8;color:#98a091;cursor:not-allowed}.market-tabs{display:flex;gap:7px;margin-bottom:12px}.market-tabs button{border:1px solid #e1e5d9;border-radius:99px;padding:7px 13px;background:transparent;color:#728071;font:600 10px var(--font);cursor:pointer}.market-tabs button.active{background:var(--pine);border-color:var(--pine);color:#fff8e3}.sell-total{margin-top:13px;padding:10px 12px;background:#edf1df;border-radius:8px;color:#63745f;font-size:11px;display:flex;justify-content:space-between}.sell-total strong{color:#2f6645}.panel-primary{width:100%;margin-top:14px;padding:11px}.note-grid{display:grid;gap:8px}.note-card{padding:11px 12px;background:#f6f5e8;border-radius:9px;color:#71806f;font-size:11px;line-height:1.5}.note-card b{color:#456249}.trophy-list{display:grid;gap:7px}.trophy-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#f5f3e5}.trophy-medal{font-size:18px}.trophy-row b{font-size:10px;color:#4b6247}.trophy-row small{display:block;color:#91988a;font-size:9px;margin-top:2px}.trophy-row.locked{opacity:.53}.trophy-row.earned{background:#eaf0dc}.trophy-row .check{margin-left:auto;color:#719259;font-size:14px}.completion{text-align:center;padding:10px 0}.completion .big-medal{font-size:48px}.completion h2{font:600 26px var(--display);color:var(--pine);margin:5px 0}.completion p{color:#778578;font-size:12px;line-height:1.6}.sound-off{opacity:.5}
.dialog-panel.market-visit::backdrop{background:#162e2738;backdrop-filter:none}
.dialog-panel.market-visit[open]{position:fixed;top:auto;bottom:16px;left:0;right:0;margin-left:auto;margin-right:auto;max-height:min(56dvh,520px)}
@media(max-width:900px){.game-shell{padding:0 22px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:23px}.play-controls{gap:12px}.dpad{transform:scale(.9);transform-origin:left center;width:82px}.control-hint{font-size:10px}.action-button{margin-left:0}}
@media(max-width:700px){.game-shell{padding:0 15px}.topbar{height:60px}.wordmark{font-size:18px}.season{font-size:11px;gap:6px}.weather{display:none}.game-layout{display:flex;flex-direction:column;gap:22px;padding:20px 0}.field-heading{margin-bottom:12px}.field-heading h1{font-size:27px}.world-frame{padding:6px;border-radius:13px}.world-frame:after{inset:6px;border-radius:8px}.world-hud{left:13px;right:13px;top:13px}.world-hud span{font-size:9px}.map-hint{display:none}.play-controls{padding:10px 1px 0;gap:8px}.dpad{width:85px;transform:scale(.84)}.control-hint{gap:5px;font-size:9px}.keycap{display:none}.action-button{padding:10px 11px;margin-left:auto}.sleep-button{padding:8px}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:11px}.ledger{grid-column:1/-1}.chapter-card{margin-top:0}.inventory-section{margin-top:0}.quick-actions{grid-column:1/-1;margin-top:0}.save-note{grid-column:1/-1;padding-top:0}.footer{font-size:8px}.dialog-inner{padding:24px 19px 18px}}
@media(max-width:390px){.game-shell{padding:0 11px}.play-controls{gap:3px}.dpad{transform:scale(.76);width:72px}.control-hint{font-size:8px}.action-button{padding:9px}.sleep-button{font-size:9px}.clock-box{padding:6px 8px}.clock-face{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Game-first shell: details live behind the menu and controls remain in reach. */
html,body{height:100%;min-height:100%;overscroll-behavior:none}
body{min-height:100dvh}
.game-shell{width:min(1240px,100%);height:100dvh;min-height:480px;display:flex;flex-direction:column;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));overflow:hidden}
.topbar{position:relative;z-index:5;flex:0 0 auto;gap:18px;height:auto;min-height:70px}
.top-status{display:flex;align-items:center;gap:16px;margin-left:auto}
.top-clock,.wallet-chip{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dce3d5;border-radius:10px;background:#f8f8ef;color:var(--pine);font-variant-numeric:tabular-nums}
.top-clock strong,.wallet-chip strong{font-size:12px}
.top-clock .clock-face{font-size:16px}
.wallet-chip>span{color:#9b7b39}
.save-status{display:inline-flex;align-items:center;gap:6px;color:#6f816d;font-size:10px;white-space:nowrap}
.save-status i{width:7px;height:7px;border-radius:50%;background:#80a66f}
.save-status[data-state=syncing] i{background:#d6a74c;animation:pulse 1s infinite alternate}
.save-status[data-state=error] i{background:#c96c45}
@keyframes pulse{to{opacity:.35}}
.details-menu{position:relative;flex:0 0 auto}
.details-menu summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;border:1px solid #d8e0d4;background:#f8f8ee;color:var(--pine);border-radius:10px;padding:9px 11px;font-size:11px;font-weight:600;white-space:nowrap}
.details-menu summary::-webkit-details-marker{display:none}
.menu-glyph{font-size:15px}
.details-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:min(355px,calc(100vw - 28px));max-height:min(75dvh,660px);overflow:auto;padding:12px;background:#fffdf5;border:1px solid #dfe3d4;border-radius:14px;box-shadow:0 18px 50px #1c352e38;overscroll-behavior:contain}
.side-column{display:grid;gap:10px;padding:0}
.side-column .ledger,.side-column .chapter-card,.side-column .inventory-section,.side-column .quick-actions{margin:0}
.side-column .ledger{box-shadow:none}
.game-layout{display:block;flex:1 1 auto;min-height:0;padding:15px 0 8px}
.field-column{height:100%;display:flex;flex-direction:column;min-height:0}
.field-heading{flex:0 0 auto;margin-bottom:9px}
.field-heading .eyebrow{font-size:8px}
.field-heading h1{font-size:clamp(22px,3vw,31px)}
.world-frame{flex:0 0 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:7px}
#farm{width:min(100%,900px,calc((100dvh - 280px)*1.5));height:auto;max-width:100%;max-height:100%;aspect-ratio:15/10;object-fit:contain}
.controls-footer{flex:0 0 auto;position:relative;z-index:3;margin:0 -1px;padding:5px 0 max(4px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#edf1e700,#edf1e9f5 22%)}
.play-controls{justify-content:center;padding:5px 0 7px;gap:clamp(12px,4vw,35px)}
.control-hint{display:none}
.action-button,.sleep-button{min-height:44px;font-size:12px;padding:11px 19px}
.dpad{width:108px;height:86px;grid-template-columns:repeat(3,34px);grid-template-rows:repeat(3,27px);gap:2px}
.pad{font-size:18px;touch-action:none;user-select:none;-webkit-user-select:none}
.footer{height:28px;font-size:9px}
body[data-phase=dawn] .sun-icon,body[data-phase=morning] .sun-icon{color:#e5af45}
body[data-phase=afternoon] .sun-icon{color:#ed9b3b}
body[data-phase=sunset] .sun-icon{color:#cc7448}
body[data-phase=night] .sun-icon{color:#8895bd}
@media(max-width:700px){
  .game-shell{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));min-height:430px}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:38px auto;column-gap:8px;row-gap:4px;min-height:80px;padding:7px 0 8px;align-content:center}
  .wordmark{font-size:17px;white-space:nowrap}
  .top-status{grid-row:2;grid-column:1/-1;justify-content:space-between;gap:6px;margin:0}
  .season{font-size:10px}
  .top-clock,.wallet-chip{padding:5px 8px}
  .save-status{font-size:9px}
  .details-menu summary{padding:8px 9px;font-size:10px}
  .menu-label{display:none}
  .icon-button{width:34px;height:34px}
  .game-layout{padding:8px 0 5px}
  .field-heading{margin-bottom:6px}
  .field-heading h1{font-size:22px}
  .field-heading .eyebrow{font-size:7px;margin-bottom:3px}
  .world-frame{padding:4px;border-radius:11px}
  .world-frame:after{inset:4px;border-radius:7px}
  .world-hud{left:10px;right:10px;top:9px}
  .play-controls{gap:clamp(7px,3vw,15px);justify-content:space-around}
  .dpad{width:93px;height:78px;grid-template-columns:repeat(3,29px);grid-template-rows:repeat(3,24px);transform:none}
  .action-button,.sleep-button{min-height:44px;padding:10px 12px;font-size:11px}
  .footer{height:22px;font-size:8px}
}
@media(max-height:650px) and (max-width:700px){
  .topbar{min-height:72px;padding-top:4px;padding-bottom:4px}
  .game-layout{padding-top:4px}
  .field-heading{display:none}
  .footer{display:none}
  .controls-footer{padding-bottom:max(2px,env(safe-area-inset-bottom))}
  .play-controls{padding:2px 0}
}

/* Field-journal finish: let the map lead, keep the tools tactile and quiet. */
:root{--pine:#1d3c2e;--pine2:#315a40;--moss:#648750;--sage:#bdcba7;--cream:#f1ecd8;--paper:#f7f3e4;--sun:#efbf58;--rust:#b66b48;--ink:#22392e;--muted:#718171;--line:#d7ddcb}
body{background:#e4eadc}
.game-shell{padding-left:32px;padding-right:32px}
.topbar{margin:0 -32px;padding:0 25px;background:#1d3c2e;border:0;border-bottom:3px solid #c99a4d;color:#f5f0dd;min-height:76px}
.wordmark{color:#f5f0dd;font-size:22px;letter-spacing:-.8px}
.brand-mark{width:27px;height:27px;margin-right:8px;fill:none;stroke:#e6bc5d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-5px}
.top-status{gap:13px}
.season{color:#dbe4d0;font-size:12px}
.sun-icon{color:#efbf58}
.top-clock,.wallet-chip{border:0;border-left:1px solid #66806a;border-radius:0;background:transparent;color:#fff6df;padding:8px 0 8px 12px}
.top-clock .clock-face{color:#d8c891}
.status-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.top-clock .clock-face{font-size:0}
.wallet-chip>span{color:#efbf58}
.save-status{color:#d2ddcd}
.save-status i{background:#a5c378}
.details-menu summary{border:1px solid #66806a;border-radius:7px;background:transparent;color:#f4efd9;padding:9px 11px}
.details-menu summary:hover,.details-menu[open] summary{background:#294c39;border-color:#d5b35f}
.icon-button{border-color:#66806a;background:transparent;color:#f3eed8}
.game-layout{padding:13px 0 9px}
.game-layout{display:flex;align-items:center;justify-content:center}
.field-column{width:100%;height:auto}
.field-heading .eyebrow{display:none}
.field-heading h1{font-size:clamp(23px,3vw,31px);letter-spacing:-.6px;color:#244433}
.world-frame{background:#31533e;border:2px solid #264832;border-radius:7px;padding:5px;box-shadow:none}
.world-frame:after{inset:5px;border:1px solid #e8e2bd55;border-radius:4px}
#farm{border-radius:3px}
.world-hud{top:12px;left:12px;right:12px}
.world-hud #weather-pill{background:#1d3c2eeb;border:1px solid #a3ad7655;border-radius:5px;color:#f3efd9;padding:6px 9px}
.map-hint{color:#f2e8bd!important}
.toast{border:1px solid #f1d17c;border-radius:7px;background:#1d3c2ef2;color:#fff6df}
.controls-footer{margin:0 -32px;padding:6px 32px max(4px,env(safe-area-inset-bottom));background:#1d3c2e;color:#dce5d4}
.play-controls{gap:clamp(16px,3vw,36px)}
.dpad{gap:3px}
.pad{border:1px solid #809478;border-radius:6px;background:#e6e4ce;color:#214031;box-shadow:none;font-size:19px}
.pad:hover{background:#f6f1dc}
.action-button{border-radius:6px;background:#e8b94d;color:#20382b;font-weight:700;box-shadow:none}
.action-button span{background:#20382b20}
.sleep-button{border:1px solid #728d75;border-radius:6px;background:#294c39;color:#f2efd9;box-shadow:none}
.sleep-button>span:first-child{color:#efc35e}
.footer{border-top:1px solid #56725b;color:#bdcdb7}
.heart{color:#efbf58}
.details-dropdown{border:0;border-top:3px solid #c69649;border-radius:8px;background:#f3eedc;box-shadow:0 16px 40px #14271e4d}
.side-column{grid-template-columns:minmax(0,1fr);gap:0}
.side-column .ledger{grid-column:auto}
.side-column .ledger{padding:11px 4px 7px;border:0;border-bottom:1px solid #d7ddcb;border-radius:0;background:transparent}
.ledger-top h2{font-size:17px}
.sun-stamp{background:#e8dfbe;color:#806331}
.field-tools{display:block;padding:9px 4px;border-bottom:1px solid #d7ddcb}
.field-tools strong{display:block;color:#263e30;font-size:12px;font-weight:700}
.field-tools p{margin:4px 0 0;color:#718171;font-size:10px;line-height:1.4}
.chapter-card{margin:0;padding:13px 4px;background:transparent;border:0;border-bottom:1px solid #d7ddcb;border-radius:0}
.chapter-art{display:none}
.chapter-copy .eyebrow{font-size:8px;letter-spacing:.8px;color:#7d704e}
.chapter-copy h2{font-size:19px;color:#304833}
.goal-track{background:#d9ddc7;margin:12px 0 7px}
.goal-track-fill{background:#648750}
.inventory-section{padding:13px 3px 11px;border-bottom:1px solid #d7ddcb}
.section-head h2{font-size:16px;color:#304833}
.inventory-row{border:0;border-bottom:1px solid #e0e2d3;border-radius:0;background:transparent;padding:7px 1px}
.item-icon{border-radius:5px;background:#e4e7d4}
.quick-actions{margin:0;border:0}
.quick-action{border-bottom:1px solid #d7ddcb;padding:9px 2px}
.quick-action:hover{background:#e9ead8}
.quick-action b{font-size:12px;color:#294532}
.save-note{padding:10px 2px 2px;color:#768572}
.save-dot{background:#68864d}
.quick-icon{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.menu-glyph{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.sound-mark{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.moon-mark{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:4px}
.game-shell>.game-layout{display:flex;align-items:center;justify-content:center}
.game-shell>.game-layout>.field-column{width:100%;height:auto;flex:0 0 auto}
.quick-action:focus-visible,.text-button:focus-visible{outline:3px solid #c7923d;outline-offset:2px}
::selection{background:#d9b657;color:#18362a}
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:#e6e5d4}
::-webkit-scrollbar-thumb{background:#879777;border:2px solid #e6e5d4;border-radius:8px}
.dialog-inner{border-radius:9px;background:#f3eedc;border:1px solid #c9c9ad;box-shadow:0 18px 55px #13281f55}
.panel-primary,.market-item button{border-radius:6px;background:#244632;color:#f4eed6}
.panel-primary:hover,.market-item button:hover:not(:disabled){background:#356448}
.market-item{border-radius:6px;background:#f7f3e4;border-color:#d7ddcb}
.market-tabs button{border-radius:6px}
.market-tabs button.active{background:#315a40}
.note-card{border-radius:5px;background:#e8eadb}
.trophy-row{border-radius:5px;background:#e8eadb}
.pad:focus-visible,.action-button:focus-visible,.sleep-button:focus-visible,.details-menu summary:focus-visible,.icon-button:focus-visible{outline:3px solid #e9bb51;outline-offset:3px}
@media(max-width:700px){
  .game-shell{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .topbar{margin:0 -10px;padding:env(safe-area-inset-top) 10px 8px;min-height:80px;border-bottom-width:2px}
  .wordmark{font-size:18px}
  .top-status{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-rows:auto auto;align-items:center;gap:5px 6px}
  .season{grid-row:1;grid-column:1;min-width:0}
  .top-clock{grid-row:1;grid-column:2}
  .wallet-chip{grid-row:1;grid-column:3}
  .save-status{grid-row:1;grid-column:4}
  .seed-balances{grid-row:2;grid-column:1/-1;justify-content:center}
  .season{font-size:10px}
  .top-clock,.wallet-chip{padding:5px 0 5px 8px}
  .top-clock strong,.wallet-chip strong{font-size:11px}
  .save-status{font-size:8px}
  .controls-footer{margin:0 -10px;padding:4px 10px max(4px,env(safe-area-inset-bottom))}
  .game-shell>.game-layout{flex-direction:column;justify-content:center;gap:0}
  .play-controls{gap:clamp(7px,2.3vw,12px)}
  .dpad{width:90px;grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,24px)}
  .action-button,.sleep-button{padding:10px 11px;font-size:10px}
  .footer{height:23px}
  .details-dropdown{right:-3px;width:min(355px,calc(100vw - 20px));max-height:min(72dvh,620px)}
}
@media(max-width:360px){.top-status{gap:5px}.save-status span{max-width:66px;overflow:hidden;text-overflow:ellipsis}.play-controls{gap:4px}.action-button,.sleep-button{padding:9px 8px}}

/* Growth economy, ledger and phone controls */
.field-tools p{max-width:260px;font-size:10px}
.journal-actions{border-top:1px solid #d7ddcb}
.ledger-action{border-bottom:0}
.market-wallet,.ledger-balance{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;margin:0 0 12px;border-radius:7px;background:#e8ecdc;color:#687765;font-size:11px}
.market-wallet strong,.ledger-balance strong{font:600 20px var(--display);color:#2d6242;font-variant-numeric:tabular-nums}
.market-item.is-locked{background:#efeee2}
.market-item.is-locked .item-icon{filter:grayscale(.45)}
.market-item button{min-width:48px;min-height:38px}
.market-item button:disabled{background:#dfe2d6;color:#7c8779}
.market-tabs button{min-height:38px}
.land-offer{padding:14px;border:1px solid #d9ddcd;border-radius:8px;background:#f8f5e8}
.land-illustration{height:74px;display:grid;place-content:center;border-radius:6px;background:linear-gradient(#90af77 0 40%,#d3b87e 40% 60%,#91ad73 60%);color:#765338;text-align:center;line-height:1.3;font-size:19px;letter-spacing:8px}
.land-offer h3{margin:3px 0 6px;color:#385540;font:600 17px var(--display)}
.land-offer>p:not(.panel-eyebrow){margin:0 0 10px;color:#778475;font-size:11px;line-height:1.45}
.land-offer .land-requirement{min-height:31px;padding:8px 9px;border-radius:5px;background:#ecebdc;color:#796b4d;font-size:10px}
.land-price{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:#6a7866;font-size:10px}
.land-price button{min-height:40px;border:0;border-radius:6px;padding:8px 12px;background:#244632;color:#f4eed6;font:600 10px var(--font)}
.land-price button:disabled{background:#dfe2d6;color:#7c8779}
.transaction-list{display:grid;gap:1px;margin:10px 0 16px;border-top:1px solid #d9ddce}
.transaction-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 2px;border-bottom:1px solid #d9ddce}
.transaction-copy b{display:block;color:#405742;font-size:11px}
.transaction-copy small,.transaction-values small{display:block;margin-top:4px;color:#879184;font-size:9px}
.transaction-values{text-align:right;white-space:nowrap}
.transaction-values strong{font-size:12px;font-variant-numeric:tabular-nums}
.transaction-values .credit{color:#4d8256}
.transaction-values .debit{color:#a35f43}
.history-start{margin:0 0 11px;padding:9px 10px;background:#f1ead4;border-radius:6px;color:#81734e;font-size:10px;line-height:1.45}
.dialog-panel:not(.market-visit){max-height:calc(100dvh - 32px)}
.dialog-panel:not(.market-visit) .dialog-inner{max-height:calc(100dvh - 32px)}
.dialog-panel.market-visit[open] .dialog-inner{max-height:min(56dvh,520px);overflow-y:auto;overscroll-behavior:contain}
#farm{width:min(100%,1080px,calc((100dvh - 260px)*1.5))}
.pad{min-width:44px;min-height:44px}
.action-button,.sleep-button{min-height:44px;font-size:12px}
@media(max-width:700px){
  .play-controls{gap:clamp(8px,2.2vw,14px);justify-content:space-between;padding-top:8px}
  .dpad{width:138px;height:138px;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:3px;flex:none}
  .pad{width:44px;height:44px;padding:0;font-size:20px}
  .action-button,.sleep-button{padding:9px 10px;font-size:11px;white-space:nowrap}
  .game-shell>.game-layout>.field-column{width:100%}
  .field-tools p{max-width:260px}
}
@media(max-width:360px){
  .play-controls{gap:3px}
  .dpad{width:138px;transform:none}
  .action-button,.sleep-button{padding:8px 7px;font-size:10px}
  .field-tools p{max-width:250px}
}

/* Compact play controls: movement pad beside a vertical action stack. */
.play-controls{gap:clamp(16px,3vw,30px)}
.action-stack{display:grid;grid-template-columns:minmax(112px,128px);gap:6px;flex:none}
.action-stack .action-button,.action-stack .sleep-button{width:100%;height:44px;min-height:44px;margin:0;padding:7px 11px;border-radius:11px;font-size:11px;white-space:nowrap;box-shadow:none}
.action-stack .action-button{display:flex;align-items:center;justify-content:space-between}
.action-stack .action-button span{margin-left:7px;padding:2px 5px;border-radius:5px}
.action-stack .sleep-button{display:flex;align-items:center;justify-content:center;gap:6px}
.action-stack .sleep-button .moon-mark{margin:0}
@media(max-width:700px){
  .play-controls{justify-content:space-around;gap:clamp(8px,3vw,14px)}
  .action-stack{grid-template-columns:minmax(110px,128px)}
}
@media(max-width:360px){
  .play-controls{gap:7px}
  .action-stack{grid-template-columns:minmax(104px,120px)}
  .action-stack .action-button,.action-stack .sleep-button{padding:7px 9px;font-size:10px}
}

/* Two circular control clusters, arranged like the player's sketch. */
.dpad{
  position:relative;width:144px;height:144px;padding:0;flex:none;display:block;
  border:1px solid #779174;border-radius:50%;
  background:#315a40;box-shadow:inset 0 2px 7px #132d2470,0 3px 0 #18382d;
  perspective:260px;transition:transform 110ms cubic-bezier(.2,.8,.2,1),box-shadow 110ms ease;
  transform-style:preserve-3d;touch-action:none
}
.pad{position:absolute;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #9aa88c;border-radius:50%;
  background:#e6e4ce;color:#244534;font-size:20px;line-height:1;box-shadow:0 2px 0 #b1b99f;
  transition:transform 100ms cubic-bezier(.2,.8,.2,1),background-color 100ms ease,box-shadow 100ms ease}
.pad.up{left:50px;top:0}.pad.left{left:0;top:50px}.pad.down{left:50px;bottom:0}.pad.right{right:0;top:50px}
.pad:focus-visible{outline:3px solid #efbf58;outline-offset:2px;z-index:1}
.pad:active{transform:translateZ(-5px) scale(.92);background:#d2d9bd;box-shadow:inset 0 2px 4px #61775e70}
.dpad[data-pressed="up"]{transform:perspective(260px) rotateX(6deg) translateY(1px);box-shadow:inset 0 3px 9px #132d2480,0 1px 0 #18382d}
.dpad[data-pressed="down"]{transform:perspective(260px) rotateX(-6deg) translateY(1px);box-shadow:inset 0 3px 9px #132d2480,0 1px 0 #18382d}
.dpad[data-pressed="left"]{transform:perspective(260px) rotateY(-6deg) translateY(1px);box-shadow:inset 0 3px 9px #132d2480,0 1px 0 #18382d}
.dpad[data-pressed="right"]{transform:perspective(260px) rotateY(6deg) translateY(1px);box-shadow:inset 0 3px 9px #132d2480,0 1px 0 #18382d}
.dpad[data-pressed="up"] .pad.up,.dpad[data-pressed="down"] .pad.down,
.dpad[data-pressed="left"] .pad.left,.dpad[data-pressed="right"] .pad.right{
  transform:translateZ(-7px) scale(.91);background:#d2d9bd;box-shadow:inset 0 2px 5px #61775e75
}
.action-orbit{position:relative;width:144px;height:144px;flex:none;border:1px solid #779174;border-radius:50%;background:#315a40;box-shadow:inset 0 2px 7px #132d2470,0 3px 0 #18382d}
.action-orbit .action-button,.action-orbit .sleep-button{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:52px;height:52px;min-height:52px;margin:0;padding:3px;border:1px solid #c3c8af;border-radius:50%;font:600 8px/1.1 var(--font);white-space:nowrap;box-shadow:0 2px 0 #19372c;cursor:pointer}
.action-orbit .action-button{top:13px;left:13px;background:#e8b94d;color:#1d3c2e}
.action-orbit .sleep-button{right:13px;bottom:13px;background:#f1ecd8;color:#1d3c2e}
.action-orbit .action-button:active,.action-orbit .sleep-button:active{transform:translateY(2px);box-shadow:none}
.action-orbit .action-label{display:block;margin:0;padding:0;background:none;font-size:8px;line-height:1}
.interact-mark,.moon-mark{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.dpad,.action-orbit{width:144px;height:144px}.pad.up{left:50px;top:0}.pad.left{left:0;top:50px}.pad.down{left:50px;bottom:0}.pad.right{right:0;top:50px}}
@media(max-width:360px){.dpad,.action-orbit{width:144px;transform:none}}

/* Let the farm artwork occupy the full map frame with only its clean border. */
.world-frame{
  width:min(100%,calc((100dvh - 280px)*1.5 + 6px));
  align-self:center;padding:0;border:3px solid #315a40;border-radius:13px;
}
.world-frame:after{inset:0;border:0;border-radius:10px}
#farm{
  width:100%;height:auto;max-width:none;max-height:none;aspect-ratio:15/10;
  border-radius:10px;object-fit:fill
}
@media(max-width:700px){.world-frame{width:min(100%,calc((100dvh - 280px)*1.5 + 6px));padding:0}}

/* On phones, treat the whole play area as the game screen, not a centered card. */
@media(max-width:700px){
  .game-layout{
    display:flex;flex:1 1 auto;min-height:0;align-items:stretch;justify-content:stretch;
    margin:0 8px 6px;padding:11px;
    border:1px solid #cad4c3;border-radius:17px;background:#dce5d4;
  }
  .game-shell>.game-layout>.field-column{
    display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;flex-direction:column;
  }
  .field-heading{display:flex;flex:0 0 auto;margin:0 0 9px;padding:0 3px}
  .field-heading .eyebrow{display:none}
  .field-heading h1{font-size:clamp(22px,6vw,28px);line-height:1.05}
  .world-frame{
    display:flex;flex:1 1 auto;align-self:stretch;width:100%;min-height:0;
    align-items:stretch;justify-content:stretch;padding:0;border:2px solid #264832;border-radius:10px;
  }
  .world-frame:after{inset:0;border:0;border-radius:8px}
  #farm{flex:1 1 auto;width:100%;height:100%;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;border-radius:8px}
}
@media(max-height:650px) and (max-width:700px){
  .game-layout{padding:8px;margin-bottom:3px}
  .field-heading{display:flex;margin-bottom:5px}
  .field-heading h1{font-size:21px}
}

/* PSP-like cross pad and bare action buttons, with no enclosing action ring. */
.dpad{
  width:144px;height:144px;border:0;border-radius:0;background:transparent;box-shadow:none;
  perspective:260px;isolation:isolate
}
.dpad::before{
  content:"";position:absolute;inset:0;z-index:-1;background:#315a40;
  clip-path:polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%);
  filter:drop-shadow(0 3px 1px #18382d)
}
.pad{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #9aa88c;border-radius:7px;
  background:linear-gradient(145deg,#f0eedc,#d9dbc6);box-shadow:inset 0 1px #fff9,0 2px 0 #a6ad96;color:#244534}
.pad.up{left:50px;top:1px;border-radius:11px 11px 6px 6px}
.pad.left{left:1px;top:50px;border-radius:11px 6px 6px 11px}
.pad.down{left:50px;bottom:1px;border-radius:6px 6px 11px 11px}
.pad.right{right:1px;top:50px;border-radius:6px 11px 11px 6px}
.pad:active,.dpad[data-pressed] .pad{box-shadow:inset 0 2px 4px #52654c55,0 1px 0 #8f9982}
.dpad[data-pressed="up"] .pad.up,.dpad[data-pressed="down"] .pad.down,
.dpad[data-pressed="left"] .pad.left,.dpad[data-pressed="right"] .pad.right{transform:translateZ(-6px) scale(.94);background:#cfd7bb}
.action-orbit{width:120px;height:120px;border:0;border-radius:0;background:transparent;box-shadow:none}
.action-orbit .action-button,.action-orbit .sleep-button{width:54px;height:54px;min-height:54px;border-radius:50%;font-size:9px}
.action-orbit .action-button{top:0;left:0}
.action-orbit .sleep-button{right:0;bottom:0}
.action-orbit .action-label{font-size:9px}
.action-orbit .action-button:active,.action-orbit .sleep-button:active{transform:translateY(2px) scale(.96)}
@media(max-width:700px){.dpad{width:144px;height:144px}.action-orbit{width:120px;height:120px}}

/* Viewport-first composition: adapt the board and controls by both dimensions. */
.game-shell{height:100vh;height:100dvh;min-height:0;overflow:visible}
.game-layout{
  display:flex;flex:1 1 auto;min-height:0;align-items:stretch;justify-content:stretch;
  margin:0 8px 6px;padding:clamp(8px,1.5vh,14px);
  border:1px solid #cad4c3;border-radius:17px;background:#dce5d4
}
.game-shell>.game-layout>.field-column{
  display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;flex-direction:column
}
.field-heading{display:flex;flex:0 0 auto;margin:0 0 clamp(5px,1.2vh,10px);padding:0 3px}
.field-heading .eyebrow{display:none}
.field-heading h1{font-size:clamp(21px,3.6vw,31px);line-height:1.05}
.footer{padding-top:8px}
.world-frame{
  display:flex;flex:1 1 auto;align-self:stretch;width:100%;height:auto;min-height:0;
  align-items:stretch;justify-content:stretch;padding:0;border:2px solid #264832;border-radius:10px
}
.world-frame:after{inset:0;border:0;border-radius:8px}
#farm{flex:1 1 auto;width:100%;height:100%;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;border-radius:8px}
.dpad{width:clamp(132px,18dvh,144px);height:clamp(132px,18dvh,144px)}
.pad.up{left:calc(50% - 22px);top:0}.pad.left{left:0;top:calc(50% - 22px)}
.pad.down{left:calc(50% - 22px);bottom:0}.pad.right{right:0;top:calc(50% - 22px)}
.action-orbit{width:clamp(108px,15dvh,120px);height:clamp(108px,15dvh,120px)}
.play-controls{gap:clamp(5px,3vw,28px)}
.top-clock{padding-right:8px}
.footer{padding-top:8px}
.action-buttons{position:relative;display:block;flex:0 0 clamp(122px,17dvh,136px);width:clamp(122px,17dvh,136px);height:clamp(122px,17dvh,136px);border:0;border-radius:0;background:transparent;box-shadow:none}
.action-buttons .action-button,.action-buttons .sleep-button{
  position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  width:62px;height:62px;min-height:62px;margin:0;padding:0;border:1px solid #c3c8af;border-radius:50%;
  color:#1d3c2e;font:700 11px/1 var(--font);white-space:nowrap;touch-action:manipulation;
  box-shadow:inset 0 2px 0 #fff9,inset 0 -3px 0 #19372c24,0 3px 0 #132b21;
  transition:transform 110ms ease,box-shadow 110ms ease,filter 110ms ease
}
.action-buttons .action-button{top:0;right:0;background:linear-gradient(150deg,#f4ca64,#dfa936)}
.action-buttons .sleep-button{bottom:0;left:0;background:linear-gradient(145deg,#fbf7e5,#dedbc6)}
.action-buttons .action-label{display:block;margin:0;padding:0;border-radius:0;background:transparent;font-size:11px;line-height:1}
.action-buttons .interact-mark,.action-buttons .moon-mark{display:block;width:18px;height:18px;margin:0}
.action-buttons .action-button:hover,.action-buttons .sleep-button:hover{filter:brightness(1.04)}
.action-buttons .action-button:active,.action-buttons .sleep-button:active{transform:translateY(3px) scale(.96);box-shadow:inset 0 3px 4px #19372c30,0 0 0 #132b21}
.action-buttons .sleep-button:disabled{opacity:.48;filter:saturate(.55);cursor:not-allowed}
.action-buttons .action-button:focus-visible,.action-buttons .sleep-button:focus-visible{outline:3px solid #efbf58;outline-offset:3px}
@media(max-height:600px){
  .game-layout{margin-bottom:3px;padding:7px}
  .field-heading h1{font-size:clamp(19px,3vw,23px)}
  .controls-footer{padding-top:3px;padding-bottom:max(2px,env(safe-area-inset-bottom))}
  .play-controls{padding-top:2px;padding-bottom:3px}
}
@media(max-height:520px) and (orientation:landscape){
  .topbar{min-height:58px;padding-top:3px;padding-bottom:3px}
  .wordmark{font-size:19px}
  .game-layout{margin:0 6px 3px;padding:5px}
  .field-heading{display:none}
  .footer{height:24px}
}

/* Keep every unlocked seed balance visible and selectable in the header. */
.topbar{z-index:20}
.top-status{position:relative;z-index:21}
.seed-balances{display:flex;align-items:center;gap:4px;flex:0 1 auto;min-width:0}
.seed-balance{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:37px;height:32px;padding:3px 5px;
  border:1px solid #66806a;border-radius:7px;background:#294c39;color:#f4efd9;
  font:600 11px/1 var(--font);font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation
}
.seed-balance-icon{font-size:16px;line-height:1}
.seed-balance strong{color:#efbf58;font-size:11px}
.seed-balance.is-selected{border-color:#efbf58;background:#315a40;box-shadow:inset 0 0 0 1px #efbf5866}
.seed-balance:disabled{opacity:.52;cursor:default}
.seed-balance.is-locked{opacity:.3;filter:grayscale(.8)}
.seed-balance:focus-visible{outline:3px solid #efbf58;outline-offset:2px}
@media(max-width:430px){
  .top-status{gap:5px}
  .save-status{font-size:8px}
  .save-status span{max-width:66px;overflow:hidden;text-overflow:ellipsis}
  .seed-balances{gap:3px}
  .seed-balance{min-width:34px;height:30px;padding:3px 4px;gap:3px}
  .seed-balance-icon{font-size:15px}
}
@media(max-width:360px){
  .top-status{gap:3px}
  .season #season-label{display:block;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .save-status span{max-width:40px}
  .seed-balances{gap:2px}
  .seed-balance{min-width:32px;padding:3px}
}

/* Farm Details: keep the disclosure above the header and make each section easy to scan. */
.details-menu{z-index:40}
.details-menu[open]{z-index:40}
.details-dropdown{
  z-index:41;max-height:min(75dvh,660px);padding:14px 18px 16px;
  border:1px solid #d7ddcb;border-radius:12px;background:#f3eedc;
  box-shadow:0 16px 34px #14271e38
}
.side-column{gap:0}
.field-tools{padding:12px 4px 14px}
.field-tools strong{font-size:13px}
.field-tools p{max-width:34ch;margin-top:5px;color:#536c5a;font-size:14px;line-height:1.45}
.side-column .ledger{padding:13px 4px 10px}
.ledger-top{margin-bottom:7px}
.ledger-top h2{font-size:20px}
.ledger-line{padding:9px 4px;font-size:12px}
.ledger-line strong{font-size:12px}
.chapter-card{padding:14px 4px 15px}
.chapter-copy h2{font-size:21px}
.chapter-copy p:last-child{max-width:34ch;color:#536c5a;font-size:14px;line-height:1.45}
.goal-track{height:6px;margin:12px 0 7px}
.goal-track-fill{width:100%;transform:scaleX(0);transform-origin:left;transition:transform .32s ease;border-radius:6px}
.goal-row{font-size:11px;color:#536c5a}
.goal-row strong{font-size:12px;color:#304833}
.inventory-section{padding:14px 4px 12px}
.section-head{margin-bottom:6px}
.section-head h2{font-size:18px}
.inventory-row{padding:9px 2px;gap:10px}
.item-copy b{font-size:12px;color:#304833}
.item-copy small{font-size:11px;color:#536c5a}
.item-count{font-size:12px}
.inventory-section .empty-note{margin:0;padding:8px 2px;border:0;border-radius:0;background:transparent;color:#536c5a;font-size:14px;line-height:1.45}
.quick-action{min-height:52px;padding:10px 4px}
.quick-action b{font-size:14px}
.quick-action small{font-size:11px;color:#536c5a}
.quick-icon{width:27px;height:27px;margin-right:10px}
.save-note{padding:13px 4px 2px;color:#536c5a;font-size:11px}
.save-dot{width:7px;height:7px}
@media(max-width:700px){
  .details-dropdown{position:fixed;top:calc(env(safe-area-inset-top) + 48px);left:10px;right:10px;width:auto;max-height:calc(100dvh - env(safe-area-inset-top) - 58px);padding:13px 15px 15px}
}
