:root {
  /*--highlightColor: #ffe434; #86cb8c*/
   --highlightColor: #ebd94f;

}

      body,
      html {
        margin: 0;
        padding: 0;
        background: #161818;
        /* background: #181d1a; */
        color: #fff;
        font-family: serif;
        font-weight: 300;
        letter-spacing: 0.01em;  
        font-size: 16px;
        overflow-x: hidden;
}
      #svg {
        height: 80000px;
        width: 100%;
        z-index: 1;
      }
      #mapConnectorOverlay {
        height: 180000px;
      }

      #navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        margin: 0;
        z-index: 10;
      }

      .balloonButton {
        cursor: pointer;
      }
      .keywords {
        color: white;
        margin: 0;
        text-align: right;
        vertical-align: middle;
        font-size: 0.05rem;
      }

      #map {
        position: fixed;
        top: 50%;
        left: 50%;
        margin: 0;
        transform: translate(-50%, -50%);
      }

      .tooltip {
        position: absolute;
        color: white;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
        pointer-events: none;
        opacity: 0;
        font-size: 1rem;
        z-index: 100;
      }



#buttons {
  position: fixed;
  top: 0 !important;
  right: 10px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
  margin-top: 1rem !important;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  pointer-events: none;
}

#buttons > *,
#buttons .material-symbols-outlined,
#buttons input,
#buttons label,
#buttons button {
  pointer-events: auto;
}

#buttons::-webkit-scrollbar {
  width: 6px;
}

#buttons::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

#buttonsTitle {
  margin: 0 8px 10px 0;
  font-family: serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: right;
}

#buttonRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Gemeinsames Styling für beide Icon-Buttons im Kreis */
#buttons .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;           /* Durchmesser Kreis */
  height: 40px;
  border-radius: 999px;  /* macht den Kreis */
  background: #ffffff16;
  color: #ffffff;
  margin: 0.5rem;
  font-size: 22px;       /* Icon-Größe im Kreis */
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  user-select: none;
  -webkit-user-select: none;
}

#legendButton {
  position: fixed;
  right: 10px;
  bottom: 18px;
  z-index: 900;
}

#legendButtonInner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 64px;
  padding: 10px 14px;
  border: none;
  border-radius: 18px;
  background: #ffffff16;
  color: #ffffff;
  font-family: serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.05;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

      .mapTitle {
        margin: 0;
        text-align: center;
        line-height: 1.05;
      }

      /* Title parts: <span class="mapTitlePlace">Place</span><span class="mapTitleYear">(Year)</span> */
      .mapTitlePlace {
        font-weight: bold;
      }

      .mapTitleYear {
        font-weight: light;
        margin-left: 5px; /* gap to the right of the place */
        opacity: 0.6;
      }

      #mapContainer {
        position: absolute;
        display: inline;
        padding: 0px;
      }

      .mapSVGs {
        position: absolute;
        top: 0;
        left: 0;
      } /* we rotate this element */

      .mapG{
      }

      .mapMarkersG{
        pointer-events: fill;
      }

.mapTitleScopeIcon svg {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  min-width: 0.8rem;
  min-height: 0.8rem;;
  max-width: 0.8rem;
  max-height: 0.8rem;
}

#imageBar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Jedes Bild in der Leiste */
#imageBar img.imageBarImg {
  position: absolute;
  transform: translate(-50%, -50%) scale(1);
  width: auto;
  height: auto;
  max-width: 0%;          /* wird per JS animiert */
  max-height: 0%;         /* wird per JS animiert */
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform-origin: center center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
  cursor:zoom-in;
}

#imageBar img.imageBarImg:hover {
  transform: translate(-50%, -50%) scale(1.5); /* translate bleibt erhalten */
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Globaler Overlay-Pfeil für Thumbnails */
#imageBarThumbArrowOverlay {
  position:fixed;
  width:20px;
  height:20px;
  border-radius:999px;
  background-color:#5685d6;  /* blau wie gewünscht */
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 4px rgba(0,0,0,0.6);
  opacity:0;
  pointer-events:none;       /* Pfeil blockiert nichts */
  z-index:10000;
  transition: opacity 0.1s ease;
}

#imageBarThumbArrowOverlay svg {
  width:12px;
  height:12px;
}

#imageBarThumbArrowOverlay svg path {
  fill:#ffffff;
}

/* deine Keyword-Styles lassen wir wie gehabt */
#imageBar span.keywordBarText {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 0rem;         /* Start bei 0, wächst über JS */
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 1px rgba(0,0,0,0.7),
    0 2px 3px rgba(0,0,0,0.5);
  pointer-events: auto;
  opacity: 0;
}

