/* layout.css — header, feed stage, footer, sheets, chips, CTAs */

/* ────────────── HEADER ────────────── */
.rs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1.5px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 6px 14px -6px rgba(0,0,0,0.08);
}
.rs-header-inner {
  /* Flex with absolute-centered wordmark — guarantees the title sits at
     true page center regardless of left/right widths (logo padding made
     the grid 1fr-auto-1fr math drift on mobile). */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.rs-header-left { display: flex; align-items: center; gap: 10px; }
.rs-header-logo-btn {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 160ms;
}
.rs-header-logo-btn:hover {
  background: rgba(0,0,0,0.04);
}
.rs-header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
  gap: 4px;
  /* Clicks pass through to the side controls (logo button, LIVE badge); the
     wordmark itself isn't interactive. */
  pointer-events: none;
}
.wordmark-tag {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rs-navy);
}
.ticker-line {
  font-size: 12px;
  color: var(--paper-ink-soft);
  font-weight: 600;
  margin-top: 2px;
}
.rs-header-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248,154,142,0.15);
  color: var(--candy-coral-ink);
  padding: 6px 11px;
  border-radius: 999px;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--candy-coral);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(248,154,142,0.8);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(248,154,142,0.7); }
  100% { box-shadow: 0 0 0 8px rgba(248,154,142,0); }
}

/* ────────────── FEED STAGE ────────────── */
/* Lock the whole experience to viewport height. dvh handles mobile URL-bar
   collapse; the html/body overflow:hidden in candy.css kills page scroll. */
.app-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Layer order so hearts stay below chrome */
.feed-stage { position: relative; z-index: 1; }
.rs-header { z-index: 800; }

.feed-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, #FFF3DC 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, #FAE0E5 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, #E8F2DD 0%, transparent 50%),
    var(--paper-cream);
}
.feed {
  position: absolute;
  inset: 0;
}
.feed-static {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px;
  padding: 32px 20px 140px;
  align-items: center;
  justify-items: center;
  min-height: 100%;
}
.float-slot {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
  /* Fade in on mount so realtime-arrived hearts (which don't get the
     scripted entry animation the submitter sees) don't visibly teleport
     into the wall — they smoothly appear at whatever position the
     motion engine puts them at. Doesn't fight the dynamic transform
     since we only animate opacity. */
  animation: float-slot-spawn 600ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes float-slot-spawn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.grid-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop-in 500ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--idx, 0) * 30ms);
}
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Add CTA — thumb-reach bottom right, Rollstack blue, prominent */
.add-cta {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  background: var(--rs-blue-500, #0098D9);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px 16px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 0 0 4px rgba(0,152,217,0.25),
    0 10px 28px rgba(0,152,217,0.55),
    0 4px 0 rgba(0,0,0,0.08);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms;
  animation: cta-bob 2.6s ease-in-out infinite;
}
.add-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 6px rgba(0,152,217,0.3),
    0 14px 36px rgba(0,152,217,0.6),
    0 4px 0 rgba(0,0,0,0.08);
}
.add-cta:active { transform: scale(0.97); }
.add-cta-heart {
  width: 26px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.add-cta-label { line-height: 1; }
@keyframes cta-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.recap-fab {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--paper-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Filter FAB — top-right of feed */
.filter-fab {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 700;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: var(--paper-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.filter-fab-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--candy-coral);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Action dock — bottom-right cluster: Email recap, Filter, Add yours */
.action-dock {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.action-dock .add-cta {
  position: static;
  bottom: auto; right: auto;
  animation: none;
  /* The blue glow box-shadow bleeds ~18px up from the button. Add extra
     space above so it doesn't smoosh into the dock-icon directly above. */
  margin-top: 10px;
}
.dock-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--paper-ink);
  font: 700 11.5px/1 inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition: transform 160ms ease-out, box-shadow 160ms;
}
.dock-icon:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
.dock-icon-label { line-height: 1; }
.dock-icon-dot {
  position: absolute;
  top: 4px; right: 6px;
  width: 8px; height: 8px;
  background: var(--rs-blue-500, #0098D9);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Booth dock button — primary marketing slot, slightly louder */
.dock-icon-booth {
  background: var(--candy-coral);
  color: #fff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 6px 16px rgba(232, 95, 86, 0.28);
}
.dock-icon-booth:hover {
  background: #d44a3f;
  box-shadow: 0 8px 22px rgba(232, 95, 86, 0.38);
}
.dock-icon-pulse {
  position: absolute;
  top: 4px; right: 6px;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.85);
  animation: dock-booth-pulse 1.8s ease-out infinite;
}
@keyframes dock-booth-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.85); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Filter panel — when opened from dock, anchor just above the dock.
   Action dock is ~250px tall (4 dock-icons + add-cta + gaps) anchored at
   bottom: 24px, so its top edge sits ~274px above the viewport floor.
   Park the panel at 286px so there's a small clean gap, no overlap. */
.filter-panel-dock {
  position: fixed;
  top: auto;
  right: 20px;
  bottom: 286px;
  z-index: 950;
}

/* Plane spacing */
.intro-flyover { gap: 14px; }
.intro-banner { margin-right: 0; }

/* Intro headline accent — "love letters" in a warm candy-red */
.intro-h-accent {
  color: var(--candy-coral-ink);
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(180deg, transparent 70%, rgba(248,154,142,0.35) 70%, rgba(248,154,142,0.35) 95%, transparent 95%);
  padding: 0 2px;
}

/* The .filter-panel class is now just a marker for filter-specific scoping
   in the mobile media query (see .filter-panel.filter-panel-dock rules
   below). All visual styling and positioning come from .ana-panel and
   .filter-panel-dock. */
@keyframes filter-pop {
  from { transform: translateY(-6px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 4px;
}
/* Desktop: wrapper is a passthrough; mobile media query makes it a flex
   container that centers the rows in the available canvas. */
.filter-rows {
  display: contents;
}
.filter-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--paper-ink-soft);
  cursor: pointer;
  padding: 0 4px;
}
.filter-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper-ink);
  cursor: pointer;
  text-align: left;
  transition: background 120ms;
}
.filter-row:hover { background: rgba(0,0,0,0.04); }
.filter-row.off { opacity: 0.45; }
.filter-row.off .chip-dot { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); background: transparent; }
.filter-row[data-c="blue"]   .chip-dot { --c: var(--candy-blue); }
.filter-row[data-c="mint"]   .chip-dot { --c: var(--candy-mint); }
.filter-row[data-c="coral"]  .chip-dot { --c: var(--candy-coral); }
.filter-row[data-c="pink"]   .chip-dot { --c: var(--candy-pink); }
.filter-row[data-c="butter"] .chip-dot { --c: var(--candy-butter); }
.filter-row-label { flex: 1; }
.filter-row-check {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--paper-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-row.off .filter-row-check {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.18);
}
.filter-reset {
  width: 100%;
  margin-top: 4px;
  padding: 6px;
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-ink-soft);
  cursor: pointer;
}

