[data-theme="science"] {
  --radius-card: 16px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #0B1026;
  --surface: #141B3A;
  --surface-raised: #1C2550;
  --text: #E8ECFF;
  --text-muted: #9AA3C7;
  --accent: #5EE7FF;
  --accent-2: #FFB547;
  --focus: #FFFFFF;
  --lane-0: #5EE7FF;
  --lane-1: #FFB547;
  --lane-2: #B794FF;
  --lane-3: #7CF29A;
  --lane-4: #FF7A90;
  --lane-5: #9DB4FF;
  --shadow-popup: 0 12px 32px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="science"],
html:not([data-mode])[data-theme="science"] {
  color-scheme: light;
  --bg: #F7F8FF;
  --surface: #FFFFFF;
  --surface-raised: #EEF0FF;
  --text: #131A3A;
  --text-muted: #4A5380;
  --accent: #0A6C8A;
  --accent-2: #9A5B00;
  --focus: #0B1026;
  --lane-0: #0A7A94;
  --lane-1: #B36B00;
  --lane-2: #6B46C1;
  --lane-3: #1E8A4C;
  --lane-4: #C0304F;
  --lane-5: #3B5BDB;
  --shadow-popup: 0 12px 32px rgba(0,0,0,.35);
}
}
html[data-mode="dark"] [data-theme="science"],
html[data-mode="dark"][data-theme="science"] {
  color-scheme: dark;
  --bg: #0B1026;
  --surface: #141B3A;
  --surface-raised: #1C2550;
  --text: #E8ECFF;
  --text-muted: #9AA3C7;
  --accent: #5EE7FF;
  --accent-2: #FFB547;
  --focus: #FFFFFF;
  --lane-0: #5EE7FF;
  --lane-1: #FFB547;
  --lane-2: #B794FF;
  --lane-3: #7CF29A;
  --lane-4: #FF7A90;
  --lane-5: #9DB4FF;
  --shadow-popup: 0 12px 32px rgba(0,0,0,.35);
}
html[data-mode="light"] [data-theme="science"],
html[data-mode="light"][data-theme="science"] {
  color-scheme: light;
  --bg: #F7F8FF;
  --surface: #FFFFFF;
  --surface-raised: #EEF0FF;
  --text: #131A3A;
  --text-muted: #4A5380;
  --accent: #0A6C8A;
  --accent-2: #9A5B00;
  --focus: #0B1026;
  --lane-0: #0A7A94;
  --lane-1: #B36B00;
  --lane-2: #6B46C1;
  --lane-3: #1E8A4C;
  --lane-4: #C0304F;
  --lane-5: #3B5BDB;
  --shadow-popup: 0 12px 32px rgba(0,0,0,.35);
}

[data-theme="medicine"] {
  --radius-card: 20px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  --bg: #F4FBFA;
  --surface: #FFFFFF;
  --surface-raised: #E4F4F2;
  --text: #0C2A2B;
  --text-muted: #3F6664;
  --accent: #00796B;
  --accent-2: #C0392B;
  --focus: #0C2A2B;
  --lane-0: #00796B;
  --lane-1: #C0392B;
  --lane-2: #2563C9;
  --lane-3: #8A6D00;
  --lane-4: #7B4BC4;
  --lane-5: #3B7D1E;
  --shadow-popup: 0 10px 28px rgba(8,40,40,.22);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="medicine"],
html:not([data-mode])[data-theme="medicine"] {
  color-scheme: dark;
  --bg: #0A1F22;
  --surface: #11302F;
  --surface-raised: #184143;
  --text: #E6F7F5;
  --text-muted: #8FB8B4;
  --accent: #4FE0C8;
  --accent-2: #FF8A7A;
  --focus: #FFFFFF;
  --lane-0: #4FE0C8;
  --lane-1: #FF8A7A;
  --lane-2: #7FB5FF;
  --lane-3: #F2D46B;
  --lane-4: #C79BFF;
  --lane-5: #9BE37D;
  --shadow-popup: 0 10px 28px rgba(8,40,40,.22);
}
}
html[data-mode="dark"] [data-theme="medicine"],
html[data-mode="dark"][data-theme="medicine"] {
  color-scheme: dark;
  --bg: #0A1F22;
  --surface: #11302F;
  --surface-raised: #184143;
  --text: #E6F7F5;
  --text-muted: #8FB8B4;
  --accent: #4FE0C8;
  --accent-2: #FF8A7A;
  --focus: #FFFFFF;
  --lane-0: #4FE0C8;
  --lane-1: #FF8A7A;
  --lane-2: #7FB5FF;
  --lane-3: #F2D46B;
  --lane-4: #C79BFF;
  --lane-5: #9BE37D;
  --shadow-popup: 0 10px 28px rgba(8,40,40,.22);
}
html[data-mode="light"] [data-theme="medicine"],
html[data-mode="light"][data-theme="medicine"] {
  color-scheme: light;
  --bg: #F4FBFA;
  --surface: #FFFFFF;
  --surface-raised: #E4F4F2;
  --text: #0C2A2B;
  --text-muted: #3F6664;
  --accent: #00796B;
  --accent-2: #C0392B;
  --focus: #0C2A2B;
  --lane-0: #00796B;
  --lane-1: #C0392B;
  --lane-2: #2563C9;
  --lane-3: #8A6D00;
  --lane-4: #7B4BC4;
  --lane-5: #3B7D1E;
  --shadow-popup: 0 10px 28px rgba(8,40,40,.22);
}

