/* 휴대폰 콘솔 메뉴(2026-11-22 밤 대표님 "모바일탭은 우측상단에 메뉴바 해서 메뉴 누르게 해줘. $0.00 이건 없애주고. 마이페이지나 이런거에 로그아웃도 보이게"):
   880 이하 = 머리줄 아래 가로 메뉴 줄 대신 오른쪽 위 메뉴 단추(40, 줄 셋) → 머리줄 아래 떠 있는 메뉴(줄 48, 지금 화면 굵게, 맨 아래 선 + 로그아웃), $ 잔액 알약 숨김. PC 는 그대로.
   밝은 화면(마이페이지, 요금제) = 흰 메뉴, 어두운 화면(만들기, 내 영상, 드라마) = 어두운 메뉴 */
.m-menu-btn, .m-menu { display: none; }
@media (max-width: 880px) {
  .top nav.cnav { display: none !important; }
  .console .top .wrap { flex-wrap: nowrap; }
  #creditPill, .top nav a.nav-pill { display: none !important; }
  .m-menu-btn:not([hidden]) { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 6px; padding: 0;
    border: 1px solid #e5e8eb; border-radius: 10px; background: #fff; color: #111318; cursor: pointer; }
  .m-menu-btn svg { width: 20px; height: 20px; }
  .m-menu-btn.on { border-color: #111318; }
  /* 2026-11-25 새벽 대표님(힉스필드 계정 창 캡처) "메뉴창이랑 마이페이지도 이런식으로 내 프로필 나오고, 좀 간지나게": 메뉴 카드는 어느 화면에서나 어두운 카드(#17191c, r20) +
     맨 위 프로필 줄(프사 44 연두 고리, @UID 16/800, 이름 13) → 남은 크레딧 상자(#23262b r14, 값 18/800, [충전하기] 연두 알약 44) → 칸([그림 22][이름] … [연두 표시]) → 선 → 빨간 로그아웃 */
  .m-menu:not([hidden]) { position: fixed; z-index: 95; left: 12px; right: 12px; display: grid; gap: 2px; max-height: calc(100dvh - 90px); overflow: auto; padding: 10px;
    border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #17191c; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
  .mm-i { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: rgba(255,255,255,.86); font: inherit; font-size: 16px;
    font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .mm-i:hover, .mm-i:focus-visible { background: rgba(255,255,255,.08); color: #fff; outline: none; }
  .mm-i[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; font-weight: 800; }
  .mm-sep { min-height: 0; height: 1px; margin: 6px 4px; padding: 0; border: 0; background: rgba(255,255,255,.1); }
  .mm-ic { flex: none; display: inline-flex; width: 22px; height: 22px; color: rgba(255,255,255,.6); }
  .mm-ic svg { width: 22px; height: 22px; }
  .mm-i:hover .mm-ic, .mm-i[aria-current="page"] .mm-ic { color: #fff; }
  .mm-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mm-b { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 6px; background: #d1fe17; color: #111318; font-size: 12px; line-height: 16px; font-weight: 900; letter-spacing: .03em;
    transform: skewX(-10deg); }
  .mm-out, .mm-out .mm-ic, .mm-out:hover .mm-ic { color: #ff8a7a; }
  .mm-out:hover, .mm-out:focus-visible { background: rgba(255,138,122,.12); color: #ff8a7a; }
  .mm-pf { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px; border-radius: 14px; color: #fff; text-decoration: none; }
  .mm-pf:hover, .mm-pf:focus-visible { background: rgba(255,255,255,.06); outline: none; }
  .mm-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 2px; border-radius: 50%; background: #d1fe17; }
  .mm-av > * { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #17191c; border-radius: 50%; background: #23262b; object-fit: cover; color: #d1fe17; font-size: 17px; font-weight: 800; }
  .mm-pf-t { display: grid; gap: 1px; min-width: 0; }
  .mm-pf-t b { overflow: hidden; font-size: 16px; line-height: 1.3; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mm-pf-t small { overflow: hidden; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.55); text-overflow: ellipsis; white-space: nowrap; }
  .mm-pf > svg { flex: none; width: 18px; height: 18px; margin-left: auto; color: rgba(255,255,255,.5); }
  .mm-cr { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: #23262b; }
  .mm-cr span { font-size: 14px; color: rgba(255,255,255,.6); white-space: nowrap; }
  .mm-cr b { min-width: 0; overflow: hidden; font-size: 17px; font-weight: 800; color: #fff; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mm-cr-btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 16px; border-radius: 999px; background: #d1fe17; color: #111318; font-size: 14px; font-weight: 800;
    text-decoration: none; white-space: nowrap; }
  body[data-page="create"] .m-menu-btn, body[data-page="library"] .m-menu-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; }
  body[data-page="create"] .m-menu-btn.on, body[data-page="library"] .m-menu-btn.on { border-color: #d1fe17; }
}
@keyframes mmIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 880px) and (prefers-reduced-motion: no-preference) { .m-menu:not([hidden]) { animation: mmIn .18s cubic-bezier(.2,.8,.2,1) both; } }
/* 메뉴 첫 칸 [만들기](2026-11-25 새벽 대표님 "메뉴 열때 만들기 + < 이거는 좀 더 이쁘게 해놓고"): 연두 빛이 도는 판(테두리 연두 30%) + 연두 네모 34 안 굵은 + + 굵은 글 + 오른쪽 꺾쇠.
   지금 그 화면일 때(aria-current)도 같은 모양 */
@media (max-width: 880px) {
  .mm-i.mm-make, .mm-i.mm-make[aria-current="page"] { min-height: 56px; margin: 2px 0 6px; padding: 0 12px 0 11px; border-radius: 14px; color: #fff; font-weight: 800;
    background: linear-gradient(120deg, rgba(209,254,23,.2), rgba(209,254,23,.05) 64%); box-shadow: inset 0 0 0 1px rgba(209,254,23,.3); }
  .mm-i.mm-make:hover, .mm-i.mm-make:focus-visible { background: linear-gradient(120deg, rgba(209,254,23,.28), rgba(209,254,23,.1) 64%); color: #fff; }
  .mm-make .mm-ic, .mm-make:hover .mm-ic, .mm-make[aria-current="page"] .mm-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #d1fe17; color: #111318; }
  .mm-make .mm-ic svg { width: 18px; height: 18px; stroke-width: 2.8; }
  .mm-make .mm-go { flex: none; width: 18px; height: 18px; margin-left: auto; color: rgba(255,255,255,.55); }
}

/* 첫 화면과 드라마 소개 페이지 머리줄 = 콘솔 머리줄과 같은 모양, 같은 간격(2026-11-23 대표님 마이페이지 캡처 "이렇게 보이게 해놔 메인홈에서도", "메뉴는 왜 또 이렇게 벌어졌고"):
   로고 옆 메뉴(.cnav: 로그인 전 [드라마][API], 로그인 뒤 [만들기][드라마][내 영상][마이페이지][API]) + 오른쪽(.top-right: [요금제][오퍼] + [로그인][시작하기] / [친구 초대][잔액][로그아웃]).
   값은 app.css 의 콘솔 머리줄과 같다(첫 화면은 app.css 를 안 받아서 여기 둔다). 휴대폰은 예전 그대로([오퍼] 선물 + [시작하기] / [만들기]) */
.top nav.cnav { margin-left: 12px; gap: 2px; }
body:not(.console) .top nav.cnav { margin-left: 4px; }      /* 첫 화면은 칸 사이가 24 라 4 를 더해 로고와 메뉴 사이를 콘솔(16 + 12)과 같게 */
.top nav.cnav a { padding: 8px 12px; border-radius: 10px; color: var(--sub); font-size: 15px; font-weight: 600; }
.top nav.cnav a:hover { background: var(--fill); color: var(--ink); }
.top nav.cnav a[hidden] { display: none; }
.top nav.top-right { margin-left: auto; gap: 8px; }
.top nav a.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.top nav a.ref-link { padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }
.top nav a.ref-link:hover { color: var(--ink); }
.top nav a.show-m { display: none; }
@media (max-width: 880px) {
  .top nav .hide-m, .top nav a.pill.hide-m { display: none; }
  .top nav a.show-m { display: inline-flex; }
}
/* 콘솔 왼쪽 메뉴 [요금제] = PC 에서 숨김(2026-11-23 대표님 "왼쪽위 요금제 < 이거 … 지워줘", 오른쪽 [요금제 30% 할인]이 있음). 휴대폰 메뉴 단추 안에는 그대로. 서버 show nav.cnav_plans */
@media (min-width: 881px) { .top nav.cnav a[data-pc-hide] { display: none; } }
