/* Live2D 看板娘（Miara）挂件样式。左下角悬浮，气泡在右侧。
 * 复用 main.css 的 --color-primary-* / --font-round 全局变量。 */
.kanban {
  position: fixed;
  left: 12px;
  bottom: 0;
  width: 260px;
  height: 360px;
  z-index: 60;              /* 内容之上，header(999)/模态(9999)/暗色开关之下 */
  pointer-events: none;     /* 只有 Miara 本体与按钮可点，其余穿透 */
  user-select: none;
}

.kanban__canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kanban__bubble {
  position: absolute;
  right: -8px;
  top: 18px;
  transform: translateX(100%) scale(0.96);
  transform-origin: left center;
  width: 190px;
  padding: 10px 13px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgb(var(--color-primary-500) / 1);
  color: #fff;
  font-family: var(--font-round, system-ui, sans-serif);
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgb(var(--color-primary-500) / 0.38);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kanban__bubble[data-show="1"] {
  opacity: 1;
  transform: translateX(100%) scale(1);
}
.kanban__bubble::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  border: 7px solid transparent;
  border-left: 0;
  border-right-color: rgb(var(--color-primary-500) / 1);
}

.kanban__close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  color: rgb(var(--color-primary-600) / 1);
  font-size: 15px;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kanban:hover .kanban__close,
.kanban:focus-within .kanban__close {
  opacity: 1;
}

.kanban__resummon {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 60;
  background: rgb(var(--color-primary-500) / 1);
  box-shadow: 0 6px 18px rgb(var(--color-primary-500) / 0.42);
  font-size: 20px;
  line-height: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .kanban,
  .kanban__resummon { display: none !important; }
}