/* INTRO OVERLAY */
.intro-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 240ms ease-out;
}
.intro-card {
  background: var(--paper-cream);
  border-radius: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: intro-pop 420ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.intro-body {
  padding: 18px 24px 22px;
  overflow-y: auto;
}

/* Sky scene — flyover banner callback */
.intro-sky {
  position: relative;
  height: 132px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--candy-blue) 65%, white) 0%,
      color-mix(in srgb, var(--candy-blue) 35%, white) 100%);
  overflow: hidden;
  border-bottom: 1px dashed rgba(255,255,255,0.55);
}
.intro-cloud {
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  filter: blur(0.3px);
}
.intro-cloud-1 { width: 70px; height: 14px; top: 22px;  left: 18%; opacity: 0.75; }
.intro-cloud-2 { width: 48px; height: 10px; top: 78px;  left: 70%; opacity: 0.65; }
.intro-cloud-3 { width: 90px; height: 16px; top: 100px; left: 8%;  opacity: 0.55; }
.intro-cloud-4 { width: 36px; height: 8px;  top: 48px;  left: 50%; opacity: 0.6;  }

/* Tiny pink hearts that fall and fade behind the plane */
.intro-trail {
  position: absolute;
  width: 10px;
  height: 9px;
  background-color: var(--candy-pink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'><path d='M50 86 C 18 60, 2 42, 2 25 C 2 10, 14 2, 26 2 C 36 2, 44 8, 50 18 C 56 8, 64 2, 74 2 C 86 2, 98 10, 98 25 C 98 42, 82 60, 50 86 Z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'><path d='M50 86 C 18 60, 2 42, 2 25 C 2 10, 14 2, 26 2 C 36 2, 44 8, 50 18 C 56 8, 64 2, 74 2 C 86 2, 98 10, 98 25 C 98 42, 82 60, 50 86 Z' fill='black'/></svg>") center/contain no-repeat;
  top: 56px;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(244, 162, 192, 0.4));
  animation: trail-fall 5s ease-in infinite;
}
.intro-trail-1 { left: 18%; animation-delay: 0s;   width: 10px; height: 9px; }
.intro-trail-2 { left: 35%; animation-delay: 1.2s; width: 8px;  height: 7px; }
.intro-trail-3 { left: 52%; animation-delay: 2.4s; width: 12px; height: 11px; }
.intro-trail-4 { left: 70%; animation-delay: 3.6s; width: 7px;  height: 6px; }
@keyframes trail-fall {
  0%   { transform: translate(0, 0) rotate(-8deg); opacity: 0; }
  10%  { opacity: 1; }
  60%  { opacity: 0.9; }
  100% { transform: translate(-12px, 80px) rotate(20deg); opacity: 0; }
}

