/* timeline_hint.css */

.timeline-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.timeline-hint.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline-hint__arrow {
  width: 46px;
  height: auto;
  display: block;
}

/* mobile arrow hidden on desktop */
.timeline-hint__arrow--mobile {
  display: none;
}

.timeline-hint__text {
  font-family: "Gluten", cursive;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* mobile text hidden on desktop */
.timeline-hint__text--mobile {
  display: none;
}

@media (max-width: 720px) {
  .timeline-hint {
    top: 50%;
    left: 50%;
    margin-top: 0;
    margin-left: 20px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    transform: translateY(-50%) translateX(0);
  }
  .timeline-hint.is-shown {
    transform: translateY(-50%) translateX(0);
  }

  /* swap arrows: hide desktop, show mobile */
  .timeline-hint__arrow--desktop {
    display: none;
  }
  .timeline-hint__arrow--mobile {
    display: block;
    width: 34px;
  }

  /* text: shared sizing + swap labels */
  .timeline-hint__text {
    font-size: 15px;
    margin-top: 15px;
  }
  .timeline-hint__text--desktop {
    display: none;
  }
  .timeline-hint__text--mobile {
    display: inline;
  }
}
