/* Widget 54: feelings journey, inputs and lanes (content-intelligence FEELINGS_JOURNEY_SPEC.md;
   design: v2 canvas "Blog widgets", generators/v2_journey_run.py). Five calm feeling colours that
   blend where bubbles overlap: lilac, soft pink, warm sand, periwinkle and jade; no red, no grey.
   The reveal, help lines, phone layout and motion are in 55-journey-reveal.css. */

@property --d {
  syntax: "<length>";
  inherits: true;
  initial-value: 58px;
}

.hc-fj {
  --fj-denial: #b7a6ec;
  --fj-anger: #fd9aa6;
  --fj-bargaining: #dfcbb8;
  --fj-sadness: #8b9cff;
  --fj-acceptance: #5dba91;
  --fj-peri: #5865bd;
  --fj-blend: multiply;
  --fj-orb0: 0.3;
  --fj-track: rgba(255, 255, 255, 0.5);
  --fj-here: rgba(10, 10, 11, 0.34);
  --fj-sky: radial-gradient(
      70% 120% at 100% 30%,
      rgba(255, 226, 206, 0.85),
      rgba(255, 226, 206, 0) 70%
    ), linear-gradient(90deg, #eceffb 0%, #f7f1f5 55%, #fff7ef 100%);
  --fj-pad: 36px;
  background: var(--hc-alt);
  border-radius: 24px;
  padding: 36px var(--fj-pad) 32px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: var(--hc-text);
}
:root[data-theme="dark"] .hc-fj {
  --fj-denial: #b9aaf2;
  --fj-anger: #ff9eaa;
  --fj-bargaining: #cdb8a3;
  --fj-sadness: #8b9cff;
  --fj-acceptance: #6fd3a6;
  --fj-peri: #a8b5f1;
  --fj-blend: screen;
  --fj-orb0: 0.5;
  --fj-track: rgba(255, 255, 255, 0.035);
  --fj-here: rgba(238, 240, 244, 0.5);
  --fj-sky: radial-gradient(
      70% 120% at 100% 30%,
      rgba(255, 214, 190, 0.2),
      rgba(255, 214, 190, 0) 70%
    ), linear-gradient(90deg, #191d2a 0%, #23273a 55%, #39354a 100%);
}
.hc-fj,
.hc-fj * {
  box-sizing: border-box;
}
.hc-fj [hidden] {
  display: none !important;
}
.hc-fj p {
  margin: 0;
}
.hc-fj.fj-live .fj-static {
  display: none;
}
.hc-fj .fj-app {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.hc-fj .fj-app:empty {
  display: none;
}
.hc-fj button:focus-visible,
.hc-fj a:focus-visible {
  outline: 2px solid var(--hc-focus);
  outline-offset: 2px;
}

/* Header */
.hc-fj .fj-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hc-fj .fj-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fj-peri);
}
.hc-fj .fj-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.4px;
  text-wrap: balance;
}
.hc-fj .fj-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hc-body);
  text-wrap: pretty;
}
.hc-fj .fj-feelings {
  margin: 0;
  padding-left: 20px;
  color: var(--hc-body);
}
.hc-fj .fj-moment {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Type scale: title 30 light; section heading 19 bold; content 17 to 20; support 14 muted; fine print 12 to 13 */
.hc-fj .fj-mlabel {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--hc-text);
  text-wrap: balance;
}

/* Her story: a sentence of dropdown blanks (the pills are in 56-journey-blanks.css) */
.hc-fj .fj-sentence {
  font-size: 20px;
  line-height: 2.25;
  color: var(--hc-text);
}
.hc-fj .fj-sentence span {
  margin-right: 2px;
}

