/* Semantic palette; component geometry remains in src/style.css. */
:root {
  --page-background: #f6f3eb;
  --surface-background: #fffdf8;
  --text-primary: #2b3c32;
  --text-secondary: #586650;
  --border-color: #e4e0d5;
  --gold-accent: #e2a454;
  --action-background: #294c3d;
  --sidebar-background: #213d35;
  --eyebrow-text: #586650;
  --primary-text: #fff9eb;
  --quiet-button-border-color: #d4d9cc;
  --danger-button-background: #a5573f;
  --danger-button-text: #fff9eb;
  --pill-text: #607362;
  --pill-background: #e9ede1;
  --pill-light-background: #f9f7edbb;
  --pill-light-text: #526c58;
  --pill-orange-background: #f6e8cb;
  --pill-orange-text: #9e6c2f;
  --brand-mark-border: #72816c;
  --brand-mark-background: #ffffff08;
  --brand-span-text: #b1bca7;
  --sidebar-text: #586650;
  --nav-caption-text: #586650;
  --nav-button-text: #adbdaf;
  --nav-button-active-background: #f4ecd4;
  --nav-button-active-text: #254839;
  --nav-button-active-shadow: #102c2430;
  --nav-count-background: #ffffff19;
  --sidebar-bottom-text: #b6bca5;
  --sandbox-dot-background: #b9bd82;
  --sidebar-bottom-p-text: #d3d7c3;
  --sidebar-bottom-small-text: #8fa497;
  --signout-text: #adc1b3;
  --topbar-background: #faf8f1;
  --breadcrumb-text: #586650;
  --breadcrumb-strong-text: #4c5b4c;
  --hero-card-background: #d7e2d6;
  --hero-card-border: #cad6c4;
  --hero-card-div-background: #e1e7d9;
  --hero-card-h1-em-text: #5f795b;
  --hero-card-p-text: #6d7f69;
  --stat-icon-text: #586650;
  --stat-icon-background: #eff1e4;
  --stat-p-text: #586650;
  --stat-small-text: #586650;
  --role-tile-svg-text: #586650;
  --role-tile-small-text: #586650;
  --strength-row-text: #586650;
  --strength-row-b-text: #3c523c;
  --round-icon-background: #f2ebd7;
  --round-icon-text: #586650;
  --progression-p-not-text: #586650;
  --progress-track-background: #eeeadc;
  --progress-track-i-background: #83986f;
  --progression-small-text: #586650;
  --starter-note-background: #f0edda;
  --starter-note-border: #e3dcc0;
  --starter-note-text: #7a744e;
  --starter-note-p-text: #586650;
  --starter-note-button-text: #696b46;
  --next-card-svg-first-child-text: #586650;
  --next-card-span-text: #586650;
  --next-card-svg-last-child-text: #586650;
  --game-footer-text: #586650;
  --moving-banner-border: #d3b477;
  --moving-banner-background: #f4e5c8;
  --moving-banner-text: #8b6532;
  --label-text: #586650;
  --input-border: #dcded2;
  --input-background: #fcfbf5;
  --input-text: #344e3d;
  --input-focus-outline: #8ca78b;
  --training-card-p-text: #586650;
  --unit-illustration-background: #eceddc;
  --unit-illustration-text: #586650;
  --unit-1-background: #f1e5d9;
  --unit-1-text: #80543e;
  --unit-2-background: #e2e9df;
  --unit-2-text: #4b6c53;
  --unit-3-background: #e3e8e9;
  --unit-3-text: #4a6576;
  --cost-line-text: #586650;
  --cost-line-b-text: #526b50;
  --building-card-p-not-text: #586650;
  --building-art-background: #e5e9da;
  --building-art-text: #586650;
  --building-art-housing-background: #ede6d7;
  --building-art-housing-text: #586650;
  --building-art-armoury-background: #e3e6df;
  --building-art-armoury-text: #586650;
  --requirements-text: #586650;
  --requirements-b-text: #526748;
  --summary-text: #617658;
  --catalog-list-li-border-bottom: #ecebdf;
  --catalog-list-small-text: #586650;
  --catalog-list--current-text: #65825a;
  --notice-border: #e1dfcd;
  --notice-background: #efefdf;
  --notice-text: #81846a;
  --equipment-icon-background: #eee9d9;
  --equipment-icon-text: #586650;
  --equipment-card-p-not-text: #586650;
  --th-text: #586650;
  --td-border-top: #eeece1;
  --td-small-text: #586650;
  --kingdom-cell-small-text: #586650;
  --battle-toolbar-text: #586650;
  --battle-prep-border-color: #a9b69a;
  --battle-prep-p-text: #586650;
  --money-form-p-text: #586650;
  --input-suffix-span-text: #586650;
  --moving-card-background: #f4efdf;
  --moving-card-border-color: #e4d7b8;
  --moving-card-p-not-text: #586650;
  --moving-card--round-icon-text: #586650;
  --moving-card--round-icon-background: #eae0c6;
  --moving-operation-strong-text: #88713d;
  --moving-operation-small-text: #586650;
  --report-row-text: #637257;
  --report-icon-background: #eceddc;
  --report-row-small-text: #586650;
  --your-row-background: #f3f3e3;
  --rank-number-text: #586650;
  --rank-1-text: #586650;
  --you-text: #586650;
  --empty-text: #586650;
  --empty-h3-text: #6f8061;
  --empty-p-text: #586650;
  --working-pill-text: #586650;
  --working-pill-shadow: #1c35292b;
  --toast-background: #fffdf6;
  --toast-shadow: #203e3425;
  --toast-border: #d7dec9;
  --toast-text: #4e714e;
  --toast-error-text: #aa6147;
  --toast-error-border-color: #e8c9b9;
  --modal-backdrop-background: #152b24a3;
  --report-modal-background: #fbf8ee;
  --report-modal-border: #d6cead;
  --report-modal-shadow: #10281d55;
  --result-crest-border: #bac6a8;
  --result-crest-background: #e5ebd9;
  --result-crest-text: #70845c;
  --result-crest-defeat-background: #eee2d8;
  --result-crest-defeat-border-color: #d8bba8;
  --result-crest-defeat-text: #a77857;
  --report-modal-p-not-text: #586650;
  --report-powers-span-text: #586650;
  --report-powers-strong-text: #4c674c;
  --landing-background: #f5f2e8;
  --landing-header-border-bottom: #e6e2d4;
  --landing--brand-text: #35523f;
  --landing--brand-span-text: #8c9b82;
  --landing--brand-mark-background: #e8ebde;
  --landing--brand-mark-border-color: #b7c4a3;
  --welcome-h1-text: #314b36;
  --welcome-h1-em-text: #586650;
  --welcome-copy-p-not-text: #586650;
  --welcome-note-text: #586650;
  --welcome-art--kingdom-art-border: #eae8d9;
  --welcome-art--kingdom-art-shadow: #a9ac7f17;
  --welcome-art--seal-border: #c5bf97;
  --welcome-art--seal-text: #586650;
  --welcome-art--seal-background: #f0eddc;
  --tagline-text: #586650;
  --founding-border: #dedbc8;
  --founding-background: #faf8ed;
  --faction-choice-background: #f5f1e2;
  --faction-choice-border: #dedcc8;
  --faction-choice-selected-border-color: #7f9674;
  --faction-choice-selected-shadow: #85977626;
  --faction-choice-selected-background: #edf0df;
  --faction-choice-small-text: #586650;
  --chosen-text: #586650;
  --founding-small-text: #586650;
  --signed-note-text: #586650;
  --landing-footer-border-top: #e0ddcb;
  --landing-footer-text: #586650;
  --error-text-text: #ac6a4e;
  --mobile-overlay-background: #173129a3;
  --mobile-nav-text: #eeeeda;
  --hero-card-div-background-2: #e1e7d9;
  --scene-sky-top: #ccdfd8;
  --scene-sky-bottom: #eef0d6;
  --scene-hill-top: #688c72;
  --scene-hill-bottom: #365c48;
  --scene-orb: #e9c979;
  --scene-far-hills: #a8bba0;
  --scene-path: #d2bf8e;
  --scene-roofs: #536a61;
  --scene-towers: #d4cba9;
  --scene-windows: #536655;
  --scene-tower-lines: #b7ab87;
  --scene-flags: #b76d45;
  --scene-walls: #e0d7b6;
  --scene-gate-shadow: #425749;
  --scene-gate: #71593b;
  --scene-wall-lines: #c6bb95;
  --scene-trees: #244c3c;
  --scene-tree-lines: #537b59;
  --scene-foreground: #294f3e;
  --scene-birds: #6f8c7e;
  color-scheme: light;
  background: var(--page-background);
  color: var(--text-primary);
}
:root[data-theme="dark"] {
  --page-background: #141e1c;
  --surface-background: #293b35;
  --text-primary: #f1e8d5;
  --text-secondary: #b5c3b8;
  --border-color: #43564b;
  --gold-accent: #d9c99e;
  --action-background: #a4b8a0;
  --sidebar-background: #20312c;
  --eyebrow-text: #b5c3b8;
  --primary-text: #14251c;
  --quiet-button-border-color: #4a5d50;
  --danger-button-background: #8b4f3e;
  --danger-button-text: #f1e8d5;
  --pill-text: #a4b8a0;
  --pill-background: #344a3c;
  --pill-light-background: #344a3c;
  --pill-light-text: #a4b8a0;
  --pill-orange-background: #453f2e;
  --pill-orange-text: #d9c99e;
  --brand-mark-border: #4a5d50;
  --brand-mark-background: #a4b8a012;
  --brand-span-text: #b5c3b8;
  --sidebar-text: #b5c3b8;
  --nav-caption-text: #b5c3b8;
  --nav-button-text: #b5c3b8;
  --nav-button-active-background: #314438;
  --nav-button-active-text: #b5c3b8;
  --nav-button-active-shadow: #08130f80;
  --nav-count-background: #a4b8a012;
  --sidebar-bottom-text: #b5c3b8;
  --sandbox-dot-background: #314438;
  --sidebar-bottom-p-text: #b5c3b8;
  --sidebar-bottom-small-text: #b5c3b8;
  --signout-text: #b5c3b8;
  --topbar-background: #1d2c26;
  --breadcrumb-text: #b5c3b8;
  --breadcrumb-strong-text: #f1e8d5;
  --hero-card-background: #304638;
  --hero-card-border: #4a5d50;
  --hero-card-div-background: #304638;
  --hero-card-h1-em-text: #f1e8d5;
  --hero-card-p-text: #b5c3b8;
  --stat-icon-text: #a4b8a0;
  --stat-icon-background: #344a3c;
  --stat-p-text: #b5c3b8;
  --stat-small-text: #b5c3b8;
  --role-tile-svg-text: #a4b8a0;
  --role-tile-small-text: #b5c3b8;
  --strength-row-text: #b5c3b8;
  --strength-row-b-text: #f1e8d5;
  --round-icon-background: #453f2e;
  --round-icon-text: #d9c99e;
  --progression-p-not-text: #b5c3b8;
  --progress-track-background: #1d3028;
  --progress-track-i-background: #a4b8a0;
  --progression-small-text: #b5c3b8;
  --starter-note-background: #344a3c;
  --starter-note-border: #4a5d50;
  --starter-note-text: #b5c3b8;
  --starter-note-p-text: #b5c3b8;
  --starter-note-button-text: #b5c3b8;
  --next-card-svg-first-child-text: #a4b8a0;
  --next-card-span-text: #b5c3b8;
  --next-card-svg-last-child-text: #a4b8a0;
  --game-footer-text: #b5c3b8;
  --moving-banner-border: #4a5d50;
  --moving-banner-background: #453f2e;
  --moving-banner-text: #d9c99e;
  --label-text: #b5c3b8;
  --input-border: #4a5d50;
  --input-background: #1d3028;
  --input-text: #b5c3b8;
  --input-focus-outline: #a4b8a0;
  --training-card-p-text: #b5c3b8;
  --unit-illustration-background: #344a3c;
  --unit-illustration-text: #a4b8a0;
  --unit-1-background: #48392f;
  --unit-1-text: #e0af96;
  --unit-2-background: #314438;
  --unit-2-text: #b5c3b8;
  --unit-3-background: #304249;
  --unit-3-text: #adc2ca;
  --cost-line-text: #b5c3b8;
  --cost-line-b-text: #b5c3b8;
  --building-card-p-not-text: #b5c3b8;
  --building-art-background: #344a3c;
  --building-art-text: #a4b8a0;
  --building-art-housing-background: #344a3c;
  --building-art-housing-text: #a4b8a0;
  --building-art-armoury-background: #344a3c;
  --building-art-armoury-text: #a4b8a0;
  --requirements-text: #b5c3b8;
  --requirements-b-text: #b5c3b8;
  --summary-text: #b5c3b8;
  --catalog-list-li-border-bottom: #4a5d50;
  --catalog-list-small-text: #b5c3b8;
  --catalog-list--current-text: #a4b8a0;
  --notice-border: #4a5d50;
  --notice-background: #344a3c;
  --notice-text: #b5c3b8;
  --equipment-icon-background: #453f2e;
  --equipment-icon-text: #d9c99e;
  --equipment-card-p-not-text: #b5c3b8;
  --th-text: #b5c3b8;
  --td-border-top: #4a5d50;
  --td-small-text: #b5c3b8;
  --kingdom-cell-small-text: #b5c3b8;
  --battle-toolbar-text: #b5c3b8;
  --battle-prep-border-color: #4a5d50;
  --battle-prep-p-text: #b5c3b8;
  --money-form-p-text: #b5c3b8;
  --input-suffix-span-text: #b5c3b8;
  --moving-card-background: #453f2e;
  --moving-card-border-color: #4a5d50;
  --moving-card-p-not-text: #d9c99e;
  --moving-card--round-icon-text: #d9c99e;
  --moving-card--round-icon-background: #453f2e;
  --moving-operation-strong-text: #d9c99e;
  --moving-operation-small-text: #d9c99e;
  --report-row-text: #b5c3b8;
  --report-icon-background: #344a3c;
  --report-row-small-text: #b5c3b8;
  --your-row-background: #344a3c;
  --rank-number-text: #b5c3b8;
  --rank-1-text: #d9c99e;
  --you-text: #a4b8a0;
  --empty-text: #b5c3b8;
  --empty-h3-text: #f1e8d5;
  --empty-p-text: #b5c3b8;
  --working-pill-text: #a4b8a0;
  --working-pill-shadow: #08130f80;
  --toast-background: #293b35;
  --toast-shadow: #08130f80;
  --toast-border: #4a5d50;
  --toast-text: #a4b8a0;
  --toast-error-text: #e0af96;
  --toast-error-border-color: #4a5d50;
  --modal-backdrop-background: #08130fbd;
  --report-modal-background: #293b35;
  --report-modal-border: #4a5d50;
  --report-modal-shadow: #08130f80;
  --result-crest-border: #4a5d50;
  --result-crest-background: #314438;
  --result-crest-text: #f1e8d5;
  --result-crest-defeat-background: #48392f;
  --result-crest-defeat-border-color: #4a5d50;
  --result-crest-defeat-text: #e0af96;
  --report-modal-p-not-text: #b5c3b8;
  --report-powers-span-text: #b5c3b8;
  --report-powers-strong-text: #f1e8d5;
  --landing-background: #141e1c;
  --landing-header-border-bottom: #4a5d50;
  --landing--brand-text: #f1e8d5;
  --landing--brand-span-text: #f1e8d5;
  --landing--brand-mark-background: #a4b8a012;
  --landing--brand-mark-border-color: #4a5d50;
  --welcome-h1-text: #f1e8d5;
  --welcome-h1-em-text: #d9c99e;
  --welcome-copy-p-not-text: #b5c3b8;
  --welcome-note-text: #b5c3b8;
  --welcome-art--kingdom-art-border: #4a5d50;
  --welcome-art--kingdom-art-shadow: #08130f80;
  --welcome-art--seal-border: #4a5d50;
  --welcome-art--seal-text: #d9c99e;
  --welcome-art--seal-background: #453f2e;
  --tagline-text: #b5c3b8;
  --founding-border: #4a5d50;
  --founding-background: #293b35;
  --faction-choice-background: #26382f;
  --faction-choice-border: #4a5d50;
  --faction-choice-selected-border-color: #4a5d50;
  --faction-choice-selected-shadow: #08130f80;
  --faction-choice-selected-background: #3a503e;
  --faction-choice-small-text: #b5c3b8;
  --chosen-text: #a4b8a0;
  --founding-small-text: #b5c3b8;
  --signed-note-text: #a4b8a0;
  --landing-footer-border-top: #4a5d50;
  --landing-footer-text: #b5c3b8;
  --error-text-text: #e0af96;
  --mobile-overlay-background: #08130fbd;
  --mobile-nav-text: #b5c3b8;
  --hero-card-div-background-2: #304638;
  --scene-sky-top: #263c36;
  --scene-sky-bottom: #34483b;
  --scene-hill-top: #425e48;
  --scene-hill-bottom: #203d2f;
  --scene-orb: #d9c99e;
  --scene-far-hills: #49604c;
  --scene-path: #9a926d;
  --scene-roofs: #8d9f87;
  --scene-towers: #a09a7d;
  --scene-windows: #354838;
  --scene-tower-lines: #736e55;
  --scene-flags: #bd9370;
  --scene-walls: #b0a785;
  --scene-gate-shadow: #263d2e;
  --scene-gate: #736345;
  --scene-wall-lines: #877f60;
  --scene-trees: #1a362b;
  --scene-tree-lines: #6a855f;
  --scene-foreground: #1b392d;
  --scene-birds: #a4b8a0;
  color-scheme: dark;
}

