/* Lightweight first-time onboarding overlay (English only) */
#ob-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: auto; /* block page clicks */
}

#ob-overlay::before {
  content: "";
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  /* Rectangular hole using two masks with XOR/exclude */
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
          mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size: 100% 100%, var(--ob-w, 0px) var(--ob-h, 0px);
          mask-size: 100% 100%, var(--ob-w, 0px) var(--ob-h, 0px);
  -webkit-mask-position: 0 0, var(--ob-x, -1000px) var(--ob-y, -1000px);
          mask-position: 0 0, var(--ob-x, -1000px) var(--ob-y, -1000px);
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

#ob-spot {
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
  transition: all .18s ease;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow:
    0 0 24px rgba(255,255,255,0.35),
    0 0 60px rgba(99,102,241,0.55);
}

#ob-tooltip {
  position: absolute;
  z-index: 10000;
  pointer-events: auto; /* allow clicks on tutorial buttons */
  max-width: 360px;
  background: linear-gradient(180deg, rgba(35,39,55,0.92), rgba(17,24,39,0.92));
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

#ob-title {
  font-weight: 800; font-size: 16px; margin-bottom: 6px; color: #fff;
}

#ob-text {
  font-size: 13px; line-height: 1.35; color: #cbd5e1;
}

#ob-actions {
  margin-top: 12px; display: flex; gap: 8px; justify-content: flex-end;
}

.ob-btn {
  appearance: none; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(36, 38, 48, 0.75);
  color: #e5e7eb; font-weight: 700; font-size: 13px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.ob-btn:hover { transform: translateY(-1px) }
.ob-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; border-color: rgba(99,102,241,0.35);
}

@media (max-width: 480px){
  #ob-tooltip {
  position: absolute;
  z-index: 10000;
  pointer-events: auto; /* allow clicks on tutorial buttons */
  max-width: 360px;
  background: linear-gradient(180deg, rgba(35,39,55,0.92), rgba(17,24,39,0.92));
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
}