@charset "UTF-8";

* {
    font-family: 'Pretendard';
    box-sizing: border-box;
}

/* 차트 */
.chart-wrap {
    width: 100%;
    height: 272px;
    position: relative;
    margin-bottom: 24px;
    overflow: visible;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.custom-tooltip {
    position: absolute;
    background: #2D2D2D;
    color: #F3F3F3;
    padding: 4px 8px;
    height: 30px;
    line-height: 22px;
    border-radius: 9999px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    display: none;
    z-index: 1000;
    transform: translate(-50%, -160%);
    border: none;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    /* 본문 아래쪽에 꼬리 붙이기 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #2D2D2D transparent transparent transparent;
}


/* 메인 */
.main-conts.wrap{
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-box {
    width: 100%;
    height: 100%;
}

.main-title-pc {
    display: none;
}

.balance-box {
    border-radius: 12px;
    width: 100%;
    height: 58px;
    background-color: var(--buttonColor);
    display: flex;
    padding: 13px 16px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 24px;
    margin-top: 16px;
}

.balance-group {
    display: flex;
    align-items: center;
    color: #FFFFFF;
    gap: 8px;
    height: 24px;
    width: 60px;
    /* border: 1px solid red; */
}

.balance-group>.balance-txt {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.conin-img-box {
    width: 24px;
    height: 24px;
}

.conin-img-box>img {
    width: 100%;
    height: 100%;
}

.join-btn {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    width: 97px;
    height: 32px;
    border-radius: 8px;
    background: none;
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
    padding: 5px 12px;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.balance-details {
    font-weight: 700;
    line-height: 26px;
    font-size: 18px;
    color: var(--mainColor);
}

/* 코인 거래소 이름 */
.chart-name-group {
    display: flex;
    gap: 8px;
}

.chart-name-img-box {
    width: 24px;
    height: 24px;
}

.chart-name-img-box>img {
    width: 100%;
    height: 100%;
}

.chart-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--black1A);
}

.chart-exchange {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--gray81);
}


/* 차트 가격 */

.charset-price {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--black1A);
}

.base-price {
    color: var(--gray81);
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

.chart-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.up-img-box {
    width: 18px;
    height: 18px;
}

..up-img-box>img {
    width: 100%;
    height: 100%;
}

/* 배너 */

.banner-wrap{
    width: 100%;
}

.banner-wrap::after {
    width: 100%;
    content: "";
    display: block;
    height: 128px;
}

.banner-wrap > .banner-link {
    display: block;
    width: 100%;
    aspect-ratio: 343/112;
    border-radius: 12px;
    overflow: hidden;
}

.banner-wrap > .banner-link > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}




/* 카운트 버튼 */
.count-wrap {
    width: 100%;
    margin-bottom: 24px;
}

.count-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--black1A);
    margin-bottom: 8px;
}

.count-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.count-btn {
    border: 1px solid var(--grayE1);
    height: 48px;
    border-radius: 12px;
    padding: 11px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.count-btn.my {
    background-color: var(--grayF3);
    border-color: transparent;
}

.count-btn.my.login{
    flex-direction: column;
    gap: 4px;
    height: 74px;
}

.count-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--black1A);
}

.count-number {
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--black1A);
}

/* 메인 하단 메뉴 */
.main-bottom-menu {
    width: 100%;
    height: 98px;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #000000A3;
    border-radius: 16px 16px 0px 0px;
}

.time-box {
    height: 32px;
    display: flex;
    align-items: center;
    color: white;
    justify-content: center;
    gap: 8px;
}

.time-box-txt {
    display: flex;
    align-items: center;
}

.clock-img-box {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.clock-img-box>img {
    width: 100%;
    height: 100%;
}

.remaining-time,
.waiting {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
}

.stopwatch {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--whiteFD);
}

