/* ab-shell — 2026-11-19 에이에이 AA BET 화면 덧칠 (뼈대·메인·로그인/가입 묶음)
   레퍼런스 CSS(aabet-ref.css)에 없는 것만 채운다. 레퍼런스가 v-sticky(자바스크립트)로 하던 고정 머리줄은 position: sticky 로 대신한다 */

/* ── 위에 붙는 칸: 머리줄 + (PC) 왼쪽 메뉴·오른쪽 회원정보 ───────────────── */
.ab-layout-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
}
/* # 확인요망 - 2026-11-19 PC: 레퍼런스는 머리줄(129) + 2번째 줄 아래 여백 5px 를 고정 칸(134) 안에 가두고,
   가운데 칸은 자리표(129) 바로 밑 129 에서 시작한다 → 가운데 내용이 왼쪽·오른쪽 칸(134)보다 5px 위.
   우리는 그 5px 여백이 밖으로 새서 가운데 칸을 134 로 밀었다 → 안에 가두고(flow-root) 아래를 -5px 당긴다 */
.ab-layout-sticky {
    display: flow-root;
    margin-bottom: -5px;
}
.sm\:layout .ab-layout-sticky {
    z-index: 2000;
    display: block;
    margin-bottom: 0;
}

/* 머리줄 작은 메뉴: 지금 화면이면 주황 (레퍼런스 hover 색) */
.layout-header .header-utils__item.active,
.layout-header .header-utils__item.active > span {
    color: #f90 !important;
}
.layout-header .header-btns .header-btn {
    white-space: nowrap;
}
.layout-header .header-logo {
    display: block;
}

/* # 확인요망 - 2026-11-19 992~1599px: 레퍼런스는 머리줄 오른쪽이 화면 밖으로 넘쳐 로그아웃·로그인 버튼이 잘리거나 로고와 겹친다.
   우리는 가로 스크롤·겹침 없이 다 보이게 간격·글씨·버튼 폭만 줄인다(사용자 규칙: 넘치면 글씨를 줄여 한 줄로).
   992~1199px 은 그래도 로그아웃 상태(로그인·회원가입·무기명가입 세 버튼)가 로고에 닿아 메뉴 앞 작은 아이콘과 버튼 아이콘을 뺀다.
   2026-11-19 무기명가입 버튼이 생겨 구간을 다시 나눔: 1단계 992~1799 / 2단계 992~1365 / 3단계 992~1199. 로고는 줄어들지 않게 고정 */
