/* Subtle remains edge-only. Festive uses a bounded, compositor-animated scene. */
#seasonalDecorations { position: fixed; inset: 0; z-index: 12; pointer-events: none; user-select: none; contain: layout style; }
#seasonalDecorations[hidden] { display: none; }
body:has(#appShell[hidden]) #seasonalDecorations[data-intensity="subtle"] { display: none; }
.season-corner { position: absolute; top: 0; width: 92px; height: 92px; opacity: .32; pointer-events: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#seasonalSettingsSection[hidden], #seasonalChoiceLabel[hidden] { display: none !important; }
#saveSeasonalSettings { justify-self: start; width: auto; }
.season-left { left: 0; }
.season-right { right: 0; transform: scaleX(-1); }
#seasonalDecorations[data-intensity="festive"] .season-corner { width: 126px; height: 126px; opacity: .48; }
#seasonalDecorations[data-season="halloween"] { color: #aa784c; }
#seasonalDecorations[data-season="christmas"] { color: #408569; }
#seasonalDecorations[data-season="easter"] { color: #ab73b0; }
#seasonalDecorations[data-season="fall"] { color: #bd7a3e; }
#seasonalDecorations[data-season="winter"] { color: #6f9ab5; }
#seasonalDecorations[data-season="spring"] { color: #6c9b73; }
#seasonalDecorations[data-season="summer"] { color: #d49e2b; }
#seasonalDecorations[data-season="new-year"] { color: #be9a44; }
#seasonalDecorations[data-season="valentine"] { color: #be7188; }
#seasonalDecorations[data-season="pride"] { color: #8673ac; }
@media (max-width: 720px) {
  .season-corner { width: 56px; height: 56px; opacity: .24; }
  #seasonalDecorations[data-intensity="festive"] .season-corner { width: 76px; height: 76px; opacity: .36; }
}
@media print { #seasonalDecorations, #seasonalSettingsSection { display: none !important; } }

.season-festive-stage { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; }
#seasonalDecorations[data-intensity="subtle"] .season-festive-stage { display: none; }
#seasonalDecorations[data-intensity="festive"] .season-corner { width: 156px; height: 156px; opacity: .5; }
.season-extra-web { top: auto; bottom: 0; width: 94px !important; height: 94px !important; opacity: .28 !important; }
.season-extra-web.bottom-left { left: 0; transform: scaleY(-1); }
.season-extra-web.bottom-right { right: 0; transform: rotate(180deg); }
.season-prop { position: absolute; pointer-events: none; }
.season-pumpkin { z-index: 1; width: 104px; height: 104px; bottom: -20px; opacity: .5; }
.pumpkin-0 { left: -12px; }
.pumpkin-1 { right: -12px; }
.pumpkin-2 { left: 52px; width: 65px; height: 65px; bottom: -25px; opacity: .32; }
.pumpkin-3 { right: 52px; width: 65px; height: 65px; bottom: -25px; opacity: .32; }
.season-haunted-house { display: none; }
.season-tree, .season-gift, .season-snowbank { display: none; }
.season-hanging-spider { position: absolute; top: var(--y); left: var(--x); width: 22px; transform-origin: top center; animation: seasonal-spider-sway var(--duration) ease-in-out var(--delay) infinite alternate; opacity: .42; color: #ae8a6f; }
.season-hanging-spider > i { display: block; width: 1px; height: var(--thread); margin: 0 auto; background: currentColor; opacity: .55; }
.season-spider { display: block; width: 100%; height: 24px; overflow: visible; }
.season-bauble { width: 38px; height: 64px; top: calc(-8px + var(--drop)); opacity: .4; }
.season-egg { width: 54px; height: 68px; bottom: -15px; opacity: .48; }
.egg-0 { left: 0; transform: rotate(-12deg); }
.egg-1 { left: 40px; width: 40px; transform: rotate(8deg); }
.egg-2 { left: 73px; width: 32px; }
.egg-3 { right: 0; transform: rotate(14deg); }
.egg-4 { right: 40px; width: 40px; transform: rotate(-8deg); }
.egg-5 { right: 73px; width: 32px; }
.season-particle { position: absolute; top: -45px; left: var(--x); width: var(--size); height: var(--size); opacity: .22; animation: seasonal-drift var(--duration) linear var(--delay) infinite; pointer-events: none; }
.particle-confetti { height: calc(var(--size) * 1.7); }
.particle-butterfly { opacity: .2; }
@keyframes seasonal-drift { from { transform: translate3d(-14px, -45px, 0) rotate(-20deg); } to { transform: translate3d(30px, calc(100vh + 90px), 0) rotate(210deg); } }
@keyframes seasonal-spider-sway { from { transform: rotate(-5deg) translateY(-7px); } to { transform: rotate(5deg) translateY(9px); } }
#seasonalDecorations[data-paused="true"] * { animation-play-state: paused !important; }

/* Only Festive owns the sign-in scene. App theme tokens and Subtle stay untouched. */
#authScreen[data-festive-season] { background: var(--festive-sky); }
#authScreen[data-festive-season]::before { background: var(--festive-artwork, var(--festive-sky)); background-size: cover; background-position: center; filter: none; transform: none; }
#authScreen[data-festive-season]::after { background: linear-gradient(0deg, rgb(10 15 24 / .3), transparent 45%); }
#authScreen[data-festive-season] .auth-shell { z-index: 2; }
#authScreen[data-festive-season] .provider-button { color: var(--ink); }
#authScreen[data-festive-season] :is(.auth-divider span, #authSubtitle) { color: var(--muted); }
#authScreen #seasonalDecorations { position: absolute; z-index: 1; }
#authScreen #seasonalDecorations[data-intensity="festive"] > .season-corner { width: 260px; height: 260px; opacity: .66; }
#authScreen .season-extra-web { width: 200px !important; height: 200px !important; opacity: .35 !important; }
#authScreen .season-particle { opacity: .65; }
#authScreen .season-hanging-spider { width: 38px; opacity: .82; color: #bc9a88; }
#authScreen .season-spider { height: 42px; }
#authScreen .season-pumpkin { width: 250px; height: 250px; opacity: 1; bottom: -24px; }
#authScreen .pumpkin-0 { left: 5%; }
#authScreen .pumpkin-1 { right: 5%; }
#authScreen .pumpkin-2 { left: 0; width: 160px; height: 160px; bottom: -30px; }
#authScreen .pumpkin-3 { right: 0; width: 160px; height: 160px; bottom: -30px; }
#authScreen .season-haunted-house { display: block; width: 280px; height: 350px; left: 1%; bottom: 100px; opacity: .7; }
#authScreen .season-tree { display: block; bottom: 5px; width: 250px; height: 375px; }
#authScreen .tree-0 { left: -35px; }
#authScreen .tree-1 { right: -35px; }
#authScreen .tree-2 { left: 10%; width: 130px; height: 195px; opacity: .8; }
#authScreen .tree-3 { right: 10%; width: 130px; height: 195px; opacity: .8; }
#authScreen .season-snowbank { display: block; bottom: -1px; left: 0; width: 100%; height: 90px; }
#authScreen .season-gift { display: block; bottom: 9px; width: 75px; height: 75px; z-index: 1; }
#authScreen .gift-0 { left: 11%; }
#authScreen .gift-1 { right: 11%; }
#authScreen .gift-2 { left: 7%; width: 55px; height: 55px; }
#authScreen .gift-3 { right: 7%; width: 55px; height: 55px; }
#authScreen .season-bauble { width: 75px; height: 125px; opacity: .9; }
#authScreen .season-egg { width: 130px; height: 165px; opacity: 1; bottom: -12px; }
#authScreen .egg-0 { left: 6%; }
#authScreen .egg-1 { left: 1%; bottom: -35px; }
#authScreen .egg-2 { left: 14%; bottom: -38px; }
#authScreen .egg-3 { right: 6%; }
#authScreen .egg-4 { right: 1%; bottom: -35px; }
#authScreen .egg-5 { right: 14%; bottom: -38px; }
#authScreen[data-festive-season="halloween"] { --festive-sky: linear-gradient(135deg, #141021, #39213e 58%, #88472c); }
#authScreen[data-festive-season="christmas"] { --festive-sky: linear-gradient(135deg, #0e2830, #255345 58%, #75938c); }
#authScreen[data-festive-season="winter"] { --festive-sky: linear-gradient(135deg, #172d44, #45667f 60%, #a9c6ce); }
#authScreen[data-festive-season="easter"] { --festive-sky: linear-gradient(125deg, #cadbc9, #e6d8e6 55%, #f0dfb8); }
#authScreen[data-festive-season="fall"] { --festive-sky: linear-gradient(135deg, #352c29, #77513c 60%, #c4a16b); }
#authScreen[data-festive-season="spring"] { --festive-sky: linear-gradient(135deg, #9fbfa9, #e2d8d4 55%, #e6b2c7); }
#authScreen[data-festive-season="summer"] { --festive-sky: linear-gradient(135deg, #75a9b8, #c8d7c4 58%, #efd394); }
#authScreen[data-festive-season="new-year"] { --festive-sky: linear-gradient(135deg, #161d30, #37334d 60%, #6c5c43); }
#authScreen[data-festive-season="valentine"] { --festive-sky: linear-gradient(135deg, #552f4a, #ad7189 60%, #ddafa9); }
#authScreen[data-festive-season="pride"] { --festive-sky: linear-gradient(120deg, #765a70, #ba8578 24%, #c1b685 43%, #7da69a 64%, #718caa 82%, #9c8ba9); }
@media (max-width: 720px) {
  #seasonalDecorations[data-intensity="festive"] > .season-corner { width: 94px; height: 94px; opacity: .36; }
  .season-particle:nth-of-type(n+17) { display: none; }
  .season-hanging-spider:nth-of-type(3n) { display: none; }
  .season-pumpkin { width: 68px; height: 68px; }
  .pumpkin-2, .pumpkin-3, .egg-2, .egg-5 { display: none; }
  #authScreen #seasonalDecorations[data-intensity="festive"] > .season-corner { width: 150px; height: 150px; opacity: .55; }
  #authScreen .season-hanging-spider { width: 25px; }
  #authScreen .season-pumpkin { width: 145px; height: 145px; }
  #authScreen .pumpkin-0 { left: -30px; }
  #authScreen .pumpkin-1 { right: -30px; }
  #authScreen .season-haunted-house { width: 170px; height: 210px; left: -35px; bottom: 60px; }
  #authScreen .season-tree { width: 150px; height: 225px; bottom: 8px; }
  #authScreen .tree-2, #authScreen .tree-3 { display: none; }
  #authScreen .season-gift { width: 50px; height: 50px; }
  #authScreen .season-bauble { width: 46px; height: 78px; }
  #authScreen .season-egg { width: 85px; height: 106px; }
  #authScreen .season-extra-web { width: 100px !important; height: 100px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .season-hanging-spider, .season-particle { animation: none !important; transform: none !important; }
  .season-particle { top: var(--rest-y); }
}
