@charset "utf-8";

/* ── 0. 웹폰트 ── */
@font-face {
    font-family: Pretendard;
    font-style: normal;
    font-weight: 400;
    src: url(font/Pretendard-Regular.woff2) format(woff2),
         url(font/Pretendard-Regular.woff) format(woff);
}
@font-face {
    font-family: Pretendard;
    font-style: normal;
    font-weight: 500;
    src: url(font/Pretendard-Medium.woff2) format(woff2),
         url(font/Pretendard-Medium.woff) format(woff);
}
@font-face {
    font-family: Pretendard;
    font-style: normal;
    font-weight: 600;
    src: url(font/Pretendard-SemiBold.woff2) format(woff2),
         url(font/Pretendard-SemiBold.woff) format(woff);
}
@font-face {
    font-family: Pretendard;
    font-style: normal;
    font-weight: 700;
    src: url(font/Pretendard-Bold.woff2) format(woff2),
         url(font/Pretendard-Bold.woff) format(woff);
}

@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 300;
    src: url("font/Pretendard-Light.woff2") format("woff2"),
         url("font/Pretendard-Light.woff") format("woff");
}
@font-face {
    font-family: "Pretendard";
    font-style: normal;
    font-weight: 800;
    src: url("font/Pretendard-ExtraBold.woff2") format("woff2"),
         url("font/Pretendard-ExtraBold.woff") format("woff");
}

/* ── 1. 토큰 ── */
:root {
    --wrap: 127.6rem;
    --track: #E5E5E5;

    /* 모서리 반경 */
    --r-card:  1rem;
    --r-row:    .8rem;
    --r-chip:   .4rem;
    --r-pill: 99.9rem;
    --min: 36rem;

    /* 글자 크기 */
    --fs-base:   1.7rem;
    --fs-th:     1.6rem;
    --fs-td:     1.7rem;
    --fs-body:   1.9rem;
    --fs-xl:     1.7rem;
    --fs-title:  2rem;
    --fs-btn:    2.2rem;
    --fs-btn-lg: 2.3rem;
    --fs-nav:    3rem;
    --fs-maint:  3.9rem;
    --fs-cta-sm: 4.2rem;
    --fs-cta:    6.1rem;
    
    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;
    --fw-extrabold: 800;

    --font-base: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --gnb-h: 5rem;

    /* 색 */
    --ink:       #2B2C30;
    --ink-2:     #3E3E3E;
    --ink-3:     #5C5C5C;
    --ink-mute:  #4C4C4C;
    --td-ink:    #252525;
    --th-ink:    #5B6583;

    --c-primary: #3661EB;
    --c-tab-on:  #4557C2;
    --c-accent:  #FFF550;

    --bg:        #E5E5E5;
    --surface:   #FFFFFF;
    --line:      #D1D1D1;
}

/* ── 2. 리셋 ── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; font-size: 10px; }

body {
    margin: 0;
    min-width: var(--min);
    font: var(--fw-regular) var(--fs-base) / 1.6 var(--font-base);
    word-break: keep-all;
}

img { max-width: 100%; vertical-align: top; border: 0; }
a { color: inherit; text-decoration: none; }
button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: separate; border-spacing: 0; }
th, td { padding: .1rem; }
h1, h2, h3, h4, p, figure { margin: 0; }

/* hidden 은 클래스의 display 보다 세게 건다 — 안 그러면 [hidden] 이 display 선언에 밀려 보인다 */
[hidden] { display: none !important; }