.seriesThumb{
  cursor:zoom-in;
}

.keywordBarTextArrow {
  margin-left: 0.35em;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  position: relative;
  top: 7px;
}

.keywordBarTextArrow svg {
  width: 16px;
  height: 16px;
  display: block;
  background: #c7bcf0;
  border-radius: 999px;
  padding: 3px;
}

.keywordBarTextArrow svg path {
  fill: #000000;
}

#imageBar span.keywordBarText:hover .keywordBarTextArrow {
  opacity: 1;
}

#centerDebugLine{
    display:none;
}

#centerDebugLabel{
    display:none;
}

.mapDivs.isPinned .mapG {
  opacity: 1 !important;       /* z.B. volle Sichtbarkeit */
}

/* Globe styling for follower map */
.sphere {
  fill: #272727;
}

.graticule {
  fill: none;
  stroke: #343434;
  stroke-width: 0.7px;
  stroke-opacity: 0.7;
}

.land {
  fill: #6b6b6b;
  stroke: #303030;
  stroke-width: 0.5px;
}

#yearOverlay{
z-index:100;
font-size: 1.2rem;
font-weight: 300;
}

path.routePathProgress{
    pointer-events: none;
}

/* --- TIMELINE --- */

#timeline {
  /* display:none; */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;                      /* full viewport height */
  width: 90px!important;                       /* tweak 100–200px as you like */
  z-index: 60;
  pointer-events: none;
}

#timeline svg {
  width: 100%;
  height: 100vh;                      /* match viewport */
  display: block;
}

/* custom tick line */
#timeline .timeline-tickline {
  stroke: #ffffff;
  stroke-width: 1px;
  opacity: 0.3;
}

/* year labels on the right */
#timeline .timeline-label {
  fill: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  opacity: 0.4;
  font-family: sans-serif;
  pointer-events: none;
}

.year-bar{
  pointer-events: none;
}

#followerLabelText{
    font-family: sans-serif;
}

.ycPlaceLabel{
    font-family: sans-serif;
    font-size: 0.75rem;
    text-align: right;
    margin-top: 2.8rem;
}

.year-indicator-text{
font-family: sans-serif;
font-size:0.75rem;
}

#keywordPanel {
  position: fixed;
  right: 3rem;        /* etwas links vom Icon */
  top: 6.2rem;          /* etwas unterhalb der Top-Leiste */
  width: 260px;
  max-height: 62vh;
  padding: 5px;
  background: rgba(41, 42, 42, 0.962);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.5);
  /* backdrop-filter: blur(8px); */
  z-index: 999;
  text-align: center;
  display: none;
  color: #fff;
}

#keywordPanelHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: bold;
  font-family: serif;
}



#keywordPanelTitle {
  font-family: serif;
  font-size: 1rem;
  margin-right: 50px;
}

#keywordPanelSearch {
  width: calc(90% - 50px);
  margin-bottom: 8px;
  padding: 4px 8px;
  padding-right: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(51, 52, 52, 0.98);
  color: #fff;
  font-family: sans-serif;
  font-size: 0.75rem;
  text-align: center;
}

#keywordPanelSearch::placeholder {
  color: rgba(255,255,255,0.4);
}

#keywordPanelList {
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}

.keywordRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 0;
  font-family: sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
}

.keywordRow:hover {
  background: rgba(255,255,255,0.05);
}

.keywordLabel {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.keywordCount {
  flex: 0 0 auto;
  font-family: sans-serif;
  font-size: 0.7rem;
  opacity: 0.6;
}

.keywordBar {
  flex: 0 0 40px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.keywordBarFill {
  height: 100%;
  background: linear-gradient(90deg, var(--highlightColor), #ffffff);
}

.yearSpan {
  display: inline-block;
  max-width: 25ch;
  white-space: normal;
  overflow-wrap: break-word; /* moderner als word-break */
  word-break: normal;
  text-align: right;
  margin-right: 5px;
}

#keywordPanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#keywordClearButton {
    margin-right: 5px;
    font-family: sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.6;
}

#keywordClearButton:hover {
  opacity: 1;
}

.timeline-event-dot {
  transition: opacity 0.15s ease;
}

.timeline-event-bigIcon {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hover: kleiner Punkt weg, großer gelber Kreis mit schwarzem Pfeil da */
.timeline-event:hover .timeline-event-dot {
  opacity: 0;
}

.timeline-event:hover .timeline-event-bigIcon {
  opacity: 1;
}

.timeline-event{
  display:none;
}

#monadicWallArrow {
  position: fixed;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

/* SVG auf 20px skalieren */
#monadicWallArrow svg {
  width: 24px;
  height: 24px;
  display: block;
}


#activeFilterBox {
  margin-top: 2rem;
  margin-right: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  background: #ffffff16;
  display: none; 
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

#activeFilterBox .activeFilterLabel {
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

#activeFilterKeyword {
  font-family: sans-serif
}