[data-theme="inventions"] {
  --radius-card: 12px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #16120E;
  --surface: #211B15;
  --surface-raised: #2D251D;
  --text: #F4EDE4;
  --text-muted: #B9AA97;
  --accent: #F2A541;
  --accent-2: #6FC3DF;
  --focus: #FFFFFF;
  --lane-0: #F2A541;
  --lane-1: #8FD18A;
  --lane-2: #6FC3DF;
  --lane-3: #F58FB1;
  --lane-4: #B9A2FF;
  --lane-5: #E2D36B;
  --shadow-popup: 0 10px 28px rgba(35,26,16,.3);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="inventions"],
html:not([data-mode])[data-theme="inventions"] {
  color-scheme: light;
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --surface-raised: #F0E6D8;
  --text: #231A10;
  --text-muted: #5E4E3B;
  --accent: #9C4F00;
  --accent-2: #1D6E8C;
  --focus: #231A10;
  --lane-0: #9C4F00;
  --lane-1: #2F6F3A;
  --lane-2: #1D6E8C;
  --lane-3: #9B2F5E;
  --lane-4: #5B4BA6;
  --lane-5: #6B5B00;
  --shadow-popup: 0 10px 28px rgba(35,26,16,.3);
}
}
html[data-mode="dark"] [data-theme="inventions"],
html[data-mode="dark"][data-theme="inventions"] {
  color-scheme: dark;
  --bg: #16120E;
  --surface: #211B15;
  --surface-raised: #2D251D;
  --text: #F4EDE4;
  --text-muted: #B9AA97;
  --accent: #F2A541;
  --accent-2: #6FC3DF;
  --focus: #FFFFFF;
  --lane-0: #F2A541;
  --lane-1: #8FD18A;
  --lane-2: #6FC3DF;
  --lane-3: #F58FB1;
  --lane-4: #B9A2FF;
  --lane-5: #E2D36B;
  --shadow-popup: 0 10px 28px rgba(35,26,16,.3);
}
html[data-mode="light"] [data-theme="inventions"],
html[data-mode="light"][data-theme="inventions"] {
  color-scheme: light;
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --surface-raised: #F0E6D8;
  --text: #231A10;
  --text-muted: #5E4E3B;
  --accent: #9C4F00;
  --accent-2: #1D6E8C;
  --focus: #231A10;
  --lane-0: #9C4F00;
  --lane-1: #2F6F3A;
  --lane-2: #1D6E8C;
  --lane-3: #9B2F5E;
  --lane-4: #5B4BA6;
  --lane-5: #6B5B00;
  --shadow-popup: 0 10px 28px rgba(35,26,16,.3);
}

[data-theme="civilizations"] {
  --radius-card: 6px;
  --radius-marker: 4px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Cormorant Garamond", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light;
  --bg: #FAF5EC;
  --surface: #FFFFFF;
  --surface-raised: #F0E6D3;
  --text: #2B2218;
  --text-muted: #6B5B45;
  --accent: #9A5F0A;
  --accent-2: #2F6F55;
  --focus: #2B2218;
  --lane-0: #9A5F0A;
  --lane-1: #2F6F55;
  --lane-2: #B23B2E;
  --lane-3: #35609E;
  --lane-4: #7B3FA0;
  --lane-5: #6B6410;
  --lane-6: #0B7285;
  --shadow-popup: 0 10px 24px rgba(43,34,24,.28);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="civilizations"],