/* 하단 메뉴,버튼 리스트 */
.trade-button-wrap {
    border-radius: 16px 16px 0px 0px;
    padding: 8px 16px;
    width: 100%;
    height: 66px;
    background-color: var(--whiteFD);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-menu-bar {
    padding: 3px 4px;
    width: 47px;
    height: 50px;
    cursor: pointer;
}

.trade-hambuger {
    margin: 0 auto;
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
}

.trade-hambuger>img {
    width: 100%;
    height: 100%;
}

.trade-menu-bar>a,
.trade-menu-bar>.trade-menu-txt {
    color: var(--black1A);
    font-weight: 400;
    line-height: 16px;
    font-size: 11px;
    text-align: center;
    text-wrap: nowrap;
}

.trade-button {
    flex-grow: 1;
    height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    outline: none;
    border: none;
    background-color: var(--grayE1);
    color: #FFFFFF;
    cursor: pointer;
}



.trade-button.buying {
    background-color: var(--buttonColor);
    color: var(--mainColor);
}

.trade-button.sell {
    background-color: var(--mainColor);
}

.tab-contents {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    position: relative;
}


/* 히스토리 */

.history-conts {
    width: 100%;
    height: calc(100% - 48px);
    max-width: 768px;
    margin: 0 auto;

}

.type {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-date {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    vertical-align: middle;
    color: var(--gray81);
}

.transaction-date {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    vertical-align: middle;
    color: var(--gray81);
}

.history-wrap {
    width: 100%;
    height: 88px;
    border-radius: 12px;
    padding: 12px 16px;
    background-color: var(--grayF3);
    box-sizing: border-box;
}

.history-game-date {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
    color: var(--gray81);
    margin-bottom: 2px;
}

.history-box {
    display: flex;
    justify-content: space-between;
}

.coin-type {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    vertical-align: middle;
    margin-bottom: 2px;
}

.closing-price {
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
    color: var(--gray81);
}

.amount {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: right;
    vertical-align: middle;
    margin-bottom: 2px;
}

.amount.minus {
    color: var(--blueFF);
}

.amount.plus {
    color: var(--error);
}

.volatile-price {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
    color: var(--grayCA);
}

.up-txt,
.down-txt {
    color: var(--gray81);
}

/* 게임참여 내역 X */

.history-body {
    height: 812px;
}

.history-none-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.history-none-text {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

/* 월렛 */
.wallet-conts {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.my-wallet {
    width: 100%;
    height: 170px;
    padding: 16px;
}

.address-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    vertical-align: middle;
    margin-bottom: 12px;
    color: var(--black1A);
}

.address-box {
    border-radius: 10px;
    padding: 16px;
    background-color: var(--whiteFA);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-link {
    color: var(--gray81);
    font-weight: 500;
    font-size: 12px;
    line-height: 18pxs;
    vertical-align: middle;
}

.copy-box {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.copy-box>img {
    width: 100%;
    height: 100%;
}

.btn-group.wallet {
    width: 100%;
    height: 40px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.btn-group.wallet>a {
    display: inline-block;
    flex: 1;
    width: 100%;
}


.btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    background-color: var(--buttonColor);
    border: 1px solid transparent;
    box-sizing: border-box;
    color: var(--mainColor);
    cursor: pointer;
}

.btn>a {
    color: var(--mainColor);
}

.history-btn-box {
    width: 375px;
    height: 80px;
    padding: 8px 16px 16px;
    box-sizing: border-box;
    margin: 0 auto;
    display: none;
}

.history-btn {
    width: 343px;
    height: 56px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--buttonColor);
    color: var(--mainColor);
    border-radius: 12px;
    outline: none;
    border: none;
    cursor: pointer;

}

.btn.details-btn {
    border-color: var(--buttonColor);
    background-color: white;
    color: var(--black1A);
}

.btn.details-btn>a {
    color: var(--black1A);
}

/* 보유코인 */
.hold-container {
    width: 100%;
    padding: 16px;
}

.hold-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    vertical-align: middle;
    margin-bottom: 12px;
}

.hold-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hold-list {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--grayF3);
    border-radius: 10px;
}

.hold-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-exchange {
    width: 20px;
    height: 20px;
}

.coin-exchange>img {
    width: 100%;
    height: 100%;
}

.exchange-company {
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--black1A);
}

.hold-coin {
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--gray64);
}

.main-tab-conts.banner-pb {
}



