/* =====================================================================
   마머미 웹 (디자인 시스템: 핑크 × 누아르, Light)
   PC 1200 컨테이너 우선, 모바일 반응형. 기존 Bootstrap 페이지와 함께 쓴다.
   ===================================================================== */

:root {
  --bg: #f7f3f6;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #efe9ed;
  --line: #e8e0e5;
  --line-strong: #8e7f88;
  --ink: #1e1519;
  --ink-muted: #6b5c65;
  --ink-faint: #8a7b84;
  --pink: #ff2c86;
  --pink-strong: #e0156f;
  --on-pink: #0f0b0e;
  --on-pink-strong: #ffffff;
  --pink-ink: #c8095f;
  --pink-soft: #ffe8f2;
  --noir: #0f0b0e;
  --on-noir: #f5eef2;
  --noir-muted: #b3a4ad;
  --noir-line: #2e2530;
  --noir-raised: #211a23;
  --players: #6f42c1;
  --star: #ffc107;
  --done: #1d7a47;
  --done-soft: #e6f5ec;
  --reserved: #2459c4;
  --reserved-soft: #e8effd;
  --danger: #c9202f;
  --danger-soft: #fdecee;
  --scrim: rgba(15, 11, 14, 0.56);
  --shadow-sm: 0 1px 2px rgba(30, 21, 25, 0.06), 0 1px 3px rgba(30, 21, 25, 0.08);
  --shadow-md: 0 6px 20px rgba(30, 21, 25, 0.10);
  --shadow-lg: 0 16px 40px rgba(30, 21, 25, 0.16);
  --font-display: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --font-sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --container: 1200px;

  /* Bootstrap 쪽(기존 페이지)도 같은 색으로 */
  --bs-primary: #e0156f;
  --bs-primary-rgb: 224, 21, 111;
  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: #f7f3f6;
  --bs-body-color: #1e1519;
  --bs-secondary-color: #6b5c65;
  --bs-link-color: #c8095f;
  --bs-link-hover-color: #ff2c86;
  --bs-border-radius: 14px;
}

/* ---------- 기본 ---------- */
body.mm-body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mm-body a { color: inherit; }
.mm-body img { max-width: 100%; }
.mm-main { flex: 1 0 auto; }
.mm-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 768px) { .mm-container { padding: 0 32px; } }
@media (min-width: 1264px) { .mm-container { padding: 0; } }

.msi {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  flex: none;
}
.msi.fill, .material-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24 !important; }

.mm-display { font-family: var(--font-display); font-weight: 400; }
.mm-data { font-family: var(--font-mono); font-weight: 500; }
.mm-caption { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.mm-label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .02em; }
.mm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mm-body :focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 2px; }

/* ---------- 헤더 ---------- */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mm-header-row { height: 64px; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .mm-header-row { height: 72px; gap: 24px; } }
.mm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; flex: none; }
.mm-brand img { width: 34px; height: 34px; border-radius: 10px; }
.mm-brand span { font-family: var(--font-display); font-size: 21px; line-height: 28px; }
.mm-nav { display: none; align-items: center; gap: 2px; flex: 1 1 auto; }
@media (min-width: 1024px) { .mm-nav { display: flex; } }
.mm-nav a {
  position: relative;
  height: 72px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.mm-nav a:hover { color: var(--ink) !important; }
.mm-nav a.is-on { color: var(--ink) !important; }
.mm-nav a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink); }
.mm-spacer { flex: 1 1 auto; }
@media (min-width: 1024px) { .mm-spacer { display: none; } }
.mm-search {
  display: none;
  width: 280px;
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  flex: none;
}
@media (min-width: 1024px) { .mm-search { display: flex; } }
.mm-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.mm-icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--ink) !important;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.mm-icon-btn:hover { background: var(--surface-sunken); }
.mm-icon-btn.is-surface { background: var(--surface); box-shadow: var(--shadow-sm); }
.mm-hide-desktop { display: inline-grid; }
@media (min-width: 1024px) { .mm-hide-desktop { display: none !important; } }
.mm-hide-mobile { display: none !important; }
@media (min-width: 1024px) { .mm-hide-mobile { display: inline-flex !important; } }
.notification-bell .notification-badge { top: 9px !important; right: 10px !important; width: 8px !important; height: 8px !important; background: var(--pink) !important; border: 2px solid var(--surface) !important; }
.mm-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink-ink) !important;
  font-family: var(--font-display);
  font-size: 18px;
  text-decoration: none;
}
.mm-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 버튼 ---------- */
.mm-btn {
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter 150ms ease-out, transform 150ms ease-out, background-color 150ms ease-out;
}
.mm-btn:active { transform: scale(.98); }
.mm-btn[disabled] { opacity: .4; cursor: default; }
.mm-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.mm-btn-md { height: 44px; padding: 0 18px; font-size: 14px; }
.mm-btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.mm-btn-block { width: 100%; }
.mm-btn-primary { background: var(--pink-strong); color: var(--on-pink-strong) !important; }
.mm-btn-primary:hover { filter: brightness(.94); }
.mm-btn-secondary { background: var(--surface); color: var(--ink) !important; border-color: var(--line-strong); }
.mm-btn-secondary:hover { background: var(--surface-sunken); }
.mm-btn-ghost { background: transparent; color: var(--pink-ink) !important; }
.mm-btn-ghost:hover { background: var(--pink-soft); }
.mm-btn-noir { background: var(--noir); color: var(--on-noir) !important; }
.mm-btn-danger { background: var(--surface); color: var(--danger) !important; border-color: var(--danger); }

