@charset "utf-8";

/****************************************************************************************************************************************
ST10 game.css — ST02 game.css 베이스 + Earth 다크 테마 조정
(league-tit gradient, bonus-list 배경, cart 밝은 배경 등 ST02의 light-blue 하드코딩을 Earth 톤으로 치환)
*****************************************************************************************************************************************/

/****************************************************************************************************************************************
스포츠 공통
*****************************************************************************************************************************************/
.sport-wrap {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.x-scrollable {
    position: relative;
    margin: 0 auto;
    width: auto;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}
.x-scrollable::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    border-radius: 12px;
}
.x-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.5);
    border-radius: 12px;
}
.x-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 170, 0.8);
}

/****************************************************************************************************************************************
left-스포츠
*****************************************************************************************************************************************/
.left-sport {
    position: relative;
    margin: 0;
    padding: 10px;
    width: calc(100% - 260px);
    height: 100%;
    background: var(--sport-bg);
    border: 1px solid var(--board-sport);
    border-radius: 8px;
}

/* game-cate */
ul.game-cate {
    position: relative;
    margin: 5px auto;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
ul.game-cate > li {
    margin: 0;
    padding: 8px 20px;
    font-weight: 600;
    color: var(--earth-primary);
    background: transparent;
    border: 1px solid var(--earth-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
ul.game-cate > li.active {
    color: #fff;
    background: var(--earth-gradient);
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}
@media (hover: hover) and (pointer: fine) {
    ul.game-cate > li:hover {
        color: #fff;
        background: var(--earth-gradient);
    }
}

/* game-type */
.game-type {
    position: relative;
    margin: 0 auto 20px auto;
    padding: 0;
    width: 100%;
}
ul.game-type-list {
    position: relative;
    margin: 15px 0;
    padding: 0;
    width: 100%;
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    scroll-behavior: smooth;
}
ul.game-type-list > li {
    position: relative;
    min-width: 14%;
}
ul.game-type-list > li > a {
    position: relative;
    margin: 0;
    padding: 0 10px;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--earth-text-muted);
    background: var(--bg-layer1);
    border: 1px solid var(--board-sport);
    border-radius: 6px;
    transition: 0.2s;
}
ul.game-type-list > li > a > svg {
    margin-right: 5px;
    font-size: 18px;
    color: var(--earth-text-muted);
}
ul.game-type-list > li > a > .sport-count {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #fff;
    border-radius: 3px;
    background: var(--th-bg);
}
ul.game-type-list > li.active > a {
    color: #fff;
    background: var(--earth-secondary);
    border-color: var(--earth-secondary);
}
ul.game-type-list > li.active > a > .sport-count {
    color: var(--earth-secondary);
    background: #adcfff;
}
ul.game-type-list > li.active > a > svg { color: #fff; }

@media (hover: hover) and (pointer: fine) {
    ul.game-type-list > li > a:hover {
        color: #fff;
        background: var(--earth-secondary);
        border-color: var(--earth-secondary);
    }
    ul.game-type-list > li > a:hover > svg { color: #fff; }
    ul.game-type-list > li > a:hover > .sport-count {
        color: var(--earth-secondary);
        background: #adcfff;
    }
}

/* sport-bonus */
.sport-bonus {
    position: relative;
    margin: 20px auto;
    padding: 0;
    width: 100%;
}
.bonus-tit {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}
.bonus-tit > h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--earth-text);
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
}
.bonus-tit > span,
.bonus-tit > span > em {
    font-style: normal;
    font-weight: 600;
    color: var(--earth-text-muted);
}

ul.bonus-list {
    position: relative;
    margin: 15px 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
ul.bonus-list > li {
    position: relative;
    margin: 0;
    padding: 10px;
    width: calc(100% / 3 - 10px);
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--earth-text);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
ul.bonus-list > li > span {
    font-size: 14px;
    font-weight: 600;
}
ul.bonus-list > li.bonus1 {
    background: rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 153, 255, 0.3);
}
ul.bonus-list > li.bonus2 {
    background: rgba(143, 163, 191, 0.15);
    border-color: rgba(143, 163, 191, 0.3);
}
ul.bonus-list > li.bonus3 {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.3);
}
ul.bonus-list > li.bonus1 > span.bonus-right { color: var(--earth-secondary); }
ul.bonus-list > li.bonus2 > span.bonus-right { color: var(--earth-text-muted); }
ul.bonus-list > li.bonus3 > span.bonus-right { color: var(--earth-accent); }

ul.bonus-list > li.bonus-on {
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid var(--earth-primary);
}

@media (hover: hover) and (pointer: fine) {
    ul.bonus-list > li:hover {
        background: rgba(0, 212, 170, 0.2);
        border: 1px solid var(--earth-primary);
    }
}

/* sport-pan */
.sport-pan {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.league-tit {
    position: relative;
    margin: 10px auto;
    padding: 0 10px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.6) 0%, rgba(18, 37, 61, 0.8) 50%, rgba(26, 58, 92, 0.6) 100%);
    border-top: 1px solid rgba(0, 212, 170, 0.15);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.league-tit:hover {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.8) 0%, rgba(18, 37, 61, 1) 50%, rgba(26, 58, 92, 0.8) 100%);
    border-color: rgba(0, 212, 170, 0.3);
}
.left-tit {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}
.left-tit > .ball-img { width: 22px; }
.left-tit > .flag-img { height: 22px; }
.left-tit > span {
    font-weight: 600;
    color: var(--earth-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.mo-time { display: none; }

/* league-list */
ul.league-list {
    position: relative;
    margin: 0 auto;
    padding: 3px 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--bg-layer1);
}
ul.league-list > li {
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    color: var(--earth-text);
    border: 1px solid var(--board-sport);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
ul.league-list > li > div { font-weight: 500; }
ul.league-list > li.pc-time {
    min-width: 140px;
    cursor: default;
}
ul.league-list > li.sport-ing {
    padding: 0 5px;
    flex: 1;
    justify-content: space-between;
}
ul.league-list > li.sport-result { cursor: default; }
ul.league-list > li.sport-on {
    background: var(--sport-on-bg);
    border: 1px solid var(--board-sport-on);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

ul.league-list > li > .left-odd,
ul.league-list > li > .right-odd {
    display: flex;
    align-items: center;
    gap: 3px;
}
ul.league-list > li > .left-name,
ul.league-list > li > .right-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.sport-hot {
    margin: 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--earth-accent);
    animation: st10-hot 0.8s infinite;
}
@keyframes st10-hot {
    5% { color: #fff; }
    100% { color: var(--earth-accent); }
}

ul.league-list > li > .plus-click {
    display: flex;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
ul.league-list > li > .plus-click.active {
    color: #fff;
    background: var(--earth-gradient);
    border: 1px solid var(--earth-primary);
}
.sub-league-list {
    display: none;
    position: relative;
}
.sub-league-list.active { display: block; }

/* 마감경기 */
ul.end-leagu-list > li {
    opacity: 0.5;
    cursor: default !important;
}

@media (hover: hover) and (pointer: fine) {
    ul.league-list > li.sport-ing:hover {
        background: var(--sport-on-bg);
        border: 1px solid var(--board-sport-on);
    }
    ul.end-leagu-list > li.sport-ing:hover {
        background: var(--bg-layer1);
        border: 1px solid var(--board-sport);
    }
}

/****************************************************************************************************************************************
right-cart — Earth 톤으로 재구성
*****************************************************************************************************************************************/
.right-cart {
    position: relative;
    margin: 0;
    padding: 10px;
    width: 250px;
    background: var(--sport-bg);
    border: 1px solid var(--board-sport);
    border-radius: 8px;
}
.cart-inner { position: relative; width: 100%; }

.cart-tit {
    position: relative;
    margin: 0;
    padding: 8px 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    background: var(--earth-secondary);
    border-radius: 6px;
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
}
.cart-tit > a {
    margin: 0;
    padding: 3px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--earth-text);
    background: rgba(10, 22, 40, 0.6);
    border-radius: 4px;
    transition: 0.2s;
}
.cart-tit > a > svg {
    font-size: 13px;
    font-weight: 600;
    color: var(--earth-text);
}
@media (hover: hover) and (pointer: fine) {
    .cart-tit > a:hover,
    .cart-tit > a:hover > svg { color: var(--earth-primary); }
}

#cartList-box { position: relative; }
ul.cart-list {
    position: relative;
    margin: 8px auto;
    padding: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 4px;
}
ul.cart-list > li {
    position: relative;
    margin: 0;
    padding: 6px 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
ul.cart-list > li > span {
    font-size: 13px;
    font-weight: 500;
    color: var(--earth-text);
    letter-spacing: -0.3px;
}
ul.cart-list > li > span.blue-txt {
    color: var(--earth-secondary);
    font-weight: 600;
}

ul.cart-list > li > .cart-list-close {
    position: absolute;
    top: 0;
    right: 5px;
    cursor: pointer;
}
ul.cart-list > li > .cart-list-close > svg { color: var(--earth-text-muted); }
@media (hover: hover) and (pointer: fine) {
    ul.cart-list > li > .cart-list-close > svg:hover { color: var(--earth-text); }
}

.cart-money {
    position: relative;
    margin: 8px auto;
    padding: 10px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 4px;
}
.cart-input {
    position: relative;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    border: 1px solid var(--earth-secondary);
    border-radius: 6px;
    background: rgba(5, 13, 26, 0.5);
}
.cart-input > input {
    margin: 0 auto;
    padding: 0;
    width: calc(100% - 25px);
    font-size: 18px;
    text-align: right;
    font-weight: 500;
    color: var(--earth-secondary);
}
.cart-input > a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cart-input > a > svg {
    font-size: 16px;
    color: var(--earth-secondary);
    cursor: pointer;
}

ul.cart-money-list {
    position: relative;
    padding: 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
ul.cart-money-list > li {
    position: relative;
    width: calc(100% / 4);
}
ul.cart-money-list > li > a {
    display: block;
    margin: 2px;
    width: calc(100% - 4px);
    line-height: 30px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: var(--earth-secondary);
    border-radius: 4px;
    transition: 0.2s;
}
ul.cart-money-list > li > a.reset,
ul.cart-money-list > li > a.max {
    background: var(--earth-gradient);
}
@media (hover: hover) and (pointer: fine) {
    ul.cart-money-list > li > a:hover { filter: brightness(115%); }
}

ul.cart-table {
    position: relative;
    margin: 8px auto;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border3-color);
    border-radius: 4px;
}
ul.cart-table > li {
    position: relative;
    padding: 0 10px;
    width: calc(100% / 2);
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    border-bottom: 1px solid var(--border3-color);
}
ul.cart-table > li:nth-child(1n) {
    text-align: left;
    font-weight: 600;
    color: var(--earth-text-muted);
}
ul.cart-table > li:nth-child(2n) {
    text-align: right;
    font-weight: 600;
    color: var(--earth-text);
}
ul.cart-table > li.red-txt { color: var(--earth-primary); }

.cart-betting {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.cart-betting > button {
    margin: 0 auto;
    padding: 10px 0;
    width: calc(100% / 2 - 5px);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
    transition: 0.2s;
}
.cart-betting > button.betting-now {
    background: var(--earth-gradient);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}
.cart-betting > button.all-cencel {
    background: var(--earth-secondary);
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
}
@media (hover: hover) and (pointer: fine) {
    .cart-betting > button:hover {
        filter: brightness(115%);
        transform: translateY(-1px);
    }
}

.mo-cart-close,
.mo-cart-icon { display: none; }

/****************************************************************************************************************************************
미디어쿼리
*****************************************************************************************************************************************/
@media (max-width: 1300px) {
    .sport-wrap { gap: unset; height: auto; overflow-y: unset; }
    .left-sport { margin-bottom: 30px; width: 100%; }

    ul.game-type-list > li > a {
        flex-direction: column;
        padding: 5px;
        height: auto;
        gap: 3px;
    }
    ul.game-type-list > li > a > svg { margin: 0 auto; }
    ul.game-type-list > li > a > .sport-count {
        position: relative;
        top: unset;
        left: unset;
        right: unset;
        width: 100%;
    }

    .right-cart { display: none; }
    .right-cart.active {
        display: block;
        position: fixed;
        bottom: 0;
        z-index: var(--z-bottom-sheet);
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    #cartList-box {
        height: 140px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    ul.cart-table { justify-content: flex-start; }
    ul.cart-table > li { width: calc(100% / 4); }

    .mo-cart-close {
        display: block;
        margin: 5px auto 0 auto;
        padding: 10px 0;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        background: var(--earth-accent);
        color: var(--earth-darker);
        border-radius: 6px;
        cursor: pointer;
    }

    .mo-cart-icon {
        display: flex;
        position: fixed;
        bottom: 65px;
        right: 10px;
        z-index: var(--z-fab);
        width: 60px;
        height: 60px;
        justify-content: center;
        align-items: center;
        background: var(--earth-gradient);
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    }
    .mo-cart-icon > svg {
        position: relative;
        font-size: 25px;
        color: #fff;
    }
    .cart-count {
        position: absolute;
        top: -5px;
        right: 5px;
        margin: 0 auto;
        padding: 0;
        width: 20px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: -0.5px;
        color: #fff;
        background: var(--earth-primary);
        border-radius: 50%;
        cursor: pointer;
    }
}

@media (max-width: 992px) {
    ul.league-list > li > .left-name {
        flex: 1;
        padding-right: 10px;
        text-align: left;
    }
    ul.league-list > li > .right-name {
        flex: 1;
        padding-left: 10px;
        text-align: right;
    }
}

@media (max-width: 797px) {
    .sport-wrap { padding: 15px 0; }
}

@media (max-width: 767px) {
    .left-sport { padding: 5px; }
    ul.game-cate > li { padding: 5px 0; font-size: 13px; }

    .bonus-tit > h3,
    .bonus-tit > span { font-size: 13px; letter-spacing: -1px; }
    .bonus-tit > span > em { display: none; }

    ul.bonus-list { gap: 3px; }
    ul.bonus-list > li {
        padding: 5px;
        width: calc(100% - 3px);
        height: auto;
        flex-direction: column;
    }
    ul.bonus-list > li > span { font-size: 12px; }

    .league-tit { padding: 0 5px; }
    .left-tit > .flag-img { height: 16px; }
    .left-tit > span { font-size: 13px; letter-spacing: -1px; }
    .mo-time {
        display: block;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -1px;
    }

    ul.league-list > li.pc-time { display: none; }
    ul.league-list > li { min-width: 30px; }
    ul.league-list > li,
    ul.league-list > li > div { font-size: 13px; }

    .sport-hot { font-size: 11px; }
}

@media (max-width: 639px) {
    ul.game-cate { gap: 5px; }
    ul.game-cate > li { width: calc(100% - 5px); }

    ul.game-type-list > li { min-width: 60px; }
    ul.game-type-list { margin: 5px 0 10px auto; }
    ul.game-type-list > li > a { font-size: 12px; gap: 1px; }
    ul.game-type-list > li > a > svg { font-size: 15px; }

    ul.league-list > li.mo-bet-hid { display: none; }

    .mo-cart-icon { width: 40px; height: 40px; }
    .mo-cart-icon > svg { font-size: 18px; }
    .cart-count { right: 0; }

    .cart-money,
    ul.cart-table { padding: 5px; }
    ul.cart-table > li { padding: 5px; font-size: 12px; }

    ul.league-list { gap: 3px; }
    ul.league-list > li { min-width: 30px; }
    ul.league-list > li,
    ul.league-list > li > div { font-size: 12px; letter-spacing: -1px; }
    ul.league-list > li.sport-ing { padding: 0 3px; }

    ul.league-list > li > .left-odd,
    ul.league-list > li > .right-odd {
        gap: 0;
        min-width: 25px;
    }
    ul.league-list > li > .left-odd > img,
    ul.league-list > li > .right-odd > img { width: 10px; }

    .sport-hot { letter-spacing: -1px; }
}
