@charset "UTF-8";
/* Continue the hero's exact forest plate underneath the live panels. One
   non-repeating plate replaces the unrelated tiled forest strips. */
#app .game-shell:is([data-page="growth"],[data-page="tap"],[data-page="trip"],[data-page="adventure"]) { container-type: inline-size; }
#app .game-shell:is([data-page="growth"],[data-page="tap"],[data-page="trip"],[data-page="adventure"]) .screen-scroll { scrollbar-width: none; }
#app .game-shell:is([data-page="growth"],[data-page="tap"],[data-page="trip"],[data-page="adventure"]) .screen-scroll::-webkit-scrollbar { display: none; }
#app .game-shell[data-page="growth"] .mother-growth { --forest-plate: url(../assets/environments/scene-growth-mother-v2.png); --scene-height: 43.333333cqw; }
#app .game-shell[data-page="tap"] .mother-tap { --forest-plate: url(../assets/environments/scene-tap-mother-v2.png); --scene-height: 66.666667cqw; }
#app .game-shell[data-page="trip"] .mother-trip { --forest-plate: url(../assets/environments/scene-active-mother-v2.png); --scene-height: 80cqw; }
#app .game-shell[data-page="adventure"] .mother-adventure { --forest-plate: url(../assets/environments/scene-expedition-mother-v2.png); --scene-height: 53.888889cqw; }
#app .game-shell[data-page] :is(.mother-growth,.mother-tap,.mother-trip,.mother-adventure) {
  --forest-offset: calc(var(--scene-height) * .42 - var(--portrait-width) * .63);
  --forest-bottom: calc(var(--forest-offset) + var(--portrait-width) * 1.5);
  background-color: #203e30;
  background-image: linear-gradient(to bottom, transparent calc(var(--forest-bottom) - 80px), #203e30 var(--forest-bottom)), var(--forest-plate);
  background-position: 0 0, center var(--forest-offset);
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat;
}
#app .game-shell[data-region="spring-woods"] :is(.mother-adventure,.mother-trip) {
  --forest-plate: url(../assets/environments/scene-spring-valley-portrait-v1.png);
  --forest-offset: calc(var(--scene-height) * .42 - var(--portrait-width) * .74627);
  --forest-bottom: calc(var(--forest-offset) + var(--portrait-width) * 1.77683);
}
/* Route-specific art overrides the regional spring plate. The storm source
   is square (1254x1254), so its camera and continuation use that native ratio. */
#app .game-shell[data-page="trip"] .mother-trip[data-trip-scene="storm"] {
  --forest-plate: url(../assets/regions/scene-route-storm-mother-v1.png);
  --forest-offset: calc(var(--scene-height) * .8 - var(--portrait-width) * .8);
  --forest-bottom: calc(var(--forest-offset) + var(--portrait-width));
}
#app .game-shell[data-page] :is(.mother-growth-scene,.mother-tap-scene,.mother-trip-scene) { height: var(--scene-height); background: none; }
#app .game-shell[data-page] :is(.mother-growth-scene,.mother-tap-scene,.mother-trip-scene) .scene-vignette { background: none !important; }
#app .game-shell[data-page="adventure"] .mother-route-showcase { height: var(--scene-height); min-height: var(--scene-height); background: none; }

/* Trip status is a HUD over the same scene, rather than a separate strip. */
#app .game-shell[data-page="trip"] .mother-trip-status { grid-column: 1; grid-row: 1; align-self: start; position: relative; z-index: 3; margin-top: 4px; }
#app .game-shell[data-page="trip"] .mother-trip-scene { grid-column: 1; grid-row: 1; margin-top: -3px; }
#app .game-shell[data-page="trip"] .mother-trip-objective { grid-template-columns: 70px minmax(0,1fr); gap: 8px; }
#app .game-shell[data-page="trip"] .mother-trip-objective .mother-board-art { width: 70px; height: 100%; min-height: 100px; }
#app .game-shell[data-page="trip"] .mother-trip-objective .mother-board-content { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
#app .game-shell[data-page="trip"] .mother-trip-objective .mother-board-content > * { grid-column: 1; grid-row: auto; }
#app .game-shell[data-page="trip"] .mother-trip-objective .button { justify-self: stretch; width: 100%; min-width: 150px; white-space: nowrap; font-size: 13px; }
#app .game-shell[data-page="trip"] .mother-trip-objective .stat-row { display: flex; flex-wrap: wrap; justify-content: start; gap: 2px 5px; font-size: 10px; }
#app .game-shell[data-page="trip"] .mother-trip-objective .stat-row small { white-space: normal; }