/* ---------- 칩·세그먼트·스위치 ---------- */
.mm-chip {
  font: inherit;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  flex: none;
}
.mm-chip:hover { background: var(--surface-sunken); }
.mm-chip.is-on { background: var(--pink-soft); color: var(--pink-ink) !important; border-color: var(--pink-ink); }
.mm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-chips.is-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mm-chips.is-scroll::-webkit-scrollbar { display: none; }

.mm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-sunken); }
.mm-seg button, .mm-seg a {
  font: inherit;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted) !important;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.mm-seg .is-on { background: var(--surface); color: var(--ink) !important; box-shadow: var(--shadow-sm); }
.mm-seg .mm-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }

.mm-switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; margin: 0; cursor: pointer; flex: none; border: 0; }
.mm-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 150ms ease-out; }
.mm-switch:checked { background: var(--pink-strong); }
.mm-switch:checked::after { transform: translateX(20px); }

/* ---------- 뱃지·별점·상태 ---------- */
.mm-players { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mm-badge { display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 999px; font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.mm-badge-players, .bg-purple { background: var(--players) !important; color: #fff !important; }
.mm-badge-gm { background: var(--reserved-soft); color: var(--reserved); }
.mm-badge-spoiler { background: var(--danger-soft); color: var(--danger); }
.mm-rating { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); white-space: nowrap; }
.mm-rating .msi { color: var(--star); font-size: 16px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.mm-rating b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.mm-rating small { font-size: 12px; color: var(--ink-muted); margin-left: 2px; }
.mm-rating.is-lg .msi { font-size: 20px; }
.mm-rating.is-lg b { font-size: 17px; }
.mm-status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.mm-status .msi { font-size: 14px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.mm-status-want { background: var(--pink-soft); color: var(--pink-ink); }
.mm-status-reserved { background: var(--reserved-soft); color: var(--reserved); }
.mm-status-done { background: var(--done-soft); color: var(--done); }
.mm-case { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--noir); color: var(--on-noir); font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: .06em; }
.mm-new { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--pink); color: var(--on-pink); font-size: 11px; line-height: 14px; font-weight: 700; }

/* ---------- 섹션 ---------- */
.mm-section { display: flex; flex-direction: column; gap: 18px; }
.mm-section-head { display: flex; align-items: center; gap: 10px; }
.mm-section-head .msi { color: var(--pink-ink); font-size: 26px; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.mm-section-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 30px; color: var(--ink); }
@media (min-width: 1024px) { .mm-section-title { font-size: 28px; line-height: 36px; } }
.mm-section-count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.mm-more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--pink-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mm-page-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 38px; color: var(--ink); }
@media (min-width: 1024px) { .mm-page-title { font-size: 40px; line-height: 48px; } }

/* ---------- 카드 ---------- */
.mm-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); }
.mm-press { transition: transform 200ms ease-out, box-shadow 200ms ease-out; cursor: pointer; }
.mm-press:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .mm-press, .mm-press:hover { transition: none; transform: none; } }

.mm-art { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--noir); }
.mm-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-art .mm-art-letter { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 64px; color: var(--pink); }

