/**
 * nline-bridge.css
 * N-Line 디자인(style.css 등 zip 원본)과 공통 기능 CSS(menu-popup, auth-modal, deposit 등) 사이의 충돌 보정.
 * - 디자인 원본 파일은 수정하지 않고 이 파일에서만 덮어쓴다.
 */

/* ── 기본 폰트: Noto Sans KR ── */
html,
body,
.nline-site,
button,
input,
select,
textarea {
  font-family: 'Noto Sans KR', sans-serif !important;
}
:root {
  --boxedlight: 'Noto Sans KR', sans-serif;
  --boxedsemibold: 'Noto Sans KR', sans-serif;
  --boxedbold: 'Noto Sans KR', sans-serif;
  --myriadbold: 'Noto Sans KR', sans-serif;
}
.font-light { font-family: 'Noto Sans KR', sans-serif !important; font-weight: 400; }
.font-semi-bold { font-family: 'Noto Sans KR', sans-serif !important; font-weight: 500; }
.font-bold,
.font-myriad-bold { font-family: 'Noto Sans KR', sans-serif !important; font-weight: 700; }

/* ── 기본 ── */
.local-icon svg { display: block; }
/* honeypot: left:-9999px 는 iOS에서 문서 가로폭을 늘려 좌우 흔들림 유발 → 클리핑 */
.mb-auth-honeypot {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* 이전 Big보스(champion) 셸 잔재 숨김 */
.nline-site .mb-bottom-nav,
.nline-site .mb-drawer,
.nline-site .mb-drawer-overlay,
.nline-site .boss-shell-wrap,
.nline-site .ch-mobile-lang { display: none !important; }

/*
 * PC 레이아웃 유지 + 모바일에서만 가로폭 초과 방지
 * ※ page-panel/container 폭을 전역 100%로 강제하면 PC에서 사이드바가 깨짐
 */
html:has(.nline-site),
body.nline-site {
  overflow-x: hidden;
}
.nline-site .wrapper {
  max-width: 100%;
  overflow-x: clip;
}

/*
 * 페이지 배경(bg-main.jpg) 복구
 * - www-layout.css 의 .page-shell { background:#000 } 단축속성이 style.css 배경이미지를 지움
 * - body/html overflow-x:hidden 이면 background-attachment:fixed 가 깨지므로 fixed 레이어로 처리
 */
body.nline-site.page-shell,
body.nline-site {
  background-color: var(--bg-color, #040d18) !important;
  background-image: none !important;
}
body.nline-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-color, #040d18);
  background-image: url("../assets/bg-main.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
html.light-theme body.nline-site::before {
  background-image: linear-gradient(#eef0f1e8, #eef0f1e8), url("../assets/bg-main.jpg");
  background-color: #eef0f1;
}

/* PROVIDERS 로고: 원본 PNG 크기가 제각각 → 최소 높이(16px) 기준으로 통일 (PC/모바일 공통) */
.nline-site .footer-section .provider-carousel .carousel-item .bs-ul li > .dflex-ac-js {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.nline-site .footer-section .provider-carousel .icon-panel {
  width: 22px;
  height: 16px;
  min-width: 22px;
  min-height: 16px;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nline-site .footer-section .provider-carousel .icon-panel img {
  width: auto !important;
  height: 16px !important;
  max-width: 22px !important;
  max-height: 16px !important;
  object-fit: contain;
  vertical-align: middle;
}

/* 데스크톱: 원본 3단(좌사이드·본문·우사이드) 폭 복구 */
@media (min-width: 1401px) {
  .nline-site .page-content > .container {
    width: 100%;
    max-width: 1850px;
  }
  .nline-site .sidebar,
  .nline-site .sidebar-left,
  .nline-site .sidebar-right {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
  }
  .nline-site .page-panel {
    width: calc(100% - 600px) !important;
    max-width: none !important;
    margin: 0 20px !important;
    min-width: 0;
  }
  .nline-site .main-lobby-btn {
    width: calc(50% - 20px) !important;
    max-width: calc(50% - 20px);
    margin: 10px !important;
    display: inline-block !important;
  }
}

/* 태블릿·모바일(≤1400): 드로어 사이드바 + 본문 풀폭 */
@media (max-width: 1400px) {
  .nline-site,
  .nline-site .wrapper {
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    overflow-x: hidden;
  }
  .nline-site .sidebar,
  .nline-site .sidebar-left,
  .nline-site .sidebar-right {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    flex: 0 0 0 !important;
    overflow: visible;
  }
  .nline-site .page-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
  .nline-site .page-content > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .nline-site .page-content .container-fluid > .row,
  .nline-site .nl-page-body .row {
    margin-left: 0;
    margin-right: 0;
  }
  .nline-site .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
  }
  .nline-site img,
  .nline-site video,
  .nline-site svg {
    max-width: 100%;
    height: auto;
  }
  .nline-site iframe {
    max-width: 100%;
  }
  /* 미니게임 중계: JS가 nativeW×scale 로 맞추므로 max-width 금지(잘림/빈공간 방지) */
  .nline-site .minigame-container iframe,
  .nline-site .mg-iframe-scaler iframe,
  .nline-site .mg-minigame-iframe {
    max-width: none !important;
  }
  .nline-site .banner-section,
  .nline-site .swiper,
  .nline-site .swiper-carousel {
    max-width: 100%;
    overflow: hidden;
  }
  .nline-site .main-lobby-btn .g-panel,
  .nline-site .main-lobby-btn .g-reflect {
    max-width: 100%;
    left: 0 !important;
    width: 100% !important;
  }
  .nline-site .minigame-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 헤더: 가로폭 초과 방지 */
  .nline-site .header-section {
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    left: 0;
    right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .nline-site .header-section > .container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .nline-site .header-section .left-menu-btn {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    margin-right: 6px;
  }
  .nline-site .header-section .logo {
    flex: 1 1 auto;
    width: auto;
    max-width: 120px;
    min-width: 0;
  }
  .nline-site .header-section .logo .basic {
    max-width: 100%;
    height: auto;
    max-height: 32px;
    object-fit: contain;
  }
  .nline-site .header-section .bal-container {
    flex: 0 0 auto;
    max-width: 55%;
    min-width: 0;
    padding: 0 !important;
    margin: 0 0 0 auto;
    overflow: hidden;
  }
  .nline-site .header-section .bal-container .before-login,
  .nline-site .header-section .bal-container .after-login {
    margin-left: 0 !important;
    max-width: 100%;
  }
  .nline-site .header-section .bal-container .before-login .d-flex,
  .nline-site .header-section .bal-container .after-login > .dflex-ac-jc {
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
  }
  .nline-site .header-section .before-login button,
  .nline-site .header-section .after-login .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px !important;
    width: 36px;
    height: 36px;
    margin-left: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
  }
  .nline-site .header-section .before-login button .local-icon,
  .nline-site .header-section .after-login .btn .local-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    line-height: 0;
  }
  .nline-site .header-section .before-login button .local-icon svg,
  .nline-site .header-section .after-login .btn .local-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .nline-site .header-section .after-login .nav-main {
    margin-right: 0 !important;
    min-width: 0;
  }
  .nline-site .header-section .nav-main .nav-link {
    min-width: 0 !important;
    padding: 0 10px !important;
  }
  .nline-site .header-section .menu-main,
  .nline-site .header-section .my-cash {
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    left: 0;
    right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

/* ── 모바일(폰) 추가 가로폭 제한 ── */
@media (max-width: 767px) {
  .nline-site .page-content > .container,
  .nline-site .footer-section .container-fluid,
  .nline-site .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .nline-site .footer-section .col-12,
  .nline-site .footer-section .col-md-3 {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  /* 메인 카지노/슬롯/미니게임 배너: 한 줄에 하나씩 좌우 꽉 채움 */
  .nline-site .page-main .col-12.dflex-ac-jc:has(.main-lobby-btn),
  .nline-site .nl-menu-main .col-12.dflex-ac-jc:has(.main-lobby-btn) {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 0 !important;
  }
  .nline-site .main-lobby-btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .nline-site .nl-account-body {
    padding: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  /* ── 모바일 헤더 로고: 기존(120×45) 대비 70% ── */
  .nline-site .header-section > .container {
    padding: 0 6px;
  }
  .nline-site .header-section .logo {
    width: 84px;
    max-width: 84px;
    height: 31.5px;
  }
  .nline-site .header-section .logo .basic {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 31.5px;
    object-fit: contain;
  }
  .nline-site .header-section .bal-container {
    max-width: calc(100% - 130px);
  }

  /* 푸터 PROVIDERS: 업체명 숨김 + 로고만, 디바이스 폭 안에 정렬 */
  .nline-site .footer-section .footer-list:has(.provider-carousel) {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .nline-site .footer-section .provider-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  .nline-site .footer-section .provider-carousel .carousel-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .nline-site .footer-section .provider-carousel .carousel-item {
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
  }
  .nline-site .footer-section .provider-carousel .carousel-item .bs-ul {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 4px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .nline-site .footer-section .provider-carousel .carousel-item .bs-ul li {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: 20%;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
  }
  .nline-site .footer-section .provider-carousel .carousel-item .bs-ul li > .dflex-ac-js {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  /* 업체명 텍스트 숨김 (로고만, 데스크톱은 유지) */
  .nline-site .footer-section .provider-carousel .nl-provider-name {
    display: none !important;
  }
  .nline-site .footer-section .provider-carousel .icon-panel {
    width: 100%;
    height: 18px;
    min-width: 0;
    min-height: 18px;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nline-site .footer-section .provider-carousel .icon-panel img {
    width: auto !important;
    height: 16px !important;
    max-width: 100% !important;
    max-height: 16px !important;
    object-fit: contain;
  }
}

/* ── 레이아웃 ── */
.nline-site .page-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}
.nline-site .page-panel > .nl-page-body { flex: 1 0 auto; }
.nline-site .page-panel > .footer-section { flex: 0 0 auto; }
.nline-site .nl-account-body {
  margin: 0 0 20px;
  padding: 20px;
  text-align: left;
  background: var(--bg-color-light);
  border: solid 1px var(--white-05);
  border-radius: 10px;
}
.nline-site .nl-sub-head { margin: 0 0 15px; }
.nline-site .nl-sub-head .section-header { justify-content: flex-start; padding: 5px 5px 15px; }
.nline-site .nl-empty {
  width: 100%;
  margin: 30px 10px;
  padding: 40px 20px;
  color: var(--white-50);
  background: var(--bg-color-light);
  border: solid 1px var(--white-05);
  border-radius: 10px;
}

/* ── 헤더 ── */
.nline-site .after-login a.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nline-site .after-login a.message-btn { color: inherit; height: 100%; }
/* 헤더 쪽지·1:1문의: 아이콘 옆 라벨 표시 */
.nline-site .after-login .nl-header-memo-btn .nl-header-memo-label,
.nline-site .after-login .nl-header-inquiry-btn .nl-header-memo-label {
  display: inline-block !important;
  margin-left: 6px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.nline-site .after-login .nl-header-memo-btn .position-relative,
.nline-site .after-login .nl-header-inquiry-btn .position-relative {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.light-theme .nline-site .after-login .nl-header-memo-btn .nl-header-memo-label,
.light-theme .nline-site .after-login .nl-header-inquiry-btn .nl-header-memo-label {
  color: #111 !important;
}
.nline-site .my-cash .nl-point-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nline-site .before-login button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 좌측 메뉴 미확인 쪽지 수 */
.nline-site .nav-menu .nav-link { position: relative; }
.nline-site .nl-nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--orange-dark);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

/* 우측 내정보 포인트 전환 배지 */
.nline-site .nav-myinfo [data-point-convert-open] { cursor: pointer; }

/* ── 로비 카드 ── */
.nline-site .main-lobby-btn .g-detail span.play-btn,
.nline-site .game-lux-btn .g-detail span.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nline-site .game-lux-btn video.g-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.nline-site .game-lux-btn.is-stopped .g-panel { filter: grayscale(0.85) brightness(0.7); }
.nline-site .nl-stop-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--red-dark);
  color: #fff;
  font-size: 12px;
}
.nline-site .latest-panel .bs-ul li .list-wrap { cursor: pointer; }

/* Notice/Event: 게시글 5줄이 항상 들어가는 고정 세로 높이 */
.nline-site .latest-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.nline-site .latest-panel .bs-ul {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 5줄 × 20px + 줄간격 4×10px = 140px */
  height: 140px;
  min-height: 140px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.nline-site .latest-panel .bs-ul li {
  flex: 0 0 20px;
  width: 100%;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 20px;
}
.nline-site .latest-panel .bs-ul li .list-wrap {
  height: 20px;
  min-height: 20px;
  align-items: center;
  line-height: 20px;
}
.nline-site .latest-panel .bs-ul li .list-wrap .title,
.nline-site .latest-panel .bs-ul li .list-wrap .date {
  line-height: 20px;
}
.nline-site .nl-money-bar .direction button { pointer-events: none; }

/* ── 로그인/회원가입 모달 (guest-auth 오버레이 + 디자인 loginModal/joinModal) ── */
.nl-auth-overlay.mb-auth-overlay,
.nl-auth-overlay {
  z-index: 12000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 10px;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}
.nl-auth-overlay.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* 회원가입: 긴 폼을 세로 중앙정렬하면 모바일에서 상단(아이디 등)이 잘림 → 위에서부터 스크롤 */
#mb-auth-register-overlay.nl-auth-overlay,
#mb-auth-register-overlay.nl-auth-overlay.is-open {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 24px 10px 32px;
  padding-top: max(24px, env(safe-area-inset-top, 0px));
}
#mb-auth-register-overlay .nl-auth-modal {
  margin: 0 auto;
}
.nl-auth-overlay .nl-auth-modal {
  width: 360px;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.nl-auth-overlay.is-open .nl-auth-modal {
  transform: none;
}
.nl-auth-overlay .nl-auth-modal.joinModal { width: 760px; }
/* 추천인 단계: 로그인 모달과 같은 좁은 폭 / 계정폼 단계에서 넓게 */
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-recommend:not(.d-none)) {
  width: 360px;
  max-width: 92vw;
}
/* 추천인 단계: 모달 위 로고 표시 */
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-recommend:not(.d-none)) .modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
}
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-recommend:not(.d-none)) .modal-logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) {
  width: 720px;
  max-width: 96vw;
}
/* 계정폼 단계: 디자인처럼 로고 없이 타이틀만 */
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) .modal-logo {
  display: none;
}
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) .modal-content {
  padding: 28px 28px 22px;
  border-radius: 12px;
  background: #1c2636;
  box-shadow: 0 0 0 1px rgba(120, 160, 220, 0.22);
}
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) .modal-body {
  padding: 0;
}
.nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) .modal-close-btn {
  top: 14px;
  right: 14px;
}
.nl-auth-overlay .nl-field-box:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
}
/* 포커스 시 파란 outline/border 제거 (replica.css focus-visible 덮어씀) */
.nl-auth-overlay input,
.nl-auth-overlay input:focus,
.nl-auth-overlay input:focus-visible,
.nl-auth-overlay select,
.nl-auth-overlay select:focus,
.nl-auth-overlay select:focus-visible,
.nl-auth-overlay textarea,
.nl-auth-overlay textarea:focus,
.nl-auth-overlay textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.nl-auth-overlay .input-container,
.nl-auth-overlay .input-container:focus,
.nl-auth-overlay .input-container:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--white-05) !important;
}
/* 로그인·가입: 아이콘↔입력 간격 +20px (style.css 기본 margin-right:-15px) */
.nl-auth-overlay .form-container .form-group .input-container .icon-panel {
  margin-right: 5px;
}
.nl-auth-overlay .nl-recommend-hint {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-align: left;
}
.nl-auth-overlay .nl-recommend-summary {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-align: center;
}
.nl-auth-overlay .nl-recommend-change {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.nl-auth-overlay #register-step-recommend .form-footer {
  margin-top: 14px;
}
.nl-auth-overlay .nl-auth-modal .modal-dialog { display: flex; width: 100%; max-width: 100%; margin: 0; }
.nl-auth-overlay .nl-auth-modal .modal-content { position: relative; width: 100%; }
.nl-auth-overlay .nl-auth-modal .modal-close-btn { display: block; }
.nl-auth-overlay .nl-auth-modal .modal-header .title { color: var(--white); }
/* 디자인 원본 .modal-body:before 원형 배경(밝은테마에서 흰 원) 제거 */
.nl-auth-overlay .modal-body:before,
.nl-auth-overlay .modal-body.selector-before:before {
  content: none !important;
  display: none !important;
}
.nl-auth-overlay .form-footer button:disabled { opacity: 0.5; cursor: not-allowed; }
.nl-auth-overlay .mb-auth-alert { width: 100%; float: left; margin: 10px 0 0; text-align: left; }