.layout-header .header-logo { flex-shrink: 0; }
@media (min-width: 992px) and (max-width: 1799px) {
    .layout-header .header-row1__right { gap: 8px; margin-right: 12px; }
    .layout-header .theme-toggle { padding-left: 10px; }
    .layout-header .header-utils { gap: 6px; }
    .layout-header .header-utils__item > span:last-child { font-size: 13px; }
    .layout-header .header-btns .header-btn { font-size: 12px; min-width: 0; padding: 5px 12px; }
}
@media (min-width: 992px) and (max-width: 1365px) {
    .layout-header .header-row1__right { gap: 5px; margin-right: 6px; }
    .layout-header .theme-toggle { padding-left: 4px; }
    .layout-header .header-utils { gap: 2px; }
    .layout-header .header-utils__item { gap: 2px; padding: 4px 1px; }
    .layout-header .header-utils__item > span:first-child { font-size: 10px; }
    .layout-header .header-utils__item > span:last-child { font-size: 11px; }
    .layout-header .header-btns .header-btn { font-size: 11px; padding: 5px 9px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .layout-header .header-utils { gap: 0; }
    .layout-header .header-utils__item { padding: 10px 4px; }
    .layout-header .header-utils__item > span:first-child { display: none; }
    .layout-header .header-btns .header-btn { gap: 0; padding: 5px 8px; }
    .layout-header .header-btns .header-btn i { display: none; }
}

/* # 확인요망 - 2026-11-19 휴대폰 머리줄 ☰·내 정보 아이콘은 레퍼런스 규칙(.header-mobile__icon-btn font-size 18px) 그대로 — 22px 덧칠 지움.
   보유머니·새로고침 링크도 레퍼런스처럼 보통 글줄(inline) — inline-flex 덧칠 지움(새로고침 칸 높이 21px) */
.layout-header .header-mobile__user-bar a {
    color: #fff;
    text-decoration: none;
}
.layout-header .header-mobile__user-bar .guest [class^=icon-] {
    margin-right: 4px;
}
.layout-header .header-mobile__user-bar .el-button + .el-button {
    margin-left: 0;
}

/* ── 오른쪽 회원정보 ─────────────────────────────────────────────── */
/* # 확인요망 - 2026-11-19 등급 표시: 레퍼런스는 레벨 그림(img.avatar 126x68 → 26x14, 위 #7f8392 → 아래 #3a3e49, 흰 굵은 "LV.1").
   우리는 등급마다 그림이 없어서 같은 크기·색으로 글자 칸을 그린다. 감싸는 span 은 레퍼런스처럼 flex, 칸 바깥 여백 0 5px 0 7px */
.ab-user-box .ab-nickname .user-name-link > span:first-child {
    display: flex;
}
.ab-user-box .ab-lv-badge {
    display: block;
    width: 26px;
    height: 14px;
    margin: 0 5px 0 7px;
    padding: 0;
    border: 0;
    border-radius: 2.5px;
    background: linear-gradient(#7f8392, #3a3e49);
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 14px;
    letter-spacing: -.2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.ab-user-box .ab-nickname > span:first-child > span {
    gap: 5px;
}
.ab-user-box .ab-btn-refresh {
    cursor: pointer;
    display: inline-block;
}
.ab-user-box .ab-spin {
    animation: ab-spin .6s linear infinite;
}
@keyframes ab-spin {
    to { transform: rotate(360deg); }
}

/* 오른쪽 띠 배너: 레퍼런스는 bet-slip-banner 에 margin-left 5px 가 있다(카트 폭과 맞춤) */
.content-layout-right .ab-right-banners .bet-slip-banner img {
    display: block;
}
.ab-mob-right-panel__banners .bet-slip-banner {
    margin-left: 0;
}

/* ── 메인 ─────────────────────────────────────────────────────────── */
/* el-carousel 은 칸 높이를 고정으로 잡는데, 레퍼런스는 그림 높이 그대로(height:auto) 쓴다 → 보이는 장을 흐름 안에 둔다 */
.home-index__banner .el-carousel__item.is-active {
    position: relative;
}
.home-index__banner .el-carousel__container {
    min-height: 1px;
}

/* # 확인요망 - 2026-11-21 로그인 창 덧칠(남색 판·테두리) 삭제 — 레퍼런스 login_bg.png 를 받아 넣어 aabet-ref.css 그대로 씀 */

/* ── 회원가입 (창, /join 화면) ──────────────────────────────────────── */
.ab-register-wrap .ab-register-form .el-select {
    width: 100% !important;
}
.ab-register-wrap .ab-register-form .el-form-item__label {
    line-height: 14px;
}
.ab-join-page {
    max-width: 500px;
    margin: 20px auto;
}
.ab-register-select.el-select-dropdown {
    background: #1c1c1c;
    border-color: #3c3c3c;
}
.ab-register-select .el-select-dropdown__item {
    color: #fff;
}
.ab-register-select .el-select-dropdown__item.hover,
.ab-register-select .el-select-dropdown__item:hover {
    background: #293042;
}

/* ── 메인 팝업 (예전 위치·크기 그대로, 모양만 레퍼런스) ────────────────── */
.popup.ab-popup {
    border: 0;
    background: #1c2025;
    z-index: 1035;
}
.popup.ab-popup .el-image__inner {
    display: block;
    width: 100%;
    height: auto;
}

/* ── 예전 화면에 남아 있는 LeftBar·RightBar 자리 ───────────────────── */
.ab-legacy-leftbar,
.ab-legacy-rightbar {
    display: none !important;
}

/* 레퍼런스에서는 왼쪽 메뉴 규칙이 스코프([data-v-…])로 이겼는데, 스코프를 지운 뒤 다른 테마의 .left-menu{padding:0 8px 0 12px} 가 이긴다 → 되돌림 */
.left-menu-shell .left-menu {
    padding: 0;
}

/* # 확인요망 - 2026-11-21 로그인 버튼 둥근 모서리 덧칠 삭제 — 레퍼런스도 .el-button:not(.is-circle):not(.is-round){border-radius:0!important} 가 이겨서 네모(실측 0px) */

/* ── 휴대폰 게임 화면 하단 슬립 (DefaultLayout .ab-mob-game-betslip) ─────────
   접힘(--collapsed) 이면 머리줄만 남긴다. 새 BetCart(el-card) 와 예전 BetCart(.cart_box) 둘 다 */
.ab-mob-game-betslip .el-card__header,
.ab-mob-game-betslip .cart_title {
    cursor: pointer;
}
.ab-mob-game-betslip--collapsed .el-card__body,
.ab-mob-game-betslip--collapsed .cart_box > :not(.cart_title) {
    display: none !important;
}

/* # 확인요망 - 2026-11-23 11:39:15 안내 띠 아이콘·글 간격 10px 덧칠 삭제 — 레퍼런스 실측 짜임(.toast-message-wrapper gap 8px, aabet-ref.css)으로 바꿈 (tools.sw).
   Element 기본 아이콘 숨김은 레퍼런스 CSS(.el-message__icon{display:none})에 이미 있다 */
/* # 확인요망 - 2026-11-20 확인창·알림창(el-message-box) 안 동그라미 아이콘: 레퍼런스 실측 위·아래 20px, 가로 가운데 */
.el-message-box .swal2-icon { margin: 20px auto; }
/* # 확인요망 - 2026-11-20 사용자 "이런 팝업 끌수있는 X 버튼 있어야 할듯" → 띠 오른쪽 ✕(Element showClose).
   글이 가운데 그대로 있게 좌우 여백을 똑같이 두고, 누르는 자리는 40px 로 넉넉히 */
.tmt-message { padding-left: 36px; padding-right: 36px; }
/* 2026-11-20 사용자 "오른쪽끝 상단에 넣어줘 중간말고" → 세로 가운데(Element 기본 top:50%+translateY) 대신 오른쪽 위 모서리 */
.tmt-message .el-message__closeBtn {
    top: 2px;
    right: 2px;
    transform: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #9ea3ad;
    transition: color .15s;
}
.tmt-message .el-message__closeBtn:hover { color: #fff; }

/* # 확인요망 - 2026-11-20 레퍼런스 로그인 버튼 "인증 중" 번개 도는 움직임(복사본에 빠져 있었음) */
@keyframes spin-data-v-66cf1d13{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}

/* # 확인요망 - 2026-11-20 아이폰(웹킷) 문제 막기 — 서라벌·델루나·스타토 아이폰 체크리스트(2·5·11·12번)
   2) 내용 끝에서 고무줄처럼 더 끌려 내려감  5) 두 번 톡 확대  11) 입력칸 누르면 확대(16px 미만)  12) 자동완성하면 칸이 하얗게·글자 안 보임 */
html, body { overscroll-behavior-y: none; }
html, body { touch-action: pan-x pan-y; } /* # 확인요망 - 2026-11-20 사용자 아이폰 "손가락으로 벌리면 확대" → manipulation 은 벌리기 확대를 허용함, 밀기만 허용(서라벌에서 실기기로 확인된 방법) */
@media (max-width: 768px) {
    /* 화면마다 글자 크기를 !important 로 준 칸(출금 비번 14px·문의 내용 12px 등)보다 강하게 :root 를 붙임 */
    :root body input:not([type=checkbox]):not([type=radio]), :root body textarea, :root body select, :root body .el-input__inner, :root body .el-textarea__inner { font-size: 16px !important; }
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #000 inset;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
}

/* # 확인요망 - 2026-11-20 사용자 "좌측 메뉴든 우측 메뉴든 모바일에서 메뉴가 끝나는 시점에서는 더이상 화면이 더 올라가지 않게"
   ① 패널 안: 끝에서 고무줄처럼 더 밀리는 것·뒤 페이지로 넘어가는 것 끔(왼쪽 서랍 메뉴 / 오른쪽 회원정보·카트 패널)
   ② 패널이 열려 있는 동안 뒤 페이지 스크롤 잠금(Element 서랍이 body 에 붙이는 el-popup-parent--hidden / 오른쪽 패널 열림)
   ③ 어두운 막 위에서 끄는 동작도 막음 — 서라벌에서 실제 아이폰으로 확인된 방법 */
.el-drawer__wrapper.left .el-drawer__body, .ab-mob-right-panel__inner { overscroll-behavior: none; }
html:has(body.el-popup-parent--hidden), html:has(body.el-popup-parent--hidden) body,
html:has(.ab-mob-right-panel--open), html:has(.ab-mob-right-panel--open) body { overflow: hidden !important; }
.ab-mob-dim--open, .el-drawer__wrapper.left, .v-modal { touch-action: none; overscroll-behavior: none; }
.el-drawer__wrapper.left .el-drawer__body, .ab-mob-right-panel__inner { touch-action: pan-y; }

/* # 확인요망 - 2026-11-20 왼쪽 서랍 메뉴 스크롤이 두 겹이었음: 바깥 서랍(783) 안에 메뉴 목록(max-height: 100vh-20 = 824, 내용 1547)
   → 목록 끝에서 바깥 서랍이 41px 더 끌려 "끝나는 시점에서 화면이 더 올라감". 목록을 서랍 높이에 맞춰 한 겹만 스크롤되게 */
.el-drawer__wrapper.left .el-drawer__body { overflow: hidden !important; }
.el-drawer__wrapper.left .el-drawer__body > div { height: 100%; }
.el-drawer__wrapper.left .content-layout-left { height: 100%; max-height: 100% !important; overscroll-behavior: none; }

/* # 확인요망 - 2026-11-20 사용자 아이폰 "게임 상세칸만 아직 끌리네" → 아래에서 올라오는 경기 상세 서랍(전체 배팅옵션)도
   좌우 메뉴와 같게: 안 스크롤 칸(.sbo-detail__body) 끝에서 튕김 끔, 서랍 바깥 막 위 끌기 막음 */
.sbo__mobile-drawer .sbo-detail__body { overscroll-behavior: none; touch-action: pan-y; }
.el-drawer__wrapper:has(.sbo__mobile-drawer) { touch-action: none; overscroll-behavior: none; }

/* # 확인요망 - 2026-11-25 19:55:00 맨 위 작은 메뉴에 지인페이백 · 추천인 · 퀘스트 · 투표이벤트 4개가 늘어 1366~1420px 에서 오른쪽(로그아웃)이 화면 밖으로 50px 넘침
   → 1366~1499px 은 사이 3px · 글씨 12px 로 한 단계 더 줄임. 흑백 그림 아이콘은 글꼴 아이콘(12px)과 같은 높이로, 아이콘을 숨기는 992~1199px 에선 같이 숨김 */
.layout-header .header-utils__img { width: auto; height: 15px; }
@media (min-width: 1366px) and (max-width: 1499px) {
    /* 2026-11-25 20:05:00 룰렛까지 16개 → 사이 3 → 2px */
    .layout-header .header-utils { gap: 2px; }
    .layout-header .header-utils__item > span:last-child { font-size: 12px; }
}
@media (min-width: 992px) and (max-width: 1365px) {
    .layout-header .header-utils__img { height: 13px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .layout-header .header-utils__img { display: none; }
}
@media (min-width: 992px) and (max-width: 1099px) {
    /* # 확인요망 - 2026-11-25 20:00:00 992px 에서 메뉴 15개가 26px 넘침 → 메뉴 양옆 여백 4 → 2.5px (20:05 룰렛까지 16개 → 2px) */
    .layout-header .header-utils__item { padding: 10px 2px; }
}
/* # 확인요망 - 2026-11-25 22:30:00 글자 실제 모양으로 재서 가운데 (사용자 '이런 맞춤 제대로 찾아서'): 왼쪽 메뉴 경기 수 칸 · [검색] 글자가 1.15px 위로 떠 있음 → 1px 내림 */
.left-menu__fixture-item .fi-count { padding: 3px 2px 1px; }
.left-menu__search button { padding-top: 3px; }

/* # 확인요망 - 2026-11-26 10:50:00 알약 · 버튼 글자 가운데 맞춤 1차 (사용자 "이런 알약 버튼들 아직도 정렬 안 된 것들이 많다")
   글자 실제 모양(canvas 글자 상자)으로 재서 위·아래 틈 차이만큼만 옮김 — 칸 크기는 그대로(위·아래 여백 합 유지)
   잰 값: 왼쪽 메뉴 칸 -2.4 · 충전 금액 버튼 -1.0 · 게시판 삭제/공지 배지 -2.3 · 롤링 카드 제목 -6.6 · 미니게임 +5천 +1.3
          홀짝 동그라미 -2.0~-2.9 · 사다리 번호 배지 -1.2 · 스포츠 [+추가 배팅옵션] -2.3 · 경기 수 숫자 -1.6(휴대폰)
          쪽 번호 +1.5 · 라이브 상태 -1.4 · 벳365 접기 - +1.9 · 경마 번호 -2.0 (− = 글자가 위로, + = 아래로 치우침) */
.left-menu__grid-item > span { position: relative; top: 1.2px; }
.ab-amount-btns button { padding-top: 1px; padding-bottom: 0; }
.grid-content > .el-card__header { padding-top: 2.75px; padding-bottom: 2.25px; }
.el-button.w-100.is-round > span { position: relative; top: -.65px; }
.el-tag.text-white.border-0 { padding-top: 1px !important; padding-bottom: 0 !important; }
.el-badge__content.is-fixed { padding-top: .65px; padding-bottom: 0; }
.sbo-row__more, .sbo-live-card__extra { display: inline-flex; align-items: center; justify-content: center; padding-top: 3.15px; padding-bottom: .85px; }
.sbo-live-card__status { padding-top: 1.05px; padding-bottom: 0; }
.toggle-btn { padding-bottom: 1.9px; }
.runner-number { padding-top: 1.8px; padding-bottom: 0; }
@media (min-width: 992px) { .runner-number { padding-top: 1px; padding-bottom: .55px; } }
.pagination .page-item .page-link { line-height: 26.5px !important; height: 28px; }
@media (min-width: 992px) {
    .ab-bbs-delete-btn { padding-top: 3.2px; padding-bottom: .8px; }
    .ab-bbs-badge { padding-top: 3.1px; padding-bottom: .9px; }
}
@media (max-width: 991.98px) {
    .ab-bbs-pagination button { padding-top: .9px; padding-bottom: 0; }
    .sport-chips .sbo-chip .sbo-chip__count { padding-top: 2.8px; padding-bottom: 1.2px; }
    .el-tag.text-white.border-0 { padding-top: 1.6px !important; }
}
/* # 확인요망 - 2026-11-26 11:20:00 2차 — 재검사에서 새로 나온 곳: 쪽지 [선택 삭제 · 전체 삭제 · 전체 읽음] -2.3 · 미니게임 배팅 [잔돈] -1.4 · 퀘스트 탭(768) -1.4 */
.ab-msg-actions__btn { padding-top: 4.15px; padding-bottom: 1.85px; }
@media (min-width: 992px) { .ab-msg-actions__btn { padding-top: 3.4px; padding-bottom: 2.6px; } }
.tmt-bet-slip--item-container-footer--input-change-btn > span { position: relative; top: .7px; }
@media (min-width: 576px) and (max-width: 991.98px) {
    .qs-tab { padding-top: 1.7px !important; padding-bottom: .3px !important; }
}