/* 게임 카드 (그리드) */
.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .mm-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mm-grid.is-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }
.mm-game { display: flex; flex-direction: column; padding: 12px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.mm-game .mm-art { display: block; }
.mm-game .mm-case { position: absolute; left: 8px; bottom: 8px; }
.mm-game .mm-rank { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 4px; background: var(--noir); color: var(--on-noir); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.mm-game .mm-art-flag { position: absolute; left: 8px; top: 8px; }
.mm-game-body { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; flex: 1 1 auto; }
.mm-game-name { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.mm-game-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.mm-meta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-muted); }
.mm-meta .msi { font-size: 14px; }
.mm-game-actions { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mm-game-actions .mm-icon-btn { width: 36px; height: 36px; color: var(--ink-muted) !important; }
.mm-game-actions .mm-icon-btn .msi { font-size: 20px; }
.mm-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 11, 14, 0.72);
  color: var(--pink) !important;
  cursor: pointer;
  z-index: 2;
}
.mm-fav .msi { font-size: 20px; }
.mm-played { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(15, 11, 14, 0.72); color: #f5eef2; font-size: 11px; font-weight: 600; }
.mm-played .msi { font-size: 14px; color: #5fd394; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* 가로 스크롤 줄 (모바일) */
.mm-rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px 4px; }
.mm-rail::-webkit-scrollbar { display: none; }
.mm-rail > * { flex: none; scroll-snap-align: start; }
@media (min-width: 768px) { .mm-rail { margin: 0 -32px; padding: 0 32px 4px; scroll-padding-inline: 32px; } }

/* 새로 들어온 사건 포스터 */
.mm-poster {
  position: relative;
  width: 210px;
  height: 276px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--noir);
  border: 1px solid var(--noir-line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: var(--on-noir) !important;
}
.mm-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* 층 순서: 이미지(0) < 어두운 그라데이션(1) < 글자(2). 전에는 이미지가 그라데이션 위에 그려져 밝은 이미지에서 제목이 안 보였다 */
.mm-poster::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,11,14,0) 25%, rgba(15,11,14,.85) 62%, rgba(15,11,14,.98) 100%); }
.mm-poster > * { position: relative; z-index: 2; }
.mm-poster-title { font-family: var(--font-display); font-size: 21px; line-height: 27px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mm-poster .mm-meta { color: var(--noir-muted); }
.mm-poster .mm-rating { color: var(--on-noir); }
.mm-poster .mm-rating small { color: var(--noir-muted); }
@media (min-width: 1024px) {
  .mm-posters { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .mm-posters .mm-poster { width: auto; height: 300px; }
}

/* ---------- 히어로 (누아르) ---------- */
.mm-hero { background: var(--noir); color: var(--on-noir); position: relative; overflow: hidden; }
.mm-hero-mark { position: absolute; right: -40px; top: -60px; font-family: var(--font-display); font-size: 260px; line-height: 1; color: var(--pink); opacity: .12; pointer-events: none; }
@media (min-width: 1024px) { .mm-hero-mark { right: auto; top: auto; left: -60px; bottom: -160px; font-size: 520px; opacity: .08; } }
.mm-hero-inner { position: relative; display: flex; flex-direction: column; gap: 24px; padding-top: 28px; padding-bottom: 24px; }
@media (min-width: 1024px) { .mm-hero-inner { flex-direction: row; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; } }
.mm-hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mm-hero-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: #ff5c9f; }
.mm-hero-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 40px; }
@media (min-width: 1024px) { .mm-hero-title { font-size: 56px; line-height: 66px; } }
.mm-hero-title em { font-style: normal; color: var(--pink); }
.mm-hero-desc { margin: 0; color: var(--noir-muted); font-size: 16px; line-height: 26px; }
.mm-hero-search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 20px; box-sizing: border-box; border-radius: 999px; background: var(--noir-raised); border: 1px solid var(--noir-line); color: var(--noir-muted); max-width: 520px; }
.mm-hero-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--on-noir); }
.mm-hero-search input::placeholder { color: var(--noir-muted); }
.mm-hero .mm-chip { background: var(--noir-raised); border-color: #6e5f69; color: var(--on-noir) !important; }
.mm-hero .mm-chip:hover { background: #2c2330; }

/* 배너 */
.mm-banner { width: 100%; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .mm-banner { width: 560px; } }
.mm-banner .swiper { width: 100%; aspect-ratio: 1020 / 450; border-radius: 20px; overflow: hidden; background: var(--noir-raised); }
.mm-banner .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.mm-banner-count { position: absolute; right: 10px; bottom: 10px; z-index: 5; padding: 3px 8px; border-radius: 999px; background: rgba(15, 11, 14, .72); color: #f5eef2; font-family: var(--font-mono); font-size: 11px; }
.mm-banner .swiper-pagination { position: static; display: flex; justify-content: center; gap: 2px; }
.mm-banner .swiper-pagination-bullet { width: 6px; height: 6px; margin: 9px !important; border-radius: 999px; background: #6e5f69; opacity: 1; transition: width 200ms ease-out; }
.mm-banner .swiper-pagination-bullet-active { width: 18px; background: var(--pink); }

/* ---------- 목록 행·한줄평 ---------- */
.mm-rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); text-decoration: none !important; color: var(--ink) !important; box-shadow: var(--shadow-sm); }
.mm-rank-no { width: 28px; flex: none; text-align: center; font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--pink-ink); }
.mm-rank-row img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; background: var(--noir); }
.mm-rank-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.mm-rank-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mm-comment { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); }
.mm-comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-comment-head img, .mm-comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--pink-soft); }
.mm-comment-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.mm-comment-text { font-size: 15px; line-height: 24px; color: var(--ink); word-break: break-word; }
.mm-comment-foot { display: flex; align-items: center; gap: 16px; color: var(--ink-muted); font-size: 12px; }
.mm-react-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; border: 0; background: none; padding: 0 2px; font: inherit; color: var(--ink-muted); cursor: pointer; }
.mm-react-btn .msi { font-size: 17px; }
.mm-react-btn.is-like { color: var(--pink-ink); font-weight: 700; }
.mm-react-btn.is-dislike { color: var(--danger); font-weight: 700; }
.mm-react-btn.is-like .msi, .mm-react-btn.is-dislike .msi { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.pc-spoiler { filter: blur(6px); cursor: pointer; user-select: none; transition: filter .2s ease; }
.pc-spoiler.revealed { filter: none; user-select: auto; cursor: auto; }
.mm-comment-section { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mm-reply-item { display: flex; gap: 8px; align-items: flex-start; }
.mm-reply-item.is-reply { margin-left: 28px; }
.mm-reply-item img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.mm-reply-name { font-size: 13px; font-weight: 700; }
.mm-reply-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); margin-left: 6px; }
.mm-reply-text { font-size: 14px; line-height: 21px; word-break: break-word; }
.mm-reply-actions { display: flex; gap: 12px; margin-top: 2px; }
.mm-reply-actions button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ink-muted); cursor: pointer; min-height: 28px; }
.mm-inline-form { display: flex; gap: 8px; margin-top: 6px; }
.mm-inline-form input { flex: 1 1 auto; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font: inherit; font-size: 14px; color: var(--ink); }