/* 보안문자: 이미지+아이콘버튼 한 줄 가로 100% (공통 auth-modal max-width 240 덮어씀) */
.nl-auth-overlay .nl-captcha-group .www-captcha {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
  max-width: none;
}
.nl-auth-overlay .nl-captcha-group .www-captcha.d-none { display: none !important; }
.nl-auth-overlay .nl-captcha-group .www-captcha-image-box {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  height: 46px;
  overflow: hidden;
  border-radius: 5px;
  border: solid 1px var(--white-05);
  background: var(--white-05);
  box-sizing: border-box;
}
.nl-auth-overlay .nl-captcha-group .www-captcha-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.nl-auth-overlay .nl-captcha-group .www-captcha-refresh {
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.nl-auth-overlay .nl-captcha-group .www-captcha-refresh span {
  display: none;
}
.nl-auth-overlay .nl-captcha-group .www-captcha-refresh-ico {
  width: 18px;
  height: 18px;
  color: #fff;
}
.nl-auth-overlay .nl-captcha-group .www-captcha-input {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: 40px;
  padding: 0 15px;
  border: solid 1px var(--white-05);
  border-radius: 5px;
  background: var(--white-05) !important;
  color: var(--white);
  box-sizing: border-box;
}

.nl-auth-overlay .nl-signup-modes {
  display: flex;
  gap: 6px;
  max-width: 300px;
  margin: 10px auto 0;
}
.nl-auth-overlay .nl-signup-modes button {
  flex: 1;
  height: 34px;
  border: solid 1px var(--blue);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
}
.nl-auth-overlay .nl-signup-modes button.active { background: var(--blue); color: #fff; }

/* 회원가입 계정폼 — 플로팅 라벨 · 그리드 · 오렌지 CTA */
.nl-auth-overlay .nl-reg-step-account {
  text-align: left;
  padding: 0;
}
.nl-auth-overlay .nl-reg-head { margin: 0 0 20px; text-align: center; }
.nl-auth-overlay .nl-reg-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nl-auth-overlay .nl-reg-lead {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.nl-auth-overlay .nl-reg-note {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}
.nl-auth-overlay .nl-reg-warn {
  margin: 0 0 12px;
  color: #ff8a3d;
  font-size: 12px;
  line-height: 1.6;
}
.nl-auth-overlay .nl-recommend-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.nl-auth-overlay .nl-reg-form { margin: 0; width: 100%; float: none; }
.nl-auth-overlay .nl-reg-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
  width: 100%;
  float: none;
}
.nl-auth-overlay .nl-field {
  position: relative;
  grid-column: span 3;
  margin: 0;
  padding-top: 0;
  float: none;
}
.nl-auth-overlay .nl-field-bank { grid-column: span 2; }
.nl-auth-overlay .nl-field-full { grid-column: 1 / -1; }
/* 라벨: 보더 겹침 없이 입력칸 위 독립 배치 */
.nl-auth-overlay .nl-field > label {
  position: static;
  display: block;
  top: auto;
  left: auto;
  z-index: auto;
  margin: 0 0 8px 2px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
}
.nl-auth-overlay .nl-field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.35);
  box-sizing: border-box;
}
.nl-auth-overlay .nl-field-box .local-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0;
  color: #89b1d6;
}
.nl-auth-overlay .nl-field-box .local-icon svg {
  stroke: currentColor;
}
.nl-auth-overlay .nl-field-box input,
.nl-auth-overlay .nl-field-box select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff;
  font-size: 14px;
  line-height: 46px;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
}
.nl-auth-overlay .nl-field-box select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  padding-right: 18px !important;
}
.nl-auth-overlay .nl-field-box select option {
  background: #1c2636;
  color: #fff;
}
.nl-auth-overlay .nl-field-box input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.nl-auth-overlay .nl-reg-grid [data-signup-field].d-none,
.nl-auth-overlay .nl-reg-grid [data-signup-field][hidden] {
  display: none !important;
}

