/* One continuous footer. Its grid row reserves space for every open panel. */
#app .interface .bottom-info{position:relative;inset:auto;display:block;align-self:end;width:100%;min-width:0;margin:12px 0 0;padding:0;border:1px solid #d7bf96;border-bottom:0;border-radius:20px 20px 0 0;background:#fff8e9;color:#51432f;box-shadow:0 -3px 12px #23311e24;overflow:visible;pointer-events:auto;z-index:6;container:hud / inline-size}
#app .bottom-info .hud-control-band{display:flex;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid #e2d1b1;min-width:0}
#app .bottom-info .hud-quick-controls{position:relative;display:flex;align-items:center;gap:8px;flex-shrink:0;margin-top:-13px;margin-left:-9px;padding:8px 10px 4px;border:1px solid #d7bf96;border-bottom:0;border-radius:20px 24px 0 0;background:#fff8e9}
#app .bottom-info .hud-quick-controls::after{content:'';position:absolute;left:0;right:0;bottom:-4px;height:5px;background:#fff8e9;pointer-events:none}
#app .bottom-info .speed{display:flex;flex-direction:row;gap:4px;margin:0;padding:0;background:none;border:0;box-shadow:none}
#app .bottom-info .hud-camera{display:none;gap:3px;margin-left:4px;padding-left:5px;border-left:1px solid #ddc8a4}.hud-camera button{width:30px;height:30px;border:1px solid #ddc8a4;border-radius:8px;background:#f8efdd;color:#53432c;font-weight:800}
#app .bottom-info .speed button,#app .bottom-info :is(#audioToggle,#skipNight){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:0;border:1px solid #ddc8a4;border-radius:11px;background:#f8efdd;color:#53432c;box-shadow:inset 0 1px #fff;font-size:16px;font-weight:750}
#app .bottom-info .speed button.active{background:#6c873e;color:#fff;border-color:#6c873e;box-shadow:inset 0 1px #ffffff30}
#app .bottom-info :is(#audioToggle,#skipNight){font-size:22px;margin-left:2px}
#app .bottom-info .hud-calendar-map{display:flex;align-items:center;flex:1;min-width:0;gap:5px}
#app .bottom-info .hud-clock{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:44px;width:auto;margin:0;padding:5px 4px;border:0;border-radius:0;background:none;box-shadow:none;color:#51432f}
#app .bottom-info .hud-clock strong{font-size:14px;line-height:1.3;white-space:normal}
#app .bottom-info #clockPeriod{font-size:23px}
#app .bottom-info .hud-map-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
#app .bottom-info .hud-map-actions button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:5px;border:1px solid #ddc8a4;border-radius:11px;background:#f8efdd;color:#53432c;box-shadow:none}
#app .bottom-info .hud-map-actions #center{width:50px}
#app .bottom-info .hud-map-actions .icon{width:23px;height:23px;filter:none}
#app .bottom-info .hud-map-actions #undo{color:#ba4b36;border-color:#c97a63;background:linear-gradient(#fff3ec,#f5d5c9)}
#app .bottom-info .hud-map-actions #undo:disabled{color:#a99083;border-color:#ddc8c0;background:#f3e7df;opacity:.7}
#app .bottom-info #stockSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:none;gap:0;padding:7px 4px;border:0;background:none;box-shadow:none;border-radius:0}
#app .bottom-info #stockSummary .stock-summary-item{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:72px;margin:0;padding:5px 8px;border:0;border-right:1px solid #e2d1b1;border-radius:0;background:none;box-shadow:none;color:#51432f;text-align:left;white-space:normal}
#app .bottom-info #stockSummary .stock-summary-item:last-child{border-right:0}
#app .bottom-info #stockSummary .resource-icon{width:34px;height:34px;min-width:34px}
#app .bottom-info #stockSummary .hud-resource-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
#app .bottom-info #stockSummary small{font-size:12px;line-height:1.25;color:#7b684b;font-weight:600}
#app .bottom-info #stockSummary .hud-product-name{font-size:14px;line-height:1.2;overflow-wrap:normal;word-break:normal}
#app .bottom-info #stockSummary strong{font-size:16px;line-height:1.25;color:#4f3c23;font-variant-numeric:tabular-nums;white-space:normal;word-break:normal;overflow-wrap:normal}
#app .bottom-info #stockSummary .hud-more{font-size:12px;color:#667c3e}
#app .bottom-info #stockSummary button[aria-expanded=true]{background:#edf1df}
#app .bottom-info #stockSummary .hud-alert{position:absolute;top:1px;right:5px;color:#a15c12;font-size:14px}
#app .bottom-info .tip-box,#app .bottom-info .tip-box.is-collapsed{display:flex;align-items:center;gap:8px;min-height:32px;max-height:64px;margin:0;padding:6px 10px;border:0;border-top:1px solid #e2d1b1;border-radius:0;background:none;box-shadow:none;overflow-y:auto;color:#6c5839;font-size:13px}
#app .bottom-info .tip-box[hidden]{display:none!important}
#app .bottom-info .tip-box #status{display:block;font-size:13px;line-height:1.3;white-space:normal;flex:1}
#app .bottom-info .tip-label{font-size:12px;text-transform:uppercase;flex-shrink:0}
#app .bottom-info .hud-tip-arrow{font-size:22px}
#app .bottom-info .tip-box[data-actionable=false] .hud-tip-arrow{display:none}
#app .bottom-info button:focus-visible,#app .bottom-info .tip-box:focus-visible{outline:3px solid #6c873e;outline-offset:-3px}
#app .interface #hudDetail{grid-area:2/2/3/3;position:relative;inset:auto;align-self:end;justify-self:end;display:flex;flex-direction:column;width:min(430px,100%);max-height:100%;min-height:0;padding:0;overflow:hidden;background:#fff8e9;color:#51432f;z-index:7;border:1px solid #cfb17d;border-radius:16px;pointer-events:auto}
#app .interface #hudDetail[hidden]{display:none!important}
#hudDetail .panel-body{overflow-y:auto;min-height:0;padding:10px;overscroll-behavior:contain}
#hudDetail article{padding:10px 0;border-bottom:1px solid #e2d1b1}
#hudDetail article:first-child{padding-top:0}
#hudDetail header{display:flex;align-items:center;gap:8px;font-size:16px}
#hudDetail dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin:10px 0;font-size:14px}
#hudDetail dt,#hudDetail dd{margin:0;line-height:1.35}#hudDetail dd{text-align:right;font-variant-numeric:tabular-nums}
#hudDetail button{min-height:44px;padding:8px 10px;background:#f6ebd3;color:#58432a;border:1px solid #ceb386;box-shadow:none;font-size:14px}
#hudDetail button[aria-pressed=true]{background:#e4edd5;border-color:#72904c;color:#405c2c}
/* Duas colunas: comprar/vender ocupa a primeira linha ao lado do paginador, e
   os dois atalhos antigos dividem a linha de baixo. Em fila simples o botão
   novo empurrava os outros para fora do card, que tem altura fixa. */
