/*
 * BonbonCard.css — deploy stylesheet for the "bonbon-card" template (compact
 * candy link-in-bio card). Faithful port of the `.bb-*` block in NewEditor.css.
 * KEEP IN SYNC with that block and BonbonPreview.jsx.
 * Deploy-specific: the page scrolls naturally, rows/chips are real <a>
 * elements, editor selection outlines are dropped, and mobile (<= 520px) goes
 * FULL-BLEED (the card fills the screen; page sky hidden), mirroring the
 * editor's phone frame. Custom Appearance colours drive the hover border/glow,
 * the hero lip, and the pill borders via the guaranteed-invalid var trick.
 * VERSION: 1.0
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #ffd9ec; }

.bb-root {
  --bb-accent: #ff5fa2;
  --bb-accent-deep: #ff3d8b;
  --bb-accent-press: #e62e78;
  --bb-ink: #7a1f4e;
  --bb-ink-soft: #9c2d63;
  --bb-ink-mute: #b56089;
  --bb-mint: #15bd83;
  --bb-lilac: #c9a8ff;
  --bb-gold: #ffb43d;
  --bb-card-soft: #fff4fa;
  --bb-line: #ffe1ef;
  --bb-shadow-card: 0 18px 44px -18px rgba(199, 31, 105, 0.45);
  --bb-shadow-puff: 0 9px 0 0 var(--bb-accent-press), 0 20px 28px -10px rgba(230, 46, 120, 0.6);
  /* follower pill — candy chip (the breakdown sheet stays dark, shared base) */
  --fp-bg: #ffffff; --fp-border: 1.5px solid var(--bb-line); --fp-border-hover: var(--bb-accent);
  --fp-text: var(--bb-ink); --fp-muted: var(--bb-ink-mute); --fp-radius: 999px;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: var(--bb-ink);
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  background: #ffd9ec;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
/* Dark CARD: remap the candy ink palette so text inside the card stays readable. */
.bb-root.is-card-dark {
  --bb-ink: #fff2f8;
  --bb-ink-soft: #ffd7ea;
  --bb-ink-mute: #d9a5c0;
  --bb-card-soft: rgba(255, 255, 255, 0.08);
  --bb-line: rgba(255, 255, 255, 0.16);
}
/* Dark PAGE: the footer sits on the page, keep it legible there. */
.bb-root.is-page-dark .bb-footer-content { color: rgba(255, 255, 255, 0.78); }
.bb-root.is-page-dark .bb-footer-brand { color: #ff9ecb; }

.bb-page-bg-media { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bb-sky { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bb-blob {
  position: absolute;
  font-size: 26px;
  opacity: 0.5;
  animation: bb-float 9s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(199,31,105,0.18));
}
.bb-blob.is-b1 { top: 9%;  left: 7%;  animation-delay: 0s;   font-size: 32px; }
.bb-blob.is-b2 { top: 13%; right: 8%; animation-delay: 1.4s; }
.bb-blob.is-b3 { bottom: 15%; left: 6%; animation-delay: 2.6s; font-size: 22px; }
.bb-blob.is-b4 { bottom: 9%;  right: 7%; animation-delay: 0.8s; font-size: 28px; }
@keyframes bb-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
.bb-scroll {
  position: relative; z-index: 2; width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 14px;
}
/* centred when short, natural page scroll when tall */
.bb-card { margin-top: auto; }
.bb-scroll > :last-child { margin-bottom: auto; }

/* ---- The glossy card ---- */
.bb-card {
  position: relative;
  width: 100%; max-width: 400px;
  flex-shrink: 0;                    /* load-bearing: never compress the card */
  background: var(--bb-card-bg, #ffffff);
  border: 2px solid #ffe6f1;
  border-radius: 26px;
  padding: 0 20px 22px;
  box-shadow: var(--bb-shadow-card);
  text-align: center;
  overflow: hidden;
}
.bb-root.is-card-dark .bb-card { border-color: rgba(255, 255, 255, 0.14); }

/* ---- Header image band (the dual-background "banner") ---- */
.bb-header { position: relative; }
.bb-cover {
  position: relative;
  height: 108px;
  margin: 0 -20px 0;
  overflow: hidden;
}
.bb-cover-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* candy wash so any banner reads sweet */
.bb-cover::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% -10%, rgba(255,255,255,0.4), transparent 70%),
    linear-gradient(180deg, rgba(255,142,194,0.28) 0%, rgba(255,95,162,0.16) 60%, rgba(255,255,255,0.05) 100%);
}
.bb-cover-anim { position: absolute; inset: 0; pointer-events: none; }
.bb-header-stack { position: relative; z-index: 3; display: flex; justify-content: center; padding-top: 16px; }
.bb-header-stack.has-cover { margin-top: -50px; padding-top: 0; }

/* ---- Avatar with the candy conic ring (baked; ring controls unused) ---- */
.bb-avatar {
  --bb-avatar-size: 100px;
  position: relative;
  width: var(--bb-avatar-size); height: var(--bb-avatar-size);
  border-radius: 50%;
}
.bb-avatar::before {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--bb-accent), var(--bb-lilac), var(--bb-gold), var(--bb-accent));
  filter: blur(0.4px);
}
.bb-avatar-inner {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #fff4fa;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: calc(var(--bb-avatar-size) * 0.4);
  font-weight: 600;
  color: var(--bb-accent-deep);
  box-shadow: 0 10px 24px -8px rgba(199, 31, 105, 0.55);
}
.bb-avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

