/* Widget 55: feelings journey, part two (see 54-journey.css): the guess, "Show me", the reveal, the
   help lines, the phone layout and motion. */

/* The guess */
.hc-fj .fj-faces {
  display: flex;
  gap: 10px;
}
.hc-fj .fj-face {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hc-card);
  box-shadow: inset 0 0 0 1px var(--hc-line);
  color: var(--hc-body);
  cursor: pointer;
}
.hc-fj .fj-face.on {
  background: var(--hc-text);
  color: var(--hc-band);
  box-shadow: inset 0 0 0 1px var(--hc-text);
}
.hc-fj .fj-facelabel {
  min-height: 21px;
  font-size: 14px;
  color: var(--hc-muted);
}

/* Show me */
.hc-fj .fj-go {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hc-fj .fj-show {
  height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-btn-bg);
  color: var(--hc-btn-fg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.hc-fj .fj-show.off {
  opacity: 0.35;
  cursor: default;
}
.hc-fj .fj-hint2 {
  font-size: 14px;
  color: var(--hc-muted);
}
.hc-fj .fj-hint2.gone {
  display: none;
}
.hc-fj .fj-privacy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hc-muted);
}

/* Help lines: on the widget from the start */
.hc-fj .fj-help {
  border-radius: 16px;
  padding: 18px 20px;
  background: #f7f9fe;
  box-shadow: inset 0 0 0 1px #dfe5fe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:root[data-theme="dark"] .hc-fj .fj-help {
  background: #1d2133;
  box-shadow: inset 0 0 0 1px #2f3550;
}
.hc-fj .fj-help p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--hc-body);
}
.hc-fj .fj-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hc-fj .fj-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--hc-text);
  white-space: nowrap;
}
.hc-fj .fj-contact::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--fj-peri);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.hc-fj .fj-cl {
  font-size: 14px;
  color: var(--hc-body);
}
.hc-fj .fj-cn {
  font-size: 20px;
  font-weight: 500;
}
.hc-fj .fj-cnote {
  font-size: 13px;
  color: var(--hc-muted);
}