html:not([data-mode])[data-theme="civilizations"] {
  color-scheme: dark;
  --bg: #1C1712;
  --surface: #2A231B;
  --surface-raised: #382E24;
  --text: #F3E9DA;
  --text-muted: #BFAF98;
  --accent: #E0A458;
  --accent-2: #7FB59A;
  --focus: #FFFFFF;
  --lane-0: #E0A458;
  --lane-1: #7FB59A;
  --lane-2: #D9776B;
  --lane-3: #8FA7D9;
  --lane-4: #C9A0DC;
  --lane-5: #D8CC7A;
  --lane-6: #5CC8D6;
  --shadow-popup: 0 10px 24px rgba(43,34,24,.28);
}
}
html[data-mode="dark"] [data-theme="civilizations"],
html[data-mode="dark"][data-theme="civilizations"] {
  color-scheme: dark;
  --bg: #1C1712;
  --surface: #2A231B;
  --surface-raised: #382E24;
  --text: #F3E9DA;
  --text-muted: #BFAF98;
  --accent: #E0A458;
  --accent-2: #7FB59A;
  --focus: #FFFFFF;
  --lane-0: #E0A458;
  --lane-1: #7FB59A;
  --lane-2: #D9776B;
  --lane-3: #8FA7D9;
  --lane-4: #C9A0DC;
  --lane-5: #D8CC7A;
  --lane-6: #5CC8D6;
  --shadow-popup: 0 10px 24px rgba(43,34,24,.28);
}
html[data-mode="light"] [data-theme="civilizations"],
html[data-mode="light"][data-theme="civilizations"] {
  color-scheme: light;
  --bg: #FAF5EC;
  --surface: #FFFFFF;
  --surface-raised: #F0E6D3;
  --text: #2B2218;
  --text-muted: #6B5B45;
  --accent: #9A5F0A;
  --accent-2: #2F6F55;
  --focus: #2B2218;
  --lane-0: #9A5F0A;
  --lane-1: #2F6F55;
  --lane-2: #B23B2E;
  --lane-3: #35609E;
  --lane-4: #7B3FA0;
  --lane-5: #6B6410;
  --lane-6: #0B7285;
  --shadow-popup: 0 10px 24px rgba(43,34,24,.28);
}

[data-theme="leaders"] {
  --radius-card: 10px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-raised: #E8ECF6;
  --text: #101A2E;
  --text-muted: #44526F;
  --accent: #8A6200;
  --accent-2: #1D4FBF;
  --focus: #101A2E;
  --lane-0: #8A6200;
  --lane-1: #1D4FBF;
  --lane-2: #B83A2A;
  --lane-3: #1E7F55;
  --lane-4: #6F3FBF;
  --lane-5: #4A6076;
  --shadow-popup: 0 10px 26px rgba(16,26,46,.25);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="leaders"],
html:not([data-mode])[data-theme="leaders"] {
  color-scheme: dark;
  --bg: #0E1522;
  --surface: #17223A;
  --surface-raised: #1F2D4D;
  --text: #EEF2FA;
  --text-muted: #9FAECB;
  --accent: #F2C14E;
  --accent-2: #6EA8FF;
  --focus: #FFFFFF;
  --lane-0: #F2C14E;
  --lane-1: #6EA8FF;
  --lane-2: #FF8B7B;
  --lane-3: #7FDDB0;
  --lane-4: #C6A2FF;
  --lane-5: #A9C0D6;
  --shadow-popup: 0 10px 26px rgba(16,26,46,.25);
}
}
html[data-mode="dark"] [data-theme="leaders"],
html[data-mode="dark"][data-theme="leaders"] {
  color-scheme: dark;
  --bg: #0E1522;
  --surface: #17223A;
  --surface-raised: #1F2D4D;
  --text: #EEF2FA;
  --text-muted: #9FAECB;
  --accent: #F2C14E;
  --accent-2: #6EA8FF;
  --focus: #FFFFFF;
  --lane-0: #F2C14E;
  --lane-1: #6EA8FF;
  --lane-2: #FF8B7B;
  --lane-3: #7FDDB0;
  --lane-4: #C6A2FF;
  --lane-5: #A9C0D6;
  --shadow-popup: 0 10px 26px rgba(16,26,46,.25);
}
html[data-mode="light"] [data-theme="leaders"],
html[data-mode="light"][data-theme="leaders"] {
  color-scheme: light;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-raised: #E8ECF6;
  --text: #101A2E;
  --text-muted: #44526F;
  --accent: #8A6200;
  --accent-2: #1D4FBF;
  --focus: #101A2E;
  --lane-0: #8A6200;
  --lane-1: #1D4FBF;
  --lane-2: #B83A2A;
  --lane-3: #1E7F55;
  --lane-4: #6F3FBF;
  --lane-5: #4A6076;
  --shadow-popup: 0 10px 26px rgba(16,26,46,.25);
}

[data-theme="wars"] {
  --radius-card: 4px;
  --radius-marker: 2px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Newsreader", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #121212;
  --surface: #1C1C1C;
  --surface-raised: #262626;
  --text: #ECECEC;
  --text-muted: #A8A8A8;
  --accent: #E5737B;
  --accent-2: #B8B8B8;
  --focus: #FFFFFF;
  --lane-0: #E5737B;
  --lane-1: #9FB3C8;
  --lane-2: #D9B26F;
  --lane-3: #8FBF9F;
  --lane-4: #B7A1D9;
  --lane-5: #C8C8C8;
  --shadow-popup: 0 8px 20px rgba(0,0,0,.4);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="wars"],
