/* Theme control stays outside page/state markup. Printed art is never inverted. */
.site-theme-toggle{position:fixed;z-index:100;right:16px;bottom:18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid #d3c6c5;border-radius:24px;background:#fffffff2;color:#302329;box-shadow:0 5px 22px #22151b22;font:700 10px/1 'IBM Plex Mono',monospace;letter-spacing:.12em;cursor:pointer;touch-action:manipulation}
.site-theme-toggle:focus-visible{outline:3px solid #c8183b;outline-offset:4px}
.site-theme-toggle__lamp{width:15px;height:15px;border:1px solid #726369;border-radius:50%;background:linear-gradient(90deg,#20191d 50%,#fff 50%);box-shadow:0 0 0 3px #a991991c;flex:none}
html[data-site-theme=dark] .site-theme-toggle{background:#171317f5;color:#f6eeeb;border-color:#493039;box-shadow:0 5px 22px #0007}
html[data-site-theme=dark] .site-theme-toggle__lamp{background:#ee3654;border-color:#ff8194;box-shadow:0 0 8px #ff244e66}
@media(max-width:767px){.site-theme-toggle{right:12px;bottom:calc(82px + env(safe-area-inset-bottom,0px));padding:10px 12px}}

/* The light version remains unchanged unless the saved preference is dark. */
html[data-site-theme=dark] .fudaya-theme{
 --theme-paper:#08080a;--theme-ink:#f6efeb;--theme-red:#ff4665;--theme-muted:#bbaeb4;
 --color-ink:#08080a;--color-ink-2:#101013;--color-char:#151316;--color-char-2:#211b20;
 --color-line:#34292e;--color-line-2:#59434c;--color-line-field:#89747d;
 --color-bone:#f6efeb;--color-bone-dim:#d6c8ce;--color-muted:#b6a7af;--color-crimson:#ff4665;--color-steel:#96b9e2;
 background:#08080a;color:var(--theme-ink)
}
html[data-site-theme=dark] .fudaya-theme>.bgfx{background:radial-gradient(ellipse at 95% 10%,#78152916,transparent 55%),#08080a}
html[data-site-theme=dark] .fudaya-theme>header{background:#08080af5;border-color:#33262c;box-shadow:0 1px 0 #ffffff04}
html[data-site-theme=dark] .fudaya-theme>header nav [data-avatar-link]{color:#c9b5be!important}
html[data-site-theme=dark] .fudaya-theme>footer{background:#0b090c;border-color:#33262c}
html[data-site-theme=dark] .fudaya-theme .ui-btn:not([data-variant=primary]):not([data-variant=tertiary]){--fill:linear-gradient(180deg,#292127,#181317);--edge:#090709;color:#f6efeb}
html[data-site-theme=dark] .fudaya-theme .ui-btn__face{box-shadow:inset 0 1px 0 #ffffff20,0 var(--d) 0 var(--edge),0 0 0 1px #96708044,0 10px 20px #0004}
html[data-site-theme=dark] .fudaya-theme .ui-filter-chip:not([aria-pressed=true]){color:#c8b8c0!important}
html[data-site-theme=dark] .fudaya-theme :is(.cp-ticket,.hub-tile,.daily){--color-char:#151316;--color-char-2:#211b20;--color-line:#34292e}
html[data-site-theme=dark] .fudaya-theme .cp-ticket{background:#151316;border-color:#34292e}
html[data-site-theme=dark] .fudaya-theme .hub-tile:hover{background:#29151e}
html[data-site-theme=dark] .journey__chapter--hero{background:#08080a;--shade-to:#0b090c}
html[data-site-theme=dark] .journey__chapter--pair{background:radial-gradient(ellipse at 24% 54%,#751b301c,transparent 55%),#0b090c;--shade-to:#100b0e}
html[data-site-theme=dark] .journey__chapter--season{background:#100b0e;--shade-to:#08080a}
html[data-site-theme=dark] .journey__chapter--pair:before{color:#e62f5520}
html[data-site-theme=dark] .journey__chapter--pair:after{opacity:.12}
html[data-site-theme=dark] :is(.journey__chapter--hero .hub-hero__lead,.journey__chapter--hero .hub-hero__supply-l,.journey__chapter--season .bill__desc,.journey__chapter--season .bill__native,.journey__chapter--season .bill__odds){color:#c0b1b8}
html[data-site-theme=dark] .journey__chapter--hero .hub-hero__next{color:#ff7c94}
html[data-site-theme=dark] .journey__chapter--hero .hub-pips i:not([data-full=true]){background:#33272e}
html[data-site-theme=dark] .journey-scroll{background:#171216ed;color:#eee4e8}
html[data-site-theme=dark] .journey-scroll span{border-color:#6b505d}
html[data-site-theme=dark] .booster-landing{background:linear-gradient(180deg,#0b090c,#100b0e 70%,#0b090c)}
html[data-site-theme=dark] .booster-landing__ribbon{opacity:.2;background:radial-gradient(ellipse at 50% 50%,transparent 38%,#a42d4f33 38.2% 41%,transparent 41.2% 45%,#c2375533 45.2% 49%,transparent 49.2%)}
html[data-site-theme=dark] .fudaya-home .packs-tile{background:linear-gradient(160deg,#181318,#0e0c0f);border-color:#3a2a32}
html[data-site-theme=dark] .fudaya-home .packs-tile:hover{background:#28151d;border-color:#ab3857}
html[data-site-theme=dark] .fudaya-home .packs-tile__stage{background:radial-gradient(ellipse at 50% 80%,#8f22402b,transparent 65%)}
html[data-site-theme=dark] .pocket-opening{background:radial-gradient(ellipse at 50% 34%,#21171d,#0e0b0e 65%,#08080a)!important}
html[data-site-theme=dark] .pocket-sound{background:#21181f;border-color:#58404d;color:#d7c2ce}
html[data-site-theme=dark] .pocket-cut-zone__arrow{color:#ff768f}

/* Character studio uses the same preference; model textures keep their colors. */
html[data-site-theme=dark] .fudaya-character{--bone:#f6efeb;--red:#ff4665;--muted:#baabb3;--paper:#08080a;--ivory:#151116;--line:#413039;--soft:#251b23;background:#08080a;color:var(--bone)}
html[data-site-theme=dark] .fudaya-character>header{background:#08080a;border-color:#33262c}
html[data-site-theme=dark] .fudaya-character .preview{background:radial-gradient(ellipse at 49% 28%,#21171e,#110c11 70%,#0b090c);border-color:#413039;box-shadow:0 18px 45px #0003,inset 0 1px #ffffff09}
html[data-site-theme=dark] .fudaya-character .stage:before{color:#c02a4930}
html[data-site-theme=dark] .fudaya-character :is(.live,.chip,.load.loaded,.panel,.body-option,.fit-tools #hairFitPanel,#appearanceDialog){background:#191319;border-color:#513943;color:#f6efeb;box-shadow:0 6px 22px #0003}
html[data-site-theme=dark] .fudaya-character .body-option.pending{background:#120f13}
html[data-site-theme=dark] .fudaya-character .stagefoot{background:#120f13;border-color:#413039}
html[data-site-theme=dark] .fudaya-character :is(.btn,.body-option button:not([data-hair-color])){background:linear-gradient(#292027,#1b141b);border-color:#65424e;color:#f3c4d0;box-shadow:0 3px 0 #080608,inset 0 1px #ffffff12}
html[data-site-theme=dark] .fudaya-character .body-option.pending button{background:none;border-color:transparent;box-shadow:none}
html[data-site-theme=dark] .fudaya-character :is(.body-option small,.body-option>span,.outline-control,.stageheader>span,.stagefoot small,.helper,footer,#hairFitPanel p,#hairFitPanel .fit-row){color:#bba5b0}
html[data-site-theme=dark] .fudaya-character .body-option.pending b{color:#a38b98}
html[data-site-theme=dark] .fudaya-character .btn[aria-pressed=true]{background:#3a1a28;border-color:#c44d71;color:#ffb7cc}
html[data-site-theme=dark] .fudaya-character #appearanceDialog input{background:#100c11;color:#f6efeb;border-color:#735261}
html[data-site-theme=dark] .fudaya-character footer{border-color:#33262c}
html[data-site-theme=dark] .fudaya-character footer a{color:#e19bb2}
html[data-site-theme=dark] .fudaya-character .character-lycoris{opacity:.9}
