/* ============================================================
   st02a(마스터) 슬롯 게임목록 팝업(#gamePopup) 스타일 — 라이트/레드 테마.
   구조는 STX _GamePopup 계약(game.js renderGameList 출력)과 동일:
     .game-popup > .game-popup-inner > .game-popup-header(title+close)
       + .game-popup-body(.game-popup-loading + ul.game-popup-list > li(img + .game-name + .game-hover>.play-icon))
   프리마(다크/금색) 구조를 이식하되 st02a 라이트(#fff 패널) + 레드(#cc2124) 액센트로 재테마.
   🔴 토큰(var(--earth-*)/--z-*) 의존 제거(st02a 미정의) — 명시 색상/명시 z-index(로그인 50000 위 50001).
   ============================================================ */
.game-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 50001;
    background: rgba(0, 0, 0, 0.7);
    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: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.game-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #cc2124;
}
.game-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.02em;
}
.game-popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.game-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.game-popup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f7;
}
.game-popup-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #888888;
}
.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;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #e8e8ec;
    border: 1px solid #e0e0e0;
    transition: 0.2s;
}
.game-popup-list > li:hover {
    border-color: #cc2124;
    box-shadow: 0 6px 20px rgba(204, 33, 36, 0.25);
}
.game-popup-list > li > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-popup-list > li > .game-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    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: #888888;
    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(0, 0, 0, 0.55);
    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: linear-gradient(135deg, #f2585c, #cc2124);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transform: scale(0.8);
    box-shadow: 0 4px 15px rgba(204, 33, 36, 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); }
}