html:not([data-mode])[data-theme="wars"] {
  color-scheme: light;
  --bg: #F5F4F2;
  --surface: #FFFFFF;
  --surface-raised: #E9E7E3;
  --text: #1A1A1A;
  --text-muted: #565656;
  --accent: #A12A35;
  --accent-2: #4A4A4A;
  --focus: #1A1A1A;
  --lane-0: #A12A35;
  --lane-1: #3F5F80;
  --lane-2: #8A6420;
  --lane-3: #2F7048;
  --lane-4: #6B4C9A;
  --lane-5: #555555;
  --shadow-popup: 0 8px 20px rgba(0,0,0,.4);
}
}
html[data-mode="dark"] [data-theme="wars"],
html[data-mode="dark"][data-theme="wars"] {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1C1C1C;
  --surface-raised: #262626;
  --text: #ECECEC;
  --text-muted: #A8A8A8;
  --accent: #E5737B;
  --accent-2: #B8B8B8;
  --focus: #FFFFFF;
  --lane-0: #E5737B;
  --lane-1: #9FB3C8;
  --lane-2: #D9B26F;
  --lane-3: #8FBF9F;
  --lane-4: #B7A1D9;
  --lane-5: #C8C8C8;
  --shadow-popup: 0 8px 20px rgba(0,0,0,.4);
}
html[data-mode="light"] [data-theme="wars"],
html[data-mode="light"][data-theme="wars"] {
  color-scheme: light;
  --bg: #F5F4F2;
  --surface: #FFFFFF;
  --surface-raised: #E9E7E3;
  --text: #1A1A1A;
  --text-muted: #565656;
  --accent: #A12A35;
  --accent-2: #4A4A4A;
  --focus: #1A1A1A;
  --lane-0: #A12A35;
  --lane-1: #3F5F80;
  --lane-2: #8A6420;
  --lane-3: #2F7048;
  --lane-4: #6B4C9A;
  --lane-5: #555555;
  --shadow-popup: 0 8px 20px rgba(0,0,0,.4);
}

[data-theme="events"] {
  --radius-card: 6px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Newsreader", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #0F1420;
  --surface: #182030;
  --surface-raised: #222C42;
  --text: #EEF1F7;
  --text-muted: #A4AFC6;
  --accent: #E8B04A;
  --accent-2: #7FB6E8;
  --focus: #FFFFFF;
  --lane-0: #E5737B;
  --lane-1: #E8B04A;
  --lane-2: #5FD3B8;
  --lane-3: #7FB6E8;
  --lane-4: #A9D46A;
  --lane-5: #C4A1F0;
  --shadow-popup: 0 10px 26px rgba(8,12,24,.45);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="events"],
html:not([data-mode])[data-theme="events"] {
  color-scheme: light;
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-raised: #EAE5D9;
  --text: #1B2030;
  --text-muted: #4F5468;
  --accent: #8A5A00;
  --accent-2: #1F5A94;
  --focus: #1B2030;
  --lane-0: #A12A35;
  --lane-1: #8A5A00;
  --lane-2: #0D6E5C;
  --lane-3: #2C58A8;
  --lane-4: #4F7A12;
  --lane-5: #6B3FA0;
  --shadow-popup: 0 10px 26px rgba(8,12,24,.45);
}
}
html[data-mode="dark"] [data-theme="events"],
html[data-mode="dark"][data-theme="events"] {
  color-scheme: dark;
  --bg: #0F1420;
  --surface: #182030;
  --surface-raised: #222C42;
  --text: #EEF1F7;
  --text-muted: #A4AFC6;
  --accent: #E8B04A;
  --accent-2: #7FB6E8;
  --focus: #FFFFFF;
  --lane-0: #E5737B;
  --lane-1: #E8B04A;
  --lane-2: #5FD3B8;
  --lane-3: #7FB6E8;
  --lane-4: #A9D46A;
  --lane-5: #C4A1F0;
  --shadow-popup: 0 10px 26px rgba(8,12,24,.45);
}
html[data-mode="light"] [data-theme="events"],
html[data-mode="light"][data-theme="events"] {
  color-scheme: light;
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-raised: #EAE5D9;
  --text: #1B2030;
  --text-muted: #4F5468;
  --accent: #8A5A00;
  --accent-2: #1F5A94;
  --focus: #1B2030;
  --lane-0: #A12A35;
  --lane-1: #8A5A00;
  --lane-2: #0D6E5C;
  --lane-3: #2C58A8;
  --lane-4: #4F7A12;
  --lane-5: #6B3FA0;
  --shadow-popup: 0 10px 26px rgba(8,12,24,.45);
}

