.vq-widget {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 80;
  font-family: var(--font-sans, Inter, Arial, sans-serif);
  color: #142747;
}
.vq-widget *,
.vq-widget *::before,
.vq-widget *::after {
  box-sizing: border-box;
}
.vq-widget [hidden] {
  display: none !important;
}
.vq-widget button {
  font: inherit;
  cursor: pointer;
}
.vq-widget button:focus-visible,
.vq-widget a:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}
.vq-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
}
.vq-orb {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #2463eb 55%, #1e40af);
  box-shadow:
    0 8px 24px #2463eb40,
    inset 0 1px 0 #ffffff50;
  animation: vq-float 4.5s ease-in-out infinite;
}
.vq-orb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid #2463eb26;
  border-radius: 50%;
  animation: vq-halo 4.5s ease-in-out infinite;
}
.vq-orb svg {
  width: 72px;
  height: 72px;
  overflow: visible;
}
.vq-eyes {
  transform-origin: 40px 34px;
  animation: vq-blink 6s infinite;
}
.vq-wave {
  transform-origin: 63px 52px;
  animation: vq-wave 7s ease-in-out infinite;
}
.vq-dot {
  position: absolute;
  top: 0;
  right: 1px;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: #fbbf24;
}
.vq-widget.is-open .vq-orb,
.vq-widget.is-open .vq-orb::before {
  animation: none;
}
.vq-panel {
  position: absolute;
  right: 0;
  bottom: 98px;
  width: 370px;
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100dvh - 140px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  box-shadow: 0 18px 70px #16336430;
  animation: vq-enter 180ms ease-out;
}
.vq-header {
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(120deg, #2463eb, #1e40af);
  color: white;
  padding: 17px 18px;
}
.vq-header-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #ffffff20;
}
.vq-header-icon svg {
  width: 21px;
  height: 21px;
}
.vq-header h2 {
  font-family: var(--font-heading, Inter, Arial, sans-serif);
  font-size: 15px;
  font-weight: 750;
  margin: 0;
}
.vq-header p {
  font-size: 11px;
  color: #dbeafe;
  margin: 4px 0 0;
}
.vq-close {
  margin-left: auto;
  border: 0;
  background: #ffffff15;
  color: white;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 22px !important;
}
.vq-close:hover {
  background: #ffffff30;
}
.vq-body {
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vq-greeting {
  background: #eff5ff;
  padding: 16px;
  border-radius: 4px 16px 16px;
  font-size: 14px;
  line-height: 1.65;
}
.vq-greeting strong {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
}
.vq-caption {
  font-size: 12px;
  line-height: 1.6;
  color: #657690;
  margin: 14px 0 18px;
}
.vq-primary {
  display: block;
  width: 100%;
  border: 1px solid #2463eb;
  padding: 12px 16px;
  background: #2463eb;
  color: white;
  border-radius: 12px;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.vq-primary:hover {
  background: #1e40af;
}
.vq-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #657690;
  font-size: 11px;
}
.vq-progress-track {
  height: 5px;
  border-radius: 10px;
  background: #eaf0fc;
  overflow: hidden;
  margin-bottom: 19px;
}
.vq-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #2463eb;
  transition: width 180ms ease;
}
.vq-question {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  margin: 0 0 16px;
}
.vq-answers {
  display: grid;
  gap: 9px;
}
.vq-answer {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  color: #213451;
  background: white;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px !important;
  line-height: 1.55;
  transition:
    border-color 150ms,
    background-color 150ms;
}
.vq-answer:not(:disabled):hover {
  background: #eff5ff;
  border-color: #2463eb;
}
.vq-letter {
  display: grid;
  place-items: center;
  align-self: start;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #eff5ff;
  border-radius: 7px;
  color: #2463eb;
  font-size: 11px;
  font-weight: 750;
}
.vq-answer.correct {
  border-color: #8bcdb3;
  background: #effaf5;
  color: #176449;
}
.vq-answer.selected-wrong {
  border-color: #e7c69c;
  background: #fff8ee;
}
.vq-answer:disabled {
  cursor: default;
  opacity: 1;
}
.vq-feedback {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #526788;
}
.vq-feedback strong {
  display: block;
  color: #142747;
  margin-bottom: 4px;
}
.vq-next {
  margin-top: 17px;
}
.vq-score {
  text-align: center;
  padding: 6px 0 15px;
}
.vq-score-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff5ff;
  color: #2463eb;
  font-size: 30px;
  font-weight: 800;
}
.vq-score h3 {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 7px;
}
.vq-score p {
  color: #657690;
  font-size: 12px;
  line-height: 1.6;
}
.vq-tips {
  padding: 14px 14px 14px 30px;
  margin: 0 0 18px;
  border: 1px solid #dbe7ff;
  background: #f8faff;
  border-radius: 12px;
  font-size: 11px;
  color: #526788;
  line-height: 1.65;
}
.vq-tips li + li {
  margin-top: 7px;
}
.vq-celebrate {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 16px;
  border: 1px solid #f2d28f;
  border-radius: 12px;
  background: #fff8e8;
  color: #80550d;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.vq-celebrate:hover {
  background: #fff0c9;
}
.vq-fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}
.vq-footer {
  padding: 10px 18px;
  border-top: 1px solid #edf1f8;
  text-align: center;
  background: #fbfcff;
  color: #7b8aa0;
  font-size: 10px;
}
@keyframes vq-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes vq-halo {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.08);
  }
}
@keyframes vq-blink {
  0%,
  40%,
  44%,
  100% {
    transform: scaleY(1);
  }
  42% {
    transform: scaleY(0.1);
  }
}
@keyframes vq-wave {
  0%,
  65%,
  88%,
  100% {
    transform: rotate(0);
  }
  70%,
  80% {
    transform: rotate(-18deg);
  }
  75%,
  85% {
    transform: rotate(6deg);
  }
}
@keyframes vq-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .vq-widget {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .vq-orb {
    width: 64px;
    height: 64px;
  }
  .vq-orb svg {
    width: 60px;
    height: 60px;
  }
  .vq-panel {
    bottom: 82px;
    width: 358px;
    max-height: calc(100dvh - 114px);
  }
  .vq-body {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vq-widget *,
  .vq-widget *::before,
  .vq-widget *::after {
    animation: none !important;
    transition: none !important;
  }
  .vq-celebrate,
  .vq-fireworks {
    display: none !important;
  }
}