/* The road */
.hc-fj .fj-road {
  position: relative;
  height: 96px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.hc-fj .fj-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hc-line) 0%, var(--hc-line) 82%, transparent 100%);
}
.hc-fj .fj-stops {
  position: absolute;
  inset: 0;
}
.hc-fj .fj-stop {
  position: absolute;
  top: 11px;
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: 24px 14px 24px;
  row-gap: 6px;
  justify-items: center;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--hc-body);
  font: inherit;
  cursor: pointer;
}
.hc-fj .fj-dot0 {
  grid-row: 2;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--hc-band);
  box-shadow: inset 0 0 0 2px var(--hc-strong);
}
.hc-fj .fj-slabel {
  grid-row: 3;
  font-size: 13px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
}
.hc-fj .fj-stop.on {
  color: var(--hc-text);
}
.hc-fj .fj-stop.on .fj-dot0 {
  box-shadow: inset 0 0 0 2px var(--hc-text);
}
.hc-fj .fj-heart {
  position: absolute;
  top: 34px;
  transform: translateX(-50%);
  display: flex;
  filter: drop-shadow(0 4px 8px rgba(201, 28, 66, 0.28));
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.hc-fj .fj-heart.idle {
  animation: fj-nudge 2.8s ease-in-out infinite;
}
.hc-fj .fj-heart.drag {
  transition: none;
  transform: translateX(-50%) scale(1.15);
}

/* Her heart today: bubbles that grow and blend */
.hc-fj .fj-bubbles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  isolation: isolate;
}
.hc-fj .fj-bub {
  position: relative;
  height: 206px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--hc-text);
  cursor: pointer;
  --d: 58px;
  transition: --d 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hc-fj .fj-bub.lv1 {
  --d: 98px;
}
.hc-fj .fj-bub.lv2 {
  --d: 150px;
}
.hc-fj .fj-orb {
  position: absolute;
  left: calc(50% - var(--d) / 2);
  top: calc(80px - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--c);
  opacity: 0.84;
  mix-blend-mode: var(--fj-blend);
  animation: fj-breathe 5s ease-in-out infinite;
}
.hc-fj .fj-bub.lv0 .fj-orb {
  opacity: var(--fj-orb0);
  box-shadow: inset 0 0 0 2px var(--c);
}
.hc-fj .fj-bub:nth-child(2) .fj-orb {
  animation-delay: -1s;
}
.hc-fj .fj-bub:nth-child(3) .fj-orb {
  animation-delay: -2s;
}
.hc-fj .fj-bub:nth-child(4) .fj-orb {
  animation-delay: -3s;
}
.hc-fj .fj-bub:nth-child(5) .fj-orb {
  animation-delay: -4s;
}
.hc-fj .fj-blabel {
  position: absolute;
  left: 0;
  right: 0;
  top: 162px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}
.hc-fj .fj-blabel small {
  font-size: 12px;
  font-weight: 400;
  color: var(--hc-muted);
}
.hc-fj .fj-hint {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-muted);
}

/* The live lanes */
.hc-fj .fj-lanepanel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hc-fj .fj-lanes {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fj-sky);
}
.hc-fj .fj-lanesvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hc-fj .fj-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hc-fj .fj-track {
  fill: var(--fj-track);
}
.hc-fj .fj-lane {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: fj-wave0 6s ease-in-out infinite;
}
.hc-fj .fj-lane .fj-area {
  fill-opacity: 0.2;
  transition: fill-opacity 0.5s;
}
.hc-fj .fj-lane .fj-edge {
  stroke-width: 1.5;
  opacity: 0.45;
  transition: opacity 0.5s;
}
.hc-fj .fj-lane.lv1 {
  animation-name: fj-wave1;
  animation-duration: 4.4s;
}
.hc-fj .fj-lane.lv1 .fj-area {
  fill-opacity: 0.48;
}
.hc-fj .fj-lane.lv1 .fj-edge {
  opacity: 0.85;
  stroke-width: 2;
}
.hc-fj .fj-lane.lv2 {
  animation-name: fj-wave2;
  animation-duration: 3.2s;
}
.hc-fj .fj-lane.lv2 .fj-area {
  fill-opacity: 0.76;
}
.hc-fj .fj-lane.lv2 .fj-edge {
  opacity: 1;
  stroke-width: 2.5;
}
.hc-fj .fj-lanelabel {
  position: absolute;
  left: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hc-text);
  opacity: 0.82;
  white-space: nowrap;
  pointer-events: none;
}
.hc-fj .fj-veil {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: var(--hc-alt);
  opacity: 0.66;
  pointer-events: none;
}
.hc-fj .fj-here {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed var(--fj-here);
  transition:
    left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s;
}
.hc-fj .fj-here.off {
  opacity: 0;
}
.hc-fj .fj-herelabel {
  position: absolute;
  bottom: 8px;
  left: 0;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hc-band);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--hc-text);
}
.hc-fj .fj-mydot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--hc-band),
    0 3px 8px rgba(0, 0, 0, 0.18);
  transition:
    left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.3s,
    height 0.3s;
  animation: fj-dotin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hc-fj .fj-ghost {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--hc-band);
}
.hc-fj .dragging .fj-here,
.hc-fj .dragging .fj-mydot {
  transition: none;
}
.hc-fj .fj-axis {
  position: relative;
  height: 30px;
}
.hc-fj .fj-ax {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-size: 13px;
  white-space: nowrap;
  color: var(--hc-muted);
}
.hc-fj .fj-ax.on {
  color: var(--hc-text);
  font-weight: 600;
}
.hc-fj .fj-cap {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-body);
}
.hc-fj .fj-src {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--hc-muted);
}
.hc-fj .fj-src a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-fj .fj-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-muted);
}
.hc-fj .fj-lanenotes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hc-fj .fj-srcline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--hc-muted);
  overflow-wrap: anywhere;
}
.hc-fj .fj-srcline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