/* ---------- 입력 ---------- */
.mm-field { display: flex; flex-direction: column; gap: 8px; }
.mm-field > label, .mm-field-label { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.mm-field-hint { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 2px; }
.mm-input, .mm-textarea, .mm-select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.mm-input, .mm-select { height: 48px; padding-top: 0; padding-bottom: 0; }
.mm-textarea { line-height: 22px; resize: vertical; min-height: 88px; }
.mm-input:focus, .mm-textarea:focus, .mm-select:focus { outline: none; border-color: var(--pink-ink); box-shadow: 0 0 0 1px var(--pink-ink); }
.mm-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.mm-check-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.mm-check-text b { font-size: 14px; }
.mm-check-text small { font-size: 12px; color: var(--ink-muted); }

/* ---------- 모달 (모바일: 아래서 올라오는 시트, PC: 가운데 대화상자) ---------- */
body.mm-body #modalOverlay,
body.mm-body #loginModalOverlay,
body.mm-body #gameAddModalOverlay,
body.mm-body #inquiryModalOverlay { background: var(--scrim); z-index: 1050; }
body.mm-body #reviewModal,
body.mm-body #loginModal,
body.mm-body #gameAddModal,
body.mm-body #inquiryModal { position: fixed; padding: 0 !important; }
.mm-dialog {
  background: var(--surface-raised);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 10px 20px 24px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mm-dialog-handle { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); flex: none; }
.mm-dialog-head { display: flex; align-items: center; gap: 12px; }
.mm-dialog-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--noir); }
.mm-dialog-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.mm-dialog-sub { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: -24px; background: var(--surface-raised); padding: 8px 0 0; margin-top: auto; }
.mm-dialog-actions .mm-btn { flex: 1 1 auto; }
@media (min-width: 768px) {
  body.mm-body #reviewModal,
  body.mm-body #loginModal,
  body.mm-body #gameAddModal,
  body.mm-body #inquiryModal {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(560px, calc(100% - 48px));
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform .25s ease-out, opacity .25s ease-out;
  }
  body.mm-body #reviewModal.show,
  body.mm-body #loginModal.show,
  body.mm-body #gameAddModal.show,
  body.mm-body #inquiryModal.show { transform: translate(-50%, -50%); opacity: 1; }
  .mm-dialog { border-radius: 28px; padding: 28px 32px; max-height: calc(100dvh - 64px); }
  .mm-dialog-handle { display: none; }
  .mm-dialog-actions .mm-btn { flex: 0 0 auto; min-width: 120px; }
}
/* 리뷰 모달: 이전 스타일 무력화 */
body.mm-body #reviewModal #starRating { display: flex; justify-content: center; gap: 2px; margin: 0 !important; }
body.mm-body #reviewModal #starRating span { font-size: 42px !important; margin: 0 !important; width: 52px; height: 52px; display: grid; place-items: center; color: var(--star) !important; cursor: pointer; }
body.mm-body #reviewModal #starRating span.mdi-star-outline { color: var(--line-strong) !important; }
body.mm-body #reviewModal #note { padding: 12px 14px !important; }
body.mm-body #reviewModal #aCloseReview { order: 0; }
body.mm-body #reviewModal h6, body.mm-body #reviewModal .mm-dialog { font-size: inherit; }
.mm-score { text-align: center; font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); }

