@layer base {
    *, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; width: 100%; height: 100%; }
    button, input, select { font: inherit; }
    button, a, input { -webkit-tap-highlight-color: transparent; }
    button { cursor: pointer; }
    button { color: inherit; }
    button:disabled { opacity: .45; cursor: not-allowed; }
    button, a, input { outline-offset: 4px; }
    :focus-visible { outline: 2px solid #608b73; }
    a { color: inherit; text-decoration: none; }
    h1, h2, h3, h4, p { margin: 0; }
    [x-cloak], [hidden] { display: none !important; }
}
:root { --ink: #273e35; --muted: #879083; --green: #39664f; --deep-green: #285640; --line: #e5e8dd; --paper: #fbfcf8; --cream: #f5f6f0; --soft-green: #edf2e7; --amber: #bc9152; --red: #b96f59; --shadow: 0 5px 22px #43553b0b, 0 1px 3px #43553b04; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; color: var(--ink); background: var(--cream); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { border: 0; background: none; padding: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 21px; height: 21px; flex: none; display: inline-block; vertical-align: middle; }
.icon.small { width: 17px; height: 17px; }
.icon.tiny { width: 14px; height: 14px; }
.down { transform: rotate(90deg); }
.icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; color: #7e8b7b; transition: background .15s, color .15s; }
.icon-button:hover { color: var(--green); background: #e9eee3; }
.tiny-button { width: 25px; height: 25px; }
.positive { color: #5e8865 !important; }
.negative { color: var(--red) !important; }
.eyebrow { display: block; font-size: 9px; font-weight: 650; letter-spacing: 1.5px; line-height: 1.5; color: #90987f; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #89a779; flex: none; }
.status-dot.warning { background: #cc9a58; }
.app-shell { height: 100dvh; min-height: 530px; display: flex; flex-direction: column; }
.app-header { height: 70px; flex: none; display: flex; align-items: center; padding: 0 28px 0 23px; border-bottom: 1px solid var(--line); background: var(--paper); gap: 40px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 224px; }
.brand > span { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font: 800 23px/1.1 'Manrope', sans-serif; letter-spacing: 2px; }
.brand-dot { color: #a9b888; }
.brand small { font-size: 8px; letter-spacing: 2.2px; color: #8d967f; font-weight: 600; }
.header-nav { display: flex; height: 100%; align-items: center; gap: 14px; }
.header-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 550; color: #838c7b; padding: 10px 14px; border-radius: 7px; white-space: nowrap; }
.header-nav button:hover { background: #eff2e9; color: var(--green); }
.header-nav button.nav-current { color: #52705a; background: #edf1e7; }
.header-nav .icon { width: 17px; height: 17px; }
.nav-arrow { margin-left: 10px; color: #a3ab9b; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #7f8b75; white-space: nowrap; }
.connection-pill i { width: 5px; height: 5px; border-radius: 50%; background: #8ca97b; box-shadow: 0 0 0 3px #91aa7f13; }
.connection-pill.is-offline { color: #bc8158; }
.connection-pill.is-offline i { background: #bc8158; }
.theme-toggle { width: 27px; }
.header-divider { height: 28px; width: 1px; background: var(--line); margin: 0 3px; }
.profile-button { display: flex; align-items: center; gap: 10px; text-align: left; }
.avatar { width: 34px; height: 34px; border: 3px solid #fff; outline: 1px solid #e3e5d7; border-radius: 50%; background: #e6e7d4; color: #748267; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; }
.profile-copy strong { font-size: 11px; font-weight: 600; }
.profile-copy small { font-size: 9px; color: #a0a593; }
.profile-button > .icon { margin-left: 5px; width: 12px; color: #9aa28e; transform: rotate(90deg); }
.resource-bar { height: 85px; flex: none; display: flex; align-items: center; background: #f8f9f3; border-bottom: 1px solid #e0e5d6; padding: 0 27px 0 25px; gap: 0; z-index: 10; }
.resource-intro { width: 282px; flex-shrink: 1; padding-right: 20px; }
.resource-intro .eyebrow { font-size: 8px; letter-spacing: 1.45px; margin-bottom: 7px; }
.resource-intro > strong { font-size: 11px; font-weight: 550; color: #6e7b66; }
.resource-intro > strong > span { color: #b7bc9d; }
.resource { height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 28px; border-left: 1px solid #e3e7dc; text-align: left; flex: 1; position: relative; white-space: nowrap; }
.resource:hover { background: #ecf0e64d; }
.resource > span:not(.resource-icon):not(.resource-note):not(.mini-meter) { display: flex; flex-direction: column; }
.resource small { font-size: 9px; color: #8d9785; margin-bottom: 4px; }
.resource strong { font: 750 20px/1.1 'Manrope', sans-serif; color: #3f5141; letter-spacing: -.6px; }
.resource strong em { font-size: 12px; font-weight: 500; font-style: normal; padding-left: 3px; }
.resource-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.people-icon { background: #e9eee0; color: #7a9770; }
.money-icon { background: #f2eddd; color: #ad9a65; }
.happy-icon { background: #ebeedb; color: #99a86b; }
.resource-note { font-size: 9px; align-self: flex-end; margin-bottom: 3px; margin-left: -2px; }
.treasury { min-width: 220px; }
.treasury .resource-note { position: absolute; right: 20px; top: 18px; font-size: 8px; }
.mini-meter { display: inline-block; height: 3px; width: 34px; border-radius: 4px; background: #e0e6d4; margin-top: 21px; }
.mini-meter i { height: 100%; display: block; background: #9aaa78; border-radius: inherit; }
.resource-supply { flex: .6; gap: 9px; padding-left: 25px; padding-right: 10px; }
.resource-supply strong { font-size: 16px; letter-spacing: -.3px; }
.resource-supply .status-dot { margin: 19px 0 0 0; width: 5px; height: 5px; }
.supply-icon { color: #b39f66; width: 19px; height: 19px; }
.water-color { color: #84a4ad; }
.resource-warning strong { color: #b38b56; }
.workspace { display: flex; flex: 1; min-height: 0; }
.side-rail { width: 77px; flex: none; background: #f7f9f2; border-right: 1px solid #e1e6d6; display: flex; align-items: center; flex-direction: column; padding-top: 20px; z-index: 15; }
.rail-group { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.rail-label { font-size: 7px; font-weight: 700; letter-spacing: 1.3px; color: #a1aa94; margin-bottom: 8px; }
.rail-button { width: 42px; height: 42px; display: grid; place-items: center; color: #97a28b; border-radius: 10px; position: relative; transition: color .15s, background .15s; }
.rail-button > .icon { width: 21px; height: 21px; }
.rail-button:hover { background: #eaf0e0; color: #5f7f59; }
.rail-button.active { background: #e5edda; color: #6c8b5b; }
.rail-button > i { position: absolute; left: -18px; height: 21px; width: 3px; border-radius: 0 3px 3px 0; background: #859d6b; }
.rail-tooltip { display: none; position: absolute; left: 52px; top: 9px; padding: 7px 10px; border-radius: 5px; background: #365341; color: #fff; font-size: 10px; white-space: nowrap; box-shadow: var(--shadow); }
.rail-button:hover .rail-tooltip { display: flex; gap: 10px; align-items: center; }
.rail-tooltip kbd { font-size: 8px; opacity: .7; }
.rail-separator { width: 25px; height: 1px; margin: 20px 0 15px; background: #e1e6d6; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; }
.rail-edition { font-size: 7px; font-weight: 600; letter-spacing: 2px; color: #b6bca9; margin-top: 11px; }
.scene-screen { position: relative; overflow: hidden; flex: 1; background: #e7eddd; isolation: isolate; }
.game-canvas { position: absolute; inset: 0; overflow: hidden; }
.game-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.game-canvas.build-cursor canvas { cursor: crosshair; }
.game-canvas.bulldoze-cursor canvas { cursor: cell; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #e9efde66 0, transparent 30%), linear-gradient(90deg, #e7eddd10, transparent 60%, #e7eddd33); z-index: 1; }
.floating-card { background: #fcfdf8f5; border: 1px solid #ffffffb8; box-shadow: var(--shadow); border-radius: 11px; backdrop-filter: blur(8px); }
.city-label { position: absolute; top: 22px; left: 25px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; min-width: 241px; z-index: 2; }
.city-label-icon { background: #edf1e4; color: #8a9e73; width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; }
.city-label .eyebrow { font-size: 7px; letter-spacing: 1.5px; margin-bottom: 3px; }
.city-label h1 { font: 750 20px/1.25 'Manrope', sans-serif; letter-spacing: -.5px; }
.label-chevron { margin-left: auto; width: 20px; transform: rotate(90deg); }
.demo-badge { font-size: 6px; letter-spacing: .9px; color: #9ba381; border: 1px solid #e4e8d6; padding: 3px 4px; border-radius: 4px; margin-left: -3px; }
.scene-location { position: absolute; top: 106px; left: 29px; display: flex; align-items: center; gap: 6px; font-size: 8px; color: #839376; z-index: 2; letter-spacing: .2px; }
.scene-location .status-dot { width: 4px; height: 4px; }
.view-controls { position: absolute; top: 23px; left: 50%; transform: translateX(-37%); display: flex; align-items: center; padding: 4px 6px; border-radius: 8px; z-index: 4; }
.view-selector { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #7f8e72; padding: 5px 7px; min-width: 113px; }
.view-selector > .icon:first-child { width: 16px; height: 16px; }
.view-selector .down { width: 10px; height: 10px; margin-left: auto; }
.control-separator { width: 1px; height: 19px; background: #e6ebdf; margin: 0 3px; }
.view-controls > .icon-button { width: 27px; height: 27px; }
.view-controls > .icon-button > .icon { width: 16px; height: 16px; }
.icon-button.is-selected { background: #e5edde; color: #628454; }
.layer-menu { position: absolute; top: 45px; right: 0; width: 180px; padding: 6px; border-radius: 8px; }
.layer-menu button { display: flex; width: 100%; padding: 9px 8px; align-items: center; gap: 9px; font-size: 11px; border-radius: 5px; color: #8c9781; }
.layer-menu button > span { flex: 1; text-align: left; }
.layer-menu button:hover, .layer-menu button.active { color: #52764c; background: #eaf0e1; }
.layer-legend { position: absolute; top: 73px; left: 50%; transform: translateX(-37%); padding: 10px 12px; z-index: 3; font-size: 9px; min-width: 180px; }
.layer-legend > span { font-size: 10px; font-weight: 600; }
.layer-legend p { display: flex; align-items: center; gap: 5px; color: #87977a; margin-top: 8px; }
.legend-line { width: 16px; height: 3px; background: #cfac61; border-radius: 3px; }
.legend-line.water { background: #72a6ba; }
.legend-line.disconnected { background: #ba7a63; margin-left: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 2px; }
.legend-dot.residential { background: #6d9d76; }.legend-dot.commercial { background: #6b99ad; }.legend-dot.industrial { background: #d4ad64; }
.gradient-legend { margin-top: 9px; }.gradient-legend > i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #82a676, #d6b66c, #ba735c); }.gradient-legend small { display: block; font-size: 8px; color: #8b987d; margin-top: 5px; }.gradient-legend small span { float: right; }
.right-stack { position: absolute; right: 23px; top: 23px; width: 241px; display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.advisor-card { overflow: hidden; padding: 16px 17px 0; background: #fbfcf5f7; }
.card-kicker { display: flex; align-items: center; gap: 7px; color: #9da58b; font-size: 7px; font-weight: 600; letter-spacing: .9px; }
.advisor-avatar { display: grid; place-items: center; width: 23px; height: 23px; color: #81976b; background: #e9efdc; border-radius: 7px; }
.advisor-avatar .icon { width: 14px; height: 14px; }
.card-kicker > button { margin-left: auto; color: #b0b79f; }
.advisor-card h2 { font: 700 18px/1.4 'Manrope', sans-serif; letter-spacing: -.5px; margin-top: 14px; max-width: 180px; }
.advisor-card p { font-size: 10px; color: #8a947e; line-height: 1.8; margin-top: 8px; }
.text-button { display: inline-flex; gap: 9px; color: #718c5e; font-weight: 600; font-size: 10px; align-items: center; }
.text-button:hover { color: var(--deep-green); }
.advisor-card .text-button { width: 100%; justify-content: space-between; margin-top: 13px; }
.advisor-landscape { position: relative; height: 63px; margin: 12px -17px 0; overflow: hidden; background: linear-gradient(transparent 40%, #edf1e2); }
.advisor-landscape > i { position: absolute; width: 240px; height: 35px; bottom: -15px; left: 15px; border-radius: 50%; background: #e0e9d1; transform: rotate(-8deg); }
.little-building { position: absolute; width: 21px; height: 26px; background: #d3d9bd; bottom: 11px; border-radius: 2px 2px 0 0; z-index: 2; box-shadow: inset -5px 0 #bdc9a5; }
.little-building::before { content: ''; position: absolute; width: 4px; height: 5px; background: #f4f3dc; top: 6px; left: 5px; box-shadow: 7px 0 #f4f3dc, 0 9px #f4f3dc, 7px 9px #f4f3dc; }
.little-building.b1 { left: 75px; height: 38px; }.little-building.b2 { left: 112px; bottom: 7px; width: 27px; height: 26px; background: #e2d7bb; box-shadow: inset -7px 0 #cec5a9; }.little-building.b3 { left: 154px; bottom: 17px; height: 43px; background: #bacba7; }
.little-tree { position: absolute; z-index: 3; bottom: 8px; width: 4px; height: 21px; background: #a6b98c; left: 52px; }.little-tree::before { content: ''; position: absolute; width: 20px; height: 24px; background: #b7caa1; border-radius: 48%; left: -8px; top: -13px; box-shadow: inset -6px -2px #a6bc8d; }.little-tree.t2 { left: 192px; bottom: 16px; transform: scale(.8); }
.demand-card { padding: 15px 17px 12px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-heading h2 { font-size: 11px; font-weight: 600; }
.card-heading h3 { font-size: 14px; font-weight: 600; }
.card-heading .icon-button { color: #a5ae96; }
.card-subtitle { color: #9ca58e; font-size: 9px; line-height: 1.7; margin-top: 3px; }
.demand-bars { display: flex; justify-content: center; gap: 25px; margin: 16px 8px 13px; }
.demand-bars > button { display: flex; flex-direction: column; align-items: center; flex: 1; }
.demand-track { width: 26px; height: 59px; background: #eff2e6; position: relative; border-radius: 4px; display: block; }
.demand-track > i { position: absolute; bottom: 0; width: 100%; left: 0; border-radius: 3px; transition: height 1s; opacity: .85; }
.demand-track > em { position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); top: -10px; font-size: 6px; color: #91a17f; font-style: normal; font-weight: 600; }
.demand-label { font-size: 9px; font-weight: 650; color: #8a977c; margin-top: 7px; }.demand-bars small { font-size: 7px; color: #a0aa90; margin-top: 3px; }
.demand-note { display: flex; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid #edf0e5; font-size: 7px; color: #96a383; }
.map-hint { position: absolute; pointer-events: none; bottom: 252px; left: 32%; display: flex; align-items: center; gap: 7px; font-size: 9px; color: #738a65; letter-spacing: .2px; opacity: .78; z-index: 2; }
.hint-line { display: block; width: 29px; height: 1px; background: #90a67f; opacity: .5; }
.construction-dock { position: absolute; z-index: 5; bottom: 22px; left: calc(50% - 5px); transform: translateX(-50%); width: min(660px, calc(100% - 450px)); min-width: 410px; border-radius: 12px; background: #fbfcf7fa; padding: 14px 16px 0; }
.dock-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.dock-heading > div:first-child { display: flex; align-items: center; gap: 7px; }.dock-heading > div:first-child > .icon { color: #8a9b76; width: 15px; height: 15px; }.dock-heading h2 { font-size: 11px; font-weight: 650; }.dock-subtitle { color: #a3ab95; font-size: 8px; margin-left: 4px; }
.density-control { display: flex; background: #eff2e7; padding: 3px; border-radius: 5px; flex: none; }.density-control button { padding: 4px 9px; font-size: 8px; color: #9ca78b; border-radius: 3px; }.density-control button.active { background: #fff; color: #6e8560; box-shadow: 0 1px 3px #5168480c; }
.tool-cards { display: flex; gap: 8px; margin-bottom: 12px; }
.tool-card { display: flex; flex: 1; min-width: 0; align-items: center; flex-direction: column; padding: 10px 5px 9px; border: 1px solid #e9eddf; border-radius: 7px; background: #f8faf3; position: relative; transition: border-color .15s, background .15s; }
.tool-card:hover { border-color: #b3c39e; background: #f2f6e9; }.tool-card.selected { border-color: #9eb78b; background: #f0f5e7; box-shadow: inset 0 0 0 1px #adc59b55; }
.tool-illustration { width: 39px; height: 35px; display: grid; place-items: center; color: #91a67b; position: relative; margin-bottom: 5px; }.tool-illustration .icon { width: 29px; height: 29px; stroke-width: 1.3; filter: drop-shadow(2px 3px 0 #94a97a0d); }
.tool-residential { color: #80a177; }.tool-commercial { color: #7d9ba8; }.tool-industrial { color: #c1a36a; }.tool-water_tower, .tool-water_pump, .tool-water_pipe, .tool-sewage_plant { color: #89a8af; }.tool-wind_turbine, .tool-power_plant, .tool-power_line { color: #b4a16d; }.tool-bulldoze { color: #bd9668; }
.tool-selected-check { position: absolute; background: #8aa77c; color: #fff; border: 2px solid #f4f7ec; width: 16px; height: 16px; border-radius: 50%; right: -10px; top: 0; display: grid; place-items: center; }.tool-selected-check .icon { width: 9px; height: 9px; }
.tool-name { font-size: 9px; font-weight: 600; color: #75836a; white-space: nowrap; }.tool-price { font-size: 7px; color: #a1ac91; margin-top: 4px; white-space: nowrap; }
.dock-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 0 10px; border-top: 1px solid #e8eddf; font-size: 7px; color: #9aa78b; gap: 8px; }.dock-footer > span { display: flex; gap: 6px; align-items: center; }.dock-footer .status-dot { width: 4px; height: 4px; }.dock-footer button { opacity: .65; }
kbd { font-family: inherit; border: 1px solid #dde3d0; font-size: 7px; font-weight: 500; padding: 2px 4px; border-radius: 3px; line-height: 1; }
.brush-tooltip { position: absolute; left: 50%; top: 79px; transform: translateX(-50%); padding: 10px 14px; z-index: 10; pointer-events: none; display: flex; gap: 12px; align-items: center; font-size: 10px; }.brush-tooltip > span { color: #789469; }.brush-tooltip kbd { font-size: 7px; }
.minimap { position: absolute; left: 22px; bottom: 22px; width: 177px; padding: 9px 9px 8px; z-index: 3; border-radius: 10px; background: #fafbf4eb; }
.minimap-header { display: flex; align-items: center; gap: 6px; font-size: 7px; color: #8d9b7d; margin-bottom: 7px; }.minimap-header > span:last-child { margin-left: auto; font-size: 7px; }.minimap-header .icon { width: 11px; height: 11px; }.minimap canvas { display: block; width: 100%; height: 98px; border-radius: 4px; cursor: pointer; background: #d9e2c9; }.minimap-footer { display: flex; justify-content: space-between; color: #a0ac90; font-size: 7px; margin-top: 7px; }.minimap-footer > span { display: flex; align-items: center; gap: 4px; }.minimap-footer .status-dot { width: 3px; height: 3px; }
.camera-controls { position: absolute; bottom: 23px; right: 25px; display: flex; flex-direction: column; align-items: center; gap: 13px; z-index: 3; }.north-indicator { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #91a780; font-size: 8px; font-weight: 650; }.north-indicator .icon { width: 28px; height: 28px; stroke-width: 1; transform: rotate(-24deg); }.camera-controls > .floating-card { display: flex; flex-direction: column; padding: 4px; border-radius: 8px; }.camera-controls .icon-button { width: 29px; height: 29px; }.camera-controls .icon-button .icon { width: 16px; height: 16px; }.camera-controls .floating-card > span { height: 1px; background: #e8eddf; width: 17px; margin: 3px auto; }
.inspector { padding: 15px 17px; }.inspector h2 { font: 700 18px/1.3 'Manrope', sans-serif; margin-top: 6px; }.inspect-icon { width: 48px; height: 48px; background: #eaf0df; color: #91a17e; border-radius: 12px; display: grid; place-items: center; margin: 12px 0; }.inspect-icon .icon { width: 28px; height: 28px; }.inspection-numbers { display: flex; gap: 30px; margin: 17px 0; }.inspection-numbers > div { display: flex; flex-direction: column; gap: 5px; }.inspection-numbers small { color: #93a084; font-size: 9px; }.inspection-numbers strong { font: 700 21px 'Manrope', sans-serif; }.need-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 5px; margin: 15px 0; }.need-list > span { display: flex; gap: 5px; align-items: center; color: #bb8c6e; font-size: 9px; }.need-list > span.satisfied { color: #7c986b; }.inspect-networks { display: flex; flex-direction: column; gap: 7px; font-size: 9px; color: #8ca17a; margin: 12px 0; }.inspect-networks span { display: flex; align-items: center; gap: 5px; }.inspector .danger-button { width: 100%; font-size: 10px; margin-top: 5px; }.inspect-progress { margin-top: 15px; color: #8ea079; font-size: 9px; }.inspect-progress > span { display: flex; justify-content: space-between; }.progress-track { height: 4px; border-radius: 3px; background: #e5ebd8; margin-top: 8px; }.progress-track i { height: 100%; display: block; background: #93ac7d; border-radius: inherit; }
.status-bar { height: 34px; flex: none; background: #f5f7ef; border-top: 1px solid #dce3d0; display: flex; align-items: center; padding: 0 25px; gap: 20px; z-index: 20; color: #97a28c; font-size: 8px; }.save-status { display: flex; align-items: center; gap: 7px; flex: 1; }.save-status .icon { width: 13px; height: 13px; }.time-controls { display: flex; gap: 4px; align-items: center; }.game-date { font-size: 9px; color: #7d8e6f; margin-right: 7px; }.time-divider { width: 1px; height: 13px; background: #dbe2cf; margin: 0 8px 0 3px; }.time-controls button { font-size: 9px; width: 25px; height: 23px; border-radius: 4px; font-weight: 500; }.time-controls button.active { background: #e5ecda; color: #7b9466; }.time-controls button:hover { background: #e9efdf; }.time-controls button .icon { width: 10px; height: 10px; }.shortcut-hint { margin-left: auto; flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 7px; color: #a8b19b; }.shortcut-hint kbd { border: none; padding: 0; font-size: 7px; color: #8a9a7b; }
.scene-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #edf1e5; z-index: 12; gap: 14px; text-align: center; padding: 30px; }.scene-loading h2 { font: 700 25px 'Manrope', sans-serif; letter-spacing: -.7px; }.scene-loading p { color: #90a080; font-size: 12px; max-width: 380px; line-height: 1.7; }.loading-orbit { width: 64px; height: 64px; border-radius: 20px; background: #e1e9d5; display: grid; place-items: center; color: #8ba177; margin-bottom: 5px; animation: breathe 1.8s infinite ease-in-out; }.loading-orbit .icon { width: 30px; height: 30px; }
@keyframes breathe { 50% { opacity: .55; transform: translateY(-3px); } }
.toast-stack { position: fixed; z-index: 100; bottom: 63px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: min(90vw, 520px); pointer-events: none; }.toast { display: flex; align-items: center; gap: 9px; background: #fffef9; border: 1px solid #e5ebd8; border-radius: 9px; box-shadow: 0 8px 30px #3b573a15; padding: 10px 12px; font-size: 11px; line-height: 1.6; pointer-events: auto; }.toast-icon { color: #809a6a; flex: none; }.toast.error { border-color: #e8d3bc; }.toast.error .toast-icon { color: #b88d64; }.toast .icon-button { margin-left: 4px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: #293c3463; backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 28px; overflow-y: auto; }.modal { background: #fafbf6; border: 1px solid #ffffff9e; border-radius: 17px; width: 900px; max-width: 100%; max-height: calc(100dvh - 56px); overflow-y: auto; box-shadow: 0 20px 100px #1f392a33; animation: modal-in .2s ease-out; }.modal-header { padding: 28px 31px 23px; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; position: relative; }.modal-header .eyebrow { font-size: 8px; letter-spacing: 1.7px; margin-bottom: 9px; }.modal-header h2 { font: 750 26px/1.4 'Manrope', sans-serif; letter-spacing: -.8px; }.modal-header p { font-size: 11px; color: #8c9981; margin-top: 7px; }.modal-close { border: 1px solid var(--line); width: 31px; height: 31px; }.modal-close .icon { width: 16px; height: 16px; }.modal-content { padding: 25px 31px 30px; }
@keyframes modal-in { from { opacity: .3; transform: translateY(10px); } }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 7px; gap: 8px; background: #477159; border: 1px solid #477159; color: #fff; font-size: 11px; font-weight: 550; transition: background .15s, border-color .15s; min-height: 39px; }.primary-button:hover { background: #345d46; border-color: #345d46; }.secondary-button { background: #f2f5ea; color: #7c9369; border-color: #dce5d1; }.secondary-button:hover { background: #e5edda; border-color: #c4d4b3; }.danger-button { color: #b08c68; background: #f6f0e5; border-color: #e9dcc9; }.danger-button:hover { background: #eee1d0; border-color: #d8c4aa; }.full-width { width: 100%; }.text-button.full-width { justify-content: center; }
input:not([type=range]):not([type=checkbox]), select { border: 1px solid #dfe5d7; background: #fffefa; border-radius: 6px; color: #526b49; padding: 11px 12px; width: 100%; font-size: 11px; min-width: 0; }.field-label { display: block; font-size: 10px; font-weight: 550; color: #7a8d6a; margin: 18px 0 8px; }input::placeholder { color: #b3bca5; }input:focus { border-color: #98b283; }
.world-modal { width: 1080px; }.world-body { display: grid; grid-template-columns: 1fr 285px; }.world-map { position: relative; aspect-ratio: 840 / 600; background: #dae6df; overflow: hidden; border-radius: 0 0 0 16px; }.world-map > img { width: 100%; height: 100%; object-fit: fill; }.world-mode { position: absolute; top: 17px; left: 20px; display: flex; align-items: center; gap: 7px; background: #f5f9efdd; border: 1px solid #f8fbf3; padding: 8px 11px; border-radius: 6px; font-size: 9px; color: #839779; }.world-mode .status-dot { width: 5px; height: 5px; }.region-pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; flex-direction: column; z-index: 2; gap: 4px; }.pin-dot { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #eff5e8; border-radius: 50%; background: #eff5e8; color: #7d9970; box-shadow: 0 0 0 5px #f8fcf359, 0 2px 5px #4f6d3b19; font-size: 18px; }.pin-label { background: #f9fcf3ed; color: #769064; box-shadow: 0 2px 4px #54663e08; padding: 3px 6px; border-radius: 3px; font-size: 8px; white-space: nowrap; }.region-pin:hover, .region-pin.selected { z-index: 4; }.region-pin:hover .pin-dot, .region-pin.selected .pin-dot { background: #456f53; color: #fff; box-shadow: 0 0 0 6px #456f5330; }.region-pin.selected .pin-label { background: #456f53; color: #fff; }.region-pin.own .pin-dot { background: #81a371; color: #fff; }.region-pin.occupied:not(.own) .pin-dot { background: #c1ac7a; color: #fff; }.world-legend { position: absolute; bottom: 17px; left: 20px; display: flex; gap: 12px; align-items: center; background: #f7faf1d9; border: 1px solid #ffffff9c; padding: 8px 10px; border-radius: 6px; font-size: 7px; color: #91a17e; }.world-legend > span { display: flex; gap: 5px; align-items: center; }.world-legend i { width: 6px; height: 6px; border: 1px solid #a3b88e; background: #f6faef; border-radius: 50%; }.world-legend i.own { background: #81a371; border-color: #81a371; }.world-legend i.occupied { background: #c1ac7a; border-color: #c1ac7a; }
.region-details { padding: 26px 23px 22px; border-left: 1px solid #e5ebdb; display: flex; flex-direction: column; }.region-biome { display: flex; gap: 6px; align-items: center; color: #8ea577; font-size: 9px; }.region-biome .icon { width: 13px; height: 13px; }.region-details h3 { font: 750 27px/1.3 'Manrope', sans-serif; margin: 10px 0 6px; letter-spacing: -1px; }.region-code { color: #aab59b; font-size: 7px; letter-spacing: 1.4px; }.region-details > p { font-size: 11px; line-height: 1.9; color: #97a58a; margin-top: 16px; }.region-facts { display: flex; gap: 9px; flex-direction: column; padding: 18px 0; border-bottom: 1px solid #e6ebde; }.region-facts > span { display: flex; align-items: center; gap: 8px; color: #8ba076; font-size: 10px; }.region-facts .icon { width: 15px; height: 15px; }.starting-capital { display: flex; justify-content: space-between; margin: 15px 0; font-size: 9px; color: #a1ad92; }.starting-capital strong { color: #77956a; font-weight: 600; }.region-demo-note { margin-top: auto; padding-top: 18px; font-size: 8px; line-height: 1.8; color: #acb599; display: flex; gap: 7px; }.region-demo-note .icon { width: 13px; height: 13px; margin-top: 2px; }.region-city { margin-top: 25px; }.region-city h4 { font-size: 20px; font-weight: 650; margin: 8px 0; }.region-city p { color: #9aa98c; font-size: 10px; margin-bottom: 17px; }
.finance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }.finance-summary > div { padding: 13px 15px; background: #f0f4e8; border: 1px solid #e7eddd; border-radius: 9px; }.finance-summary span { color: #94a283; font-size: 9px; display: block; margin-bottom: 8px; }.finance-summary strong { font: 700 21px 'Manrope', sans-serif; letter-spacing: -.6px; }.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; }.panel-section { background: #fefef9; border: 1px solid #e7ecdf; padding: 21px 23px; border-radius: 10px; }.section-heading { display: flex; gap: 9px; align-items: center; }.section-heading h3 { font-size: 13px; font-weight: 600; }.section-heading .icon { width: 17px; height: 17px; color: #94a67c; }.panel-section > p { font-size: 10px; color: #a1ae92; margin: 9px 0 22px; line-height: 1.8; }.slider-field { display: block; margin-top: 23px; }.slider-field > span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8a9a79; }.slider-field > span > i { width: 6px; height: 6px; border-radius: 2px; }.slider-field strong { margin-left: auto; font-size: 11px; color: #6f8b5c; font-weight: 600; }.slider-field input { width: 100%; height: 4px; accent-color: #8cae72; cursor: pointer; margin: 16px 0 0; }.slider-field small { display: flex; justify-content: space-between; color: #b6bfa8; font-size: 7px; margin-top: 7px; }.slider-field.compact { margin-top: 17px; }.slider-field.compact input { margin-top: 12px; }.slider-field.compact > span .icon { width: 14px; height: 14px; color: #9eae8b; }.panel-section > button { margin-top: 25px; }.ledger-section { margin-top: 28px; }.ledger-section .card-heading > span { color: #a7b396; font-size: 8px; }.table-scroll { overflow-x: auto; margin-top: 15px; }table { border-collapse: collapse; width: 100%; font-size: 10px; text-align: left; }th { color: #a4b195; font-weight: 500; background: #f0f4e8; }td, th { padding: 11px 13px; border-bottom: 1px solid #e9eddf; }td { color: #859674; }td:last-child, th:last-child { text-align: right; }td:first-child { font-size: 8px; white-space: nowrap; color: #a0ad91; }
.chart-tabs { display: flex; gap: 12px; }.chart-tabs button { flex: 1; border: 1px solid #e6ecdb; border-radius: 8px; background: #f5f7ef; padding: 13px 16px; text-align: left; }.chart-tabs button.active { border-color: #b0c49b; background: #edf3e4; }.chart-tabs span { display: block; color: #9aad87; font-size: 9px; margin-bottom: 6px; }.chart-tabs strong { font: 700 22px 'Manrope', sans-serif; color: #74925d; letter-spacing: -.6px; }.chart-wrapper { position: relative; padding: 28px 0 0 45px; margin-bottom: 28px; }.stats-chart { width: 100%; height: auto; overflow: visible; }.chart-y-labels { position: absolute; top: 40px; left: 0; bottom: 53px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: #a6b594; }.chart-x-labels { display: flex; justify-content: space-between; font-size: 8px; color: #a9b79a; margin-top: 8px; }.chart-empty { font-size: 10px; color: #8ea67a; position: absolute; top: 45%; left: 60px; right: 0; text-align: center; }.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.stat-tile { border: 1px solid #e7ecdc; border-radius: 9px; padding: 17px 15px 14px; display: flex; gap: 11px; background: #fdfef8; position: relative; }.stat-tile > div > span { display: block; color: #98a98b; font-size: 9px; margin-bottom: 6px; }.stat-tile strong { display: block; font: 700 21px 'Manrope', sans-serif; margin-bottom: 5px; }.stat-tile small { font-size: 8px; color: #a7b398; }.stat-tile-icon .icon { width: 20px; height: 20px; }.stat-progress { position: absolute; height: 3px; border-radius: 4px; bottom: 0; left: 0; right: 0; background: #eef2e5; overflow: hidden; }.stat-progress i { display: block; height: 100%; opacity: .65; border-radius: inherit; }
.account-modal { width: 460px; }.account-modal .modal-header h2 { font-size: 24px; max-width: 300px; }.account-demo-callout { display: flex; gap: 12px; color: #91a67d; margin: 0 0 25px; background: #edf3e3; border: 1px solid #e1eacf; padding: 18px 15px; border-radius: 8px; }.account-demo-callout strong { font-size: 13px; color: #77955e; font-weight: 550; }.account-demo-callout p { font-size: 11px; line-height: 1.9; margin-top: 8px; color: #9bac89; }.account-tabs { display: flex; border-bottom: 1px solid #e2e9d4; gap: 22px; margin: -3px 0 10px; }.account-tabs button { padding: 10px 3px; font-size: 11px; color: #a3b292; border-bottom: 2px solid transparent; }.account-tabs button.active { color: #698e50; border-color: #91ad76; }.account-modal form > .primary-button { margin-top: 25px; }.account-footnote { margin-top: 17px; color: #b1bba2; font-size: 9px; line-height: 1.8; }.form-error { color: #b87e60; font-size: 10px; line-height: 1.7; margin-top: 15px; }.account-details { text-align: center; }.account-large-avatar { display: grid; place-items: center; margin: 0 auto 15px; width: 64px; height: 64px; background: #e5edd9; color: #8aa66e; border-radius: 50%; font: 600 20px 'Manrope', sans-serif; }.account-details h3 { font-size: 20px; font-weight: 650; }.account-details > p { font-size: 11px; color: #a5b295; margin: 8px 0 20px; }.my-cities { text-align: left; margin-bottom: 22px; }.my-cities > button { display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-bottom: 1px solid #e9eedf; width: 100%; color: #91a97a; font-size: 11px; }.my-cities small { margin-left: auto; color: #a8b79a; font-size: 8px; }.logout-button { margin-top: 20px; color: #a1ae91; }.admin-link { display: block; margin-top: 20px; color: #8da77b; font-size: 9px; }
.settings-modal { width: 550px; }.settings-modal .modal-header h2 { font-size: 23px; }.settings-modal .field-label { margin-top: 0; }.input-button-row { display: flex; gap: 8px; }.input-button-row button { flex: none; }.settings-divider { border-top: 1px solid #e5ebda; margin: 26px 0; }.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 5px 0 24px; position: relative; cursor: pointer; }.toggle-row strong { display: block; font-size: 12px; font-weight: 550; color: #819b6c; }.toggle-row small { display: block; margin-top: 5px; font-size: 10px; color: #abb99c; }.toggle-row input { position: absolute; right: 0; width: 38px; height: 24px; opacity: 0; }.toggle-switch { width: 35px; height: 20px; background: #dde7cf; border-radius: 20px; position: relative; flex: none; }.toggle-switch::before { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #6b8b5222; transition: transform .2s; }.toggle-row input:checked + .toggle-switch { background: #8caa73; }.toggle-row input:checked + .toggle-switch::before { transform: translateX(15px); }.toggle-row input:focus-visible + .toggle-switch { outline: 2px solid #8da878; outline-offset: 3px; }.settings-info { display: flex; gap: 10px; background: #f0f4e7; padding: 15px; border-radius: 7px; color: #9db28a; }.settings-info p { font-size: 10px; line-height: 1.9; color: #a2b391; }
.help-modal { width: 660px; }.guide-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }.guide-steps li { display: flex; gap: 16px; }.guide-steps li > span { color: #a4b88d; font: 600 19px 'Manrope', sans-serif; flex: none; border: 1px solid #e4ebd8; background: #eff4e7; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }.guide-steps h3 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }.guide-steps p { color: #a0b08e; font-size: 11px; line-height: 1.9; }.keyboard-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 10px; border-top: 1px solid #e5ecd8; margin-top: 26px; padding-top: 23px; }.keyboard-shortcuts > span { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #a1b18e; }.keyboard-shortcuts kbd { font-size: 8px; color: #8ea474; background: #f1f5e8; min-width: 19px; text-align: center; }.help-tip { display: flex; gap: 8px; font-size: 9px; color: #afbb9f; line-height: 1.8; margin-top: 24px; }
.startup-error, .fatal-overlay { position: fixed; inset: 0; background: #f6f8ef; z-index: 200; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; color: #59734a; padding: 30px; text-align: center; }.startup-error p { font-size: 13px; max-width: 450px; line-height: 1.8; }.startup-error button { border: 1px solid #adbe99; border-radius: 5px; padding: 10px 20px; }.setup-page { max-width: 650px; margin: 12vh auto; padding: 30px; line-height: 1.9; }.setup-page > img { margin-bottom: 20px; }.setup-page h1 { font: 750 36px 'Manrope', sans-serif; margin-bottom: 25px; }.setup-page p { color: #8b9d7c; margin-bottom: 30px; }.setup-page code { background: #eaf0df; font-size: 12px; padding: 2px 4px; border-radius: 3px; }
.night { --paper: #f2f2e9; --cream: #eeeee4; }.night .scene-screen { background: #718d86; }.night .scene-vignette { background: linear-gradient(0deg, #425e6544, transparent 50%); }.night .scene-location, .night .map-hint, .night .north-indicator { color: #e0e9ce; }
.static-page { overflow: auto; }.admin-shell { max-width: 1000px; margin: 50px auto; padding: 25px; }.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }.admin-header h1 { font: 750 27px 'Manrope', sans-serif; }.admin-header > a { font-size: 12px; color: #80996b; }.admin-shell .finance-summary { grid-template-columns: repeat(3, 1fr); }.admin-shell .panel-section { margin-bottom: 20px; }.admin-shell td, .admin-shell th { font-size: 11px; }.admin-note { font-size: 11px; line-height: 1.9; color: #91a27e; }.admin-note code { background: #edf2e2; padding: 3px 5px; border-radius: 4px; font-size: 10px; }
@media (min-width: 1550px) { .app-header { padding-left: 28px; }.resource-intro { width: 320px; }.resource { padding-left: 38px; padding-right: 38px; }.resource-supply { padding-right: 22px; }.resource strong { font-size: 22px; }.resource-supply strong { font-size: 18px; }.right-stack { width: 260px; right: 29px; }.advisor-card { padding: 20px 21px 0; }.advisor-card h2 { font-size: 20px; }.advisor-card p { font-size: 11px; }.advisor-landscape { margin-left: -21px; margin-right: -21px; height: 72px; }.demand-card { padding: 20px 21px 16px; }.demand-bars { margin: 20px 8px 16px; }.demand-track { height: 69px; }.construction-dock { width: 720px; padding: 16px 19px 0; }.tool-card { padding: 12px 5px 11px; }.tool-illustration { height: 44px; }.tool-illustration .icon { width: 33px; height: 33px; }.tool-name { font-size: 11px; }.tool-price { font-size: 9px; }.dock-heading h2 { font-size: 13px; }.dock-subtitle { font-size: 10px; }.dock-footer { font-size: 9px; padding: 11px 0 12px; }.density-control button { font-size: 9px; }.minimap { width: 192px; }.minimap canvas { height: 110px; }.minimap-header, .minimap-footer { font-size: 8px; }.map-hint { bottom: 277px; font-size: 10px; }.card-heading h2 { font-size: 13px; }.card-subtitle { font-size: 10px; }.card-kicker { font-size: 8px; }.demand-bars small { font-size: 8px; }.demand-label { font-size: 10px; }.demand-note { font-size: 8px; }.demand-track > em { font-size: 7px; } }
@media (max-width: 1250px) { .app-header { gap: 15px; padding-right: 20px; }.brand { min-width: 200px; }.header-right { gap: 10px; }.resource-intro { width: 220px; }.resource-intro > strong { font-size: 9px; }.resource { padding-left: 18px; padding-right: 18px; }.resource strong { font-size: 18px; }.resource-supply strong { font-size: 15px; }.resource-note { display: none; }.treasury { min-width: 174px; }.mini-meter { width: 25px; }.right-stack { width: 215px; right: 18px; }.advisor-card h2 { font-size: 16px; }.advisor-card p { font-size: 9px; }.demand-bars { gap: 18px; }.construction-dock { min-width: 400px; width: calc(100% - 430px); }.dock-subtitle { display: none; }.minimap { width: 160px; left: 18px; }.minimap canvas { height: 90px; }.view-controls { left: 53%; }.city-label { min-width: 222px; left: 20px; }.city-label h1 { font-size: 18px; }.city-label .demo-badge { display: none; }.scene-location { left: 24px; }.shortcut-hint { font-size: 6px; }.map-hint { left: 26%; font-size: 8px; } }
@media (max-height: 760px) and (min-width: 1000px) { .app-header { height: 60px; }.resource-bar { height: 74px; }.side-rail { padding-top: 14px; }.rail-group { gap: 4px; }.rail-label { margin-bottom: 4px; }.rail-button { height: 37px; }.rail-separator { margin: 12px 0; }.rail-edition { margin-top: 2px; }.right-stack { gap: 10px; }.advisor-card { padding-top: 12px; }.advisor-card h2 { margin-top: 10px; }.advisor-landscape { height: 45px; margin-top: 7px; }.advisor-card p { margin-top: 5px; }.demand-card { padding-top: 11px; }.demand-bars { margin-top: 14px; margin-bottom: 9px; }.demand-track { height: 42px; }.map-hint { bottom: 232px; } }
@media (max-width: 1050px) { .resource-intro { display: none; }.resource { flex: 1; padding-left: 23px; }.resource:first-of-type { border-left: none; }.resource-bar { padding-left: 12px; }.brand { min-width: 175px; }.brand strong { font-size: 20px; }.header-nav { gap: 0; }.header-nav button { font-size: 11px; padding: 9px 11px; }.connection-pill { display: none; }.right-stack { width: 200px; }.advisor-card h2 { font-size: 16px; }.city-label { min-width: 210px; }.view-controls { left: auto; right: 234px; transform: none; }.view-selector { min-width: 102px; }.construction-dock { width: min(510px, calc(100% - 120px)); left: 45%; min-width: 0; }.minimap { display: none; }.map-hint { left: 23%; }.layer-legend { left: auto; right: 233px; transform: none; } }
@media (max-width: 820px) { .app-header { padding: 0 16px; height: 60px; gap: 10px; }.brand { min-width: 0; gap: 8px; }.brand img { width: 31px; height: 31px; }.brand strong { font-size: 17px; letter-spacing: 1.3px; }.brand small { font-size: 6px; letter-spacing: 1.5px; }.header-nav { margin-left: 12px; }.header-nav button { font-size: 10px; padding: 8px; }.nav-arrow { display: none; }.header-right { gap: 5px; }.profile-copy, .header-divider { display: none; }.profile-button > .icon { display: none; }.resource-bar { height: 73px; padding: 0 8px; }.resource { padding: 0 14px; gap: 7px; height: 37px; }.resource-icon { display: none; }.resource strong { font-size: 17px; }.resource-supply { flex: .7; }.resource-supply strong { font-size: 14px; }.treasury { min-width: 145px; }.resource small { font-size: 8px; }.mini-meter { display: none; }.resource-supply .status-dot { display: none; }.side-rail { width: 57px; padding-top: 13px; }.rail-group { gap: 4px; }.rail-label { font-size: 6px; margin-bottom: 5px; }.rail-button { width: 36px; height: 36px; }.rail-button > .icon { width: 19px; height: 19px; }.rail-button > i { left: -11px; }.rail-separator { margin: 12px 0; }.right-stack { top: 95px; right: 14px; width: 179px; }.advisor-card { display: none; }.demand-card { padding: 11px 12px; }.demand-card h2 { font-size: 10px; }.demand-bars { gap: 18px; margin: 16px 3px 10px; }.demand-track { height: 44px; width: 22px; }.demand-bars small { font-size: 6px; }.demand-note { font-size: 6px; line-height: 1.7; }.city-label { top: 15px; left: 15px; padding: 11px; min-width: 190px; gap: 9px; }.city-label h1 { font-size: 17px; }.city-label .eyebrow { font-size: 6px; }.city-label-icon { width: 28px; height: 28px; }.city-label-icon .icon { width: 17px; height: 17px; }.scene-location { top: 88px; left: 19px; font-size: 7px; }.view-controls { top: 18px; right: 15px; }.view-selector { min-width: 0; font-size: 9px; gap: 7px; }.layer-legend { top: 63px; right: 15px; }.construction-dock { width: calc(100% - 82px); left: 15px; transform: none; bottom: 18px; padding: 11px 12px 0; }.tool-card { padding: 7px 4px; }.tool-illustration { height: 29px; margin-bottom: 4px; }.tool-illustration .icon { width: 23px; height: 23px; }.tool-price { font-size: 6px; }.tool-name { font-size: 8px; }.tool-cards { margin-bottom: 9px; }.dock-heading { margin-bottom: 9px; }.dock-footer { font-size: 6px; padding: 7px 0; }.camera-controls { right: 15px; bottom: 19px; }.north-indicator { display: none; }.map-hint { bottom: 210px; left: 20px; font-size: 7px; }.status-bar { padding: 0 15px; font-size: 7px; gap: 10px; height: 33px; }.shortcut-hint { display: none; }.time-controls { margin-left: auto; }.game-date { font-size: 8px; }.inspector { padding: 12px; }.inspector h2 { font-size: 15px; }.need-list { gap: 9px 3px; }.need-list > span { font-size: 8px; }.world-body { grid-template-columns: 1fr 245px; }.world-modal { width: 95vw; }.world-map { align-self: center; }.world-legend { bottom: 10px; left: 10px; font-size: 6px; gap: 8px; padding: 6px; }.region-details { padding: 20px 18px; }.region-details h3 { font-size: 23px; }.region-details > p { font-size: 10px; margin-top: 12px; }.modal-header { padding: 22px 23px 20px; }.modal-header h2 { font-size: 23px; }.modal-content { padding: 22px 23px; }.finance-summary { gap: 9px; }.finance-summary > div { padding: 12px; }.finance-summary strong { font-size: 18px; }.finance-grid { gap: 15px; }.panel-section { padding: 17px; }.stats-grid { gap: 9px; }.stat-tile { padding: 14px 11px; gap: 7px; }.stat-tile strong { font-size: 18px; } }
@media (max-width: 600px) { .app-header { padding: 0 12px; height: 55px; }.header-nav { margin-left: auto; }.header-nav .nav-current { display: none; }.header-nav button { font-size: 10px; }.header-right { margin-left: 0; }.theme-toggle { display: none; }.profile-button .avatar { width: 29px; height: 29px; font-size: 8px; }.brand strong { font-size: 17px; }.resource-bar { height: 66px; }.resource { padding: 0 10px; gap: 6px; }.resource strong { font-size: 15px; }.resource strong em { font-size: 9px; }.resource small { font-size: 7px; }.resource-supply { padding: 0 8px; }.resource-supply .supply-icon { display: none; }.resource-supply strong { font-size: 11px; }.treasury { min-width: 0; flex: 1.5; }.side-rail { width: 47px; }.rail-label { font-size: 5px; letter-spacing: .8px; }.rail-button { width: 32px; height: 35px; border-radius: 7px; }.rail-button > .icon { width: 18px; height: 18px; }.rail-button > i { left: -8px; width: 2px; }.rail-tooltip { left: 38px; }.rail-bottom { padding-bottom: 5px; }.rail-edition { display: none; }.city-label { left: 11px; top: 12px; min-width: 0; padding: 9px 10px; gap: 8px; border-radius: 8px; }.city-label h1 { font-size: 15px; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.city-label-icon { display: none; }.label-chevron { width: 16px; }.city-label .eyebrow { font-size: 5px; }.scene-location { left: 14px; top: 70px; font-size: 6px; }.view-controls { right: 10px; top: 13px; padding: 3px; border-radius: 6px; }.view-selector > span { display: none; }.view-selector { padding: 3px; min-width: 23px; }.view-selector > .icon:last-child { display: none; }.view-controls > .icon-button { width: 24px; height: 24px; }.view-controls > .icon-button .icon { width: 14px; height: 14px; }.control-separator { margin: 0 2px; height: 14px; }.layer-legend { top: 53px; right: 10px; font-size: 7px; min-width: 150px; }.right-stack { right: 10px; top: 87px; width: 145px; }.demand-card { padding: 8px 10px; border-radius: 8px; }.demand-card .card-heading h2 { font-size: 8px; }.demand-card .card-subtitle { font-size: 6px; }.demand-card .icon-button { width: 16px; height: 16px; }.demand-card .icon { width: 11px; height: 11px; }.demand-bars { gap: 12px; margin: 12px 0 2px; }.demand-track { height: 31px; width: 16px; }.demand-track em { font-size: 5px; top: -7px; }.demand-bars small { display: none; }.demand-label { font-size: 6px; margin-top: 5px; }.demand-note { display: none; }.construction-dock { left: 10px; bottom: 13px; width: calc(100% - 60px); padding: 10px 9px 0; border-radius: 9px; }.dock-heading h2 { font-size: 9px; }.dock-heading > div:first-child > .icon { width: 12px; height: 12px; }.dock-heading { margin-bottom: 9px; }.density-control { padding: 2px; }.density-control button { padding: 3px 6px; font-size: 6px; }.tool-cards { gap: 5px; }.tool-card { padding: 7px 2px; border-radius: 5px; }.tool-illustration { height: 25px; width: 27px; margin-bottom: 2px; }.tool-illustration .icon { width: 21px; height: 21px; }.tool-selected-check { width: 12px; height: 12px; right: -4px; }.tool-selected-check .icon { width: 7px; height: 7px; }.tool-name { font-size: 6px; }.tool-price { font-size: 5px; margin-top: 4px; }.dock-footer { font-size: 5px; padding: 6px 0 8px; }.dock-footer kbd { font-size: 5px; padding: 1px 3px; }.camera-controls { right: 8px; bottom: 14px; }.camera-controls .floating-card { padding: 2px; border-radius: 6px; }.camera-controls .icon-button { width: 24px; height: 26px; }.camera-controls .icon-button > .icon { width: 13px; height: 13px; }.map-hint { display: none; }.status-bar { height: 32px; padding: 0 10px; font-size: 6px; }.save-status { gap: 4px; }.save-status > .icon { display: none; }.game-date { font-size: 6px; margin-right: 0; }.time-divider { margin: 0 2px; }.time-controls { gap: 1px; }.time-controls button { width: 20px; font-size: 8px; height: 20px; }.inspector { padding: 10px; border-radius: 8px; }.inspector h2 { font-size: 12px; }.inspector .card-subtitle { font-size: 8px; }.inspect-icon { width: 32px; height: 32px; border-radius: 8px; margin: 7px 0; }.inspect-icon > .icon { width: 20px; height: 20px; }.inspection-numbers { gap: 15px; margin: 10px 0; }.inspection-numbers small { font-size: 6px; }.inspection-numbers strong { font-size: 15px; }.need-list { gap: 5px 2px; margin: 10px 0; }.need-list > span { font-size: 6px; gap: 3px; }.need-list .icon { width: 9px; height: 9px; }.inspector .danger-button { font-size: 8px; padding: 8px 6px; min-height: 30px; }.inspector .eyebrow { font-size: 6px; letter-spacing: .8px; }.inspect-networks { font-size: 7px; }.modal-backdrop { padding: 12px; }.modal { border-radius: 12px; max-height: calc(100dvh - 24px); }.modal-header { padding: 20px; gap: 10px; }.modal-header h2, .account-modal .modal-header h2, .settings-modal .modal-header h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.6px; }.modal-header p { font-size: 10px; line-height: 1.7; }.modal-header .eyebrow { font-size: 7px; letter-spacing: 1.2px; }.modal-content { padding: 20px; }.world-body { display: flex; flex-direction: column; }.world-map { width: 100%; aspect-ratio: 840/575; border-radius: 0; }.world-mode { top: 10px; left: 10px; font-size: 7px; padding: 6px 8px; }.pin-dot { width: 15px; height: 15px; border-width: 1px; box-shadow: 0 0 0 3px #f8fcf359; font-size: 12px; }.pin-dot .icon { width: 9px; height: 9px; }.pin-label { font-size: 5px; padding: 2px 4px; }.region-pin { gap: 3px; }.world-legend { font-size: 5px; gap: 7px; bottom: 8px; left: 8px; }.world-legend i { width: 5px; height: 5px; }.region-details { border-left: none; padding: 21px; border-top: 1px solid #e1e9d7; }.region-details h3 { font-size: 24px; }.region-details > p { margin-top: 13px; }.region-facts { flex-direction: row; gap: 23px; padding: 15px 0; }.region-facts > span { font-size: 9px; }.region-demo-note { font-size: 8px; }.finance-summary { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 20px; }.finance-grid { grid-template-columns: 1fr; }.finance-summary strong { font-size: 21px; }.finance-summary > div { padding: 12px 14px; }.panel-section { padding: 19px; }.finance-summary span { font-size: 8px; }.chart-tabs { gap: 5px; }.chart-tabs button { padding: 10px 9px; border-radius: 6px; }.chart-tabs span { font-size: 7px; }.chart-tabs strong { font-size: 16px; }.chart-wrapper { padding-left: 30px; margin-top: 15px; }.chart-y-labels { top: 32px; bottom: 36px; font-size: 7px; }.chart-x-labels { font-size: 6px; }.chart-empty { font-size: 8px; line-height: 1.7; left: 40px; top: 30%; }.stats-grid { grid-template-columns: 1fr 1fr; }.stat-tile { padding: 12px 10px; }.stat-tile .icon { width: 15px; height: 15px; }.stat-tile > div > span { font-size: 8px; }.stat-tile small { font-size: 6px; }.keyboard-shortcuts { grid-template-columns: 1fr 1fr; }.guide-steps p { font-size: 10px; }.guide-steps h3 { font-size: 12px; }.guide-steps li { gap: 12px; }.guide-steps li > span { width: 29px; height: 29px; font-size: 15px; border-radius: 7px; }.account-modal { width: 100%; }.toast-stack { bottom: 47px; }.toast { font-size: 10px; padding: 9px 10px; }.admin-shell { margin: 10px auto; padding: 18px; }.admin-header { align-items: start; flex-direction: column; gap: 15px; }.admin-shell .finance-summary { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Keep supporting controls readable at standard desktop resolutions. */
@media (min-width: 1051px) {
    .resource small { font-size: 10px; }
    .profile-copy strong { font-size: 12px; }
    .profile-copy small { font-size: 10px; }
    .city-label .eyebrow { font-size: 8px; }
    .scene-location { font-size: 9px; }
    .advisor-card p { font-size: 11px; }
    .card-kicker { font-size: 8px; }
    .text-button { font-size: 11px; }
    .card-heading h2 { font-size: 12px; }
    .card-subtitle { font-size: 10px; }
    .demand-bars small, .demand-note { font-size: 8px; }
    .demand-label { font-size: 10px; }
    .demand-track > em { font-size: 8px; }
    .dock-heading h2 { font-size: 12px; }
    .dock-subtitle { font-size: 9px; }
    .tool-name { font-size: 11px; }
    .tool-price, .dock-footer { font-size: 9px; }
    .minimap-header, .minimap-footer { font-size: 8px; }
    .status-bar, .game-date { font-size: 9px; }
}
@media (max-height: 850px) and (min-width: 1000px) {
    .side-rail { padding-top: 13px; }
    .rail-group { gap: 3px; }
    .rail-label { margin-bottom: 3px; }
    .rail-button { height: 35px; }
    .rail-separator { margin: 12px 0; }
    .rail-edition { margin-top: 2px; }
}
