/* A town to build, one next move to make. Loaded after the original UI. */
:root {
  --play-navy: #17383d;
  --play-emerald: #248365;
  --play-cream: #fcf8e9;
  --play-yellow: #efc563;
  --play-line: #dce4d9;
}
.presentation-mode { background: #f2f3ec; }
.presentation-mode #app { max-width: 1240px; margin-top: 18px; }
.presentation-mode .hud { position: sticky; top: 0; z-index: 9; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(500px, 1.7fr); align-items: center; gap: 20px; padding: 14px 20px; background: var(--play-navy); border: 1px solid #2d4d4c; border-radius: 13px 13px 0 0; box-shadow: 0 4px 18px #183c3612; }
.presentation-mode .hud-top { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; }
.presentation-mode .brand { font-size: 22px; }
.presentation-mode .brand small { display: none; }
.presentation-mode .hud .who { gap: 6px; font-size: 10px; }
.presentation-mode .party-chip, .presentation-mode .rank { padding: 2px 7px; border-radius: 4px; }
.presentation-mode .who .quit { min-height: 44px; min-width: 44px; padding: 2px 7px; font-size: 10px; border-color: #59706a; }
.presentation-mode .pills { grid-template-columns: 1.15fr 1.15fr 1fr .8fr; width: 100%; gap: 0; }
.presentation-mode .pill { min-height: 43px; padding: 0 15px; gap: 9px; }
.presentation-mode .pill:first-child { padding-left: 0; }
.presentation-mode .pill i { width: 25px; height: 25px; flex-basis: 25px; }
.presentation-mode .pill b { font-size: 23px; line-height: 1.25; font-weight: 800; }
.presentation-mode .pill small { font-size: 10px; line-height: 1.5; }
.presentation-mode .pill.day b { font-size: 18px; }
.presentation-mode .pill.day i { width: 20px; height: 20px; flex-basis: 20px; }
.presentation-mode .gauge { height: 6px; }
.presentation-mode #controlBar { min-height: 49px; padding: 4px 13px 4px 20px; background: #fdfefb; }
.presentation-mode #controlBar button { min-height: 44px; min-width: 44px; padding: 5px 11px; border-color: transparent; background: transparent; border-radius: 6px; }
.presentation-mode #controlBar button.on, .presentation-mode #controlBar button[aria-pressed="true"] { background: #e8f1e2; border-color: #d2e2c9; color: #367044; }
.presentation-mode #controlBar button:hover { background: #edf3e7; }
.presentation-mode #controlBar .control-state { font-size: 10px; }
.presentation-mode #controlBar #quitBtn { min-width: 44px; min-height: 44px; color: #a06c4e; border-color: #e6d8c5; background: #faf4e9; }
#mobileToolsBtn { display: none; }
.presentation-mode .campaign-overview { display: none; }
.presentation-mode[data-tutorial-step="field"] .campaign-overview, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview, .presentation-mode.tutorial-field-step .campaign-overview { display: grid; grid-template-columns: 1fr; max-width: 620px; margin: 14px auto; }
.presentation-mode[data-tutorial-step="field"] .campaign-overview .campaign-intel, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview .campaign-intel, .presentation-mode.tutorial-field-step .campaign-overview .campaign-intel { display: none; }
.presentation-mode[data-tutorial-step="field"] .stage, .presentation-mode[data-tutorial-step="cash-recovery"] .stage, .presentation-mode.tutorial-field-step .stage { height: 245px; min-height: 245px; }
.presentation-mode .tabs { display: grid; grid-template-columns: repeat(var(--main-tab-count, 7), minmax(0, 1fr)) !important; margin: 9px 0 14px; border-color: #d8e1d2; }
.presentation-mode .tabs button { min-height: 44px; padding: 10px 9px !important; font-size: 12px !important; }
.presentation-mode .tabs button.on { border-color: #2c8a65; color: #2e7550; }
.presentation-mode .panel { scroll-margin-top: 128px; }
.progression-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 13px 18px; min-width: 0; }
.progression-overview > .progression-heading { order: 0; }
.progression-overview > .progression-stage { order: 1; }
.progression-overview > .progression-receipt { order: 2; }
.progression-overview > .progression-resources { order: 3; }
.progression-overview > .progression-details { order: 4; }
.progression-heading { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 2px 0 1px; }
.progression-heading > small { flex-basis: 100%; }
.progression-heading h1, .progression-heading h2 { margin: 0; color: #1b3f39; font-size: 27px; line-height: 1.35; font-weight: 850; letter-spacing: -1px; }
.progression-heading small { display: block; color: #82927a; font-size: 10px; font-weight: 650; margin-bottom: 4px; letter-spacing: .5px; }
.progression-heading p { color: #6e846c; font-size: 12px; margin: 4px 0 0; line-height: 1.6; }
.progression-heading > b, .progression-heading > span { flex-shrink: 0; align-self: center; border: 1px solid #d7e3c8; border-radius: 6px; padding: 6px 9px; color: #607d4d; background: #edf4e3; font-size: 10px; font-weight: 750; }
.progression-stage { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.progression-world { position: relative; min-width: 0; min-height: 440px; overflow: hidden; background: #e9f1dc; border: 1px solid #d2dfc4; border-radius: 13px; box-shadow: 0 5px 24px #35522a08, inset 0 0 0 3px #ffffff60; isolation: isolate; scroll-margin-top: 128px; }
.progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { display: block; width: 100%; height: 100%; min-height: 440px; max-height: none; }
.progression-world > .tycoon-map { border: 0; border-radius: 0; background: transparent; }
.progression-world svg { display: block; width: 100%; height: 100% !important; max-height: none; object-fit: contain; }
.progression-world text { font-family: inherit; }
.progression-map { height: 440px; }
.progression-map > svg.hq-scene { height: 100%; min-height: 0; }
.progression-map-heading { position: absolute; top: 15px; left: 16px; right: 16px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.progression-map-heading h3 { margin: 0; color: #355931; font-size: 17px; letter-spacing: -.5px; line-height: 1.4; font-weight: 850; }
.progression-map-heading p { margin: 3px 0 0; color: #82956b; font-size: 10px; line-height: 1.6; }
.progression-map-heading > div:first-child { max-width: 43%; }
.progression-growth { max-width: 44%; border: 1px solid #e2e4c7; border-radius: 6px; padding: 6px 8px; color: #7b8754; background: #fffdf0ed; font-size: 9px; font-weight: 700; line-height: 1.55; text-align: right; }
.progression-map-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; max-width: 45%; pointer-events: auto; }
.progression-map-actions .progression-growth { max-width: 180px; }
.world-greet { flex: 0 0 auto; min-height: 44px; min-width: 80px; padding: 8px 11px; border: 1px solid #c4d5b3; border-radius: 7px; background: #fffdf0ed; color: #50783c; box-shadow: 0 2px 5px #354c2408; font-size: 11px; font-weight: 800; line-height: 1.4; pointer-events: auto; }
.world-greet:hover { border-color: #8fb27a; background: #f6fbe9; }
.world-greet:active { box-shadow: none; }
.world-greet:disabled { color: #a3af91; background: #eef1e1; border-color: #d7dfc9; box-shadow: none; }
.progression-world [data-building], .progression-world [data-district] { cursor: pointer; transition: filter .2s; }
.progression-world [data-building]:hover, .progression-world [data-district]:hover { filter: brightness(1.06); }
.world-float { position: absolute; z-index: 6; padding: 4px 8px; border: 1px solid #b4d59b; border-radius: 15px; background: #fffef0ed; box-shadow: 0 3px 9px #3f582412; color: #447f35; font-size: 14px; font-weight: 850; line-height: 1.4; white-space: nowrap; pointer-events: none; animation: world-gain 1.35s ease-out both; }
@keyframes world-gain { from { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; } 70% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -34px); } }
.presentation-mode .compact-mail { min-width: 44px; min-height: 44px; padding: 5px 7px; border: 1px solid #69816a; border-radius: 5px; background: #355549; color: #e9f0cc; font-size: 10px; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.presentation-mode .compact-mail:hover { background: #49684f; }
.progression-world-label { position: absolute; left: 15px; top: 15px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ffffffa6; border-radius: 6px; background: #fffdf1ed; box-shadow: 0 2px 8px #36532708; font-size: 10px; color: #526d44; font-weight: 750; }
.progression-world-label::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #5e9c54; }
.progression-world-status { position: absolute; bottom: 13px; left: 13px; right: 13px; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid #ffffff91; border-radius: 7px; background: #fffdf3e8; font-size: 10px; color: #677d57; backdrop-filter: blur(7px); }
.progression-world-status b { color: #345b34; font-weight: 800; }
.progression-goal { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 21px; border: 1px solid #dddcbc; border-radius: 11px; background: var(--play-cream); box-shadow: 0 4px 18px #3e522406; overflow: hidden; }
.progression-goal::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: #e5bd5f; }
.progression-goal > small, .progression-goal .eyebrow, .progression-task > small { display: block; color: #9c8449; font-size: 10px; font-weight: 800; letter-spacing: .8px; margin-bottom: 10px; }
.progression-goal h2, .progression-goal h3, .progression-task h3 { color: #2c4938; font-size: 23px; line-height: 1.4; margin: 0 0 10px; font-weight: 850; letter-spacing: -.7px; word-break: keep-all; }
.progression-goal p, .progression-task p { font-size: 12px; line-height: 1.8; margin: 0 0 15px; color: #7d8269; word-break: keep-all; }
.progression-goal .tycoon-meter { height: 7px; margin: 12px 0 7px; background: #e7e5cd; }
.progression-goal .tycoon-meter i { background: #6c9a53; }
.progression-goal button, .progression-goal .primary, .progression-task button, .progression-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: auto; padding: 11px 13px; color: #fffdf1; border: 1px solid #1e7153; border-radius: 7px; background: #247d5c; font-size: 12px; line-height: 1.5; font-weight: 800; box-shadow: 0 3px 0 #17563b; cursor: pointer; word-break: keep-all; }
.progression-goal button:hover:not(:disabled), .progression-task button:hover:not(:disabled), .progression-primary:hover:not(:disabled) { background: #1c6a4c; border-color: #195b40; }
.progression-goal button:active:not(:disabled), .progression-task button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #17563b; }
.progression-goal button:disabled, .progression-task button:disabled { background: #e9e8d2; border-color: #dfdfc4; color: #a4a78d; box-shadow: none; }
.progression-goal .cost { color: #61723f; font-size: 12px; font-weight: 750; margin: 10px 0; }
.progression-goal-count { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; color: #9aa079; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.progression-goal-count strong { color: #456c36; font-size: 35px; font-weight: 850; letter-spacing: -1px; }
.progression-goal-foot { display: block; color: #929778; font-size: 10px; line-height: 1.6; margin-top: 12px; }
.progression-goal .reward { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 15px; }
.progression-goal .reward span { padding: 4px 7px; background: #eef1d7; border: 1px solid #dfe5bf; border-radius: 4px; color: #6a7d3f; font-size: 10px; font-weight: 650; }
.progression-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.progression-resources > div, .progression-resource { min-width: 0; padding: 12px 14px; border: 1px solid #dbe4d0; border-radius: 8px; background: #fffef6; }
.progression-stat { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; align-items: center; min-width: 0; padding: 13px 15px; border: 1px solid #dbe4d0; border-radius: 8px; background: #fffef6; }
.progression-stat .progression-stat-icon { display: flex; align-items: center; justify-content: center; grid-row: 1 / 4; width: 34px; height: 34px; border: 1px solid #e2e9ce; border-radius: 9px; background: #f0f5e1; }
.progression-stat-icon svg { display: block; width: 25px; height: 25px; }
.progression-stat > strong { grid-column: 2; display: block; color: #315833; font-size: 23px; font-weight: 850; line-height: 1.35; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.progression-stat > small { display: block; color: #7d8c6f; font-size: 10px; margin: 0; }
.progression-stat > span:last-child { grid-column: 2; color: #7a9265; font-size: 10px; line-height: 1.5; }
.progression-stat[data-stat="money"] .progression-stat-icon { background: #faf0ce; border-color: #eee1b2; }
.progression-stat[data-stat="territory"] .progression-stat-icon { background: #e6f1df; border-color: #d4e5c9; }
.progression-resources small { display: block; color: #7b8b6c; font-size: 10px; margin-bottom: 3px; }
.progression-resources b { display: block; color: #315833; font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.5px; }
.progression-resources em { color: #729163; font-size: 10px; font-style: normal; }
.progression-resources .bad { color: #b26943; }
.progression-impact { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 11px 13px; border: 1px solid #d5e2c8; border-radius: 7px; background: #f4f8ec; color: #65824f; font-size: 11px; line-height: 1.65; }
.progression-impact > b { color: #3b6c36; font-weight: 800; }
.progression-impact > span { color: #7d9070; }
.progression-milestones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.progression-milestones > div, .progression-milestones > li { position: relative; min-width: 0; border: 1px solid #dfe5d3; border-radius: 7px; padding: 11px 12px 10px; background: #edf1e4; color: #89967b; font-size: 10px; line-height: 1.6; }
.progression-milestones b, .progression-milestones strong { display: block; font-size: 12px; font-weight: 800; color: #687f56; margin-bottom: 2px; }
.progression-milestones small { display: block; color: #8a997d; font-size: 9px; line-height: 1.5; }
.progression-milestones .done { background: #eef7e5; border-color: #c8dcb7; color: #628647; }
.progression-milestones .done b { color: #4f7a36; }
.progression-milestones .current, .progression-milestones .active { background: #fff8dc; border-color: #dec47f; color: #9d7e32; box-shadow: inset 0 3px 0 #e6be60; }
.progression-milestones .current b, .progression-milestones .active b { color: #92702d; }
.progression-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 11px 14px; border: 1px solid #dbe3ce; border-radius: 7px; background: #fafbf3; color: #75866b; font-size: 11px; line-height: 1.7; }
.progression-summary b { color: #496b39; font-weight: 800; }
.progression-details { display: block; padding: 0; }
.progression-details > summary { padding: 12px 15px; color: #71885c; font-size: 11px; cursor: pointer; list-style-position: inside; min-height: 44px; }
.progression-details[open] > summary { border-bottom: 1px solid #e1e9d4; }
.progression-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 15px; }
.progression-detail-grid > div { display: flex; justify-content: space-between; gap: 9px; color: #7c8e6c; font-size: 11px; }
.progression-detail-grid b, .progression-detail-grid strong { color: #567848; font-size: 12px; font-weight: 750; }
.progression-details > p, .progression-details > ul { margin: 0; padding: 0 15px 13px; color: #92a07f; font-size: 10px; line-height: 1.8; }
.progression-details .progression-log { margin: 0; padding: 0 15px 13px 29px; color: #92a07f; font-size: 10px; line-height: 1.8; }
.presentation-navigation { margin-bottom: 13px; }
.presentation-navigation:has(.tycoon-tabs > button:only-child) { display: none; }
.progression-secondary { margin-top: 12px; padding: 0 13px; border: 1px solid #dfe6d2; border-radius: 7px; background: #f9fbf1; color: #82966b; font-size: 11px; }
.progression-secondary summary { min-height: 44px; padding: 12px 0; cursor: pointer; list-style-position: inside; }
.progression-secondary > .tycoon-actions { margin: 0 0 13px; }
#orgImpact:not(:empty) { margin: 0 0 16px; }
.presentation-mode #tab-org:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 14px; }
.presentation-mode #tab-org > .plan, .presentation-mode #tab-org > .buyqty, .presentation-mode #tab-org > .gens { grid-column: 1 / -1; }
.presentation-mode #tab-org > .plan, .presentation-mode #tab-org > .buyqty { margin: 0; }
.presentation-mode #tab-org > #orgWorld { grid-column: 1; }
.presentation-mode #tab-org > #orgImpact { grid-column: 2; margin: 0; min-width: 0; }
.presentation-mode #tab-org > #orgImpact:empty { display: none; }
.presentation-mode #tab-org:has(#orgImpact:empty) > #orgWorld { grid-column: 1 / -1; }
.org-preview { min-width: 0; border: 1px solid #d4e1c7; border-radius: 10px; background: #edf3e1; overflow: hidden; }
.org-preview-world { height: 150px; min-width: 0; overflow: hidden; background: #eaf1de; }
.org-preview-world > svg { display: block; width: 100%; height: 100% !important; min-height: 0; object-fit: contain; }
.org-preview-status { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; min-height: 52px; padding: 5px 12px; border-top: 1px solid #d9e3ca; background: #fbfcf2; }
.org-preview-status > strong { color: #52753e; font-size: 13px; font-weight: 800; line-height: 1.5; }
.org-preview-status > span { color: #84986e; font-size: 10px; line-height: 1.5; }
.progression-map-return { min-height: 44px; padding: 6px 9px; border: 1px solid #cfdcbd; border-radius: 5px; background: #f1f6e5; color: #6b8652; font-size: 10px; font-weight: 750; }
#orgImpact > .progression-receipt { min-height: 100%; }
#tab-ops > .progression-receipt { margin-top: 13px; }
.progression-task { display: flex; flex-direction: column; padding: 16px; border: 1px solid #dae4ce; border-radius: 8px; background: #fffef7; }
.progression-task h3 { font-size: 17px; }
.progression-task button { min-height: 44px; font-size: 11px; margin-top: 12px; }
.progression-future { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px dashed #d2ddc4; border-radius: 7px; background: #f4f6ea; color: #829471; font-size: 11px; line-height: 1.7; }
.progression-future svg { flex: 0 0 32px; width: 32px; height: 32px; }
.progression-future b { display: block; color: #64804c; font-size: 12px; }
.progression-board > .progression-resources, .progression-board > .progression-impact, .progression-board > .progression-future { grid-column: 1 / -1; }
.progression-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.progression-side .progression-goal { flex: 1; }
.progression-side .progression-resources { grid-template-columns: 1fr; }
.progression-side .progression-resources > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; }
.progression-side .progression-resources b { font-size: 17px; }
.progression-side .progression-resources small { margin: 0; }
.progression-detail { color: #849475; font-size: 10px; line-height: 1.7; }
.progression-progress { height: 7px; overflow: hidden; border-radius: 4px; background: #e4e9d7; margin: 10px 0; }
.progression-progress > i, .progression-progress > span { display: block; height: 100%; border-radius: 4px; background: #70a45a; transition: width .3s; }
.progression-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.progression-actions button { min-height: 44px; border: 1px solid #d3e0c8; border-radius: 6px; background: #f3f7e9; color: #64804f; padding: 9px 12px; font-size: 11px; font-weight: 750; }
.progression-actions .primary { color: #fffef4; background: #237c59; border-color: #237c59; }
.presentation-mode .gen { background: #fffef8; border-color: #d5e0ca; border-radius: 10px; box-shadow: 0 3px 12px #37532b05; }
.presentation-mode .gen .ic { width: 54px; height: 54px; }
.presentation-mode .gen .ic svg { width: 54px; height: 54px; }
.presentation-mode .gen .t { font-size: 15px; }
.presentation-mode .gen .p { font-size: 11px; }
.presentation-mode .gen .buy { min-height: 52px; color: #fffdf0; border-color: #277b4f; background: #2f8b5c; box-shadow: 0 2px 0 #205e3e; font-size: 13px; }
.presentation-mode .gen .buy:hover:not(:disabled) { color: #fffdf0; background: #24774d; }
.presentation-mode .gen .buy:disabled { color: #a1ad93; background: #edf0e2; border-color: #dee5d0; box-shadow: none; }
.org-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 8px; margin: 5px 0 2px; border: 1px solid #d5e5bf; border-radius: 4px; background: #eff7e5; color: #658346; font-size: 10px; line-height: 1.65; font-weight: 650; }
.org-upgrade b, .org-upgrade strong { color: #3c763b; font-size: 11px; font-weight: 800; }
.org-upgrade .arrow { color: #a0b67d; }
#impactCard { position: fixed; top: 108px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(470px, calc(100% - 30px)); pointer-events: none; }
.growth-receipt { position: relative; padding: 16px 18px; border: 1px solid #b8d0a6; border-radius: 11px; background: #fffff4; box-shadow: 0 10px 36px #24452526, inset 0 4px 0 #8cb766; color: #365a31; animation: growth-receipt-in .28s ease-out; overflow: hidden; }
.growth-receipt > small { display: block; color: #829b6b; font-size: 9px; font-weight: 750; letter-spacing: 1px; margin-bottom: 5px; }
.growth-receipt h2, .growth-receipt h3, .growth-receipt > b { display: block; margin: 0 0 9px; color: #355f30; font-size: 17px; line-height: 1.5; font-weight: 850; letter-spacing: -.5px; }
.growth-receipt p { margin: 6px 0 0; color: #7e936d; font-size: 11px; line-height: 1.7; }
.growth-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #e5ecd9; font-size: 11px; color: #7c9069; }
.growth-receipt-values { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-variant-numeric: tabular-nums; }
.growth-receipt-before { color: #98a88a; font-size: 13px; font-weight: 650; }
.growth-receipt-after { color: #3b7f3c; font-size: 19px; font-weight: 850; }
.growth-receipt-change { padding: 3px 6px; border-radius: 4px; background: #e9f4d9; color: #65973f; font-size: 10px; font-weight: 800; }
.growth-receipt .arrow { color: #b4bd9b; }
.progression-receipt { display: block; padding: 16px 18px; background: #fffef2; border-color: #bdd1a6; border-radius: 10px; box-shadow: 0 8px 30px #29442220, inset 0 4px 0 #9abd73; color: #6c8554; animation: growth-receipt-in .28s ease-out; }
.progression-receipt-title { display: flex; align-items: center; gap: 10px; color: #426d36; font-size: 17px; font-weight: 850; margin-bottom: 8px; line-height: 1.4; letter-spacing: -.4px; }
.progression-receipt-title > span { flex: 0 0 35px; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #dae7c5; border-radius: 9px; background: #eef5df; color: #73994e; }
.progression-receipt-title svg { width: 23px; height: 23px; }
.progression-receipt-title small { display: block; color: #8a9d75; font-size: 9px; letter-spacing: .4px; line-height: 1.5; font-weight: 650; }
.progression-receipt-title h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.45; font-weight: 850; letter-spacing: -.5px; }
.progression-receipt > p { margin: 5px 0 10px; color: #859572; font-size: 11px; line-height: 1.7; }
.progression-change-list { display: flex; flex-direction: column; gap: 6px; }
.progression-change-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid #e2e9d5; font-size: 11px; color: #8b9c78; }
.progression-change-row > span:first-child { margin-right: auto; }
.progression-change-row > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font-variant-numeric: tabular-nums; }
.progression-before { color: #a0ac8e; font-size: 12px; font-weight: 650; }
.progression-after { color: #487c39; font-size: 17px; font-weight: 850; }
.progression-after small { margin-left: 2px; font-size: 9px; color: #8a9e75; font-weight: 550; }
.progression-delta { padding: 2px 5px; border-radius: 4px; background: #ecf5dd; color: #76a04f; font-size: 10px; font-weight: 750; white-space: nowrap; }
.progression-change-row .arrow { color: #b6c39e; font-size: 13px; }
.progression-change-arrow { color: #b6c39e; font-size: 13px; }
.progression-delta.is-negative { background: #f7ecda; color: #b18a4f; }
.growth-receipt.negative { border-color: #dec8a0; box-shadow: 0 10px 36px #24452526, inset 0 4px 0 #cda36d; }
.growth-receipt.negative h3, .growth-receipt.negative .growth-receipt-after { color: #aa7444; }
@keyframes growth-receipt-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1023px) {
  .presentation-mode .hud { grid-template-columns: minmax(190px, .65fr) minmax(420px, 1.6fr); gap: 12px; padding-left: 16px; padding-right: 16px; }
  .presentation-mode .pill { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .presentation-mode .pill b { font-size: 20px; }
  .presentation-mode .pill i { width: 21px; height: 21px; flex-basis: 21px; }
  .progression-board, .progression-stage { grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
  .progression-world { min-height: 400px; }
  .progression-map { height: 400px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 400px; }
  .progression-goal { padding: 18px; }
  .progression-milestones { gap: 6px; }
  .progression-milestones > div, .progression-milestones > li { padding: 9px; }
}
@media (max-width: 760px) {
  .presentation-mode { padding-bottom: calc(125px + env(safe-area-inset-bottom, 0px)); }
  .presentation-mode #app { width: calc(100% - 20px); margin-top: 8px; padding-bottom: 20px; }
  .presentation-mode .hud { display: block; padding: 6px 12px 8px; border-radius: 10px; }
  .presentation-mode.mobile-controls-open .hud { border-radius: 10px 10px 0 0; }
  .presentation-mode .hud-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .presentation-mode .brand { font-size: 19px; }
  .presentation-mode .brand::before { height: 16px; width: 6px; margin-right: 5px; }
  .presentation-mode .hud .who { font-size: 9px; gap: 4px; }
  .presentation-mode .party-chip { max-width: 70px; padding: 2px 5px; }
  .presentation-mode .rank { padding: 2px 5px; }
  .presentation-mode .who .quit { min-height: 44px; min-width: 44px; font-size: 9px; padding: 2px 5px; }
  .presentation-mode #mobileToolsBtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 5px 7px; border: 1px solid #547066; border-radius: 6px; background: #264b43; color: #dce7cb; font-size: 10px; font-weight: 750; }
  .presentation-mode #mobileToolsBtn[aria-expanded="true"] { color: #fff8d5; border-color: #99aa78; background: #426443; }
  .presentation-mode .pills { grid-template-columns: 1.1fr 1.1fr .95fr .82fr; gap: 0; }
  .presentation-mode .pill, .presentation-mode .pill:nth-child(3) { min-height: 32px; padding: 0 7px; border-left: 1px solid #3b5855; gap: 5px; }
  .presentation-mode .pill:first-child { padding-left: 0; border: 0; }
  .presentation-mode .pill i { width: 17px; height: 17px; flex-basis: 17px; }
  .presentation-mode .pill b { font-size: 18px; line-height: 1.25; }
  .presentation-mode .pill small { font-size: 8px; font-weight: 550; line-height: 1.5; }
  .presentation-mode .pill.risk i { display: none; }
  .presentation-mode .pill.day { padding-right: 0; }
  .presentation-mode .pill.day i { display: none; }
  .presentation-mode .pill.day b { font-size: 14px; }
  .presentation-mode .gauge { margin: 3px 0 4px; height: 5px; }
  .presentation-mode #controlBar { display: none; min-height: 47px; padding: 5px 7px; border-radius: 0 0 8px 8px; }
  .presentation-mode.mobile-controls-open #controlBar { display: flex; position: sticky; top: 96px; z-index: 8; box-shadow: 0 5px 16px #28462e14; }
  .presentation-mode #controlBar .control-state { display: none; }
  .presentation-mode #controlBar > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .presentation-mode #controlBar button { flex: 1; min-height: 44px; min-width: 44px; padding: 5px 4px; font-size: 10px; }
  .presentation-mode #controlBar #helpBtn, .presentation-mode #controlBar #quitBtn { grid-column: span 2; }
  .presentation-mode #pauseBtn, .presentation-mode #helpBtn { margin-left: 0; }
  .presentation-mode .tabs { display: none; margin: 7px 0 12px; gap: 0 !important; }
  .presentation-mode #tab-ops { margin-top: 12px; }
  .presentation-mode .tabs button { min-height: 44px; min-width: 52px; padding: 10px 5px !important; font-size: 11px !important; }
  .presentation-mode .panel, .progression-world { scroll-margin-top: 108px; }
  .presentation-mode[data-tutorial-step="field"] .campaign-overview, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview, .presentation-mode.tutorial-field-step .campaign-overview { margin: 11px 0; }
  .presentation-mode[data-tutorial-step="field"] .stage, .presentation-mode[data-tutorial-step="cash-recovery"] .stage, .presentation-mode.tutorial-field-step .stage { height: 190px; min-height: 190px; }
  .progression-board, .progression-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .progression-heading { gap: 5px; margin: 0 2px 1px; }
  .progression-heading h1, .progression-heading h2 { font-size: 19px; letter-spacing: -.7px; }
  .progression-heading > small { display: none; }
  .progression-heading small { font-size: 9px; margin-bottom: 2px; }
  .progression-heading p { font-size: 10px; margin-top: 2px; }
  .progression-heading > p { display: none; }
  .progression-heading > b, .progression-heading > span { font-size: 9px; padding: 5px 7px; }
  .progression-world { min-height: 250px; height: 250px; border-radius: 10px; }
  .progression-map-heading { top: 10px; left: 11px; right: 11px; gap: 8px; }
  .progression-map-heading h3 { font-size: 14px; }
  .progression-map-heading p { display: none; font-size: 9px; margin-top: 2px; }
  .progression-map-heading > div:first-child { max-width: 112px; }
  .progression-growth { font-size: 8px; padding: 4px 6px; max-width: 43%; }
  .progression-map-actions { flex-direction: column; align-items: flex-end; max-width: 100px; gap: 4px; }
  .progression-map-actions .progression-growth { max-width: 100px; font-size: 8px; }
  .world-greet { min-height: 44px; min-width: 76px; padding: 7px 9px; font-size: 11px; }
  .world-float { font-size: 12px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 250px; max-height: none; height: 100%; }
  .progression-world svg { height: 100%; }
  .progression-world-label { left: 9px; top: 9px; padding: 5px 7px; font-size: 9px; }
  .progression-world-status { bottom: 9px; left: 9px; right: 9px; padding: 6px 8px; font-size: 9px; gap: 6px; }
  .progression-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding: 14px 15px; border-radius: 9px; }
  .progression-goal > small, .progression-goal .eyebrow, .progression-task > small { font-size: 9px; margin-bottom: 0; }
  .progression-goal-kicker { grid-column: 1; grid-row: 1; }
  .progression-goal h2, .progression-goal h3 { grid-column: 1; grid-row: 2; font-size: 17px; margin: 0; }
  .progression-goal p { grid-column: 1 / -1; font-size: 11px; line-height: 1.7; margin: 4px 0 3px; }
  .progression-goal button, .progression-task button, .progression-primary { min-height: 46px; padding: 9px 12px; font-size: 12px; margin-top: 9px; }
  .progression-goal > button { grid-column: 1 / -1; margin-top: 5px; }
  .progression-goal > .progression-progress { grid-column: 1 / -1; margin: 4px 0; height: 6px; }
  .progression-goal .cost { font-size: 11px; margin: 7px 0; }
  .progression-goal-count { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; margin: 0; font-size: 10px; }
  .progression-goal-count strong { font-size: 25px; }
  .progression-goal > .progression-goal-foot { display: none; }
  .progression-goal .reward { margin-bottom: 6px; }
  .progression-goal .reward span { font-size: 9px; }
  .progression-side { gap: 10px; }
  .progression-side .progression-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .progression-side .progression-resources > div { display: block; padding: 9px; }
  .progression-resources { gap: 7px; }
  .progression-overview > .progression-heading { order: 0; }
  .progression-overview > .progression-stage { order: 1; }
  .progression-overview > .progression-receipt { order: 2; }
  .progression-overview > .progression-resources { order: 3; }
  .progression-overview > .progression-details { order: 4; }
  .progression-stat { grid-template-columns: 1fr; padding: 10px; gap: 1px; }
  .progression-stat .progression-stat-icon { grid-row: auto; grid-column: 1; width: 27px; height: 27px; border-radius: 7px; margin-bottom: 4px; }
  .progression-stat-icon svg { width: 19px; height: 19px; }
  .progression-stat > strong, .progression-stat > span:last-child { grid-column: 1; }
  .progression-stat > strong { font-size: 20px; }
  .progression-stat > small, .progression-stat > span:last-child { font-size: 9px; }
  .progression-resources > div, .progression-resource { padding: 9px 10px; border-radius: 6px; }
  .progression-resources b { font-size: 19px; }
  .progression-resources small { font-size: 9px; }
  .progression-resources em { font-size: 9px; }
  .progression-impact { font-size: 10px; padding: 9px 11px; gap: 4px 8px; }
  .progression-milestones { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; }
  .progression-milestones::-webkit-scrollbar { display: none; }
  .progression-milestones > div, .progression-milestones > li { flex: 1 0 95px; padding: 8px 9px; font-size: 9px; }
  .progression-milestones b, .progression-milestones strong { font-size: 11px; }
  .progression-summary { padding: 9px 11px; font-size: 10px; gap: 3px 12px; }
  .progression-details { padding: 0; }
  .progression-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 9px; }
  .progression-detail-grid > div { font-size: 10px; }
  .progression-future { padding: 10px 12px; font-size: 10px; }
  .progression-future b { font-size: 11px; }
  .progression-task { padding: 14px; }
  .progression-task h3 { font-size: 16px; margin-bottom: 6px; }
  .progression-task p { font-size: 11px; margin-bottom: 8px; }
  .presentation-mode .gen { grid-template-columns: 50px minmax(0, 1fr) 81px; padding: 14px 12px; gap: 4px 10px; }
  .presentation-mode .gen .ic, .presentation-mode .gen .ic svg { width: 50px; height: 50px; }
  .presentation-mode .gen .t { font-size: 14px; }
  .presentation-mode .gen .p { font-size: 10px; }
  .presentation-mode .gen .buy { min-height: 52px; font-size: 12px; }
  .org-upgrade { font-size: 10px; padding: 5px 7px; }
  .org-upgrade b, .org-upgrade strong { font-size: 10px; }
  .presentation-mode .mobile-command { border-color: #c6d7bf; padding-top: 5px; background: #fffff8f5; box-shadow: 0 -3px 20px #2643211c; }
  .presentation-mode .mobile-command-nav { display: flex; }
  .presentation-mode .mobile-command-nav { display: grid; grid-template-columns: repeat(var(--visible-nav, 5), minmax(0, 1fr)) !important; }
  .presentation-mode .mobile-command-nav > button { flex: 1; min-height: 51px; }
  .presentation-mode .mobile-command-nav > button.hidden, .presentation-mode .mobile-command-nav > button[hidden] { display: none; }
  .presentation-mode .mobile-command-summary { min-height: 44px; padding-bottom: 5px; }
  .presentation-mode #mobileSummary { font-size: 11px; }
  .presentation-mode #mobileField, .presentation-mode #mobilePause { min-height: 44px; }
  .presentation-mode .ticker { bottom: calc(113px + env(safe-area-inset-bottom, 0px)); }
  #impactCard { top: auto; bottom: calc(122px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); }
  .growth-receipt { padding: 13px 15px; border-radius: 9px; }
  .growth-receipt h2, .growth-receipt h3, .growth-receipt > b { font-size: 16px; margin-bottom: 7px; }
  .growth-receipt-row { font-size: 10px; gap: 10px; }
  .growth-receipt-after { font-size: 18px; }
  .progression-receipt { padding: 13px 15px; }
  .progression-receipt-title { font-size: 16px; }
  .progression-change-row { font-size: 10px; gap: 7px; }
  .progression-before { font-size: 11px; }
  .progression-after { font-size: 16px; }
  .presentation-mode #tab-org:not(.hidden) { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .presentation-mode #tab-org > #orgWorld, .presentation-mode #tab-org > #orgImpact { grid-column: 1; }
  .org-preview { border-radius: 8px; }
  .org-preview-world { height: 130px; }
  .org-preview-status { min-height: 50px; padding: 4px 9px; gap: 4px 7px; }
  .org-preview-status > strong { font-size: 12px; }
  .org-preview-status > span { font-size: 9px; }
  .progression-map-return { font-size: 9px; padding-left: 7px; padding-right: 7px; }
  #orgImpact .progression-receipt-title h3 { font-size: 14px; }
  #orgImpact .progression-receipt > p { display: none; }
  #orgImpact .progression-receipt { padding: 12px 13px; }
  #orgImpact .progression-change-row { min-height: 27px; }
}
@media (max-width: 380px) {
  .presentation-mode #app { width: calc(100% - 16px); margin-top: 6px; }
  .presentation-mode .hud { padding-left: 10px; padding-right: 10px; }
  .presentation-mode .brand { font-size: 17px; }
  .presentation-mode .hud .who { gap: 3px; }
  .presentation-mode .party-chip { max-width: 58px; }
  .presentation-mode .hud:has(.compact-mail:not(.hidden)) .party-chip { max-width: 33px; }
  .presentation-mode .hud:has(.compact-mail:not(.hidden)) .rank { max-width: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .presentation-mode .compact-mail { padding-left: 5px; padding-right: 5px; font-size: 9px; }
  .presentation-mode .pill { padding-left: 5px; padding-right: 5px; gap: 4px; }
  .presentation-mode .pill b { font-size: 16px; }
  .presentation-mode .pill i { width: 15px; height: 15px; flex-basis: 15px; }
  .presentation-mode .pill small { font-size: 7px; }
  .presentation-mode .pill.day b { font-size: 13px; }
  .progression-world { min-height: 225px; height: 225px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 225px; }
  .progression-heading h1, .progression-heading h2 { font-size: 20px; }
  .progression-goal { padding: 14px; }
  .progression-goal h2, .progression-goal h3 { font-size: 16px; }
  .presentation-mode .gen { grid-template-columns: 44px minmax(0, 1fr) 76px; padding: 12px 10px; gap: 4px 8px; }
  .presentation-mode .gen .ic, .presentation-mode .gen .ic svg { width: 44px; height: 44px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .progression-world { min-height: 180px; height: 180px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 180px; }
  .progression-map-heading p { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .progression-overview > .progression-heading { display: none; }
  .progression-goal > p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-receipt { animation: none; }
  .world-float { animation: none; }
}
