/* V5: one continuous cycle ring and a normalized partner-logo marquee. */
.jh-cycle {
  width: 176px;
  height: 176px;
}

.jh-cycle::before {
  inset: 41px;
  border: 1px solid color-mix(in srgb, var(--jh-accent) 17%, transparent);
  background: radial-gradient(circle, rgba(255,255,255,.98) 0 61%, var(--jh-soft) 63% 100%);
}

.jh-cycle .jh-loop:nth-child(n+2) {
  display: none !important;
}

.jh-cycle .jh-loop:first-child {
  display: block;
  box-sizing: border-box;
  z-index: 2;
  left: 13px;
  top: 13px;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from -8deg,
      var(--jh-accent) 0 27%,
      color-mix(in srgb, var(--jh-accent) 20%, transparent) 27% 33%,
      color-mix(in srgb, var(--jh-accent) 88%, white) 33% 60%,
      color-mix(in srgb, var(--jh-accent) 20%, transparent) 60% 66%,
      color-mix(in srgb, var(--jh-accent) 72%, white) 66% 94%,
      color-mix(in srgb, var(--jh-accent) 20%, transparent) 94% 100%
    );
  opacity: 1;
  transform: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
}

.jh-cycle .jh-loop:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(130deg, rgba(255,255,255,.65), transparent 43%);
}

.jh-cycle .jh-loop:first-child::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 45px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid var(--jh-accent);
  transform: rotate(57deg);
}

.jh-cycle-label {
  inset: 51px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.jh-logic-step--1 { top: -11px; }
.jh-logic-step--2 { right: -35px; bottom: 11px; }
.jh-logic-step--3 { left: -35px; bottom: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .jh-cycle .jh-loop:first-child {
    animation: jh-single-cycle-turn 12s linear infinite !important;
  }
  .jh-flow-card--legacy .jh-cycle .jh-loop:first-child {
    animation-duration: 19s !important;
  }
  @keyframes jh-single-cycle-turn { to { rotate: 1turn; } }
}

.brand-logo-wrapper.jh-partner-wrapper {
  display: block !important;
  width: 100%;
  max-width: none;
  overflow: visible;
}

.jh-partner-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.jh-partner-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
}

.jh-partner-logo {
  display: grid;
  flex: 0 0 212px;
  place-items: center;
  width: 212px;
  height: 76px;
  padding: 8px 11px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.38);
  transition: background-color .25s ease, transform .25s ease;
}

.jh-partner-logo:hover {
  background: rgba(255,255,255,.82);
  transform: translateY(-3px);
}

.jh-partner-crop {
  display: block;
  flex: none;
  background-image: url('/jinghong-partners-source.png');
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .jh-partner-track { animation: jh-partner-scroll 34s linear infinite; }
  .jh-partner-marquee:hover .jh-partner-track { animation-play-state: paused; }
  @keyframes jh-partner-scroll { to { transform: translateX(calc(-50% - 11px)); } }
}

@media (max-width: 767px) {
  .jh-partner-logo { flex-basis: 184px; width: 184px; height: 68px; }
  .jh-partner-track { gap: 14px; }
  .jh-logic-step--2 { right: -25px; }
  .jh-logic-step--3 { left: -25px; }
}

@media (max-width: 479px) {
  .jh-cycle { margin-left: -36px; transform: scale(.61); }
}