#hudDetail .hud-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
/* Todos os quatro com o mesmo corpo: uma linha, emoji na frente, sem quebrar
   nem transbordar — era o "Comprar sementes de trigo" saindo pela borda. */
#hudDetail .hud-detail-actions>button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hudDetail .hud-trade-action{grid-column:1;background:#e4edd5;border-color:#72904c;color:#365227;font-weight:600}
#hudDetail .hud-trade-action[disabled]{opacity:.55;background:#f1e9d6;border-color:#cdb68c;color:#8b7a5c}
#hudDetail .hud-detail-actions .hud-data-pager{grid-column:2;justify-self:end}
#hudDetail .hud-detail-note{font-size:13px;line-height:1.4;color:#7b684b}
#app .interface #hudDetail{box-shadow:none;filter:none;backdrop-filter:none}
#app .interface #hudDetail::before,#app .interface #hudDetail::after{content:none}
#hudDetail .hud-store-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
#hudDetail .hud-store-pager span{font-size:14px;white-space:nowrap}
#app .interface #hudDetail[data-group=storage]{height:auto;max-height:100%}
#hudDetail[data-group=storage] .panel-body{display:flex;flex-direction:column;overflow:visible}
#hudDetail[data-group=storage] .hud-store-pager{margin-top:auto;padding-top:10px}
#app .interface #hudDetail{width:min(330px,100%);border-radius:14px;height:auto}
#app #hudDetail .panel-head{padding:6px 10px;margin:0;gap:6px;border-bottom-width:1px}
#app #hudDetail .panel-head strong{font-size:16px}
#app #hudDetail .panel-head button{width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;padding:0;border-radius:9px;font-size:20px}
#app #hudDetail .panel-body{padding:10px;flex:0 1 auto}
#app #hudDetail article{padding:0;border:0}
#app #hudDetail article+article{margin-top:10px}
#app #hudDetail article header{font-size:14px;gap:6px;line-height:1.3}
#app #hudDetail article .resource-icon{width:24px;height:24px;min-width:24px}
#app #hudDetail dl{margin:8px 0;gap:3px;font-size:14px}
#app #hudDetail .panel-body button{min-height:32px;padding:5px 8px;font-size:14px;border-radius:9px;line-height:1.3}
#app #hudDetail .hud-store-pager{padding-top:8px;margin-top:8px;border-top:1px solid #e2d1b1;gap:6px}
#app #hudDetail[data-group=storage] .panel-body{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
#app #hudDetail[data-group=storage] article{display:contents}
#app #hudDetail[data-group=storage] article header,#app #hudDetail[data-group=storage] article dl{grid-column:1/-1}
#app #hudDetail[data-group=storage] article>button{grid-column:1;grid-row:3}
#app #hudDetail[data-group=storage] .hud-store-pager{grid-column:2;grid-row:3;padding:0;margin:0;border:0;justify-content:flex-end;gap:5px}
#app #hudDetail[data-group=storage] .hud-store-pager button{font-size:0;width:32px;min-width:32px;padding:0}
#app #hudDetail[data-group=storage] .hud-store-pager button::before{font-size:20px;content:'‹'}
#app #hudDetail[data-group=storage] .hud-store-pager button:last-child::before{content:'›'}
@media(pointer:coarse){#app #hudDetail .panel-head button{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px}#app #hudDetail .panel-body button{min-height:40px}}
#saveNotice{display:none!important}
@container hud (max-width:700px){
 #app .bottom-info .hud-control-band{flex-wrap:wrap;gap:0}
 #app .bottom-info .hud-calendar-map{flex-basis:100%;padding:4px 0}
 #app .bottom-info #stockSummary .stock-summary-item{flex-direction:column;gap:3px;text-align:center;padding:3px 4px;min-height:96px}
 #app .bottom-info #stockSummary .hud-resource-copy{align-items:center}
 #app .bottom-info #stockSummary .resource-icon{width:27px;height:27px;min-width:27px}
 #app .bottom-info #stockSummary .hud-product-name{font-size:13px}
 #app .bottom-info #stockSummary strong{font-size:14px}
}
@container hud (max-width:340px){#app .bottom-info #stockSummary{grid-template-columns:repeat(2,minmax(0,1fr))}#app .bottom-info #stockSummary .stock-summary-item{flex-direction:row;min-height:64px;text-align:left}#app .bottom-info #stockSummary .hud-resource-copy{align-items:flex-start}}
@media(max-height:499px){#app .interface{--rail-width:56px!important}#app .interface .left-tools{display:flex;flex-direction:column}#app .bottom-info #stockSummary .stock-summary-item{min-height:50px;padding-block:2px}#app .bottom-info #stockSummary{padding-block:3px}#app .bottom-info .tip-box{max-height:36px}}
#app .left-tools #sidebarExpand{display:flex}
#app .interface #generalPanel{grid-area:2/2/3/3;position:relative;inset:auto;align-self:start;justify-self:end;display:flex;flex-direction:column;width:min(430px,100%);max-height:100%;padding:0;overflow:hidden;z-index:7;background:#fff8e9;color:#51432f;border:1px solid #cfb17d;border-radius:16px}
#app .interface #generalPanel[hidden]{display:none!important}
#generalMenuActions{display:grid;gap:8px}
#generalMenuActions button{background:#f5e9d1;color:#51432f;border-color:#cdb68f;box-shadow:none;min-height:44px}
/* Continue the footer surface into the device inset without moving controls. */
#app .interface .bottom-info::after{content:'';position:absolute;left:-1px;right:-1px;top:100%;height:var(--safe-bottom);background:#fff8e9;pointer-events:none}
@container hud (max-width:280px){#app .bottom-info .hud-quick-controls{max-width:100%;flex-wrap:wrap;padding-inline:4px;gap:4px}#app .bottom-info .speed{gap:2px}#app .bottom-info .hud-calendar-map{flex-wrap:wrap}#app .bottom-info .hud-clock{flex-basis:100%}}
/* Phone-only compact summary: icon and category share one line. */
@media(max-width:600px){
 #app .bottom-info .hud-calendar-map{padding-block:0}
 #app .bottom-info #stockSummary{padding-block:4px}
 #app .bottom-info #stockSummary .stock-summary-item{display:grid;grid-template-columns:auto auto;align-content:start;justify-content:center;align-items:center;gap:3px 4px;min-height:80px;padding:3px 4px;text-align:center}
 #app .bottom-info #stockSummary .hud-resource-copy{display:contents}
 #app .bottom-info #stockSummary .resource-icon{grid-column:1;grid-row:1;width:20px;height:20px;min-width:20px;justify-self:end}
 #app .bottom-info #stockSummary .hud-resource-copy>small:first-child{grid-column:2;grid-row:1;justify-self:start;font-size:11px}
 #app .bottom-info #stockSummary .hud-product-name,#app .bottom-info #stockSummary strong,#app .bottom-info #stockSummary .hud-more{grid-column:1/-1;justify-self:center}
 #app .bottom-info #stockSummary .hud-product-name{font-size:13px;line-height:1.15}
 #app .bottom-info #stockSummary strong{font-size:14px;line-height:1.15}
 #app .bottom-info .tip-box{padding-block:4px;min-height:28px}
}

/* Demolition stays visible beside Map without enlarging the footer row. */
#app .bottom-info #removeToggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:5px;border:1px solid #ddc8a4;border-radius:11px;background:#f8efdd;box-shadow:none}
#app .bottom-info #removeToggle svg{width:34px;height:28px}
#app .bottom-info #removeToggle[aria-pressed=true]{background:#f0ce91;border-color:#a85d28;box-shadow:inset 0 0 0 2px #a85d28}
#app .bottom-info #removeToggle:focus-visible{outline:3px solid #6b843f;outline-offset:2px}
#app .bottom-info #skipNight:disabled{opacity:.5}
#app .bottom-info #skipNight:focus-visible{outline:3px solid #6b843f;outline-offset:2px}

/* A voluntary compact HUD leaves the farm visible while preserving its active alert. */
#app .bottom-info #hudMinimize,#app .bottom-info #hudRestore{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #ddc8a4;border-radius:50%;background:#f8efdd;color:#57432c;box-shadow:inset 0 1px #fff}
#app .bottom-info #hudMinimize svg,#app .bottom-info #hudRestore svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
#app .bottom-info #hudRestore{display:none;flex-basis:34px;width:34px;height:34px;min-height:34px;border-radius:10px;background:#6c873e;color:#fff;border-color:#5e7837;box-shadow:inset 0 1px #ffffff30}
#app .bottom-info .tip-box #tipAction{display:flex;align-items:center;gap:12px;min-width:0;flex:1;margin:0;padding:6px 8px;border:0;border-radius:8px;background:none;box-shadow:none;color:inherit;font:inherit;line-height:1.4;text-align:left;white-space:normal}
#app .bottom-info .hud-collapsed-empty{display:none;font-size:13px;line-height:1.3;color:#6c5839;flex:1}
#app .bottom-info .tip-box #tipAction:focus-visible,#app .bottom-info #hudMinimize:focus-visible,#app .bottom-info #hudRestore:focus-visible{outline:3px solid #6c873e;outline-offset:2px}
#app .bottom-info.is-minimized{margin-top:8px;border-radius:16px 16px 0 0}
#app .bottom-info.is-minimized .hud-control-band,#app .bottom-info.is-minimized #stockSummary{display:none}
#app .bottom-info.is-minimized .tip-box{display:flex!important;min-height:52px;max-height:none;padding:8px 12px;border-top:0;overflow:visible}
#app .bottom-info.is-minimized .tip-box #hudRestore{display:flex}
#app .bottom-info.is-minimized .hud-tip-arrow{display:none}
#app .bottom-info.is-minimized .tip-box #status:empty + .hud-collapsed-empty{display:block}
#app .interface .bottom-info:not(.is-minimized){margin-top:56px}
#app .bottom-info #hudMinimize{position:absolute;top:-50px;right:8px;width:44px;height:44px;min-height:44px;border-radius:12px;background:#6c873e;color:#fff;border-color:#5e7837;box-shadow:inset 0 1px #ffffff30,0 2px 6px #23311e24}
#app .bottom-info .tip-box .tip-label{white-space:nowrap;line-height:1.5;padding-block:2px}
#app .bottom-info .tip-box #status{min-width:0;overflow-wrap:anywhere}
#app .bottom-info #hudRestore{flex-basis:44px;width:44px;height:44px;min-height:44px}
@container hud (max-width:340px){#app .bottom-info .tip-box #tipAction{flex-wrap:wrap;gap:2px 8px}#app .bottom-info .tip-box #status{flex-basis:100%}}
#app .bottom-info.is-minimized .tip-box #status:empty{display:none}

/* Farm HUD: timber frame, inset cream panels and tactile controls. */
#app .interface .bottom-info{--hud-wood:linear-gradient(#a06b3899,#70411e55),url('../images/hud-wood.webp');border:3px solid #9c6c38;border-bottom:3px solid #70411f;border-radius:22px;background:#8d592c;background-image:var(--hud-wood);background-size:auto,420px 210px;padding:5px;box-shadow:inset 0 0 0 2px #e5b975,0 4px 0 #422b18,0 8px 20px #14250e66}
#app .interface .bottom-info::after{background:#805128}
#app .bottom-info .hud-control-band{position:relative;display:grid;grid-template-columns:1fr auto;gap:0;padding:0;border:0}
#app .bottom-info .hud-quick-controls{grid-column:1;justify-self:start;margin:-13px 0 0 -5px;padding:9px 10px 10px;border:2px solid #d1a165;border-bottom:0;border-radius:20px 20px 0 0;background:#986333;background-image:var(--hud-wood);background-size:auto,420px 210px;box-shadow:inset 0 2px 2px #ffdc9780}
#app .bottom-info .hud-quick-controls::after{display:none}
#app .bottom-info .hud-calendar-map{grid-column:1/-1;display:flex;padding:5px 8px;border:1px solid #dec299;border-radius:16px 16px 0 0;background:linear-gradient(#fffbed,#f8ecd0);box-shadow:inset 0 2px 0 #fffdf5;gap:8px}
#app .bottom-info .hud-clock{justify-content:flex-start;padding-inline:4px}
#app .bottom-info .speed button,#app .bottom-info #removeToggle,#app .bottom-info :is(#audioToggle,#skipNight),#app .bottom-info .hud-map-actions #center{border:1px solid #c79b5d;background:linear-gradient(#fff0ce,#edc48a);border-radius:12px;box-shadow:inset 0 2px 1px #fff9,0 3px 0 #714923,0 4px 7px #492b1933;color:#51351f}
#app .bottom-info :is(#audioToggle,#skipNight){background:linear-gradient(#fffbed,#f3e7cb);box-shadow:inset 0 2px #fff,0 2px 3px #8b623c40;border-color:#d9c39e}
#app .bottom-info .hud-map-actions #center .icon{color:#56882b;stroke-width:2.3}
#app .bottom-info .speed button.active,#app .bottom-info #hudMinimize,#app .bottom-info #hudRestore{background:linear-gradient(#8bcb46,#3f9227);border:2px solid #497b26;color:#fffde9;box-shadow:inset 0 2px 2px #d1f49a99,inset 0 -2px 3px #28621766,0 3px 0 #3c5720,0 4px 7px #352b2244;border-radius:12px}
#app .bottom-info #hudMinimize{position:relative;top:auto;right:auto;grid-column:2;grid-row:1;align-self:center;justify-self:end;margin:0 14px 7px 10px;width:46px;height:44px}
#app .interface .bottom-info:not(.is-minimized){margin-top:20px}
#app .bottom-info #stockSummary{padding:9px 5px;border:1px solid #dcc7a1;border-top:1px solid #e2d2b4;border-radius:0 0 16px 16px;background:linear-gradient(#fffbee,#f8edda);box-shadow:inset 0 -3px 1px #fff9,0 3px 0 #643f20}
#app .bottom-info #stockSummary .stock-summary-item{display:grid;grid-template-columns:auto auto;align-content:start;justify-content:center;align-items:center;gap:5px 7px;min-height:96px;text-align:center;padding:4px 8px;border-right-color:#d9c7a7}
#app .bottom-info #stockSummary .hud-resource-copy{display:contents}
#app .bottom-info #stockSummary .resource-icon{grid-column:1;grid-row:1;width:40px;height:40px;min-width:40px;justify-self:end;filter:drop-shadow(0 3px 2px #77542c25)}
#app .bottom-info #stockSummary .hud-resource-copy>small:first-child{grid-column:2;grid-row:1;justify-self:start;font-size:14px;color:#655035}
#app .bottom-info #stockSummary .hud-product-name,#app .bottom-info #stockSummary strong,#app .bottom-info #stockSummary .hud-more{grid-column:1/-1;justify-self:center}
#app .bottom-info #stockSummary .hud-product-name,#app .bottom-info #stockSummary strong,#app .bottom-info #stockSummary .hud-more{display:none}
#app .bottom-info #stockSummary .stock-summary-item{min-height:62px;align-content:center}
#app .bottom-info #stockSummary strong{padding:4px 12px;min-width:76px;border-radius:999px;background:#edd9ae55;color:#483119;font-weight:850}
#app .bottom-info .tip-box,#app .bottom-info.is-minimized .tip-box{position:relative;max-height:none;min-height:48px;margin:8px 0 0;padding:5px 9px;border:1px solid #bd9058;border-radius:15px;background:#88572d;background-image:var(--hud-wood);background-size:auto,420px 210px;box-shadow:inset 0 2px 2px #f6c57a66,inset 0 -2px 2px #422a1944,0 2px 0 #4e331d;overflow:visible;color:#fff4d6}
#app .bottom-info .tip-box #tipAction{padding:5px 8px;gap:12px}
#app .bottom-info .tip-box #status,#app .bottom-info .hud-collapsed-empty{color:#fff5df;font-size:14px;text-shadow:0 1px 2px #35271488;line-height:1.4}
#app .bottom-info .tip-box .tip-label{display:flex;align-items:center;gap:8px;color:#ffda6d;font-size:13px;font-weight:900;padding:2px 12px 2px 0;border-right:1px solid #e3bc6380;text-shadow:0 2px 1px #5c371d}
#app .bottom-info .tip-box .tip-label::before{content:'!';display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;background:linear-gradient(#ffe98a,#f3b82e);border:1px solid #c28c20;border-radius:50%;box-shadow:inset 0 1px #fff6bd,0 2px 3px #3c271d77;color:#684114;font-size:23px;line-height:1;text-shadow:none}
#app .interface .bottom-info.is-minimized{padding:3px;border-radius:18px;margin-top:8px}
#app .bottom-info.is-minimized .tip-box{margin:0;border:0;box-shadow:inset 0 1px 2px #f6c57a55;padding:6px 10px}
#app .bottom-info.is-minimized .hud-control-band,#app .bottom-info.is-minimized #stockSummary{display:none}
#app .bottom-info .tip-box::before{content:'';position:absolute;left:-21px;bottom:-5px;width:44px;height:60px;background:url('../images/start-foliage-v2.webp') center/contain no-repeat;pointer-events:none;transform:rotate(-15deg)}
#app .bottom-info .hud-quick-controls::before{content:'';position:absolute;left:6px;top:-23px;width:65px;height:35px;background:url('../images/start-foliage-v2.webp') center/contain no-repeat;pointer-events:none;z-index:-1}
@media(max-width:600px){
 #app .interface .bottom-info{padding:3px;border-width:2px;border-radius:18px}
 #app .bottom-info .hud-quick-controls{gap:5px;padding:7px 7px 9px;margin-left:-3px}
 #app .bottom-info .speed{gap:3px}
 #app .bottom-info #hudMinimize{margin-right:7px;margin-left:7px;width:44px}
 #app .bottom-info .hud-calendar-map{padding:5px 6px;gap:5px}
 #app .bottom-info .hud-clock strong{font-size:13px}
 #app .bottom-info #stockSummary{padding:6px 2px}
 #app .bottom-info #stockSummary .stock-summary-item{min-height:58px;gap:4px;padding:3px 3px}
 #app .bottom-info #stockSummary .resource-icon{width:27px;height:27px;min-width:27px}
 #app .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-size:11px}
 #app .bottom-info #stockSummary strong{min-width:0;padding:4px 8px;font-size:14px}
 #app .bottom-info .tip-box #tipAction{gap:8px;padding:5px 6px}
 #app .bottom-info .tip-box .tip-label{font-size:12px;gap:5px;padding-right:8px}
 #app .bottom-info .tip-box .tip-label::before{width:23px;height:23px;flex-basis:23px;font-size:20px}
 #app .bottom-info .tip-box #status{font-size:13px}
}
@container hud (max-width:360px){#app .bottom-info .tip-box #tipAction{flex-wrap:wrap;gap:4px}#app .bottom-info .tip-box #status{flex-basis:100%}#app .bottom-info .hud-quick-controls{gap:3px;padding-inline:4px}#app .bottom-info #hudMinimize{margin-inline:3px}#app .bottom-info #stockSummary .stock-summary-item{grid-template-columns:1fr}#app .bottom-info #stockSummary .resource-icon{grid-column:1;justify-self:center}#app .bottom-info #stockSummary .hud-resource-copy>small:first-child{grid-column:1;grid-row:2;justify-self:center}}

/* Keep legacy footer rules from washing out the wooden alert strip. */
#app .interface .bottom-info footer.tip-box{display:flex;min-height:50px;max-height:none;margin:8px 0 0;padding:7px 14px;border:1px solid #bb8747;border-radius:15px;background:#754620 url('../images/hud-wood.webp') center/420px 210px;box-shadow:inset 0 0 0 1px #efc27b66,inset 0 12px 22px #64361455,inset 0 -8px 14px #41241266,0 2px 0 #422716;overflow:visible;color:#fff5df}
#app .interface .bottom-info footer.tip-box #tipAction{gap:14px;padding:4px 5px;min-width:0}
#app .interface .bottom-info footer.tip-box .tip-label{margin:0;padding:2px 14px 2px 0;border-right:1px solid #e8be6699;font-family:'Avenir Next',Avenir,'Segoe UI',Arial,sans-serif;font-size:14px;font-weight:800;letter-spacing:.035em;line-height:1.5;color:#ffda70;text-shadow:0 1px 1px #4d2a16;white-space:nowrap;flex-shrink:0}
#app .interface .bottom-info footer.tip-box .tip-label::before{width:29px;height:29px;flex-basis:29px;font-size:24px;box-shadow:inset 0 1px #fff4b4,0 2px 2px #472b1966}
#app .interface .bottom-info footer.tip-box #status{display:block;color:#fff7e5;font-family:'Avenir Next',Avenir,'Segoe UI',Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.45;text-shadow:0 1px 1px #442c1d;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;overflow-wrap:anywhere}
#app .interface .bottom-info footer.tip-box::before{left:-16px;bottom:0;width:28px;height:38px}
#app .interface .bottom-info.is-minimized footer.tip-box{margin:0;min-height:54px;border:0;padding:7px 12px}
#app .interface .bottom-info.is-minimized footer.tip-box #status:empty{display:none}
@media(max-width:600px){#app .interface .bottom-info footer.tip-box{padding:6px 10px}#app .interface .bottom-info footer.tip-box #tipAction{gap:10px}#app .interface .bottom-info footer.tip-box .tip-label{font-size:13px;padding-right:10px;letter-spacing:.02em}#app .interface .bottom-info footer.tip-box #status{font-size:13px}#app .interface .bottom-info footer.tip-box .tip-label::before{width:25px;height:25px;flex-basis:25px;font-size:22px}}

/* Match the navigation and balance panel to the timber HUD. */
#app .interface .left-tools .action-rail{border:2px solid #b8894f;border-radius:17px;padding:4px;gap:6px;background:#94602f url('../images/hud-wood.webp') center/210px 210px;box-shadow:inset 0 0 0 1px #efc68a99,0 3px 0 #58361d,0 5px 10px #24311d40}
#app .interface .left-tools .menu-tile{width:44px;min-width:44px;border:1px solid #cba266;border-radius:11px;background:linear-gradient(#fff5dc,#efd3a2);color:#604224;box-shadow:inset 0 2px 1px #fff9,0 2px 0 #5c3b21}
#app .interface .left-tools .menu-tile[aria-pressed=true],#app .interface .left-tools .menu-tile[aria-expanded=true]{background:linear-gradient(#8ec64a,#4b922b)!important;color:#fff7de;border-color:#456e24;box-shadow:inset 0 2px 1px #d5f59a88,0 2px 0 #37581f!important}
#app .interface .left-tools #sidebarExpand{border:3px solid #a77943;border-radius:15px;background:linear-gradient(#fff1ce,#eac38a);color:#624220;box-shadow:inset 0 2px 1px #fff9,0 3px 0 #5f3c20,0 4px 8px #24311d33}
#app .interface .hud .farm-state{padding:4px;border:3px solid #b3864e;border-radius:19px;background:#956232 url('../images/hud-wood.webp') center/300px 150px;box-shadow:inset 0 0 0 1px #efc88c,0 3px 0 #57371e,0 5px 12px #23351f40;gap:0;overflow:hidden}
#app .interface .hud .farm-state .cash,#app .interface .hud .farm-state .level{background:linear-gradient(#fff8e2,#f4e3bf);padding:7px 9px;border:0;box-shadow:inset 0 2px 1px #fff9;min-width:0}
#app .interface .hud .farm-state .cash{border-radius:11px 0 0 11px;color:#67451f}
#app .interface .hud .farm-state .cash strong{white-space:nowrap}
#app .interface .left-tools .loan-menu-tile .nav-art{font-size:25px;filter:saturate(.85)}
#app .interface .hud .farm-state .level{border-radius:0 11px 11px 0;border-left:1px solid #ccb07c;color:#75509a}
#app .interface .hud .farm-state small{line-height:1.35}
#app .interface .hud .farm-state strong{line-height:1.4;text-shadow:0 1px #fff9}
#app[data-sidebar-expanded=true] .interface .left-tools .menu-tile{width:100%}
@media(max-width:600px){#app .interface .hud .farm-state{padding:3px;border-width:2px;border-radius:16px}#app .interface .hud .farm-state .cash,#app .interface .hud .farm-state .level{padding:5px 7px}}

/* Tablet density: one control line and horizontal resource cards. Phone rules stay intact. */
#app.tablet-viewport .interface .bottom-info:not(.is-minimized){margin-top:12px;padding:4px}
#app.tablet-viewport .bottom-info .hud-control-band{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;padding:3px 4px 7px}
#app.tablet-viewport .bottom-info .hud-quick-controls{grid-column:1;grid-row:1;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:5px}
#app.tablet-viewport .bottom-info .hud-quick-controls::before{display:none}
#app.tablet-viewport .bottom-info .hud-calendar-map{grid-column:2;grid-row:1;padding:3px 6px;border-radius:12px;gap:5px;min-width:0}
#app.tablet-viewport .bottom-info .hud-clock{min-width:0;padding:2px;gap:4px}
#app.tablet-viewport .bottom-info .hud-clock strong{font-size:14px;line-height:1.25}
#app.tablet-viewport .bottom-info #clockPeriod{font-size:21px}
#app.tablet-viewport .bottom-info #hudMinimize{grid-column:3;grid-row:1;margin:0;width:44px;height:44px}
#app.tablet-viewport .bottom-info #stockSummary{padding:5px 2px;border-radius:13px}
#app.tablet-viewport .bottom-info #stockSummary .stock-summary-item{display:flex;flex-direction:row;justify-content:center;align-items:center;min-height:64px;padding:3px 8px;gap:8px;text-align:left}
#app.tablet-viewport .bottom-info #stockSummary .resource-icon{width:32px;height:32px;min-width:32px}
#app.tablet-viewport .bottom-info #stockSummary .hud-resource-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
#app.tablet-viewport .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-size:14px;line-height:1.15}
#app.tablet-viewport .bottom-info #stockSummary .hud-product-name{font-size:14px;line-height:1.15}
#app.tablet-viewport .bottom-info #stockSummary strong{min-width:0;padding:2px 8px;font-size:16px;line-height:1.2}
#app.tablet-viewport .interface .bottom-info:not(.is-minimized) footer.tip-box{margin-top:6px;min-height:44px;padding:3px 10px}
#app.tablet-viewport .interface .bottom-info footer.tip-box #tipAction{min-height:38px;padding:2px 4px}

/* Desktop keeps the map dominant: the complete HUD is a single compact strip. */
/* These are mouse-and-keyboard shortcuts, not tablet controls.  A wide iPad in
   landscape can exceed 1000px, so width alone must not turn them on. */
@media (min-width:1000px) and (hover: hover) and (pointer: fine){
 #app .bottom-info .hud-camera{display:flex;gap:4px;margin-left:7px;padding-left:8px;border-left:1px solid #c98f52}
 #app .bottom-info .hud-camera button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:1px solid #c79b5d;border-radius:8px;background:linear-gradient(#fff4d8,#ebc485);box-shadow:inset 0 1px #fff9,0 2px 0 #714923;color:#51351f;font-size:15px;line-height:1}
 #app .interface .bottom-info:not(.is-minimized){display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:stretch}
 #app .bottom-info .hud-control-band{grid-column:1;grid-row:1;border-bottom:0;border-right:1px solid #e2d1b1}
 /* The category strip is deliberately recessed: controls live on the upper
    deck, while farm summaries begin on a curved lower deck. */
 #app .bottom-info #stockSummary{grid-column:2;grid-row:1;align-self:end;margin:42px 0 0 0;padding:5px 6px 4px;border:1px solid #d9bc8d;border-right:0;border-bottom:0;border-radius:120px 0 0 0;background:linear-gradient(#fffdf3,#f8ebd2);box-shadow:inset 0 2px #fff, -3px -2px 6px #5b3a1c1c;overflow:hidden}
 #app .interface .bottom-info footer.tip-box{grid-column:1/-1;grid-row:2}
 #app .interface .bottom-info:not(.is-minimized){margin-top:6px;border-radius:14px 14px 0 0}
 #app .bottom-info .hud-control-band{padding:5px 8px 7px;gap:5px}
 #app .bottom-info .hud-quick-controls{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:5px}
 #app .bottom-info .hud-quick-controls::before{display:none}
 #app .bottom-info .speed button,#app .bottom-info :is(#audioToggle,#skipNight){width:32px;height:32px;min-width:32px;min-height:32px;border-radius:9px;font-size:12px}
 #app .bottom-info #removeToggle{width:34px;height:32px;min-width:34px;min-height:32px;border-radius:9px}
 #app .bottom-info #hudMinimize{margin:0 0 0 auto;width:38px;height:36px;min-height:36px;border-radius:10px}
 #app .bottom-info .hud-calendar-map{margin:0 2px 1px;padding:3px 5px;border-radius:11px;gap:4px}
 #app .bottom-info .hud-clock,#app .bottom-info .hud-map-actions button{min-height:30px}
 #app .bottom-info #clockPeriod{font-size:18px}
 #app .bottom-info #stockSummary{grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 7px 4px}
 #app .bottom-info #stockSummary .stock-summary-item{min-height:38px;padding:2px 6px;gap:5px}
 #app .bottom-info #stockSummary .resource-icon{width:20px;height:20px;min-width:20px}
 #app .bottom-info #stockSummary small{font-size:10px}
 #app .interface .bottom-info footer.tip-box{min-height:24px;margin:2px 0 0;padding:1px 8px;border-radius:9px}
 #app .interface .bottom-info footer.tip-box #tipAction{min-height:26px;gap:8px;padding:1px 3px}
 #app .interface .bottom-info footer.tip-box .tip-label{font-size:12px;padding-right:8px;line-height:1.2}
 #app .interface .bottom-info footer.tip-box .tip-label::before{width:22px;height:22px;flex-basis:22px;font-size:18px}
 #app .interface .bottom-info footer.tip-box #status{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Desktop follows the approved dock: one textured wooden frame, with a
   rounded shoulder descending from the controls to the category deck. */
#app .bottom-info .desktop-dock-frame{display:none}
@media (min-width:1000px) and (hover:hover) and (pointer:fine){
 #app:not(.tablet-viewport) .bottom-info #hudMinimize,#app:not(.tablet-viewport) .bottom-info #hudRestore{display:none!important}
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized){isolation:isolate;position:relative;display:grid;grid-template-columns:52% minmax(0,1fr);grid-template-rows:auto auto;gap:0;width:100%;max-width:1440px;justify-self:center;align-self:end;padding:8px 19px 8px;border:0;border-radius:0;background:none;box-shadow:none;margin-top:8px;overflow:visible}
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized)::before,#app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized)::after{display:none}
 #app:not(.tablet-viewport) .bottom-info:not(.is-minimized)>.desktop-dock-frame{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;filter:drop-shadow(0 4px 3px #24190d66)}
 #app:not(.tablet-viewport) .bottom-info .hud-control-band,#app:not(.tablet-viewport) .bottom-info #stockSummary,#app:not(.tablet-viewport) .bottom-info footer.tip-box{position:relative;z-index:1}
 #app:not(.tablet-viewport) .bottom-info .hud-control-band{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:auto auto;column-gap:6px;row-gap:6px;border:0;padding:4px 14px 4px 6px;min-width:0;align-items:center}
 #app:not(.tablet-viewport) .bottom-info .hud-quick-controls,#app:not(.tablet-viewport) .bottom-info .speed,#app:not(.tablet-viewport) .bottom-info .hud-camera{display:contents}
 #app:not(.tablet-viewport) .bottom-info .hud-quick-controls::before,#app:not(.tablet-viewport) .bottom-info .hud-quick-controls::after{display:none}
 #app:not(.tablet-viewport) .bottom-info .speed button,#app:not(.tablet-viewport) .bottom-info #removeToggle,#app:not(.tablet-viewport) .bottom-info .hud-camera button,#app:not(.tablet-viewport) .bottom-info #hudMinimize{grid-row:1;justify-self:center;width:100%;max-width:30px;height:auto;aspect-ratio:1;min-width:0;min-height:0;margin:0;padding:0;display:grid;place-items:center;border:2px solid #b28550;border-radius:50%;background:linear-gradient(#fff9e6,#ead9b6);color:#493f26;box-shadow:inset 0 2px 1px #fffef7,inset 0 -2px 2px #c6a77488,0 0 0 2px #e9be7b,0 3px 3px #57371766;font-size:14px;font-weight:750;line-height:1}
 #app:not(.tablet-viewport) .bottom-info .hud-camera button{font-size:18px}
 #app:not(.tablet-viewport) .bottom-info #removeToggle svg{width:72%;height:65%}
 #app:not(.tablet-viewport) .bottom-info #hudMinimize{grid-column:10;align-self:center}
 #app:not(.tablet-viewport) .bottom-info .speed button.active,#app:not(.tablet-viewport) .bottom-info #hudMinimize,#app:not(.tablet-viewport) .bottom-info .hud-map-actions #center{background:linear-gradient(#739f45,#355824);border-color:#54732d;color:#fff9e1;box-shadow:inset 0 2px 2px #b6d785,inset 0 -2px 3px #223f24,0 0 0 2px #e5bb7a,0 3px 3px #57371766}
 #app:not(.tablet-viewport) .bottom-info .hud-calendar-map{grid-column:1/-1;grid-row:2;margin:0;padding:2px 7px;gap:6px;min-width:0;border:2px solid #c4985f;border-radius:34px;background:linear-gradient(#fffae9,#eee1c3);box-shadow:inset 0 2px 3px #fffdf2,0 0 0 2px #e8bd7e,0 3px 4px #633d2044}
 #app:not(.tablet-viewport) .bottom-info .hud-clock{min-width:0;min-height:28px;flex:1;gap:6px;padding:0 4px;justify-content:flex-start}
 #app:not(.tablet-viewport) .bottom-info .hud-clock strong{flex:1;padding:3px 8px;border:1px solid #fff4d5;border-radius:20px;background:linear-gradient(#ede3c7,#e5d5ae);box-shadow:inset 0 1px 3px #ac8c5540;font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:600;text-align:center;white-space:nowrap}
 #app:not(.tablet-viewport) .bottom-info #clockPeriod{font-size:22px;line-height:1}
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight),#app:not(.tablet-viewport) .bottom-info .hud-map-actions button{flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:3px;border:2px solid #ccb084;border-radius:50%;box-shadow:inset 0 2px #fff9,0 2px 3px #68472555}
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight){background:linear-gradient(#fffbed,#ecdfbf)}
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight) .nav-art{font-size:20px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions .icon{width:18px;height:18px}
 #app:not(.tablet-viewport) .bottom-info #hudMinimize svg{width:18px;height:18px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions{gap:6px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #center{width:28px;min-width:28px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #center .icon{color:#fff8db;stroke-width:2}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #undo{background:linear-gradient(#e55348,#b72722);border-color:#a84431;color:#fff8ec;box-shadow:inset 0 2px 2px #ffb7a4,0 2px 3px #68472555}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #undo:disabled{background:linear-gradient(#edd6c8,#ddc4b6);border-color:#c1a795;color:#947e6d;opacity:.75;box-shadow:inset 0 1px #fff9}
 #app:not(.tablet-viewport) .bottom-info #stockSummary{grid-column:2;grid-row:1;align-self:end;min-width:0;margin:26px 0 0 -5px;padding:3px 13px;border:2px solid #be955f;border-radius:38px 27px 20px 18px;background:linear-gradient(#fffbed,#efe3c6);box-shadow:inset 0 3px 4px #fffdf4,0 0 0 2px #e7b878,0 3px 3px #57371744;overflow:hidden}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .stock-summary-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:0 5px;gap:2px;border-left:0;border-right:1px solid #cfb384}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .stock-summary-item:last-child{border-right:0}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .resource-icon{width:24px;min-width:24px;height:24px;filter:drop-shadow(0 2px 2px #77542c33)}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.15;font-weight:600;color:#3f3b25}
 #app:not(.tablet-viewport) .bottom-info #stockSummary button[aria-expanded=true]{background:#dbe6bf;border-radius:15px}
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized) footer.tip-box{grid-column:1/-1;grid-row:2;background:linear-gradient(#26381c,#344a26);border:2px solid #c29a5c;border-radius:24px;min-height:24px;margin:4px 2px 0;padding:0 11px;box-shadow:inset 0 2px 3px #17260e66,0 1px 1px #f7c17a}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box::before{display:none}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box #tipAction{padding:0 3px;gap:10px;min-height:20px}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box .tip-label{font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:700}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box .tip-label::before{width:18px;height:18px;flex-basis:18px;font-size:15px}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box #status{font-size:14px;font-weight:400}
}

/* On phones the simplified category row no longer needs a large card. */
@media (max-width:600px){
 #app .interface .bottom-info{padding:2px;border-width:2px;border-radius:16px}
 #app .bottom-info #stockSummary{padding:3px 1px;border-radius:0 0 12px 12px}
 #app .bottom-info #stockSummary .stock-summary-item{min-height:48px;padding:2px;gap:3px}
 #app .bottom-info #stockSummary .resource-icon{width:24px;height:24px;min-width:24px}
 #app .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-size:11px}
 #app .interface .bottom-info footer.tip-box{min-height:38px;margin:4px 0 0;padding:2px 7px;border-radius:11px}
 #app .interface .bottom-info footer.tip-box #tipAction{min-height:32px;padding:2px;gap:7px}
 #app .interface .bottom-info footer.tip-box .tip-label{font-size:12px;padding-right:7px;line-height:1.1}
 #app .interface .bottom-info footer.tip-box .tip-label::before{width:23px;height:23px;flex-basis:23px;font-size:19px}
 #app .bottom-info .tip-box #status{font-size:12px;line-height:1.2}
}

/* Phones use the same carved farm dock as tablets and desktop, rearranged into
   touch-friendly rows so the map stays visible on a narrow screen. */
@media (pointer:coarse) and (max-width:699px),(pointer:coarse) and (max-height:499px){
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized){
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:6px;
  width:100%;
  min-width:0;
  margin-top:10px;
  padding:7px;
  border:3px solid #71421f;
  border-radius:24px 24px 13px 13px;
  background:
   linear-gradient(#dca35eaa,#855026aa),
   url('../images/hud-wood.webp') center/420px 210px;
  box-shadow:inset 0 0 0 2px #f0bd73,0 4px 0 #422b18,0 8px 18px #14250e66;
  overflow:visible;
 }
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized)::before{
  content:'';
  position:absolute;
  inset:5px;
  z-index:0;
  border:1px solid #e7b06b;
  border-radius:17px 17px 9px 9px;
  pointer-events:none;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-control-band,
 #app:not(.tablet-viewport) .bottom-info #stockSummary,
 #app:not(.tablet-viewport) .bottom-info footer.tip-box{position:relative;z-index:1}
 #app:not(.tablet-viewport) .bottom-info .hud-control-band{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-template-rows:44px 50px;
  align-items:center;
  gap:7px 4px;
  min-width:0;
  padding:3px 4px 2px;
  border:0;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-quick-controls,
 #app:not(.tablet-viewport) .bottom-info .speed{display:contents}
 #app:not(.tablet-viewport) .bottom-info .hud-camera{display:none}
 #app:not(.tablet-viewport) .bottom-info .hud-quick-controls::before,
 #app:not(.tablet-viewport) .bottom-info .hud-quick-controls::after{display:none}
 #app:not(.tablet-viewport) .bottom-info .speed button,
 #app:not(.tablet-viewport) .bottom-info #removeToggle,
 #app:not(.tablet-viewport) .bottom-info #hudMinimize{
  grid-row:1;
  justify-self:center;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  margin:0;
  padding:0;
  display:grid;
  place-items:center;
  border:2px solid #b28550;
  border-radius:50%;
  background:linear-gradient(#fff9e6,#ead9b6);
  color:#493f26;
  box-shadow:inset 0 2px 1px #fffef7,inset 0 -2px 2px #c6a77488,0 0 0 2px #e9be7b,0 3px 3px #57371766;
  font-size:16px;
  font-weight:800;
  line-height:1;
 }
 #app:not(.tablet-viewport) .bottom-info #removeToggle svg{width:32px;height:27px}
 #app:not(.tablet-viewport) .bottom-info #hudMinimize{grid-column:6;position:relative;top:auto;right:auto}
 #app:not(.tablet-viewport) .bottom-info .speed button.active,
 #app:not(.tablet-viewport) .bottom-info #hudMinimize,
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #center{
  background:linear-gradient(#8bcb46,#3f9227);
  border-color:#497b26;
  color:#fffde9;
  box-shadow:inset 0 2px 2px #d1f49a99,inset 0 -2px 3px #28621766,0 0 0 2px #e9be7b,0 3px 3px #57371766;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-calendar-map{
  grid-column:1/-1;
  grid-row:2;
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  height:50px;
  margin:0;
  padding:3px 5px;
  border:2px solid #c4985f;
  border-radius:26px;
  background:linear-gradient(#fffae9,#eee1c3);
  box-shadow:inset 0 2px 3px #fffdf2,0 0 0 2px #e8bd7e,0 3px 4px #633d2044;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-clock{
  justify-content:flex-start;
  min-width:0;
  min-height:44px;
  padding:0 2px;
  gap:4px;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-clock strong{
  flex:1;
  min-width:0;
  padding:5px 6px;
  border:1px solid #fff4d5;
  border-radius:18px;
  background:linear-gradient(#ede3c7,#e5d5ae);
  box-shadow:inset 0 1px 3px #ac8c5540;
  font-family:Georgia,'Times New Roman',serif;
  font-size:13px;
  font-weight:700;
  line-height:1.15;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
 }
 #app:not(.tablet-viewport) .bottom-info #clockPeriod{font-size:22px;line-height:1}
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight),
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions button,
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #center{
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:6px;
  border:2px solid #ccb084;
  border-radius:50%;
  box-shadow:inset 0 2px #fff9,0 2px 3px #68472555;
 }
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight){margin:0;background:linear-gradient(#fffbed,#ecdfbf)}
 #app:not(.tablet-viewport) .bottom-info :is(#audioToggle,#skipNight) .nav-art{font-size:22px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions{gap:5px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions .icon{width:23px;height:23px}
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #undo{
  background:linear-gradient(#e55348,#b72722);
  border-color:#a84431;
  color:#fff8ec;
  box-shadow:inset 0 2px 2px #ffb7a4,0 2px 3px #68472555;
 }
 #app:not(.tablet-viewport) .bottom-info .hud-map-actions #undo:disabled{
  background:linear-gradient(#edd6c8,#ddc4b6);
  border-color:#c1a795;
  color:#947e6d;
  opacity:.75;
  box-shadow:inset 0 1px #fff9;
 }
 #app:not(.tablet-viewport) .bottom-info #stockSummary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  min-width:0;
  margin:0 2px;
  padding:4px 5px;
  border:2px solid #be955f;
  border-radius:20px;
  background:linear-gradient(#fffbed,#efe3c6);
  box-shadow:inset 0 3px 4px #fffdf4,0 0 0 2px #e7b878,0 3px 3px #57371744;
  overflow:hidden;
 }
 #app:not(.tablet-viewport) .bottom-info #stockSummary .stock-summary-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:0;
  min-height:52px;
  padding:2px;
  border:0;
  border-right:1px solid #cfb384;
  border-radius:0;
  background:none;
  text-align:center;
 }
 #app:not(.tablet-viewport) .bottom-info #stockSummary .stock-summary-item:last-child{border-right:0}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .resource-icon{
  grid-column:auto;
  grid-row:auto;
  justify-self:auto;
  width:27px;
  height:27px;
  min-width:27px;
  filter:drop-shadow(0 2px 2px #77542c33);
 }
 #app:not(.tablet-viewport) .bottom-info #stockSummary .hud-resource-copy{display:flex;min-width:0}
 #app:not(.tablet-viewport) .bottom-info #stockSummary .hud-resource-copy>small:first-child{
  display:block;
  min-width:0;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(10px,2.9vw,12px);
  font-weight:700;
  line-height:1.1;
  color:#3f3b25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
 }
 #app:not(.tablet-viewport) .bottom-info #stockSummary button[aria-expanded=true]{background:#dbe6bf;border-radius:13px}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box,
 #app:not(.tablet-viewport) .interface .bottom-info.is-minimized footer.tip-box{
  min-height:44px;
  max-height:52px;
  margin:0 2px 1px;
  padding:1px 8px;
  border:2px solid #c29a5c;
  border-radius:22px;
  background:linear-gradient(#26381c,#344a26);
  box-shadow:inset 0 2px 3px #17260e66,0 1px 1px #f7c17a;
  overflow:hidden;
  color:#fff5df;
 }
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box::before{display:none}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box #tipAction{
  min-height:44px;
  gap:8px;
  padding:1px 3px;
  overflow:hidden;
 }
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box .tip-label{
  gap:5px;
  padding:0 8px 0 0;
  border-right:1px solid #e8be6699;
  font-family:Georgia,'Times New Roman',serif;
  font-size:12px;
  font-weight:700;
  line-height:1.15;
 }
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box .tip-label::before{
  width:24px;
  height:24px;
  flex-basis:24px;
  font-size:20px;
 }
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box #status{
  min-width:0;
  color:#fff7e5;
  font-size:12px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
 }
 #app:not(.tablet-viewport) .bottom-info #hudRestore{
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  border-radius:50%;
 }
 #app:not(.tablet-viewport) .bottom-info.is-minimized .hud-control-band,
 #app:not(.tablet-viewport) .bottom-info.is-minimized #stockSummary{display:none}
}

/* A rotated phone has room for the tablet-like side-by-side deck. */
@media (pointer:coarse) and (min-width:600px) and (max-height:499px){
 #app:not(.tablet-viewport) .interface .bottom-info:not(.is-minimized){grid-template-columns:52% minmax(0,1fr);gap:0;padding-inline:10px}
 #app:not(.tablet-viewport) .bottom-info .hud-control-band{grid-column:1;grid-row:1;padding-right:8px}
 #app:not(.tablet-viewport) .bottom-info #stockSummary{grid-column:2;grid-row:1;align-self:end;margin:28px 0 0 -2px;min-height:60px}
 #app:not(.tablet-viewport) .interface .bottom-info footer.tip-box{grid-column:1/-1;grid-row:2;margin-top:5px}
}

/* "Pular para o amanhecer" com nome: só o 🌅 não dizia o que o botão faz.
   Aparece só à noite. No telefone fica só o ícone: o nome tirava o espaço do
   relógio, que virava "D…" num iPhone de 393 px. */
#app .bottom-info #skipNight{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:0 10px 0 5px!important;border-radius:16px!important;gap:4px}
#app #skipNight .skip-label{font-size:12px;color:#51351f;font-weight:750;letter-spacing:.01em;white-space:nowrap}
@media (max-width:699px){#app #skipNight .skip-label{display:none}#app .bottom-info #skipNight{padding:0 3px!important}}
/* Compra rápida no card do abrigo (631). */
.coop-quick-buy{display:grid;gap:6px;margin:8px 0;padding:8px;border-radius:10px;background:rgba(255,248,230,.55);border:1px solid rgba(120,90,40,.18)}
.coop-quick-buy .market-note{margin:0}
.coop-quick-buy .field-actions{margin:0}
