/* Previously guest-to-account nudges — Rewind theme.
 * Tokens: Deep Charcoal #161114 · Warm Bone #EDE6D6 · Graphite #2B2B30 (CTA).
 * The banner is quiet — never red, never alarming. Buttons are never red.
 * reduced-motion honored everywhere. */

:root {
  --pvnudge-charcoal: #161114;
  --pvnudge-bone: #EDE6D6;
  --pvnudge-graphite: #2B2B30;
  --pvnudge-bone-soft: rgba(237, 230, 214, .78);
  --pvnudge-bone-faint: rgba(237, 230, 214, .55);
  --pvnudge-line: rgba(237, 230, 214, .14);
}

/* ---------- quiet persistent banner (library-visit) ---------- */
.pvnudge-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(237, 230, 214, .06);
  border-bottom: 1px solid var(--pvnudge-line);
  color: var(--pvnudge-bone-soft);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.pvnudge-banner__msg { max-width: 60ch; }

.pvnudge-banner__cta {
  color: var(--pvnudge-bone);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pvnudge-banner__cta:hover { color: #fff; }

/* ---------- popup nudge (third-favorite / playlist moments) ---------- */
.pvnudge {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; /* the page behind stays fully interactive */
}

.pvnudge__card {
  pointer-events: auto;
  width: min(480px, 100%);
  background: var(--pvnudge-charcoal);
  color: var(--pvnudge-bone);
  border: 1px solid var(--pvnudge-line);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  animation: pvnudge-rise .32s cubic-bezier(.2, .7, .25, 1);
}

@keyframes pvnudge-rise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.pvnudge__title {
  margin: 0 0 8px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--pvnudge-bone);
}

.pvnudge__body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pvnudge-bone-soft);
}

.pvnudge__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pvnudge__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--pvnudge-graphite);
  border: 1px solid rgba(237, 230, 214, .22);
  color: var(--pvnudge-bone);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.pvnudge__cta:hover { background: #34343b; }
.pvnudge__cta:active { transform: scale(.97); }

.pvnudge__dismiss {
  all: unset;
  color: var(--pvnudge-bone-faint);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pvnudge__dismiss:hover { color: var(--pvnudge-bone); }
.pvnudge__cta:focus-visible,
.pvnudge__dismiss:focus-visible,
.pvnudge-banner__cta:focus-visible {
  outline: 2px solid var(--pvnudge-bone);
  outline-offset: 3px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pvnudge__card { animation: none; }
  .pvnudge__cta { transition: none; }
}

/* ---------- desktop: nudge docks bottom-center, never full-width ---------- */
@media (min-width: 760px) {
  .pvnudge { bottom: 8px; }
  .pvnudge__card { padding: 24px 26px 20px; }
}
