/* All atmosphere is scoped. Card geometry follows the card's own season. */
body[data-season=halloween2026]{--bg:#08050e;--panel:#140b20;--text:#f5eaf7;--muted:#bfaccb;--gold:#d6ac76;--purple:#b876f5;--chronicle-muted:#bfaccb;background:radial-gradient(ellipse at 78% 10%,#55227755,transparent 45%),linear-gradient(#08050ee8,#08050ef2),url('/assets/halloween-background.png') center/cover fixed;color:var(--text)}
body[data-season=halloween2026]::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 15% 75%,#9b54d32b,transparent 45%),radial-gradient(ellipse at 85% 35%,#743fa92b,transparent 40%);animation:arcane-fog 22s ease-in-out infinite alternate}
body[data-season=halloween2026] header{background:linear-gradient(100deg,#08050ff0,#20102be8,#08050ff0);border-bottom:1px solid #a76b494d;box-shadow:0 8px 40px #0007}
body[data-season=halloween2026] :is(h1,h2,h3){color:#f1d9b7;text-shadow:0 2px 18px #8d48b63d}
body[data-season=halloween2026] :is(.account,.collection-season,.achievement,.forge-wallet,.forge-item,.trade-compose,.trade-offer,.trade-list,.rules,.season-note,dialog){position:relative;background:radial-gradient(ellipse at top right,#6b338329,transparent 60%),linear-gradient(145deg,#1b1026f5,#0c0814fa);border:1px solid #99613f88;border-radius:18px 4px 18px 4px;box-shadow:inset 0 0 0 4px #09050f,inset 0 0 0 5px #b78a5833,0 12px 35px #0006}
body[data-season=halloween2026] :is(.account,.collection-season,.trade-compose,.trade-list,.rules,.season-note)::after{content:'✧  ☾  ✧';position:absolute;right:20px;top:7px;color:#c7976666;font-size:11px;letter-spacing:8px;pointer-events:none}
body[data-season=halloween2026] :is(.rules,.season-note){padding:22px}
body[data-season=halloween2026] button:not(.card-button):not(#close-detail),body[data-season=halloween2026] a.primary{border-color:#ae704b;background:linear-gradient(145deg,#37203e,#180d25 60%,#261321);color:#eed7b6;box-shadow:inset 0 0 0 2px #0b0610,inset 0 0 0 3px #b77b4933,0 4px 14px #0008;border-radius:14px 3px 14px 3px;transition:box-shadow .2s,border-color .2s,transform .15s}
body[data-season=halloween2026] :is(button.primary,a.primary,.filters button.active,.nav.active){background:linear-gradient(135deg,#54236c,#291135 58%,#4b2522);border-color:#c18a56;color:#ffe0aa}
body[data-season=halloween2026] button:not(.card-button):not(:disabled):hover,body[data-season=halloween2026] a.primary:hover{border-color:#e5ac70;box-shadow:inset 0 0 0 2px #0b0610,0 0 22px #a85cea55,0 5px 18px #0008}
body[data-season=halloween2026] button:not(.card-button):not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 3px 12px #0009,0 0 12px #bc65f455}
body[data-season=halloween2026] :is(select,input:not([type=checkbox]),textarea){border-color:#9c654c;background-color:#110a19;color:#f5eaf7;box-shadow:inset 0 0 12px #0009,0 0 0 3px #75438413}
body[data-season=halloween2026] :is(.badge,.trade-status,#notice:not(:empty)){background:#29152e;color:#efd3a8;border-color:#996443}
body[data-season=halloween2026] .orbit{border-color:#b57a5d55;background:radial-gradient(circle,#7135aa40,transparent 68%);box-shadow:0 0 75px #7a2cac25}
body[data-season=halloween2026] .orbit::after{border-color:#ba865c44}
body[data-season=halloween2026] .pack-scene::before{content:'✦';position:absolute;left:8%;top:22%;color:#b673e9;text-shadow:0 0 14px #be74f9;animation:arcane-spark 6s ease-in-out infinite;pointer-events:none}
body[data-season=halloween2026] .pack-scene::after{content:'';position:absolute;right:3%;top:14%;font-size:22px;opacity:.35;animation:arcane-bat 18s ease-in-out infinite;pointer-events:none}
body[data-season=halloween2026] .intro::after{content:'';display:block;margin-top:24px;color:#ad774e;letter-spacing:16px;opacity:.6;pointer-events:none}
body[data-season=halloween2026] .collection-season::before{content:'';position:absolute;right:0;top:0;width:64px;height:64px;pointer-events:none;background:repeating-conic-gradient(from 0deg at 100% 0%,transparent 0 14deg,#aa83bd33 15deg 16deg,transparent 17deg 30deg);mask-image:radial-gradient(circle at top right,black,transparent 72%)}
body[data-season=halloween2026] .season-selector{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:18px 0 28px}
body[data-season=halloween2026] .season-selector select{max-width:100%;width:min(100%,360px)}
/* The front and back share the PNG's 5:7 viewport; no cropped frame. */
#grid [data-card-type=halloween2026] .art,#draws .reveal-slot[data-card-type=halloween2026],#draws .reveal-slot[data-card-type=halloween2026] .art{aspect-ratio:5/7;border:0;border-radius:0;background-color:transparent}
#grid [data-card-type=halloween2026] .art img,#draws .reveal-slot[data-card-type=halloween2026] img{display:block;width:100%;height:100%;object-fit:contain}
#grid [data-card-type=halloween2026] .back,#draws .reveal-slot[data-booster-type=halloween2026] .back,body[data-season=halloween2026] .pack-fan>div{background:transparent url('/assets/halloween-card-back.png') center/contain no-repeat;outline:0}
#draws .reveal-slot[data-card-type=halloween2026] .reveal-turn,#draws .reveal-slot[data-card-type=halloween2026] .reveal-front{border-radius:0}
/* A card opened from the forge still retains its own season's detail geometry. */
#detail[data-card-type=halloween2026]{width:min(94vw,1000px);max-width:1000px;padding:26px;overflow:auto;border:1px solid #bf8352;background:radial-gradient(ellipse at 30% 40%,#612b8240,transparent 65%),linear-gradient(135deg,#190d24,#08050e);box-shadow:inset 0 0 0 5px #08050e,inset 0 0 0 6px #9c6b453f,0 0 55px #7137a64d,0 24px 80px #000d}
#detail[data-card-type=halloween2026] #detail-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr);gap:30px;align-items:center}
#detail[data-card-type=halloween2026] #detail-content .art{width:min(100%,calc(76dvh * 5 / 7));max-height:none;aspect-ratio:5/7;margin:auto;border:0;border-radius:0;background:transparent}
#detail[data-card-type=halloween2026] #detail-content img{max-height:none;width:100%;height:100%;object-fit:contain}
#detail[data-card-type=halloween2026] .card-meta{padding:30px 8px;border-block:1px solid #98634277}
#detail[data-card-type=halloween2026] h3{font-size:clamp(24px,3vw,36px);color:#f0d4af;line-height:1.25}
#detail[data-card-type=halloween2026] .card-meta small{font-size:13px}#detail[data-card-type=halloween2026] .card-meta p{font-size:17px;color:#eadbed}
#detail[data-card-type=halloween2026] #close-detail{position:relative;top:auto;right:auto;margin:0 0 16px auto;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;line-height:1;font-family:Arial,sans-serif;font-size:28px;background:#25122f;border:1px solid #ba8155;border-radius:50%;color:#f5dcba}
@keyframes arcane-fog{to{transform:translate3d(3%,2%,0);opacity:.6}}@keyframes arcane-spark{50%{opacity:.25;transform:translateY(-12px)}}@keyframes arcane-bat{50%{transform:translate(-30px,12px) rotate(-8deg);opacity:.1}}
@media(max-width:600px){body[data-season=halloween2026]{background-attachment:scroll}body[data-season=halloween2026]::before{animation:none}#draws .reveal-slot[data-card-type=halloween2026]{width:min(100%,calc(53svh * 5 / 7));min-width:0}#detail[data-card-type=halloween2026]{padding:16px;width:96vw}#detail[data-card-type=halloween2026] #detail-content{display:flex;flex-direction:column;gap:14px}#detail[data-card-type=halloween2026] #detail-content .art{width:min(100%,calc(62dvh * 5 / 7))}#detail[data-card-type=halloween2026] .card-meta{width:100%;padding:12px 4px}#detail[data-card-type=halloween2026] h3{font-size:24px;margin:8px 0}#detail[data-card-type=halloween2026] .card-meta p{margin:8px 0}body[data-season=halloween2026] .season-selector{gap:10px;margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){body[data-season=halloween2026]::before,body[data-season=halloween2026] .pack-scene::before,body[data-season=halloween2026] .pack-scene::after{animation:none}body[data-season=halloween2026] button{transition:none}}

/* Follow-up: real 24px dropdown-to-panel gap in both seasons. */
#collection > .season-selector{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:18px 0 24px;padding:0}
#collection > .season-selector select{display:block;margin:0;max-width:100%}
#collection > .collection-season{margin-top:0}
/* Decorative layers never receive input and disappear completely in Season 0. */
.haunted-atmosphere,.arcane-altar{display:none;pointer-events:none;user-select:none}
body[data-season=halloween2026]{background:radial-gradient(ellipse at 70% 10%,#30164066,transparent 50%),linear-gradient(#030207ed,#07040cee),url('/assets/halloween-background.png') center/cover fixed}
body[data-season=halloween2026] .haunted-atmosphere{display:block;position:fixed;inset:0;overflow:hidden;z-index:0;contain:strict}
body[data-season=halloween2026] .haunted-mist{position:absolute;inset:50% -12% -15%;background:radial-gradient(ellipse at 25% 80%,#927cab22,transparent 45%),radial-gradient(ellipse at 75% 50%,#704b8827,transparent 48%);animation:haunted-drift 28s ease-in-out infinite alternate}
body[data-season=halloween2026] .ghost-light{position:absolute;width:7px;height:7px;border-radius:50%;background:#d7baff;box-shadow:0 0 9px 3px #aa73df77,0 0 35px 12px #8f56cc33;animation:ghost-wander 13s ease-in-out infinite alternate}
.ghost-one{left:5%;top:34%}.ghost-two{right:5%;top:72%;animation-delay:-7s!important}
body[data-season=halloween2026] .arcane-runes{position:absolute;right:2%;top:48%;writing-mode:vertical-rl;font-size:24px;letter-spacing:20px;color:#b18ac34d;text-shadow:0 0 12px #a769df;animation:arcane-spark 9s ease-in-out infinite}
body[data-season=halloween2026] .haunted-bat{position:absolute;left:7%;top:19%;width:58px;fill:#07040d;opacity:.7;animation:bat-passage 32s ease-in-out infinite}
body[data-season=halloween2026] .arcane-altar{display:flex;align-items:center;justify-content:space-between;width:min(100%,380px);height:142px;margin:20px 0 0;border-bottom:1px solid #82543655;background:radial-gradient(ellipse at 50% 100%,#8442a928,transparent 70%)}
.arcane-candelabrum{width:136px;height:136px;overflow:visible;flex-shrink:0}.altar-sigil{font-size:30px;color:#af7fb5;line-height:1.3;text-align:center;text-shadow:0 0 20px #945ad3}
body[data-season=halloween2026] .candle-flame{animation:candle-flicker 1.7s ease-in-out infinite alternate;filter:drop-shadow(0 0 5px #ffad43)}
body[data-season=halloween2026] .candle-light{animation:candle-glow 2.3s ease-in-out infinite alternate}
body[data-season=halloween2026] .intro::after{display:none}
body[data-season=halloween2026] .intro h1{color:#dfc3a1;text-shadow:0 3px 4px #000,0 0 30px #9f51d252;letter-spacing:.025em}
body[data-season=halloween2026] .intro h1 em{color:#c69ee3;text-shadow:0 0 24px #a663cc77}
body[data-season=halloween2026] .eyebrow{color:#c58c63;letter-spacing:.2em}
body[data-season=halloween2026] :is(.account,.collection-season,.achievement,.forge-wallet,.forge-item,.trade-compose,.trade-offer,.trade-list,.rules,.season-note,dialog){background:radial-gradient(ellipse at top,#42214b25,transparent 70%),linear-gradient(135deg,#100a16f5,#07050cfb);border-color:#a3714f;box-shadow:inset 0 0 0 4px #06040a,inset 0 0 0 5px #9c693b44,0 15px 35px #0009}
body[data-season=halloween2026] button:not(.card-button):not(#close-detail),body[data-season=halloween2026] a.primary{background:linear-gradient(135deg,#24132d,#08050e 55%,#251521);border-color:#b07c50;box-shadow:inset 0 0 0 2px #050309,inset 0 0 0 3px #ad744744,inset 0 1px 14px #a176431c,0 4px 14px #0009}
body[data-season=halloween2026] :is(button,a.primary):not(:disabled):is(:hover,:focus-visible){border-color:#d5a06d;box-shadow:inset 0 0 0 2px #08040e,inset 0 0 18px #73339a44,0 0 22px #aa65df66;outline-color:#c895ee}
body[data-season=halloween2026] .orbit{background:radial-gradient(circle,#9a56cc30,transparent 67%);border:1px dashed #bf8a6255;box-shadow:0 0 80px #8d3bcc35,inset 0 0 40px #73359326;animation:booster-breath 7s ease-in-out infinite alternate}
body[data-season=halloween2026] .orbit::after{border:1px solid #c18c6155;box-shadow:0 0 20px #9b68bd22}
body[data-season=halloween2026] .pack-scene::before{content:'⟡ · ✧ · ⟡';font-size:23px;letter-spacing:10px;left:6%;top:12%;opacity:.5}
body[data-season=halloween2026] .pack-scene::after{content:'ᚷ ᛟ ᛉ';font-size:19px;letter-spacing:12px;color:#caa2ed88;right:6%;top:78%;animation:arcane-spark 8s ease-in-out infinite;text-shadow:0 0 14px #945acb}
@keyframes candle-flicker{0%,100%{transform:scale(.92,1.03) rotate(-3deg);opacity:.9}22%{transform:scale(1.05,.87) rotate(4deg)}48%{transform:scale(.87,1.15) rotate(-5deg);opacity:1}74%{transform:scale(1.02,.95) rotate(2deg);opacity:.82}}
@keyframes candle-glow{to{opacity:.55;transform:translateY(2px)}}
@keyframes haunted-drift{to{transform:translate3d(7%,-5%,0);opacity:.65}}
@keyframes ghost-wander{to{transform:translate3d(18px,-50px,0);opacity:.3}}
@keyframes bat-passage{0%,75%,100%{transform:translate3d(0,0,0) rotate(-5deg);opacity:0}80%,92%{opacity:.55}95%{transform:translate3d(180px,-40px,0) rotate(8deg);opacity:0}}
@keyframes booster-breath{to{opacity:.75;transform:scale(1.025)}}
@media(max-width:600px){body[data-season=halloween2026]{background-attachment:scroll}body[data-season=halloween2026] .arcane-altar{width:100%;height:120px;margin-top:14px}.arcane-candelabrum{width:112px;height:112px}body[data-season=halloween2026] .haunted-bat,body[data-season=halloween2026] .ghost-two,body[data-season=halloween2026] .arcane-runes{display:none}body[data-season=halloween2026] .haunted-mist{animation-duration:40s}body[data-season=halloween2026] .orbit{animation:none;box-shadow:0 0 30px #8d3bcc30}body[data-season=halloween2026] :is(.account,.collection-season,.forge-wallet,.forge-item,.achievement,.trade-compose,.trade-offer,dialog){backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){body[data-season=halloween2026] :is(.haunted-atmosphere *,.arcane-altar *,.orbit,.pack-scene::before,.pack-scene::after){animation:none!important;transition:none!important}body[data-season=halloween2026] .haunted-bat{display:none}body[data-season=halloween2026] .candle-flame{filter:none}body[data-season=halloween2026] button{transition:none!important}}
/* Consolidated Halloween Special refinement; presentation only. */
body[data-season=halloween2026]{background:radial-gradient(ellipse at 70% 10%,#30164022,transparent 50%),linear-gradient(#030207b8,#07040cc0),url('/assets/halloween-background.png') center/cover fixed}
body[data-season=halloween2026] .intro{background:linear-gradient(100deg,#08050ed9,#08050e88);padding:22px;border-radius:18px 4px}
body[data-season=halloween2026] .section-head{background:linear-gradient(90deg,#08050ee8,transparent);padding:16px}
body[data-season=halloween2026] :is(button,a.primary,select):not(.card-button):not(#close-detail){position:relative;border:2px solid #b88258;border-radius:12px 3px 12px 3px;background-image:linear-gradient(135deg,#e3b27b 0 2px,transparent 3px),linear-gradient(315deg,#e3b27b 0 2px,transparent 3px),linear-gradient(135deg,#2d1739,#0b0711 55%,#251521);background-size:12px 12px,12px 12px,100% 100%;background-position:5px 5px,calc(100% - 5px) calc(100% - 5px),0 0;background-repeat:no-repeat;box-shadow:inset 0 0 0 2px #09050e,inset 0 0 0 3px #a16b4380,0 4px 14px #0009}
body[data-season=halloween2026] :is(.account,.collection-season,.achievement,.forge-wallet,.forge-item,.trade-compose,.trade-offer,.trade-list,.rules,.season-note,dialog){border:2px solid #bd895d;background-image:url('/assets/gothic-corners.svg'),radial-gradient(ellipse at top,#42214b25,transparent 70%),linear-gradient(135deg,#100a16f5,#07050cfb);background-size:100% 100%;background-repeat:no-repeat;box-shadow:inset 0 0 0 4px #06040a,inset 0 0 0 5px #be8a5b88,0 15px 35px #0009}
body[data-season=halloween2026] :is(button,a.primary):not(.card-button):not(:disabled):is(:hover,:focus-visible){border-color:#e2b486;box-shadow:inset 0 0 0 2px #08040e,inset 0 0 18px #73339a55,0 0 22px #aa65df88;outline-color:#c895ee}
body[data-season=halloween2026] #grid .card-button,body[data-season=halloween2026] #grid .card-button:is(:hover,:focus-visible,:active){border:0;outline:0;background:none;box-shadow:none;transform:none;filter:none}
body[data-season=halloween2026] #grid .card-button:is(:hover,:focus-visible) .art{transform:translateY(-4px) scale(1.015);box-shadow:0 8px 24px #0008,0 0 14px #aa65df44}
body[data-season=halloween2026] #grid .card-button:focus-visible .art{outline:2px solid #c895ee;outline-offset:3px}
body[data-season=halloween2026] .brand{position:relative;padding:14px 20px 22px;background:url('/assets/gothic-corners.svg') center/100% 100% no-repeat,radial-gradient(ellipse,#3e1e5080,#08050ef5);border:2px solid #c18b5b;border-radius:30px 30px 46% 46% / 16px 16px 24px 24px;box-shadow:inset 0 0 0 3px #08050e,inset 0 0 0 4px #c18b5b77,0 0 16px #8e47bd33;transition:box-shadow .2s}
body[data-season=halloween2026] .brand::after{content:'ᛉ  ◆  ᛉ';position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px;letter-spacing:8px;color:#d7a677;pointer-events:none}
body[data-season=halloween2026] .brand:is(:hover,:focus-visible){box-shadow:inset 0 0 0 3px #08050e,inset 0 0 0 4px #deb17b,0 0 24px #ac65df66}
/* Geometry follows the card season even when opened from another season's forge. */
#detail[data-card-type=season0]{width:min(94vw,1000px);max-width:1000px;padding:26px;overflow:auto;border:1px solid #d5b985;background:radial-gradient(ellipse at 30% 40%,#65458b40,transparent 65%),linear-gradient(135deg,#171a32,#0c1020);box-shadow:inset 0 0 0 5px #0c1020,inset 0 0 0 6px #d5b98555,0 0 55px #7956a64d,0 24px 80px #000d}
#detail[data-card-type=season0] #detail-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr);gap:30px;align-items:center}
#detail[data-card-type=season0] #detail-content .art{width:min(100%,calc(76dvh * 2 / 3));max-height:none;aspect-ratio:2/3;margin:auto}
#detail[data-card-type=season0] #detail-content img{max-height:none;width:100%;height:100%;object-fit:contain}
#detail[data-card-type=season0] .card-meta{padding:30px 8px;border-block:1px solid #d5b98577}
#detail[data-card-type=season0] h3{font-size:clamp(24px,3vw,36px);color:#ead7ad;line-height:1.25}
#detail[data-card-type=season0] .card-meta small{font-size:13px}#detail[data-card-type=season0] .card-meta p{font-size:17px;color:#dfd6ed}
#detail[data-card-type=season0] #close-detail{position:relative;top:auto;right:auto;margin:0 0 16px auto;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;line-height:1;font-family:Arial,sans-serif;font-size:28px;background:#201b34;border:1px solid #d5b985;border-radius:50%;color:#ead7ad}
@media(max-width:600px){body[data-season=halloween2026]{background-attachment:scroll}body[data-season=halloween2026] .brand{max-width:100%;padding:12px 16px 22px}#detail[data-card-type=season0]{padding:16px;width:96vw}#detail[data-card-type=season0] #detail-content{display:flex;flex-direction:column;gap:14px}#detail[data-card-type=season0] #detail-content .art{width:min(100%,calc(62dvh * 2 / 3))}#detail[data-card-type=season0] .card-meta{width:100%;padding:12px 4px}#detail[data-card-type=season0] h3{font-size:24px;margin:8px 0}}
@media(prefers-reduced-motion:reduce){body[data-season=halloween2026] #grid .card-button:is(:hover,:focus-visible) .art{transform:none}}


/* Targeted alignment: equal plaque padding and a centered image box. */
body[data-season=halloween2026] .brand{display:grid;place-items:center;padding:22px 20px;gap:0}
body[data-season=halloween2026] .brand img{object-position:center;justify-self:center;align-self:center}
body[data-season=halloween2026] .arcane-altar{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);justify-items:center;align-items:center;width:min(100%,380px);height:auto;min-height:142px;margin:24px auto 0;padding:8px 12px;gap:8px}
body[data-season=halloween2026] .arcane-candelabrum{width:100%;max-width:136px;height:auto;aspect-ratio:1}
body[data-season=halloween2026] .altar-sigil{width:44px;display:block;text-align:center}
@media(max-width:600px){body[data-season=halloween2026] .brand{padding:22px 16px}body[data-season=halloween2026] .arcane-altar{min-height:120px;margin:20px auto 0}body[data-season=halloween2026] .arcane-candelabrum{max-width:112px}}