/* 보안코드: 이미지 + 새로고침 + 입력 한 줄 */
.nl-auth-overlay .nl-reg-captcha-field {
  margin-top: 2px;
}
.nl-auth-overlay .nl-reg-captcha-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding-top: 2px;
}
/* 좌측 50%: 보안코드 이미지 + 새로고침 */
.nl-auth-overlay .nl-reg-captcha-left {
  display: flex;
  flex: 0 0 calc(50% - 5px);
  width: calc(50% - 5px);
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}
.nl-auth-overlay .nl-reg-captcha-image-box {
  flex: 1 1 auto;
  align-self: flex-end;
  min-width: 0;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #d0d0d0;
  box-sizing: border-box;
}
.nl-auth-overlay .nl-reg-captcha-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.nl-auth-overlay .nl-reg-captcha-refresh {
  flex: 0 0 48px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #2b81de;
  color: #fff;
  cursor: pointer;
}
.nl-auth-overlay .nl-reg-captcha-refresh .local-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}
/* 우측 50%: 보안코드 입력 */
.nl-auth-overlay .nl-reg-captcha-input-wrap {
  position: relative;
  flex: 0 0 calc(50% - 5px);
  width: calc(50% - 5px);
  min-width: 0;
  padding-top: 0;
  box-sizing: border-box;
}
.nl-auth-overlay .nl-reg-captcha-input-wrap > label {
  position: static;
  display: block;
  top: auto;
  left: auto;
  margin: 0 0 8px 2px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
}
.nl-auth-overlay .nl-reg-captcha-input-box {
  width: 100%;
}
.nl-auth-overlay .nl-reg-captcha-input-box .local-icon {
  color: #89b1d6;
}

