@charset "UTF-8";
/* Follow the growth mother: full-width recipe boards with an illustration on
   the left and live costs, effects and actions on the right. Recipes scroll
   naturally instead of shrinking their illustrations to fit one screen. */
#app .game-shell[data-page="growth"] .mother-growth { --scene-height: 138px; gap: 8px; }
#app .game-shell[data-page="growth"] .mother-growth-scene { height: var(--scene-height); }
#app .game-shell[data-page="growth"] .mother-growth > .tab-strip {
  margin-top: -24px; margin-bottom: 1px;
}
#app .game-shell[data-page="growth"] .mother-growth-boards {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 8px;
  align-items: start;
}
#app .game-shell[data-page="growth"] .mother-growth-board {
  display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: stretch;
  gap: 9px; min-height: 0; min-width: 0; margin: 0;
  border-width: 19px 13px 14px 17px !important;
  padding: 3px 4px 5px !important;
}
#app .game-shell[data-page="growth"] .mother-growth-board .mother-board-art {
  position: relative; width: 100%; height: auto; min-height: 132px; max-height: none;
  align-self: stretch; border: 1px solid #b89a61;
  background: linear-gradient(#c4dfb233,#294f3333),
    url(../assets/environments/scene-expedition-mother-v2.png) center / auto 100% no-repeat;
  overflow: hidden;
}
#app .game-shell[data-page="growth"] .mother-growth-board .mother-board-art > img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-height: none;
  object-fit: contain; object-position: center;
  filter: drop-shadow(0 2px 1px #4a3d2755);
}
#app .game-shell[data-page="growth"] .mother-growth-board .mother-board-content {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start;
  min-width: 0; gap: 6px;
}
#app .game-shell[data-page="growth"] .mother-growth-board .mother-board-content > * {
  grid-column: auto; grid-row: auto; min-width: 0;
}
#app .game-shell[data-page="growth"] .mother-board-content > h2 {
  min-height: 0; margin: 0; padding-bottom: 5px;
  border-bottom: 1px solid #d5b77d;
  color: #4b2d16; font-size: 16px; line-height: 1.3;
}
#app .game-shell[data-page="growth"] .mother-board-content > h2 > span {
  display: block; margin-top: 2px; color: #8a451d; font-size: 14px;
}
#app .game-shell[data-page="growth"] .mother-board-content h3,
#app .game-shell[data-page="growth"] .mother-board-content :is(.mother-upgrade-cost,.mother-upgrade-stats) > h3 {
  margin: 0 0 4px; font-size: 11px; line-height: 1.4;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-columns {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  align-items: start; gap: 7px;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-columns > * {
  grid-column: auto; grid-row: auto; min-width: 0;
}
#app .game-shell[data-page="growth"] .mother-board-content .resource-list {
  display: flex; flex-wrap: wrap; flex-direction: row; gap: 3px 7px;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-upgrade-cost > .resource-list,
#app .game-shell[data-page="growth"] .mother-growth-board.is-next .mother-board-content > .resource-list {
  flex-direction: column; flex-wrap: nowrap; align-items: start; gap: 4px;
}
#app .game-shell[data-page="growth"] .mother-board-content :is(.resource-value,.stat-row,.deficit,.sufficient) {
  font-size: 11px; line-height: 1.4;
}
#app .game-shell[data-page="growth"] .mother-board-content .resource-value {
  min-width: 0; gap: 3px; white-space: nowrap;
}
#app .game-shell[data-page="growth"] .mother-board-content .resource-value b,
#app .game-shell[data-page="growth"] .mother-board-content .stat-row b {
  font-size: 15px; line-height: 1.3; white-space: nowrap;
}
#app .game-shell[data-page="growth"] .mother-board-content .resource-icon {
  width: 16px; height: 18px; max-height: 18px; flex-shrink: 0; object-fit: contain;
}
#app .game-shell[data-page="growth"] .mother-upgrade-cost > .sufficient {
  position: static; margin: 4px 0 0; font-size: 11px;
}
#app .game-shell[data-page="growth"] .mother-board-content .stat-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: start;
  gap: 1px 3px; margin: 3px 0;
}
#app .game-shell[data-page="growth"] .mother-board-content .stat-row > span { flex-basis: 100%; }
#app .game-shell[data-page="growth"] .mother-board-content .stat-row small {
  font-size: 10px; line-height: 1.4; text-align: left; white-space: normal;
}
#app .game-shell[data-page="growth"] .mother-board-content :is(.mother-payment,.mother-next-shortfall) {
  margin: 0; padding-top: 5px; font-size: 11px; line-height: 1.45;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-payment > span {
  display: block; margin-bottom: 3px;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-payment .resource-value,
#app .game-shell[data-page="growth"] .mother-board-content .mother-payment .resource-value > span {
  font-size: 11px;
}
#app .game-shell[data-page="growth"] .mother-board-content .mother-payment .resource-value b { font-size: 14px; }
#app .game-shell[data-page="growth"] .mother-board-content > .button,
#app .game-shell[data-page="growth"] .mother-growth-board.is-next .mother-board-content > .text-button {
  min-height: 44px; margin-top: 2px; width: 100%; min-width: 0;
  border-image: url(../assets/ui/button-secondary-wood-plank.png) 62 78 62 78 fill stretch !important;
  border-width: 10px 13px !important; padding: 1px 3px !important;
  font-size: 13px; line-height: 1.3; white-space: normal;
}
#app .game-shell[data-page="growth"] .mother-growth-board:is(.is-current,.is-animal) .mother-board-content > .button {
  border-image: url(../assets/ui/button-upgrade-green-hammer.png) 62 78 62 165 fill stretch !important;
  border-width: 10px 13px 10px 27px !important;
}
/* Workshop grid placement lives in ui-visual-match.css. Keeping the former
   nested-grid positions here made display:contents recipes overlap. */