#activeFilterBox .activeFilterArrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

#activeFilterReset {
  cursor: pointer;
  opacity: 0.7;
  font-family: sans-serif;
  font-size: 0.8rem;
  line-height: 1;
}

#activeFilterReset:hover {
  opacity: 1;
}


#globalPathFollower{
    z-index: 9999;
}



#layoutScrub {
  width: 100px;
  margin: 2px 8px 0 0;
  z-index: 900;
  opacity: 0.92;
  pointer-events: auto;
  -webkit-appearance: none;
}

#layoutSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

#layoutSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#layoutSlider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.45),
    0 0 8px rgba(255,255,255,0.25);
}

#layoutSlider::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

#layoutSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: none;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.6);
}




.mapTitleCount {
  /* count goes on its own line under place/year */
  display: block;
  width: fit-content;
  margin: 5px auto 0 auto;

  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  gap:0px;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;

  border-radius: 999px;
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.4);

  color: #ffffff;
  line-height: 18px;
  font-weight: 600;
  font-size: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
  user-select: none;
  transition: opacity 0.15s ease;
}

.ycCount{
  width: fit-content;
  margin-right: 5px;
  font-family: sans-serif;
  vertical-align: middle;

  height: 18px;
  min-width: 18px;
  padding-left: 6px;
  padding-right:0px;
  padding-top: 2px;
  padding-bottom: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.4);

  color: #ffffff;
  font-size: 0.6rem;
  line-height: 18px;
  font-weight: 600;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  user-select: none;
  position: relative;
  top: -2px; 
  transition: opacity 0.15s ease;
}

.countNum{
  font-size: 10px;
  margin:0px;
}

.countArrow{
  font-size:10px;
  margin:0px;
  line-height:1;
  transform: translateY(1px);
  opacity:0.6;
  transition: opacity 0.15s ease;
}

.mapTitleCount:hover .countArrow{
  opacity:1;
  color:var(--highlightColor);
}

.ycCount:hover .countArrow{
  opacity:1;
  color:var(--highlightColor);
}

.mapTitleCount:hover{
  opacity:1;
  color:var(--highlightColor);
}

.ycCount:hover{
  opacity:1;
  color:var(--highlightColor);
}

#hierarchyMode{
  display:flex;
  flex-direction:column;   /* stack items vertically */
  gap:0.5rem;
  align-items:flex-end;  /* align left instead of right */
  margin-top:2rem;
  margin-right:6px;
  user-select:none;
}

#tilesPerRow{
  display:flex;
  flex-direction:column;   /* stack items vertically */
  gap:0.5rem;
  align-items:flex-end;  /* align left instead of right */
  margin-top:2rem;
  margin-right:6px;
  user-select:none;
}

#gridLayoutMode{
  display:flex;
  flex-direction:column;   /* stack items vertically */
  gap:0.5rem;
  align-items:flex-end;  /* align left instead of right */
  margin-top:2rem;
  margin-right:6px;
  user-select:none;
}

#hierarchyMode p{
  margin:0 0 0.5rem 0;
  font-size:1rem;
}

#tilesPerRow p{
  margin:0 0 0.5rem 0;
  font-size:1rem;
}

#gridLayoutMode p{
  margin:0 0 0.5rem 0;
  font-size:1rem;
}


.hmOpt{
  display:flex;            /* keeps radio + text nicely aligned */
  align-items:center;
  font-size:0.75rem;
  cursor:pointer;
  color:#ffffff;
  font-family: sans-serif;
}

input[type="radio"] {
  accent-color: var(--highlightColor);
  cursor:pointer;
}


.keywordBarText,
.imageBarImg,
.timeline-label,
#buttons,
#journeyHint,
#journeyHintTop,
.yearSpan,
#timeline,
#helpCarouselFooter,
#helpClose {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;

}


.keywordBarTextArrow{
  visibility: hidden;
}

#monadicWallArrow{
    visibility: hidden;
}


.seriesLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
}

.seriesLightboxBackdrop {
  position: absolute;
  inset: 0;
}

.seriesLightboxStage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seriesLightboxImageWrap {
  position: relative;
  max-width: 88vw;
  max-height: 82vh;
  pointer-events: auto;
  will-change: transform;
  cursor: zoom-in;
}

