@charset "UTF-8";
/* Six mother compositions. Source sheets are 2:3; extra 9:16 space belongs
   to the forest. Raster skins use their existing proportional windows. */
#app .game-shell[data-mother-match="six"][data-page] { --mother-ink: #432b17; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar:has(> .wallet[data-wallet-style]) {
  --timber-height: 48px; flex: 0 0 52px; height: 52px; min-height: 52px;
  padding: 1px 4px; border: 0; background: none; box-shadow: none;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] {
  height: 50px; padding: 8px 12px; gap: 0; container-type: normal;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] .wallet-chip {
  display: grid; grid-template-columns: 21px minmax(0,1fr); grid-template-rows: 14px 18px;
  align-content: center; justify-content: center; justify-items: start;
  height: 32px; min-height: 32px; padding: 0 2px; gap: 0 3px;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] .wallet-label { display: contents; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] .resource-icon {
  grid-column: 1; grid-row: 1 / 3; width: 21px; height: 27px; max-height: 27px;
  flex: none; object-fit: contain; margin: 0;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] .wallet-name {
  grid-column: 2; grid-row: 1; font-size: 10px; line-height: 14px; white-space: nowrap;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] b {
  grid-column: 2; grid-row: 2; font-size: 14px; line-height: 18px; min-height: 0;
  white-space: nowrap; overflow-wrap: normal;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style="paper-cards"] { padding: 1px 0; gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style="paper-cards"] .wallet-chip { height: 46px; padding-inline: 6px; }