/* Each portrait is one composed illustration, never a tiled wallpaper. */
#app .game-shell[data-page="growth"] .mother-growth-board .mother-board-art { background-size: auto, auto 100%; background-position: center, center; background-repeat: no-repeat; }
#app .game-shell[data-page="growth"] .mother-growth-board {
  border-image: url(../assets/ui/ui-camp-goal-board.png) 190 130 140 175 fill stretch !important;
  border-width: 23px 16px 17px 21px !important;
}
#app .game-shell[data-page="growth"] .mother-growth > .mother-upgrade-inventory {
  border-width: 7px 10px !important; padding: 0 5px !important;
  border-image: url(../assets/ui/button-secondary-wood-plank.png) 62 78 62 78 fill stretch !important;
  color: #fff0cd; box-shadow: none;
}
#app .game-shell[data-page="growth"] .mother-growth > .mother-upgrade-inventory > summary { min-height: 44px; color: #fff0cd; font-size: 11px; }
#app .game-shell[data-page="growth"] .mother-growth > .mother-upgrade-inventory[open] { background: #f6e8c4; color: #4c321c; }
#app .game-shell[data-page="growth"] .mother-growth > .mother-upgrade-inventory[open] { border-image: url(../assets/ui/ui-upgrade-recipe-frame.png) 160 130 160 130 fill stretch !important; border-width: 12px 10px !important; }
#app .game-shell[data-page="growth"] .mother-growth > .mother-upgrade-inventory[open] > summary { color: #4c321c; }
#app .game-shell[data-page="growth"] .growth-balance-preview { padding-top: 6px; margin-top: 6px; border-top: 1px solid #ae8c50; }

/* The offline cost status belongs beneath the materials, not between titles. */
.mother-offline-modal .mother-upgrade-cost > .sufficient { position: static !important; margin-top: 3px; }
.mother-offline-modal .mother-offline-upgrade > .mother-upgrade-inventory { border-width: 5px 7px !important; padding: 0 4px !important; }
.mother-offline-modal .mother-offline-upgrade > .mother-upgrade-inventory > summary { min-height: 44px; }

/* The route signs and map scroll remain useful in the portrait DOM map. */
#app .game-shell[data-page="adventure"] .route-showcase-art > img.route-glyph { position: absolute; right: 1px; bottom: 1px; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 1px 1px #152b23); }
#app .game-shell[data-page="adventure"] .route-no > img.route-glyph { display: block; width: 33px; height: 38px; object-fit: contain; }
#app .game-shell[data-page="adventure"] .route-chooser > .tab-strip {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px;
  border: solid transparent; border-width: 12px 16px;
  border-image: url(../assets/ui/ui-region-tabs.png) 260 340 250 340 fill stretch;
  padding: 0; background: none;
}
#app .game-shell[data-page="adventure"] .route-chooser > .tab-strip .pill { min-height: 44px; color: #654528; background: none; border: 0; border-radius: 0; box-shadow: none; }
#app .game-shell[data-page="adventure"] .route-chooser > .tab-strip .pill.selected { color: #345d2c; box-shadow: inset 0 -2px #6a8e42; font-weight: 900; }
#app .game-shell[data-page="growth"] .mother-growth > .art-board[data-ui-key="ui-exchange-ledger"] {
  display: flex; aspect-ratio: 1606/900; min-height: 0; padding: 28px 30px 25px;
  background: url(../assets/ui/ui-exchange-ledger.png) center / contain no-repeat; margin: 0;
}
#app .game-shell[data-page="growth"] .mother-growth > .art-board[data-ui-key="ui-exchange-ledger"] b { font-size: 15px; }
#app .game-shell[data-page="growth"] .mother-growth > .art-board[data-ui-key="ui-exchange-ledger"] p { font-size: 11px; }
#app .game-shell[data-page="growth"] .market-section-heading {
  border: solid transparent; border-width: 9px 11px;
  border-image: url(../assets/ui/ui-upgrade-recipe-frame.png) 100 125 95 125 fill stretch;
  padding: 3px 5px; color: #4c321c;
}
#app .game-shell[data-page="growth"] .market-section-heading .section-title { flex-wrap: wrap; margin: 0; gap: 3px 8px; }
#app .game-shell[data-page="growth"] .market-section-heading h2 { font-size: 15px; }
#app .game-shell[data-page="growth"] .market-section-heading .section-title > span { color: #654a2d; font-size: 11px; }

