/* Mobile winter: falling snow + real KlanzWinterIce on menu (not a CSS fake).
   Only under html.klanz-mobile-web + body.winter-scene (server winter gate). */

.mobile-winter-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  contain: strict;
  z-index: 90; /* under menu shell (100) */
}

/*
  Frost lives INSIDE #menu (see mobile_winter_snow.js), above the tab <a>
  but below open dropdowns (li.is-mobile-menu-open z=125). Never on body —
  a body overlay at z=101 always painted over the whole shell including lists.
*/
html.klanz-mobile-web ul#menu > .mobile-winter-frost {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; /* bar box only — absolute dropdowns sit outside */
  display: block;
  pointer-events: none;
  user-select: none;
  contain: strict;
  z-index: 10; /* below li.is-mobile-menu-open (125) */
}

/* Explicit: open list above frost sibling inside the same #menu. */
html.klanz-mobile-web body.winter-scene ul#menu > li.is-mobile-menu-open {
  z-index: 125 !important;
  position: relative;
}
html.klanz-mobile-web body.winter-scene ul#menu > li.is-mobile-menu-open > :is(div.menu, div.top) {
  z-index: 20;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-winter-snow { display: none !important; }
}

@media print {
  .mobile-winter-snow,
  .mobile-winter-frost { display: none !important; }
}
