/* Dark theme (generated from styles.css) */
:where(html[data-theme="dark"]) body {
    background: #282126;
    color: var(--ink)
}
:where(html[data-theme="dark"]) a {
    color: inherit
}
:where(html[data-theme="dark"]) p {
    color: var(--muted)
}
:where(html[data-theme="dark"]) a:focus-visible,:where(html[data-theme="dark"]) button:focus-visible,:where(html[data-theme="dark"]) input:focus-visible {
    outline: 3px solid var(--crimson)
}
:where(html[data-theme="dark"]) main:focus {
    outline: none
}
:where(html[data-theme="dark"]) .site-background {
    background: linear-gradient(120deg,rgba(35,28,32,0.9),rgba(46,34,41,0.9)),url('./images/hero.webp') center/cover
}
:where(html[data-theme="dark"]) .site-grid {
    background-image: linear-gradient(45deg,transparent 49.5%,#181818 49.8%,#181818 50.2%,transparent 50.5%),linear-gradient(-45deg,transparent 49.5%,#181818 49.8%,#181818 50.2%,transparent 50.5%)
}
:where(html[data-theme="dark"]) .glass {
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(30,12,26,.10),inset 0 1px 1px rgba(97,80,87,0.15)
}
:where(html[data-theme="dark"]) .skip-link {
    background: var(--ivory);
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .navbar {
    background: rgba(26,25,25,0.9)
}
:where(html[data-theme="dark"]) .brand>.icon {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .brand-name small {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .brand-world {
    border-left: 1px solid rgba(81,59,68,0.75)
}
:where(html[data-theme="dark"]) .nav-link:after {
    background: var(--crimson)
}
:where(html[data-theme="dark"]) .nav-link:hover,:where(html[data-theme="dark"]) .nav-link:focus-visible,:where(html[data-theme="dark"]) .nav-link[aria-current],:where(html[data-theme="dark"]) .nav-parent {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .search-toggle {
    background: none;
    border: 0;
    border-left: 1px solid rgba(81,59,69,0.75);
    color: var(--ink)
}
:where(html[data-theme="dark"]) .eyebrow {
    color: inherit
}
:where(html[data-theme="dark"]) .art-label {
    color: #fff;
    background: #211c2566
}
:where(html[data-theme="dark"]) .mi-image-frame {
    border: 1px solid rgba(75,62,68,0.45)
}
:where(html[data-theme="dark"]) .overview h2 em {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .small-rule {
    background: var(--crimson)
}
:where(html[data-theme="dark"]) .overview-copy p {
    color: #c7bfc8
}
:where(html[data-theme="dark"]) .category {
    background: rgba(24,24,24,0.465);
    border: 1px solid rgba(75,62,68,0.488)
}
:where(html[data-theme="dark"]) .mi-arrow {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .mi-glass-link:hover,:where(html[data-theme="dark"]) .mi-glass-link:focus-visible {
    background-color: rgba(24,24,24,0.809);
    box-shadow: 0 12px 30px rgba(30,12,26,.14)
}
:where(html[data-theme="dark"]) .section-heading h2>span {
    background: var(--crimson)
}
:where(html[data-theme="dark"]) .text-link {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .empty-emblem {
    color: #c4a8b2;
    border: 1px solid rgba(139,24,42,.2);
    background: rgba(24,24,24,0.407)
}
:where(html[data-theme="dark"]) .footer {
    border-top: 1px solid rgba(75,62,68,0.4)
}
:where(html[data-theme="dark"]) .footer-brand .icon {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .footer-brand small {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .footer a:hover {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .breadcrumbs a {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .breadcrumbs>span:last-child {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .crimson {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .status-tag {
    border: 1px solid rgba(80,59,69,0.75);
    background: rgba(24,24,24,0.416);
    color: var(--wine)
}
:where(html[data-theme="dark"]) .button {
    border: 1px solid rgba(82,59,68,0.75);
    color: var(--crimson);
    background: rgba(24,24,24,0.507)
}
:where(html[data-theme="dark"]) .mi-button:hover {
    background-color: rgba(24,24,24,0.777);
    box-shadow: 0 5px 18px #58172518
}
:where(html[data-theme="dark"]) .subnav a {
    border: 1px solid transparent;
    color: var(--muted)
}
:where(html[data-theme="dark"]) .subnav a[aria-current] {
    border-color: rgba(81,59,69,0.75);
    background: rgba(24,24,24,0.66);
    color: var(--wine)
}
:where(html[data-theme="dark"]) .subnav a:hover {
    background: rgba(24,24,24,0.489)
}
:where(html[data-theme="dark"]) .world-intro>.icon {
    color: #a68190
}
:where(html[data-theme="dark"]) .world-directory .category {
    background-color: rgba(24,24,24,0.489)
}
:where(html[data-theme="dark"]) .related-card .eyebrow {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .search-dialog {
    border: 1px solid rgba(75,62,68,0.75);
    color: var(--ink);
    background: rgba(30,26,28,0.9);
    box-shadow: 0 25px 80px #211c2555
}
:where(html[data-theme="dark"]) .search-dialog::backdrop {
    background: #211c2577
}
:where(html[data-theme="dark"]) .search-close {
    background: none;
    border: 0;
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .search-dialog input {
    border: 1px solid rgba(81,59,68,0.75);
    background: rgba(24,24,24,0.89);
    color: var(--ink)
}
:where(html[data-theme="dark"]) .search-results a {
    border-bottom: 1px solid rgba(77,61,68,0.75)
}
:where(html[data-theme="dark"]) .search-results a>span:nth-child(2) {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .search-results a:hover {
    color: var(--crimson);
    background: rgba(24,24,24,0.813)
}
@supports not ((backdrop-filter:blur(18px)) or (-webkit-backdrop-filter:blur(18px))) {
    :where(html[data-theme="dark"]) .glass,:where(html[data-theme="dark"]) .navbar,:where(html[data-theme="dark"]) .world-directory .category {
        background: rgba(31,27,30,0.9)
    }
}
@media (max-width:980px) {
    :where(html[data-theme="dark"]) .menu-toggle {
        border: 0;
        background: transparent;
        color: var(--crimson)
    }
    :where(html[data-theme="dark"]) .menu-toggle span {
        background: currentColor
    }
    :where(html[data-theme="dark"]) .navbar nav {
        background: rgba(29,26,29,0.9);
        border: 1px solid rgba(75,62,68,0.75);
        box-shadow: 0 12px 30px #211c2520
    }
    :where(html[data-theme="dark"]) .search-toggle {
        border: 0;
        border-top: 1px solid rgba(79,60,71,0.75)
    }
}

/* Manual dark adjustments: src/dark/styles.css */
html[data-theme="dark"]{--ink:#efe7ee;--muted:#bdb0ba;--glass:rgba(30,24,31,.64);--border:rgba(84,62,74,.6);--crimson:#e47a8c;--wine:#d06a7d}
html[data-theme="dark"] body{background:#141015;color:var(--ink)}
html[data-theme="dark"] .skip-link{background:#1d181d}
/* Darken whichever scene image a page uses for its blurred backdrop */
html[data-theme="dark"] .site-background::after,html[data-theme="dark"] .portal-backdrop::after{content:'';position:absolute;inset:0;background:rgba(13,10,14,.72)}
html[data-theme="dark"] ::selection{background:#8b182a;color:#fff}
