/* Persistent industrial clicker shell. All artwork remains native to this game. */
:root {
  --ui-icon-atlas: image-set(
    url('../public/art/icons/ui-icons-v1-32.png') 1x,
    url('../public/art/icons/ui-icons-v1-64.png') 2x,
    url('../public/art/icons/ui-icons-v1-96.png') 3x
  );
  --cc-paper: #faf6e9;
  --cc-paper-edge: #ded7bd;
  --cc-ink: #334b3f;
  --cc-wood: #a5906b;
  --cc-chrome: calc(var(--topbar-height) + var(--page-tabs-height));
}

/* Prefiltered PNG cells avoid aliasing when the source artwork is reduced to UI size. */
.icon-art {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 1;
  background-image: url('../public/art/icons/ui-icons-v1-32.png');
  background-image: var(--ui-icon-atlas);
  background-repeat: no-repeat;
  background-size: 800% 500%;
  background-position: var(--icon-x, 0%) var(--icon-y, 0%);
}
.end-icon.icon-art { height: 13px !important; }
.level-badge .icon-art { width: 9px; height: 9px; }
.research-big-icon .icon-art { width: 32px; height: 32px; }

@container game-shell (max-width: 700px) {
  .research-big-icon .icon-art { width: 23px; height: 23px; }
}

