/* 로비·메뉴 (js/menus.js) — docs/plan-meta.md §2-4
   픽셀 UI 규칙은 style.css 와 같다: 9-slice 조각은 --ui-<조각> / --sl-<조각> / --bw-<조각> (main.js UIKit)
   글자 크기: 10 · 12 · 15 · 20 · 24 · 30px 만. 10–12px 외곽선은 --pxo1, 20px 이상은 --pxo */

/* ---------- 틀 ---------- */
#lobby.mn {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  pointer-events: auto;
  background: rgba(20, 21, 43, .9);
}
/* 홈은 뒤 하늘이 보이게 (아래만 어둡게) */
#lobby.mn[data-tab="home"] { background: linear-gradient(to bottom, rgba(20, 21, 43, .35), rgba(20, 21, 43, 0) 18%, rgba(20, 21, 43, 0) 52%, rgba(20, 21, 43, .78) 74%); }
/* 로비에선 예전 상단(금화·소리 버튼)을 숨긴다 — 소리는 설정 안으로 */
#ui.lobby-on > .topbar { display: none; }

.mn button { font: inherit; cursor: pointer; pointer-events: auto; }
.mn-sheet button, .mn-modal button { pointer-events: auto; }

/* 9-slice 공통 */
.mn-gem, .mn-nav, .mn-up, .mn-seg button, .mn-slot, .mn-card, .mn-skrow, .mn-skill, .mn-ccard, .mn-gcard, .mn-srow, .mn-sheet, .mn-note, .mn-tip, .mn-test, .mn-soon, .mn-rk-list li, .mn-rk-form input, .mn-new, .mn-card-on, .mn-mbtn {
  border-style: solid; border-image-repeat: stretch; image-rendering: pixelated; border-radius: 0; box-shadow: none;
}
.mn-row9 { border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row); }

