/* journey.css — The reel learning journey header, counters and unlock states.
   Split from app.module.css; load order in app.html preserves the original cascade. */

/* ---------- reel learning journey ---------- */
/* The kit's Top Navigation: one white row with a 2px hairline and four stats,
   each a 24px icon and a bold number, spread across the width. No wordmark —
   the brand lives on the landing page and the desktop rail. The row is a
   fixed 48px so the video offsets below hold. */
#journeyHeader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: calc(50px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 16px 0;
  background: var(--paper);
  border-bottom: 2px solid var(--line-1);
}

.journey-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.journey-stat svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.journey-stat b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.journey-stat.is-streak {
  color: var(--amber-text);
}

.journey-stat.is-streak:not(.lit) {
  color: var(--ink-3);
}

.journey-stat.is-streak:not(.lit) svg {
  filter: grayscale(1);
  opacity: 0.45;
}

.journey-stat.is-xp {
  color: var(--brand-ink);
}

.journey-stat.is-goal.done {
  color: var(--green-ink);
}

/* First run: what this is on the left, how long it takes on the right, and the
   sampler's progress as a thin track along the header's bottom edge. The stats
   stay hidden until the sampler is complete, and the clip and check cards drop
   their own "lesson n of 5" labels because the header already says so. */
.journey-lesson {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}

.journey-what {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--ink);
}

.journey-lesson-count {
  flex: none;
  font-weight: 600;
  color: var(--ink-2);
}

.journey-lesson-count b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.journey-track {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--line-1);
}

.journey-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.4s var(--ease);
}

body.first-run .journey-lesson {
  display: flex;
}

body.first-run .journey-track {
  display: block;
}

body.first-run .journey-stat,
body.first-run .lesson-eyebrow,
body.first-run .lesson-step .tag {
  display: none;
}

body.first-run .lesson-step {
  justify-content: flex-end;
}

body.journey-feed #feedMark {
  display: none;
}

body.journey-feed .vcap {
  top: calc(62px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  bottom: auto;
  left: 16px;
  right: 88px;
  pointer-events: none;
}

body.journey-feed .vcap .t {
  font-size: 1.125rem;
  font-weight: 700;
}

body.journey-feed .vcap .f {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.9;
}

.lesson-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b9e6fe;
}

body.journey-feed .vmute {
  top: calc(62px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
}

.reel-check {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: calc(97px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  width: calc(100% - 32px);
  min-height: 48px;
}

body.journey-feed .vquiz {
  padding-top: calc(64px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(92px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.lesson-continue {
  margin-top: 16px;
  width: 100%;
}

.vquiz .opts {
  gap: 10px;
}

.vquiz .opt {
  padding: 14px;
}

.lesson-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.lesson-step .tag {
  margin: 0;
}

.lesson-back {
  min-height: 44px;
  padding: 8px 0 8px 8px;
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.vquiz .sheet {
  max-height: calc(100% - 64px - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(86px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.vquiz .sheet .more {
  margin-top: 12px;
}

.vquiz .sheet .exp {
  line-height: 1.45;
}
