/* 도감은 기존 팬 노트 색을 유지해. 이스터에그 하트·테두리만 떵아 지정 장식 색(비공식)이야. */
.mmmm-section { padding: 0 0 70px; }
.mmmm-section .section-heading { flex-wrap: wrap; }
.mmmm-card { --accent: var(--lilac); min-width: 0; background: #191d2e; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mmmm-card .name-line { flex-wrap: wrap; }
.mmmm-card .fact-row { grid-template-columns: 64px minmax(0, 1fr); }
.mmmm-card dd { overflow-wrap: anywhere; }
.mmmm-card .sources { overflow-wrap: anywhere; }
.mmmm-portrait { display: grid; place-items: center; min-width: 0; min-height: 210px; padding: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse, #cdc0ff12, transparent 70%); }
.mmmm-portrait > * { grid-area: 1 / 1; }
.mmmm-portrait img { display: block; width: min(100%, 210px); height: 190px; object-fit: contain; }
.mmmm-portrait [hidden], .mmmm-float[hidden] { display: none; }
.mmmm-image-fallback { max-width: 220px; text-align: center; color: var(--muted); font-size: 11px; }
.mmmm-trust { display: inline-block; border: 1px solid #cdc0ff30; border-radius: 4px; padding: 0 5px; font-size: 10px; color: var(--lilac); }
.mmmm-unofficial { border-color: #e6c99e40; color: #e6c99e; }
.mmmm-fact-reference { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.mmmm-fact-reference a, .mmmm-pairing a, .mmmm-source-note a, .mmmm-group-sources a { text-decoration: underline; text-underline-offset: 3px; }
.mmmm-pairing { margin: 12px 0 18px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.mmmm-source-note, .mmmm-group-sources { color: var(--muted); font-size: 11px; }
.mmmm-source-note { margin: 12px 0 22px; }
.mmmm-group-sources { margin: 20px 0 0; }
/* 본문 흐름에서 빼서 장식 때문에 페이지 아래에 빈 칸이 생기지 않게 해. */
/* 메뉴(10)보다 위에서 말풍선을 보여주되 빈 배경은 클릭을 가로채지 않아. */
.mmmm-decoration { position: fixed; inset: 0; z-index: 11; margin: 0; pointer-events: none; user-select: none; }
.mmmm-float { position: absolute; left: var(--egg-x, 12px); top: var(--egg-y, 12px); width: 58px; height: 52px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; pointer-events: auto; cursor: pointer; touch-action: manipulation; animation: mmmm-float 7s ease-in-out infinite; }
.mmmm-float.is-obscured { visibility: hidden; pointer-events: none; }
.mmmm-float img { width: 100%; height: 100%; object-fit: contain; }
.mmmm-float { -webkit-tap-highlight-color: transparent; }
.albums-section .mmmm-float { animation-duration: 9s; animation-delay: -3s; }
.mmmm-float:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
.mmmm-float.is-found { animation: none; cursor: default; }
.mmmm-float.is-leaving { animation: mmmm-pop-away 420ms ease-in forwards; }
.mmmm-bubble {
  position: absolute; left: 0; top: -64px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  width: 132px; min-height: 44px; padding: 10px 15px;
  border: 1px solid #cdc0ff38; border-radius: 23px 20px 24px 17px;
  background: #191d31d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 18px #b5a2ef16, inset 0 1px 0 #eee7ff0c;
  color: #e7e2f4; font-family: inherit; font-size: 12px; font-weight: 500;
  line-height: 1.5; letter-spacing: .04em; white-space: nowrap; pointer-events: none;
}
/* 별빛 톤의 작은 두 원으로 캐릭터까지 이어 줘. */
.mmmm-bubble::before, .mmmm-bubble::after {
  content: ""; position: absolute; left: var(--tail-x, 50%); transform: translateX(-50%); border-radius: 50%;
  border: 1px solid #cdc0ff38; background: #191d31e6;
  box-shadow: 0 0 8px #b5a2ef20;
}
.mmmm-bubble::before { width: 8px; height: 8px; bottom: -11px; }
.mmmm-bubble::after { width: 4px; height: 4px; bottom: -18px; }
.mmmm-bubble.is-below::before { bottom: auto; top: -11px; }
.mmmm-bubble.is-below::after { bottom: auto; top: -18px; }
.mmmm-bubble[hidden] { display: none; }
.mmmm-heart { color: var(--egg-color); }
/* 검정·갈색 하트의 중심은 그대로 두고 가장자리에만 흰빛을 둘러 어두운 말풍선과 구분해. */
.mmmm-heart--dark { display: inline-block; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff9); }
.mmmm-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes mmmm-pop-away {
  0% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0; transform: translateY(-12px) scale(0); }
}
@keyframes mmmm-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
@media (max-width: 600px) {
  .mmmm-card .card-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mmmm-float, .mmmm-float.is-leaving { animation: none; }
}
