/* A seasonal illustrated poster; deliberately independent of the reading UI. */
#halloween-offer{--offer-plum:#60308b;--offer-deep:#45235e;--offer-cream:#fffaf3;color:var(--offer-deep);background:var(--offer-cream);width:min(400px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:2px solid #f4e7ff;border-radius:24px;overflow-x:hidden;overflow-y:auto;box-shadow:0 24px 100px #1e102a66;font-family:var(--sans,system-ui);scrollbar-width:thin}
#halloween-offer[open]{animation:offer-arrive .28s cubic-bezier(.2,.8,.2,1)}
#halloween-offer::backdrop{background:#171020ba;backdrop-filter:blur(4px)}
.halloween-offer-poster{position:relative;aspect-ratio:4/5;isolation:isolate;overflow:hidden;background:#f5e8fa}
.halloween-offer-art{display:block;width:100%;height:100%;object-fit:cover}
.halloween-offer-close{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0!important;background:#ffffffdc!important;border:1px solid #e1caee!important;border-radius:50%!important;color:#77518d!important;font:26px/1 system-ui!important;box-shadow:0 3px 12px #67446a15}
.halloween-offer-bottom{padding:13px 22px 18px;text-align:center;background:#fffaf3;border-top:1px solid #e9d7f1}
.halloween-offer-dates{margin:0 0 6px!important;font-size:13px!important;color:#754b8c!important;font-weight:800}
.halloween-offer-rule{font-size:12px!important;line-height:1.6!important;color:#8a728e!important;margin:0 0 12px!important}
#halloween-offer-cta{display:block;width:100%;min-height:46px;background:linear-gradient(180deg,#a06bd3,#7b45b1);border:1px solid #7e4baf;border-radius:14px;box-shadow:0 4px 0 #633193,0 7px 18px #975bb327;color:#fff;font-weight:800;font-size:16px;padding:10px 20px;transition:transform .15s,box-shadow .15s}
#halloween-offer-cta:hover{transform:translateY(-1px);box-shadow:0 5px 0 #633193,0 9px 20px #975bb337}
#halloween-offer-cta:active{transform:translateY(2px);box-shadow:0 1px 0 #633193}
.halloween-offer-hide{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#8b738e;margin:14px 0 0!important;cursor:pointer}
.halloween-offer-hide input{width:15px;height:15px;min-height:0;margin:0;accent-color:#8852b5}
#halloween-offer-open{position:fixed;z-index:10;bottom:24px;left:24px;background:#f3e7ff;border:1px solid #c8a3e6;border-radius:18px;padding:10px 16px;color:#67388b;font-size:13px;line-height:1.2;font-weight:800;box-shadow:0 4px 15px #20102620;min-height:44px}
#halloween-offer-open[hidden]{display:none}
body:has(dialog[open]) #halloween-offer-open{visibility:hidden}
.credit-promotion{background:#f5ecff;color:#68418a;padding:12px 16px;border:1px solid #dcc3ef;border-radius:12px;font-size:13px;margin:12px 0}
.credit-promotion strong{display:block;font-size:15px;margin-bottom:4px}
.credit-packages .package-halloween-bonus{display:block;color:#8e4cae;font-size:12px;margin-top:6px;font-weight:700}
[data-theme=dark] .credit-promotion{background:#33273d;color:#e5c6ff;border-color:#654a78}
[data-theme=dark] .credit-packages .package-halloween-bonus{color:#d7aceb}
@keyframes offer-arrive{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media(max-height:740px){#halloween-offer{width:min(350px,calc(100vw - 28px))}.halloween-offer-title{top:18px}.halloween-offer-brand{margin-bottom:7px!important}#halloween-offer-title{font-size:27px}#halloween-offer-title span{font-size:20px;margin-top:7px}#halloween-offer-title b{font-size:66px}.halloween-offer-bottom{padding:10px 18px 15px}}
@media(max-width:500px){#halloween-offer-open{left:14px;bottom:18px;font-size:11px;padding:9px 12px}#halloween-offer{border-radius:20px}.halloween-offer-rule{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){#halloween-offer[open]{animation:none}#halloween-offer-cta{transition:none}}

/* Text is baked into the generated poster; retain equivalent accessible copy. */
#halloween-offer .halloween-offer-accessible{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
