/* floating-field 입력 폼 (auth-floating.css) — W18A 톤 변수 alias */
body.skin-w18a {
    --bg-layer1: #0c2973;                       /* input 배경 */
    --color: #fff;                              /* input 텍스트 */
    --secondary: #80b3ff;                       /* floating 떠오른 라벨 (focus 톤) */
    --border2-color: rgba(255, 255, 255, 0.18); /* input 테두리 */
    --border2-font: rgba(255, 255, 255, 0.5);   /* 라벨 기본 / placeholder */
}

body.skin-w18a .intro-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
}

body.skin-w18a .intro-popup.active {
    display: block;
}

body.skin-w18a .intro-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #001854;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
}

body.skin-w18a .intro-popup .login-wrap,
body.skin-w18a .intro-popup .join-wrap,
body.skin-w18a .intro-popup .code-wrap {
    display: none;
}

body.skin-w18a .intro-popup .login-wrap.active,
body.skin-w18a .intro-popup .join-wrap.active,
body.skin-w18a .intro-popup .code-wrap.active {
    display: block;
}

body.skin-w18a .intro-popup .intro-wrap {
    position: relative;
    width: 450px;
    max-width: calc(100% - 30px);
    padding: 30px;
    background: #001854;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

body.skin-w18a .intro-tit,
body.skin-w18a .intro-list label {
    color: #fff;
}

body.skin-w18a .intro-popup .intro-tit {
    margin: 0 auto 20px;
    padding: 0 0 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 업체별 기본 추천인코드 안내 (Site:Brand:ReferralCode 설정 시에만 렌더링) */
body.skin-w18a .intro-popup .code-notice {
    margin: -8px auto 14px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
body.skin-w18a .intro-popup .code-notice > p { margin: 0; }
body.skin-w18a .intro-popup .code-notice strong { font-weight: 700; color: #80b3ff; }

body.skin-w18a .intro-popup ul.intro-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.skin-w18a .intro-popup ul.intro-list > li {
    margin: 0 0 12px;
}

body.skin-w18a .intro-popup ul.intro-list > li > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

/* radio/checkbox 는 가입 폼의 회원유형 라디오 등 — 강제 width/height 미적용 (브라우저 기본 동그라미 크기 유지) */
body.skin-w18a .intro-popup ul.intro-list input:not([type=radio]):not([type=checkbox]),
body.skin-w18a .intro-popup ul.intro-list select {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #fff;
    background: #0c2973;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

body.skin-w18a .intro-popup ul.intro-list input:not([type=radio]):not([type=checkbox]):focus,
body.skin-w18a .intro-popup ul.intro-list select:focus {
    outline: none;
    border-color: #80b3ff;
    box-shadow: 0 0 0 3px rgba(128, 179, 255, 0.18);
}

/* floating-field 전용 padding/height override — W18A 의 기본 input 룰이
   :not([type=radio]):not([type=checkbox]) 로 attribute selector 2개 가산(0,5,3)이라
   직계자식 셀렉터만으로는 specificity 부족. 같은 :not() 패턴 추가로 (0,6,4) 확보. */
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > input:not([type=radio]):not([type=checkbox]),
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > .floating-input-wrap > input:not([type=radio]):not([type=checkbox]),
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > select {
    height: 50px;
    padding: 18px 15px 6px;
}

/* placeholder 글자는 항상 숨김 (focus 시도 복원하지 않음) — 라벨이 hint 역할 */
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > input:not([type=radio]):not([type=checkbox])::placeholder,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > .floating-input-wrap > input:not([type=radio]):not([type=checkbox])::placeholder {
    color: transparent;
}

/* floating-field 라벨 기본 위치 — W18A 의 .intro-list > li > label (font-size:13px, margin-bottom:6px)
   룰(specificity 0,3,3) 이 우리 auth-floating.css(0,2,3) 보다 specific 해서 라벨 floating 트리거가
   적용되지 않음. 동일/높은 specificity 로 floating-field 라벨 룰을 재정의. */
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > .floating-input-wrap > label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: top 0.15s ease-out, transform 0.15s ease-out,
                font-size 0.15s ease-out, color 0.15s ease-out;
}

/* focus / 값 있음 / select 선택됨 → 라벨 떠오름 (font-size: 11px)
   !important 사유: cascade 디버깅 결과 specificity 충분(0,5,5)한데도 동일 selector 라인의
   declaration 일부가 적용 안 되는 케이스 발견. W18A 의 다른 영역 (다른 stylesheet 의 cached
   계산값?) 에서 override 가 발생 — 안전망으로 !important 강제. */
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > input:focus + label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > input:not(:placeholder-shown) + label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > select:focus + label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > select:valid + label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > .floating-input-wrap > input:focus + label,
body.skin-w18a .intro-popup ul.intro-list > li.floating-field > .floating-input-wrap > input:not(:placeholder-shown) + label {
    top: 7px !important;
    transform: none !important;
    font-size: 11px !important;
    color: #80b3ff !important;
}

body.skin-w18a .intro-popup .check-list {
    display: flex;
    gap: 8px;
}

body.skin-w18a .intro-popup .check-list > input {
    width: calc(100% - 108px);
}

body.skin-w18a .intro-popup .check-list > .btn-check {
    width: 100px;
    height: 46px;
    color: #001854;
    background: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

body.skin-w18a .intro-popup .intro-btns {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

body.skin-w18a .intro-popup .intro-btns > button {
    width: 100%;
    height: 46px;
    border: 0;
    cursor: pointer;
}

body.skin-w18a .intro-btns button,
body.skin-w18a .intro-login,
body.skin-w18a .intro-join,
body.skin-w18a .go-login,
body.skin-w18a .go-join {
    color: #001854;
    background: #fff;
    border-radius: 5px;
}

body.skin-w18a .intro-closeBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #000e32;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    cursor: pointer;
}


body.skin-w18a .lang-dropdown {
    position: relative;
    margin-left: 12px;
}

body.skin-w18a .btn-lang {
    width: 42px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    background: #0c2973;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

body.skin-w18a .btn-lang > .current-flag {
    font-size: 20px;
    line-height: 1;
}

body.skin-w18a .btn-lang > i, body.skin-w18a .btn-lang > svg {
    font-size: 10px;
}

body.skin-w18a .lang-menu {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 120;
    min-width: 122px;
    padding: 5px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.skin-w18a .lang-menu.active {
    display: block;
}

body.skin-w18a .lang-menu a {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0c2973;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
}

body.skin-w18a .lang-menu .flags {
    width: 20px;
    line-height: 1;
}

body.skin-w18a .lang-menu .country-name {
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

body.skin-w18a .lang-menu a.active,
body.skin-w18a .lang-menu a:hover {
    background: #ededed;
}

body.skin-w18a .w18a-sport-frame {
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

body.skin-w18a .sport-game-list {
    margin-bottom: 20px;
}

/* ── 로그인 팝업 상단 로고 · 텔레그램 문의 (업체요청 PPT 7, 2026-10-01) ──
   🔴 공용 팝업 마크업에 붙는 요소라 **스킨 스코프(body.skin-w18a)** 안에서만 꾸민다.
      전역에 쓰면 다른 업체 로그인 화면까지 바뀐다(옵션이 꺼져 있어 요소 자체는 안 나오지만,
      나중에 켜는 업체가 생기면 그때 이 스타일이 따라붙어버린다). */
body.skin-w18a .intro-popup .intro-logo {
    margin: 0 0 14px;
    text-align: center;
}
body.skin-w18a .intro-popup .intro-logo > img {
    max-width: 70%;
    max-height: 64px;
    height: auto;
}

/* 버튼이 3~4개로 늘어 한 줄에 다 들어가지 않는다 → 줄바꿈 허용 */
body.skin-w18a .intro-popup .intro-btns {
    flex-wrap: wrap;
}
body.skin-w18a .intro-popup .intro-btns > button,
body.skin-w18a .intro-popup .intro-btns > .intro-telegram {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
}

/* 텔레그램은 <a> 라 button 규칙(높이·정렬)이 안 먹는다 — 같은 모양으로 맞춘다 */
body.skin-w18a .intro-popup .intro-telegram {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 700;
    color: #fff;
    background: #229ED9;   /* 텔레그램 브랜드 컬러 */
    text-decoration: none;
}