/* Give the tapping mechanic its own oak sign and paw track at native scale. */
#app .game-shell[data-page="tap"] .mother-tap-info {
  position: relative; display: block;
  border: 0 !important; border-image: none !important; border-radius: 0;
  height: calc((100cqw - 8px) * .746575); min-height: 0;
  padding: 18.5% 16% 30% 17.2% !important;
  background: url(../assets/ui/ui-tap-output-board.png) center top / 100% auto no-repeat;
  box-shadow: none;
}
#app .game-shell[data-page="tap"] .mother-tap-level { position: absolute; bottom: 44px; left: 0; width: 100%; text-align: center; font-size: 10px; color: #fff0cc; text-shadow: 0 1px #57341c; }
#app .game-shell[data-page="tap"] .mother-tap-metrics { gap: 5px; padding-bottom: 3px; }
#app .game-shell[data-page="tap"] .mother-tap-metrics > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: start; gap: 0 2px; }
#app .game-shell[data-page="tap"] .mother-tap-metrics > div:first-child { padding-left: 30px; }
#app .game-shell[data-page="tap"] .mother-tap-metrics span { flex-basis: 100%; font-size: 9px; }
#app .game-shell[data-page="tap"] .mother-tap-metrics b { font-size: 14px; line-height: 1.1; }
#app .game-shell[data-page="tap"] .mother-tap-metrics small { font-size: 8px; }
#app .game-shell[data-page="tap"] .mother-combo { margin-top: 3px; }
#app .game-shell[data-page="tap"] .mother-combo :is(b,span,p) { font-size: 9px; line-height: 1.25; }
#app .game-shell[data-page="tap"] .mother-combo > p { margin: 2px 0 0; }
#app .game-shell[data-page="tap"] .mother-tap-note { justify-self: center; width: calc(100% - 30px); margin: -27px 0 3px; padding: 5px 8px; border: 1px solid #a88a51; border-radius: 2px; background: #f5e7c5; color: #63462c; font-size: 10px; line-height: 1.4; }
#app .game-shell[data-page="tap"] .mother-combo-segments {
  align-items: center; height: 34px; padding: 10px 14px 12px 29px; gap: 1px;
  background: url(../assets/ui/track-combo-paws.png) center / 100% auto no-repeat;
  border: 0;
}
#app .game-shell[data-page="tap"] .mother-combo-segments > i { height: 6px; min-height: 0; border: 0; background: transparent; box-shadow: none; }
#app .game-shell[data-page="tap"] .mother-combo-segments > i.is-filled { background: linear-gradient(#d9e27e,#92b13f); box-shadow: 0 1px #3c5727; }
.mother-offline-modal .offline-reward-sack { display: inline-block; width: 20px; height: 23px; margin-right: 5px; object-fit: contain; vertical-align: middle; }
.mother-offline-modal .mother-offline-inventory .resource-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 9px; }
.mother-offline-modal .mother-offline-inventory .resource-value { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
