/* Deep, layered snow treatment. It stays inside the burgundy theme and never blocks input. */
:root{--snow-white:#fffdf8;--snow-cool:#e8f5f6;--snow-shadow:#9bb8bd;--snow-blue:#b8dce1}
body.theme-burgundy.snow-enabled{background-color:#2a0b19;background-image:radial-gradient(ellipse at 70% -10%,#8f294655,transparent 52%),radial-gradient(ellipse at 15% 75%,#4a122b88,transparent 55%),linear-gradient(145deg,#421127,#220b18 72%,#120711)}
/* Frosted atmospheric curtains behind every tab/page. */
body.theme-burgundy.snow-enabled::before,body.theme-burgundy.snow-enabled::after{content:"";position:fixed;pointer-events:none;z-index:1;inset:0;background-image:radial-gradient(ellipse at 14% 18%,#fff 0 1px,transparent 2px),radial-gradient(ellipse at 72% 34%,#e8fbff 0 1.4px,transparent 3px),radial-gradient(ellipse at 42% 76%,#fff 0 1px,transparent 2.5px);background-size:190px 240px,330px 390px,260px 315px;opacity:.34;mix-blend-mode:screen;animation:snow-depth 18s linear infinite}
body.theme-burgundy.snow-enabled::after{background-size:520px 640px,700px 820px,440px 520px;opacity:.2;animation-duration:30s;animation-direction:reverse}
@keyframes snow-depth{to{background-position:90px 260px,-120px 480px,80px 310px}}
/* Snow accumulated on structural surfaces across all tabs. */
/* Keep the sidebar fixed, header sticky and native dialogs in the top layer.
   Snow is decorative: only ordinary surfaces need a positioning anchor. */
body.theme-burgundy.snow-enabled :is(.workspace,.panel,.stat-card,.quick-card,.home-note,.welcome-hero,.community-row,.community-review,.flow-panel,.flow-notice,.work-tab-panel,.flow-requirement,.leaderboard-row,.earn-task,.rental-mode-bar,.admin-area,.admin-category,.discover-card,.contact-card,.guide-card,.faq,.chat-bubble){position:relative;isolation:isolate}
body.theme-burgundy.snow-enabled :is(.topbar,.sidebar,dialog){isolation:isolate}
body.theme-burgundy.snow-enabled :is(.topbar,.sidebar,.workspace,.panel,.stat-card,.quick-card,.home-note,.welcome-hero,.community-row,.community-review,.flow-panel,.flow-notice,.work-tab-panel,.flow-requirement,.leaderboard-row,.earn-task,.rental-mode-bar,.admin-area,.admin-category,.discover-card,.contact-card,.guide-card,.faq,dialog,.chat-bubble)::after{content:"";position:absolute;z-index:4;pointer-events:none;left:3%;right:3%;top:-10px;height:22px;border-radius:55% 48% 35% 30%/80% 90% 35% 45%;background:linear-gradient(180deg,var(--snow-white) 0%,#f6fcf8 42%,var(--snow-cool) 72%,#a9c8cb 100%);box-shadow:0 4px 4px #05151a55,0 1px 0 #fff inset;clip-path:polygon(0 38%,8% 16%,18% 28%,30% 7%,44% 24%,58% 11%,72% 28%,86% 8%,100% 24%,100% 71%,89% 67%,76% 82%,63% 68%,51% 88%,38% 70%,25% 83%,12% 68%,0 78%);opacity:.96}
body.theme-burgundy.snow-enabled :is(.panel,.community-row,.community-review,.flow-panel,.flow-notice,.work-tab-panel,.flow-requirement,.leaderboard-row,.earn-task,.admin-area,.admin-category,.discover-card,.contact-card,.guide-card,.faq,dialog)::after{top:-9px}
body.theme-burgundy.snow-enabled .topbar::after{left:0;right:0;top:auto;bottom:-8px;height:18px}
body.theme-burgundy.snow-enabled .sidebar::after{left:0;right:-3px;top:0;height:22px}
body.theme-burgundy.snow-enabled .workspace::after{left:8%;right:8%;height:13px;top:-6px}
body.theme-burgundy.snow-enabled .welcome-hero::after{left:0;right:0;top:-13px;height:30px;opacity:1}
body.theme-burgundy.snow-enabled :is(.community-row,.community-review,.flow-notice,.leaderboard-row){padding-top:28px}
body.theme-burgundy.snow-enabled .snow-toggle{z-index:6}
/* The supplied coin is already cut out. Do not put it back inside a theme box. */
body.theme-burgundy :is(.site-logo .logo-mark,.sidebar .logo-mark,.workspace-icon){background:transparent!important;border:0!important;box-shadow:none!important}
body.theme-burgundy :is(.site-logo .logo-mark,.sidebar .logo-mark)::before,
body.theme-burgundy :is(.site-logo .logo-mark,.sidebar .logo-mark)::after{content:none!important;display:none!important}
body.theme-burgundy :is(.logo-mark img,.workspace-icon img){background:transparent!important;box-shadow:none!important;filter:none!important}
/* A heavier ground layer makes the lower edge feel snow-covered too. */
body.theme-burgundy.snow-enabled .winter-ground{height:105px;bottom:-42px;opacity:.22;background:radial-gradient(ellipse at 10% 100%,#ffffff 0 35%,transparent 36%),radial-gradient(ellipse at 52% 100%,#eaf8f8 0 46%,transparent 47%),radial-gradient(ellipse at 96% 100%,#ffffff 0 39%,transparent 40%);filter:drop-shadow(0 -5px 12px #d7f2f655)}
body.theme-burgundy.snow-enabled #winter-snow{opacity:1;z-index:40}
@media(max-width:650px){body.theme-burgundy.snow-enabled :is(.panel,.stat-card,.quick-card,.community-row,.community-review,.flow-panel,.flow-notice,.work-tab-panel,.flow-requirement,.leaderboard-row,.earn-task,.admin-area,.admin-category,.discover-card,.contact-card,.guide-card,.faq,dialog)::after{height:17px;top:-7px}body.theme-burgundy.snow-enabled :is(.community-row,.community-review,.flow-notice,.leaderboard-row){padding-top:24px}}
@media(prefers-reduced-motion:reduce){body.theme-burgundy.snow-enabled::before,body.theme-burgundy.snow-enabled::after{animation:none}}

/* Mobile uses the canvas only for falling snow; roofs remain static. */
@media (max-width:900px), (pointer:coarse) {
  body.theme-burgundy.snow-enabled::before,
  body.theme-burgundy.snow-enabled::after { content:none; display:none; animation:none; mix-blend-mode:normal; }
  html body.theme-burgundy .notice-flakes { display:none!important; animation:none!important; }
  html body.theme-burgundy .festive-lights i { animation:none!important; }
  html body.theme-burgundy .topbar,
  html body.theme-burgundy dialog::backdrop { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  html body.theme-burgundy .winter-ground { filter:none!important; }
  html body.theme-burgundy :is(.panel,.quick-card,.home-note,.welcome-hero,.workspace,.admin-area,.admin-category,.community-row,.community-review,.leaderboard-row)::before {
    filter:none!important;
  }
  body.theme-burgundy.snow-enabled :is(.panel,.community-row,.community-review,.flow-panel,.flow-notice,.work-tab-panel,.flow-requirement,.leaderboard-row,.earn-task,.admin-area,.admin-category,dialog)::after {
    box-shadow:none;
  }
}
html.snow-page-paused body::before,html.snow-page-paused body::after,
html.snow-page-paused .notice-flakes,html.snow-page-paused .festive-lights i {
  animation-play-state:paused!important;
}
