/* NullPoint preloader and marks.
   NVG green stays inside .npv / .npv-nav-mark. Signal Deck brass and forest
   are not retinted. No font CDN. */

.npv,
.npv-preview {
  --npv-green: #2bff62;
  --npv-green-hi: #aaffc4;
  --npv-green-dim: #1d5c33;
  --npv-red: #ff2d2d;
  --npv-text: #d9ffe2;
  --npv-muted: #7fae8c;
  --npv-line: #123d22;
  --npv-mono: "SF Mono", Menlo, Consolas, "Cascadia Mono", ui-monospace, monospace;
  color: var(--npv-text);
  font-family: var(--npv-mono);
  -webkit-font-smoothing: antialiased;
}

.npv-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #000;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px 16px;
}

.npv-splash.npv--out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.npv--card {
  width: min(100%, 280px);
  margin: 0 0 16px;
  padding: 16px 14px 14px;
  background: #000;
  border: 1px solid var(--npv-line);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.npv--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.npv-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--npv-green);
}

.npv-optic {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 8px rgba(43, 255, 98, 0.35));
}

.npv--card .npv-optic { width: 76px; height: 76px; }
.npv--inline .npv-optic {
  width: 38px;
  height: 38px;
  filter: none;
}

.npv-optic svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.npv-readout { width: min(100%, 320px); }
.npv--inline .npv-readout,
.npv--inline .npv-track,
.npv--inline .npv-phase { display: none; }

.npv--inline.npv--failed .npv-readout {
  display: block;
  max-width: 220px;
}
.npv--inline.npv--failed .npv-track,
.npv--inline.npv--failed .npv-phase,
.npv--inline.npv--failed .npv-pct,
.npv--inline.npv--failed .npv-cursor { display: none; }

.npv-statusline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.npv-status {
  color: var(--npv-green-hi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.npv-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  margin-left: 6px;
  background: var(--npv-green);
  vertical-align: -2px;
  animation: npv-blink 0.9s steps(1) infinite;
}

.npv-pct {
  font-size: 18px;
  font-weight: 600;
  color: var(--npv-text);
}

.npv-phase {
  margin-top: 4px;
  color: var(--npv-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.npv-error {
  margin-top: 8px;
  color: var(--npv-red);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.npv--failed .npv-status { color: var(--npv-red); }
.npv--failed .npv-cursor { display: none; }

.npv-track {
  margin-top: 8px;
  height: 6px;
  background: #0a2413;
  border: 1px solid var(--npv-line);
  display: flex;
  gap: 2px;
  padding: 1px;
}

.npv-track i {
  flex: 1;
  background: transparent;
}

.npv-track i.on { background: var(--npv-green); }
.npv-track i.done { background: var(--npv-green-hi); }

.npv-continue {
  appearance: none;
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--npv-green);
  background: transparent;
  color: var(--npv-green-hi);
  font-family: var(--npv-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.npv-continue:hover { background: #071a0d; }

.npv--locked .npv-optic { animation: npv-flash 0.45s ease-out; }

@keyframes npv-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes npv-flash {
  0% { filter: brightness(1.8) drop-shadow(0 0 8px rgba(43, 255, 98, 0.35)); }
  100% { filter: drop-shadow(0 0 8px rgba(43, 255, 98, 0.35)); }
}

/* Fine geometry drops out as the mark gets small. */
.npv--card .npv-outer-tick,
.npv--card .npv-mil { display: none; }

.npv--inline .npv-ticks,
.npv--inline .npv-mil,
.npv--inline .npv-ring-outer,
.npv--inline .npv-ring-band,
.npv--inline .npv-ring-mid,
.npv--inline .npv-ring-in,
.npv--inline .npv-cross,
.npv--inline .npv-brackets,
.npv--inline .npv-scan,
.npv--inline .npv-sweep,
.npv--inline .npv-lock { display: none; }

.npv--inline .npv-ridge { display: none; }
.npv--inline .npv-ridge:nth-child(4),
.npv--inline .npv-ridge:nth-child(8),
.npv--inline .npv-ridge:nth-child(12),
.npv--inline .npv-ridge:nth-child(17) { display: inline; }

.npv--inline .npv-ring-core,
.npv--inline .npv-plus line,
.npv--inline .npv-ridge:nth-child(4),
.npv--inline .npv-ridge:nth-child(8),
.npv--inline .npv-ridge:nth-child(12) {
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.npv--card .npv-status { font-size: 10px; letter-spacing: 0.06em; }
.npv--card { width: min(100%, 300px); }

/* Standalone marks in the deck chrome. Hex clip stays on the old letter mark. */
.brand .mark.npv-nav-mark,
.mobile-mark.npv-nav-mark,
.auth-brand .mark.npv-nav-mark {
  clip-path: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.brand .mark.npv-nav-mark,
.mobile-mark.npv-nav-mark {
  width: 38px;
  height: 38px;
}

.auth-brand .mark.npv-nav-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
}

.npv-nav-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Preview gallery — still scoped, still black, not the deck theme. */
.npv-preview {
  background: #000;
  color: var(--npv-text);
  margin: 0;
  min-height: 100vh;
  font-family: var(--npv-mono);
}

.npv-preview-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.npv-preview h1 {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.npv-preview h1 b { color: var(--npv-green); font-weight: 500; }

.npv-preview .npv-lead {
  color: var(--npv-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 22px;
}

.npv-stage {
  border: 1px solid var(--npv-line);
  background: #000;
  padding: 22px 16px 18px;
}

.npv-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.npv-seg { display: flex; border: 1px solid #1f6b3a; }

.npv-seg button,
.npv-btn {
  appearance: none;
  border: 1px solid #1f6b3a;
  background: #071a0d;
  color: var(--npv-green-hi);
  font-family: var(--npv-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
}

.npv-seg button { border: 0; background: transparent; color: var(--npv-muted); }
.npv-seg button + button { border-left: 1px solid var(--npv-line); }
.npv-seg button[aria-pressed="true"] {
  background: var(--npv-green);
  color: #021206;
  font-weight: 600;
}

.npv-sizes,
.npv-marks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.npv-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.npv-cell {
  border: 1px solid var(--npv-line);
  background: #050505;
  padding: 16px 10px 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.npv-cell figcaption,
.npv-cell p {
  margin: 0;
  color: var(--npv-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.npv-cell strong {
  display: block;
  color: var(--npv-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.npv-cell img { width: 96px; height: 96px; display: block; }

@media (max-width: 720px) {
  .npv-sizes, .npv-marks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .npv-cursor, .npv--locked .npv-optic { animation: none; }
  .npv-splash.npv--out { transition: none; }
}
