@charset "UTF-8";
/* Body windows remove the source PNGs' transparent surrounds. End caps keep
   one scale on both axes; only their empty middle spans fit the live labels. */
#app .game-shell[data-page] button.illustrated-button:is([data-button-skin="returnCamp"],[data-button-skin="collect"]):is(.button,.nav-item,.text-button),
#app .game-shell[data-page="trip"] .mother-trip-cargo .mother-trip-actions button.illustrated-button:is([data-button-skin="returnCamp"],[data-button-skin="collect"]),
#app .game-shell[data-page="trip"] .supply-trip-cargo .mother-trip-actions button.illustrated-button:is([data-button-skin="returnCamp"],[data-button-skin="collect"]),
#modal-root .modal button.modal-confirm-return-camp.illustrated-button[data-button-skin="returnCamp"] {
  --trip-action-art-height: 52px;
  height: 56px; min-height: 56px;
  padding: 2px var(--trip-button-right) 2px var(--trip-button-left) !important;
}
:is(#app,#modal-root) button.illustrated-button[data-button-skin="returnCamp"] {
  --trip-button-left: calc(var(--trip-action-art-height) * 560 / 401);
  --trip-button-right: calc(var(--trip-action-art-height) * 145 / 401);
}
:is(#app,#modal-root) button.illustrated-button[data-button-skin="collect"] {
  --trip-button-left: calc(var(--trip-action-art-height) * 550 / 455);
  --trip-button-right: calc(var(--trip-action-art-height) * 155 / 455);
}
@container (max-width: 350px) {
  #app .game-shell[data-page="trip"] .mother-trip-cargo .mother-trip-actions button.illustrated-button:is([data-button-skin="returnCamp"],[data-button-skin="collect"]) {
    --trip-action-art-height: 48px; font-size: 13px;
  }
}

/* Homecoming has one scrolling sheet and a reserved action row, so the next
   journey and growth entry remain reachable beside a long return receipt. */
#app .game-shell[data-page="trip"] .screen-scroll:has(> .mother-return) {
  overflow: hidden;
}
#app .game-shell[data-page="trip"] .mother-return {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 6px;
  padding: 4px 8px;
}
#app .game-shell[data-page="trip"] .mother-return-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-padding: 6px;
  padding-bottom: 4px;
}
#app .game-shell[data-page="trip"] .mother-return-content::-webkit-scrollbar { display: none; }
#app .game-shell[data-page="trip"] .mother-return-content > * { flex-shrink: 0; }
#app .game-shell[data-page="trip"] .mother-return-content > .log-entry {
  margin: 0;
  --recipe-frame-scale: .055;
}
#app .game-shell[data-page="trip"] .mother-return-actions {
  flex: none;
  position: relative;
  z-index: 1;
  min-height: 64px;
  padding: 3px 0;
}

/* Keep the real journey controls in view while the forest and full ledger
   scroll together. Extra materials or expanded details never displace them. */
#app .game-shell[data-page="trip"] .screen-scroll:has(> .mother-trip[data-trip-kind="expedition"]) {
  overflow: hidden;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 4px;
  padding: 3px 4px 4px;
}
#app .game-shell[data-page="trip"] .mother-trip-scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b29761 transparent;
  scroll-padding: 6px;
  padding-bottom: 5px;
}
#app .game-shell[data-page="trip"] .mother-trip-scroll > * { flex-shrink: 0; }
/* The scene now lives inside this scroll column. Its old negative margins
   belonged to the outer grid and create a horizontal scrollbar here. */
#app .game-shell[data-page="trip"] .mother-trip-scroll > .mother-trip-scene {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
}
#app .game-shell[data-page="trip"] .mother-trip-scroll > .mother-trip-status {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock {
  position: relative;
  isolation: isolate;
  flex: none;
  min-height: 70px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock > .paper-frame-skin { --paper-frame-scale: .05; }
#app .game-shell[data-page="trip"] .mother-trip-action-dock > .mother-trip-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock button.illustrated-button {
  --trip-action-art-height: 52px;
  height: 56px;
  min-height: 56px;
  font-size: 15px;
  padding: 2px var(--trip-button-right) 2px var(--trip-button-left) !important;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-action-dock > .mother-trip-bag {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1px;
  padding: 0 2px;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock h3 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock h3 small { font-size: 11px; font-weight: normal; }
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-list:has(> .resource-value:nth-child(5)) { grid-template-columns: repeat(5,minmax(0,1fr)); }
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-list:has(> .resource-value:nth-child(6)) { grid-template-columns: repeat(6,minmax(0,1fr)); }
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-value {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  justify-items: center;
  gap: 0;
  min-width: 0;
  line-height: 1;
}
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-icon {
  width: 20px;
  height: 23px;
  margin: 0;
  object-fit: contain;
}
/* The source text remains accessible. The compact rail identifies each
   material by its existing icon; the complete ledger retains its names. */
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-value > span { font-size: 0; line-height: 0; }
#app .game-shell[data-page="trip"] .mother-trip-action-dock .resource-value b {
  display: inline-block;
  font-size: 15px;
  line-height: 19px;
  color: #694526;
}

/* Five and six materials use one full-width row with an explicit caption.
   Both sets retain identical columns and measured number/icon slots. */
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] :is(.mother-trip-bag,.mother-trip-expected):has(> .resource-list > .resource-value:nth-child(5)) {
  grid-template-columns: minmax(0,1fr);
  gap: 2px;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-list:has(> .resource-value:nth-child(5)) {
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 3px;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-list:has(> .resource-value:nth-child(6)) {
  grid-template-columns: repeat(6,minmax(0,1fr));
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .resource-list:has(> .resource-value:nth-child(5)) > .resource-value {
  grid-template-columns: 20px minmax(0,1fr);
  gap: 2px;
  font-size: 10px;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .resource-list:has(> .resource-value:nth-child(5)) .resource-icon {
  width: 20px;
  height: 25px;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .resource-list:has(> .resource-value:nth-child(5)) .resource-value > span {
  line-height: 14px;
}
#app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .resource-list:has(> .resource-value:nth-child(5)) .resource-value b {
  font-size: 15px;
  line-height: 19px;
}
@container (max-width: 350px) {
  #app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] { --scene-height: 132px; }
  #app .game-shell[data-page="trip"] .mother-trip-action-dock button.illustrated-button { font-size: 13px; }
  #app .game-shell[data-page="trip"] .mother-trip[data-trip-kind="expedition"] .resource-list:has(> .resource-value:nth-child(5)) > .resource-value {
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
    text-align: center;
    gap: 0;
  }
}