/* 작은 확인창 */
.mm-confirm { position: fixed; inset: 0; background: var(--scrim); z-index: 1060; display: none; align-items: center; justify-content: center; padding: 16px; }
.mm-confirm-box { background: var(--surface-raised); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 24px; width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.mm-confirm-box h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; }
.mm-confirm-box p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.mm-confirm-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

/* ---------- 토스트·로딩 ---------- */
body.mm-body .top-toast, body.mm-body .bottom-toast { background: var(--ink); color: var(--bg); font-size: 14px; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-md); }
body.mm-body .top-toast { top: 88px; }
body.mm-body .loading-overlay { background: rgba(247, 243, 246, .6); }
.mm-live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(15, 11, 14, .78); color: #f5eef2; font-size: 12px; font-weight: 500; }
.mm-live b { font-family: var(--font-mono); font-size: 12px; color: #ff5c9f; }
.mm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: mm-pulse 1.6s ease-out infinite; }
@keyframes mm-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,44,134,.55); } 100% { box-shadow: 0 0 0 8px rgba(255,44,134,0); } }
@media (prefers-reduced-motion: reduce) { .mm-live-dot { animation: none; } }

/* ---------- 빈 화면·광고·통계 ---------- */
.mm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; }
.mm-empty .msi { font-size: 48px; color: var(--ink-faint); }
.mm-empty h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.mm-empty p { margin: 0; font-size: 13px; color: var(--ink-muted); }
.mm-ad { display: flex; justify-content: center; }
.mm-ad-label { font-size: 11px; color: var(--ink-faint); text-align: center; margin-bottom: 4px; }
.mm-stat { background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.mm-stat-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.mm-stat-value { font-family: var(--font-mono); font-size: 26px; line-height: 30px; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .mm-stat-value { font-size: 32px; line-height: 36px; } }
.mm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .mm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* ---------- 필터 패널 ---------- */
.mm-filter { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 22px; }
.mm-filter-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.mm-list-layout { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .mm-list-layout { flex-direction: row; align-items: flex-start; gap: 32px; }
  .mm-list-layout > aside { width: 264px; flex: none; position: sticky; top: 96px; }
  .mm-list-layout > section { flex: 1 1 auto; min-width: 0; }
}
.mm-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 12px; flex-wrap: wrap; }
.mm-pagination button { font: inherit; min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 14px; cursor: pointer; }
.mm-pagination button.is-on { background: var(--pink-soft); color: var(--pink-ink); border-color: var(--pink-ink); font-weight: 600; }
.mm-pagination button[disabled] { opacity: .4; cursor: default; }

/* ---------- 상세 ---------- */
.mm-crumb { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-muted); flex-wrap: wrap; }
.mm-crumb a { color: var(--ink-muted) !important; text-decoration: none; }
.mm-detail-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .mm-detail-top { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.mm-detail-art { position: relative; border-radius: 28px; overflow: hidden; background: var(--noir); aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); }
.mm-detail-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-detail-art .mm-live { position: absolute; left: 16px; bottom: 16px; }
.mm-detail-info { display: flex; flex-direction: column; gap: 22px; }
.mm-detail-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 40px; color: var(--ink); }
@media (min-width: 1024px) { .mm-detail-title { font-size: 46px; line-height: 56px; } }
.mm-info-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mm-info-tile { background: var(--surface); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mm-detail-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .mm-detail-bottom { grid-template-columns: 8fr 4fr; gap: 48px; align-items: start; } }
.mm-story { white-space: pre-line; font-size: 16px; line-height: 28px; color: var(--ink); margin: 0; }
.mm-side-card { background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.mm-side-row { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; text-decoration: none !important; color: var(--ink) !important; }
.mm-side-row:hover { background: var(--surface-sunken); }
.mm-side-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--noir); }

