/* V29 – ausschliesslich Smartphone, Extra / Extra 4. Desktop/Tablet unveraendert. */
@media (max-width:699px) {
  body.theme-extra:not(.mobile-tree-exited) .advent-shell {
    /* Mobile Bottom-Docking: die Schiene liegt am unteren Displayrand. */
    align-items:flex-end !important;
    justify-content:center !important;
    padding-top:max(52px, env(safe-area-inset-top, 0px) + 42px) !important;
    padding-bottom:env(safe-area-inset-bottom, 0px) !important;
    background:
      radial-gradient(ellipse 85% 48% at 50% 77%, rgba(122,163,111,.18), transparent 78%),
      radial-gradient(ellipse 130% 80% at 50% 105%, rgba(17,69,51,.78), transparent 72%),
      linear-gradient(180deg, #061c16, #0b3024 73%, #061912) !important;
  }
  body.theme-extra:not(.mobile-tree-exited) .calendar-wrap-tree,
  body.theme-extra:not(.mobile-tree-exited) .tree-layout {
    align-items:flex-end !important;
    justify-content:center !important;
  }
  body.theme-extra:not(.mobile-tree-exited) .tree-stage {
    /* Das Originalseitenverhaeltnis bleibt: keine ovalen Kugeln, kein beschnittener Zug. */
    align-self:flex-end !important;
    flex:0 0 auto;
    margin:0 auto !important;
    transform:none !important;
    box-shadow:0 0 0 1px rgba(250,220,154,.38),0 -22px 70px rgba(17,67,48,.45)!important;
  }
  /* Fingertipp auf noch nicht freigegebene Kugel: aktiver Lichtimpuls. */
  body.theme-extra .tree-stage .tree-door.is-touch-swing {
    z-index:12 !important;
    filter:brightness(1.17) !important;
  }
  body.theme-extra .tree-stage .tree-door.is-touch-swing .bauble-locked,
  body.theme-extra .tree-stage .tree-door.is-touch-swing .bauble-button {
    filter:brightness(1.42) saturate(1.2) !important;
    box-shadow:inset 4px 5px 12px rgba(255,255,220,.75),
       inset -10px -13px 18px rgba(0,0,0,.4),
       0 0 18px 8px rgba(255,210,105,.91),
       0 0 40px 15px rgba(255,210,105,.4) !important;
  }
  @media (prefers-reduced-motion:no-preference) {
    body.theme-extra .tree-stage.tree-ready .tree-door.is-touch-swing {
      animation:advV24HangingSwing var(--sway-time,1.12s) ease-in-out 1 both !important;
    }
  }
  /* Fullscreen exit stays accessible above the calendar on narrow phones. */
  body.theme-extra:not(.mobile-tree-exited) .mobile-tree-exit {z-index:150 !important}
}