/* The reveal */
.hc-fj .fj-reveal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hc-line);
  animation: fj-in 0.4s ease-out both;
}
.hc-fj .fj-after {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 10px;
}
.hc-fj .fj-anim .fj-after > * {
  animation: fj-in 0.6s ease-out both;
}
.hc-fj .fj-anim .fj-after > *:nth-child(1) {
  animation-delay: 1.1s;
}
.hc-fj .fj-anim .fj-after > *:nth-child(2) {
  animation-delay: 1.8s;
}
.hc-fj .fj-anim .fj-after > *:nth-child(3) {
  animation-delay: 2.5s;
}
.hc-fj .fj-anim .fj-after > *:nth-child(n + 4) {
  animation-delay: 3.2s;
}
.hc-fj .fj-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hc-fj .fj-block h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hc-text);
}
.hc-fj .fj-lineitem {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hc-text);
}
.hc-fj .fj-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.hc-fj .fj-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hc-fj .fj-colh {
  font-size: 15px;
  font-weight: 600;
}
.hc-fj .fj-count {
  margin: -6px 0 2px;
  font-size: 13px;
  color: var(--hc-muted);
}
.hc-fj .fj-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.hc-fj .fj-bl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--hc-body);
}
.hc-fj .fj-bt {
  display: flex;
  height: 10px;
  border-radius: 5px;
  background: var(--hc-hair);
  overflow: hidden;
}
.hc-fj .fj-bt i {
  display: block;
  height: 100%;
}
.hc-fj .fj-bn {
  font-variant-numeric: tabular-nums;
  color: var(--hc-text);
  white-space: nowrap;
}
.hc-fj .fj-legend {
  font-size: 12px;
  color: var(--hc-muted);
}
.hc-fj .fj-story {
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--hc-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
  background: none;
}
.hc-fj .fj-story p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--hc-body);
}
.hc-fj .fj-story footer {
  font-size: 13px;
  color: var(--hc-muted);
}
.hc-fj .fj-story a {
  color: inherit;
  text-underline-offset: 3px;
}
.hc-fj .fj-guessrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hc-fj .fj-gface {
  display: inline-flex;
  color: var(--hc-text);
  flex-shrink: 0;
}
.hc-fj .fj-step {
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--hc-card);
  box-shadow: inset 0 0 0 1px var(--hc-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hc-fj .fj-step p {
  font-size: 17px;
  line-height: 1.55;
}
.hc-fj .fj-step .fj-src {
  margin: 0;
}
.hc-fj .fj-taps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hc-fj .fj-t {
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-alt);
  box-shadow: inset 0 0 0 1px var(--hc-line);
  color: var(--hc-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.hc-fj .fj-t.on {
  background: var(--hc-text);
  color: var(--hc-band);
  box-shadow: inset 0 0 0 1px var(--hc-text);
}
.hc-fj .fj-replay {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--hc-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Phone: full bleed, bubbles in two rows (3 + 2), axis labels staggered */
@media (max-width: 600px) {
  .hc-fj {
    --fj-pad: 20px;
    border-radius: 0;
    margin-inline: calc(-1 * var(--hc-gutter, 20px));
    padding: 30px 20px 28px;
    gap: 30px;
  }
  .hc-fj .fj-app {
    gap: 30px;
  }
  .hc-fj .fj-title {
    font-size: 26px;
  }
  .hc-fj .fj-mlabel,
  .hc-fj .fj-block h4 {
    font-size: 18px;
  }
  .hc-fj .fj-hint {
    font-size: 13px;
  }
  .hc-fj .fj-lineitem,
  .hc-fj .fj-step p {
    font-size: 16px;
  }
  .hc-fj .fj-after {
    gap: 30px;
  }
  .hc-fj .fj-intro {
    font-size: 16px;
  }
  .hc-fj .fj-sentence {
    font-size: 18px;
  }
  .hc-fj .fj-slabel {
    font-size: 12px;
  }
  .hc-fj .fj-stop:nth-child(even) .fj-slabel {
    grid-row: 1;
  }
  .hc-fj .fj-bubbles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 6px;
  }
  .hc-fj .fj-bub {
    grid-column: span 2;
    height: 178px;
    --d: 48px;
  }
  .hc-fj .fj-bub.lv1 {
    --d: 80px;
  }
  .hc-fj .fj-bub.lv2 {
    --d: 118px;
  }
  .hc-fj .fj-bub:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .hc-fj .fj-orb {
    top: calc(66px - var(--d) / 2);
  }
  .hc-fj .fj-blabel {
    top: 134px;
    font-size: 13px;
  }
  .hc-fj .fj-lanes {
    height: 340px;
  }
  .hc-fj .fj-lanelabel {
    left: 8px;
    font-size: 11.5px;
  }
  .hc-fj .fj-axis {
    height: 42px;
  }
  .hc-fj .fj-ax {
    font-size: 12px;
  }
  .hc-fj .fj-ax:nth-child(even) {
    top: 22px;
  }
  .hc-fj .fj-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .hc-fj .fj-help {
    padding: 16px;
  }
}

@keyframes fj-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes fj-nudge {
  0%,
  70%,
  100% {
    margin-left: 0;
  }
  80% {
    margin-left: 10px;
  }
  90% {
    margin-left: 2px;
  }
}
@keyframes fj-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fj-dotin {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes fj-wave0 {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.03);
  }
}
@keyframes fj-wave1 {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.08);
  }
}
@keyframes fj-wave2 {
  0%,
  100% {
    transform: scaleY(0.97);
  }
  50% {
    transform: scaleY(1.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-fj,
  .hc-fj * {
    animation: none !important;
    transition: none !important;
  }
}
