.n2-home-hero:has(.start-hint) {
  position: relative;
  z-index: 2;
}

.n2-btn.has-start-hint {
  position: relative;
}

.start-hint {
  --start-hint-shift: 0px;
  --start-hint-accent: #ff5226;
  --start-hint-hairline: color-mix(in srgb, var(--txt-header) 9%, transparent);
  --start-hint-tail: path("M0 7C2.8 7 4.4 5 5.7 2.2C6.3 .9 7.7 .9 8.3 2.2C9.6 5 11.2 7 14 7Z");
  --start-hint-bounce-duration: 2.2s;
  --start-hint-bounce-easing: cubic-bezier(0.33, 0, 0.3, 1);
  position: absolute;
  z-index: 3;
  top: calc(100% + 13px);
  left: 0;
  right: 0;
  pointer-events: none;
}

.start-hint::before,
.start-hint::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 14px;
  height: 7px;
  margin-left: -7px;
  clip-path: var(--start-hint-tail);
  animation: start-hint-bounce-tail var(--start-hint-bounce-duration) var(--start-hint-bounce-easing) infinite;
}

.start-hint::before {
  top: -7px;
  background-color: var(--start-hint-hairline);
}

.start-hint::after {
  top: -6px;
  background-color: var(--bg-header);
}

.start-hint-bubble {
  position: relative;
  display: block;
  width: max-content;
  margin-left: var(--start-hint-shift);
}

.start-hint-surface {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-color: var(--bg-header);
  box-shadow:
    0 0 0 1px var(--start-hint-hairline),
    0 2px 4px rgba(11, 11, 11, 0.05),
    0 10px 24px -6px rgba(11, 11, 11, 0.16);
  transform-origin: 50% 0;
  animation: start-hint-bounce-surface var(--start-hint-bounce-duration) var(--start-hint-bounce-easing) infinite;
}

.start-hint-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  color: var(--txt-header);
  font-family: var(--kr);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  animation: start-hint-bounce-label var(--start-hint-bounce-duration) var(--start-hint-bounce-easing) infinite;
}

.start-hint-label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--start-hint-accent);
  animation: start-hint-blink 2s ease-in-out infinite;
}

@keyframes start-hint-blink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--start-hint-accent) 40%, transparent);
  }

  50% {
    opacity: 0.35;
  }

  70% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--start-hint-accent) 0%, transparent);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--start-hint-accent) 0%, transparent);
  }
}

@keyframes start-hint-bounce-surface {
  0%,
  46%,
  100% {
    transform: translateY(0) scale(1, 1);
  }

  12% {
    transform: translateY(-7px) scale(0.993, 1.012);
  }

  24% {
    transform: translateY(0) scale(1.01, 0.988);
  }

  33% {
    transform: translateY(-3px) scale(0.997, 1.004);
  }

  41% {
    transform: translateY(0) scale(1.003, 0.996);
  }
}

@keyframes start-hint-bounce-tail {
  0%,
  24%,
  41%,
  46%,
  100% {
    transform: translateY(0);
  }

  12% {
    transform: translateY(-7px);
  }

  33% {
    transform: translateY(-3px);
  }
}

@keyframes start-hint-bounce-label {
  0%,
  24%,
  41%,
  46%,
  100% {
    top: 0;
  }

  12% {
    top: -7px;
  }

  33% {
    top: -3px;
  }
}

@media (max-width: 400px) {
  .start-hint {
    --start-hint-shift: -14px;
  }
}

@media (max-width: 374px) {
  .start-hint-label {
    padding: 4px 11px 4px 9px;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .start-hint {
    --start-hint-shift: -24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-hint::before,
  .start-hint::after,
  .start-hint-surface,
  .start-hint-label,
  .start-hint-label::before {
    animation: none;
  }
}

.start-hint--end {
  --start-hint-enter-delay: 0.5s;
  --start-hint-enter-duration: 0.7s;
  animation: start-hint-enter var(--start-hint-enter-duration) cubic-bezier(0.16, 1, 0.3, 1)
    var(--start-hint-enter-delay) both;
  transform-origin: 85% 0;
}

.start-hint--end .start-hint-bubble {
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 0;
}

.start-hint--end::before {
  background-color: color-mix(in srgb, var(--txt-header) 30%, transparent);
}

.start-hint--end::before,
.start-hint--end::after,
.start-hint--end .start-hint-surface,
.start-hint--end .start-hint-label {
  animation-delay: calc(var(--start-hint-enter-delay) + var(--start-hint-enter-duration));
}

@keyframes start-hint-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-hint--end {
    animation: none;
  }
}
