/* ─── Onboarding overlay ─────────────────────────────────────────────────── */

#onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 24px;
  box-sizing: border-box;
}

#onboarding-overlay.ob-visible {
  opacity: 1;
}

#onboarding-overlay.ob-exit {
  animation: ob-fade-out 0.28s ease forwards;
}

@keyframes ob-fade-out {
  to { opacity: 0; }
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.ob-card {
  background: #fef9ef;
  border-radius: 24px;
  padding: 36px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ob-card.ob-slide-in {
  animation: ob-pop-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ob-pop-in {
  from { transform: scale(0.88) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ─── Visual area ────────────────────────────────────────────────────────── */
.ob-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ob-emoji {
  font-size: 72px;
  line-height: 1;
  display: block;
}

/* ─── Text ───────────────────────────────────────────────────────────────── */
.ob-title {
  font-family: var(--ff-display, 'Baloo 2', sans-serif);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  color: #2d1f0e;
  margin: 0;
  line-height: 1.2;
}

.ob-body {
  font-family: var(--ff-body, 'Nunito', sans-serif);
  font-size: 1rem;
  color: #5a4030;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

/* ─── Dots ───────────────────────────────────────────────────────────────── */
.ob-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4c5a9;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.ob-dot--active {
  background: var(--accent, #f97316);
  transform: scale(1.3);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.ob-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  gap: 12px;
}

.ob-btn {
  font-family: var(--ff-body, 'Nunito', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 10px 22px;
  transition: opacity 0.15s, transform 0.15s;
}

.ob-btn:active {
  transform: scale(0.96);
  opacity: 0.85;
}

.ob-btn--skip {
  background: transparent;
  color: #a0917e;
  padding-left: 4px;
}

.ob-btn--next {
  background: var(--accent, #f97316);
  color: #fff;
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.35);
  flex: 1;
  max-width: 180px;
  margin-left: auto;
}

.ob-btn--next:hover {
  opacity: 0.92;
}