/* Tiny sparkles in the sky */
.intro-twinkle {
  display: none;
}

.intro-flyover {
  position: absolute;
  top: 38%;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: intro-flyover-cross 9s linear infinite;
  will-change: transform;
}
@keyframes intro-flyover-cross {
  0%   { transform: translateX(-55%); }
  100% { transform: translateX(115%); }
}
.intro-plane {
  /* viewBox is 92×56 (extended right to hold the propeller). Bump CSS width
     to 62 so the plane stays roughly the same visual size as before despite
     the wider viewBox. */
  width: 62px;
  height: 38px;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.10));
}
.intro-prop {
  /* fill-box + center → ellipse rotates around its own (cx, cy) which is
     the prop hub at (77, 23). 0.3s = ~200 RPM, friendly cartoon pace. */
  animation: intro-prop-spin 0.3s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes intro-prop-spin {
  to { transform: rotate(360deg); }
}
.intro-banner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 20px;
  margin-right: -3px;
  background: var(--paper-cream);
  color: var(--rs-navy);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  font-stretch: 80%;
  /* Banner trails BEHIND (to the left of) the plane.
     Flutter on the LEFT (trailing) edge; clean attach point on the right. */
  clip-path: polygon(
    0 0,
    calc(100% - 4px) 0,
    100% 50%,
    calc(100% - 4px) 100%,
    0 100%,
    6px 50%
  );
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  animation: intro-banner-flutter 1.6s ease-in-out infinite;
  transform-origin: right center;
}
.intro-banner-logo {
  height: 14px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.intro-banner-text { position: relative; z-index: 1; }
.intro-banner-heart { color: var(--candy-coral); font-size: 18px; line-height: 1; position: relative; z-index: 1; }
.intro-banner-tail {
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--rs-navy);
  opacity: 0.35;
}
@keyframes intro-banner-flutter {
  0%, 100% { transform: skewX(2deg) translateY(0); }
  50%      { transform: skewX(-2deg) translateY(1px); }
}

@keyframes intro-pop {
  from { transform: translateY(20px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.intro-h {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 14px 0 8px;
  color: var(--paper-ink);
  text-wrap: balance;
}
.intro-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper-ink-soft);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.intro-sub b { color: var(--paper-ink); font-weight: 700; }
.intro-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  text-align: left;
}
.intro-legend-compact {
  padding: 10px 12px;
  gap: 5px 10px;
}
.intro-legend-compact .intro-legend-row { font-size: 11.5px; }
.intro-legend-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--paper-ink);
}
.intro-legend-row[data-c="blue"]   .chip-dot { --c: var(--candy-blue); }
.intro-legend-row[data-c="mint"]   .chip-dot { --c: var(--candy-mint); }
.intro-legend-row[data-c="coral"]  .chip-dot { --c: var(--candy-coral); }
.intro-legend-row[data-c="pink"]   .chip-dot { --c: var(--candy-pink); }
.intro-legend-row[data-c="butter"] .chip-dot { --c: var(--candy-butter); }
.intro-cta { width: 100%; padding: 14px; }
.intro-tiny {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--paper-ink-soft);
  letter-spacing: 0.04em;
}