.blind {
    position: absolute;
    width: .1rem; height: .1rem;
    margin: -.1rem;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 줄이 끊기면 안 되는 묶음 (수량 + 단위 등) */
.nowrap { white-space: nowrap; }

/* ── 3. 래퍼 ── */
.wrap {
    position: relative;
    width: 100%;
    min-width: var(--min);
    max-width: var(--wrap);
    margin: 0 auto;
}
/* PC 본문 좌우 여백 — 최대 10, 남는 폭만큼만 준다 (가로 스크롤이 생기지 않게) */
@media (min-width: 1280px) {
    html:not(.is_win) .wrap {
        max-width: calc(var(--wrap) + 2rem);
        padding-left: clamp(0px, calc((100% - var(--wrap)) / 2), 1rem);
        padding-right: clamp(0px, calc((100% - var(--wrap)) / 2), 1rem);
    }
}

/* ── 4. 푸터 — 한게임 공통 푸터 ── */
.footer { clear: both; background-color: #fff; }
.footer .inner {
    position: relative;
    box-sizing: border-box;
    width: var(--wrap);
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 0 4rem 10.5rem;
}

.footer .logo {
    position: absolute;
    left: 0;
    top: 3.9rem;
    width: 7.7rem;
    height: 1.8rem;
}
.sp_renew_h {
    display: block;
    overflow: hidden;
    line-height: 1000rem;
}
.footer .logo .sp_renew_h {
    width: 7.7rem; height: 1.8rem;
    background: url("https://hangame-images.toastoven.net/hangame/poker/renew/common/logo-nhn_v3.png") no-repeat;
}

.footer .logo_row { display: contents; }
.footer .logo_toggle { display: none; }

.footer .group_link { overflow: hidden; font-size: 0; }
.footer .group_link .link_item { position: relative; float: left; margin-right: 3.3rem; }
.footer .group_link .link_item a { color: #32332E; font-size: 1.6rem; line-height: 2.1rem; }
.footer .link_item.is_mo { display: none; }
.footer .group_link .link_item .point { color: #32332E !important; font-weight: var(--fw-bold); }

.footer .group_info { margin-top: 2.4rem; color: #757774; font-size: 1.6rem; line-height: 2.4rem; }
.footer .group_info_box { display: flex; flex-wrap: wrap; align-items: center; }
.footer .group_info a { color: #757774; text-decoration: underline; }
.footer .group_info_box + .group_info_box { margin-top: .4rem; }
.footer .group_info_box:last-child { margin-top: .2rem; }
.footer .group_info_bar::after {
    content: "";
    display: inline-block;
    width: .1rem; height: .8rem;
    margin: 0 .6rem 0 .8rem;
    background-color: #000;
    opacity: .09;
}

.footer .copyright { margin-top: 1.8rem; color: #757774; font-size: 1.6rem; line-height: 1.9rem; }

.footer .grup_grade { position: absolute; right: 0; top: 4rem; }
/* 등급 마크는 시안 크기 그대로 (법적 고지라 더 줄이지 않는다) */
.footer .grup_grade .grade { margin-bottom: 1.7rem; }
.footer .grup_grade .certification { float: right; margin-left: 2.1rem; }
.footer .grup_grade .certification.case1 { width: 5.7rem; height: 6.8rem; }
.footer .grup_grade .certification.case2 { width: 15.2rem; height: 6.6rem; }
.footer .grup_grade .grade img { width: 37.8rem; height: 6.2rem; max-width: none; }
.footer .grup_grade .certification img { width: 100%; height: 100%; }

@media (max-width: 1279px) {
    
    /* ── 푸터 (모바일·태블릿) ── */
    html:not(.is_pc) .footer{ border-top: .1rem solid #F2F2F2; }
    html:not(.is_pc) .footer .inner{ display: flex; flex-direction: column; width: 100%; padding: 4.5rem 2.4rem 4.1rem; }
    html:not(.is_pc) .footer .group_link{ order: 1; display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 2.5rem; }
    html:not(.is_pc) .footer .logo_row{ order: 2; display: flex; align-items: flex-start; gap: .7rem; }
    html:not(.is_pc) .footer .group_info{ order: 4; margin-top: 2.4rem; font-size: 1.2rem; line-height: 1.7rem; color: #5C5C5C; }
    html:not(.is_pc) .footer .group_info_box{ display: block; }
    html:not(.is_pc) .footer .group_info_box + .group_info_box,
    html:not(.is_pc) .footer .group_info_box:last-child{ margin-top: 1rem; }
    html:not(.is_pc) .footer .group_info_box > *{ display: block; }
    html:not(.is_pc) .footer .group_info_box > * + *{ margin-top: 1rem; }
    html:not(.is_pc) .footer .group_info_bar::after{ content: none; }
    html:not(.is_pc) .footer .group_info a{ color: #5C5C5C; }
    html:not(.is_pc) .footer .copyright{ order: 5; margin-top: 1rem; font-size: 1.2rem; line-height: 1.7rem; color: #5C5C5C; }
    html:not(.is_pc) .footer .grup_grade{ display: none; }

    html:not(.is_pc) .footer .group_link .link_item{ position: relative; margin-right: 0; padding-right: 2.35rem; }
    html:not(.is_pc) .footer .group_link .link_item a{ font-size: 1.1rem; line-height: 1.4rem; letter-spacing: -.01em; color: #171717; }
    html:not(.is_pc) .footer .group_link .link_item .point{ color: #171717 !important; }
    html:not(.is_pc) .footer .link_item::after{
        content: "";
        position: absolute;
        right: 1.1rem; top: 50%;
        width: .1rem; height: 1rem;
        margin-top: -.5rem;
        background: #D1D1D1;
    }
    html:not(.is_pc) .footer .link_item.is_nhn{ display: none; }
    html:not(.is_pc) .footer .link_item.is_mo{ display: block; }
    html:not(.is_pc) .footer .group_link .link_break{ flex: 0 0 100%; height: 1.45rem; padding: 0; }
    html:not(.is_pc) .footer .link_break::after,
    html:not(.is_pc) .footer .link_item:has(+ .link_break)::after,
    html:not(.is_pc) .footer .link_item:last-child::after{ content: none; }

    html:not(.is_pc) .footer .logo{ position: static; width: 6.3rem; height: 1.5rem; margin: 0 0 0 -.1rem; }
    html:not(.is_pc) .footer .logo .sp_renew_h{ display: block; width: 6.3rem; height: 1.5rem; background: no-repeat 0 0 / 100% 100% url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/logo_nhn_mo.png); }
    html:not(.is_pc) .footer .logo_toggle{
        display: block;
        position: relative;
        flex: 0 0 auto;
        width: 1.1rem; height: .7rem;
        margin-top: .4rem;
        padding: 0;
        border: 0;
        background: no-repeat 0 0 / 100% 100% url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/ico_foot_toggle.png);
        cursor: pointer;
        transition: transform .2s;
    }
    html:not(.is_pc) .footer .logo_toggle::after{ content: ""; position: absolute; inset: -1.4rem -1.4rem -1.4rem -1rem; }
    html:not(.is_pc) .footer .logo_toggle[aria-expanded="true"]{ transform: rotate(180deg); }
    html:not(.is_pc) .footer .group_info,
    html:not(.is_pc) .footer .copyright{ display: none; }
    html:not(.is_pc) .footer.is-open .group_info,
    html:not(.is_pc) .footer.is-open .copyright{ display: block; }
}

/* ── 한게임 공통 GNB — 폭은 스크립트의 gnbBasicWidth 가 정한다. CSS 로 덮지 않는다 ── */
@media (max-width: 1279px) {
    html:not(.is_pc) #hangame_gnb { display: none; }
}

/* 딤 — 팝업 공용 */
.pop_dim {
    position: fixed;
    z-index: 99;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

/* ── 드로어 메뉴 (모바일·태블릿) ── */
.menu {
    position: fixed;
    z-index: 101;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    width: 25.1rem;
    max-width: 100%;
    background: #fff;
    color: #1F1F1F;
}
.menu_head {
    position: relative;
    flex: 0 0 auto;
    height: 6.3rem;
    padding-left: 2.3rem;
    border-bottom: .1rem solid #C9C9C9;
}
.menu_head strong {
    display: block;
    font-size: 2.3rem;
    font-weight: var(--fw-bold);
    line-height: 6.2rem;
    letter-spacing: -.02em;
}
.menu_head strong a { display: inline-block; height: 6.2rem; }
.menu_logo {
    display: block;
    width: 9.6rem; height: 2.3rem;
    margin-top: 2rem;
    background: no-repeat 0 0 / 100% 100% url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/logo_hpt_menu.png);
}
.menu_close {
    position: absolute;
    top: 1.1rem; right: 1.6rem;
    width: 4rem; height: 4rem;
    background: no-repeat 50% 50% / 2rem 2rem url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/ico_menu_close.png);
}
.menu_nav { flex: 1 1 auto; overflow-y: auto; padding-top: 1.2rem; }
.menu_nav a {
    display: block;
    height: 5.5rem;
    padding-left: 2.3rem;
    font-size: 2.1rem;
    font-weight: var(--fw-semibold);
    line-height: 5.5rem;
    letter-spacing: -.02em;
    color: #1F1F1F;
}
.menu_nav .menu_hpt { background: no-repeat 2.3rem 1.4rem / 9.6rem 2.3rem url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/logo_hpt_menu.png); }
.menu_app {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex: 0 0 auto;
    padding: 1.6rem 2.3rem 2.8rem;
    border-top: .1rem solid #DDDDDD;
}
.menu_app img { width: 5.1rem; height: 5.1rem; }
.menu_app b  { display: block; font-size: 2rem; font-weight: var(--fw-bold); line-height: 2.4rem; letter-spacing: -.02em; color: #1F1F1F; }
.menu_app em { display: block; margin-top: .1rem; font-size: 1.8rem; font-weight: var(--fw-semibold); line-height: 2.2rem; font-style: normal; letter-spacing: -.02em; color: #676D87; }

/* ── 스크롤바 — 스크롤이 생기는 영역에 마크업에서 .scroll_y 를 붙인다 (선택자를 덧붙이지 말 것) ── */
.scroll_y { overflow-y: auto; }
.scroll_y::-webkit-scrollbar { width: .6rem; }
/* 위·아래 화살표 버튼 제거 — :start / :end 까지 지워야 크롬이 안 그린다 */
.scroll_y::-webkit-scrollbar-button,
.scroll_y::-webkit-scrollbar-button:start,
.scroll_y::-webkit-scrollbar-button:end { display: none; width: 0; height: 0; }
.scroll_y::-webkit-scrollbar-corner,
.scroll_y::-webkit-scrollbar-track { background: transparent; }
.scroll_y::-webkit-scrollbar-thumb { border-radius: .3rem; background: var(--track); }

/* scrollbar-width 를 같이 주면 크롬이 ::-webkit-scrollbar 를 무시한다 — 파이어폭스에만 준다 */
@supports not selector(::-webkit-scrollbar) {
    .scroll_y { scrollbar-width: thin; scrollbar-color: var(--track) transparent; }
}

/* 모바일·태블릿은 스크롤바를 그리지 않는다 (전부에 건다) */
@media (max-width: 1279px) {
    /* html 도 숨긴다 — 안 숨기면 세로 막대가 폭을 먹어 가로 스크롤이 생긴다 */
    html:not(.is_pc),
    html:not(.is_pc) * { scrollbar-width: none; -ms-overflow-style: none; }
    html:not(.is_pc)::-webkit-scrollbar,
    html:not(.is_pc) *::-webkit-scrollbar { width: 0; height: 0; }
    html:not(.is_pc) .scroll_y { -webkit-overflow-scrolling: touch; }
}

/* ── 공용 페이징 ── */
.paging {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 5rem;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--ink-mute);
}
.paging button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 10.6rem;
    height: 5rem;
    border: .1rem solid #B9B9B9;
    font-size: 2.5rem;
    color: var(--ink-mute);
}
.paging button::before,
.paging button::after {
    content: "";
    width: .7rem; height: 1.4rem;
    background: no-repeat 50% 50% / .7rem 1.4rem;
}
.paging .btn_prev::before { background-image: url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/ico_paging_prev.png); }
.paging .btn_prev::after,
.paging .btn_next::before { display: none; }
.paging .btn_next::after  { background-image: url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/ico_paging_next.png); }
.paging .paging_now { width: 25.5rem; text-align: center; }
.paging button:disabled { opacity: .4; }

/* ── 더 보기 (common.js [data-more]) — 감싸는 상자에 position: relative 가 있어야 한다 ── */
.btn_more {
    position: absolute;
    z-index: 2;
    right: 2.4rem; bottom: 1.5rem;
    width: 4.5rem; height: 4.5rem;
    background: no-repeat 50% 50% / contain url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/btn_list_more.png);
}

/* ── 맨 위로 (common.js [data-goto-top]) ── */
.goto_top {
    position: fixed;
    z-index: 20;
    right: max(1.8rem, calc(50% - var(--wrap) / 2));
    bottom: 4rem;
    width: 5.2rem; height: 5.2rem;
    background: no-repeat 50% 50% / contain url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/btn_goto_top.png);
    /* common.js 가 .is_on 을 붙일 때만 보인다 */
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.goto_top.is_on {
    opacity: 1;
    visibility: visible;
}
/* 맨 위로 (모바일·태블릿) */
@media (max-width: 1279px) {
    html:not(.is_pc) .goto_top {
        right: 1.8rem; bottom: 1rem;
        width: 4.5rem; height: 4.5rem;
        border: .1rem solid #D1D1D1;
        border-radius: .2rem;
        background: #fff no-repeat 50% 50% / 1.8rem 1.8rem url(https://hangame-images.toastoven.net/hangame/aapokerinapp/event/main-page/common/img/ico_goto_top.png);
        box-shadow: 0 .2rem .3rem rgba(0, 0, 0, .08);
        transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
        pointer-events: none;
    }
    html:not(.is_pc) .goto_top.is_on { pointer-events: auto; }
}
