/* Sila-mini above the hero headline, with its speech bubble (v2-hero-mini.js). */
.hero-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 64px;
}
.hm-pet {
  position: relative;
  flex: none;
  width: 68px;
  height: 64px;
  opacity: 0;
}
.hero-mini.on .hm-pet { opacity: 1; }
.hm-pet i {
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 10px rgba(6, 7, 29, .45));
}
.hm-say {
  position: relative;
  margin: 0;
  padding: 8px 14px;
  min-block-size: 38px;
  max-inline-size: min(100%, 440px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: #171a45;
  color: #eef0ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: scale(.94);
  transform-origin: left center;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
html[dir="rtl"] .hm-say { transform-origin: right center; }
.hero-mini.talk .hm-say { opacity: 1; transform: none; }
/* the little tail that points at Sila-mini */
.hm-say::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 12px;
  height: 12px;
  border: solid rgba(255, 255, 255, .16);
  border-width: 0 0 1px 1px;
  background: inherit;
  translate: 0 -50%;
  rotate: 45deg;
}
html[dir="rtl"] .hm-say::before { left: auto; right: -7px; border-width: 1px 1px 0 0; }
.hero-mini + h1 { margin-top: 12px; }

html[data-theme="light"] .hm-pet i { filter: drop-shadow(0 6px 8px rgba(35, 40, 99, .22)); }
html[data-theme="light"] .hm-say {
  border-color: rgba(15, 23, 42, .1);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px -16px rgba(35, 40, 99, .4);
}
html[data-theme="light"] .hm-say::before { border-color: rgba(15, 23, 42, .1); }

@media (prefers-reduced-motion: reduce) {
  .hm-say { transition: none; }
}
