/* Entirely opt-in. Static paint + a small, bounded set of transform/opacity animations. */
body.mgcr-halloween{--mgcr-hw-orange:#ffa451;--mgcr-hw-violet:#b89be7}
html body.mgcr-halloween.mgcr-color-dark{--mgcr-page-bg:#0b080f;--mgcr-surface:#131019;--mgcr-surface-2:#1d1625;--mgcr-border:#3b293e;--mgcr-text:#f8f2ec;--mgcr-muted:#bdb0c6;--mgcr-accent:#ffa451;--mgcr-accent-contrast:#21100b}
html body.mgcr-halloween.mgcr-color-light{--mgcr-page-bg:#fff9f1;--mgcr-surface:#fffaf4;--mgcr-surface-2:#f4e9f3;--mgcr-border:#d9bfd0;--mgcr-text:#2b1636;--mgcr-muted:#725d7b;--mgcr-accent:#9f3e0e;--mgcr-accent-contrast:#fff}
html body.mgcr-halloween :is(.body-wrap,.site-content){background-image:radial-gradient(ellipse at 0 80px,#9a45151f,transparent 480px),radial-gradient(ellipse at 100% 130px,#8041b025,transparent 510px);background-repeat:no-repeat;background-size:100% 620px}
html body.mgcr-halloween .mgcr-modern-header{--mgcr-header-accent:#ffa451!important;border-bottom-color:#98592f!important;box-shadow:0 1px 0 #e18f4933,0 8px 28px #351b4520}
html body.mgcr-halloween :is(.mgcr-modern-header__search>button,.mgcr-modern-header__register){color:#21100b!important}
html body.mgcr-halloween.mgcr-color-light .mgcr-modern-header__mobile-toggle span{background:#3c2147!important}
html body.mgcr-halloween:not(.mgcr-color-light) .mgcr-modern-archive :is(.mgcr-modern-archive__submit,.mgcr-modern-archive__view .is-active){background:#ffa451!important;color:#21100b!important}
html body.mgcr-halloween.mgcr-color-light .mgcr-modern-archive :is(.mgcr-modern-archive__submit,.mgcr-modern-archive__view .is-active){background:#9f3e0e!important;color:#fff!important}
html body.mgcr-halloween :is(#mgcr-latest-chapters,.mgcr-modern-manga){--mgcr-latest-card-accent:#f09945!important;--mgcr-series-accent:#ffa451!important}
html body.mgcr-halloween :is(.mgcr-latest-card,.mgcr-library-card,.mgcr-modern-manga__aside,.mgcr-modern-manga__summary .description-summary){border-color:#b56b3680!important;box-shadow:0 0 0 1px #ed96500b,0 8px 22px #140b1e3b!important}
html body.mgcr-halloween :is(.mgcr-latest-card,.mgcr-archive-card__cover):hover{border-color:#ffb869!important;box-shadow:0 0 0 1px #ffb86966,0 12px 28px #8d4c282b!important}
html body.mgcr-halloween :is(.mgcr-latest-chapters__heading,.mgcr-modern-manga__chapters-title,.mgcr-modern-footer){border-color:#a7643d66!important}
html body.mgcr-halloween .mgcr-modern-archive{--mgcr-archive-accent:#ffa451;--mgcr-archive-bg:#0b080f;--mgcr-archive-panel:#17101ee8;--mgcr-archive-surface:#151019f0;--mgcr-archive-border:#9a644b55}
html body.mgcr-halloween .mgcr-modern-archive__backdrop{background:radial-gradient(ellipse at 5% 0,#6b362840,transparent 48%),radial-gradient(ellipse at 100% 10%,#643e7140,transparent 55%),#0b080f;background-attachment:scroll}
html body.mgcr-halloween .mgcr-modern-archive :is(.mgcr-modern-archive__control-panel,.mgcr-modern-archive__results,.mgcr-modern-archive__aside>section){backdrop-filter:none}
html body.mgcr-halloween.mgcr-color-light .mgcr-modern-archive{--mgcr-archive-accent:#9f3e0e;--mgcr-archive-bg:#fff9f1;--mgcr-archive-panel:#fffaf4;--mgcr-archive-surface:#f4e9f3;--mgcr-archive-text:#2b1636;--mgcr-archive-muted:#725d7b}
html body.mgcr-halloween.mgcr-color-light .mgcr-modern-archive__backdrop{background:radial-gradient(ellipse at 10% 0,#f3cba840,transparent 55%),#fff9f1}
/* Community: static corner art, no per-message animation or cosmetic pseudo collisions. */
body.mgcr-halloween{--mgcr-hw-community-accent:#ffa451;--mgcr-hw-community-ink:#21100b;--mgcr-hw-community-line:#a1694680;--mgcr-hw-community-web:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23b89be7' stroke-opacity='.26' stroke-width='.8'%3E%3Cpath d='M72 0H0M72 0L8 24M72 0L24 48M72 0L48 65M72 0V72'/%3E%3Cpath d='M52 0Q53 7 54 7Q54 14 59 14Q63 16 65 19Q68 19 72 20M32 0Q34 13 36 14Q37 27 45 28Q54 33 58 38Q65 37 72 40M12 0Q15 20 18 21Q20 40 31 41Q44 49 51 57Q61 56 72 60'/%3E%3C/g%3E%3C/svg%3E")}
body.mgcr-halloween.mgcr-color-light{--mgcr-hw-community-accent:#9f3e0e;--mgcr-hw-community-ink:#fff;--mgcr-hw-community-line:#a1694666}
html body.mgcr-halloween :is(.mgcr-leaderboard-widget,.mgcr-leaderboard-board,.mgcr-live-chat){border-color:var(--mgcr-hw-community-line)!important;background-image:var(--mgcr-hw-community-web),radial-gradient(ellipse at 0 0,#c9793410,transparent 65%);background-position:top right,top left;background-size:66px 66px,100% 160px;background-repeat:no-repeat;box-shadow:0 0 0 1px #ba815510,0 8px 24px #3b214c20!important}
html body.mgcr-halloween .mgcr-leaderboard-widget{background-color:var(--mgcr-surface,#131019)!important}
html body.mgcr-halloween .mgcr-leaderboard-page{background-color:var(--mgcr-page-bg,#0b080f)!important}
html body.mgcr-halloween :is(.mgcr-leaderboard-shell,.mgcr-leaderboard-widget){--mgcr-rank-line:#744e764d;--mgcr-leaderboard-active:var(--mgcr-hw-community-accent);--mgcr-rank-red:var(--mgcr-hw-community-accent)}
html body.mgcr-halloween :is(.mgcr-leaderboard-kicker,.mgcr-leaderboard-widget header>div>span,.mgcr-leaderboard-board__head span){color:var(--mgcr-hw-community-accent)!important}
html body.mgcr-halloween :is(.mgcr-leaderboard-widget__tabs button[aria-selected="true"],.mgcr-leaderboard-tabs a.is-active){border-color:var(--mgcr-hw-community-accent)!important;background:var(--mgcr-hw-community-accent)!important;color:var(--mgcr-hw-community-ink)!important;box-shadow:none!important}
html body.mgcr-halloween :is(.mgcr-leaderboard-widget>header>a,.mgcr-chat-head,.mgcr-chat-form){border-color:var(--mgcr-hw-community-line)!important}
html body.mgcr-halloween .mgcr-leaderboard-row.is-standard{border-color:#86659f66}
html body.mgcr-halloween .mgcr-chat-messages{scrollbar-color:#9c739c var(--mgcr-surface-2,#1d1625)}
html body.mgcr-halloween .mgcr-chat-message:where(.mgcr-chat-frame-none,:not([class*="mgcr-chat-frame-"])){border-color:#9671aa38!important}
html body.mgcr-halloween .mgcr-chat-message:where(.mgcr-chat-frame-none,:not([class*="mgcr-chat-frame-"])):hover{border-color:var(--mgcr-hw-community-line)!important}
html body.mgcr-halloween :is(.mgcr-chat-composer,.mgcr-chat-reply-quote){border-color:#9a70854d!important}
html body.mgcr-halloween .mgcr-chat-submit{color:var(--mgcr-hw-community-accent)!important}
html body.mgcr-halloween .mgcr-chat-composer textarea:focus-visible{outline:2px solid var(--mgcr-hw-community-accent)!important;outline-offset:2px}
html body.mgcr-halloween.mgcr-color-light :is(.mgcr-leaderboard-widget h2,.mgcr-leaderboard-board__head h2,.mgcr-leaderboard-user strong,.mgcr-leaderboard-score b,.mgcr-leaderboard-widget>header>a){color:var(--mgcr-text,#2b1636)!important}
@media(max-width:620px){html body.mgcr-halloween :is(.mgcr-leaderboard-widget,.mgcr-leaderboard-board,.mgcr-live-chat){background-size:42px 42px,100% 120px}}
/* Out-of-flow, clipped and inert. No header/card/image dimensions are changed. */
.mgcr-halloween-scene{position:absolute;top:0;left:0;width:100%;height:530px;z-index:5;overflow:hidden;overflow:clip;contain:layout paint;pointer-events:none!important;user-select:none}
.mgcr-halloween-scene *{pointer-events:none!important;box-sizing:border-box}
.mgcr-hw-defs{position:absolute;width:0;height:0;overflow:hidden}
.mgcr-hw-haze{position:absolute;inset:0;background:radial-gradient(ellipse at 0 240px,#ef853817,transparent 24%),radial-gradient(ellipse at 100% 110px,#a16fd91a,transparent 28%)}
.mgcr-hw-web{position:absolute;top:0;width:116px;height:116px;color:#cfb6dd;opacity:.28}
.mgcr-hw-web--left{left:0}.mgcr-hw-web--right{right:0;transform:scaleX(-1)}
.mgcr-hw-moon{position:absolute;right:24px;top:119px;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle at 34% 30%,#ffedc2,#dcae83 70%);box-shadow:0 0 0 9px #e6b38707,0 0 0 22px #b589ad05;opacity:.6}
.mgcr-hw-moon span{position:absolute;left:17%;top:32%;width:17px;height:17px;border-radius:50%;background:#916d8840;box-shadow:27px 12px 0 -3px #916d8830,14px -16px 0 -5px #916d8840}
.mgcr-hw-bat{position:absolute;color:#aa88bd;width:44px;height:24px;opacity:.62;animation:mgcr-hw-flight 9s ease-in-out infinite}
.mgcr-hw-bat--one{top:134px;right:78px;--mgcr-hw-dx:-26px;--mgcr-hw-dy:13px}
.mgcr-hw-bat--two{top:194px;left:14px;width:33px;--mgcr-hw-dx:21px;--mgcr-hw-dy:-12px;animation-delay:-4s;animation-duration:12s}
.mgcr-hw-bat--three{top:99px;right:173px;width:24px;--mgcr-hw-dx:-17px;--mgcr-hw-dy:9px;animation-delay:-7s;animation-duration:11s}
.mgcr-hw-spider{position:absolute;right:20px;top:0;width:24px;height:106px;color:#b18aca;transform-origin:top;animation:mgcr-hw-sway 11s ease-in-out infinite}
.mgcr-hw-spider i{display:block;width:1px;height:80px;margin:auto;background:#bba3ce70}.mgcr-hw-spider svg{display:block;width:24px;height:29px}
.mgcr-hw-lantern{position:absolute;left:0;top:284px;width:92px;height:92px;transform:rotate(-12deg);opacity:.88}
.mgcr-hw-lantern--right{left:auto;right:-9px;top:390px;width:70px;height:70px;transform:rotate(15deg);opacity:.68}
.mgcr-hw-flame{animation:mgcr-hw-ember 5s ease-in-out infinite}
.mgcr-hw-ghost{position:absolute;left:14px;top:422px;width:35px;height:47px;opacity:.3;animation:mgcr-hw-float 8s ease-in-out infinite}
body.mgcr-halloween.mgcr-color-light .mgcr-hw-web{color:#6c3b7d;opacity:.3}
body.mgcr-halloween.mgcr-color-light .mgcr-hw-bat{color:#542467;opacity:.65}
body.mgcr-halloween.mgcr-color-light .mgcr-hw-ghost{opacity:.65}
@keyframes mgcr-hw-flight{0%,100%{transform:translate3d(0,0,0) rotate(-7deg)}50%{transform:translate3d(var(--mgcr-hw-dx),var(--mgcr-hw-dy),0) rotate(6deg)}}
@keyframes mgcr-hw-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes mgcr-hw-float{0%,100%{transform:translate3d(0,0,0) rotate(-7deg)}50%{transform:translate3d(4px,-12px,0) rotate(6deg)}}
@keyframes mgcr-hw-ember{0%,100%{opacity:.7}50%{opacity:1}}
body.mgcr-halloween-resting .mgcr-halloween-scene *{animation-play-state:paused!important}
body:is(.mgcr-halloween-static,.mgcr-halloween-quiet) .mgcr-halloween-scene *{animation:none!important}
@media(max-width:1100px){.mgcr-hw-lantern{width:54px;height:54px;left:-12px;opacity:.65}.mgcr-hw-lantern--right{left:auto;right:-12px}.mgcr-hw-moon{width:46px;height:46px;right:10px;opacity:.38}.mgcr-hw-web{width:80px;height:80px}}
@media(max-width:620px){.mgcr-halloween-scene{height:310px}.mgcr-hw-web{width:48px;height:48px;opacity:.2}.mgcr-hw-spider{right:7px;top:-28px;transform:scale(.7);animation:none}.mgcr-hw-moon,.mgcr-hw-bat--three,.mgcr-hw-bat--two,.mgcr-hw-ghost,.mgcr-hw-lantern--right{display:none}.mgcr-hw-lantern--left{left:-9px;top:178px;width:39px;height:39px;opacity:.5}.mgcr-hw-bat--one{top:128px;right:8px;width:26px;opacity:.35;--mgcr-hw-dx:-8px;--mgcr-hw-dy:6px}.mgcr-hw-haze{opacity:.5}}
@media(prefers-reduced-motion:reduce),(update:slow){.mgcr-halloween-scene *{animation:none!important}}
@media print{.mgcr-halloween-scene{display:none!important}}
