/* ---------------------------------------------------------------
   Components — nav rail, cards, buttons, badges
   (sized in px — these live both in the fixed HUD, which is
   viewport-scale, and inside .frame canvases, which are camera-
   scaled, so px stays correct in both contexts)
--------------------------------------------------------------- */

/* ============ Confetti burst overlay (RFP "Win Together" step) ============ */
.confetti-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 500;
}

/* ============ Minimap / dot navigation (main sequence only) ============ */
.navrail {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-hud);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.navrail__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}

.navrail__dot::before {
  content: '';
  position: absolute;
  inset: -8px;
}

.navrail__dot:hover {
  transform: scale(1.3);
  background: var(--text-dim);
}

.navrail__dot.is-active {
  background: var(--blue);
  transform: scale(1.5);
  box-shadow: 0 0 0 3px hsla(var(--hue-blue), 78%, 62%, 0.22);
}

.navrail__label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-soft);
}

.navrail__dot:hover .navrail__label {
  opacity: 1;
}

@media (max-width: 780px) {
  .navrail { display: none; }
}

/* ============ Logo mark (fixed corner) ============
   Deliberately NOT theme-linked: both source logos are single-color
   marks meant for opposite backgrounds (Cresyn's ring is pale grey,
   drawn here in dark navy; Omningage's headset icon is already dark
   navy), so the badge carries its own permanent light pill rather
   than following body.theme-dark/light — it stays legible over both
   dark and light frames without needing two logo variants. */
.brandmark {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: var(--z-hud);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #0a1a2f;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 26, 47, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(10, 26, 47, 0.1);
}
.brandmark__icon { height: 18px; width: auto; display: block; }
.brandmark__word { white-space: nowrap; }
.brandmark__diamond {
  width: 6px;
  height: 6px;
  border: 1.4px solid rgba(10, 26, 47, 0.35);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============ Glass card ============ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast), background var(--dur-fast);
}
.card:hover {
  border-color: var(--border-strong);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn--primary {
  background: var(--blue);
  color: #041019;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* ============ Badge / tag ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

/* ============ Stat block ============ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--text), var(--blue) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 16ch;
}