.sheet-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 22px;
  text-align: left;
  color: var(--paper-ink);
}
.sheet-sub {
  color: var(--paper-ink-soft);
  font-size: 14px;
  margin: 0 0 18px;
}
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prompt-chip {
  border: 0;
  border-radius: 18px;
  padding: 16px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: var(--c-tint, rgba(0,0,0,0.04));
  color: var(--ink, var(--paper-ink));
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform 150ms, box-shadow 150ms;
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.prompt-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.prompt-chip:active { transform: scale(0.97); }
.prompt-chip[data-c="blue"]   { --c: var(--candy-blue);   --ink: var(--candy-blue-ink);   --c-tint: #DCEEF8; }
.prompt-chip[data-c="mint"]   { --c: var(--candy-mint);   --ink: var(--candy-mint-ink);   --c-tint: #E2F1E1; }
.prompt-chip[data-c="coral"]  { --c: var(--candy-coral);  --ink: var(--candy-coral-ink);  --c-tint: #FCDFD9; }
.prompt-chip[data-c="pink"]   { --c: var(--candy-pink);   --ink: var(--candy-pink-ink);   --c-tint: #FBE3EC; }
.prompt-chip[data-c="butter"] { --c: var(--candy-butter); --ink: var(--candy-butter-ink); --c-tint: #FBEFC1; }
.prompt-chip[data-c="purple"] { --c: var(--candy-purple); --ink: var(--candy-purple-ink); --c-tint: #ECE3F7; }
.prompt-chip:nth-child(5),
.prompt-chip:nth-child(6) { grid-column: auto; }

.chip-dot {
  width: 14px; height: 14px;
  background: var(--c);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.08);
}

/* Heart glyph used inside prompt chips, filter rows, picked pill, and intro legend.
   Inherits color from its container's --c (set via [data-c="..."]). */
.chip-heart {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--c, var(--candy-pink));
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.06));
}
/* Filter rows + intro legend rows used to color the dot via --c on the chip-dot.
   Now they color the chip-heart via the row's own data-c. */
.filter-row[data-c="blue"]   .chip-heart { color: var(--candy-blue); }
.filter-row[data-c="mint"]   .chip-heart { color: var(--candy-mint); }
.filter-row[data-c="coral"]  .chip-heart { color: var(--candy-coral); }
.filter-row[data-c="pink"]   .chip-heart { color: var(--candy-pink); }
.filter-row[data-c="butter"] .chip-heart { color: var(--candy-butter); }
.filter-row[data-c="purple"] .chip-heart { color: var(--candy-purple); }
.filter-row.off .chip-heart { opacity: 0.5; }

.intro-legend-row[data-c="blue"]   .chip-heart { color: var(--candy-blue); }
.intro-legend-row[data-c="mint"]   .chip-heart { color: var(--candy-mint); }
.intro-legend-row[data-c="coral"]  .chip-heart { color: var(--candy-coral); }
.intro-legend-row[data-c="pink"]   .chip-heart { color: var(--candy-pink); }
.intro-legend-row[data-c="butter"] .chip-heart { color: var(--candy-butter); }
.intro-legend-row[data-c="purple"] .chip-heart { color: var(--candy-purple); }

.picked-pill[data-c="blue"]   .chip-heart { color: var(--candy-blue); }
.picked-pill[data-c="mint"]   .chip-heart { color: var(--candy-mint); }
.picked-pill[data-c="coral"]  .chip-heart { color: var(--candy-coral); }
.picked-pill[data-c="pink"]   .chip-heart { color: var(--candy-pink); }
.picked-pill[data-c="butter"] .chip-heart { color: var(--candy-butter); }
.picked-pill[data-c="purple"] .chip-heart { color: var(--candy-purple); }
.sheet-cancel {
  width: 100%;
  background: transparent;
  border: 0;
  margin-top: 14px;
  padding: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--paper-ink-soft);
  cursor: pointer;
}
.sheet-back {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  color: var(--paper-ink-soft);
  cursor: pointer;
  padding: 4px 0;
  margin: 0 14px 4px 0;
}
.picked-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-tint);
  color: var(--ink);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.picked-pill[data-c="blue"]   { --c: var(--candy-blue);   --ink: var(--candy-blue-ink);   --c-tint: #DCEEF8; }
.picked-pill[data-c="mint"]   { --c: var(--candy-mint);   --ink: var(--candy-mint-ink);   --c-tint: #E2F1E1; }
.picked-pill[data-c="coral"]  { --c: var(--candy-coral);  --ink: var(--candy-coral-ink);  --c-tint: #FCDFD9; }
.picked-pill[data-c="pink"]   { --c: var(--candy-pink);   --ink: var(--candy-pink-ink);   --c-tint: #FBE3EC; }
.picked-pill[data-c="butter"] { --c: var(--candy-butter); --ink: var(--candy-butter-ink); --c-tint: #FBEFC1; }
.picked-pill[data-c="purple"] { --c: var(--candy-purple); --ink: var(--candy-purple-ink); --c-tint: #ECE3F7; }

.preview-heart-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 18px;
}
.char-meter {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.sending-spin {
  width: 36px; height: 36px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--candy-coral);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline error from server-side rejection (moderation, rate limit, etc.) */
.submit-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(248, 154, 142, 0.18);
  border: 1px solid rgba(156, 47, 42, 0.25);
  color: var(--candy-coral-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  animation: fade-in 200ms ease-out;
}

/* ────────────── POST SUBMIT ────────────── */
.post-sheet { max-width: 460px; }
.hero-heart-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
}
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 14px;
  background: var(--c);
  transform-origin: center 100px;
  transform: translate(-50%, -50%) rotate(var(--d)) translateY(-110px);
  border-radius: 2px;
  animation: confetti-pop 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes confetti-pop {
  0%   { transform: translate(-50%, -50%) rotate(var(--d)) translateY(-30px) scale(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--d)) translateY(-130px) scale(1); opacity: 0; }
}

.share-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 14px;
}
.share-toast {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-ink);
  color: var(--paper-cream);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  animation: fade-in 200ms ease-out;
}

.opt-in-card {
  background: rgba(0,0,0,0.03);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 8px;
}
.opt-in-q {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--paper-ink);
  text-wrap: balance;
}
.opt-in-form {
  display: flex;
  gap: 6px;
}
.opt-in-form input,
.recap-form input {
  flex: 1;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.opt-in-form input:focus,
.recap-form input:focus { border-color: var(--candy-coral); }
.opt-in-fine {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--paper-ink-soft);
  line-height: 1.4;
}
.opt-in-thanks {
  font-weight: 700;
  color: var(--candy-mint-ink);
  margin: 4px 0;
}
.opt-in-error,
.recap-error {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--candy-coral-ink);
  line-height: 1.4;
}

/* ────────────── ABOUT POPUP ────────────── */
.about-popup {
  position: fixed;
  top: 60px;
  left: 16px;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100dvh - 88px);
  background: var(--paper-cream);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 14px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.06);
  z-index: 950;
  overflow-y: auto;
}
.about-body {
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-mark {
  margin-bottom: 4px;
}
.about-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--paper-ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
.about-h-sub {
  font-size: 14px;
  font-weight: 800;
  color: var(--paper-ink);
  margin: 8px 0 -4px;
  letter-spacing: 0.01em;
}
.about-p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-ink);
  margin: 0;
}
.about-p strong {
  color: var(--candy-coral-ink);
  font-weight: 800;
}
.about-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.about-cta-row .btn-pill {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 140px;
}
.btn-ghost {
  background: transparent;
  color: var(--paper-ink);
  border: 1.5px solid rgba(0,0,0,0.12);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

/* Intro overlay — secondary "Learn about Rollstack" pill button. Sits
   directly under the primary CTA, transparent so it visually recedes
   into the cream popup background; the thin border defines the tap
   target. */
.intro-about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  /* Match the primary CTA above it (.btn-pill .btn-primary on .intro-cta):
     14px padding, 16px font, 700 weight. */
  padding: 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--paper-ink);
  font: 700 16px/1 inherit;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.intro-about-link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ────────────── BOOTH POPUP ────────────── */
