@charset "utf-8";

/****************************************************************************************************************************************
ST10 popup.css — 공지 팝업 · 게임 팝업 · 레이어 팝업 공통
(ST02 _Layout의 인라인 <style> 추출 + ST02 popup.css 일부 Earth 톤으로 포팅)
*****************************************************************************************************************************************/

/****************************************************************************************************************************************
레이어 팝업 공통
*****************************************************************************************************************************************/
#layerPopup {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: var(--z-popup);
    width: 100%;
    height: 100%;
}
.layer-bg {
    position: relative;
    padding: 30px 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
}
.layer-wrap { position: relative; }
.layer-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 9;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 58, 92, 0.8);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.layer-close > svg {
    font-size: 20px;
    color: var(--earth-text-muted);
}
@media (hover: hover) and (pointer: fine) {
    .layer-close:hover {
        background: rgba(0, 212, 170, 0.2);
        border-color: var(--earth-primary);
    }
    .layer-close > svg:hover { color: var(--earth-text); }
}
.layer-con { position: relative; }

/****************************************************************************************************************************************
공지 팝업 (Swiper v12 캐러셀)
*****************************************************************************************************************************************/
.notice-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-popup);
    background: rgba(5, 13, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
}
.notice-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-popup-inner {
    position: relative;
    width: 500px;
    max-height: calc(100vh - 80px);
    background: rgba(10, 22, 40, 0.96);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 170, 0.12);
}
.notice-popup-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 92, 0.8);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    color: var(--earth-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.notice-popup-close:hover {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-text);
    border-color: var(--earth-primary);
}

.notice-popup-swiper {
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}
.notice-popup-slide { padding: 0; }

.notice-popup-title {
    margin: 0;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--earth-text);
    background: var(--bg-layer2);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
}
.notice-popup-body {
    padding: 20px;
    min-height: 240px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    background: rgba(5, 13, 26, 0.4);
}
.notice-popup-image {
    margin-bottom: 15px;
    text-align: center;
}
.notice-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.notice-popup-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--earth-text);
    word-break: break-word;
    white-space: pre-wrap;
}

.notice-popup-pagination {
    padding: 10px 0;
    text-align: center;
    background: var(--bg-layer2);
}
.notice-popup-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: rgba(143, 163, 191, 0.5);
    opacity: 1;
}
.notice-popup-pagination .swiper-pagination-bullet-active {
    background: var(--earth-primary);
    box-shadow: 0 0 6px rgba(0, 212, 170, 0.5);
}

.notice-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.15);
    background: var(--bg-layer2);
}
.notice-popup-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--earth-text-muted);
    cursor: pointer;
}
.notice-popup-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--earth-primary);
    cursor: pointer;
}
.notice-popup-close-btn {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--earth-gradient);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
    transition: 0.2s;
}
.notice-popup-close-btn:hover {
    filter: brightness(115%);
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    .notice-popup-inner {
        width: 92vw;
        max-height: 85dvh;
    }
    .notice-popup-body {
        max-height: calc(85dvh - 120px);
    }
}

/****************************************************************************************************************************************
게임 팝업 (카지노/슬롯 상세 목록)
*****************************************************************************************************************************************/
.game-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: var(--z-game-popup);
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
}
.game-popup.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}
.game-popup-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 80px);
    background: rgba(10, 22, 40, 0.96);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 170, 0.12);
}
.game-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-layer2);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}
.game-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--earth-text);
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
}
.game-popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 58, 92, 0.8);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    color: var(--earth-text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.game-popup-close:hover {
    background: rgba(0, 212, 170, 0.2);
    color: var(--earth-text);
    border-color: var(--earth-primary);
}
.game-popup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(5, 13, 26, 0.4);
}
.game-popup-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--earth-text-muted);
}
.game-popup-loading.active { display: block; }

