/* Night Realm — the second, immersive visual system. */
#theme-toggle{position:fixed;right:20px;bottom:20px;z-index:60;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid #7695aa55;border-radius:999px;background:#edf9fbd9;color:#244d5d;box-shadow:0 8px 28px #0b263125;backdrop-filter:blur(18px);font-size:12px;letter-spacing:1px;transition:transform .2s ease,background .2s ease,color .2s ease}
#theme-toggle:hover{transform:translateY(-2px);background:#fff}
#theme-toggle span{font-size:18px;line-height:1}#theme-toggle b{font-weight:500}

html[data-theme=gothic]{--paper:#080b11;--white:#111721;--ink:#e7f2fb;--muted:#9babbc;--accent:#9edaff;--line:#7890a52e;--mint:#111a24;color-scheme:dark;background:#05070b}
html[data-theme=gothic] body{color:var(--ink);background:#05070b;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
html[data-theme=gothic] body:before{background-image:linear-gradient(90deg,#020307 0%,#020307c7 26%,#02030733 64%,#020307b8 100%),url('/assets/night-realm.png')!important;background-position:center center!important;background-size:cover!important;filter:none}
html[data-theme=gothic] body:after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 62% 28%,#9ad8ff16,transparent 25%),linear-gradient(180deg,#03060b24,#03060bd4)}
html[data-theme=gothic] #theme-toggle{background:#0c121be8;color:#d9efff;border-color:#b6dcf03d;box-shadow:0 10px 35px #0009,0 0 24px #8fd7ff10}
html[data-theme=gothic] #theme-toggle:hover{background:#162231;border-color:#a6dbf36e}

html[data-theme=gothic] .hero{background-image:linear-gradient(90deg,#020307f0 0%,#020307a6 34%,transparent 72%),url('/assets/night-realm.png')!important;background-position:center center!important;color:#eff8ff}
html[data-theme=gothic] .hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 65%,#05070b 100%)}
html[data-theme=gothic] .hero-copy{z-index:1;text-shadow:0 2px 24px #000}
html[data-theme=gothic] .hero h1,html[data-theme=gothic] h1,html[data-theme=gothic] h2,html[data-theme=gothic] .games-heading h1,html[data-theme=gothic] .anime-heading h1,html[data-theme=gothic] .novel-heading h1{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;color:#eaf6ff;text-shadow:0 1px 22px #8bd3ff16}
html[data-theme=gothic] .eyebrow{color:#9edaff;letter-spacing:4px}
html[data-theme=gothic] .topbar,html[data-theme=gothic] .page-home .topbar{background:#070b11cf;border-color:#b9dff321;box-shadow:0 8px 28px #0004}
html[data-theme=gothic] .topbar a{color:#bccbd7}html[data-theme=gothic] .topbar a:hover,html[data-theme=gothic] .topbar a[aria-current=page]{color:#e5f5ff}
html[data-theme=gothic] .sidebar-zone .header{background:#080d15df;border-color:#b8dff31d;box-shadow:16px 0 50px #0008}
html[data-theme=gothic] .sidebar-zone #nav a:hover,html[data-theme=gothic] .sidebar-zone #nav a[aria-current=page]{background:#9ccce916;color:#e7f6ff}
html[data-theme=gothic] #sidebar-toggle{background:#101925c9}html[data-theme=gothic] #sidebar-toggle span{background:#b8d9eb}

html[data-theme=gothic] main,html[data-theme=gothic] .inner-page main,html[data-theme=gothic] .page-gallery main,html[data-theme=gothic] .page-guestbook main,html[data-theme=gothic] .page-notes main{background:transparent;color:var(--ink)}
html[data-theme=gothic] .world-scene,html[data-theme=gothic] .about-image{background-image:url('/assets/night-realm.png')!important;background-position:center!important;background-size:cover!important}
html[data-theme=gothic] .world-scene:before{background:linear-gradient(90deg,#020307e8 0%,#0203078a 38%,transparent 72%,#0203076b)!important}
html[data-theme=gothic] .world-caption{text-shadow:0 2px 20px #000}html[data-theme=gothic] .world-caption p{color:#b8c9d7}
html[data-theme=gothic] .world-controls{background:#090f18dc;border-color:#b7dff22b;box-shadow:0 16px 48px #0008;backdrop-filter:blur(24px)}

html[data-theme=gothic] .portal-panel,html[data-theme=gothic] .collection-hubs a,html[data-theme=gothic] .games-filters,html[data-theme=gothic] .game-detail-hero,html[data-theme=gothic] .game-detail-section,html[data-theme=gothic] .game-edit-form,html[data-theme=gothic] .series-reflection,html[data-theme=gothic] .series-season,html[data-theme=gothic] .anime-controls,html[data-theme=gothic] .anime-tier,html[data-theme=gothic] .novel-tier,html[data-theme=gothic] .music-track,html[data-theme=gothic] .guest-thread,html[data-theme=gothic] .guest-compose,html[data-theme=gothic] .fragments-timeline .guest-comment,html[data-theme=gothic] .paper-note,html[data-theme=gothic] .gallery-entry{background:#0b111add!important;border-color:#a9d7ef24!important;color:var(--ink)!important;box-shadow:0 16px 48px #0007,inset 0 1px #d8f3ff0a;backdrop-filter:blur(24px) saturate(115%)}
html[data-theme=gothic] .portal-article{background:#101925b8;border-color:#a9d7ef1c}html[data-theme=gothic] .portal-article:hover{background:#152231;border-color:#9fdcff55;box-shadow:0 12px 28px #0005}
html[data-theme=gothic] .portal-nav a:hover,html[data-theme=gothic] .portal-nav a[aria-current=location],html[data-theme=gothic] .portal-subpages a,html[data-theme=gothic] .portal-tabs a,html[data-theme=gothic] .portal-section>header>a,html[data-theme=gothic] .portal-tags span{background:#8fcff013;color:#cfeeff}
html[data-theme=gothic] .portal-profile>img{filter:saturate(.72) brightness(.78);border:1px solid #badff22b}
html[data-theme=gothic] .portal-panel p,html[data-theme=gothic] .portal-section>header p,html[data-theme=gothic] .portal-card-bottom,html[data-theme=gothic] .small,html[data-theme=gothic] .source,html[data-theme=gothic] .games-note,html[data-theme=gothic] .anime-meta{color:var(--muted)!important}

html[data-theme=gothic] input,html[data-theme=gothic] textarea,html[data-theme=gothic] select,html[data-theme=gothic] dialog{background:#090f17;color:#e6f2fb;border-color:#9fcfe83b}
html[data-theme=gothic] input::placeholder,html[data-theme=gothic] textarea::placeholder{color:#708292}
html[data-theme=gothic] .chip{background:#0b121c;border-color:#94c9e33b;color:#c7d8e5}html[data-theme=gothic] .chip:hover{background:#172331}html[data-theme=gothic] .chip.active,html[data-theme=gothic] .chip[aria-pressed=true],html[data-theme=gothic] .button{background:#c6eaff;color:#071018;border-color:#c6eaff}
html[data-theme=gothic] .button:hover{background:#fff;color:#05090d}
html[data-theme=gothic] .game-tile:after{background:linear-gradient(transparent 42%,#03070aea 100%)}
html[data-theme=gothic] .game-detail-facts>div{background:#121c28;border-color:#b3dcef24}html[data-theme=gothic] .game-detail-facts dt{color:#91a6b7}html[data-theme=gothic] .game-detail-facts dd{color:#e2f2fc}
html[data-theme=gothic] .anime-tier>header{filter:saturate(.45) brightness(.68);color:#eef8ff}
html[data-theme=gothic] .paper-note{--note-tint:#0d151f!important;color:#d5e5ef!important}
html[data-theme=gothic] .notes-simple-heading h1,html[data-theme=gothic] .gallery-heading h1{color:#edf7ff;text-shadow:0 2px 18px #000}
html[data-theme=gothic] .page-gallery .topbar a{color:#c6d7e3}
html[data-theme=gothic] footer{color:#8fa0ad;border-color:#9fcfe820;background:#05080db8}
html[data-theme=gothic] .mind-map{background:radial-gradient(ellipse,#162737aa,#070b11 70%)}
html[data-theme=gothic] .mind-map circle{fill:#8dc9e6;stroke:#152330}html[data-theme=gothic] .mind-map text{fill:#dcecf5}

@media(max-width:600px){
  #theme-toggle{right:14px;bottom:14px;padding:8px 12px}
  html[data-theme=gothic] .hero{background-position:61% center!important;background-image:linear-gradient(90deg,#020307ef 0%,#0203078f 52%,transparent 100%),url('/assets/night-realm.png')!important}
  html[data-theme=gothic] body:before{background-position:61% center!important}
  html[data-theme=gothic] .world-scene{background-position:61% center!important}
}
@media(prefers-reduced-motion:reduce){#theme-toggle{transition:none}#theme-toggle:hover{transform:none}}