.booth-popup {
  width: min(360px, calc(100vw - 28px));
  background: linear-gradient(165deg, #fff 0%, #FFF6F4 100%);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18), 0 4px 14px rgba(232, 95, 86, 0.18);
  border: 1.5px solid rgba(232, 95, 86, 0.18);
  overflow: hidden;
}
.booth-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.booth-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--candy-coral);
  margin: 4px 0 6px;
  line-height: 0.9;
}
.booth-hash {
  font-size: 32px;
  font-weight: 800;
  opacity: 0.7;
}
.booth-num {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--candy-coral) 0%, #c9412e 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(232,95,86,0.08);
}
.booth-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--paper-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.booth-sub {
  font-size: 14px;
  color: var(--paper-ink-soft);
  margin: 0;
  line-height: 1.45;
  max-width: 280px;
}
.booth-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  text-align: left;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booth-list li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--paper-ink);
  line-height: 1.4;
}
.booth-list li span {
  color: var(--candy-coral);
  font-weight: 800;
  flex-shrink: 0;
}
.booth-cta {
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

/* ────────────── RECAP POPUP ────────────── */
.recap-popup {
  width: min(360px, calc(100vw - 28px));
  background: var(--paper-cream);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
  border: 1.5px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.recap-body {
  padding: 14px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recap-h {
  font-size: 22px;
  font-weight: 800;
  color: var(--paper-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.recap-sub {
  font-size: 13px;
  color: var(--paper-ink-soft);
  margin: 0;
  line-height: 1.45;
}
.recap-form-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.recap-form-inline input {
  border: 1.5px solid rgba(0,0,0,0.1);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: 500 14px/1 inherit;
  color: var(--paper-ink);
  outline: none;
  transition: border-color 160ms;
}
.recap-form-inline input:focus { border-color: var(--candy-coral); }
.recap-form-inline button {
  align-self: stretch;
  justify-content: center;
}
.recap-fine {
  font-size: 11px;
  color: var(--paper-ink-soft);
  margin: 4px 0 0;
  line-height: 1.4;
  opacity: 0.8;
}
.rs-footer-LEGACY {
  display: none;
}
.footer-grid-LEGACY {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.footer-card {
  background: rgba(0,0,0,0.03);
  border-radius: 20px;
  padding: 22px;
}
.footer-card[data-c="butter"] {
  background: linear-gradient(135deg, #FBEFC1 0%, #F6DC83 100%);
}
.footer-h {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0;
  color: var(--paper-ink);
}
.footer-h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 6px 0 12px;
  color: var(--paper-ink);
  text-wrap: balance;
}
.footer-sub {
  color: var(--paper-ink-soft);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.footer-recap {
  max-width: 720px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, #FCDFD9 0%, #FBE3EC 50%, #DCEEF8 100%);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}
.recap-form {
  display: flex;
  gap: 8px;
  margin: 16px auto 6px;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}
.recap-form input {
  background: #fff;
  flex: 1;
  min-width: 220px;
}
.footer-bottom {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-bottom p { margin: 0; font-size: 13px; color: var(--paper-ink-soft); max-width: 480px; }
.footer-bottom a { color: var(--rs-sky); font-weight: 700; text-decoration: none; }

.rs-eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-sky);
  margin: 0 0 4px;
}

/* Tweak hints */
.tweak-hint {
  font-size: 11px;
  color: var(--paper-ink-soft);
  margin: 6px 12px 8px;
  line-height: 1.4;
}

/* ────────────── RESPONSIVE ────────────── */
@media (min-width: 720px) {
  .footer-h { font-size: 32px; }
  .footer-h2 { font-size: 40px; }
  .feed-static { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px; }
}
@media (max-width: 460px) {
  .wordmark-tag { font-size: 12px; }
  .ticker-line { font-size: 10px; }
  .rs-header-right span:not(.live-dot) { display: none; }
  .rs-header-right { padding: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-recap { padding: 24px 20px; }

  /* Duo lockup is ~7:1 — shrink the header logo height so it fits the left
     column without overflowing into the centered wordmark. 13px high =
     ~92px wide, comfortably inside the ~97px column on a 375px viewport. */
  .rs-header-logo { height: 13px !important; }

  /* Tighten the action dock so all 5 buttons fit on short mobile viewports.
     Prior: 4*38 + ~50 + 4*10 = ~242px tall. New: 4*32 + ~42 + 4*6 = ~194px. */
  .action-dock {
    gap: 6px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    right: 14px;
  }
  .dock-icon {
    height: 32px;
    padding: 0 11px 0 9px;
    font-size: 10.5px;
    gap: 6px;
  }
  .dock-icon svg { width: 16px; height: 16px; }
  /* Add yours is the primary CTA — bump it up so it visually dominates
     the secondary dock-icon pills (32px tall) instead of looking like a
     fifth list item with a different color. */
  .add-cta {
    padding: 14px 22px 14px 16px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }
  .add-cta-heart { width: 26px; height: 24px; }

  /* Filter panel anchor adjusts to the smaller dock */
  .filter-panel-dock { bottom: 230px; right: 14px; }
}

/* Respect notch / safe areas on devices with viewport-fit=cover */
.rs-header {
  padding-top: env(safe-area-inset-top, 0px);
}
.action-dock {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

/* ────────────── MOBILE FULL-SCREEN POPUPS ──────────────
   On phones (≤460px) all dock-triggered popups (Filter, Analysis,
   Booth, Recap) and the About popup take over the viewport with a
   small inset and a gentle slide-up. The right-anchored layout was
   cramped and inconsistent across popups; full-screen is simpler to
   read and tap on a phone. */
@media (max-width: 460px) {
  .filter-panel-dock,
  .about-popup {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 22px !important;
    overflow-y: auto;
    animation: mobile-popup-rise 280ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Vertically center the hero-style content popups (Booth, Recap) so the
     content sits in the visual middle instead of pinned to the top. The
     others (Analysis, About) stay top-aligned and scroll. */
  .booth-popup .booth-body,
  .recap-popup .recap-body {
    flex: 1;
    justify-content: center;
  }

  /* Filter panel: content-sized, anchored above the action dock —
     overrides the full-screen mobile rule above. Filter only has 6 short
     rows; a full-screen treatment forced an awkward choice between
     stretching rows uncomfortably tall or leaving a giant empty canvas.
     Sized to its content sits right next to the dock that opened it. */
  .filter-panel.filter-panel-dock {
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 220px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 60dvh !important;
    display: flex;
    flex-direction: column;
  }
  .filter-panel.filter-panel-dock .filter-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .filter-panel.filter-panel-dock .filter-row {
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 12px;
    gap: 12px;
  }
  .filter-panel.filter-panel-dock .filter-row .chip-heart {
    width: 20px;
    height: 20px;
  }
  .filter-panel.filter-panel-dock .filter-row-check {
    width: 22px;
    height: 22px;
  }
  .filter-panel.filter-panel-dock .filter-row-check svg {
    width: 14px;
    height: 14px;
  }
  .filter-panel.filter-panel-dock .filter-reset {
    padding: 10px;
    font-size: 12.5px;
    border-radius: 10px;
    margin-top: 4px;
  }

  /* Booth #10 numeral can lean into the bigger canvas */
  .booth-num { font-size: 120px; }

  /* Bigger close-× tap target (was ~24×24, well under iOS 44pt min) */
  .filter-close {
    width: 40px;
    height: 40px;
    font-size: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }
  .filter-close:hover { background: rgba(0,0,0,0.05); }

  /* Bigger analysis tab tap targets */
  .ana-tab-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* More breathing room in the panel head + body areas on the bigger canvas */
  .ana-head,
  .filter-panel-head { padding: 10px 14px 8px; }
  .booth-body { padding: 24px 22px 28px; }
  .recap-body { padding: 18px 22px 24px; }
  .about-body { padding: 24px 22px 28px; }
}

@keyframes mobile-popup-rise {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ────────────── ANALYSIS PANEL ────────────── */
.ana-panel {
  width: min(420px, calc(100vw - 28px));
  background: var(--paper-cream);
  border-radius: 18px;
  padding: 12px 12px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  animation: filter-pop 200ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: min(640px, calc(100dvh - 240px));
  display: flex;
  flex-direction: column;
}
.ana-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 6px;
}
.ana-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  margin: 4px 6px 10px;
  align-self: flex-start;
}
.ana-tab-btn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--paper-ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.ana-tab-btn:hover { color: var(--paper-ink); }
.ana-tab-btn.on {
  background: var(--paper-cream);
  color: var(--paper-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ana-body {
  overflow-y: auto;
  padding: 0 4px;
  flex: 1;
}
.ana-tab { padding: 2px 4px 4px; }
.ana-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.ana-meta {
  font-size: 11px;
  color: var(--paper-ink-soft);
  font-weight: 600;
}

/* ── Leaderboard ── */
.lb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lb-row {
  display: grid;
  grid-template-columns: 22px 22px 1fr 60px auto;
  gap: 10px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 120ms;
}
.lb-row:hover { background: rgba(0,0,0,0.03); }
.lb-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--paper-ink-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lb-mini-heart {
  width: 18px; height: 16px;
  display: inline-flex;
}
.lb-mini-heart svg { width: 100%; height: 100%; }
.lb-row[data-c="blue"]   .lb-mini-heart svg path,
.lb-row[data-c="blue"]   .lb-bar { fill: var(--candy-blue);   background: var(--candy-blue); }
.lb-row[data-c="mint"]   .lb-mini-heart svg path,
.lb-row[data-c="mint"]   .lb-bar { fill: var(--candy-mint);   background: var(--candy-mint); }
.lb-row[data-c="coral"]  .lb-mini-heart svg path,
.lb-row[data-c="coral"]  .lb-bar { fill: var(--candy-coral);  background: var(--candy-coral); }
.lb-row[data-c="pink"]   .lb-mini-heart svg path,
.lb-row[data-c="pink"]   .lb-bar { fill: var(--candy-pink);   background: var(--candy-pink); }
.lb-row[data-c="butter"] .lb-mini-heart svg path,
.lb-row[data-c="butter"] .lb-bar { fill: var(--candy-butter); background: var(--candy-butter); }
.lb-row[data-c="purple"] .lb-mini-heart svg path,
.lb-row[data-c="purple"] .lb-bar { fill: var(--candy-purple); background: var(--candy-purple); }
.lb-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.lb-bar-wrap {
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.lb-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lb-loves {
  font-size: 11px;
  font-weight: 800;
  color: var(--paper-ink);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.lb-loves svg { color: var(--candy-coral-ink); }

/* ── Word cloud ── */
.cloud-bag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 16px;
  line-height: 1.1;
}
.cloud-word {
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: default;
  transition: transform 140ms;
  text-transform: uppercase;
}
.cloud-word:hover { transform: scale(1.08); }
.cloud-word[data-c="blue"]   { color: var(--candy-blue-ink); }
.cloud-word[data-c="mint"]   { color: var(--candy-mint-ink); }
.cloud-word[data-c="coral"]  { color: var(--candy-coral-ink); }
.cloud-word[data-c="pink"]   { color: var(--candy-pink-ink); }
.cloud-word[data-c="butter"] { color: var(--candy-butter-ink); }
.cloud-word[data-c="purple"] { color: var(--candy-purple-ink); }

/* ── Map ── */
.map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 500;
  background:
    radial-gradient(ellipse at 50% 50%, #F4FBFF 0%, #E5F4FB 70%, #DCEEF8 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
}
.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-bg path {
  /* Continents — soft Rollstack-blue silhouettes on the map */
  fill: rgba(0, 152, 217, 0.18);
  stroke: rgba(0, 61, 87, 0.45);
  stroke-width: 0.6;
  stroke-linejoin: round;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  --pin-size: 22px;
  z-index: 2;
}
.map-pin-heart {
  width: var(--pin-size);
  height: calc(var(--pin-size) * 0.9);
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.map-pin-heart path {
  fill: var(--candy-mint);
  stroke: var(--candy-mint-ink);
  stroke-width: 4;
}
.map-pin:hover .map-pin-heart { transform: scale(1.15) rotate(-3deg); }
.map-pin.open .map-pin-heart { transform: scale(1.2); }
.map-pin-label {
  position: absolute;
  top: calc(var(--pin-size) * 0.95 + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--candy-mint-ink);
  background: rgba(255,255,255,0.85);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.map-pin-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--candy-coral-ink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-pin-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 10;
}
.map-pin-pop-city {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--candy-mint-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.map-pin-pop ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-pin-pop li {
  font-size: 11px;
  font-weight: 600;
  color: var(--paper-ink);
  line-height: 1.3;
}
.map-home {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}
.map-home-flag {
  font-size: 22px;
  color: var(--candy-coral-ink);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.map-home-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--candy-coral-ink);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* City input — green-heart compose */
.city-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--candy-mint-ink);
  margin: 4px 4px 6px;
}
.city-input {
  text-align: center;
  font-size: 22px !important;
  letter-spacing: 0.04em;
  padding: 14px 16px !important;
}

/* ────────────── CITY TYPEAHEAD (mint hearts) ────────────── */
.city-typeahead-wrap {
  position: relative;
}
.city-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1.5px solid var(--candy-mint);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  max-height: 240px;
  overflow-y: auto;
}
.city-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paper-ink);
  cursor: pointer;
  transition: background 120ms;
}
.city-suggestion:hover,
.city-suggestion.active {
  background: color-mix(in srgb, var(--candy-mint) 20%, white);
  color: var(--candy-mint-ink);
}
.city-sugg-name { letter-spacing: 0.02em; }
.city-sugg-country {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper-ink-soft);
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 2px 6px;
}
.city-suggestion.active .city-sugg-country {
  background: rgba(255,255,255,0.6);
  color: var(--candy-mint-ink);
}
.city-feedback {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
}
.city-hint { color: var(--paper-ink-soft); }
.city-match {
  color: var(--candy-mint-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.city-match svg { color: var(--candy-mint-ink); }
.city-unknown { color: var(--paper-ink-soft); }