[data-theme="people"] {
  --radius-card: 14px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #170F1F;
  --surface: #241733;
  --surface-raised: #321F46;
  --text: #FBEFFF;
  --text-muted: #BFA5D1;
  --accent: #FF5FA2;
  --accent-2: #FFD166;
  --focus: #FFFFFF;
  --lane-0: #FF5FA2;
  --lane-1: #FFD166;
  --lane-2: #6FE0FF;
  --lane-3: #9BF28A;
  --lane-4: #B79BFF;
  --lane-5: #FF9966;
  --shadow-popup: 0 12px 30px rgba(20,5,30,.35);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="people"],
html:not([data-mode])[data-theme="people"] {
  color-scheme: light;
  --bg: #FFF7FC;
  --surface: #FFFFFF;
  --surface-raised: #F8E6F3;
  --text: #26102F;
  --text-muted: #6A4A78;
  --accent: #C2185B;
  --accent-2: #8A6500;
  --focus: #26102F;
  --lane-0: #C2185B;
  --lane-1: #8A6500;
  --lane-2: #0A7A9E;
  --lane-3: #2E7D32;
  --lane-4: #6A3FC4;
  --lane-5: #C2410C;
  --shadow-popup: 0 12px 30px rgba(20,5,30,.35);
}
}
html[data-mode="dark"] [data-theme="people"],
html[data-mode="dark"][data-theme="people"] {
  color-scheme: dark;
  --bg: #170F1F;
  --surface: #241733;
  --surface-raised: #321F46;
  --text: #FBEFFF;
  --text-muted: #BFA5D1;
  --accent: #FF5FA2;
  --accent-2: #FFD166;
  --focus: #FFFFFF;
  --lane-0: #FF5FA2;
  --lane-1: #FFD166;
  --lane-2: #6FE0FF;
  --lane-3: #9BF28A;
  --lane-4: #B79BFF;
  --lane-5: #FF9966;
  --shadow-popup: 0 12px 30px rgba(20,5,30,.35);
}
html[data-mode="light"] [data-theme="people"],
html[data-mode="light"][data-theme="people"] {
  color-scheme: light;
  --bg: #FFF7FC;
  --surface: #FFFFFF;
  --surface-raised: #F8E6F3;
  --text: #26102F;
  --text-muted: #6A4A78;
  --accent: #C2185B;
  --accent-2: #8A6500;
  --focus: #26102F;
  --lane-0: #C2185B;
  --lane-1: #8A6500;
  --lane-2: #0A7A9E;
  --lane-3: #2E7D32;
  --lane-4: #6A3FC4;
  --lane-5: #C2410C;
  --shadow-popup: 0 12px 30px rgba(20,5,30,.35);
}

[data-theme="countries"] {
  --radius-card: 10px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  --bg: #F4F8F6;
  --surface: #FFFFFF;
  --surface-raised: #E3EEEA;
  --text: #0F2421;
  --text-muted: #3F5A55;
  --accent: #0D6E5C;
  --accent-2: #9A5800;
  --focus: #0F2421;
  --lane-0: #0D6E5C;
  --lane-1: #9A5800;
  --lane-2: #B23B2E;
  --lane-3: #2C58A8;
  --lane-4: #7B3FA0;
  --lane-5: #5E6612;
  --shadow-popup: 0 10px 26px rgba(15,36,33,.25);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="countries"],
html:not([data-mode])[data-theme="countries"] {
  color-scheme: dark;
  --bg: #0D1B1E;
  --surface: #15292D;
  --surface-raised: #1E373C;
  --text: #ECF4F2;
  --text-muted: #9DBAB4;
  --accent: #5FD3B8;
  --accent-2: #F2B66D;
  --focus: #FFFFFF;
  --lane-0: #5FD3B8;
  --lane-1: #F2B66D;
  --lane-2: #FF8B7B;
  --lane-3: #8FB3FF;
  --lane-4: #D3A6F5;
  --lane-5: #C8D46A;
  --shadow-popup: 0 10px 26px rgba(15,36,33,.25);
}
}
html[data-mode="dark"] [data-theme="countries"],
html[data-mode="dark"][data-theme="countries"] {
  color-scheme: dark;
  --bg: #0D1B1E;
  --surface: #15292D;
  --surface-raised: #1E373C;
  --text: #ECF4F2;
  --text-muted: #9DBAB4;
  --accent: #5FD3B8;
  --accent-2: #F2B66D;
  --focus: #FFFFFF;
  --lane-0: #5FD3B8;
  --lane-1: #F2B66D;
  --lane-2: #FF8B7B;
  --lane-3: #8FB3FF;
  --lane-4: #D3A6F5;
  --lane-5: #C8D46A;
  --shadow-popup: 0 10px 26px rgba(15,36,33,.25);
}
html[data-mode="light"] [data-theme="countries"],
html[data-mode="light"][data-theme="countries"] {
  color-scheme: light;
  --bg: #F4F8F6;
  --surface: #FFFFFF;
  --surface-raised: #E3EEEA;
  --text: #0F2421;
  --text-muted: #3F5A55;
  --accent: #0D6E5C;
  --accent-2: #9A5800;
  --focus: #0F2421;
  --lane-0: #0D6E5C;
  --lane-1: #9A5800;
  --lane-2: #B23B2E;
  --lane-3: #2C58A8;
  --lane-4: #7B3FA0;
  --lane-5: #5E6612;
  --shadow-popup: 0 10px 26px rgba(15,36,33,.25);
}

