/* Lane 499: provisions tray (bread and water) and the Hearth Pantry window. Original dark-bronze look to match the other windows; buttons are 44 px targets. */
#sz-provisions { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 168px); z-index: 900; display: flex; flex-wrap: wrap; gap: 6px; width: 120px; pointer-events: auto; font: 700 15px/1 Georgia, 'Times New Roman', serif; }
.sz-prov { min-width: 56px; min-height: 44px; padding: 6px 8px; border: 1px solid #8a6a2f; border-radius: 6px; background: rgba(26, 18, 10, 0.86); color: #f7e3b0; cursor: pointer; touch-action: manipulation; }
.sz-prov:hover { background: rgba(60, 40, 18, 0.92); }
.sz-prov:focus-visible { outline: 3px solid #ffe08a; outline-offset: 2px; }
.sz-prov.sz-empty { opacity: 0.55; }
#sz-provisions[data-using] .sz-prov { box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.35); }
.sz-prov-bar { flex: 1 0 100%; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.55); overflow: hidden; visibility: hidden; }
#sz-provisions[data-using] .sz-prov-bar { visibility: visible; }
.sz-prov-bar i { display: block; height: 100%; width: 0; background: #e8c25a; }
#sz-provisions[data-using="water"] .sz-prov-bar i { background: #6ec4e8; }
.sz-pantry { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 0 12px 12px; background: rgba(28, 20, 12, 0.96); color: #f3e6c8; border: 1px solid #8a6a2f; border-radius: 8px; font: 15px/1.35 Georgia, serif; z-index: 11000; }
.sz-pantry .msh-window-titlebar { margin: 0 -12px 8px; }
.sz-pantry-msg { margin: 0 0 8px; color: #d8c79c; font-style: italic; }
.sz-pantry-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(138, 106, 47, 0.45); }
.sz-pantry-icon { font-size: 26px; text-align: center; }
.sz-pantry-row button { min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid #8a6a2f; border-radius: 6px; background: #4a3416; color: #fbe9b8; font: 700 14px Georgia, serif; cursor: pointer; }
.sz-pantry-row button:disabled { opacity: 0.45; cursor: default; }
/* phone: right edge above the Dodge / Talk buttons, clear of the joystick and the quest dialog */
/* Lane 501: narrow portrait phone. The tray used to float at 392 px above the bottom, in the middle of the play area: it sat on the first-run welcome card's Skip button (lane 226) and its 120 px hid the corpses and mobs a tap was aimed at (lanes 370 / 498). It now stands as a 44 px column in the control cluster, between the stick (right edge 124 px) and the touch context buttons, level with the stick; the world above stays free to tap. */
/* MSH038FIX2: the column lane 501 gave phones applies to every touch layout (iPad portrait and landscape put the default left:10px/bottom:168px tray on top of the joystick, lane 120). */
html body.touch-controls #sz-provisions { left: calc(max(8px, env(safe-area-inset-left)) + 120px); right: auto; bottom: var(--tc-reach, 192px); width: 46px; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
html body.touch-controls #sz-provisions .sz-prov { min-width: 44px; padding: 6px 2px; font-size: 14px; }
@media (max-width: 520px) {
  #sz-provisions { left: calc(max(8px, env(safe-area-inset-left)) + 120px); right: auto; bottom: var(--tc-reach, 192px); width: 46px; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  #sz-provisions .sz-prov { min-width: 44px; padding: 6px 2px; font-size: 14px; }
}
