.jamo-popup-stroke {
  margin: 0.15rem 0 0.35rem;
}

.jamo-popup-stroke[hidden] {
  display: none !important;
}

.rk-stroke-svg {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.rk-stroke-svg--fill-trace {
  max-width: 200px;
}

.rk-stroke-shadow,
.rk-stroke-fill {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rk-stroke-start--lg {
  fill: #22c55e;
}

.rk-stroke-marker-num--lg {
  font-size: 16px;
  font-family: system-ui, sans-serif;
  pointer-events: none;
}

.rk-stroke-arrow {
  visibility: hidden;
}

.rk-stroke-svg--playing .rk-stroke-arrow {
  visibility: visible;
}

.rk-stroke-outline {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.rk-stroke-start {
  fill: #22c55e;
  vector-effect: non-scaling-stroke;
}

.rk-stroke-path {
  fill: none;
  stroke: var(--rk-stroke-color, #1f2937);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.rk-stroke-path--active {
  animation: rk-stroke-draw 0.65s ease forwards;
}

.rk-stroke-svg--timed .rk-stroke-path--active {
  animation-duration: var(--rk-stroke-ms, 1s);
}

.rk-stroke-path--done {
  stroke-dashoffset: 0;
}

.rk-stroke-marker {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rk-stroke-marker-badge {
  opacity: 0.95;
}

.rk-stroke-marker-dot {
  fill: #fff;
  stroke: #94a3b8;
  stroke-width: 1.2;
}

.rk-stroke-marker-num {
  font-size: 5.5px;
  font-weight: 700;
  fill: #fff;
  pointer-events: none;
}

.rk-stroke-marker--active,
.rk-stroke-marker--done,
.rk-stroke-svg--done .rk-stroke-marker {
  opacity: 1;
}

.rk-stroke-marker--active .rk-stroke-marker-num {
  fill: #fff;
}

.rk-stroke-marker--active .rk-stroke-marker-dot {
  stroke: #e85d4c;
  fill: #fff5f3;
}

@keyframes rk-stroke-draw {
  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.jamo-popup--stroke-only {
  width: max(220px, 22vw);
  max-width: 240px;
}

.jamo-popup--stroke-only .jamo-popup-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.jamo-popup--stroke-only .jamo-popup-head {
  justify-content: center;
  margin-bottom: 0.15rem;
}

.jamo-popup--stroke-only .jamo-popup-learn {
  margin-top: 0.55rem;
}

@media (hover: none) and (pointer: coarse) {
  .rk-stroke-svg {
    max-width: min(200px, 58vw);
  }
}