/* ---------- 상단 바 ---------- */
.mn-top {
  flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: calc(var(--st) + 6px) 10px 4px 12px;
}
.mn-money { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mn-coin { flex: none; }
.mn-gem {
  flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 0;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
  font: var(--t-body); line-height: 16px; color: var(--ink);
}
.mn-gem .gi { width: 24px; height: 24px; margin: -2px 0 -2px -2px; background-image: var(--ui-gem); }
.mn-sys { display: flex; gap: 0; flex: none; }
.mn-ic {
  position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center;
}
.mn-ic .ic { display: block; width: 32px; height: 32px; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.mn-ic:active .ic { transform: translateY(2px); }
.ic-notice { background-image: var(--ui-ic-notice); }
.ic-event { background-image: var(--ui-ic-event); }
.ic-settings { background-image: var(--ui-ic-settings); }
.mn-dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; background: var(--ui-dot, #d1443a) 0 0 / 100% 100% no-repeat; pointer-events: none; }

/* 아이콘 */
.gi { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: middle; background: var(--ui-gem-16) 0 0 / 100% 100% no-repeat; }
.gi.big { width: 24px; height: 24px; background-image: var(--ui-gem); }
.nx { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: middle; background: var(--ui-ic-next) 0 0 / 100% 100% no-repeat; }
.sk { display: block; flex: none; width: 48px; height: 48px; background: center / 100% 100% no-repeat; }
.sk-dash { background-image: var(--ui-skill-dash); }
.sk-rebound { background-image: var(--ui-skill-rebound); }

/* ---------- 쪽 (스크롤) ---------- */
.mn-page {
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto;
  touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 12px 12px; scrollbar-width: none;
}
.mn-page::-webkit-scrollbar { display: none; }
.mn-sec { max-width: 440px; margin: 0 auto; }
.mn-h {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font: var(--t-body); color: #a8f0ff; text-shadow: var(--pxo1); margin: 10px 0 4px;
}
.mn-h small { font: var(--t-small); color: #a5b2c7; }
.mn-h-row { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.mn-h-row h3 { font: inherit; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mn-h-row .btn { flex: none; min-height: 32px; text-shadow: none; }
.mn-foot { font: var(--t-small); color: #a5b2c7; line-height: 1.5; margin-top: 8px; text-shadow: var(--pxo1); }
.mn-tip, .mn-test, .mn-soon {
  font: var(--t-small); line-height: 1.5; color: #d3dce8; padding: 2px 4px; margin: 2px 0 6px;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-tip.ok { color: #7ccf5a; }
.mn-test { font: var(--t-body); color: #f0c040; text-align: center; border-image-source: var(--ui-row-me); }
.mn-soon { text-align: center; color: #7584a1; margin-top: 8px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.mn-empty { grid-column: 1 / -1; font: var(--t-small); color: #a5b2c7; text-align: center; padding: 12px 0; }

/* 숫자 색 */
.cost { display: inline-flex; align-items: center; gap: 2px; }
.cost.no, .no { color: #d1443a; }
.btn .cost.no { color: #d1443a; }
.gc-0 { color: #a5b2c7; }
.gc-1 { color: #7ccf5a; }
.gc-2 { color: #46c8e8; }
.gc-3 { color: #a487f0; }
.gc-4 { color: #f0c040; }

/* 등급 테두리 (ui_grade_frame_N, 4px 아트 = 8px) */
.g-0 { border-image-source: var(--ui-grade-0); border-image-slice: var(--sl-grade-0) fill; border-width: var(--bw-grade-0); }
.g-1 { border-image-source: var(--ui-grade-1); border-image-slice: var(--sl-grade-1) fill; border-width: var(--bw-grade-1); }
.g-2 { border-image-source: var(--ui-grade-2); border-image-slice: var(--sl-grade-2) fill; border-width: var(--bw-grade-2); }
.g-3 { border-image-source: var(--ui-grade-3); border-image-slice: var(--sl-grade-3) fill; border-width: var(--bw-grade-3); }
.g-4 { border-image-source: var(--ui-grade-4); border-image-slice: var(--sl-grade-4) fill; border-width: var(--bw-grade-4); }

/* ---------- 하단 탭 ---------- */
.mn-nav {
  flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 0 var(--sb);
  border-image-source: var(--ui-panel); border-image-slice: var(--sl-panel) fill; border-width: 8px 8px 0;
}
.mn-tab {
  min-width: 0; height: 52px; padding: 0; border: 0; background: none; color: #a5b2c7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.mn-tab span { font: var(--t-small); text-shadow: var(--pxo1); white-space: nowrap; }
.mn-tab .nv { display: block; width: 32px; height: 32px; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.mn-tab.on span { color: #f0c040; }
.mn-tab:active .nv { transform: translateY(2px); }
.nv-home { background-image: var(--ui-nav-home); }
.nv-upgrade { background-image: var(--ui-nav-upgrade); }
.nv-gear { background-image: var(--ui-nav-gear); }
.nv-content { background-image: var(--ui-nav-content); }
.nv-shop { background-image: var(--ui-nav-shop); }
.mn-tab.on .nv-home { background-image: var(--ui-nav-home-on); }
.mn-tab.on .nv-upgrade { background-image: var(--ui-nav-upgrade-on); }
.mn-tab.on .nv-gear { background-image: var(--ui-nav-gear-on); }
.mn-tab.on .nv-content { background-image: var(--ui-nav-content-on); }
.mn-tab.on .nv-shop { background-image: var(--ui-nav-shop-on); }

/* ---------- 홈 ---------- */
.mn-home { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 0 4px; }
.mn-logo { text-align: center; }
.mn-logo canvas { display: block; margin: 0 auto; }
.mn-logo p { font: var(--t-body); text-shadow: var(--pxo1); margin-top: 12px; }
.mn-home-menu { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.mn-best { text-align: center; font: var(--t-body); text-shadow: var(--pxo1); }
.mn-best b { font: var(--t-title); color: #f0c040; text-shadow: var(--pxo); }
.mn-skill {
  display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 0 4px 0 2px; color: var(--ink); text-align: left;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-skill:active { transform: translateY(2px); }
.mn-skill-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-skill-t small { font: var(--t-small); color: #a5b2c7; }
.mn-skill-t b { font: var(--t-body); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-skill-t em, .lv { font-style: normal; color: #f0c040; }
.mn-skill-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font: var(--t-small); color: #a8f0ff; }

/* ---------- 강화 ---------- */
.mn-up {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 0 6px;
  padding: 2px 2px 2px 4px; margin-bottom: 6px;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-up.flash { animation: mnflash .36s steps(1) 1; }
@keyframes mnflash { 0%, 66% { border-image-source: var(--ui-row-flash); } 67%, 100% { border-image-source: var(--ui-row); } }
.mn-up-ico { width: 40px; height: 40px; background: #14152b; outline: 2px solid #33395c; }
.mn-up-info { min-width: 0; line-height: 1.4; }
.mn-up-nm { font: var(--t-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-up-nm .lv { font: var(--t-body); }
.mn-up-st { font: var(--t-small); color: #d3dce8; margin-top: 2px; overflow-wrap: anywhere; }
.mn-up-st b { color: #7ccf5a; font-weight: 400; }
.mn-up-act { width: 144px; display: flex; flex-direction: column; gap: 4px; }
.mn-up-main { display: flex; gap: 4px; }
.mn-buy { flex: 1; min-width: 0; min-height: 44px; padding: 0 2px; flex-direction: column; gap: 0; font: var(--t-body); line-height: 14px; }
.mn-buy .ci { width: 16px; height: 16px; }
.mn-step { flex: none; width: 40px; min-height: 44px; padding: 0; }
.mn-step .nx { width: 16px; height: 16px; }
.mn-max { position: relative; min-height: 24px; height: 24px; padding: 0; font: var(--t-small); line-height: 10px; }
.mn-max::after { content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -12px; }   /* 얇아도 누르기 쉽게 40px */

/* ---------- 장비 ---------- */
.mn-seg { display: flex; gap: 4px; margin: 4px 0 6px; }
.mn-seg button {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 2px; background: none; color: #f5f8fc; font: var(--t-body);
  border-image-source: var(--ui-sub); border-image-slice: var(--sl-sub) fill; border-width: var(--bw-sub);
}
.mn-seg button.on { color: #14152b; border-image-source: var(--ui-btn); }
.mn-seg button:active { transform: translateY(2px); }
.mn-dart { display: flex; flex-direction: column; gap: 6px; }
.mn-prev { display: block; width: 100%; height: 72px; background: #1f2342; outline: 2px solid #14152b; }
.mn-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mn-slot {
  min-width: 0; min-height: 56px; padding: 0; background: none; color: var(--ink); text-align: left;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 4px;
}
.mn-slot.empty { border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: 8px; }
.mn-slot canvas { grid-row: 1 / 3; width: 32px; height: 32px; }
.mn-slot-k { font: var(--t-body); align-self: end; }
.mn-slot small { font: var(--t-small); color: #a5b2c7; align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-slot.on { outline: 2px solid #f0c040; outline-offset: 0; }
.mn-slot:active, .mn-card:active { transform: translateY(2px); }
.mn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mn-card {
  position: relative; min-width: 0; min-height: 84px; padding: 0; background: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.mn-card canvas { width: 40px; height: 40px; flex: none; }
.mn-card-nm, .mn-card-g { font: var(--t-small); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-card-n { position: absolute; top: -4px; right: -2px; font: var(--t-small); text-shadow: var(--pxo1); color: #f5f8fc; }
.mn-card-on {
  position: absolute; top: -6px; left: -4px; font: var(--t-small); color: #14152b; padding: 0 2px; line-height: 10px;
  border-image-source: var(--ui-tag); border-image-slice: var(--sl-tag) fill; border-width: var(--bw-tag);
}
.mn-card.on { outline: 2px solid #f0c040; outline-offset: -2px; }
.mn-skills { display: flex; flex-direction: column; gap: 6px; }
.mn-skrow {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 2px 2px 2px 4px;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-skrow.on { border-image-source: var(--ui-row-me); }
.mn-skrow.off .sk { filter: grayscale(1) brightness(.6); }
.mn-skrow-t { min-width: 0; }
.mn-skrow-nm { font: var(--t-body); }
.mn-skrow-nm .lv { font: var(--t-small); }
.mn-skrow p { font: var(--t-small); color: #a5b2c7; line-height: 1.4; margin-top: 2px; }
.mn-skrow .btn { min-width: 64px; min-height: 40px; }

/* ---------- 컨텐츠 ---------- */
.mn-ccard {
  display: flex; flex-direction: column; gap: 6px; padding: 4px;
  border-image-source: var(--ui-panel); border-image-slice: var(--sl-panel) fill; border-width: var(--bw-panel);
}
.mn-thumb { width: 192px; height: 96px; margin: 0 auto; background: #1f2342 center / 100% 100% no-repeat; outline: 2px solid #14152b; }
.th-wall { background-image: var(--ui-wall-thumb); }
/* 심해 탐험 썸네일: 그림(content_sea_thumb)이 없으면 바다 그라데이션 */
.th-sea { background-color: #1a4a7a; background-image: var(--ui-sea-thumb, linear-gradient(#5fc8f0, #1a5a9a 45%, #0a1838)); }
.mn-cinfo h3 { font: 15px Galmuri14, Galmuri11, monospace; color: #f5f8fc; margin-bottom: 4px; }
.mn-cinfo p { font: var(--t-small); color: #d3dce8; line-height: 1.5; }
.mn-cstat { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font: var(--t-small); color: #a5b2c7; margin: 6px 0 2px; }
.mn-cstat b { font: var(--t-body); color: #f0c040; }
.mn-cstat b.no { color: #d1443a; }
.mn-cinfo .mn-crew { color: #a8f0ff; margin-bottom: 6px; }

/* ---------- 상점 ---------- */
.mn-gcard {
  padding: 4px; margin-bottom: 8px;
  border-image-source: var(--ui-panel); border-image-slice: var(--sl-panel) fill; border-width: var(--bw-panel);
}
.mn-gtop { display: flex; align-items: center; gap: 6px; }
.mn-gcap { width: 66px; height: 66px; flex: none; }
.mn-gtop > div { min-width: 0; }
.mn-gtop h3 { font: 15px Galmuri14, Galmuri11, monospace; margin-bottom: 2px; }
.mn-gtop p { font: var(--t-small); color: #d3dce8; line-height: 1.5; }
.mn-gtop .mn-gsub { color: #a5b2c7; }
.mn-rates { display: flex; flex-wrap: wrap; gap: 2px 8px; font: var(--t-small); margin: 4px 0 6px; padding: 0 2px; }
.mn-gbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mn-gbtns .btn, .mn-rv-btns .btn { min-height: 44px; flex-direction: column; gap: 0; font: var(--t-body); line-height: 14px; }
.mn-srow {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 2px 4px; margin-bottom: 6px;
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-srow-t { display: flex; align-items: center; gap: 6px; min-width: 0; font: var(--t-body); }
.mn-srow-t > span { display: inline-flex; align-items: center; gap: 2px; }
.mn-srow-t .c { color: #f0c040; }
.mn-srow-t b { font-weight: 400; }
.mn-srow .btn { flex: none; min-width: 72px; min-height: 40px; padding: 0 4px; }

/* ---------- 창 ---------- */
.mn-modal {
  position: absolute; inset: 0; z-index: 40; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--st) + 16px) 12px calc(var(--sb) + 16px);
  background: rgba(20, 21, 43, .72);
}
.mn-sheet {
  width: 100%; max-width: 400px; max-height: 100%; display: flex; flex-direction: column; padding: 6px;
  border-image-source: var(--ui-panel); border-image-slice: var(--sl-panel) fill; border-width: var(--bw-panel);
}
.mn-sheet-h { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.mn-sheet-h h2 { font: var(--t-title); }
.mn-sheet-h .btn { min-width: 64px; min-height: 40px; }
.mn-pick { overflow-y: auto; touch-action: pan-y; }
.mn-modal.rank .mn-sheet { height: 100%; }
.mn-rk-name { flex: none; margin-bottom: 6px; }
.mn-rk-name label { display: block; font: var(--t-small); color: #a5b2c7; margin-bottom: 4px; }
.mn-rk-form { display: flex; gap: 6px; }
.mn-rk-form input {
  flex: 1; min-width: 0; height: 40px; padding: 0 6px; background: none; color: #f5f8fc; font: var(--t-body);
  border-image-source: var(--ui-input); border-image-slice: var(--sl-input) fill; border-width: var(--bw-input);
  user-select: text; -webkit-user-select: text; touch-action: auto; outline: none;
}
.mn-rk-form input:focus { border-image-source: var(--ui-input-focus); }
.mn-rk-form .btn { flex: none; min-width: 64px; min-height: 40px; }
.mn-rk-me { flex: none; font: var(--t-body); color: #a8f0ff; margin-bottom: 6px; }
.mn-rk-me b { color: #f0c040; font-weight: 400; }
.mn-rk-body { flex: 1; min-height: 0; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: none; }
.mn-rk-msg { font: var(--t-body); color: #a5b2c7; text-align: center; padding: 24px 0 12px; }
.mn-rk-msg.err { color: #ff9a2e; }
.mn-rk-retry { display: flex; margin: 0 auto; min-width: 120px; min-height: 40px; }
.mn-rk-list { list-style: none; }
.mn-rk-list li {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; margin-bottom: 2px; font: var(--t-body);
  border-image-source: var(--ui-row); border-image-slice: var(--sl-row) fill; border-width: var(--bw-row);
}
.mn-rk-list li.me { border-image-source: var(--ui-row-me); color: #fff0a6; }
.mn-rk-list .rk { width: 28px; flex: none; text-align: center; color: #a5b2c7; }
.mn-rk-list li:nth-child(1) .rk { color: #f0c040; }
.mn-rk-list li:nth-child(2) .rk { color: #d3dce8; }
.mn-rk-list li:nth-child(3) .rk { color: #ff9a2e; }
.mn-rk-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-rk-list .ds { flex: none; }

/* 뽑기 연출 */
.mn-modal.dark { background: rgba(13, 14, 30, .97); padding-left: 8px; padding-right: 8px; }
.mn-modal.dark .mn-sheet { border: 0; border-image: none; background: none; height: 100%; max-width: 420px; padding: 0; justify-content: center; }
.mn-reveal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100%; }
.mn-reveal h2 { font: var(--t-title); text-shadow: var(--pxo); }
.mn-caps { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 0; }
.mn-reveal.one .mn-caps { grid-template-columns: 1fr; justify-items: center; }
.mn-cap { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; border: 0; border-image: none; }
.mn-cap canvas { width: 66px; height: 66px; }
.mn-reveal.one .mn-cap canvas { width: 132px; height: 132px; }
.mn-cap-lb { width: 100%; padding: 0 3px; min-height: 34px; display: flex; flex-direction: column; align-items: center; font: var(--t-small); line-height: 12px; text-shadow: var(--pxo1); text-align: center; }
.mn-cap-lb > * { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-style: normal; }
.mn-cap-lb em { display: inline-flex; align-items: center; gap: 2px; color: #f0c040; }
.mn-cap-lb em .ci, .mn-cap-lb em .gi { width: 12px; height: 12px; }
.mn-reveal.one .mn-cap-lb { font: var(--t-body); line-height: 16px; gap: 2px; }
.mn-reveal.one .mn-cap-lb em .ci, .mn-reveal.one .mn-cap-lb em .gi { width: 16px; height: 16px; }
.mn-new {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 0 2px; font: var(--t-small); line-height: 10px; color: #14152b;
  border-image-source: var(--ui-tag); border-image-slice: var(--sl-tag) fill; border-width: var(--bw-tag);
  animation: pxblink 1s steps(2) infinite;
}
.mn-skip { font: var(--t-small); color: #a5b2c7; animation: pxblink 1s steps(2) infinite; }
.mn-rv-sum { font: var(--t-body); color: #f5f8fc; text-shadow: var(--pxo1); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; text-align: center; }
.mn-rv-btns { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* 작은 알림 */
.mn-note {
  position: absolute; left: 50%; bottom: calc(var(--sb) + 84px); transform: translateX(-50%); z-index: 50;
  width: max-content; max-width: calc(100% - 32px); padding: 2px 8px; text-align: center; pointer-events: none;
  font: var(--t-body); line-height: 1.5; color: #f5f8fc; opacity: 0; visibility: hidden;
  border-image-source: var(--ui-toast); border-image-slice: var(--sl-toast) fill; border-width: var(--bw-toast);
}
.mn-note.show { opacity: 1; visibility: visible; animation: mnnote .2s steps(2) 1; }
@keyframes mnnote { from { transform: translate(-50%, 4px); } }

/* 좁고 낮은 화면 */
@media (max-height: 700px) {
  .mn-home { padding-top: 8px; }
  .mn-prev { height: 56px; }
  .mn-tab { height: 48px; }
}
@media (max-width: 370px) {
  .mn-up-act { width: 132px; }
  .mn-page { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-new, .mn-skip { animation: none; }
}

/* 튜토리얼 강화 창(pUpgrade): 겉모습은 이제 장착 파츠가 정한다 → '다음 변신' 안내는 숨김 */
#pUpgrade .up-next { display: none; }
