/* ── 07-journey.css · TRACK4 user-journey cohesion ─────────────────────────
 * Connective tissue only: first-run flow, achievement moments, next-step
 * clarity. No screen redesigns here; those belong to other tracks.
 * Registered in html/partials/01-head.html (already referenced).
 *
 * Theme-aware via the unified design tokens (08-design-tokens.css):
 * every color derives from a contract token, so DUSK and light render
 * from this one rule set. No per-theme palette lives here — the former
 * hard-coded dark values (and the hard-coded light variant bolted onto
 * 08-unify-fixes.css §5) were retired 2026-10-12; Pipe confirmed the
 * dark-only rendering was a mistake, not an intentional exception. */

/* First-shot achievement overlay: the empty → first-data moment.
 * One-time dialog. Dismisses via X (top-right), Escape, or either button.
 * Family: centered modal card (like WHAT'S NEW), NOT a bottom sheet. */
.gn-fsc-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--surface-1) 42%, rgba(2, 5, 8, .8));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .22s ease;
}
.gn-fsc-overlay.active { opacity: 1; }

.gn-fsc-card {
  position: relative;
  width: min(100%, 340px);
  padding: 26px 22px 20px;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 45%, transparent);
  border-top: 3px solid var(--brand-cyan);
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-cyan) 10%, transparent), var(--surface-1) 60%);
  /* Track A finish: canonical modal tier (elev-3, theme-scoped). */
  box-shadow: var(--elev-3);
  transform: translateY(10px) scale(.98);
  transition: transform .24s cubic-bezier(.2, .7, .3, 1);
}
.gn-fsc-overlay.active .gn-fsc-card { transform: none; }

.gn-fsc-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gn-fsc-x:hover { color: var(--text-1); }
.gn-fsc-x:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

.gn-fsc-kicker {
  color: var(--kicker-color, var(--brand-cyan));
  font: 700 .68rem/1.2 var(--font-m, monospace);
  letter-spacing: .14em;
  margin-bottom: 8px;
  padding-right: 32px;
}
.gn-fsc-card h2 {
  margin: 0 0 10px;
  padding-right: 32px;
  color: var(--text-1);
  font: 900 clamp(1.15rem, 5vw, 1.45rem)/1.15 var(--font-d, monospace);
  letter-spacing: .03em;
}
.gn-fsc-card p {
  margin: 0 0 18px;
  color: var(--text-2);
  font: 600 .86rem/1.5 var(--font-b, system-ui);
}
.gn-fsc-next {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.gn-fsc-next-label {
  color: var(--kicker-color, var(--brand-cyan));
  font: 700 .62rem/1.2 var(--font-m, monospace);
  letter-spacing: .14em;
}
.gn-fsc-primary {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--brand-red-hi);
  border-radius: var(--radius-control, 8px);
  background: var(--grad-lava, linear-gradient(135deg, var(--brand-red), var(--brand-red-deep)));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 59, 59, .28);
  font: 800 .76rem var(--font-d, monospace);
  letter-spacing: .1em;
  cursor: pointer;
}
.gn-fsc-primary:active { transform: scale(.98); }
.gn-fsc-secondary {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 40%, transparent);
  border-radius: var(--radius-control, 8px);
  background: transparent;
  color: var(--brand-cyan);
  font: 800 .72rem var(--font-d, monospace);
  letter-spacing: .1em;
  cursor: pointer;
}
.gn-fsc-secondary:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .gn-fsc-overlay, .gn-fsc-card { transition: none; }
  .gn-fsc-card { transform: none; }
}
