@charset "utf-8";

/****************************************************************************************************************************************
W15 전용 팝업 CSS (W17 popup.css 기반, W15 다크골드 색상 #ffb100 / #1a1510)
— _Shared/Shared/_NoticePopup.cshtml + _GamePopup.cshtml + notice-popup.js + game.js 의 마크업/계약 유지
— 다른 스킨에 영향 없음 (Site:Presentation == "W15" 일 때만 _Layout 에서 로드)

포함 클래스:
  .notice-popup 트리      ← _NoticePopup 마크업
  .game-popup 트리        ← _Shared/_GamePopup 마크업
  .row-popup-* 트리       ← notice-popup.js 의 separate 모드 (가로 일렬)
*****************************************************************************************************************************************/


/****************************************************************************************************************************************
공지 팝업 (notice-popup) — W15 Dark Gold
*****************************************************************************************************************************************/
.notice-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}
.notice-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-popup-inner {
    position: relative;
    width: 500px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 80px);
    background: #1a1510;
    border: 1px solid rgba(255, 177, 0, 0.3);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.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, 20, 16, 0.9);
    border: 1px solid rgba(255, 177, 0, 0.4);
    border-radius: 50%;
    color: #cccccc;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.notice-popup-close:hover {
    background: rgba(255, 177, 0, 0.18);
    border-color: #ffb100;
    color: #ffb100;
}
.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: #ffb100;
    background: #2c2c2c;
    border-bottom: 1px solid rgba(255, 177, 0, 0.25);
}
.notice-popup-body {
    padding: 20px;
    min-height: 240px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    background: #1a1510;
}
.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: #e0e0e0;
    word-break: break-word;
    white-space: pre-wrap;
}
.notice-popup-pagination {
    padding: 10px 0;
    text-align: center;
    background: #2c2c2c;
}
.notice-popup-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: rgba(255, 177, 0, 0.4);
    opacity: 1;
}
.notice-popup-pagination .swiper-pagination-bullet-active {
    background: #ffb100;
    box-shadow: 0 0 6px rgba(255, 177, 0, 0.5);
}
.notice-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 177, 0, 0.25);
    background: #2c2c2c;
}
.notice-popup-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cccccc;
    cursor: pointer;
}
.notice-popup-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ffb100;
    cursor: pointer;
}
.notice-popup-close-btn {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1510;
    background: linear-gradient(135deg, #ffb100 0%, #bb773b 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 177, 0, 0.32);
    transition: 0.2s;
}
.notice-popup-close-btn:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .notice-popup-inner { width: 92vw; max-height: 85dvh; }
    .notice-popup-body { max-height: calc(85dvh - 120px); }
}


/****************************************************************************************************************************************
게임 팝업 (game-popup) — W15 Dark Gold
*****************************************************************************************************************************************/
.game-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    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: #1a1510;
    border: 1px solid rgba(255, 177, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.game-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2c2c2c;
    border-bottom: 1px solid rgba(255, 177, 0, 0.25);
}
.game-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffb100;
    letter-spacing: 0.02em;
}
.game-popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 20, 16, 0.9);
    border: 1px solid rgba(255, 177, 0, 0.4);
    border-radius: 50%;
    color: #cccccc;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.game-popup-close:hover {
    background: rgba(255, 177, 0, 0.18);
    border-color: #ffb100;
    color: #ffb100;
}
.game-popup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #1a1510;
}
.game-popup-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #cccccc;
}
.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);
    /* 🔴 타일 비율 — 업체요청 2026-10-16(크라운 "이미지 비율을 맞춰달라").
       썸네일 규격이 **벤더마다 다르다**(실측: 프라그마틱 325x234=1.39 / PG소프트 1024x1024 ·
       하바네로 300x300 · 넷엔트 550x550 = 1.0). 하나로 딱 맞출 수는 없어서
       **가장 흔한 정사각(1:1)** 에 맞추고, 남는 벤더는 아래 object-fit 으로 비율을 지킨다.
       (3/4 세로형이던 시절엔 1.39 가로 이미지를 1.85배 세로로 늘려 그리고 있었다.) */
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #2c2c2c;
    border: 1px solid rgba(255, 177, 0, 0.2);
    transition: 0.2s;
}
.game-popup-list > li:hover {
    border-color: #ffb100;
    box-shadow: 0 6px 20px rgba(255, 177, 0, 0.28);
}
.game-popup-list > li > img {
    width: 100%;
    height: 100%;
    /* 🔴 contain = 비율 유지. cover 는 잘리고(디자인팀이 예전에 거절), 미지정(fill)은 늘어난다.
       object-position:top 으로 그림을 위에 붙여, 남는 아래 여백이 그대로 게임명 자리가 된다. */
    object-fit: contain;
    object-position: top;
    display: block;
}
/* 🔴 게임명 — 선택자가 `> p` 였는데 game.js 가 그리는 건 `<span class="game-name">` 이라
   **아무것도 매칭되지 않아 이름이 통째로 안 보였다**(업체신고 2026-10-16, 크라운).
   W06 만 `p` 였고 ST10·W16·W05·W08·W10 등 다른 스킨은 전부 `.game-name` 이다 — 이식 때 어긋난 것.
   데이터는 정상이었다(프라그마틱 700건 실측: gameName·gameNameKo 빈값 0). */
.game-popup-list > li > .game-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px;
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 1024px) {
    .game-popup-list > li { width: calc(100% / 4 - 11.25px); }
}
@media (max-width: 640px) {
    .game-popup.active { padding: 20px 10px; }
    .game-popup-list > li { width: calc(100% / 3 - 10px); }
}


/****************************************************************************************************************************************
row-popup 가로 일렬 모드 (notice-popup.js separate 모드) — W15 Dark Gold
SET_SYSTEM_OPEN.POPUP_SEPARATE='Y' + 데스크탑 ≥1280px일 때 활성화
*****************************************************************************************************************************************/
.row-popup-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 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: #1a1510;
    border: 1px solid rgba(255, 177, 0, 0.3);
    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: #2c2c2c;
    border-bottom: 1px solid rgba(255, 177, 0, 0.25);
}
.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, 20, 16, 0.9);
    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(255, 177, 0, 0.25); }
.row-popup-card-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #1a1510;
}
.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: #2c2c2c;
    border-top: 1px solid rgba(255, 177, 0, 0.25);
}
.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: #bb773b;
    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: #000000; border-color: rgba(255, 177, 0, 0.3); color: #ffe6ac; }
.game-popup .game-popup-search-input:focus { border-color: rgba(255, 177, 0, 0.7); }
.game-popup .game-popup-search-clear { background: #3a3125; color: #ffb100; }
.game-popup .game-popup-search-count { color: #8b8b8b; }
