.confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 70px;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.emotion-face {
  height: 35px;
  width: 35px;
  overflow: visible;
  filter: drop-shadow(1px 2px 0 #2944371b);
}
.emotion-paper {
  fill: currentColor;
  fill-opacity: 0.13;
  stroke: currentColor;
  stroke-opacity: 0.4;
  stroke-width: 1;
}
.tone-easy {
  color: #487d61;
}
.tone-confident {
  color: #697c48;
}
.tone-risky {
  color: #ad7138;
}
.tone-desperate {
  color: #ad5347;
}
.emotion-sweat {
  fill: currentColor;
  fill-opacity: 0.2;
}
.confidence-compact {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  font-size: 10px;
}
.confidence-compact .emotion-face {
  width: 24px;
  height: 24px;
}
.confidence-factors {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 14px 13px;
}
.confidence-factors span {
  font-size: 9px;
  background: #eee9d9;
  color: #7c8069;
  padding: 4px 6px;
  border-radius: 2px;
}
.confidence-factors .factor-care {
  background: #f3e2cc;
  color: #996238;
}
.confidence-factors .factor-strength {
  background: #e2e8cf;
  color: #647954;
}
.tv-subtitles {
  position: fixed;
  left: 50%;
  bottom: 146px;
  translate: -50% 0;
  z-index: 18;
  width: min(620px, 51vw);
  padding: 17px 25px 19px;
  background: #173d3eea;
  color: #fff4d8;
  border-radius: 3px;
  box-shadow: 3px 5px 0 #183d3c27;
  pointer-events: none;
  text-align: center;
}
.tv-subtitles[hidden] {
  display: none;
}
.subtitle-line {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.subtitle-word {
  display: inline-block;
  opacity: 0;
  animation: word-ashore 0.55s cubic-bezier(0.17, 0.8, 0.3, 1) forwards;
  will-change: transform, opacity;
}
.subtitle-word:nth-child(3n) {
  animation-name: word-adrift;
}
.subtitles-leaving .subtitle-word {
  opacity: 1;
  animation: word-away 0.35s ease-in forwards;
}
.subtitles-leaving .subtitle-word:nth-child(3n) {
  animation-name: word-away;
}
.subtitles-intro {
  bottom: 10%;
  width: min(850px, 80vw);
  background: none;
  box-shadow: none;
  padding: 10px 15px;
  color: #fff6de;
  text-shadow: 0 2px 0 #183e4044;
}
.subtitles-intro .subtitle-line {
  font-size: 32px;
  line-height: 1.5;
}
.opening .intro-caption {
  bottom: 7%;
  height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.opening .intro-caption .eyebrow {
  margin-top: 0;
}
.opening .intro-caption .story-dots {
  margin-top: auto;
}
@keyframes word-ashore {
  from {
    opacity: 0;
    transform: translateY(13px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes word-adrift {
  from {
    opacity: 0;
    transform: translate(-5px, 10px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
}
@keyframes word-away {
  from {
    opacity: 1;
    transform: translate(0, 0);
  }
  to {
    opacity: 0;
    transform: translate(5px, -9px) rotate(-2deg);
  }
}
@media (max-height: 830px) and (min-width: 901px) {
  .tv-subtitles {
    bottom: 125px;
    padding: 13px 18px;
  }
  .subtitle-line {
    font-size: 21px;
  }
  .subtitles-intro {
    bottom: 10%;
  }
  .subtitles-intro .subtitle-line {
    font-size: 27px;
  }
}
@media (max-width: 900px) {
  .tv-subtitles {
    width: 86vw;
    bottom: 25px;
  }
  .subtitles-intro {
    bottom: 9%;
    width: 88vw;
  }
  .subtitles-intro .subtitle-line {
    font-size: 25px;
  }
  .opening .intro-caption {
    bottom: 6%;
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subtitle-word {
    opacity: 1;
    animation: none !important;
    transform: none !important;
  }
  .subtitles-leaving .subtitle-word {
    opacity: 0;
  }
}
