/* Scene parts shared by every draft: the timeline hooks the scene-kit player drives, the dori.bot message bubbles and
   the state word. A scene sets --m-dori, --m-owner and --m-owner-ink (the product's bubble colours) on its frame. */
/* Timeline hooks: scenes.js adds is-on / is-go / is-off as the clock passes each node's data-at / data-go / data-off. */
.enter {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition:
    opacity var(--dur-enter) var(--ease-reverb),
    transform var(--dur-enter) var(--ease-reverb);
}
.enter.is-on {
  opacity: 1;
  transform: none;
}
.fade {
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-standard);
}
.fade.is-on {
  opacity: 1;
}
.fade.is-off {
  opacity: 0;
}
.tok {
  position: absolute;
  opacity: 0;
  transition:
    opacity var(--dur-ui) var(--ease-standard),
    transform var(--dur-travel) var(--ease-travel);
}
.tok.is-on {
  opacity: 1;
}
.tok.is-go {
  transform: translate(var(--tx, 0), var(--ty, 0));
}
.tok.is-off {
  opacity: 0;
}
.rewind * {
  transition: none !important;
}

.msg {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}
.msg--owner {
  justify-content: flex-end;
}
.bubble {
  max-width: 80%;
  padding: var(--space-2) var(--space-3);
  font-size: 15px;
  line-height: 1.35;
  border-radius: 20px 20px 20px 6px;
  background: var(--m-dori);
  color: var(--ink);
}
.msg--owner .bubble {
  border-radius: 20px 20px 6px 20px;
  background: var(--m-owner);
  color: var(--m-owner-ink);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--accent);
}

.st {
  display: inline-grid;
  justify-items: end;
  font-size: var(--text-xs);
  color: var(--ink-2);
}
.st > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.st > span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink-3);
}
.st .t-accent::before {
  background: var(--accent);
}
.st .t-wait {
  color: var(--wait);
}
.st .t-wait::before {
  background: var(--wait);
}
.st .t-ok {
  color: var(--ok);
}
.st .t-ok::before {
  background: var(--ok);
}
.st .t-danger {
  color: var(--danger);
}
.st .t-danger::before {
  background: var(--danger);
}
.sizer {
  visibility: hidden;
}