.seriesLightboxImage {
  display: block;
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.seriesLightboxTop {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}


.seriesLightboxClose,
.seriesLightboxInfoBtn,
.seriesLightboxNav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  color: #ffffff;
  background: #ffffff16;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.seriesLightboxClose,
.seriesLightboxInfoBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.seriesLightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  z-index: 20;
  pointer-events: auto;
}

.seriesLightboxPrev {
  left: 18px;
}

.seriesLightboxNext {
  right: 18px;
}

.seriesLightboxThumbs {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 6px 2px;
  white-space: nowrap;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  z-index: 20;
}

.seriesLightboxThumbs::-webkit-scrollbar {
  height: 6px;
}

.seriesLightboxThumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.seriesLightboxThumb {
  width: auto;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}

.seriesLightboxInfo {
  position: absolute;
  right: 60px;
  bottom: 144px;
  z-index: 20;
  max-width: 360px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  backdrop-filter: blur(6px);
  display: none;
}

.seriesLightboxInfo.visible {
  display: block;
}

.seriesLightboxInfo table {
  border-collapse: collapse;
  font-size: 1rem;
}

.seriesLightboxInfo td {
  padding: 3px 8px 3px 0;
  vertical-align: top;
}

.seriesLightboxInfo td:nth-child(1) {
  font-weight: normal;
  opacity: 0.7;
}

/* zweite Spalte */
.seriesLightboxInfo td:nth-child(2) {
  font-weight: 500;
  font-family: sans-serif;
}

#followerResizeHint{
cursor:nwse-resize;
}

.followerResizeHintBg {
  cursor: nwse-resize;
  fill: var(--highlightColor);
  transition: fill 0.15s ease;
}

#followerResizeHint:hover .followerResizeHintBg {
  fill: white;
}

#followerResizeHintIcon{
    cursor:nwse-resize;

}

.mapSVGs{
  cursor: pointer;
}

#journeyHint,
#journeyHintTop {
  position: fixed;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  z-index: 2000;
}

.journeyHintArrow {
  font-size: 26px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.journeyHintArrow.is-down {
  animation: journeyHintBlinkDown 1.1s ease-in-out infinite;
}

.journeyHintArrow.is-up {
  animation: journeyHintBlinkUp 1.1s ease-in-out infinite;
}

@keyframes journeyHintBlinkDown {
  0% { opacity: 0.35; transform: translateY(0px); }
  50% { opacity: 1; transform: translateY(4px); }
  100% { opacity: 0.35; transform: translateY(0px); }
}

@keyframes journeyHintBlinkUp {
  0% { opacity: 0.35; transform: translateY(0px); }
  50% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0.35; transform: translateY(0px); }
}


#helpOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
}

#helpPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 2rem;
  border-radius: 16px;
  background: #242727d7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9001;
  display: none;
}

#helpClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#helpClose:hover {
  background: rgba(255, 255, 255, 0.16);
}

#helpPopupInner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#helpCarousel {
  width: 100%;
}

.helpSlide {
  display: none;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 22px;
  align-items: stretch;
}

.helpText {
  min-width: 0;
}

.helpLabel {
  margin: 0 0 6px 0;
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.helpTitle {
  margin: 0 0 14px 0;
  color: white;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: normal;
}

.helpText p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.helpMedia {
  display: flex;
  align-items: stretch;
  min-height: 360px;
}

.helpPlaceholderImage {
  width: 100%;
  min-height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.helpPlaceholderImage .material-symbols-outlined {
  font-size: 48px;
}

#helpCarouselFooter {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 14px;
}

#helpPrev,
#helpNext {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#helpPrev:hover,
#helpNext:hover {
  background: rgba(255, 255, 255, 0.16);
}

#helpPrev:disabled,
#helpNext:disabled {
  opacity: 0.35;
  cursor: default;
}

#helpDots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.helpDot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}

.helpDot.is-active {
  background: #ffffff;
}

.helpVideo{
  width:100%;
  height:100%;
  min-height:360px;
  border-radius:12px;
  display:block;
  object-fit:contain;
  pointer-events: none;
}



.helpSkipIntroBtn {
  margin-top: 1.2rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;

  background: var(--highlightColor);
  color: #000;

  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.helpSkipIntroBtn:hover {
  background: var(--highlightColor);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.helpSkipIntroBtn:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 760px) {
  #helpPopup {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 18px 16px 16px 16px;
  }

  .helpSlide {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .helpPlaceholderImage {
    min-height: 180px;
  }

    .helpMedia {
    min-height: 220px;
  }
    .helpVideo {
    min-height: 220px;
  }
}


