/* Each message owns its board. The chat scroller and composer use the base layout. */
.chat-log .dart-message {
  --face: url("assets/chat-board.webp");
  --trim: #99513c;
  --paper: #fffaee;
  --message-ink: #30291e;
  --label-ink: #773423;
  --time-ink: #62594b;
  --disc-edge: 3.8rem;
  color: var(--message-ink);
  isolation: isolate;
  overflow-wrap: anywhere;
}
.chat-log .dart-message.outgoing {
  --trim: #467151;
  --paper: #ebf3e7;
  --message-ink: #192f25;
  --label-ink: #265b41;
  --time-ink: #4a6050;
}
.chat-log .dart-message:not(.short-throw) {
  min-width: min(13.5rem, 85%);
  max-width: min(85%, 39rem);
  border: 1px solid #bdab86;
  border-block-start: 2px solid var(--trim);
  background: linear-gradient(150deg, #fffdf85c, transparent 62%), var(--paper);
  box-shadow: inset 0 0 0 2px #fff8, 0 2px 6px #30291b1c;
  padding: .6rem .9rem .48rem calc(var(--disc-edge) + .6rem);
  border-radius: 1.65rem 1.3rem 1.3rem .35rem;
}
.chat-log .dart-message.outgoing:not(.short-throw) {
  padding: .6rem calc(var(--disc-edge) + .6rem) .48rem .9rem;
  border-radius: 1.3rem 1.65rem .35rem 1.3rem;
}
.chat-log .dart-message:not(.short-throw)::before {
  content: '';
  display: block;
  position: absolute;
  top: .36rem;
  left: .28rem;
  width: var(--disc-edge);
  height: var(--disc-edge);
  margin: 0;
  background: var(--face) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #33271f66);
  pointer-events: none;
}
.chat-log .dart-message.outgoing:not(.short-throw)::before { left: auto; right: .28rem; }
.chat-log .dart-message:not(.short-throw) { min-height: calc(var(--disc-edge) + .8rem); }
.chat-log .dart-message strong { color: var(--label-ink); }
.chat-log .dart-message p { line-height: 1.43; }
.chat-log .dart-message a { color: var(--label-ink); text-underline-offset: .15em; }
.chat-log .dart-message time { color: var(--time-ink); font-variant-numeric: tabular-nums; }
.chat-log .dart-message.short-throw {
  --board-size: 9.6rem;
  width: var(--board-size);
  min-height: var(--board-size);
  max-width: 90%;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  padding: 1.65rem 1.65rem;
  color: #fffaf0;
  background: var(--face) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px #33271f48);
}
.chat-log .dart-message.short-throw::before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  inset: 18%;
  margin: 0;
  width: auto;
  height: auto;
  border: 1px solid #dcb490;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 30%, #5d4031fa, #29211ef5);
  box-shadow: 0 0 0 1px #463320, inset 0 1px 3px #f1d8ad33;
}
.chat-log .dart-message.short-throw.outgoing::before {
  background: radial-gradient(ellipse at 38% 30%, #345945fa, #172f25f5);
  border-color: #c9c798;
}
.chat-log .dart-message.short-throw strong {
  max-width: 100%;
  color: #f7ddb7;
  font-size: .73rem;
}
.chat-log .dart-message.short-throw p {
  margin: .15rem 0;
  max-width: 100%;
  font-size: .95rem;
  line-height: 1.14;
}
.chat-log .dart-message.short-throw time { color: #f0e2d2; font-size: .67rem; }
@media (max-width: 375px) {
  .chat-log .dart-message { --disc-edge: 2.95rem; }
  .chat-log .dart-message:not(.short-throw) { max-width: 91%; }
}
