/* The welcome splash (js/nm-splash.js): a cover picture over a dimmed page, with its progress bar and Skip. Reads css/nm-tokens.css only.
   It sits above everything, the old map's welcome sheet included. */
@layer ui.page {
  .nm-hello { position: fixed; inset: 0; z-index: var(--ui-z-splash); display: grid; place-items: center; padding: var(--ui-space-4); box-sizing: border-box;
    background: var(--ui-scrim); -webkit-backdrop-filter: blur(var(--ui-glass-blur)); backdrop-filter: blur(var(--ui-glass-blur)); transition: opacity 360ms var(--ui-ease); outline: none; }
  .nm-hello.is-leaving { opacity: 0; pointer-events: none; }
  .nm-hello * { box-sizing: border-box; margin: 0; }
  .nm-hello__box { width: min(880px, 100%, calc((100vh - 150px) * 1.7778)); width: min(880px, 100%, calc((100dvh - 150px) * 1.7778)); display: grid; gap: var(--ui-space-3); }
  .nm-hello__cover { display: block; aspect-ratio: 16 / 9; border-radius: var(--ui-radius-sheet); overflow: hidden; background: var(--ui-surface-1); box-shadow: var(--ui-shadow-sheet); }
  .nm-hello__cover:focus-visible, .nm-hello__skip:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 3px; }
  .nm-hello__cover img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ui-ease); }
  .nm-hello.has-picture .nm-hello__cover img { opacity: 1; }
  .nm-hello__foot { display: flex; align-items: center; gap: var(--ui-space-4); min-height: var(--ui-control-h); }
  .nm-hello__status { flex: none; color: var(--ui-text-2); font: 500 var(--ui-size-small) / var(--ui-lh-small) var(--ui-font-sans); }
  .nm-hello__track { flex: 1; height: 6px; border-radius: var(--ui-radius-pill); background: var(--ui-line-strong); overflow: hidden; }
  .nm-hello__track i { display: block; width: 0; height: 100%; background: var(--ui-accent); border-radius: var(--ui-radius-pill); }
  .nm-hello__skip { flex: none; min-height: var(--ui-control-h); padding: 0 var(--ui-space-5); border: 0; border-radius: var(--ui-radius-control); background: var(--ui-action); color: var(--ui-on-action);
    font: 600 var(--ui-size-body) / 1 var(--ui-font-sans); cursor: pointer; }
  .nm-hello__skip[hidden] { display: none; }
  @media (max-width: 599px) {
    .nm-hello__box { width: min(100%, calc((100vh - 150px) * 0.8)); width: min(100%, calc((100dvh - 150px) * 0.8)); }
    .nm-hello__cover { aspect-ratio: 4 / 5; }
  }
  @media (prefers-reduced-motion: reduce) { .nm-hello, .nm-hello__cover img { transition: none; } }
}