[data-theme="maps"] {
  --radius-card: 10px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #0A1622;
  --surface: #112233;
  --surface-raised: #1A2F45;
  --text: #EAF2F8;
  --text-muted: #9DB3C6;
  --accent: #F2C66D;
  --accent-2: #7FD1C7;
  --focus: #FFFFFF;
  --lane-0: #F2C66D;
  --lane-1: #7FD1C7;
  --lane-2: #F49A8C;
  --lane-3: #A9C2FF;
  --lane-4: #D3A6F5;
  --lane-5: #B8D98A;
  --shadow-popup: 0 10px 28px rgba(13,30,44,.3);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="maps"],
html:not([data-mode])[data-theme="maps"] {
  color-scheme: light;
  --bg: #F3F7FA;
  --surface: #FFFFFF;
  --surface-raised: #E2ECF3;
  --text: #0D1E2C;
  --text-muted: #41586B;
  --accent: #8A5A00;
  --accent-2: #1F6F66;
  --focus: #0D1E2C;
  --lane-0: #8A5A00;
  --lane-1: #1F6F66;
  --lane-2: #B23B2E;
  --lane-3: #2C58A8;
  --lane-4: #7B3FA0;
  --lane-5: #4E6A12;
  --shadow-popup: 0 10px 28px rgba(13,30,44,.3);
}
}
html[data-mode="dark"] [data-theme="maps"],
html[data-mode="dark"][data-theme="maps"] {
  color-scheme: dark;
  --bg: #0A1622;
  --surface: #112233;
  --surface-raised: #1A2F45;
  --text: #EAF2F8;
  --text-muted: #9DB3C6;
  --accent: #F2C66D;
  --accent-2: #7FD1C7;
  --focus: #FFFFFF;
  --lane-0: #F2C66D;
  --lane-1: #7FD1C7;
  --lane-2: #F49A8C;
  --lane-3: #A9C2FF;
  --lane-4: #D3A6F5;
  --lane-5: #B8D98A;
  --shadow-popup: 0 10px 28px rgba(13,30,44,.3);
}
html[data-mode="light"] [data-theme="maps"],
html[data-mode="light"][data-theme="maps"] {
  color-scheme: light;
  --bg: #F3F7FA;
  --surface: #FFFFFF;
  --surface-raised: #E2ECF3;
  --text: #0D1E2C;
  --text-muted: #41586B;
  --accent: #8A5A00;
  --accent-2: #1F6F66;
  --focus: #0D1E2C;
  --lane-0: #8A5A00;
  --lane-1: #1F6F66;
  --lane-2: #B23B2E;
  --lane-3: #2C58A8;
  --lane-4: #7B3FA0;
  --lane-5: #4E6A12;
  --shadow-popup: 0 10px 28px rgba(13,30,44,.3);
}

[data-theme="space"] {
  --radius-card: 12px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #070B1A;
  --surface: #10172E;
  --surface-raised: #1A2342;
  --text: #EEF1FB;
  --text-muted: #A3ACCB;
  --accent: #FFB454;
  --accent-2: #7CC4FF;
  --focus: #FFFFFF;
  --lane-0: #FFB454;
  --lane-1: #7CC4FF;
  --lane-2: #E4E1D6;
  --lane-3: #FF8B6B;
  --lane-4: #9EE6B8;
  --lane-5: #C9A6FF;
  --shadow-popup: 0 12px 30px rgba(7,11,26,.35);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="space"],
