/* Fixed, draggable and pixel-crisp robot launcher. */
#jpzRobotDock {
  position: fixed;
  right: 40px;
  bottom: 92px;
  z-index: 9999;
  width: 122px;
  height: 138px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

#jpzRobot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 118px;
  height: 118px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  animation: jpz-robot-float 2.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px #0009);
  transition: filter .2s ease, transform .2s ease;
}

#jpzRobot:hover {
  filter: drop-shadow(0 14px 22px #000c) drop-shadow(0 0 12px #f4c43066);
}

#jpzRobot:focus-visible {
  outline: 3px solid #f4c430;
  outline-offset: 3px;
  border-radius: 26px;
}

#jpzRobot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

#jpzRobotDock.is-dragging {
  z-index: 10001;
}

#jpzRobotDock.is-dragging #jpzRobot {
  cursor: grabbing;
  animation: jpz-robot-drag-bounce .34s ease-in-out infinite alternate;
  filter: drop-shadow(0 16px 25px #000d) drop-shadow(0 0 16px #f4c43088);
}

#jpzRobotDock.is-dragging::after {
  content: "🏀 运球移动中";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  min-width: 104px;
  padding: 5px 9px;
  border: 1px solid #f4c430;
  border-radius: 999px;
  background: #0e1116eb;
  color: #f4c430;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 22px #0009;
}

.jpz-welcome-bubble {
  position: absolute;
  right: 101px;
  bottom: 80px;
  width: 250px;
  padding: 13px 15px;
  border: 1px solid #f4c430;
  background: #111e;
  color: #f4f5f7;
  border-radius: 16px 16px 4px 16px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 12px 36px #000b;
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease;
}

.jpz-bubble-label,
.jpz-bubble-text {
  display: block;
}

.jpz-bubble-label {
  margin-bottom: 4px;
  color: #f4c430;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
}

.jpz-bubble-text {
  color: #f4f5f7;
}

.jpz-welcome-bubble.is-paused .jpz-bubble-label::after {
  content: " · 已暂停";
  color: #8de0a4;
  letter-spacing: 0;
}

.jpz-bubble-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #f4c430;
  background: #f4c430;
  color: #15130d;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.jpz-bubble-link:hover,
.jpz-bubble-link:focus-visible {
  background: #ffd44c;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.jpz-welcome-bubble::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  background: #111;
  border-right: 1px solid #f4c430;
  border-bottom: 1px solid #f4c430;
  transform: rotate(45deg);
}

#jpzRobotDock.is-left-side .jpz-welcome-bubble {
  right: auto;
  left: 101px;
  border-radius: 16px 16px 16px 4px;
}

#jpzRobotDock.is-left-side .jpz-welcome-bubble::after {
  right: auto;
  left: 17px;
}

.jpz-welcome-bubble.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
}

@keyframes jpz-robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes jpz-robot-drag-bounce {
  from { transform: translateY(0) rotate(-1.5deg) scale(1.02); }
  to { transform: translateY(-5px) rotate(1.5deg) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  #jpzRobot,
  #jpzRobotDock.is-dragging #jpzRobot {
    animation: none;
  }

  .jpz-welcome-bubble {
    transition: none;
  }
}

@media (max-width: 760px) {
  #jpzRobotDock {
    right: 20px;
    bottom: 92px;
    width: 104px;
    height: 122px;
  }

  #jpzRobot {
    width: 98px;
    height: 98px;
  }

  .jpz-welcome-bubble {
    right: 82px;
    bottom: 70px;
    width: min(230px, calc(100vw - 140px));
    font-size: 12px;
  }

  #jpzRobotDock.is-left-side .jpz-welcome-bubble {
    right: auto;
    left: 82px;
  }
}

/* Two independent FAQ tickers: JPZ's six priority questions above, Modium below. */
.jpz-hot-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}

.jpz-hot-row + .jpz-hot-row {
  margin-top: 6px;
}

.jpz-hot-row-label {
  display: grid;
  place-items: center;
  border: 1px solid #3a4653;
  background: #111922;
  color: #aab5c1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
}

.jpz-hot-row-label--priority {
  border-color: #a77f15;
  background: #2a210a;
  color: #f4c430;
}

.jpz-hot-row .jpz-hot-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}

.jpz-hot-row .jpz-hot-question {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 42px;
  overflow: hidden;
  line-height: 1.35;
  animation: jpz-hot-question-in .24s ease-out;
}

@keyframes jpz-hot-question-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