/* Original dusk battle illustration; UI text continues to use the shared semantic palette. */
:root {
  --battle-sky-high: #354059;
  --battle-sky-middle: #796575;
  --battle-sky-low: #c79577;
  --battle-moon: #dcc89d;
  --battle-hill-far: #666573;
  --battle-hill-near: #46515c;
  --battle-mist: #c6c7bd;
  --battle-castle: #242d38;
  --battle-gate: #161f2a;
  --battle-window: #bd946e;
  --battle-banner: #8b6d66;
  --battle-figures: #1d2931;
  --battle-arrow: #d0bfa0;
  --battle-ground: #283a3e;
  --battle-flame: #d3a16a;
}
:root[data-theme="dark"] {
  --battle-sky-high: #202c43;
  --battle-sky-middle: #5e526a;
  --battle-sky-low: #a67662;
  --battle-moon: #cbbd99;
  --battle-hill-far: #484c5e;
  --battle-hill-near: #313e4a;
  --battle-mist: #b2b7b1;
  --battle-castle: #17252e;
  --battle-gate: #12202a;
  --battle-window: #ac825e;
  --battle-banner: #806362;
  --battle-figures: #16272e;
  --battle-arrow: #c0b399;
  --battle-ground: #1d3137;
  --battle-flame: #c99762;
}