/* ---- Body stack ---- */
.bb-body-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

/* ---- Profile ---- */
.bb-profile { text-align: center; }
.bb-name { font-family: 'Fredoka', sans-serif; color: var(--bb-ink); line-height: 1.1; display: inline-flex; align-items: center; gap: 7px; justify-content: center; flex-wrap: wrap; }
.bb-handle { color: var(--bb-ink-mute); margin-top: 3px; font-weight: 500; }
.bb-bio { color: var(--bb-ink-soft); margin: 10px auto 0; max-width: 34ch; line-height: 1.55; font-weight: 500; }
.bb-profile-pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bb-profile-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 11px; line-height: 1;
  font-weight: 600;
  background: var(--bb-pill-bg, var(--bb-card-soft));
  --bb-pill-border: color-mix(in srgb, var(--bb-pill-bg) 72%, #7a1f4e);
  border: 1px solid var(--bb-pill-border, var(--bb-line));
  color: var(--bb-ink-soft);
}
.bb-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bb-mint); box-shadow: 0 0 0 3px rgba(21,189,131,0.18); }
.bb-pill-icon { width: 13px; height: 13px; display: inline-flex; }
.bb-pill-icon svg { width: 13px; height: 13px; }

/* ---- Link anchors ---- */
a.bb-link-anchor, .bb-link-anchor { display: block; text-decoration: none; color: inherit; position: relative; border-radius: 16px; }
.bb-link-anchor:focus-visible { outline: 3px solid rgba(255, 95, 162, 0.55); outline-offset: 3px; }
.bb-link-anchor.has-adult-warning { overflow: hidden; }

