/* LAST CITY / FIELD EDITION
   Pixel craft, woodland warmth, salvaged technology. Presentation only:
   existing screens keep their IDs, action handlers and save contracts. */
:root {
    --field-bg: #101d1b;
    --field-panel: #182b26;
    --field-raised: #1e332c;
    --field-sunken: #12231f;
    --field-line: #35493d;
    --field-ink: #ece6d3;
    --field-muted: #a0b1a0;
    --field-gold: #e7bf7b;
    --field-green: #a5c897;
    --field-teal: #7ebdb0;
    --field-shadow: #07110e;
}
body.pixel-app {
    --bg: var(--field-bg); --bg-dark: #101d1b;
    --panel: var(--field-panel); --panel-light: var(--field-raised);
    --surface: var(--field-panel); --surface-light: var(--field-raised);
    --border: var(--field-line); --text: var(--field-ink); --muted: var(--field-muted);
    --yellow: var(--field-gold); --orange: #d9a16c; --blue: var(--field-teal); --green: var(--field-green);
    --x-bg: var(--field-panel); --x-bg-raised: var(--field-raised); --x-bg-sunken: var(--field-sunken);
    --x-text: var(--field-ink); --x-text-dim: var(--field-muted); --x-line: var(--field-line);
    --x-accent: var(--field-teal); --x-research: var(--field-green); --x-radius: 0; --x-radius-sm: 0;
    margin: 0; padding: 0 0 38px 216px; min-height: 100dvh;
    background: var(--field-bg); color: var(--field-ink); font-size: 13px;
    line-height: 1.55; text-shadow: none !important; overflow-x: clip;
}
body.pixel-app::before, body.pixel-app::after { display: none !important; }
body.pixel-app, body.pixel-app :is(button, input, select, textarea, h1, h2, h3, h4) {
    font-family: 'Cascadia Code', 'Consolas', ui-monospace, monospace;
}
body.pixel-app * { box-sizing: border-box; }
body.pixel-app :is(button, summary, a, input, select, textarea):focus-visible { outline: 2px solid var(--field-gold); outline-offset: 4px; }
body.pixel-app :is(button, input, select, textarea) { font-size: 12px; }
body.pixel-app button { cursor: pointer; min-height: 40px; }
body.pixel-app button:disabled { cursor: not-allowed; opacity: .55; }
body.pixel-app :is(h2, h3, h4) { letter-spacing: -.5px; color: var(--field-ink); }
body.pixel-app button:hover:not(:disabled) { filter: brightness(1.1); }
body.pixel-app button:active:not(:disabled) { filter: brightness(.96); }
.pixel-icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; vertical-align: middle; fill: currentColor; image-rendering: pixelated; }
.field-kicker { margin: 0 0 7px; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: var(--field-muted); line-height: 1.7; }
/* Left rail: one place to travel, one place to choose an activity. */
body.pixel-app .top-header {
    position: fixed; z-index: 140; inset: 0 auto 0 0; width: 216px; height: 100dvh;
    margin: 0; padding: 30px 23px 21px; display: flex; flex-direction: column;
    align-items: stretch; justify-content: space-between; gap: 20px;
    background: #14241f; border: 0; border-right: 1px solid var(--field-line);
}
body.pixel-app .logo-section { position: relative; padding-left: 40px; }
.field-brand-mark { position: absolute; left: 0; top: 2px; color: var(--field-gold); }
.field-brand-mark svg { width: 30px; height: 38px; }
body.pixel-app .studio-name { color: #91a18e; font-size: 7px; letter-spacing: .8px; white-space: nowrap; margin: 0 0 5px; }
body.pixel-app .logo-section h1 { font-size: 24px; line-height: .98; margin: 0; color: #e7e1cb; letter-spacing: 1px; text-shadow: 2px 2px #071a13; }
body.pixel-app .logo-section h1 span { display: block; color: var(--field-gold); font-size: 29px; }
body.pixel-app .logo-section .tagline { display: none; }
body.pixel-app .header-buttons { display: flex; width: 100%; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--field-line); }
body.pixel-app #zoneHelpButton { position: static; inset: auto; flex-shrink: 0; min-width: 38px; height: 38px; border: 1px solid var(--field-line); background: #20362b; color: var(--field-ink); box-shadow: 0 3px #0a1c14; }
body.pixel-app .player-settings { width: 100%; position: static; }
body.pixel-app #zoneHelpButton { display: none; }
body.pixel-app #guideButton { min-height: 38px; padding: 7px 9px; background: #20362b; color: #cbd7b7; border: 1px solid #486341; font-size: 10px; }
body.pixel-app .player-settings > summary { list-style: none; font-size: 11px; color: var(--field-muted); background: none; border: 0; padding: 10px 6px; min-height: 38px; }
body.pixel-app .settings-menu { position: fixed; top: auto; right: auto; bottom: 20px; left: 230px; width: min(360px, calc(100vw - 250px)); max-height: calc(100dvh - 40px); overflow-y: auto; z-index: 430; background: #172b23; border: 1px solid #6e8265; padding: 20px; box-shadow: 5px 5px #07110ecc; }
body.pixel-app .settings-menu button { background: var(--field-raised); color: var(--field-ink); border: 1px solid #455b47; }
body.pixel-app .game-container > .game-mode-tabs {
    position: fixed; z-index: 145; inset: 163px auto 88px 13px; width: 189px;
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    gap: 5px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
    padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
}
body.pixel-app .game-mode-tabs::before { content: 'YOUR OUTPOST'; display: block; color: #819781; font-size: 8px; letter-spacing: 1.7px; margin: 0 12px 10px; }
body.pixel-app .game-mode-tab {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px;
    padding: 11px 12px; min-height: 45px; text-align: left; color: #aebba5;
    border: 1px solid transparent; border-left-width: 3px; background: transparent;
    font-size: 11px; font-weight: 500; line-height: 1.4; white-space: normal;
}
body.pixel-app .game-mode-tab .nav-icon { width: 23px; height: 23px; color: #7f9d7e; }
body.pixel-app .game-mode-tab.active { background: #2c3b29; border-color: #46533c; border-left-color: var(--field-gold); color: #f2d9a8; box-shadow: none; }
body.pixel-app .game-mode-tab.active .nav-icon { color: var(--field-gold); }
body.pixel-app .game-mode-tab.locked { display: none; }
body.pixel-app .game-mode-tab::after { display: none; }
body.pixel-app .game-mode-tab .ready-badge { margin-left: auto; position: static; background: #c8a66a; color: #17251c; border: 0; font-size: 8px; padding: 1px 5px; }
/* Wallet: important numbers, not another wall of cards. */
body.pixel-app .wallet-bar {
    position: sticky; top: 0; z-index: 115; display: flex; align-items: center; gap: 28px;
    width: 100%; max-width: none; min-height: 82px; padding: 13px 30px; margin: 0;
    border: 0; border-bottom: 1px solid var(--field-line); background: #15251ff5; box-shadow: none;
}
body.pixel-app .wallet-primary { display: grid; grid-template-columns: auto auto; gap: 0 12px; align-items: baseline; min-width: 165px; }
body.pixel-app .wallet-primary > span { color: #c8b48a; letter-spacing: 1.4px; font-size: 8px; grid-column: 1 / -1; }
body.pixel-app .wallet-primary > strong { color: #efe6cf; font-size: 28px; line-height: 1.2; }
body.pixel-app .wallet-primary > small { color: #a8c895; font-size: 10px; }
body.pixel-app #walletBalance[data-terminal-printing] { color: #efe6cf !important; }
body.pixel-app #walletBalance[data-terminal-printing]::after { display: none; }
body.pixel-app .wallet-secondary { padding-left: 25px; border-color: #3b4e3e; }
body.pixel-app .wallet-secondary > span { font-size: 8px; letter-spacing: 1px; color: var(--field-muted); }
body.pixel-app .wallet-secondary > strong { color: #d5d3ad; font-size: 17px; }
body.pixel-app .wallet-luck { margin-left: auto; min-height: 0; padding: 0; border: 0; background: transparent; }
body.pixel-app .wallet-luck[hidden] { display: none; }
body.pixel-app .wallet-luck > span { font-size: 8px; color: #b0a8c5; }
body.pixel-app .wallet-luck > strong { font-size: 16px; color: #c6b6de; }
.field-wallet-population { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #91ae8d; }
.field-wallet-population > div { display: grid; }
.field-wallet-population span { font-size: 8px; letter-spacing: 1px; color: var(--field-muted); }
.field-wallet-population strong { font-size: 18px; color: #dce3c9; }
body.pixel-app .level-bar { background: #14231d; border-bottom-color: var(--field-line); padding: 7px 30px; font-size: 9px; }
body.pixel-app .wallet-level { flex: 0 1 185px; min-width: 110px; border-left: 1px solid #354c37; padding-left: 23px; color: #b6c79d; }
body.pixel-app .wallet-level .level-head { font-size: 8px; }
body.pixel-app .wallet-level .level-head span { color: #a4b295; font-size: 8px; }
body.pixel-app .wallet-level .level-head strong { color: #d5bd7e; font-size: 10px; }
body.pixel-app .wallet-level small { color: #8da27f; font-size: 8px; }
body.pixel-app .level-track { background: #283c2d; }
body.pixel-app #levelFill { background: #97b682; }
/* Page hierarchy */
body.pixel-app .game-container { display: block; width: auto; max-width: 1480px; margin: 18px auto 0; padding: 0 28px 38px; }
body.pixel-app .stage-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 0 0 15px; margin: 0; border: 0; background: none; scrollbar-width: thin; }
body.pixel-app .stage-tab { flex: 0 0 auto; min-width: 0; min-height: 35px; padding: 7px 12px; font-size: 9px; letter-spacing: .2px; border: 1px solid #314437; background: #172922; color: #a8b79f; }
body.pixel-app .stage-tab.active { border-color: #a58b58; background: #3b3b27; color: #ebd3a2; box-shadow: none; }
body.pixel-app .stage-tab.locked { color: #8b9987; background: #14231e; opacity: .72; }
body.pixel-app .stage-tab .stage-lock-icon { width: 12px; height: 12px; margin-right: 4px; }
body.pixel-app #worldBanner { display: none !important; }
.settlement-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0 22px; scroll-margin-top: 100px; }
.settlement-heading h2 { font-size: clamp(24px, 2.5vw, 35px); font-weight: 700; letter-spacing: -1.4px; margin: 3px 0 5px; line-height: 1.25; }
.settlement-heading p:not(.field-kicker) { margin: 0; color: #a6b29e; font-size: 11px; line-height: 1.8; }
.field-live { display: flex; align-items: center; gap: 7px; white-space: nowrap; align-self: flex-start; margin-top: 28px; font-size: 8px; letter-spacing: 1.1px; color: #a9bc9c; }
.field-live i, .field-scene-footer i, .field-start-art > div i { display: inline-block; width: 5px; height: 5px; background: #aacb90; box-shadow: 0 0 7px #a5cf7744; }
body.pixel-app #tutorialHint { display: none; }
body.pixel-app .save-status-row { position: fixed; z-index: 90; inset: auto 0 0 216px; margin: 0; min-height: 25px; padding: 5px 26px; background: #101e19f5; border-top: 1px solid #2e4433; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 8px; }
body.pixel-app .save-status-row :is(.cloud-save-status,.auto-save-indicator) { position: static; font-size: 8px; color: #9cae94; background: none; border: 0; padding: 0; box-shadow: none; }
body.pixel-app .terminal-save-progress { height: 3px; width: 45px; }
body.pixel-app .story-notice { padding: 10px 15px; margin: 0 0 16px; border: 1px solid #43543c; background: #203227; font-size: 10px; }
body.pixel-app .story-notice .eyebrow { font-size: 8px; margin-bottom: 2px; }
body.pixel-app .story-notice strong { font-size: 11px; }
body.pixel-app .story-notice button { background: #2a4130; border: 1px solid #576d4c; color: #dfdcbf; font-size: 10px; }
body.pixel-app[data-mode="city"] .story-notice { display: none !important; }
/* The settlement is a home, not an extra tab in front of the actual game. */
#settlementHub, #fieldConnections, #fieldExpeditionObjective { display: none; }
body.pixel-app[data-mode="city"][data-zone="1"] #settlementHub { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
body.pixel-app[data-mode="city"][data-zone="1"] #fieldConnections { display: grid; }
body.pixel-app[data-mode="city"]:not([data-zone="1"]) #fieldExpeditionObjective { display: block; margin: 0 0 18px; }
body.pixel-app[data-mode="city"][data-zone="1"] #stage1Panel { display: none !important; }
.settlement-main, .settlement-rail { min-width: 0; }
.settlement-rail { display: grid; gap: 16px; }
.field-scene { border: 1px solid #506048; padding: 4px; background: #1b2b22; box-shadow: 0 4px #0b1811 !important; }
.field-scene-heading { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px 10px; color: #d2c6a5; font-size: 8px; letter-spacing: 1.3px; }
.field-scene-heading > div { display: flex; gap: 7px; align-items: center; }
.field-scene-heading svg { width: 15px; height: 15px; color: #c7ab77; }
.field-coordinate { font-size: 7px; color: #9ba88b; }
body.pixel-app #cityBuilderPanel { width: 100%; max-width: none; margin: 0; }
body.pixel-app[data-mode="city"][data-zone="1"] #cityBuilderPanel { display: block; }
body.pixel-app[data-mode="city"] .city-shell { display: block; }
body.pixel-app[data-mode="city"] .city-side { display: none; }
body.pixel-app .city-stage { border: 0; background: #2c493c; box-shadow: none; }
body.pixel-app #cityCanvas { height: clamp(260px, 34vh, 380px); image-rendering: pixelated; image-rendering: crisp-edges; background: #1b342d; }
body.pixel-app .city-overlay-left { top: 14px; left: 15px; padding: 8px 11px; background: #14291ed9; border: 1px solid #5b725046; }
body.pixel-app .city-zone-name { font-size: 8px; color: #dfd7b3; letter-spacing: 1.2px; }
body.pixel-app .city-clock { font-size: 8px; color: #b1c09f; margin-top: 4px; }
body.pixel-app .city-overlay-right { top: 12px; right: 12px; gap: 5px; }
body.pixel-app .city-round { width: 31px; height: 31px; min-height: 31px; background: #193224d9; border: 1px solid #76916a66; color: #dfe2c5; backdrop-filter: none; font-size: 15px; }
body.pixel-app[data-mode="city"] #cityToolHint { display: none; }
.field-scene-footer { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 10px 11px 6px; color: #acb99c; font-size: 8px; }
.field-scene-footer b { font-weight: 400; color: #dddfbd; }
.field-scene-footer button { min-height: 25px !important; padding: 0; background: none; border: 0; color: #d1c195; font-size: 8px !important; display: flex; align-items: center; gap: 5px; }
.field-scene-footer svg { width: 12px; height: 12px; }
/* The existing Gather action is relocated, not copied. */
body.pixel-app #fieldGatherMount .city-panel { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 15px 0 10px; margin: 0; background: transparent; border: 0; width: 100%; height: auto; min-height: 0; box-shadow: none; }
body.pixel-app #fieldGatherMount :is(.city-header,.city-visual,.city-description,.click-stats) { display: none; }
body.pixel-app #fieldGatherMount .city-panel::before { display: none; }
body.pixel-app #fieldGatherMount .energy-button { display: flex; flex-direction: row; flex: 1 1 240px; align-items: center; justify-content: center; gap: 12px; width: auto; height: auto; max-width: none; margin: 0; min-height: 57px; padding: 13px 20px; font-size: 13px; letter-spacing: 1px; color: #263324; background: #e2bf7e; border: 1px solid #f0d69b; border-bottom: 4px solid #9d804d; box-shadow: 0 3px #081a12; text-shadow: none; }
body.pixel-app #fieldGatherMount .energy-button::before, body.pixel-app #fieldGatherMount .energy-button::after { display: none; }
body.pixel-app #fieldGatherMount .energy-button-icon { width: auto; font-size: 21px; }
body.pixel-app #fieldGatherMount .energy-button small { margin: 0; color: #31452c; font-size: 11px; }
body.pixel-app #fieldGatherMount .combo-meter { flex: 0 1 170px; width: auto; height: auto; max-width: none; border: 0; background: none; padding: 7px 4px; margin: 0; min-width: 120px; }
body.pixel-app .combo-copy { font-size: 8px; color: #b9c3a3; }
body.pixel-app .combo-copy strong { color: #d5c28b; }
body.pixel-app .combo-track { height: 4px; margin: 6px 0; background: #2b4230; }
body.pixel-app #comboBar { background: #a6bc85; }
body.pixel-app #comboBonus { color: #9eae92; font-size: 8px; }
/* Purchases explain their job before their numbers. */
.field-build-section { margin-top: 17px; }
.field-build-section > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; gap: 12px; }
.field-build-section h3 { margin: 0; font-size: 18px; }
.field-text-button { border: 0; background: none; color: #cbb889; font-size: 9px !important; padding: 4px 0; }
.field-text-button svg { width: 12px; height: 12px; margin-left: 3px; }
.field-build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-plan { display: flex; flex-direction: column; min-width: 0; padding: 15px 13px 11px; border: 1px solid #3d523e; background: #1a2d24; box-shadow: 0 3px #0b1a12 !important; }
.field-plan-icon { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 15px; color: #d5bd84; }
.field-plan-icon svg { height: 31px; width: 31px; }
.field-plan-icon span { color: #a5b299; font-size: 8px; }
.field-plan h4 { margin: 0 0 4px; font-size: 11px; line-height: 1.4; letter-spacing: -.3px; }
.field-plan-role { font-size: 8px; color: #99b28a; margin: 0 0 10px; }
.field-plan-effect { margin: auto 0 13px; min-height: 32px; color: #bcc9ac; font-size: 8px; line-height: 1.8; }
.field-funding { height: 3px; background: #2f4432; margin-bottom: 10px; }
.field-funding i { display: block; height: 100%; background: #a9b987; width: 0; max-width: 100%; }
.field-plan button { display: flex; align-items: center; justify-content: center; gap: 5px; background: #2c4130; border: 1px solid #65704c; border-bottom: 3px solid #13281a; color: #e5d9b4; min-height: 37px; padding: 7px 3px; font-size: 9px !important; }
.field-plan button .pixel-icon { width: 13px; height: 13px; color: #ceb278; }
.field-plan button:disabled { border-color: #394c38; opacity: .7; color: #a4ae92; }
.field-plan > small { min-height: 30px; margin-top: 7px; font-size: 8px; line-height: 1.7; color: #98ac8c; }
/* Right rail */
body.pixel-app .milestone-panel { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px 10px; background: #202f24; border: 1px solid #6d6b44; border-top: 3px solid #bc9f62; padding: 18px; margin: 0; width: 100%; }
body.pixel-app .milestone-copy { grid-column: 1 / -1; display: grid; gap: 7px; min-width: 0; }
body.pixel-app .milestone-copy .eyebrow { color: #c9b57d; font-size: 8px; margin: 0; letter-spacing: 1.8px; }
body.pixel-app #milestoneTitle { color: #f1e1b9; font-size: 14px; line-height: 1.6; }
body.pixel-app #milestoneDetail { color: #b0b99b; font-size: 9px; line-height: 1.8; }
body.pixel-app .milestone-progress { height: 5px; min-width: 0; width: 100%; background: #3b4a31; align-self: center; }
body.pixel-app #milestoneBar { background: #c3aa68; }
body.pixel-app #milestonePercent { color: #d6bf81; font-size: 9px; }
body.pixel-app #milestoneAction { grid-column: 1 / -1; min-height: 39px; width: 100%; background: #bfa36b; color: #1f2b1d; border: 1px solid #d2b983; border-bottom: 3px solid #7f7048; font-size: 9px; padding: 9px 10px; }
.field-tutorial { border: 1px solid #344d35; margin-top: 8px; background: #182e22; }
.field-tutorial > summary { font-size: 9px; color: #adbc99; cursor: pointer; padding: 9px 12px; }
.field-tutorial:has(> [hidden]) { display: none; }
body.pixel-app .tutorial-coach { position: static; background: none; border: 0; width: 100%; margin: 0; padding: 10px 14px; color: #b8c6a4; }
body.pixel-app .tutorial-coach h3 { font-size: 12px; }
body.pixel-app .tutorial-coach p { font-size: 10px; line-height: 1.8; }
.field-beacon { padding: 17px; border: 1px solid #40583f; background: #1b2d23; }
.field-beacon > header { display: flex; align-items: center; gap: 8px; color: #acb68e; font-size: 8px; letter-spacing: 1.6px; }
.field-beacon > header svg { color: #d7bc7f; width: 23px; height: 23px; }
.field-beacon-title { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 10px; }
.field-beacon-title h3 { font-size: 12px; margin: 0; }
.field-beacon-title strong { color: #dbc78f; font-size: 10px; white-space: nowrap; }
.field-beacon > p { color: #aeb99a; font-size: 10px; line-height: 1.9; margin: 9px 0 15px; }
.field-beacon-modules { display: flex; gap: 5px; margin: 0 0 14px; }
.field-beacon-modules i { height: 5px; flex: 1; background: #384c34; }
.field-beacon-modules i.restored { background: #d6bc7d; box-shadow: 0 0 9px #e7c57122; }
.field-beacon > button { width: 100%; border: 1px solid #6b7951; border-bottom: 3px solid #263b23; background: #33462e; color: #dce1b7; min-height: 37px; font-size: 9px !important; padding: 8px; }
.field-beacon > small { color: #94a889; font-size: 8px; line-height: 1.8; display: block; margin-top: 9px; }
.field-beacon > button[hidden] { display: none; }
.field-beacon #fieldGateButton { margin-top: 10px; color: var(--field-gold); }
body.pixel-app #fieldSupplyMount .dispatch-card { display: block; width: 100%; margin: 0; padding: 17px; background: #192c24; border: 1px solid #3c5741; }
body.pixel-app #fieldSupplyMount .dispatch-card h3 { font-size: 12px; }
body.pixel-app #fieldSupplyMount .dispatch-card p { font-size: 9px; color: #a8b99b; }
body.pixel-app #fieldSupplyMount .dispatch-card button { background: #294731; color: #d5e0bc; border: 1px solid #5c7751; width: 100%; min-height: 36px; font-size: 10px; }
body.pixel-app #fieldSupplyMount .dispatch-card .dispatch-icon { display: none; }
body.pixel-app #fieldSupplyMount .dispatch-card :is(.dispatch-top,.dispatch-status) { font-size: 8px; }
body.pixel-app #fieldSupplyMount .dispatch-card h2 { font-size: 13px; }
body.pixel-app #fieldSupplyMount .dispatch-card::before,body.pixel-app #fieldSupplyMount .dispatch-card::after { display: none; }
.field-path { padding: 17px; border: 1px solid #344c3b; background: #15281f; }
.field-path h3 { font-size: 12px; margin: 0 0 15px; }
.field-journey { display: grid; gap: 0; }
.field-journey button { display: grid; grid-template-columns: 25px 1fr auto; gap: 7px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #2b4131; background: none; padding: 7px 0; min-height: 35px; font-size: 9px !important; color: #94a78b; }
.field-journey button:last-child { border-bottom: 0; }
.field-journey button > span { color: #718a70; font-size: 9px; }
.field-journey button b { font-weight: 400; }
.field-journey button small { color: #71856e; font-size: 7px; }
.field-journey button.current b { color: #e3c995; }
.field-journey button.current > span { color: #ceba83; }
.field-journey button.discovered small { color: #acc79a; }
body.pixel-app .city-renewal { padding: 0; margin: 0; border: 1px solid #3e513a; background: #1b2b22; }
body.pixel-app .city-renewal > summary { font-size: 9px; color: #bdb68e; padding: 12px; cursor: pointer; }
body.pixel-app .city-renewal > button { margin: 10px !important; width: calc(100% - 20px); font-size: 10px; background: #29392b; color: #d7c59d; }
body.pixel-app .city-renewal .rebirth-requirement { padding: 0 12px 12px; font-size: 9px; }
/* The relationship between systems is part of the UI, not hidden in a manual. */
#fieldConnections { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid #344b35; margin-top: 28px; padding-top: 25px; }
#fieldConnections > article { min-width: 0; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-content: start; }
#fieldConnections > article > svg { color: #8eae7e; width: 24px; height: 24px; margin-top: 3px; }
#fieldConnections small { color: #8ca180; letter-spacing: 1px; font-size: 7px; }
#fieldConnections h3 { margin: 4px 0 8px; font-size: 12px; }
#fieldConnections p { color: #94a58b; font-size: 9px; line-height: 1.9; margin: 0; }
#fieldConnections button { grid-column: 2; background: none; color: #c9bd8b; text-align: left; min-height: 26px; padding: 0; border: 0; font-size: 8px; }
#fieldConnections button svg { width: 11px; height: 11px; }
/* Full planner uses the exact same canvas and state as the overview. */
body.pixel-app.build-open #settlementHub { display: block; }
body.pixel-app.build-open .settlement-rail, body.pixel-app.build-open #fieldGatherMount, body.pixel-app.build-open .field-build-section { display: none; }
body.pixel-app.build-open .city-shell { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 15px; }
body.pixel-app.build-open .city-side { display: flex; }
body.pixel-app.build-open #cityCanvas { height: clamp(420px, 63vh, 700px); }
body.pixel-app.build-open .field-scene-footer { display: none; }
body.pixel-app .city-block { background: #1b2d25; border-color: #40513d; }
body.pixel-app .city-block h3 { font-size: 11px; }
body.pixel-app .city-block :is(button,.city-tray-entry) { background: #23392b; color: #d0dabd; border-color: #4a6043; }
body.pixel-app .city-tool { border: 1px solid #3e563d; background: #1e3326; font-size: 8px; min-height: 47px; color: #b5c5a7; }
body.pixel-app .city-tool.active { background: #475033; border-color: #aa975f; color: #f1d49e; }
/* Unified materials across every existing game screen. */
body.pixel-app :is(.stage-panel,.companion-panel,.glyph-panel,.story-panel,.stats-panel,.combat-panel,.research-panel,.upgrade-hub) { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
body.pixel-app :is(.building-panel,.building-card,.upgrade-card,.tech-card,.zone-content,.zone-card,.zone-console,.zone-console-card,.resource-card,.research-shell,.research-node,.combat-heading,.combat-card,.combat-shell,.pet-card,.egg-card,.companion-heading,.inventory-panel,.glyph-heading,.glyph-console,.glyph-research,.glyph-collection,.glyph-tier,.glyph-surface,.glyph-station,.glyph-research-card,.archive-heading,.story-index,.story-reader,.stats-hero,.stat-group,.contract-card,.infrastructure-grid > button,.preservation-card) { background: #192c24; border-color: #3d543e; box-shadow: 0 3px #0b1812; }
body.pixel-app :is(.upgrade-card p,.building-card p,.tech-card p,.glyph-heading p,.companion-heading p,.research-heading p,.combat-heading p) { color: #acbaa0; }
body.pixel-app :is(.buy-button,.buy-upgrade-button,.tech-card button,.zone-actions button,.glyph-roll-controls button,.hatch-button,.hatch-action,.research-node button) { background: #33462e; color: #e4d8ad; border: 1px solid #7e8154; border-bottom: 3px solid #1a3020; box-shadow: none; }
body.pixel-app :is(.purchase-tabs,.glyph-family-index,.companion-tabs,.story-filters) button { background: #1e3227; border-color: #496045; color: #b5c4a8; }
body.pixel-app :is(.purchase-tabs,.glyph-family-index,.companion-tabs,.story-filters) button[aria-pressed="true"] { background: #41492f; color: #e9d29c; border-color: #9a8a55; }
body.pixel-app .upgrade-hub { background: #1a2c24; border: 1px solid #3d543e; padding: 20px; }
body.pixel-app .purchase-heading h2 { font-size: 22px; }
body.pixel-app .purchase-heading > span { font-size: 10px; color: #b9bf9e; }
body.pixel-app .purchase-tabs { margin-top: 14px; }
body.pixel-app :is(.resource-icon,.building-icon,.upgrade-icon) { color: #c7b27e; background: #263c2b; }
body.pixel-app .resource-card { padding: 17px; }
body.pixel-app .resource-card h2 { font-size: 25px; }
body.pixel-app .game-layout { background: none; }
body.pixel-app .stage-panel.active { gap: 17px; }
body.pixel-app .upgrade-grid { gap: 12px; }
body.pixel-app .upgrade-effect { color: #d1d8ad; }
body.pixel-app .upgrade-role { color: #a8c394; }
body.pixel-app .glyph-grid { gap: 9px; }
body.pixel-app .glyph-tier { background: #1c2d25; }
body.pixel-app .glyph-tier.discovered { background: #23392b; }
body.pixel-app .story-art { image-rendering: pixelated; }
body.pixel-app .story-art-1 { background-image: url('../../assets/zones/ashfall-pixel.svg'); }
body.pixel-app .story-art-2 { background-image: url('../../assets/zones/depot-pixel.svg'); }
body.pixel-app .story-art-3 { background-image: url('../../assets/zones/foundry-pixel.svg'); }
body.pixel-app .story-art-4 { background-image: url('../../assets/zones/relay-pixel.svg'); }
body.pixel-app .story-art-5 { background-image: url('../../assets/zones/citadel-pixel.svg'); }
body.pixel-app[data-zone="1"] { --world-art: url('../../assets/zones/ashfall-pixel.svg'); }
body.pixel-app[data-zone="2"] { --world-art: url('../../assets/zones/depot-pixel.svg'); }
body.pixel-app[data-zone="3"] { --world-art: url('../../assets/zones/foundry-pixel.svg'); }
body.pixel-app[data-zone="4"] { --world-art: url('../../assets/zones/relay-pixel.svg'); }
body.pixel-app[data-zone="5"] { --world-art: url('../../assets/zones/citadel-pixel.svg'); }
body.pixel-app .stage-panel .zone-scene { background: linear-gradient(90deg, #10251cf5, #10251cc9 53%, #10251c18), var(--world-art) right center / cover; border-color: #5b6f49; padding: 25px; }
body.pixel-app .zone-content { background: transparent; box-shadow: none; }
body.pixel-app .zone-quest { border-color: #4f6845; background: #1b3426c9; }
body.pixel-app .zone-lore,body.pixel-app .zone-pet-summary { color: #afc09d; }
body.pixel-app :is(.zone-workshop,.zone-actions button,.search-sites button,.assembly-piece,.guardian-shield,.relay-tower-card) { background-color: #1b3328; border-color: #57754c; color: #d3dfbc; }
body.pixel-app .pet-art { image-rendering: pixelated; background-color: #1a2e26; }
body.pixel-app .city-service-hud { width: 100%; margin: 0 0 15px; padding: 0; background: transparent; border: 0; gap: 8px; }
body.pixel-app .service-cell { background: #192e23; border: 1px solid #334e36; padding: 9px 12px; }
body.pixel-app .service-cell[role="button"] { cursor: pointer; }
body.pixel-app .service-cell[role="button"]:hover { background: #243d2b; border-color: #a1ac71; }
body.pixel-app .service-cell[role="button"]:focus-visible { outline: 2px solid var(--field-gold); outline-offset: 3px; }
body.pixel-app .service-copy small { font-size: 7px; color: #99ae90; }
body.pixel-app .service-copy strong { font-size: 12px; color: #cedbb6; }
body.pixel-app .service-copy i { font-size: 8px; color: #95aa8e; }
/* Dialogs stay native and accessible; the same field-kit materials travel with them. */
body.pixel-app dialog:not(.start-screen) { color: var(--field-ink); background-color: #172b22; border-color: #7b8559; box-shadow: 5px 5px #060f0bbd; }
body.pixel-app dialog::backdrop { background: #07100be0; backdrop-filter: blur(3px); }
body.pixel-app dialog :is(input,textarea,select) { background: #10251a; color: #e0e4c7; border: 1px solid #627354; }
body.pixel-app dialog :is(button,.secondary-button) { background-color: #2b412e; border-color: #6b7d53; color: #e0d6b0; }
body.pixel-app .danger-button, body.pixel-app .start-danger { color: #e4ab92; background: #422d25; border-color: #93654e; }
body.pixel-app .crt-overlay { opacity: .13; box-shadow: none; }
body.pixel-app :is(.terminal-power-cycle,.terminal-burn-in,.terminal-key-flash) { display: none !important; }
body.pixel-app .terminal-log-panel { left: 12px; bottom: 77px; width: 190px; font-size: 8px; color: #9cad8d; border-color: #354a34; background: #14251ef2; }
body.pixel-app .terminal-log-panel summary { font-size: 8px; padding: 8px; min-height: 30px; }
body.pixel-app .terminal-log-panel[open] { width: min(340px, calc(100vw - 32px)); z-index: 160; }
body.pixel-app #terminalIdleText { display: none; }
body.pixel-app .notification { background: #1b3326; border-color: #82a16c; color: #d9e0bc; font-size: 11px; right: 20px; bottom: 45px; max-width: min(420px, calc(100vw - 40px)); clip-path: none; }
body.pixel-app .terminal-receipt { background: #1a3023; color: #c6d6ae; border-color: #6a8b5a; font-size: 9px; bottom: 45px; }
/* Title screen: a handmade pixel world, rather than a full-screen stock background. */
body.pixel-app dialog.start-screen { width: 100vw; height: 100dvh; max-height: none; max-width: none; inset: 0; border: 0; margin: 0; padding: 0; background: #111e19; }
body.pixel-app .start-screen .start-card { position: relative; width: min(1240px, 100%); min-height: 100dvh; margin: auto; padding: 27px 44px 20px; background: none; }
body.pixel-app .start-landscape, body.pixel-app .start-atmosphere { display: none; }
body.pixel-app .start-brand { color: #b6c1a4; }
body.pixel-app .start-brand > p { font-size: 9px; letter-spacing: 2px; }
body.pixel-app .start-brand > p > span { color: #d6bd83; }
body.pixel-app .start-preview-badge { font-size: 8px; letter-spacing: 1px; border-color: #425b3e; color: #9cb58f; background: #1b3022; }
body.pixel-app .start-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; padding: 48px 0 40px; align-items: center; }
body.pixel-app .start-copy { max-width: 480px; }
body.pixel-app .start-kicker { color: #c4ae76; font-size: 8px; letter-spacing: 2px; }
body.pixel-app .start-copy h1 { font-size: clamp(60px, 6.7vw, 96px); letter-spacing: -5px; line-height: .98; margin-bottom: 22px; color: #ebe6cf; text-shadow: 4px 4px #06180d; }
body.pixel-app .start-copy h1 > span { display: block; color: #e5bd7b; }
body.pixel-app .start-copy .start-tagline { color: #d6d4b5; font-size: 13px; line-height: 1.8; }
body.pixel-app .start-copy #startDescription { color: #9eaf94; font-size: 11px; line-height: 1.9; }
body.pixel-app .start-copy .start-save-summary { border-color: #3d5139; margin-bottom: 19px; }
body.pixel-app .start-copy .start-save-summary strong { font-size: 10px; color: #d5dbba; }
body.pixel-app .start-copy .start-save-summary span:not(.start-save-dot) { font-size: 9px; color: #99b18e; }
body.pixel-app .start-screen .intro-start-button { min-height: 58px; background: #e4bf7d; border: 1px solid #f1d499; border-bottom: 4px solid #907443; color: #203122; padding: 14px 22px; font-size: 13px; letter-spacing: 1.5px; box-shadow: 0 4px #06170c; }
body.pixel-app .start-account { padding: 14px 0 0; }
body.pixel-app .start-account button { background: none; border: 1px solid #536847; color: #c0cfab; font-size: 10px; min-height: 39px; }
body.pixel-app .start-account p { color: #8fa286; font-size: 9px; }
body.pixel-app .start-secondary { gap: 5px 17px; margin: 5px 0; }
body.pixel-app .start-screen .start-secondary button { color: #a3b596; font-size: 9px; background: transparent; border-color: transparent; padding: 7px 0; }
body.pixel-app .start-footnote { color: #849c7d !important; font-size: 8px !important; line-height: 1.8; }
body.pixel-app .start-world-caption { display: block; align-self: center; padding: 0; text-align: left; }
.field-start-art { position: relative; padding: 5px; background: #233c2b; border: 1px solid #65764c; box-shadow: 7px 7px #07160e !important; transform: rotate(1deg); }
.field-start-art > img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.field-start-art > div { display: grid; grid-template-columns: 6px 1fr; align-items: center; gap: 4px 9px; background: #1b2c20; padding: 15px 12px; }
.field-start-art > div span { font-size: 9px; letter-spacing: 1.8px; color: #d2c28d; }
.field-start-art > div small { grid-column: 2; color: #8fa886; font-size: 9px; letter-spacing: 0; }
.field-start-art::after { content: ''; pointer-events: none; position: absolute; width: 3px; height: 3px; background: #ffe0a1; left: 39%; top: calc(74% - var(--ember-drift, 0px)); opacity: .6; box-shadow: 8px -15px #d29e64, -5px -27px #e5c680; }
body.pixel-app .start-extras { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
body.pixel-app :is(.start-daily,.start-news,.start-inline-panel) { background: #192c20; border: 1px solid #3f573b; backdrop-filter: none; }
body.pixel-app .start-daily { padding: 14px 17px; }
body.pixel-app .start-daily strong { color: #dbdfbc; font-size: 13px; }
body.pixel-app .start-daily small { color: #98b18c; font-size: 8px; }
body.pixel-app .start-daily button { background: #304b2e; border-color: #6a8351; color: #d6dfb6; font-size: 9px; }
body.pixel-app .start-news .news-ticker-track { animation: none; width: auto; }
body.pixel-app .start-news .news-ticker-track span { white-space: normal; padding: 0; font-size: 10px; color: #b4c2a0; }
body.pixel-app .start-news .news-ticker-track span[aria-hidden="true"] { display: none; }
body.pixel-app .start-news summary { color: #cebf8c; font-size: 9px; }
body.pixel-app .start-footer { border-color: #354c32; color: #829c7c; font-size: 8px; }
body.pixel-app .start-inline-panel p { color: #abbc9e; }
/* Tablet and narrow laptop */
@media (max-width: 1250px) {
    body.pixel-app { padding-left: 184px; }
    body.pixel-app .top-header { width: 184px; padding: 25px 16px 20px; }
    body.pixel-app .game-container > .game-mode-tabs { width: 163px; left: 10px; }
    body.pixel-app .game-mode-tab { font-size: 10px; padding-left: 9px; gap: 9px; }
    body.pixel-app .game-container { padding-left: 22px; padding-right: 22px; }
    body.pixel-app .wallet-bar { padding-left: 23px; padding-right: 23px; }
    body.pixel-app .save-status-row { left: 184px; }
    body.pixel-app .terminal-log-panel { width: 160px; }
    body.pixel-app[data-mode="city"][data-zone="1"] #settlementHub { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
    .field-build-grid { gap: 8px; }
    .field-plan { padding: 13px 10px 9px; }
    .field-plan h4 { font-size: 10px; }
    .field-coordinate { display: none; }
    .field-scene-footer > span:nth-child(2) { display: none; }
    body.pixel-app .settings-menu { left: 197px; }
    body.pixel-app .start-main { gap: 30px; }
}
@media (max-width: 1050px) {
    body.pixel-app { padding-left: 76px; }
    body.pixel-app .top-header { width: 76px; padding: 26px 10px 17px; }
    body.pixel-app .logo-section { padding: 0; }
    .field-brand-mark { position: static; display: block; text-align: center; }
    body.pixel-app .logo-section :is(h1,.studio-name) { display: none; }
    body.pixel-app .header-buttons { flex-direction: column; }
    body.pixel-app .player-settings > summary { font-size: 0; text-align: center; }
    body.pixel-app .player-settings > summary::after { content: 'SET'; font-size: 9px; }
    body.pixel-app .game-container > .game-mode-tabs { left: 7px; top: 110px; bottom: 115px; width: 62px; gap: 8px; }
    body.pixel-app .game-mode-tabs::before { display: none; }
    body.pixel-app .game-mode-tab { flex-direction: column; gap: 4px; padding: 7px 0; min-height: 58px; font-size: 7px; border-left-width: 1px; text-align: center; }
    body.pixel-app .game-mode-tab .ready-badge { position: absolute; top: 0; right: 0; }
    body.pixel-app .terminal-log-panel { display: none; }
    body.pixel-app .save-status-row { left: 76px; }
    body.pixel-app .settings-menu { left: 88px; width: min(350px, calc(100vw - 103px)); }
    body.pixel-app .start-screen .start-card { padding-left: 30px; padding-right: 30px; }
}
/* Mobile: one vertical reading order; navigation scrolls, never wraps into a wall. */
@media (max-width: 760px) {
    body.pixel-app { padding: 0 0 calc(80px + env(safe-area-inset-bottom)); }
    body.pixel-app .top-header { position: static; height: auto; width: 100%; padding: 12px 16px; flex-direction: row; border: 0; border-bottom: 1px solid #314936; align-items: center; gap: 15px; }
    body.pixel-app .logo-section { display: flex; gap: 9px; align-items: center; }
    .field-brand-mark svg { width: 24px; height: 28px; }
    body.pixel-app .logo-section h1 { display: flex; gap: 5px; font-size: 18px; letter-spacing: .5px; line-height: 1; }
    body.pixel-app .logo-section h1 span { font-size: 18px; }
    body.pixel-app .header-buttons { flex-direction: row; width: auto; gap: 10px; border: 0; padding: 0; }
    body.pixel-app #zoneHelpButton { min-width: 32px; min-height: 32px; height: 32px; font-size: 12px; }
    body.pixel-app .player-settings > summary { padding: 8px 0; min-height: 32px; }
    body.pixel-app .player-settings > summary::after { content: 'SETTINGS'; font-size: 8px; }
    body.pixel-app .settings-menu { left: 12px; right: 12px; top: 62px; bottom: auto; width: auto; max-height: calc(100dvh - 145px); }
    body.pixel-app .wallet-bar { min-height: 69px; padding: 11px 16px; gap: 15px; }
    body.pixel-app .wallet-primary { min-width: 120px; gap: 0 9px; }
    body.pixel-app .wallet-primary > strong { font-size: 24px; }
    body.pixel-app .wallet-primary > span { font-size: 7px; }
    body.pixel-app .wallet-primary > small { font-size: 9px; grid-column: 2; grid-row: 2; }
    body.pixel-app .wallet-secondary { padding-left: 15px; max-width: none; }
    body.pixel-app .wallet-secondary > span { font-size: 7px; }
    body.pixel-app .wallet-secondary > strong { font-size: 14px; }
    body.pixel-app .wallet-luck { display: none; }
    body.pixel-app .wallet-level { display: flex; flex: 0 1 76px; min-width: 67px; padding-left: 9px; }
    body.pixel-app .wallet-level .level-head { flex-direction: column; gap: 1px; }
    body.pixel-app .wallet-level .level-head span { font-size: 7px; }
    body.pixel-app .wallet-level .level-head strong { font-size: 9px; }
    body.pixel-app .wallet-level .level-track { height: 2px; }
    .field-wallet-population { gap: 6px; }
    .field-wallet-population svg { width: 19px; height: 19px; }
    .field-wallet-population span { font-size: 7px; }
    .field-wallet-population strong { font-size: 15px; }
    body.pixel-app .level-bar { padding-left: 16px; padding-right: 16px; }
    body.pixel-app .city-service-hud:not([hidden]) { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; gap: 6px; scrollbar-width: thin; }
    body.pixel-app .service-cell { flex: 0 0 115px; padding: 8px; min-height: 43px; }
    body.pixel-app .service-cell .service-icon { font-size: 16px; width: 18px; }
    body.pixel-app .service-copy i { display: none; }
    body.pixel-app .game-container { margin-top: 14px; padding: 0 14px 24px; }
    body.pixel-app .stage-tabs { gap: 5px; padding-bottom: 9px; }
    body.pixel-app .stage-tab { padding: 7px 10px; font-size: 8px; min-height: 34px; }
    .settlement-heading { align-items: flex-start; padding: 9px 0 17px; gap: 8px; }
    .settlement-heading h2 { font-size: 25px; letter-spacing: -1px; }
    .settlement-heading p:not(.field-kicker) { font-size: 10px; }
    .settlement-heading .field-kicker { font-size: 7px; }
    .field-live { font-size: 6px; gap: 4px; margin-top: 25px; }
    body.pixel-app[data-mode="city"][data-zone="1"] #settlementHub { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    body.pixel-app[data-mode="city"][data-zone="1"] #fieldExpeditionObjective { display: block; margin: 0 0 15px; }
    body.pixel-app #fieldExpeditionObjective .milestone-panel { padding: 13px; gap: 8px; }
    body.pixel-app #fieldExpeditionObjective #milestoneTitle { font-size: 12px; }
    body.pixel-app #cityCanvas { height: 320px; }
    body.pixel-app #fieldGatherMount .city-panel { flex-wrap: nowrap; gap: 12px; }
    body.pixel-app #fieldGatherMount .energy-button { flex: 1; min-width: 0; padding: 12px 8px; font-size: 11px; gap: 6px; min-height: 53px; }
    body.pixel-app #fieldGatherMount .combo-meter { flex: 0 0 113px; }
    body.pixel-app #fieldGatherMount .energy-button-icon { display: none; }
    .field-plan { padding: 12px 10px; }
    .field-plan h4 { font-size: 10px; }
    .field-plan-effect { font-size: 8px; }
    .field-plan-icon { flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 8px; }
    .field-plan-icon svg { width: 27px; height: 27px; }
    .field-plan button { min-height: 39px; }
    .settlement-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #fieldObjectiveMount { grid-column: 1 / -1; }
    #fieldRenewalMount { grid-column: 1 / -1; }
    .field-beacon { padding: 14px; }
    .field-beacon-title { flex-wrap: wrap; }
    .field-path { grid-column: 1 / -1; }
    .field-journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .field-journey button { display: flex; align-items: flex-start; flex-direction: column; border: 0; gap: 4px; padding: 5px 0; font-size: 8px !important; }
    .field-journey button small { font-size: 6px; }
    #fieldConnections { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; }
    #fieldConnections p { font-size: 10px; }
    body.pixel-app .game-container > .game-mode-tabs { position: fixed; inset: auto 0 0; width: 100%; flex-direction: row; gap: 3px; overflow-x: auto; overflow-y: hidden; padding: 6px 8px calc(7px + env(safe-area-inset-bottom)); background: #12271efc; border-top: 1px solid #526746; z-index: 150; scrollbar-width: none; }
    body.pixel-app .game-mode-tab { flex: 0 0 69px; min-height: 54px; padding: 5px 3px; font-size: 7px; gap: 4px; }
    body.pixel-app .game-mode-tab .nav-icon { height: 20px; width: 20px; }
    body.pixel-app .game-mode-tab .nav-icon svg { height: 20px; width: 20px; }
    body.pixel-app .game-mode-tab.active { border-bottom: 2px solid var(--field-gold); border-left-color: #46533c; }
    body.pixel-app .save-status-row { position: static; padding: 6px 0; min-height: 0; margin-bottom: 14px; border: 0; justify-content: flex-start; flex-wrap: wrap; gap: 6px; background: none; }
    body.pixel-app .auto-save-indicator { display: none !important; }
    body.pixel-app .mobile-gather:not([hidden]) { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; position: fixed; z-index: 149; right: 14px; bottom: calc(77px + env(safe-area-inset-bottom)); min-height: 41px; min-width: 160px; padding: 9px 13px; background: #e1bc78; color: #213323; border: 1px solid #edcf91; border-bottom: 3px solid #8e7547; font-size: 10px; box-shadow: 0 3px #07180c; }
    body.pixel-app.field-gather-visible .mobile-gather { display: none !important; }
    body.pixel-app .notification { bottom: 85px; right: 12px; }
    body.pixel-app .terminal-receipt { bottom: 85px; }
    body.pixel-app.build-open .city-shell { grid-template-columns: 1fr; }
    body.pixel-app.build-open #cityCanvas { height: 420px; }
    body.pixel-app.build-open .city-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.pixel-app.build-open .city-toolbar { grid-column: 1 / -1; }
    body.pixel-app .start-screen .start-card { min-height: 100dvh; padding: 20px; }
    body.pixel-app .start-main { grid-template-columns: 1fr; gap: 28px; padding: 30px 0; }
    body.pixel-app .start-copy { max-width: none; }
    body.pixel-app .start-copy h1 { font-size: 67px; letter-spacing: -3px; }
    body.pixel-app .start-copy h1 > span { display: inline; }
    body.pixel-app .start-world-caption { display: block; }
    .field-start-art { transform: none; }
    body.pixel-app .start-extras { grid-template-columns: 1fr; gap: 12px; }
    body.pixel-app .start-footer { flex-direction: column; gap: 7px; align-items: flex-start; }
}
@media (max-width: 600px) {
    body.pixel-app.build-open .city-side { grid-template-columns: minmax(0, 1fr); }
    body.pixel-app .city-tray-item { flex-shrink: 0; min-height: 62px; }
    body.pixel-app .city-tray { max-height: 310px; }
    body.pixel-app .job-benefit { line-height: 1.7; margin-top: 4px; }
}
@media (max-width: 390px) {
    body.pixel-app .wallet-bar { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .field-wallet-population > svg { display: none; }
    .field-wallet-population { display: none; }
    body.pixel-app .wallet-secondary { padding-left: 10px; }
    .field-build-grid { grid-template-columns: 1fr; }
    .field-plan { display: grid; grid-template-columns: 38px 1fr auto; gap: 3px 10px; align-items: center; }
    .field-plan-icon { grid-row: span 3; margin: 0; }
    .field-plan-icon span { font-size: 6px; }
    .field-plan h4, .field-plan-role, .field-plan-effect { grid-column: 2; min-height: 0; margin: 0; }
    .field-plan .field-funding { grid-column: 1 / -1; margin: 7px 0 0; }
    .field-plan > button { grid-column: 3; grid-row: 1 / span 3; padding: 8px; }
    .field-plan > small { grid-column: 1 / -1; margin: 1px 0; min-height: 0; }
    .settlement-rail { grid-template-columns: 1fr; }
    body.pixel-app .start-copy h1 { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .pixel-app *, .pixel-app *::before, .pixel-app *::after { scroll-behavior: auto !important; animation-duration: 0s !important; transition: none !important; }
    .field-start-art::after { display: none; }
}
body.pixel-app.vfx-disabled .field-start-art::after { display: none; }