/* ---------- 달력 (마이 머더 히스토리) ---------- */
.mm-cal-card { background: var(--surface); border-radius: 28px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.mm-cal-head { display: flex; align-items: center; gap: 4px; }
.mm-cal-title { margin: 0; font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.mm-cal-week, .mm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mm-cal-week span { text-align: center; font-size: 12px; color: var(--ink-muted); }
.mm-cal-day {
  position: relative;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-sunken);
  padding: 6px;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  border: 0;
  text-align: left;
}
@media (min-width: 1024px) { .mm-cal-day { height: 76px; padding: 8px; } }
.mm-cal-day.is-empty { visibility: hidden; }
.mm-cal-day.is-sun { color: var(--danger); }
.mm-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ink-muted); }
.mm-cal-day.has-play { background: var(--pink); color: var(--on-pink); font-weight: 600; cursor: pointer; }
.mm-cal-day.is-selected { box-shadow: inset 0 0 0 3px var(--noir); }
.mm-cal-day img { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px var(--pink); }
@media (min-width: 1024px) { .mm-cal-day img { width: 34px; height: 34px; border-radius: 8px; } }
.mm-cal-more { position: absolute; left: 6px; bottom: 5px; font-size: 10px; }
.mm-history-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .mm-history-layout { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; } }
.mm-entry { display: flex; gap: 14px; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm); align-items: flex-start; }
.mm-entry > a img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; display: block; background: var(--noir); }
.mm-entry-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-entry-date { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.mm-entry-name { font-size: 15px; font-weight: 700; color: var(--ink) !important; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-entry-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-month-divider { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.mm-month-divider::before, .mm-month-divider::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }

/* ---------- 푸터 ---------- */
.mm-footer { background: var(--noir); color: var(--on-noir); padding: 40px 0 28px; margin-top: 48px; }
@media (min-width: 1024px) { .mm-footer { padding: 56px 0 32px; } }
.mm-footer a { color: var(--on-noir) !important; text-decoration: none; }
.mm-footer a:hover { color: #ff5c9f !important; }
.mm-footer-grid { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) { .mm-footer-grid { flex-direction: row; justify-content: space-between; gap: 48px; } }
.mm-footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.mm-footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--noir-line); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--noir-muted); }
.mm-store { height: 48px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--noir-raised); border: 1px solid var(--noir-line); font-size: 14px; font-weight: 700; }
.mm-qr { width: 104px; height: 104px; border-radius: 16px; background: #fff; padding: 6px; box-sizing: border-box; }
.mm-qr img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 모바일 메뉴 (hc-offcanvas) ---------- */
.hc-offcanvas-nav .nav-container, .hc-offcanvas-nav .nav-wrapper, .hc-offcanvas-nav ul { background: var(--surface) !important; }
.hc-offcanvas-nav li.nav-close a, .hc-offcanvas-nav a.nav-next { border-color: var(--line) !important; }
.hc-offcanvas-nav .nav-item-link, .hc-offcanvas-nav li.nav-close a { color: var(--ink) !important; font-family: var(--font-sans); font-weight: 600; border-bottom: 1px solid var(--line) !important; }
.hc-offcanvas-nav .osahan-user-profile { background: var(--noir) !important; }

/* ---------- 기존(Bootstrap) 페이지 색 맞춤 ---------- */
.mm-body .btn-primary { --bs-btn-bg: var(--pink-strong); --bs-btn-border-color: var(--pink-strong); --bs-btn-hover-bg: #c7105f; --bs-btn-hover-border-color: #c7105f; --bs-btn-active-bg: #b00e55; --bs-btn-color: #fff; }
.mm-body .btn-outline-primary { --bs-btn-color: var(--pink-ink); --bs-btn-border-color: var(--pink-ink); --bs-btn-hover-bg: var(--pink-soft); --bs-btn-hover-color: var(--pink-ink); --bs-btn-hover-border-color: var(--pink-ink); }
.mm-body .text-primary { color: var(--pink-ink) !important; }
.mm-body .bg-primary { background-color: var(--pink-strong) !important; }
.mm-body .bg-light { background-color: var(--bg) !important; }
.mm-body .card { border-radius: 20px; }
.mm-body .form-control:focus, .mm-body .form-select:focus { border-color: var(--pink-ink); box-shadow: 0 0 0 1px var(--pink-ink); }
.mm-body .form-check-input:checked { background-color: var(--pink-strong); border-color: var(--pink-strong); }
.mm-legacy { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 0; box-sizing: border-box; }
.mm-legacy .osahan-page { height: auto !important; min-height: 0 !important; background: transparent !important; }
.mm-legacy .osahan-page-body { height: auto !important; overflow: visible !important; padding-left: 0 !important; padding-right: 0 !important; }
.mm-legacy .osahan-page-header { padding-left: 0 !important; padding-right: 0 !important; }
.mm-legacy .osahan-page-footer { display: none !important; }
/* 기존 페이지 머리: 알림·메뉴는 사이트 상단 바에 있으므로 숨기고, 제목은 새 글꼴로 */
.mm-legacy .osahan-page-header { padding-top: 0 !important; background: transparent !important; }
.mm-legacy .osahan-page-header .notification-bell,
.mm-legacy .osahan-page-header .toggle { display: none !important; }
.mm-legacy .osahan-page-header h6 { font-family: var(--font-display); font-weight: 400 !important; font-size: 26px; line-height: 34px; color: var(--ink) !important; }
.mm-legacy .osahan-page-header small { font-size: 13px; }
.mm-legacy .osahan-page-header .icon-sm { width: 44px; height: 44px; cursor: pointer; }
.mm-legacy .nav-pills .nav-link.active, .mm-legacy .btn-outline-primary.active { background: var(--pink-soft) !important; color: var(--pink-ink) !important; border-color: var(--pink-ink) !important; }

/* ---------- 앱 웹뷰 안 (새 앱이 상단 바를 가짐) ---------- */
body.mm-in-app .mm-footer { display: none; }
body.mm-in-app .mm-legacy { padding-top: 12px; }
/* 앱은 자체 상단 바(제목·뒤로가기)를 가지므로 기존 페이지의 제목 줄도 숨김. 탭 줄은 남긴다 */
body.mm-in-app .mm-legacy .osahan-page-header > .d-flex:first-child { display: none !important; }
body.mm-in-app .mm-ad-wrap { display: none !important; }

/* ---------- 공통 조각 ---------- */
.mm-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.mm-footer .mm-linkbtn { color: var(--on-noir); }
.mm-footer .mm-linkbtn:hover { color: #ff5c9f; }
.mm-ad-wrap { display: none; }
@media (min-width: 768px) { .mm-ad-wrap { display: block; padding-top: 40px; } }
.mm-ad-728 { min-height: 90px; }
.mm-header form.mm-search { margin: 0; }
.mm-header .mm-search input::-webkit-search-cancel-button { cursor: pointer; }
.mm-header button#aLogin { flex: none; }
.hc-offcanvas-nav a { cursor: pointer; }
/* 메뉴 버튼: hc-offcanvas 가 입히는 햄버거 막대 스타일을 걷어내고 아이콘 글꼴로 */
.mm-header .hc-nav-trigger.toggle { display: inline-grid !important; font-size: inherit; }
@media (min-width: 1024px) { .mm-header .hc-nav-trigger.toggle { display: none !important; } }
.mm-header .hc-nav-trigger span.msi { position: static; width: auto; height: auto; background: none; border-radius: 0; transform: none !important; }
.mm-header .hc-nav-trigger span.msi::before, .mm-header .hc-nav-trigger span.msi::after { display: none; }

/* ---------- 홈 ---------- */
.mm-home { display: flex; flex-direction: column; gap: 40px; padding-top: 28px; padding-bottom: 8px; }
@media (min-width: 1024px) { .mm-home { gap: 64px; padding-top: 64px; } }
.mm-top > .mm-game { width: 42%; }
@media (min-width: 768px) { .mm-top > .mm-game { width: 28%; } }
@media (min-width: 1024px) {
  .mm-top { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .mm-top > .mm-game { width: auto; }
  .mm-top > .mm-game:nth-child(n+7) { display: none; }
}
.mm-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) {
  .mm-split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .mm-split-main { grid-column: span 7; }
  .mm-split-side { grid-column: span 5; }
}
.mm-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .mm-cta-grid { grid-template-columns: 2fr 1fr; gap: 20px; } }
.mm-cta-party, .mm-cta-role { border-radius: 28px; padding: 24px; box-sizing: border-box; display: flex; text-decoration: none !important; min-height: 180px; }
.mm-cta-party { background: var(--pink); color: var(--on-pink) !important; flex-direction: column; justify-content: space-between; gap: 20px; }
@media (min-width: 768px) { .mm-cta-party { flex-direction: row; align-items: flex-end; padding: 32px 36px; min-height: 200px; } }
.mm-cta-title { font-size: 26px; line-height: 34px; }
@media (min-width: 1024px) { .mm-cta-title { font-size: 36px; line-height: 44px; } }
.mm-cta-role { background: var(--surface); color: var(--ink) !important; flex-direction: column; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .mm-cta-role { padding: 32px; } }

/* ---------- 목록 페이지 공통 ---------- */
.mm-page { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 8px; }
@media (min-width: 1024px) { .mm-page { gap: 28px; padding-top: 48px; } }
.mm-page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.mm-page-search { margin: 0 0 0 auto; width: 100%; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; box-sizing: border-box; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink-muted); }
@media (min-width: 768px) { .mm-page-search { width: 420px; } }
.mm-page-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.mm-list-toolbar { display: block; }
@media (min-width: 1024px) { .mm-list-toolbar { display: none; } }
.mm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mm-person-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mm-person-grid .mm-chip { justify-content: center; padding: 0; }
@media (max-width: 1023px) {
  .mm-list-layout > aside.mm-filter { display: none; }
  .mm-list-layout > aside.mm-filter.is-open { display: flex; }
  .mm-hide-mobile-block { display: none; }
}
.mm-art-wrap { position: relative; }
.mm-game .mm-fav { top: 8px; right: 8px; }
.mm-game-actions .mm-btn { height: 34px; padding: 0 12px; font-size: 12px; gap: 4px; }
.mm-request-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex-wrap: wrap; }
.mm-pagination button .msi { font-size: 20px; }