body { background: #eee8d8; }
#main { max-width: none; margin: 0; padding: 0; }
.cc-overview {
  grid-template-columns: minmax(265px, .9fr) minmax(340px, 1.3fr) minmax(325px, 1fr);
  grid-template-areas: 'landmark feed store';
  gap: 0;
  align-items: stretch;
  min-height: calc(100dvh - var(--cc-chrome));
}
.cc-overview > * { min-width: 0; }

/* The factory is the main click target, with money and income above it. */
.cc-landmark {
  position: sticky;
  top: var(--cc-chrome);
  align-self: start;
  min-height: calc(100dvh - var(--cc-chrome));
  padding: 28px 20px 24px;
  border: 0;
  border-radius: 0;
  color: #e6e7ce;
  background:
    radial-gradient(ellipse at 50% 43%, #71908248 0, transparent 56%),
    repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 5px),
    linear-gradient(155deg, #34564d, #28473f 55%, #203a34);
  box-shadow: inset 0 2px 10px #10292038;
}
.cc-landmark .cc-company-name { min-height: 40px; color: #f0ecda; font-size: 21px; }
.cc-landmark .cc-company-name > .icon { color: #afc4a6; }
.cc-funds { margin-top: 19px; gap: 8px; }
.cc-funds > span { color: #b9c6b0; font-size: 10px; letter-spacing: 2px; }
.cc-funds > strong {
  color: #fff4cb;
  font-size: clamp(29px, 2.8vw, 42px);
  line-height: 1.1;
  text-shadow: 0 2px 3px #10292040;
}
.cc-hero-rate { margin-top: 12px; color: #b5c7ac; font-size: 10px; gap: 6px; }
.cc-hero-rate strong { color: #d5e5bd; font-size: 15px; }
.cc-hero-rate small { color: #a7bba0; font-size: 10px; }
.cc-hero-rate strong.negative-value { color: #f2b590; }
.cc-factory-frame { position: relative; margin-top: 26px; }
.cc-factory-caption { padding: 0 2px; }
.cc-factory-caption .badge { border-color: #72947b; color: #d6e2c7; background: #355a45; }
.cc-landmark .cc-factory-action {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #f5efdc;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  white-space: normal;
  overflow: visible;
  transition: transform .16s;
  touch-action: manipulation;
  user-select: none;
}
.cc-landmark .cc-factory-action::before {
  content: none;
}
.cc-landmark .cc-factory-action:hover:not(:disabled) { transform: translateY(-2px) scale(1.015); }
.cc-landmark .cc-factory-action:active:not(:disabled) { transform: scale(.97); }
.cc-landmark .cc-factory-action:focus-visible { outline-color: #e4c078; outline-offset: 5px; }
.cc-landmark .factory-scene {
  height: clamp(235px, 24vw, 340px);
  padding: 8px 0;
  background: radial-gradient(ellipse, #fffaf126 0%, #dae2c924 45%, transparent 70%);
  overflow: hidden;
}
.cc-landmark .factory-scene > svg { width: 112%; filter: drop-shadow(0 12px 13px #0b241745); }
.cc-manual-status { color: #adc2a0; font-size: 10px; margin: 17px 0 18px; }
.cc-manual-status > .icon { color: #bdcca9; }
.cc-landmark .factory-strip { grid-template-columns: 1fr; border-color: #a7bf9a30; padding-top: 15px; }
.cc-landmark .factory-strip > div > span { color: #a8bca0; font-size: 10px; }
.cc-landmark .factory-strip strong { color: #e0e8c9; font-size: 16px; }
.cc-landmark .factory-strip small { color: #bdcdb0; font-size: 10px; }
.cc-hero-note { color: #a5bba1; font-size: 10px; line-height: 1.9; }
.cc-click-pop {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
  color: #fff0a9;
  font-size: 25px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 #2b4b32, 0 0 10px #1b3429;
  /* The feedback stylesheet provides a static reward for reduced motion. */
  animation: cc-click-reward 950ms ease-out forwards !important;
}

/* Center pages replace one another; the factory and shop stay in view. */
.cc-feed {
  container: clicker-page / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  padding: 18px 22px 25px;
  border-left: 8px solid var(--cc-wood);
  border-right: 8px solid var(--cc-wood);
  background:
    repeating-linear-gradient(0deg, #74664703 0 1px, transparent 1px 4px),
    var(--cc-paper);
  box-shadow: inset 3px 0 0 #765e4128, inset -3px 0 0 #765e4128;
}
.cc-feed > * { max-width: 100%; }
.cc-feed .cc-production-board, .cc-feed .growth-panel { order: 0; }

.cc-middle-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0 0 13px;
  border-bottom: 1px solid #dbd3bd;
}
.cc-middle-tabs > button {
  flex: 1 1 auto;
  min-width: 64px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d3cbb2;
  border-radius: 3px;
  background: linear-gradient(#fbf8ed, #ebe6d6);
  color: #777b61;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fffdf8;
}
.cc-middle-tabs > button:hover { border-color: #9aa97e; color: #3c5d38; }
.cc-middle-tabs > button:is(.active, .selected, [aria-selected='true']) {
  border-color: #6c805a;
  color: #eff2dc;
  background: linear-gradient(#637b52, #4d6941);
  box-shadow: inset 0 1px 0 #ffffff20;
}
.cc-feed .panel, .cc-feed .growth-panel { border-color: #dcd6bf; border-radius: 5px; background: #fffcf2; }
.cc-feed .unlock-goal { background: #e9eed9; border-color: #d0dbc0; }
.cc-feed .unlock-goal > .button { min-height: 40px; }
.cc-feed .management-grid, .cc-feed .research-grid, .cc-feed .market-grid{ grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cc-feed .role-card, .cc-feed .research-card, .cc-feed .market-card { padding: 18px; }
.cc-feed .role-card > p, .cc-feed .research-card > p { min-height: 0; font-size: 11px; }
.cc-feed .office-panel, .cc-feed .research-banner { padding: 17px; margin: 0; flex-wrap: wrap; gap: 12px; }
.cc-feed .office-panel > div:not([class]) { flex: 1; min-width: 140px; }
.cc-feed .office-panel .office-action { width: 100%; justify-content: flex-end; border-top: 1px solid #e1dfcc; padding-top: 12px; }
.cc-feed .office-action .button, .cc-feed .role-card .button, .cc-feed .research-card .button, .cc-feed .market-card .button{ min-height: 40px; }
.cc-feed .market-intro { padding: 20px; min-height: 0; }
.cc-feed .market-intro h2 { font-size: 19px; }
.cc-feed .market-intro p { max-width: none; }
.cc-feed .market-map { display: none; }
.cc-feed .note-strip { margin: 0; padding: 13px; background: #f0f1e2; }
.cc-feed .section-heading { gap: 10px; }
.cc-lane-conveyor { gap: 3px; }
.cc-lane-conveyor > span { flex: 0 0 12px; width: 12px; height: 12px; }
.cc-lane-conveyor > span > .icon { width: 12px; height: 12px; }
.cc-feed .content-pages h2 { font-size: 15px; }
.cc-feed .content-pages .section-heading { flex-wrap: wrap; align-items: flex-start; }

.cc-feed .development-active { flex-wrap: wrap; padding: 17px; gap: 12px; border-radius: 5px; }
.cc-feed .development-active h2 { font-size: 16px; }
.cc-feed .development-active p { font-size: 11px; }
.cc-feed .development-slot { white-space: normal; }
.cc-feed .development-cancel { margin-left: 0; flex: 1 0 100%; flex-direction: row; align-items: center; justify-content: space-between; }
.cc-feed .development-project-grid, .cc-feed .development-route-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
.cc-feed .development-project, .cc-feed .development-route { padding: 18px; }
.cc-feed .development-project > p { min-height: 0; }
.cc-feed .development-project .button { min-height: 40px; }
.cc-feed .development-project-effect { min-height: 0; }
.cc-feed .development-route .button { width: 100%; }
.cc-feed .development-project-state { white-space: normal; text-align: right; }

@container clicker-page (min-width: 560px) {
  .cc-feed .development-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* One-time upgrades are compact icons above the production purchase rows. */
.cc-store {
  position: sticky;
  top: var(--cc-chrome);
  align-self: start;
  max-height: calc(100dvh - var(--cc-chrome));
  min-height: calc(100dvh - var(--cc-chrome));
  padding: 19px 15px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b8bea5 #f3f1e3;
  overscroll-behavior-y: contain;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #eaeedb, #f7f7e9 25%, #f2f2e3);
  box-shadow: inset 2px 0 8px #6372460a;
}
.cc-upgrade-shelf { min-width: 0; padding: 0 0 14px; margin-bottom: 15px; border-bottom: 1px solid #ccd6be; }
.cc-upgrade-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); justify-content: start; gap: 0; }
.cc-upgrade-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #c4d0b2;
  border-radius: 0;
  color: #607a4c;
  background: linear-gradient(#f8faee, #dce6cc);
  box-shadow: inset 0 1px 0 #fffefa, 0 1px 1px #40533012;
}
.cc-upgrade-tile > .icon { width: 32px; height: 32px; }
.cc-upgrade-shelf > .cc-board-note { padding: 10px 0 0; font-size: 9px; }
.cc-upgrade-tile:hover:not(:disabled), .cc-upgrade-tile.selected { border-color: #6c8c50; background: #e3eccf; box-shadow: inset 0 0 0 1px #94aa70; }
.cc-upgrade-tile.purchased, .cc-upgrade-tile.owned { color: #4b743b; border-color: #adc195; background: #e4edd4; }
.cc-upgrade-tile:is(.purchased, .owned)::after { content: none; }
.cc-upgrade-tile:disabled { color: #a0ab90; border-color: #d1d9c3; background: #e8ecdf; box-shadow: none; }
.cc-buy-modes { display: flex; align-items: center; gap: 3px; margin: 0 0 11px; padding: 3px; border: 1px solid #cad5b9; border-radius: 3px; background: #dee6cf; }
.cc-buy-modes > span { flex: 0 0 auto; padding: 0 5px; color: #788a64; font-size: 9px; }
.cc-buy-modes > button { flex: 1; min-width: 0; min-height: 40px; padding: 6px 4px; color: #70815e; background: transparent; border: 1px solid transparent; border-radius: 2px; font-size: 11px; font-variant-numeric: tabular-nums; }
.cc-buy-modes > button:is(.selected, .active, [aria-pressed='true']) { color: #3c5f31; background: #fffdf0; border-color: #b6c5a0; box-shadow: 0 1px 2px #40543114; }
.cc-store .production-section > .section-heading { padding-bottom: 12px; }
.cc-store .production-section > .section-heading h2 { font-size: 17px; }
.cc-store .production-section .segmented button { min-height: 40px; }
.cc-store .production-section .business-grid { margin-top: 11px; border-color: #c9d4b8; border-radius: 3px; }
.cc-store .production-section .business-card { background: linear-gradient(100deg, #e5edd7, #f9faed 45%, #eff3df); }
.cc-store .production-section .business-card.business-locked { background: linear-gradient(100deg, #e6e9dd, #f0f1e6); }
.cc-store .production-note { align-items: flex-start; color: #7e8d68; font-size: 9px; line-height: 1.8; }
.cc-store .production-note > .icon { margin-top: 3px; }

/* Statistics and collections use dense rows and icon matrices. */
.cc-statistics { display: flex; flex-direction: column; gap: 17px; min-width: 0; padding-top: 20px; border-top: 1px solid #d6d0b8; }
.cc-statistics > * { min-width: 0; flex-shrink: 0; }
.cc-statistics-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #344b3c; font-size: 17px; }
.cc-statistics-heading h2 > .icon { width: 20px; height: 20px; }
.cc-statistics-heading p { margin-top: 6px; color: #7b8169; font-size: 11px; line-height: 1.7; }
.cc-statistics > .panel { padding: 17px; }
.cc-statistics > .panel .section-heading h2 { font-size: 14px; }
.cc-statistics .cc-stat-sheet > .section-heading { margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid #dfdac6; }
.cc-statistics .cc-stat-sheet > .section-heading h2 { margin: 0; padding: 0; border: 0; }
@container game-shell (max-width: 700px) {
  .cc-statistics .cc-page-metrics > div:last-child { grid-column: 1 / -1; }
}
.cc-stat-sheet { padding: 18px; border: 1px solid #dbd3ba; border-radius: 4px; background: #fffbee; }
.cc-stat-sheet h2 { margin: 0 0 13px; padding-bottom: 10px; border-bottom: 1px solid #dfdac6; color: #4f6444; font-size: 14px; }
.cc-stat-sheet h3 { margin: 18px 0 9px; color: #7a8660; font-size: 11px; letter-spacing: .5px; }
.cc-stat-sheet dl { margin: 0; }
.cc-stat-sheet dl > div, .cc-stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ece7d6; font-size: 11px; line-height: 1.6; }
.cc-stat-sheet dl > div:last-child, .cc-stat-row:last-child { border-bottom: 0; }
.cc-stat-sheet dt, .cc-stat-row > span { min-width: 0; color: #7b846b; }
.cc-stat-sheet dd, .cc-stat-row > strong { margin: 0; color: #4d6541; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.cc-stat-sheet > .progress-track { margin-top: 14px; }
.cc-stat-sheet > .button { min-height: 40px; white-space: normal; }
.cc-feed > .panel:has(.cc-collection-grid) { padding: 17px; }
.cc-feed > .panel:has(.cc-collection-grid) > .section-heading h2 { font-size: 14px; }
.cc-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 7px; }
.cc-collection-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 76px; padding: 10px 5px; border: 1px solid #d2d6b7; border-radius: 3px; background: #eef1df; color: #5d7847; font-size: 9px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.cc-collection-item > .icon { width: 25px; height: 25px; }
.cc-collection-grid.cc-owned-upgrades { grid-template-columns: repeat(auto-fill, 44px); }
.cc-owned-upgrades > .cc-collection-item { width: 44px; height: 44px; min-height: 44px; padding: 5px; box-sizing: border-box; }
.cc-owned-upgrades > .cc-collection-item > .icon { width: 32px; height: 32px; flex: 0 0 32px; }
.cc-owned-upgrades > .cc-board-note { grid-column: 1 / -1; }
.cc-collection-item:focus-visible { outline: 2px solid #8a632a; outline-offset: 2px; }
.cc-collection-item:is(.locked, .unearned) { color: #a8ad96; background: #efeee2; border-color: #dfddc9; }
.cc-collection-item:is(.owned, .earned, .claimed) { opacity: 1; background: #e5edcf; border-color: #b8c799; }
.cc-collection-item small { color: #84916b; font-size: 8px; }

/* The permanent progression map is a small constellation of industrial skills. */
.cc-legacy-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
  position: relative;
  padding: 27px 19px;
  overflow: hidden;
  border: 1px solid #345b50;
  border-radius: 5px;
  background:
    radial-gradient(circle at 18% 23%, #dce4b4 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 16%, #dce4b48a 0 1px, transparent 1.5px),
    radial-gradient(circle at 43% 69%, #dce4b478 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 35%, #4e78654a, transparent 70%),
    #233f38;
  background-size: 139px 127px, 191px 157px, 163px 193px, auto, auto;
}
.cc-legacy-node { position: relative; z-index: 1; min-width: 0; padding: 17px 11px 14px; border: 1px solid #779768; border-radius: 8px; background: linear-gradient(#3e6251, #2c4b3f); color: #dfe6bf; text-align: center; box-shadow: 0 4px 14px #0e2a2533, inset 0 1px 0 #d2deb91a; }
.cc-legacy-node > .icon, .cc-legacy-node .legacy-node-icon > .icon { display: block; width: 31px; height: 31px; margin: 0 auto 11px; color: #cbdb9e; filter: drop-shadow(0 0 6px #b3cd6533); }
.cc-legacy-node h2, .cc-legacy-node h3 { color: #e7eaca; font-size: 12px; }
.cc-legacy-node > .badge { margin-top: 8px; border-color: #76915e; background: #d0d89c15; color: #b4c58f; }
.cc-legacy-node p { color: #acbea2; font-size: 10px; line-height: 1.7; margin-top: 7px; }
.cc-legacy-node strong { display: block; margin-top: 7px; color: #e9d08f; font-size: 11px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.cc-legacy-node .research-levels { margin-top: 12px; }
.cc-legacy-node .research-levels i { background: #526d51; }
.cc-legacy-node .research-levels .done { background: #bec98b; }
.cc-legacy-node .button { min-height: 40px; width: 100%; margin-top: 12px; padding: 8px 5px; font-size: 10px; }
.cc-legacy-node::before { content: ''; position: absolute; top: -29px; left: 50%; height: 28px; border-left: 1px dashed #9cb28670; z-index: -1; }
.cc-legacy-node:nth-child(-n+2)::before { display: none; }
.cc-legacy-node:is(.owned, .purchased) { border-color: #adc079; background: linear-gradient(#507143, #355d38); }
.cc-legacy-node.locked { border-color: #607968; background: #2e4b41; }
.cc-legacy-node.locked > .icon, .cc-legacy-node.locked .legacy-node-icon > .icon { color: #87a181; }

/* Settings share the independent guide dialog. */
.settings-dialog .settings-row > div { min-width: 0; }
.cc-feed .guide-list { margin: 0; }
.cc-feed .guide-list li { margin-bottom: 17px; }
.cc-feed .guide-list h3 { font-size: 12px; color: #597146; }
.cc-feed .guide-list p { font-size: 11px; line-height: 1.8; }
.footer { max-width: none; margin: 0; padding: 15px 20px; background: #e8e4d5; border-top: 1px solid #d4ceba; font-size: 9px; }

@keyframes cc-click-reward {
  0% { opacity: 1; transform: translate(-50%, 0) scale(.85); }
  20% { opacity: 1; transform: translate(-50%, -15px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -100px) scale(1.08); }
}

@container game-shell (min-width: 961px) {
  .cc-landmark {
    height: calc(100dvh - var(--cc-chrome));
    min-height: 0;
    padding-top: 19px;
    padding-bottom: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #749578 #28473f;
    overscroll-behavior-y: contain;
  }
  .cc-funds { margin-top: 12px; gap: 6px; }
  .cc-funds > strong { font-size: clamp(29px, 2.6vw, 39px); }
  .cc-factory-frame { margin-top: 18px; }
  .cc-landmark .factory-scene { height: clamp(170px, calc(100dvh - var(--cc-chrome) - 510px), 300px); }
  .cc-manual-status { margin: 10px 0 12px; }
  .cc-landmark .factory-strip { padding-top: 12px; }
  .cc-hero-note { margin-top: 12px; }
}

@container game-shell (min-width: 1600px) {
  .cc-overview { grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.3fr) minmax(365px, 1fr); gap: 0; }
  .cc-feed { padding: 22px 27px 30px; }
  .cc-landmark { padding: 21px 27px; }
  .cc-store { padding: 22px 20px; }
}

@container game-shell (min-width: 961px) and (max-width: 1250px) {
  .cc-overview { grid-template-columns: minmax(245px, .85fr) minmax(325px, 1.2fr) minmax(310px, 1fr); grid-template-areas: 'landmark feed store'; gap: 0; }
  .cc-feed { padding: 16px 15px 22px; border-left-width: 6px; border-right-width: 6px; }
  .cc-landmark { padding: 19px 14px 18px; }
  .cc-store { padding: 18px 12px 20px; }
  .cc-landmark .cc-company-name { font-size: 18px; }
  .cc-landmark .factory-scene { height: clamp(170px, calc(100dvh - var(--cc-chrome) - 510px), 280px); }

  .cc-middle-tabs > button { min-width: 58px; padding: 7px 6px; font-size: 10px; }
}

@container game-shell (min-width: 701px) and (max-width: 960px) {
  .cc-overview { grid-template-columns: minmax(245px, .85fr) minmax(320px, 1.3fr); grid-template-areas: 'landmark store' 'feed feed'; gap: 0; }
  .cc-landmark { position: static; min-height: 0; align-self: stretch; padding: 23px 19px; }
  .cc-landmark .factory-scene { height: 250px; }
  .cc-feed { display: flex; border: 0; border-top: 8px solid var(--cc-wood); padding: 21px 24px 25px; }
  .cc-store { position: static; align-self: stretch; min-height: 0; max-height: none; overflow: visible; border-left: 8px solid var(--cc-wood); padding: 21px 19px; }
  .cc-feed .management-grid, .cc-feed .research-grid, .cc-feed .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-feed .cc-production-board { order: 0; }
   .cc-feed .growth-panel { order: 0; }
  .cc-middle-tabs > button { flex: 1 1 0; }
}

@container game-shell (max-width: 700px) {
  #main { padding: 0; }
  .cc-overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'store' 'landmark' 'feed'; gap: 0; min-height: 0; }
  .cc-landmark { position: static; min-height: 0; padding: 23px 23px 22px; }
  .cc-landmark .factory-scene { height: 276px; }
  .cc-landmark .cc-company-name { font-size: 22px; }
  .cc-funds > strong { font-size: 37px; }
  .cc-factory-frame { margin-top: 22px; }
  .cc-hero-note { font-size: 10px; }
  .cc-store { position: static; min-height: 0; max-height: none; overflow: visible; padding: 20px 15px; border-bottom: 6px solid var(--cc-wood); }
  .cc-feed { padding: 19px 16px 24px; gap: 16px; border: 0; border-top: 6px solid var(--cc-wood); }

  .cc-middle-tabs { gap: 5px; padding-bottom: 12px; }
  .cc-middle-tabs > button { min-width: 58px; min-height: 41px; padding: 7px 9px; font-size: 11px; }
  .cc-feed .management-grid, .cc-feed .research-grid, .cc-feed .market-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-stat-sheet { padding: 16px 14px; }
  .cc-stat-sheet dl > div, .cc-stat-row { font-size: 11px; gap: 10px; }
  .cc-stat-sheet dd, .cc-stat-row > strong { max-width: 54%; }
  .cc-collection-grid { grid-template-columns: repeat(auto-fill, minmax(61px, 1fr)); gap: 6px; }
  .cc-legacy-map { padding: 23px 13px; gap: 25px 12px; }
  .cc-legacy-node { padding: 15px 9px 12px; }
  .footer { padding: 13px 16px; }
}

@container game-shell (max-width: 370px) {
  .cc-landmark { padding: 22px 17px; }
  .cc-landmark .factory-scene { height: 240px; }
  .cc-landmark .cc-company-name { font-size: 20px; }
  .cc-funds > strong { font-size: 33px; }
  .cc-store { padding: 18px 12px; }
  .cc-feed { padding: 18px 12px 22px; }
  .cc-middle-tabs > button { min-width: 54px; padding: 7px 6px; font-size: 10px; }
  .settings-dialog .settings-row { flex-wrap: wrap; }
  .settings-dialog .settings-row > div { flex: 1 1 150px; }
  .cc-legacy-node h2, .cc-legacy-node h3 { font-size: 11px; }
  .cc-legacy-node p { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-landmark .cc-factory-action { transition: none; }
}

/* Raster briefcase artwork shares the existing click target and visual frame. */
.cc-landmark .briefcase-scene {
  padding: 5px 15px 9px;
  border-radius: 0;
  background: transparent;
}
.cc-landmark .briefcase-scene > img.briefcase-art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 11px #0b24174d);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
