/* Vontrail — numbered "no more" path (always-open bubbles, black theme) */

#vt-nomore-path.vt-path {
  position: relative;
  width: 100%;
}

.vt-path-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vt-path-line {
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 14;
  opacity: 0.55;
  animation: vtPathMarch 1.4s linear infinite;
}

/* green progress overlay — same shape, revealed top→down via clip-path */
.vt-path-progress {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 14;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.55));
  animation: vtPathMarch 1.4s linear infinite;
  --vt-progress-hide: 100%;
  clip-path: inset(0 0 var(--vt-progress-hide) 0);
  -webkit-clip-path: inset(0 0 var(--vt-progress-hide) 0);
  transition: none;
}

@keyframes vtPathMarch {
  to { stroke-dashoffset: -14.1; }
}

/* short wooden-sign style pad (rectangular pill) */
.vt-pad {
  position: absolute;
  left: 0;
  top: 0;
  height: 30px;
  min-width: 46px;
  padding: 0 12px;
  margin: -15px 0 0 -23px;
  border-radius: 8px;
  border: none;
  background: #0a0a0a;
  color: #fff;
  font: 700 14px/1 Inter, -apple-system, sans-serif;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transform: scale(0.4) translateY(6px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 10px 22px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    background-color 0.25s ease,
    box-shadow 0.3s ease;
}

.vt-pad::after {
  /* subtle top pin like a sign nail */
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.vt-pad.vt-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.vt-pad:hover {
  transform: scale(1.12) translateY(-2px);
  background: #1a1a1a;
  box-shadow: 0 5px 0 rgba(0,0,0,0.32), 0 18px 32px rgba(0,0,0,0.28);
}

.vt-pad:active { transform: scale(0.96) translateY(0); }

.vt-pad:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 3px;
}

/* Always-visible bubble */
.vt-pop {
  position: absolute;
  left: 0;
  top: 0;
  width: min(290px, 82vw);
  z-index: 3;
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vt-pop.vt-in { opacity: 1; transform: translateY(0) scale(1); }

.vt-pop-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #0a0a0a;
  border-radius: 14px;
  padding: 12px 14px 13px;
  box-shadow: 4px 4px 0 #0a0a0a, 0 14px 28px rgba(0,0,0,0.08);
}

/* tail — bubble sits above pad, tail points DOWN */
.vt-pop-card::before,
.vt-pop-card::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

.vt-pop-card::before {
  bottom: -12px;
  border: 12px solid transparent;
  border-top-color: #0a0a0a;
  border-bottom: 0;
}

.vt-pop-card::after {
  bottom: -9px;
  border: 10px solid transparent;
  border-top-color: #ffffff;
  border-bottom: 0;
}

/* bubble below pad, tail points UP */
.vt-pop--below .vt-pop-card { transform-origin: 50% 0%; }

.vt-pop--below .vt-pop-card::before {
  bottom: auto;
  top: -12px;
  border-top-color: transparent;
  border-bottom-color: #0a0a0a;
  border-top: 0;
  border-bottom-width: 12px;
}

.vt-pop--below .vt-pop-card::after {
  bottom: auto;
  top: -9px;
  border-top-color: transparent;
  border-bottom-color: #ffffff;
  border-top: 0;
  border-bottom-width: 10px;
}

.vt-pop-step {
  display: inline-block;
  font: 700 9px/1 Inter, -apple-system, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #0a0a0a;
  border-radius: 999px;
  padding: 4px 9px 3px;
}

.vt-pop-problem {
  margin: 0;
  font: 800 15px/1.35 Inter, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.55);
  text-decoration-thickness: 2px;
}

.vt-pop-solution {
  margin: 7px 0 0;
  font: 400 13px/1.55 Inter, -apple-system, sans-serif;
  color: #3a3a3c;
}