/* ---------- 상세 ---------- */
.mm-detail { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; padding-bottom: 8px; }
@media (min-width: 1024px) { .mm-detail { gap: 32px; padding-top: 32px; } .mm-detail-bottom { margin-top: 24px; } }
.mm-detail-bottom > aside { min-width: 0; }
@media (min-width: 1024px) { .mm-detail-bottom > aside { position: sticky; top: 96px; } }
.mm-info-tile .mm-rating.is-lg small { display: inline; }
.mm-seg button[aria-pressed="true"] .msi { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.mm-seg button[data-status="want"].is-on { color: var(--pink-ink) !important; }
.mm-seg button[data-status="reserved"].is-on { color: var(--reserved) !important; }
.mm-seg button[data-status="done"].is-on { color: var(--done) !important; }
#spoilerWarnOverlay[style*="block"] { display: flex !important; }
.mm-comment .pc-comment-item { margin-bottom: 10px; }
.mm-comment .pc-comment-item .ms-4 { margin-left: 28px; }
.mm-comment .pc-reply-box { display: flex; gap: 8px; margin-top: 6px; }
.mm-comment .pc-reply-box input { flex: 1 1 auto; min-width: 0; height: 36px; border-radius: 999px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: 13px; }
.mm-comment .pc-reply-btn, .mm-comment .pc-comment-del { cursor: pointer; }

/* ---------- 찜 ---------- */
.mm-bm-tabs { width: 100%; }
@media (min-width: 768px) { .mm-bm-tabs { width: auto; margin-left: auto; grid-auto-columns: auto; } .mm-bm-tabs button { padding: 0 16px; } }
.mm-bm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .mm-bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .mm-bm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mm-bm { display: flex; gap: 14px; padding: 12px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.mm-bm-art { flex: none; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--noir); display: block; }
.mm-bm-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-bm-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mm-status-select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 28px 0 12px; border-radius: 999px; border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b5c65' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--pink-ink); }
.mm-status-select[data-status="reserved"] { background-color: var(--reserved-soft); color: var(--reserved); }
.mm-status-select[data-status="done"] { background-color: var(--done-soft); color: var(--done); }

/* ---------- 히스토리 ---------- */
.mm-rating .msi.is-off { color: var(--line-strong); font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
#deleteConfirmModal[style*="block"] { display: flex !important; }
.mm-cal-day.has-play { font: inherit; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.mm-entry .mm-icon-btn { color: var(--ink-muted) !important; }
@media (min-width: 1024px) { .mm-history-layout > .mm-cal-card { position: sticky; top: 96px; } }
