/* The App Store invitations: a small glass card at the window's foot, above the mini player
   (beside the sidebar), never covering the transport; dark in Stage Mode with the rest. */

.nudge-card {
  position: fixed; z-index: 55;
  left: calc(var(--sidebar-w) + 8px + 24px); right: 24px;
  bottom: calc(16px + 60px + 14px);
  margin-inline: auto;
  max-width: 460px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 40px 14px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--row) 86%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 0.5px var(--glass-edge);
  color: var(--label);
  transform: translateY(14px); opacity: 0;
  transition: transform 0.26s var(--snappy), opacity 0.2s ease;
}
.nudge-card.shown { transform: none; opacity: 1; }
html.stage .nudge-card { left: calc(var(--sidebar-w) + 8px + 24px); bottom: 24px; }

.nudge-symbol {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-15); color: var(--accent);
}
.nudge-symbol .icon { width: 20px; height: 20px; }
.nudge-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.nudge-title { margin: 0; font-size: calc(13px * var(--text-scale)); font-weight: 700; }
.nudge-text { margin: 0; font-size: calc(12px * var(--text-scale)); line-height: 1.4; color: var(--label-2); }
.nudge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.nudge-store { min-height: 28px; padding: 4px 14px; }
.nudge-close {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 999px;
  display: grid; place-items: center; color: var(--label-2);
}
.nudge-close:hover { background: var(--hover); color: var(--label); }
.nudge-close .icon { width: 13px; height: 13px; stroke-width: 2.2; }

.nudge-qr { display: flex; align-items: center; gap: 12px; }
.nudge-qr img { width: 96px; height: 96px; padding: 6px; border-radius: 10px; background: #fff; flex: none; }
.nudge-qr-text { font-size: calc(11px * var(--text-scale)); color: var(--label-2); max-width: 180px; }

@media (max-width: 639px) {
  .nudge-card, html.stage .nudge-card {
    left: 12px; right: 12px;
    bottom: calc(12px + 58px + 10px + 60px + 10px + env(safe-area-inset-bottom, 0px));
  }
  html.stage .nudge-card { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .nudge-card { transition: none; } }
