:root {
  --bq-help-red: #d50000;
  --bq-help-bg: rgba(10, 12, 14, 0.88);
  --bq-help-panel: rgba(18, 20, 24, 0.96);
  --bq-help-border: rgba(255, 255, 255, 0.12);
  --bq-help-text: rgba(255, 255, 255, 0.92);
  --bq-help-muted: rgba(255, 255, 255, 0.7);
}

.bq-help-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bq-help-widget:focus-visible {
  outline: 3px solid rgba(0, 220, 255, 0.6);
  outline-offset: 3px;
}

.bq-help-mascot {
  display: grid;
  place-items: center;
  transform-origin: 50% 70%;
  animation: bq-help-bob 2200ms ease-in-out infinite;
}

.bq-help-widget:hover .bq-help-mascot {
  animation: bq-help-bob 1600ms ease-in-out infinite, bq-help-wiggle 900ms ease-in-out infinite;
}

@keyframes bq-help-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes bq-help-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

.bq-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: var(--bq-help-bg);
  display: grid;
  place-items: center;
  padding: 18px;
}

.bq-hidden {
  display: none !important;
}

.bq-help-modal {
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  border-radius: 16px;
  background: var(--bq-help-panel);
  border: 1px solid var(--bq-help-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--bq-help-text);
}

.bq-help-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid var(--bq-help-border);
}

.bq-help-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.bq-help-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bq-help-close:focus-visible {
  outline: 3px solid rgba(0, 220, 255, 0.55);
  outline-offset: 2px;
}

.bq-help-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bq-help-muted);
}

.bq-help-title {
  margin: 6px 0 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.bq-help-subtitle {
  margin: 8px 0 0 0;
  color: var(--bq-help-muted);
}

.bq-help-body {
  padding: 16px 18px 20px 18px;
}

.bq-help-body-text {
  color: var(--bq-help-text);
  margin: 0 0 14px 0;
}

.bq-help-section-title {
  margin: 18px 0 8px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.bq-help-steps {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.bq-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bq-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.bq-help-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bq-help-key {
  margin: 18px 0 0 0;
  font-size: 12px;
  color: var(--bq-help-muted);
  opacity: 0.85;
}

.bq-help-key code {
  color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .bq-help-mascot,
  .bq-help-widget:hover .bq-help-mascot {
    animation: none !important;
  }
}
