@charset "utf-8";

/****************************************************************************************************************************************
ST10 layout — 헤더/tnb/nav/contents/footer/모바일 메뉴
(ST02 layout.css 구조 기반, Earth 토큰으로 색상 치환)
*****************************************************************************************************************************************/

/****************************************************************************************************************************************
공통부분
*****************************************************************************************************************************************/
body { font-size: 14px; font-weight: 400; color: var(--color); background: var(--body-bg); }
.contents { position: relative; margin: 110px auto 0 auto; padding: 0; width: 100%; text-align: center; }
.container { position: relative; margin: 0 auto; padding: 15px 15px; width: 1360px; text-align: center; }
.main-container { position: relative; margin: 0 auto; padding: 0; width: 100%; text-align: center; }
.con-container { position: relative; margin: 0 auto; padding: 20px 15px; width: 1360px; text-align: center; }

/****************************************************************************************************************************************
header 시작
*****************************************************************************************************************************************/
header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-fab); width: 100%; background: var(--bg-layer1); }

/****************************************************************************************************************************************
tnb 시작
*****************************************************************************************************************************************/
.tnb { position: relative; z-index: var(--z-fab); margin: 0 auto; padding: 0; width: 100%; overflow: visible; }
.tnb-inner { position: relative; margin: 0 auto; padding: 0 15px; width: 1360px; height: 56px; display: flex; justify-content: space-between; align-items: center; overflow: visible; }

/* logo */
.top-logo { position: relative; text-align: left; }
.top-logo > img { height: 40px; cursor: pointer; }

/* tnb-left: 로고 + 언어 선택 그룹 (왼쪽 정렬) */
.tnb-left { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* before-btns */
.tnb-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; overflow: visible; }
.before-btns { display: flex; justify-content: flex-end; gap: 10px; }
.before-btns > button { margin: 0; padding: 8px 20px; min-width: 120px; font-size: 16px; font-weight: 600; }
.hd-login { color: var(--red-color); background: transparent; border: 1px var(--red-border) solid; border-radius: 25px; }
.hd-join,
.hd-logout { color: var(--white-color); background: var(--red-bg); border: 1px transparent solid; border-radius: 25px; }

/* lang-dropdown */
.lang-dropdown { position: relative; z-index: calc(var(--z-fab) + 1); flex: 0 0 auto; }
.btn-lang { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 42px; height: 34px; color: var(--secondary) !important; background: var(--bg-layer1); border: 1px solid var(--border3-color); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn-lang > .current-flag { font-size: 20px; line-height: 1; }
.btn-lang > i,
.btn-lang > svg { font-size: 10px; color: var(--secondary); transition: transform 0.2s; }
.btn-lang.active > i,
.btn-lang.active > svg { transform: rotate(180deg); }
.lang-menu { display: none; position: absolute; top: 38px; right: 0; z-index: calc(var(--z-fab) + 2); padding: 5px; width: auto; min-width: 122px; background: var(--bg-layer1-solid); border: 1px solid var(--border1-color); border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.lang-menu > a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--color); border-radius: 4px; }
.lang-menu > a > .flags { width: 20px; line-height: 1; }
.lang-menu > a > .country-name { min-width: 0; text-align: left; white-space: nowrap; }

