/* Wedding Halloween/Castanyada edition, scoped to the scheduled skin. */
[data-tolais-season="halloween-castanyada-2026"]{--season-ink:#49315e;--season-paper:#fffaf5;--season-lavender:#e9d9f2}
[data-tolais-season="halloween-castanyada-2026"] body{background:#e9d9f2;color:#49315e}
[data-tolais-season="halloween-castanyada-2026"] .clouds,
[data-tolais-season="halloween-castanyada-2026"] .game-background{background-image:url('/images/editions/halloween-castanyada/clouds-desktop.webp')!important}
[data-tolais-season="halloween-castanyada-2026"] .sky{background:url('/images/editions/halloween-castanyada/game-autumn-desktop-v3.webp') center/cover no-repeat}
[data-tolais-season="halloween-castanyada-2026"] .arena{background:transparent}
[data-tolais-season="halloween-castanyada-2026"] :is(.game-dialog.nuvol,.action-dialog,.countdown-card){
 --season-card:url('/images/editions/halloween-castanyada/card-wedding-autumn-v2.webp');--season-corner:82px;
 position:relative;isolation:isolate;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 padding:54px 44px calc(var(--season-corner) + 18px)!important;
}
[data-tolais-season="halloween-castanyada-2026"] :is(.game-dialog.nuvol,.action-dialog){position:fixed}
[data-tolais-season="halloween-castanyada-2026"] :is(.game-dialog.nuvol,.action-dialog,.countdown-card)::after{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;border:0 solid transparent;border-image:var(--season-card) 240 fill / var(--season-corner) stretch;
}
[data-tolais-season="halloween-castanyada-2026"] .game-dialog[data-season-card="final"]{--season-card:url('/images/editions/halloween-castanyada/card-final-autumn-v2.webp')}
[data-tolais-season="halloween-castanyada-2026"] .game-dialog[data-season-card="album"]{--season-card:url('/images/editions/halloween-castanyada/card-album-autumn-v2.webp')}
[data-tolais-season="halloween-castanyada-2026"] :is(.game-dialog.nuvol,.action-dialog)::before{display:none}
[data-tolais-season="halloween-castanyada-2026"] dialog::backdrop{background:#49315e55;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
[data-tolais-season="halloween-castanyada-2026"] .countdown-card{--season-corner:64px;padding:40px 38px 78px!important}
[data-tolais-season="halloween-castanyada-2026"] :is(.dialog-close,.halloween-close){top:32px;right:32px}
[data-tolais-season="halloween-castanyada-2026"] :is(.primary-button,.dialog-action:not(.secondary)){background:#82549b;color:#fff}
[data-tolais-season="halloween-castanyada-2026"] .invite-art img{object-fit:contain;border-radius:0}
[data-tolais-season="halloween-castanyada-2026"] .invite-art img[src*="tolaisfest-casament"]{content:url('/images/editions/halloween-castanyada/gift-autumn.webp')}
[data-tolais-season="halloween-castanyada-2026"] .game-dialog :is(h2,.dialog-intro){color:#49315e}
[data-tolais-season="halloween-castanyada-2026"] .game-dialog .eyebrow{color:#895728}
[data-tolais-season="halloween-castanyada-2026"] .score-card{background:#fffaf5eb}
[data-tolais-season="halloween-castanyada-2026"] .countdown-kicker{color:#49315e}
[data-tolais-season="halloween-castanyada-2026"] .game-announcement[data-kind="toast"]{color:#82549b}
[data-season-album-link]{display:inline-block;text-decoration:none}
[data-action="season-album"] img{object-fit:contain;width:28px;height:28px}
.halloween-album{--season-corner:82px;position:fixed;isolation:isolate;width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;border:0;border-radius:0;background:transparent;color:#49315e;padding:52px 42px 100px;text-align:center;font:13px/1.6 Manrope,system-ui,sans-serif}
.halloween-album::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:0 solid transparent;border-image:url('/images/editions/halloween-castanyada/card-album-autumn-v2.webp') 240 fill / var(--season-corner) stretch}
.halloween-album::backdrop{background:#49315e55}
.halloween-album h2{font-size:27px;line-height:1.15;letter-spacing:-.04em;margin:16px 0}.halloween-album h3{font-size:18px;margin:18px 0 10px}
.halloween-close{position:absolute;right:30px;top:27px;width:36px;height:36px;border:0;border-radius:50%;background:#efe0f4;color:#49315e;font-size:24px;cursor:pointer}
.halloween-eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#895728}
[data-season-list]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
.halloween-challenge{padding:25px 15px 30px;border:1px solid #e3cce4;border-radius:20px;background:#fffaf5}
.halloween-challenge img{width:75px;height:75px;object-fit:contain}.halloween-challenge h3{font-size:16px;line-height:1.25}
.halloween-challenge p{font-size:11px}.halloween-challenge progress{width:100%;accent-color:#82549b;height:10px}.halloween-challenge small{display:block;margin:8px 0;font-size:10px}
.halloween-reward{border-top:1px solid #e3cce4;padding-top:10px;color:#895728}
.halloween-costumes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.halloween-costumes figure{margin:0;font-size:10px}.halloween-costumes img{width:100%;height:115px;object-fit:contain;opacity:.4}.halloween-costumes .found img{opacity:1}
.halloween-fineprint{font-size:10px;color:#6e577e}
.halloween-return{display:block;width:100%;min-height:48px;margin-top:20px;border:0;border-radius:16px;color:white;background:#82549b;font:700 13px Manrope,system-ui,sans-serif;cursor:pointer}
.halloween-album button:focus-visible{outline:3px solid #a8216e;outline-offset:3px}
.tolais-touch img{animation:tolais-heart-tap .36s ease-out}
.tolais-tap-spark{position:fixed;width:13px;height:13px;object-fit:contain;pointer-events:none;z-index:90;animation:tolais-tap-spark .65s ease-out both}
@keyframes tolais-heart-tap{0%{transform:scale(1)}35%{transform:scale(1.12,.9)}70%{transform:scale(.96,1.06)}100%{transform:none}}
@keyframes tolais-tap-spark{to{transform:translate(var(--dx),var(--dy)) rotate(35deg);opacity:0}}
@media(max-width:600px){
 [data-tolais-season="halloween-castanyada-2026"] .clouds,[data-tolais-season="halloween-castanyada-2026"] .game-background{background-image:url('/images/editions/halloween-castanyada/clouds-mobile.webp')!important}
 [data-tolais-season="halloween-castanyada-2026"] .sky{background-image:url('/images/editions/halloween-castanyada/game-autumn-mobile-v3.webp')}
 [data-tolais-season="halloween-castanyada-2026"] :is(.game-dialog.nuvol,.action-dialog){--season-corner:70px;padding:48px 35px 88px!important}
 [data-tolais-season="halloween-castanyada-2026"] .countdown-card{--season-corner:54px;padding:36px 30px 68px!important}
 .halloween-album{--season-corner:70px;padding:48px 30px 90px}
 [data-season-list]{grid-template-columns:1fr}.halloween-costumes{grid-template-columns:repeat(2,1fr)}
}
@media(prefers-reduced-motion:reduce){.tolais-touch img,.tolais-tap-spark{animation:none}.tolais-tap-spark{display:none}}

/* Keep the nine-slice frame fixed while expanded instructions and album content scroll inside it. */
.season-dialog-scroll{display:contents}
[data-tolais-season="halloween-castanyada-2026"] .game-dialog.nuvol{overflow:hidden!important}
[data-tolais-season="halloween-castanyada-2026"] .season-dialog-scroll{display:block;min-width:0;max-height:calc(100dvh - 184px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere;padding:0 2px 4px}
[data-tolais-season="halloween-castanyada-2026"] .season-dialog-scroll :is(details,p){max-width:100%;box-sizing:border-box}
[data-tolais-season="halloween-castanyada-2026"] .season-dialog-scroll .bonus-guide>div{min-width:0}
[data-tolais-season="halloween-castanyada-2026"] .season-dialog-scroll .bonus-guide p{min-width:0;flex:1}
.halloween-album{overflow:hidden}
.season-album-scroll{max-height:calc(100dvh - 182px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere;padding:0 2px 4px}
@media(max-width:600px){[data-tolais-season="halloween-castanyada-2026"] .season-dialog-scroll{max-height:calc(100dvh - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.season-album-scroll{max-height:calc(100dvh - 168px)}}
