/* Public draw pages only. Keep the real, live-updated number row visible on scroll. */
#app > .shell.draw-scroll-page > .topbar {
  position: relative;
  top: auto;
}
.draw-pin-anchor { display: block; }
.draw-pin-anchor > #lottery-balls {
  top: 4px;
  top: calc(4px + env(safe-area-inset-top, 0px));
}
.draw-pin-anchor > #lottery-balls.draw-number-pinned {
  position: fixed;
  z-index: 35;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 5px 8px rgba(78, 55, 0, .16);
}

/* MZ_POST_TITLE_PIN_V1: keep the existing post title above pinned draw numbers.
   Post pages only; preserve home, chat, layout, content and business behavior. */
#app > .shell.post-page > .topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
#app > .shell.post-page .draw-pin-anchor > #lottery-balls {
  top: 52px;
  top: calc(52px + env(safe-area-inset-top, 0px));
}
