* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #172334;
}

.pi-line-widget {
  --pi-accent: #0a5f99;
  --pi-accent-2: #158bd3;
  --pi-text: #172334;
  --pi-muted: #657184;
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 8px 0 22px;
  overflow: visible;
}

.pi-mobile-hint {
  display: none;
  margin: 0 10px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 95, 153, 0.18);
  border-radius: 12px;
  background: rgba(10, 95, 153, 0.07);
  color: #24435b;
  font-size: 14px;
  line-height: 1.35;
}

.pi-line-stage {
  position: relative;
  width: 100%;
  overflow: visible;
  line-height: 0;
}

.pi-line-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none !important;
  border-radius: 14px;
}

.pi-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pi-accent), #064978);
  color: #fff;
  font: 700 18px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(5, 45, 77, 0.28), 0 0 0 1px rgba(10, 95, 153, 0.25);
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.pi-hotspot::before,
.pi-hotspot::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid rgba(21, 139, 211, 0.42);
  animation: piPulse 2.1s ease-out infinite;
}

.pi-hotspot::after {
  inset: -17px;
  animation-delay: 0.75s;
  border-color: rgba(21, 139, 211, 0.24);
}

.pi-hotspot span {
  position: relative;
  z-index: 1;
}

.pi-hotspot:hover,
.pi-hotspot:focus-visible,
.pi-hotspot.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  background: linear-gradient(135deg, #117dbf, #063d66);
  box-shadow: 0 14px 32px rgba(5, 45, 77, 0.38), 0 0 0 4px rgba(21, 139, 211, 0.14);
}

@keyframes piPulse {
  0% {
    transform: scale(0.82);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.pi-floating-tooltip {
  position: absolute;
  z-index: 20;
  width: min(370px, calc(100% - 24px));
  padding: 16px 18px 17px;
  border: 1px solid rgba(10, 95, 153, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pi-text);
  box-shadow: 0 18px 50px rgba(12, 33, 55, 0.22);
  line-height: 1.42;
  backdrop-filter: blur(12px);
}

.pi-floating-tooltip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--pi-arrow-left, 50%);
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid rgba(10, 95, 153, 0.14);
  border-top: 1px solid rgba(10, 95, 153, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.pi-floating-tooltip.is-above::before {
  top: auto;
  bottom: -8px;
  border: 0;
  border-right: 1px solid rgba(10, 95, 153, 0.14);
  border-bottom: 1px solid rgba(10, 95, 153, 0.14);
}

.pi-tooltip-close {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 95, 153, 0.08);
  color: #1d4868;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pi-tooltip-kicker {
  margin: 0 34px 6px 0;
  color: var(--pi-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pi-tooltip-title {
  margin: 0 28px 8px 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.pi-tooltip-text {
  color: var(--pi-muted);
  font-size: 14px;
  line-height: 1.48;
}

@media (max-width: 768px) {
  .pi-line-widget {
    padding: 0 0 18px;
  }

  .pi-mobile-hint {
    display: block;
  }

  .pi-line-image {
    border-radius: 10px;
  }

  .pi-hotspot {
    width: 28px;
    height: 28px;
    border-width: 2px;
    font-size: 13px;
  }

  .pi-hotspot::before {
    inset: -8px;
  }

  .pi-hotspot::after {
    inset: -14px;
  }

  .pi-floating-tooltip {
    width: calc(100% - 20px);
    padding: 14px 15px 15px;
    border-radius: 14px;
  }

  .pi-tooltip-title {
    font-size: 16px;
  }

  .pi-tooltip-text {
    font-size: 13px;
  }
}