.nl-auth-overlay .nl-reg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  float: none;
}
.nl-auth-overlay .nl-reg-cancel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7eb6ff !important;
  font-size: 14px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.nl-auth-overlay .nl-reg-cancel .local-icon {
  width: 16px;
  height: 16px;
  color: #7eb6ff;
}
.nl-auth-overlay .nl-reg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  height: 46px;
  padding: 0 24px;
  margin: 0 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #e67e22;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.nl-auth-overlay .nl-reg-submit:hover { background: #f08c34; }
.nl-auth-overlay .nl-reg-submit .local-icon { width: 18px; height: 18px; color: #fff; }

@media (max-width: 767px) {
  /* 모바일 인증/회원 팝업: 디바이스 가로폭 초과 방지 */
  .nl-auth-overlay.mb-auth-overlay,
  .nl-auth-overlay {
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .nl-auth-overlay .nl-auth-modal,
  .nl-auth-overlay .nl-auth-modal.loginModal,
  .nl-auth-overlay .nl-auth-modal.joinModal {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  .nl-auth-overlay .nl-auth-modal .modal-dialog,
  .nl-auth-overlay .nl-auth-modal .modal-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .ch-slot-layer {
    width: 100%;
    max-width: 100vw;
    max-width: 100dvw;
    padding: 12px 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .ch-slot-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #mb-auth-register-overlay.nl-auth-overlay,
  #mb-auth-register-overlay.nl-auth-overlay.is-open {
    align-items: flex-start !important;
    padding: 12px 8px 40px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  #mb-auth-register-overlay .nl-auth-modal,
  #mb-auth-register-overlay .nl-auth-modal.joinModal,
  #mb-auth-register-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)),
  #mb-auth-register-overlay .nl-auth-modal.joinModal:has(#register-step-recommend:not(.d-none)) {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .nl-auth-overlay .nl-auth-modal.joinModal:has(#register-step-account:not(.d-none)) .modal-content {
    padding: 22px 16px 18px;
  }
  .nl-auth-overlay .nl-reg-grid { grid-template-columns: minmax(0, 1fr); }
  .nl-auth-overlay .nl-field,
  .nl-auth-overlay .nl-field-bank,
  .nl-auth-overlay .nl-field-full { grid-column: 1 / -1; }
  .nl-auth-overlay .nl-reg-captcha-row { flex-wrap: wrap; gap: 12px; }
  .nl-auth-overlay .nl-reg-captcha-left,
  .nl-auth-overlay .nl-reg-captcha-input-wrap {
    flex: 0 0 100%;
    width: 100%;
  }
  /* 계정폼 열릴 때 스크롤을 맨 위로 (포커스/키보드로 중간이 잡히는 경우 대비) */
  #mb-auth-register-overlay.is-open {
    scroll-behavior: auto;
  }
}

/* ── 공통 회원 메뉴 팝업 / 메시지 — 디자인 헤더(100)·사이드바(99) 위 ── */
.nline-site .menu-popup-layer { z-index: 9300; }
.nline-site .site-message-layer { z-index: 13000; }
/* 디자인 body{text-align:center} 가 공통 팝업 본문에 상속되지 않게 */
.nline-site .menu-popup-layer,
.nline-site [id$="-layer"],
.nline-site .nl-account-body { text-align: left; }

/* ── 슬롯 게임 목록 팝업 (nline-slot-popup.js) ── */
.ch-slot-layer {
  position: fixed !important;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  text-align: left;
}
.ch-slot-layer[hidden] { display: none !important; }
.ch-slot-dim { position: absolute; inset: 0; background: rgba(4, 13, 24, 0.82); cursor: pointer; }
.ch-slot-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--bg-color-light, #162133);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.ch-slot-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ch-slot-title { margin: 0; color: var(--white, #fff); font-size: 1.15rem; font-weight: 700; }
.ch-slot-close {
  width: 36px;
  height: 36px;
  border: solid 1px rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.ch-slot-close:hover { border-color: var(--orange, #ff8839); color: var(--orange, #ff8839); }
.ch-slot-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 12px 18px; }
.ch-slot-search {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: solid 1px rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
}
.ch-slot-search:focus { outline: none; border-color: var(--blue, #2b81de); }
.ch-slot-count { flex-shrink: 0; min-width: 3.5em; color: var(--blue-text, #82beff); font-size: 13px; text-align: right; }
.ch-slot-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 14px 12px;
  height: 0;
  min-height: 0;
  padding: 12px 18px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.ch-slot-item {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 calc((100% - 48px) / 5);
  width: calc((100% - 48px) / 5);
  max-width: calc((100% - 48px) / 5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--bg-color-dark, #040d18);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.ch-slot-item:hover { transform: translateY(-2px); border-color: var(--blue, #2b81de); }
.ch-slot-art {
  display: block !important;
  position: relative !important;
  width: 100%;
  height: 0 !important;
  padding: 0 0 75% !important;
  overflow: hidden;
  background: #02080e;
}
.ch-slot-art img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
}
.ch-slot-hit { position: absolute; inset: 0; z-index: 1; display: block; }
.ch-slot-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.ch-slot-fav svg { width: 17px; height: 17px; fill: none; stroke: #a0c3e9; stroke-width: 1.7; stroke-linejoin: round; }
.ch-slot-fav.is-on,
.ch-slot-item.is-fav .ch-slot-fav { background: rgba(255, 136, 57, 0.75); }
.ch-slot-fav.is-on svg,
.ch-slot-item.is-fav .ch-slot-fav svg { fill: #ffd24a; stroke: #ffd24a; }
.ch-slot-fallback {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #a0c3e9;
  font-size: 12px;
  text-align: center;
  background: linear-gradient(160deg, #24334c 0%, #040d18 100%);
}
.ch-slot-meta {
  display: block !important;
  min-height: 34px;
  padding: 8px 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none !important;
}
.ch-slot-meta strong {
  display: block !important;
  overflow: hidden;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ch-slot-meta em { display: block; margin-top: 2px; overflow: hidden; color: rgba(255, 255, 255, 0.5); font-size: 11px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.ch-slot-sentinel { flex: 0 0 100%; width: 100%; height: 1px; visibility: hidden; pointer-events: none; }
.ch-slot-empty,
.ch-slot-loading { flex: 0 0 100%; width: 100%; margin: 24px 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; text-align: center; }
@media (max-width: 1199px) {
  .ch-slot-item { flex-basis: calc((100% - 36px) / 4); width: calc((100% - 36px) / 4); max-width: calc((100% - 36px) / 4); }
}
@media (max-width: 991px) {
  .ch-slot-item { flex-basis: calc((100% - 24px) / 3); width: calc((100% - 24px) / 3); max-width: calc((100% - 24px) / 3); }
}
@media (max-width: 767px) {
  .ch-slot-layer { align-items: stretch; padding: 0; }
  .ch-slot-panel { width: 100%; height: 100%; border-radius: 0; }
  .ch-slot-list { gap: 10px 8px; padding: 8px 12px 24px; }
  .ch-slot-item { flex-basis: calc((100% - 8px) / 2); width: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); }
  .ch-slot-meta em { display: none; }
}

/* 추천게임: 카드 전체(<a.featured-wrap>) 클릭 가능 */
.nline-site .featured-slots a.featured-wrap {
  display: flex !important;
  width: 100%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  cursor: pointer;
}
.nline-site .featured-slots a.featured-wrap .game-btn {
  flex: 0 0 80px;
  pointer-events: none;
}
.nline-site .featured-slots a.featured-wrap .information {
  pointer-events: none;
}

/* ── 밝은 테마 보정 ── */
.light-theme .nline-site .nl-account-body,
.light-theme .nline-site .nl-empty { background: #fff; }
