*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;height:100%;overflow:hidden}
@media (max-width: 900px) {
html,body{overflow-y:auto;overflow-x:hidden;height:auto}
}
body{background:#000;font-family:Open Sans,Inter,sans-serif;color:#fff}
#app-container{display:flex;flex-direction:column;width:100vw;height:100vh;overflow:hidden}
#main-content{display:flex;flex:1;overflow:hidden}
#controls-panel{width:280px;min-width:280px;flex-shrink:0;padding:8px 8px 0;overflow-y:auto;height:100%;font-size:.85rem}
#canvas-container{flex:1;display:flex;justify-content:center;align-items:center;background:#000;position:relative;overflow:hidden}
#object-name{color:#fff;font-size:3rem;font-weight:700;flex-shrink:0;letter-spacing:-.6px;position:absolute;top:.5rem;right:3vw;z-index:22}
canvas#canvasBkg{display:block;background:#000;transform-origin: center;object-fit:cover;image-rendering: high-quality;}
@media (max-width: 1600px) {canvas#canvasBkg{transformxx: scale(1.2);widthxx:120% !important;heightxx:120% !important;}#object-name{font-size:2.3rem}}
@media (max-width: 900px) {canvas#canvasBkg{transform: scale(1.6);position:relative;top:8px;width:100% !important;height:100% !important;}#object-name{font-size:2rem}}
@media (max-width: 480px) {canvas#canvasBkg{transform: scale(1.6);position:relative;top:8px;width:100% !important;height:100% !important;}#object-name{font-size:2rem}}
.hidden-canvas{display:none!important}
.slider-container{margin-bottom:.6rem}
.slider-label{color:#838d99;margin-bottom:3px;display:block}
.slider-label .value{color:#669fff;font-weight:500;float:right}
.slider-input{-webkit-appearance:none;appearance:none;width:100%;height:4px;border-radius:3px;background:#29364d;outline:none;cursor:pointer;margin:10px 0;transition:background .3s ease}
input::selection{background:#015ef5;color:#fff}
.slider-value-input{width:60px;text-align:right;padding:3px 5px;background:#13151a;color:#fff;border:1px solid #3a4a6a;border-radius:4px;font-weight:500;font-size:.85rem;letter-spacing:.05rem}
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield}
.slider-input::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:transparent}
.slider-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:#4478cf;border:3px solid #fff;margin-top:-5px;box-shadow:0 0 4px #0000004d;cursor:pointer;transition:transform .1s ease}
.slider-input::-webkit-slider-thumb:active{transform:scale(1.2)}
.slider-input::-moz-range-track{height:4px;border-radius:3px;background:transparent}
.slider-input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#4478cf;border:3px solid #fff;box-shadow:0 0 4px #0000004d;cursor:pointer;transition:transform .1s ease}
.slider-input::-moz-range-thumb:active{transform:scale(1.2)}
.button-group{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.control-button{background:#1c2833b5;color:#838d99;padding:7px 10px;cursor:pointer;transition:all .2s;border-radius:.2rem;font-family:Open Sans,Inter,sans-serif;font-size:.85rem;border:none}
.control-button:hover{color:#fff}
.control-button.active{color:#fff;font-weight:500;background:#354a6f;border-radius:.2rem}
.control-section{margin-bottom:6px;padding:.48rem .66rem;border-radius:.4rem;background:#1c2833b5;color:#ddd;borderxx:1px solid #2d3543b8}
.section-title{font-weight:600;font-size:.75rem;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px;color:#f7b632;padding-bottom:.3rem}
.section-title.b-t{border-bottom:1px solid #2d3543b8}
.observation-grid{display:flex;gap:.4rem;width:100%;flex-wrap:nowrap;box-sizing:border-box;align-items:flex-start}
.observation-column{display:flex;flex-direction:column;gap:.4rem;flex:1 1 auto;min-width:0;box-sizing:border-box;background:none;border:1px solid #2d3543b8;border-radius:.2rem;padding:.3rem;transition:background .2s ease}
.observation-column:hover{border-color:#303f59}
.column-title{color:#838d99;margin-bottom:.4rem}
.radio-label{display:flex;align-items:center;gap:.35rem;cursor:pointer;flex:1 1 auto;min-width:0;padding:.1rem .2rem;border-radius:.3rem;transition:background .15s ease}
.radio-label:hover{background:#ffffff0d}
.radio-label.radio-row{justify-content:center}
.radio-rowcont{flex:1 1 25%;text-align:center}
.radio-inputxx{accent-color:#fff000;width:1rem;height:1rem;cursor:pointer;background-color:red}
.radio-input{appearance:none;-webkit-appearance:none;width:18px;height:18px;border:2px solid #303f59;border-radius:50%;position:relative;cursor:pointer}
.radio-input:checked{border-color:#669fff;background-color:#669fff}
.radio-input:checked::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;background:#fff;border-radius:50%}
.radio-text{color:#ddd;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-word}
.footer-info{font-size:.65rem;color:#838d99;font-weight:700;padding-top:5px}
.slider-adjust{background-color:#283a4b;color:#9bb3d9;border:2px solid #141414;border-radius:4px;width:22px;height:22px;font-size:16px;font-weight:500;line-height:1;cursor:pointer;transition:background .2s ease,color .2s ease,border .2s ease}
.slider-adjust:hover{background-color:#2a3b55;color:#c5daff;border-color:#4d6387}
.slider-adjust:active{background-color:#3d5174}
#info-footer{background:#1c2833b5;border-top:1px solid #2d3543b8;padding:10px 3vw 8px;display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:70px}
#infocont{flex:0 1 auto;display:flex;flex-direction:column;min-width:0}
.info-top-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
#observation-params{color:#7ea1db;flex:0 1 auto;text-align:left;padding-top:8px}
#share-container{flex:0 0 auto;padding-top:6px}
#share-url-button{background:#4a81ff;color:#fff;cursor:pointer;transition:all .2s;border-radius:2rem;font-weight:400;white-space:nowrap;padding:6px 14px 6px 6px;border:none;height:34px}
#share-url-button:hover{background:#015ef5;color:#fff}
#share-url-button:active{background:#e3bc6fa8}
#share-url-button.copied{background:#937334;color:#fff}
span.share-url-icon {background: #015ef5;width: 22px;height: 22px;display: inline-block;text-align: center;border-radius: 50%;margin-right: 5px}
#user-info{color:#838d99;font-weight:700;font-size:.65rem;text-align:left}
#footer-logo{display:flex;align-items:flex-end;flex-shrink:0;flex-direction:column;gap:12px}
#footer-logo a{display:block;line-height:0}
#footer-logo img{width:120px;height:auto;display:block}
#footer-logo .footer-info a{display:inline-block;line-height:unset;color:#ddd;font-weight:500;background:#354a6f;border-radius:.2rem;padding:1px 8px;text-decoration:none;margin-left:12px}
#footer-logo .footer-info #footerlinks{white-space:nowrap}
@media (max-width: 900px) {
html,body{overflow-y:auto;overflow-x:hidden;height:auto}
#app-container{height:auto;min-height:100vh}
#main-content{flex-direction:column;overflow:visible}
#canvas-container{order:1;width:100vw;height:auto;min-height:300px;max-height:70vh;aspect-ratio:1 / 1}
#controls-panel{order:2;width:100%;height:auto;max-height:none}
#observation-params{width:100%}
#footer-logo .footer-info #footerlinks{display:flex;justify-content:center;white-space:nowrap}
#footer-logo .footer-info a{margin:16px 11px;padding:6px 16px}
#info-footer{flex-direction:column;align-items:flex-start;gap:10px;padding:15px}
#object-name{font-size:2rem;width:100%;position:absolute;right:0;left:.5rem;top:.5rem}
#infocont{width:100%;text-align:center;align-items:center}
.info-top-row{flex-direction:column;align-items:center;gap:10px;width:100%}
#observation-params{width:100%;text-align:center;padding-top:0;font-size:.85rem;font-weight:600;line-height:1.5rem}
#share-container{width:100%}
#share-url-button{width:100%;max-width:100%;padding:10px 12px}
#user-info{width:100%;text-align:center;font-size:11px;margin-top:32px}
#footer-logo{width:100%;align-items:center;margin-top:10px}
}
@media (max-width: 500px) {
#controls-panel{padding:10px}
.button-group{grid-template-columns:1fr}
#canvas-container{max-height:60vh}
#object-name{font-size:1.5rem}
#observation-params{font-size:12px}
#footer-logo img{width:100px}
}
@media (max-width: 320px) {
.observation-grid{flex-wrap:wrap}
.observation-column{flex:1 1 100%}
}
/* Select dla teleskopów */

.t-list-section {
    padding: 1px 1px 7px 1px;
}

.telescope-select {
	width: 100%;
	padding: 10px;
	background: #13151a;
	color: #ddd;
	border: 1px solid #7ea1db;
	border-radius: 4px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: border-color 0.2s;
}

.telescope-select:hover {
	border-color: #4d6387;
}

.telescope-select:focus {
	outline: none;
	border-color: #669fff;
}

.telescope-select option {
	background: #354a6f;
	color: #ddd;
	padding: 16px 8px;
}

.telescope-select optgroup {
	background: #29364d;
	colorxx: #bb8c2c;
	colorxx: #f7b632;
	colorxx: #3b74f7;
	color:#fff;
	font-weight: 500;
	font-style: normal;
}

/* === pomoc === */


/* --- Overlay --- */
#help-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #1f2b3585;
  background: #354a6f57
  backdrop-filterxx: blur(2px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  overflow-y: auto;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
  background-image: url(../img/milky.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  scroll-padding-top: 26px; /* <– odstęp od góry przy przewijaniu do elementu */
}

/* Ukryty stan */
#help-overlay.help-hidden {
  display: none;
}

/* --- Treść okna pomocy --- */
.help-content {
  background: #1f2b35;
  color: #bbc6d1;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  padding: 24px 28px;
  width: 90%;
  max-width: 950px;
  position: relative;
  animation: fadeInUp 0.4s ease;
  line-height: 1.9rem;
}

.help-content h1 {
  margin-top: 0;
  font-size: 2em;
  color: inherit;
  padding-bottom: 33px;
  font-weight: 300;
  line-height:1.3em;
}

.help-podtyt {
    display: block;
    font-size: .9rem;
	text-transform: uppercase;
}

.help-content p {
  color: inherit;
  line-height: inherit;
  margin-top: 0.4em;
}

.help-content a {
  color: #6491dc;
}

.help-content strong {
  color: #fff;
}

.help-content p {
  padding: 8px 0;
}

.help-content p.help-maly {
    font-size: .75rem;
    line-height: 1.8em;
}

/* --- Przycisk zamknięcia --- */
.help-close {
  position: sticky;
  top: -45px;
  float: right;
  background: #3b74f7;
  color: white;
  border: none;
  padding: 0 9px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  z-index: 10000;
}

a.help-close {
	color:#fff;
	text-decoration:none;
}

.help-close:hover {
  background: #015ef5;
}

/* --- Animacja wejścia --- */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Link w stopce --- */
#help-link {
  color: #99f;
  text-decoration: none;
  cursor: pointer;
}

#help-link:hover {
  text-decoration: underline;
}

.faq-item {
  border-top: 1px solid rgb(255 255 255 / 16%);
  margin-bottom: 10px;
}

.faq-question {
  background: none;
  border: none;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #669fff;
  color: #f7b632
}

.faq-item.active .faq-question {
  color: #f7b632; /* ten sam żółty co w :hover */
}

.faq-item .faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
  padding-left: 2.5em;
}

.faq-item.active .faq-answer {
  max-height: none;
  opacity: 1;
}

.help-content ul,
.help-content ol {
  margin: 0.8em 0 0.8em 1.8em; /* odstępy wokół listy */
  padding-left: 1em;
  color: inherit; 
  line-height: inherit;
}

/* Punktory dla list nieuporządkowanych */
.help-content ul {
  list-style-type: disc;
}

/* Numeracja dla list uporządkowanych */
.help-content ol {
  list-style-type: decimal;
}

/* Odstępy między elementami listy */
.help-content li {
  margin-bottom: 0.4em;
}

/* Drobne upiększenie punktorów / numerów */
.help-content li::marker {
  color: #888; /* delikatniejszy kolor */
  font-size: 0.95em;
}

a.helpicon {
	color: #4f6da3;
	color: #7b653a;
}

a.helpicon:hover {
	color: #b99f6d;
}

a.helpicon i.iconify {
	vertical-align:-4px;
}

@media (min-width: 901px) {
	.help-close {
		font-size: .8em;
		padding: 0px 9px;
	}
}

  
/* === Wersja mobilna (pełny ekran + uproszczony przycisk zamknięcia) === */
@media (max-width: 900px) {
  #help-overlay {
    align-items: stretch;
    padding: 0;
    background: rgba(31, 43, 53, 0.92); /* lekko przyciemnione, NIE przezroczyste */
    backdrop-filter: none; /* zapobiega efektowi przezroczystości przy scrollu */
  }

  .help-content {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    padding: 18px 20px 40px;
    box-shadow: none;
    background: #1f2b35; /* pełne, nieprzezroczyste tło */
    overflow-y: auto; /* wymusza scrollowanie wewnątrz */
    -webkit-overflow-scrolling: touch; /* płynne przewijanie i brak cieni */
    position: relative;
    z-index: 1;
  }
  
  .help-close {
	font-size: .8em;
    position: fixed;
    top: 20px;
    right: 30px;
	padding: 0 9px;
  }
  
 
  .help-close:not(#back-to-sim) {
    border-radius: 50%;
    width: 38px;
    height: 38px;
	background: #3b74f7;
    color: #fff;
    padding: 0 9px;
    font-size: 1.3em;
    line-height: 38px;
    text-align: center;
    font-weight: 600;
	right: 20px;
  }


  /* Ukryj tekst "ZAMKNIJ" przy mobilnym widoku */
  .help-close .close-text {
    display: none;
  }
}

#faq-container h2 {
    font-weight: 600;
    font-size: 1.2rem;
    font-family: Open Sans, Inter, sans-serif;
}

#faq-container .faq-item.active .faq-question h2 {
    font-weight: 600;
}

#expand-collapse-controls {
	text-align: left;
	margin-bottom:12px;
}

a.helpzwin {
    text-decoration: none;
    font-size: .8rem;
    font-weight: 400;
    margin-right: 6px;
}


/* === alerty powiększenie === */


span.x15dplus {
    position: relative; /* potrzebne dla pseudo-elementów */
    color: #000;
    background: #fbff00;
    font-size: 9px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    vertical-align: 2px;
    z-index: 1;
}

/* promieniowanie */
span.x15dplus::before,
span.x15dplus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fbff005c;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    animation: pulse 2s infinite;
}

/* druga fala dla efektu ciągłości */
span.x15dplus::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}


span.x2dplus {
    position: relative; /* potrzebne dla pseudo-elementów */
    color: #fff;
    background: #e15016;
    font-size: 9px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    vertical-align: 2px;
    z-index: 1;
}

/* promieniowanie */
span.x2dplus::before,
span.x2dplus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e150169c;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    animation: pulse 2s infinite;
}

/* druga fala dla efektu ciągłości */
span.x2dplus::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/*

span.x2dplus {
    color: #fff;
    background: #e15016;
    font-size: 9px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 23px;
    text-align: center;
    border-radius: 22px;
    vertical-align: 2px;
}
*/

span.plus {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    position: relative;
    top: -11px;
    left: -6px;
}

span.pluscont {
    margin: 0 -4px 0 4px;
    display: inline-block;
}

span.pluscont a {
    text-decoration:none;
}

span.plusiddle {
    color: #fff;
    background: #666;
    font-size: 9px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: inline-block;
    line-height: 23px;
    text-align: center;
    border-radius: 22px;
    vertical-align: 2px;
}

span.plusiddle::before,

