/* ICONIC Network v1.13.2 – seasonal SVG decoration and live preview */
.theme-decor-halloween .halloween-web{width:min(31vw,440px)!important;height:min(31vw,440px)!important;opacity:.92!important;filter:drop-shadow(0 2px 10px rgba(160,183,210,.18))}
.theme-decor-halloween .halloween-web-left{background-image:url('../img/themes/halloween-web-left-strong.svg')!important}
.theme-decor-halloween .halloween-web-right{background-image:url('../img/themes/halloween-web-right-strong.svg')!important}
.theme-decor-halloween .halloween-graveyard{bottom:-8px;right:-20px;width:min(35vw,450px);height:220px;background-image:url('../img/themes/halloween-graveyard.svg');opacity:.56;filter:drop-shadow(0 -8px 18px rgba(68,29,65,.27))}
.theme-decor-halloween .halloween-eyes{width:110px;height:58px;background-image:url('../img/themes/halloween-eyes.svg');opacity:.75;animation:seasonal-eyes 7s ease-in-out infinite}
.theme-decor-halloween .halloween-eyes-left{left:9%;bottom:100px}.theme-decor-halloween .halloween-eyes-right{right:17%;top:210px;animation-delay:-3.4s}
@keyframes seasonal-eyes{0%,43%,50%,100%{opacity:.72}46%,48%{opacity:0}}
.theme-effects-stage{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:110;contain:layout style;isolation:isolate}
.theme-effects-stage .seasonal-walker{position:absolute;top:0;left:0;width:36px;height:29px;opacity:0;background:url('../img/themes/halloween-crawler.svg') center/contain no-repeat;transform-origin:center center;filter:drop-shadow(0 4px 4px rgba(0,0,0,.7))}
.theme-effects-stage .theme-fog{position:absolute;inset:-30% -60%;pointer-events:none;opacity:.20;background:radial-gradient(ellipse at 15% 68%,rgba(141,116,171,.21),transparent 32%),radial-gradient(ellipse at 75% 36%,rgba(231,154,106,.12),transparent 31%),radial-gradient(ellipse at 45% 85%,rgba(190,179,194,.13),transparent 28%);filter:blur(35px);animation:seasonal-fog 32s ease-in-out infinite alternate}
@keyframes seasonal-fog{0%{transform:translate3d(-6%,3%,0)}50%{transform:translate3d(6%,-2%,0)}100%{transform:translate3d(-2%,5%,0)}}
/* Static hanged spiders remain in the background; roaming sprites are in the foreground. */
.theme-decor-halloween .halloween-spider{opacity:.68!important}
.theme-decor-halloween .halloween-bats{opacity:.38!important}
.theme-decor-halloween .halloween-pumpkins{opacity:.65!important}
/* Christmas: snow layer + actual SVG stars; positioned behind dialogs but never intercept clicks. */
.theme-decor-christmas .christmas-star{height:50px;width:50px;opacity:.68;background-image:url('../img/themes/christmas-star.svg')}
.theme-decor-christmas .christmas-star-left{top:145px;left:8%;animation:seasonal-star-breathe 4s ease-in-out infinite}
.theme-decor-christmas .christmas-star-right{top:90px;right:8%;animation:seasonal-star-breathe 5s ease-in-out -2s infinite}
@keyframes seasonal-star-breathe{0%,100%{opacity:.30;transform:scale(.75) rotate(-8deg)}50%{opacity:.9;transform:scale(1.1) rotate(8deg)}}
.theme-effects-stage .seasonal-snow{position:absolute;top:0;border-radius:50%;background:radial-gradient(circle,#fff 0%,rgba(241,249,255,.64) 48%,transparent 72%);box-shadow:0 0 4px rgba(220,243,255,.35)}
.theme-effects-stage .seasonal-twinkle{position:absolute;background:url('../img/themes/christmas-star.svg') center/contain no-repeat;opacity:0;filter:drop-shadow(0 0 7px rgba(255,229,146,.4))}
/* Prevent decoration from eclipsing modals and data interactions. */
body:has(.card-modal-backdrop) .theme-effects-stage,body:has(.trello-manage[open]) .theme-effects-stage{z-index:22}
body.theme-halloween .theme-decor,body.theme-christmas .theme-decor{z-index:1}
@media(max-width:820px){
  .theme-decor-halloween .halloween-web{width:270px!important;height:270px!important;opacity:.56!important}
  .theme-decor-halloween .halloween-graveyard{width:220px;height:110px;opacity:.35}
  .theme-decor-halloween .halloween-eyes-right{display:none}
  .theme-effects-stage .theme-fog{opacity:.09}
}
@media(prefers-reduced-motion:reduce){
  .theme-effects-stage{display:none!important}
  .theme-decor-halloween .halloween-eyes,.theme-decor-christmas .christmas-star{animation:none!important}
  .theme-decor-halloween .halloween-spider,.theme-decor-christmas .christmas-ornaments{animation:none!important}
}
/* Real preview stage rendered with same theme variables / season décor / animation code. */
body.theme-preview-body{min-width:0;overflow:hidden;height:100vh;margin:0;font-family:Inter,system-ui,sans-serif;font-size:13px}
.theme-preview-body .theme-decor{z-index:1;opacity:.45}
.theme-preview-body .theme-effects-stage{z-index:4}
.theme-preview-body .theme-effects-stage .theme-fog{opacity:.06}
.theme-preview-body .theme-decor-halloween .halloween-web{width:180px!important;height:180px!important}
.theme-preview-body .theme-decor-halloween .halloween-graveyard{width:190px;height:95px}
.theme-preview-body .theme-decor-halloween .halloween-pumpkins,.theme-preview-body .theme-decor-christmas .christmas-gifts{width:130px;height:70px}
.theme-preview-body .theme-decor-christmas .christmas-lights{height:63px;opacity:.53}
.theme-preview-body .theme-decor-christmas .christmas-ornaments,.theme-preview-body .theme-decor-christmas .christmas-snowflakes{opacity:.35}
.theme-preview-layout{display:grid;grid-template-columns:145px minmax(0,1fr);height:100vh;position:relative;z-index:2;background:transparent;color:#e9eef2}
.theme-preview-sidebar{background:#101317ee;border-right:1px solid #2c3339;padding:16px 10px;overflow:hidden}
.theme-preview-brand{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.theme-preview-logo{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#7d2a39;color:white;font-size:21px}
.theme-preview-brand strong{display:block;font-size:11px;white-space:nowrap}.theme-preview-brand small{display:block;font-size:9px;color:#a5b0ba}
.theme-preview-sidebar p{font-size:9px;color:#9ba5b0;letter-spacing:.1em;font-weight:800;margin:14px 8px 5px}
.theme-preview-sidebar>div:not(.theme-preview-brand){font-size:11px;padding:8px 10px;color:#b9c3cc;border-radius:6px}
.theme-preview-sidebar .selected{background:#321d25;color:#fff!important;border-left:2px solid #a54756}
.theme-preview-content{overflow:hidden;background:#101315cc}
.theme-preview-top{height:51px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #30363e;background:#16191dd9;padding:0 16px;font-weight:800;font-size:12px}
.theme-preview-top span:last-child{font-weight:600;font-size:10px;color:#aebbc5}
.theme-preview-columns{display:flex;gap:14px;padding:16px;align-items:flex-start}
.theme-preview-column{min-width:0;flex:1;background:#1f2227e6;border:1px solid #343a42;border-radius:11px;padding:12px;box-shadow:0 10px 24px rgba(0,0,0,.24)}
.theme-preview-column-head{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:11px}
.theme-preview-column-head span{border-radius:999px;background:#303740;padding:0 6px;color:#b6c8d5}
.theme-preview-task{display:grid;gap:4px;padding:12px;margin-bottom:9px;border:1px solid #4c525b;background:#34383ecf;border-radius:7px;color:#eef2f4}
.theme-preview-task strong{font-size:12px}.theme-preview-task p{margin:0;font-size:10px;color:#b6c0c9}
.theme-preview-task small{font-size:8px;color:#f2b3b8}
.theme-preview-body.theme-halloween .theme-preview-sidebar{background:#1a141ddd;border-color:#493347}
.theme-preview-body.theme-halloween .theme-preview-content{background:#151019dd}
.theme-preview-body.theme-halloween .theme-preview-column{background:#281b2ae8;border-color:#603d55}
.theme-preview-body.theme-halloween .theme-preview-task{background:#382832eb;border-color:#76444e}
.theme-preview-body.theme-halloween .theme-preview-top{background:#271924ec;border-color:#5e3a42}
.theme-preview-body.theme-christmas .theme-preview-sidebar{background:#111c1bdd;border-color:#375247}
.theme-preview-body.theme-christmas .theme-preview-content{background:#0e1716dd}
.theme-preview-body.theme-christmas .theme-preview-column{background:#20302be7;border-color:#47685c}
.theme-preview-body.theme-christmas .theme-preview-task{background:#344340ed;border-color:#5f8076}
.theme-preview-body.theme-christmas .theme-preview-top{background:#1a2925ec;border-color:#416459}
.theme-preview-body.theme-newyear .theme-preview-sidebar{background:#101827dd;border-color:#384967}
.theme-preview-body.theme-newyear .theme-preview-content{background:#101825dd}
.theme-preview-body.theme-newyear .theme-preview-column{background:#202b3de8;border-color:#435570}
.theme-preview-body.theme-newyear .theme-preview-task{background:#303b4e;border-color:#54627b}
.theme-preview-body.theme-easter .theme-preview-sidebar{background:#14231edd;border-color:#426753}
.theme-preview-body.theme-easter .theme-preview-content{background:#111d19dd}
.theme-preview-body.theme-easter .theme-preview-column{background:#23362de8;border-color:#4b7764}
.theme-preview-body.theme-easter .theme-preview-task{background:#30453c;border-color:#557d6a}
/* Admin card preview with consistent wide frame */
.theme-live-preview-shell{width:100%;aspect-ratio:16/10;max-height:420px;overflow:hidden;border:1px solid #3b434b;border-radius:12px;background:#0e1114;margin:12px 0 9px}
.theme-live-preview-shell iframe{width:100%;height:100%;border:0;display:block}
.theme-live-preview-meta{display:flex;justify-content:space-between;gap:8px;color:#aeb9c3;font-size:12px;margin-bottom:22px}
.theme-live-preview-meta span:first-child{font-weight:800;color:#e6ebef}
@media(max-width:700px){.theme-preview-layout{grid-template-columns:100px minmax(0,1fr)}.theme-preview-sidebar{padding:10px 6px}.theme-preview-brand small{display:none}.theme-preview-brand strong{font-size:9px}.theme-preview-column:nth-child(2){display:none}.theme-preview-top{font-size:11px}.theme-preview-columns{padding:10px}.theme-live-preview-shell{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){
  .theme-decor-halloween .halloween-crawler,.theme-decor-halloween .halloween-spider,
  .theme-decor-halloween .halloween-bats,.theme-decor-christmas .christmas-ornaments,
  .theme-decor-christmas .christmas-snowflakes{animation:none!important}
}
/* Corner details remain visible over the opaque board workspace but never catch clicks. */
body.theme-halloween:not(.theme-preview-body) .theme-decor-halloween,
body.theme-christmas:not(.theme-preview-body) .theme-decor-christmas{z-index:38!important}
body:has(.card-modal-backdrop) .theme-decor,
body:has(.trello-manage[open]) .theme-decor{z-index:1!important}
body.design-admin-preview .theme-effects-stage{display:none!important}
body.design-admin-preview .theme-decor{opacity:.18!important}

/* v1.13.3 – aufgeräumtes Halloween: Spinnennetze sind dezente Hintergründe,
   niemals eine Schicht über Karten, Navigation oder Dialogen. */
body.theme-halloween .theme-decor-halloween .halloween-web {
  display:none!important;
}
/* Abstände, Größe und Deckkraft werden nun pro UI-Bereich kontrolliert. */
body.theme-halloween:not(.board-mode):not(.theme-preview-body) .main {
  background-image:url('../img/themes/halloween-web-left-clear.svg'),url('../img/themes/halloween-web-right-clear.svg')!important;
  background-position:left top,right top!important;
  background-repeat:no-repeat!important;
  background-size:clamp(130px,14vw,200px) auto,clamp(130px,14vw,200px) auto!important;
}
body.theme-halloween .sidebar {
  background-image:url('../img/themes/halloween-web-left-clear.svg'),linear-gradient(180deg,rgba(20,12,23,.97),rgba(14,10,18,.97))!important;
  background-position:left bottom,center!important;
  background-repeat:no-repeat!important;
  background-size:155px auto,cover!important;
}
body.theme-halloween.board-mode .trello-lists {
  background-color:var(--workspace-bg)!important;
  background-image:url('../img/themes/halloween-web-right-clear.svg'),linear-gradient(180deg,#141116,#100f12)!important;
  background-position:top right,center!important;
  background-repeat:no-repeat!important;
  background-size:clamp(140px,15vw,205px) auto,cover!important;
}
body.login-body.theme-halloween {
  background-image:url('../img/themes/halloween-web-left-clear.svg'),url('../img/themes/halloween-web-right-clear.svg'),radial-gradient(circle at 50% -15%,#34203f,#151018 44%,#09080b 100%)!important;
  background-repeat:no-repeat,no-repeat,no-repeat!important;
  background-position:left top,right top,center!important;
  background-size:clamp(150px,17vw,245px) auto,clamp(150px,17vw,245px) auto,cover!important;
}
/* Auch die Admin-Live-Vorschau zeigt die echte, aufgeräumte Darstellung. */
body.theme-preview-body.theme-halloween .theme-preview-content {
  background-image:url('../img/themes/halloween-web-right-clear.svg'),linear-gradient(180deg,#151019dd,#141017dd)!important;
  background-position:right top,center!important;
  background-repeat:no-repeat!important;
  background-size:135px auto,cover!important;
}
body.theme-preview-body.theme-halloween .theme-preview-sidebar {
  background-image:url('../img/themes/halloween-web-left-clear.svg'),linear-gradient(180deg,#1a141ddd,#17111bdf)!important;
  background-position:left bottom,center!important;
  background-repeat:no-repeat!important;
  background-size:80px auto,cover!important;
}
/* Die über Inhalte laufenden kleinen Spinnen bleiben erhalten; der Nebel
   wird deutlich zurückgenommen, damit Beschriftungen kontrastreich bleiben. */
body.theme-halloween .theme-effects-stage .theme-fog {
  opacity:.075!important;
  filter:blur(48px)!important;
}
body.theme-halloween .theme-effects-stage .seasonal-walker {
  width:30px;height:24px;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.48));
}
/* Dekorationen bleiben rein optisch und blockieren keinerlei Klicks. */
body.theme-halloween .theme-decor,
body.theme-halloween .theme-effects-stage { pointer-events:none!important; }
@media(max-width:820px){
  body.theme-halloween:not(.board-mode):not(.theme-preview-body) .main {
    background-size:105px auto,105px auto!important;
  }
  body.theme-halloween.board-mode .trello-lists{
    background-size:125px auto,cover!important;
  }
  body.theme-halloween .sidebar{background-size:110px auto,cover!important}
  body.login-body.theme-halloween{background-size:125px auto,125px auto,cover!important}
}
@media(max-width:560px){
  body.theme-halloween:not(.board-mode):not(.theme-preview-body) .main{
    background-image:url('../img/themes/halloween-web-right-clear.svg')!important;
    background-position:top right!important;
    background-size:90px auto!important;
  }
  body.theme-halloween.board-mode .trello-lists{background-size:95px auto,cover!important}
}
/* An der Board-Leiste und auf kleinen Bildschirmen keine hängenden
   Deko-Spinnen vor Buttons oder Navigation. Die laufenden Spinnen bleiben. */
body.theme-halloween.board-mode .theme-decor-halloween .halloween-spider {display:none!important}
@media(max-width:820px){
  body.theme-halloween .theme-decor-halloween .halloween-spider {display:none!important}
}

/* Refined decorative framing: readable content, atmosphere at the edges. */
body.theme-christmas .theme-decor-christmas .christmas-lights{height:48px!important;top:-14px!important;opacity:.65!important}
body.theme-christmas .theme-decor-christmas .christmas-ornaments{width:85px!important;height:100px!important;top:75px!important;opacity:.32!important}
body.theme-christmas .theme-decor-christmas .christmas-gifts{width:110px!important;height:75px!important;opacity:.4!important}
body.theme-christmas .theme-decor-christmas .christmas-snowflakes{opacity:.22!important}
body.theme-christmas .theme-decor-christmas .christmas-star{opacity:.25!important}
body.theme-halloween .theme-decor-halloween .halloween-web{width:min(21vw,280px)!important;height:min(21vw,280px)!important;opacity:.42!important}
body.theme-halloween .theme-effects-stage .theme-fog{opacity:.1;filter:blur(50px)}
body.theme-halloween .theme-decor-halloween .halloween-graveyard{opacity:.3;width:min(28vw,350px)}
body.theme-halloween .theme-decor-halloween .halloween-eyes{opacity:.4}
body.theme-halloween .theme-effects-stage .seasonal-walker{width:25px;height:21px;filter:drop-shadow(0 3px 4px #0007)}
body.theme-christmas .theme-decor-christmas .christmas-lights{filter:drop-shadow(0 0 9px #f5ce8b55);opacity:.8}
body.theme-christmas .theme-decor-christmas .christmas-gifts{opacity:.65}
body.theme-christmas .theme-decor-christmas .christmas-ornaments{opacity:.65}
body.theme-christmas .theme-effects-stage .seasonal-snow{opacity:.45}
@media(max-width:680px){body.theme-halloween .theme-decor-halloween .halloween-web{width:100px!important;height:100px!important;opacity:.25!important}body.theme-halloween .theme-effects-stage .seasonal-walker{display:none}body.theme-halloween .theme-decor-halloween .halloween-graveyard{display:none}body.theme-christmas .theme-decor-christmas .christmas-gifts{max-width:100px;opacity:.35}.theme-effects-stage .seasonal-twinkle{display:none}}


/* Navigation and controls stay above the decorative winter background. */
body.theme-christmas:not(.theme-preview-body) .theme-decor-christmas { z-index: 1 !important; }
body.theme-christmas:not(.theme-preview-body) .theme-effects-stage { z-index: 1 !important; opacity: .38; }
body.theme-christmas:not(.theme-preview-body) .theme-decor-christmas .christmas-holly,
body.theme-christmas:not(.theme-preview-body) .theme-decor-christmas .christmas-gifts { display: none !important; }

