/* 88BB Guided Tour v1.0 */
.bb-tour-help {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 9990;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(125, 249, 255, .38);
  border-radius: 50%;
  color: #e9fbff;
  background: rgba(7, 22, 35, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
  font: 900 18px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.bb-tour-help:hover,
.bb-tour-help:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(246, 199, 111, .72);
  background: rgba(13, 35, 50, .98);
  outline: none;
}
.bb-tour-help span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bb-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bb-tour-blocker {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: contain;
  background: transparent;
}
.bb-tour-spotlight {
  position: fixed;
  z-index: 2;
  border: 2px solid #7df9ff;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(1, 7, 14, .80),
    0 0 0 5px rgba(125, 249, 255, .12),
    0 0 28px rgba(125, 249, 255, .42);
  pointer-events: none;
  transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease;
}
.bb-tour-spotlight::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(246, 199, 111, .62);
  border-radius: inherit;
  animation: bb-tour-pulse 1.8s ease-in-out infinite;
}
.bb-tour-card {
  position: fixed;
  z-index: 4;
  width: min(390px, calc(100vw - 28px));
  max-height: min(440px, calc(100vh - 28px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(125, 249, 255, .30);
  border-radius: 8px;
  color: #edf8ff;
  background: rgba(6, 18, 31, .98);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .56);
  pointer-events: auto;
}
.bb-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bb-tour-progress {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bb-tour-progress i {
  width: 18px;
  height: 3px;
  display: block;
  border-radius: 3px;
  background: rgba(139, 162, 180, .30);
}
.bb-tour-progress i.is-active { background: #7df9ff; }
.bb-tour-progress i.is-done { background: #79efb2; }
.bb-tour-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(151, 181, 201, .22);
  border-radius: 50%;
  color: #b9ccda;
  background: rgba(14, 31, 46, .84);
  font: 800 18px/1 system-ui, sans-serif;
  cursor: pointer;
}
.bb-tour-close:hover,
.bb-tour-close:focus-visible {
  color: #fff;
  border-color: rgba(246, 199, 111, .62);
  outline: none;
}
.bb-tour-kicker {
  display: block;
  margin-bottom: 7px;
  color: #7df9ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bb-tour-title {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
}
.bb-tour-copy {
  margin: 9px 0 0;
  color: #c5d5e1;
  font-size: 14px;
  line-height: 1.66;
}
.bb-tour-action {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.bb-tour-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(125, 249, 255, .24);
  border-radius: 7px;
  color: #d9e9f3;
  background: rgba(12, 31, 46, .90);
  font: 800 13px/1.2 inherit;
  cursor: pointer;
}
.bb-tour-button:hover,
.bb-tour-button:focus-visible {
  border-color: rgba(125, 249, 255, .58);
  outline: none;
}
.bb-tour-button.is-primary {
  margin-left: auto;
  color: #06151c;
  border-color: #79efb2;
  background: #79efb2;
}
.bb-tour-button.is-primary:hover,
.bb-tour-button.is-primary:focus-visible {
  border-color: #f6c76f;
  background: #f6c76f;
}
.bb-tour-button[hidden] { display: none; }
.bb-tour-step-count {
  margin-top: 12px;
  color: #8198aa;
  font-size: 11px;
}
.bb-tour-layer.is-transitioning .bb-tour-card { opacity: .72; }
body.bb-tour-open { overscroll-behavior: none; }
@keyframes bb-tour-pulse {
  0%, 100% { opacity: .34; transform: scale(1); }
  50% { opacity: .82; transform: scale(1.012); }
}
@media (max-width: 640px) {
  .bb-tour-help {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    width: 40px;
    height: 40px;
  }
  .bb-tour-card {
    width: calc(100vw - 20px);
    max-height: min(48vh, 390px);
    padding: 14px;
  }
  .bb-tour-title { font-size: 16px; }
  .bb-tour-copy { font-size: 13px; line-height: 1.58; }
  .bb-tour-action { gap: 7px; }
  .bb-tour-button { min-width: 0; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-tour-spotlight,
  .bb-tour-help { transition: none; }
  .bb-tour-spotlight::after { animation: none; }
}
