/* Temporary font switcher + promo test dock */
.qq-dev-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 1.25rem !important;
  transform: translateX(-50%) !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: flex-end;
  gap: .65rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  pointer-events: auto !important;
  max-width: calc(100vw - 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
}

.qq-font-switcher {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  z-index: 1 !important;
  font-family: inherit !important;
  pointer-events: auto !important;
}

.qq-bomb-test-fab {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  min-height: 1.85rem;
  padding: .3rem .55rem;
  border: 1.5px solid #F99348 !important;
  border-radius: 999px !important;
  background: #001942 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35) !important;
  cursor: pointer !important;
  font-size: .65rem !important;
  transition: transform .15s ease, background .15s ease;
}

.qq-bomb-test-fab:hover,
.qq-bomb-test-fab.is-active {
  background: #F99348 !important;
  color: #001942 !important;
  transform: translateY(-1px);
}

.qq-font-switcher__fab {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  min-height: 1.85rem;
  padding: .3rem .55rem;
  border: 1.5px solid #F99348 !important;
  border-radius: 999px !important;
  background: #F99348 !important;
  color: #001942 !important;
  box-shadow: 0 4px 14px rgba(249, 147, 72, .45) !important;
  cursor: pointer !important;
  animation: qq-font-fab-pulse 2.2s ease-in-out infinite;
  font-size: .65rem !important;
}

@keyframes qq-font-fab-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(249, 147, 72, .55), 0 0 0 4px rgba(249, 147, 72, .18); }
  50% { box-shadow: 0 14px 34px rgba(249, 147, 72, .7), 0 0 0 8px rgba(249, 147, 72, .28); }
}

.qq-font-switcher.is-open .qq-font-switcher__fab,
.qq-font-switcher__fab:hover {
  animation: none;
  background: #001942 !important;
  color: #fff !important;
  border-color: #F99348 !important;
}

.qq-font-switcher__fab-aa {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #001942;
  color: #fff;
  font-weight: 900;
  font-size: .6rem;
  flex-shrink: 0;
}

.qq-font-switcher.is-open .qq-font-switcher__fab-aa,
.qq-font-switcher__fab:hover .qq-font-switcher__fab-aa {
  background: #F99348;
  color: #001942;
}

.qq-font-switcher__fab-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.qq-font-switcher__fab-hint {
  display: none;
}

.qq-font-switcher__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  display: flex;
  flex-direction: column;
  background: #0b1a33;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.qq-font-switcher__panel[hidden] {
  display: none !important;
}

.qq-font-switcher__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}

.qq-font-switcher__badge {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #001942;
  background: #F99348;
  border-radius: 999px;
  padding: .25rem .55rem;
}

.qq-font-switcher__list {
  overflow: auto;
  padding: .45rem;
  -webkit-overflow-scrolling: touch;
}

.qq-font-switcher__item {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  padding: .75rem .8rem;
  border: 0;
  border-radius: .7rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.qq-font-switcher__item:hover {
  background: rgba(255, 255, 255, .08);
}

.qq-font-switcher__item.is-active {
  background: rgba(249, 147, 72, .2);
  box-shadow: inset 0 0 0 1px rgba(249, 147, 72, .65);
}

.qq-font-switcher__item-name {
  font-size: .92rem;
  font-weight: 700;
}

.qq-font-switcher__item-preview {
  font-size: .75rem;
  opacity: .55;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .qq-dev-dock {
    bottom: .85rem !important;
    gap: .45rem;
  }
  .qq-font-switcher,
  .qq-bomb-test-fab {
    transform: scale(.9);
    transform-origin: bottom center;
  }
}
