#modalBackdrop {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
#modalBackdrop.visible {
  opacity: 1;
  pointer-events: all;
  display: flex;
  align-items: flex-start; /* modal pojawi się u góry */

    padding-top: 60px; /* odstęp od góry */
}
#modalContent {
  position: relative;
  width: 320px;
  height: 256px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
  color: white;
  user-select: none;
  z-index: 10100;
}
#starfield {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 400px;
  height: 336px;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}
#closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 1px 6px;
  background: #444;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10110;
}
#logo {
  position: absolute;
  left: 10px;
  width: 60px;
  height: 30px;
  z-index: 10110;
}
#scrollContainer {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 320px;
  user-select: none;
  z-index: 10120;
}
#scrollContainer > div {
  width: 100%;
}
#scrollContainer .line {
  height: 1px;
  background: #966f38;
}
#scrollBar {
  background: #7a4801;
  height: 20px;
  overflow: hidden;
  position: relative;
  opacity: 0.4;
}
#scrollText {
  color: white;
  font-size: 14px;
  line-height: 20px;
  white-space: pre;
  position: absolute;
  will-change: transform;
  padding-left: 100%;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 5px #000;
}
/* Planety */
#wenus {
  position: absolute;
  top: 35px;
  left: 40px;
  width: 30px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
#earth {
  position: absolute;
  top: 90px;
  left: 140px;
  width: 40px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
}
#moon {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  opacity: 0.8;
  transform-origin: center center;
  will-change: transform;
}
#mars {
  position: absolute;
  top: 170px;
  left: 260px;
  width: 25px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