html:not([data-mode])[data-theme="space"] {
  color-scheme: light;
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --surface-raised: #E6E9F4;
  --text: #0B1230;
  --text-muted: #44506E;
  --accent: #9A5500;
  --accent-2: #1F57B8;
  --focus: #0B1230;
  --lane-0: #9A5500;
  --lane-1: #1F57B8;
  --lane-2: #555046;
  --lane-3: #B2391E;
  --lane-4: #1E7A45;
  --lane-5: #6B3FB0;
  --shadow-popup: 0 12px 30px rgba(7,11,26,.35);
}
}
html[data-mode="dark"] [data-theme="space"],
html[data-mode="dark"][data-theme="space"] {
  color-scheme: dark;
  --bg: #070B1A;
  --surface: #10172E;
  --surface-raised: #1A2342;
  --text: #EEF1FB;
  --text-muted: #A3ACCB;
  --accent: #FFB454;
  --accent-2: #7CC4FF;
  --focus: #FFFFFF;
  --lane-0: #FFB454;
  --lane-1: #7CC4FF;
  --lane-2: #E4E1D6;
  --lane-3: #FF8B6B;
  --lane-4: #9EE6B8;
  --lane-5: #C9A6FF;
  --shadow-popup: 0 12px 30px rgba(7,11,26,.35);
}
html[data-mode="light"] [data-theme="space"],
html[data-mode="light"][data-theme="space"] {
  color-scheme: light;
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --surface-raised: #E6E9F4;
  --text: #0B1230;
  --text-muted: #44506E;
  --accent: #9A5500;
  --accent-2: #1F57B8;
  --focus: #0B1230;
  --lane-0: #9A5500;
  --lane-1: #1F57B8;
  --lane-2: #555046;
  --lane-3: #B2391E;
  --lane-4: #1E7A45;
  --lane-5: #6B3FB0;
  --shadow-popup: 0 12px 30px rgba(7,11,26,.35);
}

[data-theme="domestication"] {
  --radius-card: 14px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  --bg: #F7F5EC;
  --surface: #FFFFFF;
  --surface-raised: #ECE7D6;
  --text: #1E2316;
  --text-muted: #535A44;
  --accent: #7A5C00;
  --accent-2: #2E6B2A;
  --focus: #1E2316;
  --lane-0: #7A5C00;
  --lane-1: #A3412A;
  --lane-2: #2C5E99;
  --lane-3: #6B5B00;
  --lane-4: #2E6B2A;
  --lane-5: #6E3F99;
  --shadow-popup: 0 10px 26px rgba(30,35,22,.25);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="domestication"],
html:not([data-mode])[data-theme="domestication"] {
  color-scheme: dark;
  --bg: #13170F;
  --surface: #1C2216;
  --surface-raised: #262E1E;
  --text: #EEF2E6;
  --text-muted: #AEB89E;
  --accent: #D8B95E;
  --accent-2: #8FCB8A;
  --focus: #FFFFFF;
  --lane-0: #D8B95E;
  --lane-1: #E39A7B;
  --lane-2: #9FC7F0;
  --lane-3: #E8D36E;
  --lane-4: #8FCB8A;
  --lane-5: #C9A6E8;
  --shadow-popup: 0 10px 26px rgba(30,35,22,.25);
}
}
html[data-mode="dark"] [data-theme="domestication"],
html[data-mode="dark"][data-theme="domestication"] {
  color-scheme: dark;
  --bg: #13170F;
  --surface: #1C2216;
  --surface-raised: #262E1E;
  --text: #EEF2E6;
  --text-muted: #AEB89E;
  --accent: #D8B95E;
  --accent-2: #8FCB8A;
  --focus: #FFFFFF;
  --lane-0: #D8B95E;
  --lane-1: #E39A7B;
  --lane-2: #9FC7F0;
  --lane-3: #E8D36E;
  --lane-4: #8FCB8A;
  --lane-5: #C9A6E8;
  --shadow-popup: 0 10px 26px rgba(30,35,22,.25);
}
html[data-mode="light"] [data-theme="domestication"],
html[data-mode="light"][data-theme="domestication"] {
  color-scheme: light;
  --bg: #F7F5EC;
  --surface: #FFFFFF;
  --surface-raised: #ECE7D6;
  --text: #1E2316;
  --text-muted: #535A44;
  --accent: #7A5C00;
  --accent-2: #2E6B2A;
  --focus: #1E2316;
  --lane-0: #7A5C00;
  --lane-1: #A3412A;
  --lane-2: #2C5E99;
  --lane-3: #6B5B00;
  --lane-4: #2E6B2A;
  --lane-5: #6E3F99;
  --shadow-popup: 0 10px 26px rgba(30,35,22,.25);
}

