:root { color-scheme: light; }
#theme-toggle { background:transparent; color:#f0ebdf; border:1px solid #8b8e84; border-radius:2px; padding:6px 9px; font-size:12px; cursor:pointer; white-space:nowrap; }
#theme-toggle:hover { background:#ffffff12; }
:root[data-theme=dark] { color-scheme:dark; --ink:#e0e4e2; --paper:#1c2227; --line:#434d54; --muted:#b0b9b5; --link:#8ac6ed; --green:#a9c9b6; --gold:#d4b87d; }
html[data-theme=dark] body,html[data-theme=dark] aside { background:#171c20; }
html[data-theme=dark] header { background:#14191d; }
html[data-theme=dark] aside nav a { color:#accbdd; }
html[data-theme=dark] aside nav a.active,html[data-theme=dark] aside nav a[aria-current=page] { background:#303b42; color:#e6f0f4; border-left-color:#d4b87d; }
html[data-theme=dark] aside nav .section,html[data-theme=dark] .portal-index h3 { color:#c5d4c9; }
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] th,html[data-theme=dark] td,html[data-theme=dark] .source,html[data-theme=dark] .infobox-version,html[data-theme=dark] .portal-topics,html[data-theme=dark] .portal-index section,html[data-theme=dark] .npc-dialogue { border-color:var(--line); }
html[data-theme=dark] .crumb,html[data-theme=dark] .unknown,html[data-theme=dark] .source,html[data-theme=dark] .wiki-sources,html[data-theme=dark] .table-toolbar label,html[data-theme=dark] .table-pagination,html[data-theme=dark] .table-note,html[data-theme=dark] .portal-count,html[data-theme=dark] .category-index small,html[data-theme=dark] .entity-hover dt,html[data-theme=dark] .wiki-screenshot figcaption { color:var(--muted); }
html[data-theme=dark] .wiki-toc,html[data-theme=dark] .wiki-infobox,html[data-theme=dark] .portal-index,html[data-theme=dark] .category-footer,html[data-theme=dark] .card,html[data-theme=dark] .list a { background:#242d32; border-color:var(--line); }
html[data-theme=dark] .wiki-infobox h2,html[data-theme=dark] th { background:#303b42; color:var(--ink); border-color:var(--line); }
html[data-theme=dark] .infobox-sprite { background:#222a30; }
html[data-theme=dark] tbody tr:nth-child(even),html[data-theme=dark] .wiki-infobox tr:nth-child(even) { background:#242c31; }
html[data-theme=dark] tbody tr:hover { background:#303b42; }
html[data-theme=dark] .wiki-infobox th,html[data-theme=dark] .wiki-infobox td { background:transparent; }
html[data-theme=dark] .table-scroll { border-color:var(--line); }
html[data-theme=dark] .note,html[data-theme=dark] .wiki-notice,html[data-theme=dark] .wiki-spoiler { background:#302e25; border-color:#746a4b; color:#e4deca; }
html[data-theme=dark] .sprite-missing { background:#242d32; border-color:#5a666d; color:#b7c0ba; }
html[data-theme=dark] .entity-hover,html[data-theme=dark] .map-tooltip,html[data-theme=dark] .map-info { background:#242d32; border-color:#64736d; color:var(--ink); }
html[data-theme=dark] .table-toolbar input,html[data-theme=dark] .table-toolbar select,html[data-theme=dark] .wiki-calculator input,html[data-theme=dark] .wiki-calculator select,html[data-theme=dark] .loot-tier-label select,html[data-theme=dark] .wiki-spoiler select,html[data-theme=dark] .filters select { background:#171f24; color:var(--ink); border-color:#647179; }
html[data-theme=dark] .table-pagination button,html[data-theme=dark] .wiki-spoiler button,html[data-theme=dark] .filters button,html[data-theme=dark] .map-controls button,html[data-theme=dark] .map-tooltip button,html[data-theme=dark] .button { background:#303b42; color:#c5e3f6; border-color:#647179; }
html[data-theme=dark] .table-pagination button:disabled { color:#a0a9ac; background:#252e34; }
html[data-theme=dark] .filters button.selected { background:#3b5b49; color:#f0f7f2; }
html[data-theme=dark] .badge { background:#30473a; color:#c9e4ce; }
html[data-theme=dark] .resistance-table .vulnerable td:nth-child(2) { color:#a2d686; }
html[data-theme=dark] .resistance-table .resistant td:nth-child(2) { color:#e5aa84; }
html[data-theme=dark] .resistance-table .immune td:nth-child(2) { color:#c6a4eb; }
html[data-theme=dark] .npc-dialogue mark { background:#534827; color:#f2df9e; }
html[data-theme=dark] footer { background:#171c20; color:var(--muted); border-color:var(--line); }
html[data-theme=dark] footer a { color:var(--link); }
html[data-theme=dark] :focus-visible { outline-color:#b1d9f1; }
@media(max-width:760px) { #theme-toggle { margin-left:auto; } }
@media print { #theme-toggle { display:none; } html[data-theme=dark] body,html[data-theme=dark] main,html[data-theme=dark] table,html[data-theme=dark] tr,html[data-theme=dark] th,html[data-theme=dark] td,html[data-theme=dark] .wiki-infobox,html[data-theme=dark] .infobox-sprite,html[data-theme=dark] .wiki-toc,html[data-theme=dark] .wiki-notice,html[data-theme=dark] .note { background:white!important; color:black!important; } html[data-theme=dark] a { color:black; } }
html[data-theme=dark] table { background:var(--paper); color:var(--ink); }