/* after-tnb */
.after-tnb { display: block; position: relative; }
ul.tnb-info { position: relative; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
ul.tnb-info > li { font-size: 15px; font-weight: 500; color: var(--color); }
ul.tnb-info > li > b { font-size: 15px; font-weight: 600; }
ul.tnb-info > li > span { margin-left: 3px; font-size: 15px; font-weight: 600; color: var(--earth-primary); }
ul.tnb-info > li > button { margin: 0; padding: 5px 15px; font-weight: 600; }
ul.tnb-info > li > i { margin-right: 4px; font-size: 16px; color: var(--earth-primary); }
ul.tnb-info > li.tnb-message { cursor: pointer; }
ul.tnb-info > li.tnb-action > button { color: var(--white-color); background: var(--th-bg); border-radius: 5px; cursor: pointer; border: 1px solid rgba(0, 212, 170, 0.3); }

@media (hover: hover) and (pointer: fine) {
	.hd-login:hover { color: var(--red-color-hover); border-color: var(--red-color-hover); }
	.hd-join:hover,
	.hd-logout:hover { filter: brightness(115%); }
    .btn-lang:hover { border-color: var(--earth-primary); }
    .lang-menu > a:hover { background: var(--earth-light); }
	ul.tnb-info > li.tnb-action > button:hover { background: var(--earth-primary); color: #0a1628; filter: brightness(110%); }
	ul.tnb-info > li.tnb-message:hover > span { text-decoration: underline; }
}

/****************************************************************************************************************************************
nav 시작
*****************************************************************************************************************************************/
.nav { position: relative; margin: 0 auto; padding: 0; width: 100%; text-align: center; background: var(--bg-layer3); }
.nav-inner { position: relative; margin: 0 auto; padding: 0 15px; width: 1360px; height: 100%; text-align: center; }

ul.main-menu { position: relative; margin: 0; padding: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; }
ul.main-menu > li { position: relative; margin: 0; padding: 0; }
ul.main-menu > li > a { position: relative; display: block; width: 100%; line-height: 50px; padding: 0 12px; font-size: 18px; font-weight: 500; color: var(--white-color); }
ul.main-menu > li > a::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: 3px; background: var(--earth-gradient); }
ul.main-menu > li > a:hover { opacity: 0.85; }
ul.main-menu > li > a:hover::before { z-index: 1; }
ul.main-menu > li.active > a { color: var(--earth-accent); }
ul.main-menu > li.active > a::before { z-index: 1; background: var(--earth-gradient); }

ul.sub-menu { display: none; position: absolute; top: 50px; left: -16px; z-index: var(--z-tooltip); margin: 0 auto; padding-top: 10px; width: 180px; text-align: center; }
ul.sub-menu::after { content: ""; position: absolute; top: 0; left: 43%; border: 5px solid transparent; border-bottom-color: var(--earth-primary); }
ul.sub-menu > li { display: block; float: none; width: 100%; line-height: 35px; }
ul.sub-menu > li > a { display: block; width: 100%; line-height: 45px; font-weight: 500; color: var(--white-color); background: var(--earth-dark); border-bottom: 1px solid rgba(0, 212, 170, 0.2); }
ul.sub-menu > li > a:hover,
ul.sub-menu > li > a.active { background: var(--earth-light); color: var(--earth-primary); }

ul.main-menu > li:hover ul.sub-menu { display: block; }

/* pc일때 hid */
.mo-bar { display: none; }

/****************************************************************************************************************************************
footer 시작
*****************************************************************************************************************************************/
footer { position: relative; margin: 0 auto; padding: 0; width: 100%; background: var(--bg-layer3); }
.ftTop-inner { position: relative; margin: 0 auto; padding: 0 15px; width: 100%; text-align: center; border-top: 1px solid rgba(0, 212, 170, 0.15); border-bottom: 1px solid rgba(0, 212, 170, 0.15); }
.ft-inner { position: relative; margin: 0 auto; padding: 0 15px; width: 1360px; height: 100%; text-align: center; }

/* ft-brand */
.ft-brand { position: relative; margin: 0 auto; padding: 23px 15px; width: 1360px; overflow: hidden; }
.ft-brand > .swiper-wrapper { transition-timing-function: linear !important; }
.ft-brand img { filter: brightness(0.9) contrast(0.9); opacity: 0.85; }

/* ft-bottom */
.ft-bottom { position: relative; margin: 0; padding: 30px 0; width: 100%; display: flex; justify-content: center; }
.ft-info { position: relative; flex: 2; padding-right: 50px; display: flex; flex-direction: column; align-items: flex-start; }
/* 로고 가로/세로 어느 쪽이든 길어지지 않도록 양쪽 캡 + 비율 유지.
   wide(landscape) 로고는 max-width 에서, square/portrait 로고는 max-height 에서 캡 적용. */
.ft-info > img { max-width: 180px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.ft-info > p { margin: 30px auto 0 auto; text-align: left; color: var(--secondary); }

.ft-bottom dl { position: relative; flex: 1; }
.ft-bottom dt { position: relative; margin-bottom: 15px; padding-bottom: 10px; font-size: 15px; font-weight: bold; text-align: left; color: var(--earth-primary); font-family: 'Orbitron', sans-serif; letter-spacing: 0.03em; }
.ft-bottom dt::after { content: ''; display: block; position: absolute; left: 0; bottom: 0; z-index: 1; width: 40px; height: 3px; background: var(--earth-gradient); }
.ft-bottom dd { line-height: 1.7; font-weight: 500; color: var(--secondary); text-align: left; cursor: pointer; }
.ft-bottom dd:hover { color: var(--earth-accent); }

.ft-copyright { position: relative; margin: 0 auto; padding: 15px 0; width: 100%; text-align: center; font-weight: 500; color: var(--secondary); border-top: 1px solid rgba(0, 212, 170, 0.1); }

/* 모바일 ft 메뉴 */
/* 데스크톱에서 모바일 전용 컴포넌트 숨김 (모바일 미디어쿼리 안에서만 활성화) */
.mobile-bottom-nav,
.slide-menu,
.slide-menu-overlay { display: none; }

/****************************************************************************************************************************************
미디어쿼리문 시작
*****************************************************************************************************************************************/
@media (max-width: 1400px) {
    .tnb-inner,
    .nav-inner,
    .container,
    .con-container,
    .ft-inner,
    .ft-brand { width: 100%; }
}

@media (max-width: 992px) {
    ul.main-menu > li > a { font-size: 16px; }
    .ft-info { padding-right: 30px; }
    .ft-info > img { max-width: 140px; max-height: 50px; }
    .ft-info > p { margin: 10px 0 auto 0; font-size: 12px; }
    .ft-bottom dl { flex: 1.5; }
}

@media (max-width: 797px) {
    header { position: relative; z-index: var(--z-sidebar); }
    /* tnb */
    .tnb { position: fixed; left: 0; right: 0; top: 0; width: 100%; z-index: calc(var(--z-sidebar) + 1); background: var(--bg-layer1); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(0, 212, 170, 0.2); }
    .tnb-inner { padding: 0 6px; height: 60px; }
    .top-logo { flex: 0 0 auto; }
    .top-logo > img { max-width: 136px; height: 34px; }
    .tnb-left { gap: 8px; }
    .tnb-right { flex: 1 1 auto; gap: 6px; min-width: 0; }
    .lang-dropdown { flex: 0 0 40px; }
    .btn-lang { width: 40px; height: 32px; }
    .btn-lang > .current-flag { font-size: 18px; }
    .lang-menu { top: 34px; }

    .after-tnb { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    ul.tnb-info { gap: 6px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
    ul.tnb-info > li { display: inline-flex; align-items: center; min-width: 0; font-size: 13px; }
    /* 모바일 (≤797px): 화면 폭에 따라 콘텐츠 자연 확장 — 닉네임/잔액/포인트가 좁은 폭에 강제 절삭되지 않도록.
       닉네임만 매우 긴 경우 (16자 초과) ellipsis. 잔액/포인트는 자기 크기 보장. 좁은 화면(≤560px) 부터 다시 제한됨. */
    ul.tnb-info > li:first-child { flex: 0 1 auto; min-width: 0; max-width: 160px; overflow: hidden; }
    ul.tnb-info > li > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
    ul.tnb-info > li > span { font-size: 13px; }
    ul.tnb-info > li > i { font-size: 14px; }
    ul.tnb-info > li.tnb-message { flex: 0 0 auto; }
    ul.tnb-info > li:has(#user-comp) { flex: 0 0 auto; min-width: 0; overflow: hidden; }
    ul.tnb-info > li:has(#user-balance) { flex: 0 0 auto; min-width: 0; overflow: hidden; }
    ul.tnb-info > li:has(#user-balance) > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    ul.tnb-info > li.tnb-action { display: none; }
    ul.tnb-info > li:has(.hd-logout) { flex: 0 0 auto; }
    ul.tnb-info .hd-logout { padding: 0 11px; min-width: 64px; height: 32px; font-size: 13px; border-radius: 18px; }

    .before-btns { gap: 5px; }
    .before-btns > button { padding: 0 15px; min-width: auto; height: 30px; font-size: 14px; }

    /* nav */
    .nav { position: fixed; left: -100%; top: 60px; bottom: 0; z-index: var(--z-sidebar) !important; width: 100%; height: auto; min-height: calc(100dvh - 60px); background: var(--bg-layer1-solid) !important; visibility: hidden; opacity: 0; transition: 0.2s; isolation: isolate; }
    .nav.active { left: 0; width: 100%; visibility: visible; opacity: 1; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
    .nav-inner { padding: 10px 10px 74px 10px; width: 100%; height: 100%; min-height: calc(100dvh - 60px); overflow-y: auto; background: var(--bg-layer1-solid); }

    ul.main-menu { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px; }
    ul.main-menu > li { width: 100%; }
    ul.main-menu > li > a { padding: 0 20px; line-height: 44px; text-align: left; font-size: 15px; color: var(--white-color); background: rgba(26, 58, 92, 0.4); border: 1px solid rgba(0, 212, 170, 0.15); border-radius: 10px; }
    ul.main-menu > li.active > a { color: #0a1628; background: var(--earth-gradient); border-color: transparent; }
    ul.main-menu > li.active > a::before { display: none; }
    ul.main-menu > li > a::before,
    ul.main-menu > li > a:hover::before,
    ul.main-menu > li > a.active::before { display: none; }
    ul.main-menu > li > a:hover { opacity: 1; }

    ul.sub-menu { position: relative; top: unset; left: unset; z-index: unset; padding: unset; width: 100%; }
    ul.sub-menu::after { display: none; }
    ul.sub-menu > li > a { margin-top: 5px; padding: 0 20px; line-height: 40px; text-align: left; font-size: 15px; color: var(--white-color); background: var(--earth-light); border: 1px solid rgba(0, 212, 170, 0.2); border-radius: 10px; }

    /* contents */
    .contents { margin: 60px auto 0 auto; padding-bottom: 60px; }
    .con-container { padding: 0 10px; }

    /* footer */
    footer { display: none; }

    /* ────────────────────────────────────────────────────────────────────
       모바일 하단 네비 (Downloads/st10-a 신규 디자인)
       하단 고정 5개 + 햄버거 클릭 시 슬라이드업 메뉴
       ────────────────────────────────────────────────────────────────────*/
    .mobile-bottom-nav {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0;
        z-index: calc(var(--z-sidebar) + 1) !important;
        width: 100%; padding: 0;
        background: rgba(10, 22, 40, 0.85);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 212, 170, 0.25);
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.5);
    }
    .mobile-bottom-nav .nav-items {
        display: flex; justify-content: space-between; align-items: center;
        width: 100%; height: 60px; padding: 8px 0;
    }
    /* 좌/우 그룹(flex:1) 사이에 center-action(고정폭) → 항목 숨겨도 중앙버튼 항상 정중앙.
       그룹 안 .nav-item 은 flex:1 이라 전부 표시 시 항목 폭이 기존(공통 1/N)과 동일. */
    .mobile-bottom-nav .nav-side {
        flex: 1; display: flex; align-items: center; min-width: 0;
    }
    .mobile-bottom-nav .nav-item {
        flex: 1; display: flex; flex-direction: column;
        justify-content: center; align-items: center; gap: 4px;
        color: var(--earth-text-muted, #8fa3bf);
        text-decoration: none; cursor: pointer;
        font-size: 11px; font-weight: 600;
        transition: color 0.2s ease;
    }
    .mobile-bottom-nav .nav-item .nav-icon { font-size: 18px; line-height: 1; }
    .mobile-bottom-nav .nav-item .nav-label { font-size: 11px; }
    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover { color: var(--earth-primary); }
    .mobile-bottom-nav .nav-item.center-action {
        position: relative; width: 56px; height: 56px; flex: 0 0 56px;
        border-radius: 50%;
        background: var(--earth-gradient);
        color: var(--earth-dark);
        box-shadow: 0 6px 18px rgba(0, 212, 170, 0.45);
        transform: translateY(-14px);
    }
    .mobile-bottom-nav .nav-item.center-action .nav-icon { font-size: 22px; color: var(--earth-dark); }
    .mobile-bottom-nav .nav-item.center-action.active,
    .mobile-bottom-nav .nav-item.center-action:hover { color: var(--earth-dark); }

    /* ────────────────────────────────────────────────────────────────────
       슬라이드 메뉴 (햄버거 클릭 시 하단에서 슬라이드업)
       ────────────────────────────────────────────────────────────────────*/
    .slide-menu-overlay {
        display: block;
        position: fixed; inset: 0;
        z-index: calc(var(--z-sidebar) + 2);
        background: rgba(0, 0, 0, 0.6);
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .slide-menu-overlay.active { opacity: 1; visibility: visible; }

    .slide-menu {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0;
        z-index: calc(var(--z-sidebar) + 3);
        max-height: 75vh; overflow-y: auto;
        background: var(--earth-darker, #050d1a);
        border-top: 1px solid var(--earth-primary);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .slide-menu.active { transform: translateY(0); }

    .slide-menu-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    }
    .slide-menu-header h3 {
        margin: 0; font-size: 16px; font-weight: 700;
        color: var(--earth-primary);
    }
    .slide-menu-close {
        background: transparent; border: 0; cursor: pointer;
        color: var(--earth-text, #fff); font-size: 18px;
        width: 32px; height: 32px;
        display: flex; align-items: center; justify-content: center;
    }
    .slide-menu-items {
        display: flex; flex-direction: column;
        padding: 8px 0;
    }
    .slide-menu-item {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 14px 20px;
        background: transparent; border: 0; cursor: pointer; text-align: left;
        color: var(--earth-text, #fff); text-decoration: none;
        font-size: 14px; font-weight: 500;
        border-bottom: 1px solid rgba(0, 212, 170, 0.08);
        transition: background 0.2s ease, color 0.2s ease;
    }
    .slide-menu-item:hover,
    .slide-menu-item.active { background: rgba(0, 212, 170, 0.08); color: var(--earth-primary); }
    .slide-menu-item .menu-badge {
        display: inline-block; min-width: 20px; padding: 2px 8px;
        background: var(--earth-primary); color: var(--earth-dark);
        border-radius: 10px; font-size: 11px; font-weight: 700;
        text-align: center; line-height: 1.4;
    }
    .slide-menu-item.btn-logout { color: #ff6b6b; }
    .slide-menu-item.btn-logout:hover { background: rgba(255, 107, 107, 0.08); color: #ff8585; }

    /* 컨텐츠가 하단 nav 에 가리지 않도록 bottom padding */
    .contents { padding-bottom: 80px; }

    /* 해외스포츠 iframe: 모바일 하단 메뉴 상단까지만 차지 (tnb 50 + bo-tit 60 + mo-menu 60 = 170px) */
    .skin-st10-venus .overseas-page .iframe-wrapper { height: calc(100dvh - 170px); min-height: 0; }

    /* 모바일 컨텐츠 영역 좌우 패딩 최소화 (.tnb-inner 는 이미 0 5px) */
    .container, .con-container { padding-left: 3px; padding-right: 3px; }
}

@media (max-width: 560px) {
    /* 쪽지(tnb-message)는 모바일에서도 헤더에 노출 — 모바일 하단 탭바와 함께 접근성 보강.
       포인트(user-comp)는 작은 폭에서 헤더 표시를 양보하고 모바일 탭바의 포인트 항목으로 대체. */
    ul.tnb-info > li:has(#user-comp) { display: none; }
    ul.tnb-info > li:first-child { max-width: 72px; }
    ul.tnb-info > li:has(#user-balance) { flex-basis: 100px; }
}

@media (max-width: 390px) {
    .top-logo > img { max-width: 118px; }
    .tnb-right { max-width: calc(100% - 124px); gap: 4px; }
    ul.tnb-info { gap: 4px; }
    ul.tnb-info > li:first-child { display: inline-flex; max-width: 58px; }
    ul.tnb-info > li:has(#user-balance) { flex-basis: 86px; }
    ul.tnb-info .hd-logout { padding: 0 8px; min-width: 56px; font-size: 12px; }
}