/* Large saved balances retain a complete, wrapping number. */
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar:has(> .wallet[data-wallet-style] b[data-wallet-length="medium"],> .wallet[data-wallet-style] b[data-wallet-length="long"]) { height: 70px; min-height: 70px; flex-basis: 70px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style]:has(b[data-wallet-length="medium"],b[data-wallet-length="long"]) { height: 68px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .topbar .wallet[data-wallet-style] b:is([data-wallet-length="medium"],[data-wallet-length="long"]) { white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 13px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .bottom-nav { height: 52px; min-height: 52px; flex-basis: 52px; padding: 2px 5px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .bottom-nav .nav-item {
  height: 48px; min-height: 48px; grid-template-rows: 24px 13px; padding: 4px 3px 5px;
}
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .bottom-nav .nav-art { width: 25px; height: 24px; max-height: 24px; }
#app .game-shell[data-mother-match="six"][data-page]:not([data-page="camp"]) .bottom-nav .nav-item b { font-size: 11px; line-height: 13px; }

/* Camp: original paired papers, not the narrow single-card substitute. */
#app .game-shell[data-mother-match="six"][data-page="camp"] .topbar { height: 72px; min-height: 72px; flex: 0 0 72px; padding: 0 5px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .topbar .wallet { height: 72px; min-height: 0; padding-block: 7px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .wallet-chip { min-height: 25px; height: 25px; padding: 1px 5px; gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .wallet .resource-icon { width: 21px; height: 23px; flex-basis: 21px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .wallet-chip b { font-size: 14px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .wallet-name { font-size: 10px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-header-title { height: 69px; top: 0; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-header-title h1 { font-size: 25px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-header-title p { font-size: 9px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-upgrade-compact { display: none !important; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-camp-overview:has(.camp-upgrade-compact) > .camp-recipe-papers {
  display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 3px;
  position: relative; inset: auto; flex: none; width: calc(100% - 8px); margin: 0 4px 3px;
}
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers > article { padding: 9px 10px !important; min-width: 0; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers > article > .paper-frame-skin { --paper-frame-scale: .055; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers h2 { font-size: 13px; line-height: 19px; margin-bottom: 3px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers h3 { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .resource-value { font-size: 10px; line-height: 18px; gap: 2px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .resource-value b { font-size: 13px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .resource-icon { width: 16px; height: 18px; flex-basis: 16px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-columns { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-payment { margin-top: 3px; padding-top: 2px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-payment > span { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-payment .resource-list { display: flex; flex-wrap: wrap; gap: 0 5px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-payment .resource-icon { display: none; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-upgrade .stat-row { display: flex; flex-wrap: wrap; gap: 0 3px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-upgrade .stat-row > span { font-size: 10px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-upgrade .stat-row > b { font-size: 12px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-upgrade .stat-row > small { font-size: 9px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-shortfall { font-size: 10px; line-height: 14px; margin-top: 3px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-next-shortfall .material-term { font-size: 10px; line-height: 15px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade > button.camp-upgrade-route[data-button-skin="workshop"] { --upgrade-skin-height: 38px; height: 38px; min-height: 38px; font-size: 15px; margin-top: 3px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-workshop-sign { max-width: 43%; top: 25%; right: 5px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-journal-shortcut { top: 12px; }

/* Expedition: give route art the upper third and keep the two ledgers paired. */
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-adventure { gap: 5px; padding: 0 5px 7px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-route-showcase { height: 175px; min-height: 175px; padding-top: 54px; margin-inline: -5px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title { top: 5px; left: 7px; width: 132px; height: 44px; transform: rotate(-5deg); }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title b { font-size: 21px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title span { display: block; font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-card { height: 116px; min-height: 116px; grid-template-rows: 52px 18px 14px 17px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-art { height: 52px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-name { font-size: 12px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-risk { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-time { font-size: 12px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] section.mother-party-panel { padding: 8px !important; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-party-panel .section-title { min-height: 21px; margin-bottom: 3px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-party-panel .section-title h2 { font-size: 13px; line-height: 19px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-party-panel .section-title > span { font-size: 10px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-party-panel .mother-party-body { height: auto; min-height: 0; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card.party-choice { height: 107px; min-height: 107px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-portrait { height: 55px; min-height: 55px; flex-basis: 55px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card.party-choice .party-showcase-portrait > :is(img.animal-art,svg.animal-rest-art) { height: 54px; max-height: 54px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card > strong { font-size: 11px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card > small { font-size: 9px; line-height: 13px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-decision-grid { gap: 5px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] :is(.mother-reward-panel,.mother-growth-panel) { padding: 8px !important; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-decision-grid h3 { font-size: 12px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-intro { min-height: 30px; gap: 4px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-intro > img { width: 32px; height: 31px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-route { font-size: 10px; line-height: 15px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-yield { gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-yield .resource-icon { width: 20px; height: 24px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-yield b { font-size: 15px; line-height: 19px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-yield span { font-size: 10px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-heading { font-size: 11px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-cost .resource-value { font-size: 10px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-cost b { font-size: 13px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-departure-row { min-height: 52px; padding: 3px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-departure.button { height: 46px; min-height: 46px; --departure-height: 46px; font-size: 17px; }

/* Active gathering: one paper ledger with the mother's bag/target/action order. */
#app .game-shell[data-mother-match="six"][data-page="trip"] .screen-scroll:has(> .mother-trip[data-trip-kind="expedition"]) { overflow-y: auto; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] { height: auto; padding: 2px 5px 5px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-scroll { flex: none; overflow: visible; gap: 4px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-status { min-height: 0; grid-template-columns: 57% minmax(0,1fr); grid-template-rows: auto auto; gap: 3px; padding: 0 !important; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-route { padding: 7px 9px !important; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-route h1 { font-size: 13px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-route p { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-timer { min-height: 27px; padding: 5px 9px !important; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-timer > b { font-size: 12px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-timer > strong { font-size: 12px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-party { padding: 5px 7px; gap: 2px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-party-caption { font-size: 11px; line-height: 16px; padding-bottom: 2px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-party :is(img,svg) { width: 27px; height: 31px; object-fit: contain; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-party b { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-party small { font-size: 9px; line-height: 12px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-scroll > .mother-trip-scene { height: 198px; min-height: 198px; --scene-height: 198px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo { padding: 8px 10px !important; gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo > h2 { font-size: 14px; line-height: 19px; margin: 0 0 3px; padding-bottom: 3px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo .mother-trip-bag,
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo .mother-trip-expected { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 4px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo h3 { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-bag h3 small { display: none; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-value { display: flex; align-items: center; gap: 2px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-icon { width: 19px; height: 23px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-value > span { font-size: 0; line-height: 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip[data-trip-kind="expedition"] .mother-trip-cargo .resource-value b { font-size: 13px; line-height: 19px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-load { margin: 3px 0; min-height: 19px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-load > span { font-size: 11px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-load .progress { height: 10px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-return-note { font-size: 10px; line-height: 17px; margin: 3px 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo .mother-trip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 3px; }
#app .game-shell[data-mother-match="six"][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: 40px; height: 44px; min-height: 44px; font-size: 14px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-objective { padding: 8px 10px !important; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-objective > h2 { font-size: 13px; line-height: 19px; margin-bottom: 3px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-body { grid-template-columns: 77px minmax(0,1fr); gap: 7px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-art > img { height: 92px; object-fit: contain; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-recipe > p { font-size: 10px; line-height: 15px; margin: 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-recipe .resource-value { font-size: 10px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-recipe .resource-value b { font-size: 13px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-recipe .resource-icon { width: 17px; height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-content > .button { --upgrade-skin-height: 36px; height: 38px; min-height: 38px; font-size: 13px; margin: 3px 0 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-effects .stat-row { display: flex; flex-wrap: wrap; gap: 0 3px; font-size: 10px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-effects .stat-row > :is(span,small) { font-size: 10px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .trip-objective-effects .stat-row > b { font-size: 12px; line-height: 16px; }

/* Growth: illustrated recipe rows, keeping the next workshop visible. */
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth { gap: 4px; padding: 0 5px 7px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-scene { --scene-height: 118px; height: 118px; min-height: 118px; margin-inline: -5px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .tab-strip { margin: 0; padding: 1px; gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .tab-strip .pill { min-height: 30px; height: 30px; font-size: 11px; padding: 3px 8px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-boards { gap: 5px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) { grid-template-columns: 78px minmax(0,1fr) minmax(0,1.1fr); padding: 8px 10px !important; gap: 3px 5px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board > .paper-frame-skin { --paper-frame-scale: .06; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-art { height: 94px; grid-row: 1 / span 3; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content > h2 { font-size: 16px; line-height: 21px; padding-bottom: 2px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content > h2 span { font-size: 14px; line-height: 21px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content h3 { font-size: 10px; line-height: 14px; margin-bottom: 2px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .resource-value { font-size: 10px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .resource-value b { font-size: 13px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .stat-row > b { font-size: 15px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .stat-row > span { font-size: 10px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content > :is(.mother-payment,.mother-next-shortfall) { grid-column: 2 / -1; grid-row: 3; font-size: 10px; line-height: 15px; padding-top: 2px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content > :is(.button,.text-button) { grid-column: 2 / -1; grid-row: 4; width: min(100%,210px); }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .mother-board-content > button.illustrated-button[data-button-skin="workshop"] { --upgrade-skin-height: 36px; height: 38px; min-height: 38px; font-size: 14px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .button-label { font-size: 14px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .mother-board-content > button.workshop-material-route.illustrated-button[data-button-skin="departure"] { --departure-height: 36px; height: 38px; min-height: 38px; font-size: 12px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .workshop-material-route .button-label { font-size: 12px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal { padding: 9px 10px !important; }

/* Tap: scene, single gold action, combined production paper, paired recipes. */
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap { --scene-height: 208px; gap: 4px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] button.mother-tap-button.illustrated-button[data-button-skin="tap"] { --tap-skin-height: 44px; height: 44px; min-height: 44px; font-size: 20px; margin-block: -15px 0; z-index: 2; }
#app .game-shell[data-mother-match="six"][data-page="tap"] button[data-button-skin="tap"] > .illustrated-button-skin { height: 44px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] :is(.mother-tap-info,.tap-recipe-ledger) { padding: 8px 9px !important; margin-inline: 5px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-info { grid-template-columns: 77px minmax(0,1fr); gap: 3px 6px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-workshop > img { width: 77px; height: 85px; object-fit: contain; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-metrics { padding: 3px 5px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-metrics b { font-size: 16px; line-height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-combo { padding: 3px 5px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-note p { font-size: 9px; line-height: 13px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .tap-recipe-ledger h2 { font-size: 13px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .tap-recipe-ledger > .tap-workshop-upgrade-action.illustrated-button[data-button-skin="tapUpgrade"] { --upgrade-skin-height: 40px; --upgrade-left: calc(40px * 644 / 400); --upgrade-right: calc(40px * 185 / 400); height: 42px; min-height: 42px; font-size: 17px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .tap-workshop-upgrade-action[data-button-skin="tapUpgrade"] > .illustrated-button-skin { height: 40px; }

/* Offline summary: leave enough room to introduce the upgrade paper. */
#modal-root .mother-offline-modal .mother-offline-hero { height: 118px; min-height: 118px; flex-basis: 118px; }
#modal-root .mother-offline-modal .mother-offline-hero h2 { font-size: 23px; line-height: 28px; }
#modal-root .mother-offline-modal .mother-offline-ledger { padding: 8px 10px !important; gap: 3px; }
#modal-root .mother-offline-modal .mother-offline-sources { grid-template-columns: 1fr 1.1fr; gap: 6px; }
#modal-root .mother-offline-modal .mother-offline-auto { grid-template-columns: 43px minmax(0,1fr); }
#modal-root .mother-offline-modal .mother-offline-auto > .mother-board-art { width: 43px; height: 48px; }
#modal-root .mother-offline-modal .mother-offline-auto strong { font-size: 23px; line-height: 27px; }
#modal-root .mother-offline-modal .offline-journey-art { height: 24px; margin: 1px 0; }
#modal-root .mother-offline-modal .offline-journey-art > img { height: 24px; }
#modal-root .mother-offline-modal .mother-offline-transfer { padding-block: 2px !important; grid-template-columns: 30px minmax(0,1fr) 15px 24px; }
#modal-root .mother-offline-modal .mother-offline-transfer > img { height: 31px; }
#modal-root .mother-offline-modal .mother-offline-inventory > .resource-list { gap: 2px; }
#modal-root .mother-offline-modal .mother-offline-inventory .resource-value { display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 2px; padding: 3px; }
#modal-root .mother-offline-modal .mother-offline-inventory .resource-value > .resource-icon { width: 19px; height: 24px; }
#modal-root .mother-offline-modal .mother-offline-inventory .resource-value > span { font-size: 9px; line-height: 12px; }
#modal-root .mother-offline-modal .mother-offline-inventory .resource-value b { font-size: 13px; line-height: 17px; }
#modal-root .mother-offline-modal .mother-offline-claim.illustrated-button[data-button-skin="claim"] { height: 42px; min-height: 42px; --claim-skin-height: 42px; font-size: 19px; }
#modal-root .mother-offline-modal .mother-offline-action-dock { padding: 3px 7px; }
#modal-root .mother-offline-modal .mother-offline-growth { height: 46px; min-height: 46px; font-size: 18px; }

/* Remove inherited touch-row minima inside informational ledgers. Actions
   keep their own hit areas; text and capacity rows do not need button height. */
#app .game-shell[data-mother-match="six"][data-page="camp"] .topbar .wallet { grid-template-rows: 25px 25px; align-content: center; row-gap: 2px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .topbar .wallet-chip { align-self: center; height: 25px; min-height: 25px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .topbar .wallet-chip::before { inset: 0 1px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-header-title { align-self: center; height: 66px; top: auto; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-payment .resource-icon { display: block; width: 14px; height: 17px; flex-basis: 14px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade .stat-row { min-height: 0; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-workshop-sign { top: 17%; max-width: 40%; padding: 8px 10px !important; }

#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-route-showcase { height: 158px; min-height: 158px; padding-top: 37px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title { height: 34px; width: 125px; top: 0; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title b { font-size: 18px; line-height: 21px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-expedition-title span { font-size: 9px; line-height: 11px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-card { box-sizing: border-box; height: 116px; min-height: 116px; grid-template-rows: 46px 17px 13px 16px; padding: 3px 4px 8px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .route-showcase-art { height: 46px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card.party-choice { height: 98px; min-height: 98px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-portrait { height: 48px; min-height: 48px; flex-basis: 48px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .party-showcase-card.party-choice .party-showcase-portrait > :is(img.animal-art,svg.animal-rest-art) { height: 47px; max-height: 47px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-decision-grid > :is(.mother-reward-panel,.mother-growth-panel) { padding: 8px !important; gap: 3px; align-content: start; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel:has(> .mother-reward-scene) > .mother-reward-scene { width: 30px; height: 31px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel:has(> .mother-reward-scene) { grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto auto auto auto auto; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-intro h3 { font-size: 12px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel .mother-reward-resources { gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel:has(> .mother-reward-scene) .mother-reward-resources .resource-value { display: flex; gap: 2px; padding: 2px; min-height: 29px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-resources .resource-icon { width: 18px; height: 23px; flex-basis: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-resources .resource-value > span { font-size: 9px; line-height: 11px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-resources .resource-value b { font-size: 14px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-load-row { padding-top: 2px; margin: 0; min-height: 28px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-meta { font-size: 9px; line-height: 14px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-portrait { width: 34px; height: 45px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-panel .dispatch-growth-stat { min-height: 0; padding: 0; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .dispatch-growth-stat > span { font-size: 10px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .dispatch-growth-stat > b { font-size: 13px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .dispatch-growth-followup .resource-value { min-height: 0; line-height: 15px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-growth-panel h4 { font-size: 9px; line-height: 13px; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] button.mother-growth-train.button.illustrated-button[data-button-skin="animal"] { --upgrade-skin-height: 34px; height: 38px; min-height: 38px; margin-top: 2px; }

#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo > h2 { min-height: 0; height: 25px; display: flex; align-items: center; gap: 5px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo > h2 .ui-icon { width: 20px; height: 23px; margin: 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo .mother-trip-load { height: 24px; min-height: 24px; margin: 3px 0; padding: 2px 0; gap: 6px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-load > span > .ui-icon { width: 18px; height: 20px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-load b { font-size: 14px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-cargo .mother-trip-return-note { min-height: 0; padding: 0; height: 21px; margin: 3px 0; line-height: 21px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-return-note .ui-icon { width: 14px; height: 17px; margin: 0; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-return-note b { font-size: 14px; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-scroll > .mother-trip-scene { height: 178px; min-height: 178px; --scene-height: 178px; }

#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .stat-row { min-height: 0; padding: 0; margin: 0; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-upgrade-cost > .sufficient { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-board-content > .mother-payment { min-height: 0; margin: 0; padding: 2px 0 0; gap: 1px 4px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board:is(.is-current,.is-next) .mother-payment .resource-value { min-height: 0; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .mother-board-content > .mother-payment { grid-column: 1 / 3; grid-row: 3; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .mother-board-content > .button { grid-column: 3; grid-row: 3; align-self: end; width: 100%; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .mother-board-content > button.illustrated-button[data-button-skin="workshop"] { --upgrade-skin-height: 33px; height: 35px; min-height: 35px; font-size: 12px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-current .button-label { font-size: 12px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .mother-board-content > .mother-next-shortfall { grid-column: 1 / 3; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .mother-board-content > .button { grid-column: 3; grid-row: 3; align-self: end; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .mother-next-shortfall .material-term { font-size: 10px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-next .mother-board-art { grid-row: 1 / 3; }

#app .game-shell[data-mother-match="six"][data-page="tap"] .tap-recipe-ledger .stat-row { min-height: 0; padding: 0; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .tap-recipe-ledger .mother-payment .resource-icon { display: block; width: 12px; height: 16px; flex-basis: 12px; }
#app .game-shell[data-mother-match="six"][data-page="tap"] .mother-tap-info .mother-tap-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1px 5px; }

#modal-root .mother-offline-modal .mother-offline-upgrade { padding: 8px 10px !important; }
#modal-root .mother-offline-modal .mother-offline-upgrade .mother-upgrade-split { gap: 5px; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
#modal-root .mother-offline-modal .mother-offline-upgrade .mother-current-upgrade > h2 { font-size: 13px; line-height: 18px; }
#modal-root .mother-offline-modal .mother-offline-upgrade .stat-row { min-height: 0; padding: 0; margin: 0; }

#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-workshop-sign { width: 144px; max-width: 44%; top: 22%; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-workshop-sign > b { font-size: 12px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .mother-workshop-sign > span { font-size: 10px; line-height: 16px; white-space: nowrap; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .screen-scroll:has(> .mother-trip[data-trip-kind="expedition"]) { background: url(../assets/environments/scene-active-mother-v2.png) center / cover no-repeat; }
#app .game-shell[data-mother-match="six"][data-page="trip"] .mother-trip-scroll > .mother-trip-scene { --scene-height: clamp(160px,50cqw,250px); height: var(--scene-height); min-height: var(--scene-height); }
#app .game-shell[data-mother-match="six"][data-page="tap"] .screen-scroll { background: url(../assets/environments/scene-tap-mother-v2.png) center bottom / cover no-repeat; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal .stat-row { min-height: 0; padding: 0; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal .animal-availability-panel { padding: 5px 8px !important; gap: 3px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal .animal-availability-panel :is(h3,strong,b) { font-size: 12px; line-height: 17px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal .animal-availability-panel p { font-size: 10px; line-height: 15px; }
#app .game-shell[data-mother-match="six"][data-page="growth"] .mother-growth-board.is-animal .animal-availability-panel .ui-icon { width: 20px; height: 23px; }

#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel:has(> .mother-reward-scene) .mother-reward-resources .resource-value { flex-direction: row; justify-content: flex-start; align-items: center; }
#app .game-shell[data-mother-match="six"][data-page="adventure"] .mother-reward-panel:has(> .mother-reward-scene) .mother-reward-resources .resource-value > span { display: block; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade .stat-row { display: flex; flex-wrap: wrap; gap: 0 3px; align-items: baseline; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade .stat-row > b { font-size: 13px; line-height: 18px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade .stat-row > :is(span,small) { font-size: 10px; line-height: 16px; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-current-upgrade .stat-row > span::before { content: none; }
#app .game-shell[data-mother-match="six"][data-page="camp"] .camp-recipe-papers .mother-upgrade-cost > .sufficient { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@container timber-hud-view (max-width: 340px) {
  #app .game-shell[data-mother-match="six"][data-page="camp"] .screen-scroll { overflow-y: auto; }
  #app .game-shell[data-mother-match="six"][data-page="camp"] .mother-camp-overview { min-height: 530px; }
}
