/* onboarding.css: first-launch overlay for DarkRoom.
   Load AFTER styles.css so the theme tokens below resolve.
   Tokens used: --bg, --elev, --text, --text-2, --text-3, --hairline-soft,
   --accent, --radius, --spring, --font-ui, --font-display, --tabbar-h. */

body.ob-open { overflow: hidden; }

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 300; /* above the grain overlay (200) and the tab bar (70) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  opacity: 0;
  transition: opacity 0.28s var(--spring);
}
.ob-overlay.ob-in { opacity: 1; }
.ob-overlay.ob-leave { opacity: 0; }

.ob-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--elev);
  border: 0.5px solid var(--hairline-soft);
  border-radius: 20px 20px 0 0;
  padding: 14px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(48px);
  transition: transform 0.42s var(--spring);
  animation: obGrabber 0s;
}
.ob-overlay.ob-in .ob-sheet { transform: none; }
.ob-sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 16px;
}

.ob-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.ob-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.ob-body {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 32em;
}

.ob-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 0 0 18px;
}
.ob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s var(--spring), transform 0.25s var(--spring);
}
.ob-dot.on { background: #fff; transform: scale(1.25); }

.ob-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-spacer { flex: 1; }
.ob-skip, .ob-back {
  appearance: none;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
}
.ob-skip:active, .ob-back:active { transform: scale(0.96); }
.ob-next { margin-top: 0; }

/* Wider screens: a centered card instead of a bottom sheet. */
@media (min-width: 560px) {
  .ob-overlay { align-items: center; padding: 24px; }
  .ob-sheet {
    border-radius: 20px;
    padding: 28px 32px 30px;
    transform: translateY(16px) scale(0.98);
  }
  .ob-sheet::before { display: none; }
  .ob-overlay.ob-in .ob-sheet { transform: none; }
  .ob-title { font-size: 34px; }
}

/* Keep clear of the fixed tab bar while the sheet is up. */
.ob-overlay { padding-bottom: var(--tabbar-h); }
@media (min-width: 560px) { .ob-overlay { padding-bottom: 0; } }