/* ---- Simple candy link row ---- */
.bb-links { display: flex; flex-direction: column; gap: 10px; }
.bb-link-card {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px;
  border-radius: 16px;
  background: var(--bb-link-bg, var(--bb-card-soft));
  color: var(--bb-link-text, var(--bb-ink));
  border: 1.5px solid var(--bb-link-border, var(--bb-line));
  font-weight: 600; font-size: 14.5px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.bb-link-anchor:hover .bb-link-card,
.bb-link-anchor:focus-visible .bb-link-card {
  transform: translateY(-2px);
  --bb-link-hover-glow: color-mix(in srgb, var(--bb-link-custom-shadow) 55%, transparent);
  border-color: var(--bb-link-custom-border, var(--bb-accent));
  box-shadow: 0 12px 22px -12px var(--bb-link-hover-glow, rgba(255, 61, 139, 0.55));
}
.bb-link-title { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-link-icon { display: inline-flex; flex: none; }
.bb-link-icon img { width: 18px; height: 18px; object-fit: contain; }
.bb-link-arrow { flex: none; color: var(--bb-ink-mute); font-weight: 700; }

/* ---- Featured: puffy hero CTA (no image) / candy image card (with image) ---- */
.bb-featured-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 92px; padding: 16px;
  border-radius: 18px; overflow: hidden;
  background: var(--bb-featured-bg, var(--bb-card-soft));
  border: 1.5px solid var(--bb-featured-border, var(--bb-line));
  color: var(--bb-featured-title, var(--bb-ink));
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.bb-featured-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bb-featured-card.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(122,31,78,0.06), rgba(122,31,78,0.55)); z-index: 1; }
.bb-featured-icon, .bb-featured-copy { position: relative; z-index: 2; }
.bb-featured-icon img { width: 18px; height: 18px; }
.bb-featured-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bb-featured-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; color: var(--bb-featured-title, var(--bb-ink)); }
.bb-featured-subtitle { font-size: 12.5px; font-weight: 500; color: var(--bb-featured-subtitle, var(--bb-ink-mute)); }
.bb-link-anchor:hover .bb-featured-card.has-image { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(255, 61, 139, 0.55); }
/* THE puffy hero: a featured with no image. Custom Appearance colours win over
   the candy defaults; only animates when the user picked an animation. */