[data-theme="food"] {
  --radius-card: 10px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Fraunces", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --surface-raised: #F2E7D8;
  --text: #2A1B10;
  --text-muted: #6A5442;
  --accent: #A3480F;
  --accent-2: #2E6B2B;
  --focus: #2A1B10;
  --lane-0: #A3480F;
  --lane-1: #2E6B2B;
  --lane-2: #B02E2E;
  --lane-3: #7A5D00;
  --lane-4: #6E3FA0;
  --lane-5: #245E86;
  --shadow-popup: 0 10px 26px rgba(42,27,16,.25);
}
@media (prefers-color-scheme: dark) {
html:not([data-mode]) [data-theme="food"],
html:not([data-mode])[data-theme="food"] {
  color-scheme: dark;
  --bg: #1A120C;
  --surface: #271B12;
  --surface-raised: #35251A;
  --text: #F6ECE1;
  --text-muted: #C7B29E;
  --accent: #F2A65A;
  --accent-2: #8FCB7E;
  --focus: #FFFFFF;
  --lane-0: #F2A65A;
  --lane-1: #8FCB7E;
  --lane-2: #FF8577;
  --lane-3: #E8C547;
  --lane-4: #C9A0E8;
  --lane-5: #7FBFE0;
  --shadow-popup: 0 10px 26px rgba(42,27,16,.25);
}
}
html[data-mode="dark"] [data-theme="food"],
html[data-mode="dark"][data-theme="food"] {
  color-scheme: dark;
  --bg: #1A120C;
  --surface: #271B12;
  --surface-raised: #35251A;
  --text: #F6ECE1;
  --text-muted: #C7B29E;
  --accent: #F2A65A;
  --accent-2: #8FCB7E;
  --focus: #FFFFFF;
  --lane-0: #F2A65A;
  --lane-1: #8FCB7E;
  --lane-2: #FF8577;
  --lane-3: #E8C547;
  --lane-4: #C9A0E8;
  --lane-5: #7FBFE0;
  --shadow-popup: 0 10px 26px rgba(42,27,16,.25);
}
html[data-mode="light"] [data-theme="food"],
html[data-mode="light"][data-theme="food"] {
  color-scheme: light;
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --surface-raised: #F2E7D8;
  --text: #2A1B10;
  --text-muted: #6A5442;
  --accent: #A3480F;
  --accent-2: #2E6B2B;
  --focus: #2A1B10;
  --lane-0: #A3480F;
  --lane-1: #2E6B2B;
  --lane-2: #B02E2E;
  --lane-3: #7A5D00;
  --lane-4: #6E3FA0;
  --lane-5: #245E86;
  --shadow-popup: 0 10px 26px rgba(42,27,16,.25);
}

[data-theme="pandemics"] {
  --radius-card: 8px;
  --radius-marker: 999px;
  --motion-popup: 180ms;
  --motion-enter: 320ms;
  --font-display: "Newsreader", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #101418;
  --surface: #181E24;
  --surface-raised: #222A32;
  --text: #E9EEF2;
  --text-muted: #A3AFBA;
  --accent: #8EC5D6;
  --accent-2: #E0B07A;
  --focus: #FFFFFF;
  --lane-0: #8EC5D6;
  --lane-1: #E0B07A;
  --lane-2: #C7A4E0;
  --lane-3: #9FD4A8;
  --lane-4: #E89A9A;
  --lane-5: #C9CFD6;
  --shadow-popup: 0 10px 26px rgba(20,26,32,.3);
}
@media (prefers-color-scheme: light) {
html:not([data-mode]) [data-theme="pandemics"],
html:not([data-mode])[data-theme="pandemics"] {
  color-scheme: light;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-raised: #E4E9EE;
  --text: #141A20;
  --text-muted: #4C5763;
  --accent: #1F6378;
  --accent-2: #8A5300;
  --focus: #141A20;
  --lane-0: #1F6378;
  --lane-1: #8A5300;
  --lane-2: #6B4796;
  --lane-3: #2E6B3C;
  --lane-4: #A33A3A;
  --lane-5: #4E5761;
  --shadow-popup: 0 10px 26px rgba(20,26,32,.3);
}
}
html[data-mode="dark"] [data-theme="pandemics"],
html[data-mode="dark"][data-theme="pandemics"] {
  color-scheme: dark;
  --bg: #101418;
  --surface: #181E24;
  --surface-raised: #222A32;
  --text: #E9EEF2;
  --text-muted: #A3AFBA;
  --accent: #8EC5D6;
  --accent-2: #E0B07A;
  --focus: #FFFFFF;
  --lane-0: #8EC5D6;
  --lane-1: #E0B07A;
  --lane-2: #C7A4E0;
  --lane-3: #9FD4A8;
  --lane-4: #E89A9A;
  --lane-5: #C9CFD6;
  --shadow-popup: 0 10px 26px rgba(20,26,32,.3);
}
html[data-mode="light"] [data-theme="pandemics"],
html[data-mode="light"][data-theme="pandemics"] {
  color-scheme: light;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-raised: #E4E9EE;
  --text: #141A20;
  --text-muted: #4C5763;
  --accent: #1F6378;
  --accent-2: #8A5300;
  --focus: #141A20;
  --lane-0: #1F6378;
  --lane-1: #8A5300;
  --lane-2: #6B4796;
  --lane-3: #2E6B3C;
  --lane-4: #A33A3A;
  --lane-5: #4E5761;
  --shadow-popup: 0 10px 26px rgba(20,26,32,.3);
}