#app .game-shell[data-page="growth"] .mother-growth-board.is-next .mother-board-content > :is(.button,.text-button) {
  border-image: url(../assets/ui/button-depart-gold-footprints.png) 62 78 62 165 fill stretch !important;
  border-width: 10px 13px 10px 27px !important;
  color: #57351a; text-shadow: 0 1px #ffe7a1;
}
#app .game-shell[data-page="growth"] .mother-growth-board.is-animal .mother-animal-next {
  margin: 0; padding: 6px 0 0; width: 100%;
  border-left: 0; border-top: 1px solid #b89656;
}
#app .game-shell[data-page="growth"] .mother-growth-board.is-animal .mother-animal-next .resource-list {
  flex-direction: row; flex-wrap: wrap; align-items: start; gap: 3px 7px;
}
#app .game-shell[data-page="growth"] .mother-animal-next :is(h3,.resource-value,.sufficient,.deficit),
#app .game-shell[data-page="growth"] .mother-animal-next details > summary { font-size: 11px; line-height: 1.4; }
#app .game-shell[data-page="growth"] .mother-growth-board.is-animal .mother-animal-next .resource-value b { font-size: 14px; }
#app .game-shell[data-page="growth"] .mother-growth-board.is-animal .mother-animal-next .resource-icon { width: 16px; height: 18px; }
#app .game-shell[data-page="growth"] .mother-animal-next details > summary {
  min-height: 44px; margin: 0; padding: 4px 0;
}
#app .game-shell[data-page="growth"] .mother-board-content .notice {
  margin: 0; font-size: 11px; line-height: 1.45;
}

/* Bring the oak and its live output sign together. The oak sign is cropped
   below its face at its original ratio, never squeezed into a short texture. */
#app .game-shell[data-page="tap"] .mother-tap { --scene-height: 210px; gap: 3px; padding-bottom: 8px; }
#app .game-shell[data-page="tap"] .mother-tap-scene { height: 210px; }
#app .game-shell[data-page="tap"] .mother-acorn-target.tap-target { width: 180px; height: 190px; top: 47%; }
#app .game-shell[data-page="tap"] .mother-acorn-target.tap-target > .resource-icon {
  width: 180px; height: 180px; max-width: 180px; max-height: 180px; object-fit: contain;
}
#app .game-shell[data-page="tap"] .mother-acorn-target.tap-target > b { font-size: 13px; padding: 2px 7px; }
#app .game-shell[data-page="tap"] .mother-tap-info {
  height: 195px; min-height: 195px; margin-top: -22px; overflow: hidden;
}
#app .game-shell[data-page="tap"] .mother-tap-level { bottom: 0; font-size: 11px; }
#app .game-shell[data-page="tap"] .mother-tap-note { order: 4; margin: 0 0 4px; width: 100%; font-size: 11px; }
#app .game-shell[data-page="tap"] .mother-upgrade-split { order: 3; }
#app .game-shell[data-page="tap"] .mother-upgrade-inventory { order: 5; }
#app .game-shell[data-page="tap"] .mother-combo :is(b,span,p) { font-size: 10px; }
#app .game-shell[data-page="tap"] .mother-tap-metrics small { font-size: 10px; }
#app .game-shell[data-page="tap"] .mother-upgrade-split :is(.stat-row small,.mother-next-shortfall,.deficit,.sufficient) { font-size: 10px; line-height: 1.35; }

@container (max-width: 340px) {
  #app .game-shell[data-page="growth"] .mother-growth { --scene-height: 124px; }
  #app .game-shell[data-page="growth"] .mother-growth-board {
    grid-template-columns: 72px minmax(0,1fr); gap: 7px;
    padding-left: 2px !important; padding-right: 2px !important;
  }
  #app .game-shell[data-page="growth"] .mother-growth-board .mother-board-art { min-height: 120px; }
  #app .game-shell[data-page="growth"] .mother-board-content > h2 { font-size: 15px; }
  #app .game-shell[data-page="growth"] .mother-board-content .mother-columns,
  #app .game-shell[data-page="growth"] .mother-growth-board.is-next .mother-board-content { column-gap: 5px; }
  #app .game-shell[data-page="growth"] .mother-board-content .resource-icon { width: 14px; height: 16px; }
}

@container (min-width: 410px) {
  #app .game-shell[data-page="growth"] .mother-growth { --scene-height: 166px; }
  #app .game-shell[data-page="growth"] .mother-growth-board {
    grid-template-columns: 116px minmax(0,1fr); gap: 12px;
  }
  #app .game-shell[data-page="growth"] .mother-growth-board .mother-board-art { min-height: 154px; }
  #app .game-shell[data-page="growth"] .mother-board-content > h2 { font-size: 18px; }
  #app .game-shell[data-page="growth"] .mother-board-content > h2 > span { font-size: 16px; }
  #app .game-shell[data-page="growth"] .mother-board-content .resource-value b,
  #app .game-shell[data-page="growth"] .mother-board-content .stat-row b { font-size: 17px; }
  #app .game-shell[data-page="tap"] .mother-tap { --scene-height: 250px; }
  #app .game-shell[data-page="tap"] .mother-tap-scene { height: 250px; }
  #app .game-shell[data-page="tap"] .mother-acorn-target.tap-target,
  #app .game-shell[data-page="tap"] .mother-acorn-target.tap-target > .resource-icon { width: 210px; height: 210px; max-width: 210px; max-height: 210px; }
  #app .game-shell[data-page="tap"] .mother-tap-info { height: 240px; min-height: 240px; margin-top: -35px; }
}