.game-popup-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.game-popup-list > li {
    position: relative;
    width: calc(100% / 6 - 12.5px);
    aspect-ratio: 1/1; /* ACE 슬롯 썸네일이 정사각(768x768) → 1:1 로 맞춰 세로늘어남 방지 */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(26, 58, 92, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: 0.2s;
}
.game-popup-list > li:hover {
    border-color: var(--earth-primary);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.25);
}
.game-popup-list > li > img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; 제거 — 썸네일 잘림 방지 (디자인팀 요청) */
}
.game-popup-list > li > .game-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 8px;
    background: linear-gradient(transparent, rgba(5, 13, 26, 0.9));
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-popup-list > li.no-games {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: var(--earth-text-muted);
    background: transparent;
    border: none;
    cursor: default;
}
.game-popup-list > li .game-hover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 13, 26, 0.7);
    opacity: 0;
    transition: 0.2s;
}
.game-popup-list > li .game-hover .play-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--earth-gradient);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transform: scale(0.8);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
    transition: 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .game-popup-list > li:hover .game-hover { opacity: 1; }
    .game-popup-list > li:hover .game-hover .play-icon { transform: scale(1); }
}
@media (max-width: 992px) {
    .game-popup-list > li { width: calc(100% / 4 - 11.25px); }
    .game-popup-list { gap: 12px; }
}
@media (max-width: 767px) {
    .game-popup-list > li { width: calc(100% / 3 - 6.67px); }
    .game-popup-list { gap: 10px; }
    .game-popup.active { padding: 20px 10px; }
}
@media (max-width: 480px) {
    .game-popup-list > li { width: calc(100% / 2 - 5px); }
}

/* ========================================================================
 * row-popup 가로 일렬 모드 (ST10 — 청록 다크 톤)
 * SET_SYSTEM_OPEN.POPUP_SEPARATE='Y' + 데스크탑 ≥1280px일 때 활성화
 * 1280px 미만은 JS가 캐러셀로 폴백
 * ======================================================================== */
.row-popup-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-popup, 9999);
    padding: 60px 30px;
    pointer-events: none;
}
.row-popup-container.active {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.row-popup-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 340px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.96);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}
.row-popup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-layer2, rgba(26, 58, 92, 0.6));
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}
.row-popup-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.row-popup-card-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 92, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.row-popup-card-close:hover { background: rgba(0, 212, 170, 0.3); }
.row-popup-card-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: rgba(5, 13, 26, 0.4);
}
.row-popup-card-image { margin-bottom: 12px; text-align: center; }
.row-popup-card-image img { max-width: 100%; height: auto; border-radius: 6px; }
.row-popup-card-content {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    word-break: break-word;
    white-space: pre-wrap;
}
.row-popup-card-footer {
    padding: 10px 16px;
    background: var(--bg-layer2, rgba(26, 58, 92, 0.6));
    border-top: 1px solid rgba(0, 212, 170, 0.2);
}
.row-popup-card-dontshow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
}
.row-popup-card-dontshow input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: rgb(0, 212, 170);
    cursor: pointer;
}
@media (max-width: 1279px) {
    .row-popup-container { display: none !important; }
}

/****************************************************************************************************************************************
게임명 검색 — 스킨 톤 오버라이드 (공용 기본: css/business/game-popup-search.css)
*****************************************************************************************************************************************/
.game-popup .game-popup-search-input { background: rgba(13, 5, 26, 0.6); border-color: rgba(217, 70, 239, 0.3); color: var(--earth-text); }
.game-popup .game-popup-search-input:focus { border-color: rgba(217, 70, 239, 0.7); }
.game-popup .game-popup-search-clear { background: rgba(45, 26, 92, 0.9); color: var(--earth-text-muted); }
.game-popup .game-popup-search-count { color: var(--earth-text-muted); }

/****************************************************************************************************************************************
SweetAlert z 오버라이드 — 기본 1060이라 게임팝업(40000) 뒤에 로딩/오류창이 깔리는 문제. W16(999999)·W17(--z-alert) 선례 패턴.
!important = swal 자체 스타일시트 로드 순서와 무관하게 보장
*****************************************************************************************************************************************/
.swal2-container { z-index: var(--z-alert, 100000) !important; }