@media screen and (min-width:1024px) {

    .header-wrap-mobile {
        display: none !important;
    }

    .main-conts.wrap {
        width: 100%;
        max-width: 768px;
        height: 781px;
        margin: 0 auto;
        margin-top: 24px;
    }

    .main-tab-conts.banner{
        height: max-content !important;
    }

    .banner-wrap::after {
        display: none;
    }

    .main-bottom-menu {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .tab-menu.main {
        display: none !important;
    }

    .main-title-pc {
        padding: 0 16px;
        width: 100%;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .main-title-text {
        font-size: 18px;
        line-height: 26px;
        font-weight: 700;
        vertical-align: middle;
    }

    .infor-img-box {
        width: 24px;
        height: 24px;
    }

    .infor-img-box>img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    /* 메인 컨텐츠 */

    .main-tab-conts {
        padding: 0 16px 40px !important;
    }


    /* 차트 타이틀 */
    .chart-title-wrap {
        width: 100%;
        height: 58px;
        margin-bottom: 40px;
        display: flex;
        gap: 24px;
        flex-direction: row-reverse;
    }

    .balance-box,
    .chart-type {
        width: 356px;
        height: 58px;
        box-sizing: border-box;
        margin: 0;
        align-items: center;
    }

    .chart-name-group {
        width: 83px;
        height: 50px;
        color: gary500;
    }

    .chart-name {
        font-size: 18px;
        line-height: 26px;
    }

    .chart-exchange {
        font-size: 16px;
        line-height: 24px;
    }

    .charset-price {
        font-size: 18px;
        line-height: 26px;
    }

    .base-price {
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }

    /* 차트 그래프 */

    #priceChart {
        width: 100% !important;
        height: 281px !important;
        margin-bottom: 40px;
    }

    /* 카운트 버튼  */

    .count-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .count-text {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
    }

    /* 메인 바텀 메뉴 */
    .main-bottom-menu {
        width: 736px;
        margin: 0 auto;
        height: 126px;
        box-sizing: border-box;
    }

    .trade-button-wrap {
        padding: 16px;
        height: 88px;
        background-color: var(--grayF3);
    }

    .clock-img-box {
        width: 24px;
        height: 24px;
    }

    .remaining-time {
        font-size: 16px;
        line-height: 24px;
    }

    .stopwatch {
        font-weight: 18px;
        line-height: 26px;
    }

    .time-box {
        padding: 4px 0 2px;
    }

    /* 바텀 메뉴 버튼 리스트 */
    .trade-menu-bar {
        width: 57px;
        height: 56px;
    }

    .trade-menu-bar>.trade-menu-txt {
        font-weight: 500;
        font-size: 14px;
        line-height: 22px;
    }

    .trade-button {
        width: 315.5px;
        height: 56px;
    }

    /* 히스토리 */
    .history-body {
        height: 1080px;
    }

    .history-conts {
        width: 768px;
        height: 992px;
        margin: 0 auto;
        margin-top: 24px;
        padding: 16px;
    }

    .find-tab-menu.history {
        padding: 0;
    }

    .tab-contents {
        height: 928px;
        padding: 40px 0;
    }

    .history-none-box {
        top: 280px;
        left: 50%;
        transform: translateX(-50%);
    }

    .history-none-text {
        line-height: 26px;
        font-size: 18px;
        margin-bottom: 40px;
    }

    .history-btn-box {
        display: block;
    }

    .history-date {
        font-size: 16px;
        line-height: 24px;
    }

    .history-game-date {
        font-size: 14px;
        font-weight: 500;
        line-height: 22px;
    }

    .coin-type {
        font-size: 16px;
        line-height: 24px;
    }

    .closing-price {
        font-weight: 500;
        font-size: 14px;
        line-height: 22px;
    }

    .amount {
        font-size: 18px;
        line-height: 26px;
    }

    /* 지갑 wallet */
    .body-wrap {
        height: 1080px;
    }

    .wallet-conts {
        margin-top: 24px;
    }

    .my-wallet {
        height: 162px;
        padding: 0 16px;
        box-sizing: border-box;
        margin-bottom: 24px;
    }

    .address-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .address-box {
        background-color: var(--grayF3);
        margin-bottom: 16px;
    }

    .address-link {
        color: var(--black1A);
        font-size: 16px;
        line-height: 24px;
    }

    .btn-group.wallet {
        gap: 16px;
    }

    .btn {
        height: 48px;
        font-size: 16px;
        line-height: 24px;
        background-color: var(--mainColor);
        color: var(--black1A);
    }

    .btn>a {
        color: var(--black1A);
    }

    .btn.details-btn {
        background-color: var(--buttonColor);
    }

    .btn.details-btn>a {
        color: var(--mainColor);
    }

    /* 보유코인 */
    .hold-container {
        padding: 0 16px;
    }

    .hold-title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .hold-list {
        height: 64px;
    }

    .coin-exchange {
        width: 24px;
        height: 24px;
    }

    .exchange-company {
        font-size: 16px;
        line-height: 24px;
    }

    .hold-coin {
        font-size: 16px;
        line-height: 24px;
        color: var(--gray64);
    }
}