/* ------------------------------------------------ 상단 5칸 메뉴 + 전체도구 패널 (/ng-menu-b 와 동일 문법) */
.tabs-wrap{position:relative}
.ngm-stack{position:relative;margin:0;z-index:36}
@media (max-width:920px){
  .ngm-stack{position:sticky;top:0;z-index:36;background:#fff;padding-top:2px}
}
.ngm-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:6px;margin:0;
  position:relative;z-index:66;background:#EDE8FF;border:2px solid #A9A1DE;border-radius:9px;
  box-shadow:2px 2px 0 rgba(111,102,199,.12)}
.ngm-tab{-webkit-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;height:64px;min-width:0;padding:0 2px;margin:0;border:1.5px solid #DCD6F8;border-radius:7px;background:#FDFCFF;
  color:#5F5990;font-family:inherit;font-size:12.5px;font-weight:700;line-height:1;letter-spacing:-.03em;
  text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s}
.ngm-tab:hover{background:#F8F6FF;border-color:#C6BFF1;color:#3A3470}
.ngm-tab.active,.ngm-tab[aria-selected="true"]{background:#fff;border-color:#6F66C7;color:#3F3596;
  box-shadow:inset 0 -3px 0 #B7AEF0}
.ngm-ico{position:relative;display:block;width:24px;height:24px;flex:none}
.ngm-ico svg.ic{position:absolute;left:1px;top:1px;width:22px;height:22px;stroke-width:1.9;color:inherit}
.ngm-tab.active .ngm-ico svg.ic{color:#564CB4}
.ngm-tx{display:inline-flex;align-items:center;gap:2px;font-size:inherit;line-height:1}
.ngm-bd{position:absolute;right:-13px;top:-6px;display:block;border-radius:999px;padding:1px 4px;font-size:8px;
  border:1px solid transparent;
  font-style:normal;font-weight:800;line-height:1.35;letter-spacing:-.03em;box-shadow:0 1px 0 rgba(36,31,77,.12)}
.ngm-bd.re{background:#FFE08A;color:#6B4C00}
.ngm-bd.po{background:#FDEAF6;color:#B85E8C;border:1px solid #F6C4DE}
.ngm-bd.hot{background:linear-gradient(180deg,#FF7E4F,#EF4B24);color:#fff;border:1px solid #D9411C}
.ngm-all{background:linear-gradient(180deg,#7C73D4,#5B51BE);border-color:#4B41A8;color:#fff;box-shadow:0 3px 0 #443B9E}
.ngm-all:hover{background:linear-gradient(180deg,#847BDA,#6157C4);color:#fff;border-color:#4B41A8}
.ngm-all[aria-expanded="true"]{background:linear-gradient(180deg,#5B51BE,#443B9E);color:#fff;
  box-shadow:inset 0 2px 0 rgba(0,0,0,.16)}
.ngm-all .ngm-ico svg.ic,.ngm-all.active .ngm-ico svg.ic,.ngm-all[aria-expanded="true"] .ngm-ico svg.ic{
  color:#fff;stroke:#fff;fill:none;filter:none;opacity:1}
.ngm-all .ngm-tx,.ngm-all .ngm-cv{color:#fff}
.ngm-cv{width:0;height:0;display:inline-block;margin-left:1px;border-left:3.5px solid transparent;
  border-right:3.5px solid transparent;border-top:4.5px solid currentColor;opacity:.92;transform:translateY(1px)}
.ngm-veil{position:fixed;inset:0;z-index:65;background:rgba(24,20,60,.32);opacity:0;pointer-events:none;
  transition:opacity .16s ease}
.ngm-veil.is-open{opacity:1;pointer-events:auto}
body.ngm-open .toast{z-index:240}
.ngm-panel{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:70;background:#fff;
  border:2px solid #6F66C7;border-radius:11px;box-shadow:0 6px 0 rgba(111,102,199,.16),0 26px 44px -22px rgba(54,42,130,.5);
  max-height:min(72vh,560px);overflow:auto;overscroll-behavior:contain;visibility:hidden;opacity:0;
  transform:translateY(-6px);pointer-events:none;transition:opacity .17s ease,transform .17s ease,visibility .17s;
  -webkit-overflow-scrolling:touch}
.ngm-panel.is-open{visibility:visible;opacity:1;transform:none;pointer-events:auto}
.ngm-phead{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:7px;padding:10px 12px;
  background:linear-gradient(180deg,#F3F0FF,#EAE5FF);border-bottom:1.5px solid #D9D2FA}
.ngm-phead b{font-size:15px;font-weight:800;color:#241F4D;letter-spacing:-.04em}
.ngm-pcount{font-size:11px;font-weight:800;color:#564CB4;background:#fff;border:1.5px solid #CFC9F0;
  border-radius:999px;padding:1px 7px;line-height:1.4}
.ngm-x{margin-left:auto;width:30px;height:30px;display:grid;place-items:center;border:1.5px solid #CFC9F0;
  border-radius:8px;background:#fff;color:#564CB4;font-family:inherit;font-size:13px;font-weight:800;line-height:1;cursor:pointer}
.ngm-x:hover{background:#F3F0FF}
.ngm-body{display:grid;gap:12px;padding:11px 12px 13px}
.ngm-gh{display:flex;align-items:center;gap:6px;margin:0 1px 7px;font-size:12.5px;font-weight:800;color:#3A3470;
  letter-spacing:-.03em;line-height:1.2}
.ngm-gi{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:6px}
.ngm-gi svg.ic{width:13px;height:13px;stroke-width:1.9}
.ngm-gi.lv{background:#F1EDFF;color:#5A50B4}
.ngm-gi.yl{background:#FFF6DC;color:#96700E}
.ngm-gi.pk{background:#FDEAF6;color:#B85E8C}
.ngm-gn{font-size:10.5px;font-weight:800;color:#8580AB;background:#F7F6FF;border:1px solid #E2DDFA;
  border-radius:999px;padding:0 5px;line-height:1.6}
.ngm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ngm-card{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:58px;
  padding:8px 9px;text-align:left;text-decoration:none;border:1.5px solid #E2DDFA;border-radius:9px;background:#fff;
  font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .12s,border-color .12s}
.ngm-card:hover{background:#F8F6FF;border-color:#C6BFF1}
.ngm-card:active{background:#EFEBFF}
.ngm-card:focus-visible{outline:2px solid #564CB4;outline-offset:2px}
.ngm-ci{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:8px;background:#F4F1FF;color:#5A50B4}
.ngm-ci svg.ic{width:17px;height:17px;stroke-width:1.9}
.ngm-ct{display:block;min-width:0}
.ngm-ct b{display:flex;align-items:center;gap:4px;margin:0;font-size:12.5px;font-weight:800;color:#241F4D;
  letter-spacing:-.04em;line-height:1.25}
.ngm-ct b > span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ngm-ct em{display:block;margin-top:2px;font-style:normal;font-size:11px;font-weight:600;color:#6B7684;
  letter-spacing:-.02em;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ngm-tag{flex:none;font-style:normal;font-size:8px;font-weight:800;line-height:1.35;border-radius:999px;
  border:1px solid transparent;
  padding:1px 4px;letter-spacing:-.03em;white-space:nowrap}
.ngm-tag.re{background:#FFE08A;color:#6B4C00}
.ngm-tag.po{background:#FDEAF6;color:#B85E8C;border:1px solid #F6C4DE}
.ngm-tag.hot{background:linear-gradient(180deg,#FF7E4F,#EF4B24);color:#fff}
.ngm-tag.newp{background:#6F66C7;color:#fff}
.ngm-tag.new{background:#F1EEF8;color:#7A74A8;border:1px solid #DCD6F8}
.ngm-card.live{border-color:#F6C4DE;background:linear-gradient(90deg,#FFF6FA,#FDEAF6)}
.ngm-card.live:hover{background:linear-gradient(90deg,#FFEFF7,#FBE0EF);border-color:#F2A6CF}
.ngm-card.live .ngm-ci{background:#fff;color:#B85E8C}
.ngm-card.guide{border:1.5px dashed #B7AEF0;background:#F7F6FF}
.ngm-card.guide:hover{background:#F1EDFF;border-color:#8B82D2}
@media (max-width:400px){
  .ngm-tabs{gap:4px;padding:5px}
  .ngm-tab{height:62px;font-size:12px;gap:4px}
  .ngm-ico{width:23px;height:23px}
  .ngm-ico svg.ic{width:21px;height:21px}
  .ngm-bd{right:-12px;top:-6px;font-size:7.5px;padding:1px 3.5px}
  .ngm-body{padding:10px 10px 12px;gap:11px}
  .ngm-grid{gap:6px}
  .ngm-card{grid-template-columns:26px minmax(0,1fr);gap:7px;padding:8px;min-height:56px}
  .ngm-ci{width:26px;height:26px;border-radius:7px}
  .ngm-ci svg.ic{width:16px;height:16px}
  .ngm-ct b{font-size:12px}
  .ngm-ct em{font-size:10.5px}
}
@media (min-width:921px){
  .ngm-tab{height:66px;font-size:13px;gap:6px}
  .ngm-ico{width:26px;height:26px}
  .ngm-ico svg.ic{width:24px;height:24px}
  /* PC — 상단 5칸 메뉴 전체 너비(100%)에 딱 맞추고, 높이 제한·내부 스크롤 없이 한 번에 펼친다 */
  .ngm-panel{max-width:none;max-height:none;overflow:visible}
  .ngm-body{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;padding:14px 15px 16px;gap:15px}
  .ngm-grid{grid-template-columns:1fr;gap:8px}
  .ngm-card{min-height:62px;padding:10px 11px;grid-template-columns:30px minmax(0,1fr);gap:9px}
  .ngm-ci{width:30px;height:30px;border-radius:9px}
  .ngm-ci svg.ic{width:18px;height:18px}
  .ngm-ct b{font-size:13.5px}
  .ngm-ct em{font-size:12px;margin-top:3px}
  .ngm-phead{position:static;border-radius:9px 9px 0 0;padding:11px 15px}
  .ngm-gh{font-size:13px}
}
/* 오픈 준비 중 안내 — 화면 가운데 밝은 카드 */
.ngm-soon{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:20px;
  background:rgba(22,18,56,.58);-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,visibility .16s}
.ngm-soon.is-open{opacity:1;visibility:visible;pointer-events:auto}
.ngm-soon-card{position:relative;width:100%;max-width:328px;box-sizing:border-box;padding:22px 20px 16px;text-align:center;
  background:#fff;border:2.5px solid #6F66C7;border-radius:18px;
  box-shadow:0 9px 0 rgba(75,65,168,.18),0 30px 60px -20px rgba(28,20,76,.55);
  transform:translateY(10px) scale(.95);transition:transform .19s cubic-bezier(.2,.9,.3,1.25)}
.ngm-soon.is-open .ngm-soon-card{transform:none}
.ngm-soon-ico{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 12px;border-radius:20px;
  background:#F1EDFF;border:2px solid #DCD6F8;color:#5A50B4}
.ngm-soon-ico svg.ic{width:30px;height:30px;stroke-width:1.9}
.ngm-soon-badge{display:inline-block;margin:0 0 9px;padding:5px 14px;font-size:12.5px;font-weight:800;line-height:1.2;
  letter-spacing:-.02em;color:#fff;background:#6F66C7;border-radius:999px;box-shadow:0 2px 0 rgba(75,65,168,.35)}
.ngm-soon-title{margin:0 0 8px;font-size:22px;font-weight:900;line-height:1.2;color:#241F4D;letter-spacing:-.05em;
  word-break:keep-all}
.ngm-soon-lead{margin:0 0 6px;font-size:15px;font-weight:800;line-height:1.45;color:#3F3596;letter-spacing:-.03em;
  word-break:keep-all}
.ngm-soon-desc{margin:0 0 18px;font-size:13.5px;font-weight:600;line-height:1.55;color:#5F5990;letter-spacing:-.02em;
  word-break:keep-all}
.ngm-soon-ok{-webkit-appearance:none;appearance:none;display:block;width:100%;height:50px;margin:0;padding:0;
  border:2px solid #4B41A8;border-radius:12px;background:linear-gradient(180deg,#7C73D4,#5B51BE);color:#fff;
  font-family:inherit;font-size:16px;font-weight:800;letter-spacing:-.02em;cursor:pointer;
  -webkit-tap-highlight-color:transparent;box-shadow:0 3px 0 #443B9E;transition:background .12s,box-shadow .1s,transform .1s}
.ngm-soon-ok:hover{background:linear-gradient(180deg,#847BDA,#6157C4)}
.ngm-soon-ok:active{transform:translateY(2px);box-shadow:0 1px 0 #443B9E}
.ngm-soon-hint{margin:10px 0 0;font-size:11px;font-weight:600;line-height:1.4;color:#9C97BC;letter-spacing:-.02em}


/* 독립 페이지에는 앱의 .ic 규칙이 없어서 아이콘이 검게 채워진다 — 메뉴 안에서만 보정 */
.ngm-stack svg.ic,.ngm-panel svg.ic{fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}
.ngm-panel .ngm-ci svg.ic{width:17px;height:17px}
.ngm-panel .ngm-gi svg.ic{width:13px;height:13px}
.ngm-all svg.ic{stroke:#fff}

/* ============================================================================
   🔥 2026-12-03 — 상단 메뉴 핫핑크 포인트는 **다크모드에만** 적용한다.
   (사용자 지적: 라이트·일반 버전의 탭 컬러가 "잘못되었어" → 원래 보라 레트로 톤으로 원복)
   · 라이트(일반) : 보라 아이콘/테두리/전체도구 보라 그라디언트 + 추천·인기·HOT 원색 배지 (기존 그대로)
   · 다크(html.dark) : 핫핑크 아이콘·핑크 테두리·핫핑크 전체도구 버튼 유지
   ※ 이 블록은 ng-nav.css · ng-ui.css · 인라인 사본(index·contract·privacy·terms 등)에
     똑같이 들어 있다. 페이지마다 두 CSS 의 로드 순서가 달라서다.
   ========================================================================== */

/* ============================ 🌙 다크모드 ============================ */
/* 탭 아이콘이 어두운 배경(#1E1B36)에 묻히지 않게 발광감 있는 핑크로 */
html.dark .ngm-stack .ngm-tabs .ngm-tab .ngm-ico svg.ic{
  color:#FF70AB!important;stroke:currentColor!important;
  filter:drop-shadow(0 0 4px rgba(255,61,139,.45))}
html.dark .ngm-stack .ngm-tabs .ngm-tab:hover .ngm-ico svg.ic{color:#FFA8CE!important}
html.dark .ngm-stack .ngm-tabs .ngm-tab.active .ngm-ico svg.ic,
html.dark .ngm-stack .ngm-tabs .ngm-tab[aria-selected="true"] .ngm-ico svg.ic{
  color:#FFA8CE!important;filter:drop-shadow(0 0 7px rgba(255,61,139,.65))}
html.dark .ngm-stack .ngm-tabs .ngm-tab.active,
html.dark .ngm-stack .ngm-tabs .ngm-tab[aria-selected="true"]{
  border-color:#FF3D8B!important;background:#2A1630!important;color:#FFC2DC!important;
  box-shadow:inset 0 -3px 0 #FF3D8B,0 0 0 1px rgba(255,61,139,.22)!important}
html.dark .ngm-stack .ngm-tabs .ngm-tab.active .ngm-tx,
html.dark .ngm-stack .ngm-tabs .ngm-tab[aria-selected="true"] .ngm-tx{color:#FFC2DC!important}
html.dark .ngm-stack .ngm-tabs .ngm-tab .ngm-tx{color:#E4DFFF!important}
/* 전체도구 — 다크에서도 핫핑크 버튼 유지 */
html.dark .ngm-stack .ngm-tabs .ngm-all{
  background:linear-gradient(180deg,#FF5CA8,#EE1D78)!important;border-color:#FF7FB4!important;
  color:#fff!important;box-shadow:0 3px 0 #B40050,0 0 14px rgba(255,61,139,.28)!important}
html.dark .ngm-stack .ngm-tabs .ngm-all:hover{
  background:linear-gradient(180deg,#FF74B9,#F43A8C)!important;color:#fff!important}
html.dark .ngm-stack .ngm-tabs .ngm-all[aria-expanded="true"],
html.dark .ngm-stack .ngm-tabs .ngm-all.active{
  background:linear-gradient(180deg,#E6197A,#B40050)!important;border-color:#FF7FB4!important;
  box-shadow:inset 0 2px 0 rgba(0,0,0,.22)!important}
html.dark .ngm-stack .ngm-tabs .ngm-all .ngm-ico svg.ic,
html.dark .ngm-stack .ngm-tabs .ngm-all.active .ngm-ico svg.ic,
html.dark .ngm-stack .ngm-tabs .ngm-all[aria-expanded="true"] .ngm-ico svg.ic,
html.dark .ngm-stack .ngm-tabs #ngmAllBtn .ngm-ico svg.ic{
  color:#fff!important;stroke:#fff!important;filter:none!important}
html.dark .ngm-stack .ngm-tabs .ngm-all .ngm-tx,
html.dark .ngm-stack .ngm-tabs .ngm-all .ngm-cv{color:#fff!important}
/* 배지 — 일괄 회색 덮어쓰기(html.dark .ngm-bd)보다 뒤에서 원래 색 대비를 되살린다 */
html.dark .ngm-stack .ngm-bd.re,html.dark .ngm-stack .ngm-tag.re{
  background:linear-gradient(180deg,#FFE98F,#FFD54A)!important;border-color:#FFC61A!important;
  color:#5F4200!important;box-shadow:0 0 8px rgba(255,214,74,.35)}
html.dark .ngm-stack .ngm-bd.po,html.dark .ngm-stack .ngm-tag.po{
  background:linear-gradient(180deg,#FFB0D2,#FF6FA8)!important;border-color:#FF3D8B!important;
  color:#460A22!important;box-shadow:0 0 8px rgba(255,61,139,.35)}
html.dark .ngm-stack .ngm-bd.hot,html.dark .ngm-stack .ngm-tag.hot{
  background:linear-gradient(180deg,#FF7E4F,#EF4B24)!important;border-color:#FF9A6B!important;
  color:#fff!important;box-shadow:0 0 8px rgba(255,90,40,.35)}
html.dark .ngm-stack .ngm-tag.newp{background:#8C7BFF!important;border-color:#A79DFF!important;color:#fff!important}
html.dark .ngm-stack .ngm-tag.new{background:#2E2A55!important;border-color:#4A4388!important;color:#DCD7FF!important}
/* 패널 카드 아이콘·그룹 아이콘 */
html.dark .ngm-stack .ngm-card .ngm-ci{background:#3A1430!important;color:#FF8CBC!important}
html.dark .ngm-stack .ngm-card.live{border-color:#7A2D55!important}
html.dark .ngm-stack .ngm-card.live .ngm-ci{background:#4A1533!important;color:#FFB3D4!important}
html.dark .ngm-stack .ngm-gi.lv{background:#2A2456!important;color:#B3A9FF!important}
html.dark .ngm-stack .ngm-gi.yl{background:#3A2C12!important;color:#FFD98A!important}
html.dark .ngm-stack .ngm-gi.pk{background:#3A1430!important;color:#FF8CBC!important}