.bb-featured-card.is-empty {
  justify-content: center;
  text-align: center;
  border: 1.5px solid var(--bb-featured-custom-border, transparent);
  border-radius: 20px;
  padding: 18px 16px;
  background: var(--bb-featured-custom-bg, linear-gradient(180deg, #ff79b3 0%, var(--bb-accent) 55%, var(--bb-accent-deep) 100%));
  --bb-hero-lip: color-mix(in srgb, var(--bb-featured-custom-bg) 78%, #000000);
  --bb-hero-glow: color-mix(in srgb, var(--bb-featured-custom-bg) 55%, transparent);
  box-shadow:
    0 9px 0 0 var(--bb-hero-lip, var(--bb-accent-press)),
    0 20px 28px -10px var(--bb-hero-glow, rgba(230, 46, 120, 0.6));
}
.bb-featured-card.is-empty .bb-featured-copy { align-items: center; }
.bb-featured-card.is-empty .bb-featured-title { color: var(--bb-featured-custom-title, #ffffff); font-weight: 700; font-size: 19px; letter-spacing: 0.2px; }
.bb-featured-card.is-empty .bb-featured-subtitle { color: var(--bb-featured-custom-subtitle, rgba(255,255,255,0.92)); }
.bb-featured-card.is-empty .bb-featured-placeholder { display: none; }
/* static gloss cap (part of the look, not an animation) */
.bb-featured-card.is-empty::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
}
@keyframes bb-shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
@keyframes bb-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.bb-link-anchor:hover .bb-featured-card.is-empty { transform: translateY(-3px); }
.bb-link-anchor:active .bb-featured-card.is-empty {
  transform: translateY(4px);
  box-shadow:
    0 3px 0 0 var(--bb-hero-lip, var(--bb-accent-press)),
    0 10px 16px -10px var(--bb-hero-glow, rgba(230, 46, 120, 0.55));
  animation: none;
}

/* ---- Locked peek teaser (images arrive pre-blurred; block links to unlock URL) ---- */
.bb-peek-card { display: flex; flex-direction: column; gap: 10px; }
.bb-peek-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.bb-peek-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: var(--bb-ink);
}
.bb-peek-title svg { flex: none; }
.bb-peek-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.bb-peek-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--bb-line); }
.bb-peek-tile img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.bb-peek-tile-empty { position: absolute; inset: -14px; filter: blur(13px); display: block; }
.bb-peek-tile.is-p1 .bb-peek-tile-empty { background: linear-gradient(135deg, #ff9ecb, #ffd36e, #ff6fae); }
.bb-peek-tile.is-p2 .bb-peek-tile-empty { background: linear-gradient(135deg, #c9a8ff, #ff8ec2, #9ad6ff); }
.bb-peek-tile.is-p3 .bb-peek-tile-empty { background: linear-gradient(135deg, #ffc36e, #ff6fae, #c9a8ff); }
.bb-peek-veil {
  position: absolute; inset: 0;
  background: rgba(122, 31, 78, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #fff;
}
.bb-peek-lock {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bb-peek-lock-bg, rgba(255,255,255,0.92));
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-peek-lock-color, var(--bb-accent-deep));
  box-shadow: 0 4px 10px rgba(122,31,78,0.3);
}
.bb-link-anchor:hover .bb-peek-tile { border-color: var(--bb-accent); }

/* ---- Gallery (normal, unblurred; tiles open the lightbox) ---- */
.bb-gallery-card { display: flex; flex-direction: column; gap: 8px; }
.bb-gallery-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: var(--bb-ink); text-align: left; padding: 0 2px; }
.bb-gallery-grid { display: grid; grid-template-columns: repeat(var(--bb-gallery-columns, 2), 1fr); gap: 9px; }
.bb-gallery-tile { position: relative; border-radius: 16px; overflow: hidden; background: var(--bb-card-soft); border: 1px solid var(--bb-line); aspect-ratio: 1 / 1; padding: 0; }
button.bb-gallery-tile.is-clickable { cursor: pointer; }
.bb-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-gallery-empty { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #ffeaf4, #ffeaf4 8px, #fff4fa 8px, #fff4fa 16px); }
.bb-gallery-label {
  position: absolute; left: 7px; bottom: 7px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(255,255,255,0.92); color: var(--bb-accent-deep);
  padding: 2px 8px; border-radius: 999px;
}

/* ---- Media ---- */
.bb-media-card { border-radius: 18px; overflow: hidden; background: #ffffff; border: 1.5px solid var(--bb-line); }
.bb-media-frame { width: 100%; display: block; border: 0; }
.bb-media-placeholder { width: 100%; min-height: 170px; display: grid; place-items: center; color: var(--bb-ink-mute); background: var(--bb-card-soft); }
.bb-media-copy { padding: 11px 14px; text-align: left; }
.bb-media-title { font-weight: 600; font-size: 14px; color: var(--bb-media-title, var(--bb-ink)); }
.bb-media-caption { font-size: 12px; margin-top: 2px; color: var(--bb-media-caption, var(--bb-ink-mute)); }

/* ---- Header / note / divider ---- */
.bb-link-header { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--bb-ink); padding: 4px 2px 0; }
.bb-link-note {
  background: var(--bb-text-bg, var(--bb-card-soft));
  border: 1px solid var(--bb-text-border, var(--bb-line));
  border-radius: 16px; padding: 12px 14px;
  color: var(--bb-ink-soft); line-height: 1.55; font-weight: 500;
}
.bb-link-divider { display: flex; align-items: center; }
.bb-link-divider span { width: 100%; border-top: var(--bb-divider-thickness, 3px) dotted var(--bb-divider-color, #ffc3de); }
.bb-link-divider-chars span { width: auto; border: 0; color: var(--bb-divider-color, var(--bb-ink-mute)); letter-spacing: 0.3em; }

/* ---- Socials: candy circles (Bordered) / bare (Icon only) ---- */
.bb-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 4px; }
.bb-social {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bb-card-soft);
  border: 1.5px solid var(--bb-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-ink-soft);
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.bb-social:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 18px -8px rgba(255, 61, 139, 0.7); }
.bb-social.is-disabled { opacity: 0.45; }
.bb-social img { width: 22px; height: 22px; object-fit: contain; }
.bb-socials.is-icon-only { gap: 14px; }
.bb-socials.is-icon-only .bb-social { width: 38px; height: 38px; background: transparent; border-color: transparent; }
.bb-socials.is-icon-only .bb-social:hover { box-shadow: none; }
.bb-socials.is-icon-only .bb-social img { width: 27px; height: 27px; }

/* ---- Empty prompt + footer ---- */
.bb-empty-prompt { padding: 26px 12px; text-align: center; }
.bb-empty-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; color: var(--bb-ink); }
.bb-empty-sub { margin-top: 6px; font-size: 13px; color: var(--bb-ink-mute); font-weight: 500; }
.bb-footer { margin-top: 14px; text-align: center; flex-shrink: 0; }
.bb-footer-content { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--bb-ink-mute); }
.bb-footer-heart { color: var(--bb-accent); }
.bb-footer-brand { font-weight: 700; color: var(--bb-accent-deep); text-decoration: none; }
.bb-footer-brand:hover { text-decoration: underline; }

/* ---- Link animations (candy set; only when the user picked one) ---- */
.bb-link-anim-bounce { animation: bb-bounce 1.6s ease-in-out infinite; }
.bb-link-anim-pulse { animation: bb-anim-pulse 1.8s ease-in-out infinite; }
@keyframes bb-anim-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.bb-link-anim-glow { animation: bb-anim-glow 2s ease-in-out infinite; }
@keyframes bb-anim-glow { 0%, 100% { box-shadow: 0 0 0 rgba(255,61,139,0); } 50% { box-shadow: 0 10px 26px -8px rgba(255,61,139,0.65); } }
.bb-link-anim-shine { position: relative; overflow: hidden; }
.bb-link-anim-shine::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 40%; height: 220%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: rotate(8deg);
  animation: bb-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Adult-content inline gate (candy-styled) ---- */
.bb-adult-inline {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  min-height: 100%; padding: 10px;
  background: rgba(122, 31, 78, 0.96);
  color: #ffffff; text-align: center; border-radius: inherit;
}
.bb-adult-inline-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 300px; }
.bb-adult-inline-title { display: block; color: #ffffff; font-size: 12px; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.04em; }
.bb-adult-inline-body { display: block; color: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 500; line-height: 1.28; }
.bb-adult-actions { display: flex; justify-content: center; gap: 8px; width: 100%; }
.bb-adult-btn {
  min-height: 28px; border: none; border-radius: 999px;
  padding: 4px 12px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
}
.bb-adult-btn.secondary { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.85); }
.bb-adult-btn.primary { background: #ffffff; color: var(--bb-accent-deep); }
.bb-link-anchor-simple .bb-adult-inline { padding: 7px 10px; }
.bb-link-anchor-simple .bb-adult-inline-title { display: none; }
.bb-link-anchor-simple .bb-adult-inline-body { margin-bottom: 7px; color: #ffffff; white-space: nowrap; }
.bb-link-anchor-simple .bb-adult-btn { min-height: 21px; padding: 4px 10px; font-size: 10px; }

/* ---- Gallery image modal (candy-styled) ---- */
.bb-image-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(122, 31, 78, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bb-image-panel { position: relative; width: min(760px, 100%); max-height: min(82vh, 760px); display: grid; gap: 10px; }
.bb-image-preview {
  width: 100%; max-height: min(76vh, 700px); display: block;
  border-radius: 18px; object-fit: contain; background: #fff4fa;
  box-shadow: 0 24px 80px rgba(122, 31, 78, 0.4);
  user-select: none; -webkit-user-drag: none;
}
.bb-image-close {
  justify-self: end; min-height: 34px;
  border: 1.5px solid #ffe1ef; border-radius: 999px; padding: 0 14px;
  background: #ffffff; color: #ff3d8b;
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
}
.bb-image-caption {
  justify-self: center; max-width: min(560px, 100%);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: #7a1f4e;
  font-size: 12px; font-weight: 600; text-align: center;
}

/* ---- DESKTOP: scale the card up with the viewport ----
   The card is authored at 400px (the editor's proportions). On big monitors
   that reads as a skinny stripe, so zoom the WHOLE card (all internal
   proportions preserved) progressively with screen width. Browsers without
   `zoom` just show the unscaled card. */
@media (min-width: 900px) {
  .bb-card { zoom: 1.15; }
  .bb-footer { zoom: 1.1; }
  .bb-scroll { padding: 40px 20px; }
}
@media (min-width: 1440px) {
  .bb-card { zoom: 1.3; }
  .bb-blob { font-size: 34px; }
  .bb-blob.is-b1 { font-size: 42px; }
  .bb-blob.is-b4 { font-size: 38px; }
}
@media (min-width: 1900px) {
  .bb-card { zoom: 1.42; }
}

/* ---- MOBILE: full-bleed, not a floating card (mirrors the editor frame) ---- */
@media (max-width: 520px) {
  body { background: var(--bb-card-bg, #ffffff); }
  .bb-root { background: var(--bb-card-bg, #ffffff); }
  .bb-page-bg-media,
  .bb-sky { display: none; }
  .bb-scroll { padding: 0; }
  .bb-card {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .bb-footer { margin: 12px 0 16px; }
  .bb-root.is-card-dark .bb-footer-content { color: rgba(255, 255, 255, 0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .bb-blob,
  .bb-link-anim-bounce, .bb-link-anim-pulse, .bb-link-anim-glow,
  .bb-link-anim-shine::after { animation: none; }
  .bb-link-card, .bb-featured-card, .bb-social { transition: none; }
}

/* ============================================================================
   Combined follower counter — themed pill (.ne-fpill, via --fp-*) + an ALWAYS
   DARK breakdown sheet (.ne-fsheet-*). KEEP IN PARITY with NewEditor.css.
   ============================================================================ */
.ne-fpill { display: flex; align-items: baseline; justify-content: center; gap: 6px; width: fit-content; margin: var(--fp-margin, 14px auto 0); padding: var(--fp-pad, 8px 16px); background: var(--fp-bg, rgba(0,0,0,0.05)); border: var(--fp-border, 1px solid rgba(0,0,0,0.12)); border-radius: var(--fp-radius, 999px); color: var(--fp-text, inherit); font-family: inherit; line-height: 1; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.ne-fpill:hover { border-color: var(--fp-border-hover, rgba(0,0,0,0.28)); }
.ne-fpill:active { transform: scale(0.97); }
.ne-fpill-num { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ne-fpill-label { font-size: 12.5px; color: var(--fp-muted, currentColor); opacity: .72; }
.ne-fsheet-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ne-fsheet { width: 100%; max-width: 520px; margin: 0 auto; max-height: 80%; overflow-y: auto; background: #161618; color: #f4f4f6; border-radius: 20px 20px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 44px rgba(0,0,0,0.5); animation: ne-fsheet-up .3s cubic-bezier(.22,.61,.36,1); }
@keyframes ne-fsheet-up { from { transform: translateY(100%); } to { transform: none; } }
.ne-fsheet-grab { width: 38px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.22); margin: 2px auto 14px; }
.ne-fsheet-total { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.ne-fsheet-sub { text-align: center; font-size: 12.5px; opacity: .6; margin-top: 2px; }
.ne-fsheet-list { display: flex; flex-direction: column; margin-top: 14px; }
.ne-fsheet-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid rgba(255,255,255,0.08); }
.ne-fsheet-row:first-child { border-top: none; }
.ne-fsheet-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; opacity: .85; }
.ne-fsheet-ic img { width: 24px; height: 24px; object-fit: contain; }
.ne-fsheet-name { flex: 1; min-width: 0; font-size: 14.5px; }
.ne-fsheet-count { font-size: 14.5px; font-weight: 700; }
.ne-fsheet-empty { opacity: .6; font-size: 13px; text-align: center; padding: 14px; }
.ne-fsheet-done { width: 100%; margin-top: 16px; min-height: 46px; border: none; border-radius: 12px; background: #ffffff; color: #111111; font-weight: 700; font-size: 14.5px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ne-fsheet { animation: none; } }
