/* Shared shopping controls. Each environment below supplies its own architecture. */
body.scene-designed .product-card{background:linear-gradient(145deg,#3a293b,#281c2c);border:1px solid #a9806266;border-radius:6px;padding:0 12px 13px;box-shadow:0 8px 18px #150b2133;overflow:visible}
body.scene-designed .product-card:hover{transform:none;border-color:#e2b47b;box-shadow:0 6px 20px #efac4025}
body.scene-designed .castle-crown{position:relative;aspect-ratio:auto;height:39px;min-height:39px;margin:0 -5px;padding:0;background:none;overflow:visible}
body.scene-designed .castle-crown .badge{top:50%;bottom:auto;transform:translateY(-50%);left:5px;right:38px;font-size:7px;color:#d6af87;letter-spacing:.65px}
body.scene-designed .castle-crown .favorite{top:-2px;bottom:auto;right:-6px;width:44px;height:44px;border-radius:50%;color:#eccfa8}
body.scene-designed .product-picture{margin:0;box-shadow:0 0 0 1px #b48b63,0 0 0 4px #1b1421,0 2px 7px 5px #170e2299;background:#fff}
body.scene-designed .product-picture img{border-radius:0;object-fit:contain}
body.scene-designed .products>.product-card .product-copy small{margin-top:14px;font-size:8px;letter-spacing:1px}
body.scene-designed .products>.product-card .product-copy h3{font-size:14px}
body.scene-designed .products>.product-card .price-row{font-size:20px;min-height:28px}
body.scene-designed .products>.product-card .add{margin-top:11px}
body.scene-designed .product-card .add{box-shadow:inset 0 1px #ffe6b9,0 3px 0 #170e2429;border-radius:5px}
body.scene-designed .festival-chapter .section{max-width:1280px}

/* 1 — One castle storefront. The four products are its display windows. */
body.scene-designed .castle-department{background:radial-gradient(ellipse at 50% 30%,#57334855,transparent 65%),linear-gradient(#211729,#322032 72%,#211827);overflow:hidden}
body.scene-designed .market-arch,body.scene-designed .market-heading-art{display:none}
body.scene-designed .castle-department:before{opacity:.07}
body.scene-designed .castle-department>.section{padding-bottom:52px}
body.scene-designed .castle-department .section-heading{min-height:0;max-width:750px;position:relative;margin:0 auto 26px;text-align:center;display:block}
body.scene-designed .castle-department .section-heading h2{max-width:none;font-size:50px}
body.scene-designed .castle-department .section-heading p{max-width:590px;margin:0 auto}
body.scene-designed .castle-department .filters{justify-content:center;position:relative;margin-bottom:0;z-index:2}
.scene-building{position:relative;margin:0 -20px;isolation:isolate;padding-top:0}
.scene-rooftop{position:relative;width:100%;aspect-ratio:3;overflow:hidden;z-index:1;pointer-events:none}
.scene-rooftop:after{content:'';position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#302331)}
.scene-rooftop img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.scene-masonry{position:relative;margin:-42px 2.1% 0;padding:0 38px 34px;border-left:13px ridge #745446;border-right:13px ridge #745446;border-bottom:9px ridge #70503e;background:repeating-linear-gradient(0deg,transparent 0 37px,#c2a08a09 38px,#140e190d 40px),linear-gradient(90deg,#251b28,#493440 48%,#281d2b);box-shadow:0 15px 30px #10091566,inset 0 0 40px #110b19;z-index:2}
.scene-shop-sign{position:relative;max-width:370px;margin:0 auto 24px;padding:17px 25px;text-align:center;background:linear-gradient(130deg,#241928,#4b303c,#241928);border:1px solid #b1896599;box-shadow:0 0 0 4px #231927,0 0 0 5px #ad86623b,0 5px 20px #08070b66;color:#f8d3a0;z-index:3}
.scene-shop-sign span{display:block;font-family:Georgia,serif;font-size:18px;letter-spacing:3px}.scene-shop-sign small{display:block;font-size:7px;letter-spacing:2.5px;color:#cfa583;margin-top:8px}
body.scene-designed #home-products{margin:0;gap:20px}
body.scene-designed #home-products>.product-card{background:linear-gradient(#241d29,#322230);border:1px solid #8c6a5199;border-radius:3px;box-shadow:0 0 0 5px #211a25,0 0 0 6px #a47e5b55,9px 7px 18px #100c1966;padding:0 10px 13px;position:relative}
body.scene-designed #home-products>.product-card:after{display:block;content:'';position:absolute;bottom:-11px;left:-9px;right:-9px;height:9px;border-top:1px solid #d8ab7955;background:linear-gradient(#917050,#513b36);box-shadow:0 5px 7px #100917;pointer-events:none;border-radius:0}
body.scene-designed #home-products .castle-crown{height:48px;min-height:48px;background:radial-gradient(ellipse at center top,#dda86021,transparent 70%)}
body.scene-designed #home-products .castle-crown:before{content:'';position:absolute;left:8px;right:8px;top:5px;height:3px;border-top:1px solid #bb8d6299;border-bottom:1px solid #bb8d6233}
body.scene-designed #home-products .castle-crown .favorite{top:3px}
.scene-front-steps{position:relative;margin:0 1%;height:30px;perspective:100px}.scene-front-steps i{display:block;height:12px;background:linear-gradient(#6a514b,#392b34);border-top:1px solid #ba957044;box-shadow:0 5px 7px #160f1c}.scene-front-steps i+i{margin:0 -10px;height:15px;background:linear-gradient(#5b4542,#2f2530)}
.scene-corner-lantern{position:absolute;left:-25px;top:63px;width:23px;height:38px;border:3px solid #5b3f31;border-top:7px solid #806143;border-bottom:5px solid #806143;background:radial-gradient(#ffe7a2,#d07b2f);box-shadow:0 0 30px #ffa64066;pointer-events:none}.scene-corner-lantern:before{content:'';position:absolute;bottom:100%;left:6px;height:11px;width:5px;border:1px solid #a07950;border-radius:50%}.scene-corner-lantern i{display:block;width:2px;height:100%;margin:auto;background:#6c4934}

/* 2 — A candlelit library. Products sit on shared walnut shelves. */
body.scene-designed .festival-cozy{background:linear-gradient(#211925,#37262c);border-top:1px solid #a0715055}
body.scene-designed .festival-scene{position:relative;display:block;min-height:370px;background:#221a26;border:0;border-radius:5px;isolation:isolate;overflow:hidden}
body.scene-designed .festival-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
body.scene-designed .festival-scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#241927f2, #261a27a6 38%,#261a2700 70%),linear-gradient(0deg,#30212c,transparent 22%)}
body.scene-designed .festival-scene-copy{position:relative;padding:45px;max-width:590px}
body.scene-designed .festival-scene-copy p{max-width:420px}
.scene-library-shelf{padding:16px 28px 28px;background:repeating-linear-gradient(90deg,#70493109 0 2px,transparent 2px 6px),linear-gradient(#402b2d,#241b23);border:12px ridge #70513b;border-top:0;box-shadow:inset 0 0 35px #120e1977,0 12px 20px #150f1d44}
body.scene-designed .scene-library-shelf .products{margin-top:0;gap:22px}
body.scene-designed .scene-library-shelf .product-card{background:linear-gradient(#463132,#36262a);border-color:#c3926255;box-shadow:none;border-radius:3px;position:relative}
body.scene-designed .scene-library-shelf .product-card:after{display:block;position:absolute;content:'';height:13px;left:-12px;right:-12px;bottom:-16px;background:linear-gradient(#a07248,#50352b);border-top:1px solid #ceac7277;box-shadow:0 8px 10px #0f0a16;pointer-events:none}
body.scene-designed .scene-library-shelf .product-picture{box-shadow:0 0 0 2px #9e744c,0 0 0 5px #2a1f23}

/* 3 — Outdoor pumpkin market, with one canopy and one row of stalls. */
body.scene-designed .festival-pocket{background:#2b1d2b url('../memeii-halloween-2026/assets/scene-night-market.png') center top/100% auto no-repeat}
body.scene-designed .festival-pocket>.section{background:linear-gradient(#25182833,#2a1c2800 180px,#241a2699);padding-top:145px}
body.scene-designed .festival-pocket .festival-heading{background:linear-gradient(90deg,#241724bd,transparent);padding:20px 22px;margin:0 -22px 10px;border-radius:8px}
.scene-market-stall{margin-top:35px;padding:0 22px 26px;background:linear-gradient(#6a45313b,#34242a);border-left:10px ridge #76503c;border-right:10px ridge #76503c;border-bottom:13px ridge #79523b;position:relative}
.scene-awning{height:45px;margin:0 -36px;background:repeating-linear-gradient(90deg,#6b3543 0 8.33%,#b8784e 8.33% 16.66%);border-top:6px solid #9d6948;border-bottom:3px solid #38232b;border-radius:4px 4px 18px 18px;box-shadow:0 8px 12px #1b0f2266;transform:perspective(200px) rotateX(-9deg);transform-origin:top}
.scene-stall-plaque{width:max-content;max-width:90%;margin:20px auto 8px;padding:9px 20px;border:1px solid #ddb47766;background:#36252c;box-shadow:0 2px 9px #110b1688;font-family:Georgia,serif;font-size:13px;letter-spacing:2px;color:#f2cf97;text-align:center}
body.scene-designed .scene-market-stall .products{margin-top:0;gap:22px}
body.scene-designed .scene-market-stall .product-card{background:#402b30cc;border:1px solid #ca9e6866;border-radius:4px}
body.scene-designed .scene-market-stall .product-picture{box-shadow:0 0 0 2px #b88d61,0 3px 6px 4px #170f1d}

/* 4 — An oracle's table. The crystal ball replaces castle imagery entirely. */
body.scene-designed .festival-finder{background:radial-gradient(ellipse at 25% 35%,#694c7855,transparent 65%),#21172d}
body.scene-designed .festival-finder:before{display:none}
body.scene-designed .oracle-controls{background:radial-gradient(ellipse at 50% 20%,#8b63802b,transparent 60%),linear-gradient(135deg,#48344e,#2d2137);border-color:#b5977955;box-shadow:inset 0 0 0 7px #b2928110,0 10px 35px #150d2544}
.scene-crystal-ball{position:relative;width:135px;height:135px;margin:4px auto 38px;border-radius:50%;border:1px solid #e6d9bd77;background:radial-gradient(circle at 30% 22%,#fff5dcba 0,#e6d8eb30 9%,transparent 23%),radial-gradient(ellipse at 55% 60%,#dbaef166,#83699266 43%,#3b30486b 70%);box-shadow:inset -12px -15px 27px #23182eaa,inset 3px 2px 12px #fbe4ff44,0 0 40px #d3a9d31f;display:grid;place-items:center;color:#fbe1af}
.scene-crystal-ball span{font:65px Georgia;filter:drop-shadow(0 0 12px #ffd99466)}.scene-crystal-ball:before{content:'';position:absolute;width:80%;height:15px;bottom:-9px;left:10%;border-radius:50%;border:4px ridge #aa815b;background:#392a33;box-shadow:0 6px 0 #513c39}.scene-crystal-ball:after{content:'✦';position:absolute;right:21px;top:26px;font-size:13px;color:#e8d6f1}
body.scene-designed .oracle-results>.products{gap:20px;margin-top:14px}
body.scene-designed .oracle-results .product-card{border:1px solid #bd9bc266;background:linear-gradient(#47344d,#2f2238);box-shadow:0 0 0 4px #a885ba0c;border-radius:15px 15px 5px 5px}
body.scene-designed .oracle-results .product-picture{box-shadow:0 0 0 2px #aa8b9b,0 0 16px #b78acf25}

/* 5 — Midnight dressing room: velvet drapes and antique mirror frames. */
body.scene-designed .festival-wear{background:radial-gradient(ellipse at 50% 10%,#79545c33,transparent 60%),#291c2d}
.scene-dressing-room{margin-top:27px;padding:18px 35px 28px;border-top:2px solid #9c795455;border-bottom:3px solid #9c795455;position:relative;background:linear-gradient(90deg,#573345,#3d2637 5%,#2b202b 12%,#2b202b 88%,#3d2637 95%,#573345);box-shadow:inset 12px 0 20px #ab718318,inset -12px 0 20px #ab718318}
.scene-dressing-room:before,.scene-dressing-room:after{content:'';position:absolute;top:0;bottom:0;width:13px;background:repeating-linear-gradient(90deg,#81485d 0 3px,#4c293d 6px 9px,#5e3449 12px);pointer-events:none}.scene-dressing-room:before{left:0}.scene-dressing-room:after{right:0}
.scene-dressing-caption{display:flex;gap:16px;align-items:center;justify-content:center;color:#d9b797;font-size:9px;letter-spacing:2px;margin:8px 0 16px}.scene-dressing-caption i{font-size:22px;font-style:normal}
body.scene-designed .scene-dressing-room .products{margin-top:0}
body.scene-designed .scene-dressing-room .product-card{background:linear-gradient(#473442,#2e222e);border:2px ridge #b99a72;border-radius:16px 16px 5px 5px}
body.scene-designed .scene-dressing-room .product-picture{box-shadow:0 0 0 2px #b69876,0 0 0 5px #281c29,0 0 0 6px #9d805c66}

/* The club is a scrapbook table rather than another shop exterior. */
body.scene-designed .festival-ritual:before{display:none}
body.scene-designed .ritual-story{background:linear-gradient(125deg,#4d3338,#2b202c);border:1px solid #a6846655;border-radius:5px;box-shadow:inset 0 0 0 7px #caa8790a;gap:55px}
body.scene-designed .ritual-story-copy{border-left:1px solid #c1986966;padding-left:27px}
body.scene-designed .ritual-product>.product-card{background:#eddbc0;color:#4b3038;border:1px solid #d9b888;box-shadow:4px 6px 0 #120c1c55;transform:rotate(1deg);border-radius:3px}
body.scene-designed .ritual-product .product-copy h3,body.scene-designed .ritual-product .product-copy h3 a{color:#492b38}
body.scene-designed .ritual-product .price-row{color:#703e31}
body.scene-designed .ritual-product .product-copy small,body.scene-designed .ritual-product .price-row span{color:#8b6257}
body.scene-designed .ritual-product .castle-crown .badge{color:#79513d}
body.scene-designed .ritual-product .castle-crown .favorite{color:#704054}

@media(max-width:760px){
 body.scene-designed .products>.product-card .product-copy h3{font-size:13px}
 body.scene-designed .products>.product-card .price-row{font-size:18px}
 body.scene-designed .product-card{padding:0 8px 11px;border-radius:4px}
 body.scene-designed .castle-crown{height:36px;min-height:36px;margin:0 -3px;aspect-ratio:auto}
 body.scene-designed .castle-crown .badge{font-size:5.5px;left:2px;right:33px;letter-spacing:.25px}
 body.scene-designed .castle-crown .favorite{top:-4px;right:-8px}
 body.scene-designed .castle-department .section-heading h2{font-size:36px}
 body.scene-designed .castle-department .section-heading p{font-size:12px;max-width:300px}
 body.scene-designed .castle-department .filters{justify-content:flex-start}
 body.scene-designed .castle-department .section{padding-left:15px;padding-right:15px}
 .scene-building{margin:0 -11px}.scene-rooftop{aspect-ratio:2.2;margin-top:9px}.scene-rooftop img{object-fit:cover;object-position:center top}
 .scene-masonry{margin:-13px 1% 0;padding:0 13px 25px;border-left-width:6px;border-right-width:6px;border-bottom-width:6px}
 .scene-shop-sign{max-width:245px;padding:11px 9px;margin-bottom:21px}.scene-shop-sign span{font-size:12px;letter-spacing:1.2px}.scene-shop-sign small{font-size:5.5px;letter-spacing:1.5px;margin-top:6px}
 body.scene-designed #home-products{gap:29px 17px}
 body.scene-designed #home-products>.product-card{padding:0 7px 10px;box-shadow:0 0 0 3px #211a25,0 0 0 4px #a47e5b55,5px 4px 9px #100c1966}
 body.scene-designed #home-products .castle-crown{height:38px;min-height:38px}
 body.scene-designed #home-products .castle-crown .favorite{top:-2px}
 body.scene-designed #home-products .castle-crown:before{top:3px}
 .scene-corner-lantern{left:-13px;top:46px;width:17px;height:28px;border-width:2px;border-top-width:5px;border-bottom-width:4px}
 .scene-front-steps{margin:0 2%}
 body.scene-designed .festival-scene{min-height:410px;display:flex;align-items:end}
 body.scene-designed .festival-scene>img{object-position:69% center}
 body.scene-designed .festival-scene:after{background:linear-gradient(0deg,#2d202efc,#291c29bd 50%,#20182700 85%)}
 body.scene-designed .festival-scene-copy{padding:25px 24px 22px;max-width:none}
 body.scene-designed .festival-scene h2{font-size:34px}
 .scene-library-shelf{padding:12px 13px 29px;border-width:6px}
 body.scene-designed .scene-library-shelf .products{gap:30px 15px}
 body.scene-designed .scene-library-shelf .product-card{padding-left:7px;padding-right:7px}
 body.scene-designed .scene-library-shelf .product-card:after{left:-6px;right:-6px;height:10px;bottom:-13px}
 body.scene-designed .festival-pocket{background-size:auto 620px;background-position:center top}
 body.scene-designed .festival-pocket>.section{padding-top:130px}
 body.scene-designed .festival-pocket .festival-heading{padding:17px 14px;margin:0 -10px 10px;background:#261a25b3}
 .scene-market-stall{padding:0 10px 20px;border-left-width:6px;border-right-width:6px;border-bottom-width:9px;margin-top:25px}
 .scene-awning{height:31px;margin:0 -20px;border-top-width:4px;border-radius:3px 3px 11px 11px}
 .scene-stall-plaque{font-size:9px;letter-spacing:1px;padding:9px 10px;margin:15px auto 4px;max-width:100%}
 body.scene-designed .scene-market-stall .products{gap:19px 11px}
 body.scene-designed .scene-market-stall .product-card{padding-left:6px;padding-right:6px}
 body.scene-designed .festival-chapter>.section{padding-left:16px;padding-right:16px}
 .scene-crystal-ball{width:104px;height:104px;margin:0 auto 31px}.scene-crystal-ball span{font-size:51px}
 body.scene-designed .oracle-results>.products{gap:12px}
 .scene-dressing-room{padding:14px 14px 22px}.scene-dressing-room:before,.scene-dressing-room:after{width:6px}
 .scene-dressing-caption{font-size:6px;letter-spacing:.8px;gap:5px}.scene-dressing-caption i{font-size:17px}
 body.scene-designed .scene-dressing-room .products{gap:18px 11px}
 body.scene-designed .scene-dressing-room .product-card{padding-left:6px;padding-right:6px}
 body.scene-designed .ritual-story{gap:30px;padding:24px 18px}.ritual-story-copy{padding-left:15px!important}
}
@media(max-width:350px){body.scene-designed .products>.product-card .product-copy h3{font-size:11px}body.scene-designed .products>.product-card .price-row{font-size:16px}body.scene-designed .add{font-size:10px;padding-left:5px;padding-right:5px}body.scene-designed .castle-crown .badge{font-size:5px}.scene-shop-sign{max-width:215px}.scene-masonry{padding-left:10px;padding-right:10px}body.scene-designed #home-products{column-gap:14px}}
body.scene-designed #home-products>.product-card:after,body.scene-designed .scene-library-shelf .product-card:after{top:auto}
.scene-masonry{margin-top:-95px;padding-top:15px;border-left:8px solid #493139;border-right:8px solid #493139;background-color:#302331;box-shadow:0 15px 30px #10091566,inset 8px 0 15px #110b1988,inset -8px 0 15px #110b1988}
.scene-shop-sign{margin-bottom:27px}
body.scene-designed .scene-library-shelf .product-card:after{border-right:0;border-left:0;border-bottom:0;border-radius:0}
@media(max-width:760px){.scene-rooftop{aspect-ratio:3}.scene-rooftop img{object-fit:contain}.scene-masonry{margin-top:-12px;padding-top:7px;border-left-width:5px;border-right-width:5px}.scene-shop-sign{margin-bottom:24px}}
.scene-awning{background:linear-gradient(0deg,#271a2477,transparent 50%),repeating-linear-gradient(90deg,#673143 0%,#843d51 3%,#572839 7%,#432332 8.33%);border-top-color:#4a2a31;border-bottom-color:#bb89566e;box-shadow:inset 0 2px #aa6b6655,0 8px 12px #1b0f2266}
.scene-corner-lantern{animation:sceneLanternGlow 5s ease-in-out infinite alternate}.scene-crystal-ball span{animation:sceneOrbFloat 7s ease-in-out infinite alternate}
@keyframes sceneLanternGlow{from{box-shadow:0 0 20px #ffa64044}to{box-shadow:0 0 37px #ffa64088}}
@keyframes sceneOrbFloat{from{transform:translateY(-3px)}to{transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.scene-corner-lantern,.scene-crystal-ball span{animation:none}}
.scene-masonry{background-image:linear-gradient(#30233155,#21172566),url('../memeii-halloween-2026/assets/scene-stone-wall.png');background-size:auto,650px auto;background-position:center,center top}
.castle-department{scroll-margin-top:90px}
