.mochi-root {
  position: absolute;
  width: 72px;
  height: 72px;
  z-index: 4;
  touch-action: none;
  user-select: none;
}

.mochi-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.mochi-bubble {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  padding: 2px 4px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.mochi-bubble.show {
  opacity: 1;
}

.mochi-root { cursor: grab; -webkit-user-select:none; -webkit-touch-callout:none; }
.mochi-root:active { cursor: grabbing; }
.mochi-root:focus-visible { outline:2px solid #a4552b; outline-offset:2px; border-radius:12px; }
.mochi-bubble {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

/* Single-line speech, independent of mascot width. */
.mochi-root .mochi-bubble { width:max-content; max-width:none; min-width:max-content; white-space:nowrap; overflow-wrap:normal; word-break:normal; }

#mochi-character-list { display:grid; gap:8px; margin-bottom:10px; }
#mochi-character-list button[aria-pressed='true']:not(:disabled) { background:#394650; color:white; }
