@charset "utf-8";
@import url("http://fonts.googleapis.com/earlyaccess/notosanskr.css");

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: none 0;
    font-family: 'Noto Sans KR';
    font-weight: normal
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 12px
}

img,
fieldset,
iframe {
    border: 0 none
}

table,
div {
    border-collapse: collapse;
    font-size: 12px;
    /* 부모 요소의 가로 길이의 절반에서 자식 요소의 가로 길이의 절반을 뺀 후, 나머지 부분을 2로 나눕니다. */
}

textarea {
    overflow: auto;
    outline-style: none;
    font-family: 'Noto Sans KR'
}

select,
input,
img,
li {
    vertical-align: middle;
    text-align: left;
    font-family: 'Noto Sans KR';
    outline-style: none
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
    font-style: normal;
    font-weight: normal
}

ul,
li,
ol {
    list-style-type: none
}

legend,
caption {
    display: none
}

hr {
    border-collapse: collapse;
    display: none
}

a {
    text-decoration: none;
    cursor: pointer;
    color: #222
}

html,
body {
    width: 100%;
    height: 100%
}

body {
    font-size: 12px;
    color: #222
}

.sound_only {
    display: none
}

#baccarat {
    width: 840px;
    /* margin-left:27%; */
    margin: 0 auto;
    background: black;
    position: relative; /* For positioning context of the popup if not fixed to viewport */
}

/* Custom Message Popup Styles */
.custom-message-popup {
    position: absolute; /* 화면 기준으로 위치 고정 */
    top: 500px; /* 시작 위치 (애니메이션용) */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* 기본 배경색 */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000; /* 다른 요소들 위에 표시 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, top 0.4s ease-in-out;
    font-size: 16px;
    text-align: center;
    min-width: 280px; /* 최소 너비 */
    max-width: 90%;   /* 최대 너비 */
    box-sizing: border-box;
}

.custom-message-popup.show {
    opacity: 1;
    visibility: visible;
    top: 300px; /* 최종 표시 위치 */
}

.custom-message-popup.success {
    background-color: #4CAF50; /* 초록색 (성공) */
    color: white;
}

.custom-message-popup.error {
    background-color: #f44336; /* 빨간색 (에러) */
    color: white;
}

.custom-message-popup.info {
    background-color: #2196F3; /* 파란색 (정보) */
    color: white;
}
/* End of Custom Message Popup Styles */


@media all and (max-width: 800px) {
    .history_wrap {
        /* display:none; */
    }

    #baccarat {
        /* position: relative; */ /* 이미 위에서 설정됨 */
        top: 0;
        margin-left: 0;
        margin-right: 0;
        -ms-zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.75);
        -o-transform-origin: 0 0;
        /* -webkit-transform: scale(0.75); */
        -webkit-transform-origin: 0 0;
        transform: scale(0.44, 0.44);
        overflow: hidden;
        margin: 0 auto;
        /* margin-left: 17%; */
    }

    .responsive .at-body .at-container {
        padding: 0px 0px !important;
        height: 130vh;
    }

    .custom-message-popup { /* 모바일에서도 잘 보이도록 폰트 크기 등 조정 가능 */
        font-size: 14px;
        padding: 12px 20px;
        min-width: 200px;
    }
    .custom-message-popup.show {
        top: 40px;
    }
}

@media all and (max-width: 368px) {
    .history_wrap {
        /* display:none; */
    }

    #baccarat {
        /* position: relative; */ /* 이미 위에서 설정됨 */
        top: 0;
        margin-left: 0;
        margin-right: 0;
        -ms-zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.75);
        -o-transform-origin: 0 0;
        /* -webkit-transform: scale(0.75); */
        -webkit-transform-origin: 0 0;
        transform: scale(0.40, 0.40);
        overflow: hidden;
        margin: 0 auto;
        /* margin-left: 17%; */
        margin-left: calc(50% - 168px);
    }
}

@media all and (max-width: 333px) {
    .history_wrap {
        /* display:none; */
    }

    #baccarat {
        /* position: relative; */ /* 이미 위에서 설정됨 */
        top: 0;
        margin-left: 0;
        margin-right: 0;
        -ms-zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.75);
        -o-transform-origin: 0 0;
        /* -webkit-transform: scale(0.75); */
        -webkit-transform-origin: 0 0;
        transform: scale(0.37, 0.37);
        overflow: hidden;
        margin: 0 auto;
        /* margin-left: 17%; */
        margin-left: calc(50% - 155px);
    }
}

@media all and (max-width: 310px) {
    .history_wrap {
        /* display:none; */
    }

    #baccarat {
        /* position: relative; */ /* 이미 위에서 설정됨 */
        top: 0;
        margin-left: 0;
        margin-right: 0;
        -ms-zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
        -o-transform: scale(0.75);
        -o-transform-origin: 0 0;
        /* -webkit-transform: scale(0.75); */
        -webkit-transform-origin: 0 0;
        transform: scale(0.34, 0.34);
        overflow: hidden;
        margin: 0 auto;
        /* margin-left: 17%; */
        margin-left: calc(50% - 142.5px);
    }
}

.game_wrap {
    width: 50%;
    height: 299px;
    display: inline-block;
    overflow: hidden;
}

.game {
    position: relative;
    width: 840px;
    height: 621px;
    background: url('./img/gamebg_daumd.png?2') no-repeat;
    overflow: hidden;
    background-size: cover;
    transform: scale(0.5);
    margin-left: -49%;
    margin-top: -40%;
    vertical-align: top;
}

#baccarat_game {
    position: absolute;
    left: 35px;
    top: 85px;
    width: 840px;
    height: 521px
}

.url {
    position: absolute;
    left: 0;
    top: 70px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #FFF;
    text-shadow: 0 0 5px #193d57
}

.sound {
    position: absolute;
    left: 50%;
    top: 340px;
    width: 61px;
    height: 67px;
    margin-left: -25px;
    background: url('./img/sound_on.png') no-repeat;
    cursor: pointer
}

.sound>img {
    opacity: 0
}

.sound.off {
    background: none
}

.sound.off>img {
    opacity: 1
}

.timeline {
    position: absolute;
    left: 10px;
    top: 486px;
    width: 100%;
    text-align: center;
    overflow: hidden
}

.timeline>h1 {
    font-size: 25px;
    color: #ffffff
}

.timeline>h2 {
    margin: -2px 0 18px;
    font-weight: bold;
    font-size: 36px;
    color: #8aff5a;
}

.timeline>h3 {
    width: 160px;
    height: 7px;
    margin: 0 auto 5px;
    background: #484441;
    border-radius: 4px;
    overflow: hidden
}

.timeline>h3>span {
    display: block;
    height: 6px;
    background: url('./img/gauge.jpg') repeat-x
}

.timeline>h4 {
    font-size: 22px;
    color: #FFF;
    letter-spacing: -0.5px
}

.name {
    position: absolute
}

.name.player {
    left: 196px;
    top: 189px;
    width: 102px;
    height: 90px;
    /* background: url('./img/player.png') no-repeat; */
}

.name.banker {
    right: 191px;
    top: 187px;
    width: 108px;
    height: 93px;
    /* background: url('./img/banker.png') no-repeat; */
}

.name.tie {
    left: 409px;
    top: 272px;
    width: 43px;
    height: 24px;
    /* background: url('./img/tie.png') no-repeat; */
}

.name>img {
    opacity: 0
}

.name.win>img {
    opacity: 1
}

.card {
    position: absolute;
    bottom: 170px;
    text-align: center
}

.card.player {
    left: 70px;
    transform: rotate(25deg)
}

.card.banker {
    right: 70px;
    transform: rotate(-22deg)
}

.card>h1 {
    margin-bottom: 10px;
    font-family: "Jeju Myeongjo";
    font-weight: bold;
    font-size: 50px;
    color: #FFF
}

.card>h2>img {
    width: 100px;
    margin-left: -45px
}

.card.natural>h2>img {
    width: 100px;
    margin-left: 10px
}

.card>h2>img:first-child {
    margin-left: 0
}

.display {
    position: absolute;
    width: 177px;
    height: 100px
}

.display.player {
    left: 40px;
    top: 426px
}

.display.banker {
    right: 52px;
    top: 437px
}

.display>h1 {
    display: none
}

.display.pair>h1 {
    display: block
}

.display>h2 {
    display: none
}

.display.natural>h2 {
    display: block
}

.display>h3 {
    display: none
}

.display.pair.natural>h1 {
    display: none
}

.display.pair.natural>h2 {
    display: none
}

.display.pair.natural>h3 {
    display: block
}

.player_sum {
    position: absolute;
    left: 195px;
    top: 283px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 1 1 black;
    transform: rotate(25deg)
}

.banker_sum {
    position: absolute;
    left: 618px;
    top: 275px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 1 1 black;
    transform: rotate(-25deg)
}

.betting_cart {
    position: relative;
    height: 481px;
    background: #19242c;
    overflow: hidden
}

.betting_cart>div {
    height: 67px;
    line-height: 67px;
    margin-bottom: 10px;
    padding-top: 22px;
    overflow: hidden
}

.betting_cart>div>h1 {
    float: left;
    width: 272px;
    margin-left: 50px;
    text-align: right;
    font-size: 25px;
    color: #FFF
}

.betting_cart>div>h1::after {
    content: " P";
    font-size: 25px;
    color: #FFF
}

.betting_cart>div>h1>span {
    float: left;
    font-size: 22px;
    color: #7591a5
}

.betting_cart>div>h2 {
    float: right;
    width: 400px;
    height: 65px;
    line-height: 65px;
    margin-right: 47px;
    padding: 0 33px;
    text-align: right;
    font-size: 25px;
    color: #fff778;
    background: #131b21;
    border: 1px solid #30424e;
    border-radius: 15px;
    box-shadow: 2px 2px 5px black inset
}

.betting_cart>div>h2::after {
    content: " P";
    font-size: 25px;
    color: #fff778
}

.betting_cart>div>h2>span {
    float: left;
    font-size: 22px;
    color: #7591a5
}

.betting_cart>ul {
    margin: 0 0 20px 44px;
    overflow: hidden
}

.betting_cart>ul>li {
    position: relative;
    float: left;
    margin-left: 3px;
    cursor: pointer
}

.betting_cart>ul>li#btn_p {
    background: url('./img/btn_player.png?v=2') no-repeat
}

.betting_cart>ul>li#btn_b {
    background: url('./img/btn_banker.png?v=2') no-repeat
}

.betting_cart>ul>li#btn_t {
    background: url('./img/btn_tie.png') no-repeat
}

.betting_cart>ul>li#btn_pp {
    background: url('./img/btn_pair_player.png') no-repeat
}

.betting_cart>ul>li#btn_bp {
    background: url('./img/btn_pair_banker.png') no-repeat
}

.betting_cart>ul>li>img {
    opacity: 0;
    transition: .3s
}

.betting_cart>ul>li.on>img {
    opacity: 1
}

.betting_cart>ul>li:first-child {
    margin-left: 0
}

.betting_cart>ol {
    margin-left: 44px;
    overflow: hidden
}

.betting_cart>ol>li {
    float: left;
    cursor: pointer;
    transition: .3s
}

.betting_cart>ol>li:hover {
    opacity: 0.9
}

.betting_cart>dl {
    float: left;
    margin-left: 44px;
    padding-top: 10px;
    overflow: hidden
}

.betting_cart>dl>dd {
    float: left;
    margin-left: 4px;
    cursor: pointer;
    transition: .3s
}

.betting_cart>dl>dd:hover {
    opacity: 0.9
}

.betting_cart>dl>dd:first-child {
    margin-left: 0
}

.betting_cart>dfn {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 840px;
    height: 311px;
    padding-top: 170px;
    text-align: center;
    font-size: 22px;
    color: #65879e;
    background: rgba(25, 36, 44, 0.98)
}

.betting_history {
    height: 437px;
    overflow-y: scroll;
    padding-bottom: 20px;
    background: #214863
}

.betting_history>dl {
    margin: 0 25px;
    padding-top: 15px
}

.betting_history>dl>dt {
    background: #1e2b34
}

.betting_history>dl>dt>ul {
    width: 100%;
    overflow: hidden
}

.betting_history>dl>dt>ul>li {
    float: left;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 14px;
    color: #ececec;
    background: url('./img/betting_history_line.png') no-repeat left
}

.betting_history>dl>dt>ul>li:nth-child(1) {
    width: 195px;
    background: none
}

.betting_history>dl>dt>ul>li:nth-child(2) {
    width: 104px
}

.betting_history>dl>dt>ul>li:nth-child(3) {
    width: 152px
}

.betting_history>dl>dt>ul>li:nth-child(4) {
    width: 149px
}

.betting_history>dl>dt>ul>li:nth-child(5) {
    width: 101px
}

.betting_history>dl>dt>ul>li:nth-child(6) {
    width: 89px
}

.betting_history>dl>dd>ul {
    width: 100%;
    border-bottom: 1px solid #335d7a;
    overflow: hidden
}

.betting_history>dl>dd>ul>li {
    float: left;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 14px;
    color: #78a7c8
}

.betting_history>dl>dd>ul>li:nth-child(1) {
    width: 195px
}

.betting_history>dl>dd>ul>li:nth-child(2) {
    width: 104px
}

.betting_history>dl>dd>ul>li:nth-child(3) {
    width: 152px
}

.betting_history>dl>dd>ul>li:nth-child(4) {
    width: 149px;
    color: #FFF
}

.betting_history>dl>dd>ul>li:nth-child(5) {
    width: 101px
}

.betting_history>dl>dd>ul>li:nth-child(6) {
    width: 89px
}

.betting_history>dl>dd>ul>li.win {
    color: #fff778
}

.betting_history>dl>dd>ul>li.lose {
    color: #ff7878
}

.betting_history>div {
    width: 230px;
    height: 44px;
    line-height: 44px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 16px;
    color: #FFF;
    background: #0088b1;
    border: 1px solid #00c4ff;
    border-radius: 12px;
    box-shadow: 1px 1px 3px black;
    cursor: pointer;
    transition: .2s
}

.betting_history>div:hover {
    opacity: .9
}

.history {
    width: 419px;
    height: 298px;
    background: #1c1c1c;
    border-top: 1px solid #575757;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    float: right;
}

.history>div {
    width: 100%;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
}

.history .future {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.history .future>div {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    background: white;
    height: 30px;
    color: black;
    box-shadow: inset -1px -1px 2px rgb(0 0 0 / 34%);
}

.history .future>div>.item {
    margin: 5px;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
}

.history .future>div .title {
    line-height: 26px;
    font-size: 16px;
    font-weight: bold;
    padding-left: 10px;
    padding-right: 13px;
}

.history .future>div.player .title {
    color: #1f44ed;
}

.history .future>div.banker .title {
    color: #cf1919;
}

.history .future>div.player .be_0 {
    background: url('img/future/m1f.png');
}

.history .future>div.player .be_1 {
    background: url('img/future/m1t.png');
}

.history .future>div.player .sr_0 {
    background: url('img/future/m2f.png');
}

.history .future>div.player .sr_1 {
    background: url('img/future/m2t.png');
}

.history .future>div.player .ckr_0 {
    background: url('img/future/m3f.png');
}

.history .future>div.player .ckr_1 {
    background: url('img/future/m3t.png');
}

.history .future>div.banker .be_0 {
    background: url('img/future/m1f.png');
}

.history .future>div.banker .be_1 {
    background: url('img/future/m1t.png');
}

.history .future>div.banker .sr_0 {
    background: url('img/future/m2f.png');
}

.history .future>div.banker .sr_1 {
    background: url('img/future/m2t.png');
}

.history .future>div.banker .ckr_0 {
    background: url('img/future/m3f.png');
}

.history .future>div.banker .ckr_1 {
    background: url('img/future/m3t.png');
}

.history>div.result-history {
    width: 100%;
    height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: none;
}

.history>div>ul {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history>div>ul>li>dl {
    padding-bottom: 3px;
    background: black;
}

.history>div>ul>li {
    /* float: left; */
    width: 100%;
    /* border-right: 1px solid #575757; */
}

.history>div>ul>li>dl>dt.num {
    height: 26px;
    text-align: center;
    font-size: 16px;
    letter-spacing: -1px;
    line-height: 26px;
    background: #1e2b34;
    border-bottom: 1px solid #575757;
    width: 100%;
    display: block;
}

.history>div>ul>li>dl>dt {
    height: 25px;
    text-align: center;
    font-size: 14px;
    letter-spacing: -1px;
    line-height: 22px;
    background: #1e2b34;
    border-bottom: 1px solid #575757;
    width: 50%;
    display: inline-block;
    vertical-align: top;
    margin-top: -3px;
}

.history>div>ul>li>dl>dt:first-child {
    font-size: 15px;
    color: #00b7df
}

.history>div>ul>li>dl>dt:last-child {
    /* font-size: 14px; */
    color: #dfce9c;
    letter-spacing: 2px;
    background: #000;
}

.history>div>ul>li>dl>dt.red {
    color: #fe5353
}

.history>div>ul>li>dl>dt.blue {
    color: #0084ff
}

.history>div>ul>li>dl>dt.green {
    color: #4b9708
}

.history>div>ul>li>dl>dd {
    padding: 7px 0 7px 7px;
    /* border-top: 1px solid #575757; */
    height: 33px;
    overflow: hidden;
    width: 50%;
    display: inline-block;
    margin-top: -1px;
    text-align: center;
}

.history>div>ul>li>dl>dd.player {
    background: #192c5c
}

.history>div>ul>li>dl>dd.banker {
    background: #5c1919
}

.history>div>ul>li>dl>dd>img {
    width: 94px;
    margin-left: -68px;
    margin-top: -10px;
}

.history>div>ul>li>dl>dd.three>img {
    margin-left: -74px;
}

.history>div>ul>li>dl>dd>img:first-child {
    margin-left: 0
}

.histogram {
    width: 840px;
    height: 235px;
    background: #1c1c1c;
    border-top: 1px solid #575757;
    border-top: none;
    /* margin-bottom: 1px; */
    /* transform: scale(0.7); */
    margin-top: -3px;
}

.histogram>h1 {
    display: table;
    width: 100%;
    height: 36px;
    background: #000;
    border-bottom: 1px solid #575757
}

.histogram>h1>ul {
    display: table-cell;
    height: 36px;
    vertical-align: middle;
    text-align: center
}

.histogram>h1>ul>li {
    display: inline-block;
    margin: 0 11px;
    font-size: 13px;
    color: #e5e5e5
}

.histogram>h1>ul>li>span {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 27px;
    border-radius: 16px
}

.histogram>h1>ul>li>span.red {
    background: #d31616
}

.histogram>h1>ul>li>span.blue {
    background: #1062af
}

.histogram>h1>ul>li>span.green {
    background: #4b9708
}

.histogram>div {
    width: 840px;
    overflow-x: scroll
}

.histogram>div>ul {
    width: 2000px;
    background: url('./img/histogram_bg.png') repeat;
    overflow: hidden;
    background-size: 26px 26px;
}

.histogram div>ul>li {
    float: left;
    width: 26px;
}

.histogram>div>ul>li:first-child {
    border-left: none
}

.histogram>div>ul>li>dl>dd {
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    overflow: hidden;
}

.histogram>div>ul>li>dl>dd:first-child {
    font-size: 13px;
    background: url('./img/histogram_head_bg.png') no-repeat;
    overflow: hidden;
}

.histogram>div>ul>li.player>dl>dd:first-child {
    color: #0686ff
}

.histogram>div>ul>li.banker>dl>dd:first-child {
    color: #fe2424
}

.histogram>div>ul>li>dl>dd>span {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 11px;
    color: #FFF;
    letter-spacing: -1px;
    line-height: 24px;
    border-radius: 16px;
}

.histogram>div>ul>li>dl>dd.player>span {
    background: #1062af
}

.histogram>div>ul>li>dl>dd.banker>span {
    background: #d31616
}

.histogram>div>ul>li>dl>dd.banker.super6>span {
    background: #ffd000
}

.histogram>div>ul>li>dl>dd.tai>span {
    background: #4b9708
}

.histogram>div>ol {
    width: 2000px;
    ;
    background: url('./img/histogram_tail_bg.png') repeat;
    overflow: hidden
}

.histogram>div>ol>li {
    float: left;
    width: 42px;
    height: 42px;
    text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 41px
}

.histogram_toggle {
    display: block;
    /* margin-top:30px; */
    background: #ff2626;
    text-align: center;
    color: white;
    padding: 5px;
    font-size: 15px;
}

.flying_card_p {
    position: absolute;
    right: -100px;
    top: -200px;
    width: 140px;
    transform: rotate(22deg)
}

.flying_card_b {
    position: absolute;
    right: -100px;
    top: -200px;
    width: 140px;
    transform: rotate(-22deg)
}

/* roadmap*/
#history .roadmap>div>ul {
    width: 2000px;
    background: url('./img/small_map.jpg') repeat-x;
    overflow: hidden;
    height: 40px;
}

#history .roadmap div>ul>li {
    float: left;
    width: 6.5px;
    padding-top: 1px;
}

#history .roadmap>div>ul>li:first-child {
    border-left: none
}

#history .roadmap>div>ul>li>dl>dd {
    width: 6px;
    height: 6px;
    /* margin-bottom: 1px; */
    text-align: center;
    /* line-height: 1px; */
    overflow: hidden;
}

#history .roadmap>div>ul>li>dl>dd:first-child {
    font-size: 13px;
    background: url('./img/histogram_head_bg.png') no-repeat;
    overflow: hidden;
}

#history .roadmap>div>ul>li.negative>dl>dd:first-child {
    color: #0686ff
}

#history .roadmap>div>ul>li.possitive>dl>dd:first-child {
    color: #fe2424
}

#history .roadmap>div>ul>li>dl>dd>span {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 11px;
    color: #FFF;
    letter-spacing: -1px;
    line-height: 24px;
    border-radius: 16px;
}

#remainTime {
    position: absolute;
    top: 160px;
    font-size: 30px;
    width: 100%;
    text-align: center;
    font-weight: normal;
    padding-left: 19px;
    color: #8aff5a;
}

#history .roadmap>div.cockroach>ul>li>dl>dd.negative {
    background: url('img/j3f.png');
}

#history .roadmap>div.cockroach>ul>li>dl>dd.possitive {
    background: url('img/j3t.png');
}

#history .roadmap>div.smallroad>ul>li>dl>dd.negative {
    background: url('img/j2f.png');
}

#history .roadmap>div.smallroad>ul>li>dl>dd.possitive {
    background: url('img/j2t.png');
}

#history .roadmap>div>ul>li>dl>dd.negative {
    background: url('img/j1f.png');
}

#history .roadmap>div>ul>li>dl>dd.possitive {
    background: url('img/j1t.png');
}

#history .roadmap>div>ul>li>dl>dd.negative>span {
    background: #1062af;
    display: none;
}

#history .roadmap>div>ul>li>dl>dd.possitive>span {
    background: #d31616;
    display: none;
}

#history .roadmap>div>ul>li>dl>dd.tai>span {
    background: #4b9708
}

#history .roadmap>div>ol {
    width: 2000px;
    ;
    background: url('./img/histogram_tail_bg.png') repeat;
    overflow: hidden
}

#history .roadmap>div>ol>li {
    float: left;
    width: 42px;
    height: 42px;
    text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 41px
}

/* HISTORY */
.history_detail {
    display: block;
    padding: 10px;
    background: #ebede6;
    overflow: hidden
}

.history_detail>div {
    background: #FFF;
    border: 2px solid #ffa900;
    background: url('./img/bg_history_detail.jpg') repeat;
    overflow: hidden
}

.history_detail>div>ul {
    float: left;
    height: 113px;
    border-left: 1px solid #d0d0d0
}

.history_detail>div>ul:first-child {
    border-left: none
}

.history_detail>div>ul>li {
    position: relative;
    width: 18px;
    height: 18px;
    border-top: 1px solid #d0d0d0
}

.history_detail>div>ul>li:first-child {
    border-top: none
}

.history_detail>div>ul>li>h1 {
    width: 14px;
    height: 14px;
    text-align: center;
    line-height: 14px;
    border-radius: 9px
}

.history_detail>div>ul.banker>li>h1 {
    color: #e24f4f;
    border: 2px solid #e24f4f
}

.history_detail>div>ul.player>li>h1 {
    color: #065bdb;
    border: 2px solid #065bdb
}

.history_detail>div>ul>li.banker>h1 {
    color: #e24f4f;
    border: 2px solid #e24f4f
}

.history_detail>div>ul>li.player>h1 {
    color: #065bdb;
    border: 2px solid #065bdb
}

.history_detail>div>ul>li.tai>h1 {
    color: #008d16;
    border: 2px solid #008d16
}

.history_detail>div>ul>li>h2 {
    display: none;
    position: absolute;
    left: 1px;
    top: 1px;
    width: 4px;
    height: 4px;
    background: #e24f4f;
    border: 1px solid #FFF;
    border-radius: 3px
}

.history_detail>div>ul>li.left>h2 {
    display: block
}

.history_detail>div>ul>li>h3 {
    display: none;
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 4px;
    height: 4px;
    background: #065bdb;
    border: 1px solid #FFF;
    border-radius: 3px
}

.history_detail>div>ul>li.right>h3 {
    display: block
}

.history_detail>div.winner {
    float: left;
    width: 816px;
    margin: 10px 8px 0 0
}

.history_detail>div.winner>ul>li>h1 {
    color: #FFF
}

.history_detail>div.winner>ul>li.player>h1 {
    background: #065bdb;
    border: 2px solid #065bdb
}

.history_detail>div.winner>ul>li.player>h1:after {
    content: "P"
}

.history_detail>div.winner>ul>li.banker>h1 {
    background: #e24f4f;
    border: 2px solid #e24f4f
}

.history_detail>div.winner>ul>li.banker>h1:after {
    content: "B"
}

.history_detail>div.winner>ul>li.tai>h1 {
    background: #008d16;
    border: 2px solid #008d16
}

.history_detail>div.winner>ul>li.tai>h1:after {
    content: "T"
}

.history_detail>div.circle {
    float: left;
    width: 539px;
    margin-top: 10px;
    background: url('./img/bg_history_mini.jpg') repeat
}

.history_detail>div.circle>ul {
    height: 53px
}

.history_detail>div.circle>ul>li {
    width: 8px;
    height: 8px
}

.history_detail>div.circle>ul>li>h1 {
    width: 4px;
    height: 4px
}

.history_detail>div.circle>ul>li.player>h1 {
    border: 2px solid #e24f4f
}

.history_detail>div.circle>ul>li.banker>h1 {
    border: 2px solid #065bdb
}

.history_detail>div.circle>ul>li.tai>h1 {
    border: 2px solid #008d16
}

.history_detail>div.dot {
    float: left;
    width: 539px;
    margin-top: 3px;
    background: url('./img/bg_history_mini.jpg') repeat
}

.history_detail>div.dot>ul {
    height: 53px
}

.history_detail>div.dot>ul>li {
    width: 8px;
    height: 8px
}

.history_detail>div.dot>ul>li>h1 {
    width: 6px;
    height: 6px;
    border: 1px solid #FFF
}

.history_detail>div.dot>ul>li.player>h1 {
    background: #e24f4f
}

.history_detail>div.dot>ul>li.banker>h1 {
    background: #065bdb
}

.history_detail>div.dot>ul>li.tai>h1 {
    background: #008d16
}

div.mini_history_bg {
    float: left;
    width: 193px;
    height: 78px;
    background-color: #391817;
    border-right: 1px soild #2a1211;
    border-bottom: 1px soild #2e1312;
    border-left: 1px soild #4a2e2d;
    border-radius: 5px;
    box-shadow: 1px 1px #1d0c0c;
    overflow-x: auto;
}

div.mini_history_bg .top_scroll_box {
    min-width: 193px;
    width: 2000px;
    height: 78px;
    overflow: hidden;
    background-image: url('./img/bg_mini_history.jpg');
}

div.mini_history_bg ul {
    float: left;
    border-left: 1px solid #532b2a
}

div.mini_history_bg ul:first-child {
    border-left: none
}

div.mini_history_bg ul>li {
    position: relative;
    width: 12px;
    height: 12px;
    border-top: 1px solid #532b2a;
    overflow: hidden
}

div.mini_history_bg ul>li:first-child {
    border-top: none
}

div.mini_history_bg ul>li>span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    overflow: hidden
}

div.mini_history_bg ul>li.ppair>span {
    background: #1f95ff
}

div.mini_history_bg ul>li.player>span {
    background: #1f95ff
}

div.mini_history_bg ul>li.tie>span {
    background: #009f33
}

div.mini_history_bg ul>li.bank>span {
    background: #cb1f03
}

div.mini_history_bg ul>li.bpair>span {
    background: #cb1f03
}

div.mini_history_bg ul>li>em {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 2px;
    height: 2px;
    background: #c7594f;
    border: 1px solid #aed9ff;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0
}

div.mini_history_bg ul>li.left>em {
    opacity: 1
}

div.mini_history_bg ul>li>var {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 2px;
    height: 2px;
    background: #608ceb;
    border: 1px solid #aed9ff;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0
}

div.mini_history_bg ul>li.right>var {
    opacity: 1
}

.bakara_wrap {
    padding: 0px;
    background: #56488f;
    width: 816px;
    height: 90px;
    border: 1px solid #6e63b9;
    border-radius: 5px;
    text-align: center;
}

.bakara_wrap ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.bakara_wrap>div {
    padding: 10px;
    margin: 0 auto;
    height: 88px;
    background: #8cc63f;
    width: 100%;
    border-radius: 5px;
    /* border: 1px solid #baf955; */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.bakara_wrap>div input {
    cursor: pointer;
    border: 0;
    width: 122px;
    height: 65px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    outline: 0;
    /* float: left; */
    border-radius: 5px;
    /* margin-left: 15px; */
    padding-top: 27px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 1px #000;
    letter-spacing: 1px;
    font-family: sans-serif;
    text-align: center;
    background-size: 90% 115% !important;
    background-position: center !important;
}

.bakara_wrap>div input:hover,
.bakara_wrap>div input.on {
    box-shadow: inset 0 0 150px rgb(0 0 0 / 45%);
}

.bakara_wrap>div input.p_pair {
    background: #3067bf url(img/bakara_pp.png)no-repeat;
}

.bakara_wrap>div input.player {
    background: #3067bf url(img/bakara_player.png)no-repeat;
}

.bakara_wrap li.super6 {
    position: relative;
}

.bakara_wrap>div input.super6 {
    background: #e8bb18;
    background: #e8bb18 url(img/bakara_blank.png)no-repeat;
}

.bakara_wrap>div li.super6:after {
    /* z-index: 100000; */
    content: 'SUPER.6';
    display: block;
    position: absolute;
    width: 100%;
    /* height: 30px; */
    color: white;
    font-size: 15px;
    margin-top: -5px;
    letter-spacing: -3px;
    top: 0;
    text-align: center;
    font-size: 29px;
    font-weight: bold;
}

.bakara_wrap>div input.tie {
    background: #006837 url(img/bakara_tie.png)no-repeat;
}

.bakara_wrap>div input.banker {
    background: #c10000 url(img/bakara_banker.png)no-repeat;
}

.bakara_wrap>div input.b_pair {
    background: #c10000 url(img/bakara_bp.png)no-repeat;
}

.betting_list {
    width: 840px;
    margin-top: 0px;
    font-family: sans-serif;
}

.betting_table {
    margin-top: 0px;
    border-collapse: collapse;
    border-top: 0 !important;
    border-bottom: 0 !important;
    width: 100%;
}

.betting_table th {
    font-size: 14px;
    height: 36px;
    background: #192630;
    color: #61b4f2;
    border-bottom: 1px solid #b8d1e1;
    text-align: center;
}

.betting_table td {
    text-align: center;
    font-size: 14px;
    height: auto;
    min-height: 40px; /* 최소 높이 설정, 카드 스니펫 높이에 맞게 조절 가능 */
    background: #365266;
    color: #fbfdff;
    border-bottom: 1px solid #86b9d4;
    padding: 8px; /* 셀 내부 여백 */
    vertical-align: middle; /* 내용물 수직 가운데 정렬 */
    border: 1px solid #4A5568; /* 테이블 선 색상 (어두운 테마에 맞게) */
    background-color: #1A202C; /* 셀 배경색 */
    color: #CBD5E0; /* 셀 글자색 */
}


.bakara_cartwrap {
    padding: 10px;
    background: #313d44;
    width: 818px;
    height: 175px;
    border: 1px solid #586d7a;
    border-radius: 5px;
    margin-top: 1px;
    font-family: sans-serif;
}

.bakara_cart {
    clear: both;
    display: block;
    width: 100%;
    height: 156px;
}

.bakara_cart .cart_session {
    display: block;
    width: 180px;
    height: 153px;
    float: left;
    padding: 5px 5px 10px 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: #1a2226;
    border-radius: 5px;
    margin-right: 10px;
}

.bakara_cart .cart_session ul {
    display: inline-block;
}

.bakara_cart .cart_session li {
    clear: both;
    display: block;
    padding: 5px 5px;
    border-bottom: 1px solid #313d44;
}

#current_no,
#selBet,
#betRate,
#gametype {
    display: none;
}

.bakara_cart .cart_session span {
    display: block;
    float: left;
    color: #aaa;
    font-size: 12px;
    width: 50px;
    text-align: left;
}

.bakara_cart .cart_session strong {
    color: skyblue;
    font-size: 23px;
    font-weight: 400;
}

.bakara_cart .cart_session li:after {
    clear: both;
    display: block;
    content: '';
}

.bakara_cart .cart_session span.tx {
    width: 80px;
    display: inline-block;
    margin: 0;
    color: #ffbb00;
}

.bakara_cart .cart_session em {
    font-style: normal;
    font-weight: bold;
    color: #f60;
    font-size: 14px;
}

.bakara_cart .cart_pay {
    float: left;
    width: 597px;
    position: relative;
    padding: 15px 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: #1a2226;
    border-radius: 5px;
}

.bakara_cart .bet_money label {
    color: #222;
    font-size: 20px;
    display: inline-block;
    margin-right: 4px;
    letter-spacing: -0.5px;
    margin-top: 3px;
}

.bakara_cart .bet_money input {
    text-align: right;
    background: #fff;
    color: #e42828;
    width: 195px;
    font-size: 20px;
    letter-spacing: -0.5px;
    font-weight: bold;
    margin-top: -33px;
    border: 0;
    float: right;
}

.bakara_cart .bet_money {
    float: left;
    display: block;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #061643;
    width: 218px;
    height: 41px;
    padding: 5px 10px;
    margin: 2px 1px 2px;
}

.bakara_cart .bet_money.i_blue input {
    color: #106de1 !important;
}

.bakara_cart .bet_btn_inner {
    clear: both;
    width: 510px;
}

.bakara_cart .bet_btn_inner [type=button] {
    cursor: pointer;
    outline: 0;
    border-radius: 5px;
    border: 1px solid #000;
    letter-spacing: -0.5px;
    font-size: 15px;
    color: #eee;
    background: linear-gradient(180deg, #495e6b, #242e35);
    width: 79px;
    height: 37px;
    margin: 1px;
    float: left;
    text-align: center;
}

.bakara_cart .bet_btn_inner .i_blue {
    background-image: linear-gradient(180deg, #c10000, #910000);
    color: #eee !important;
}

.bakara_cart .bet_btn_inner .i_gray {
    background-image: linear-gradient(180deg, #0274ad, #004e7f);
    color: #f7f7f7 !important;
}

.bakara_cart .bet_money_free {
    float: left;
    display: block;
    background-color: #f7f7f7;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #061643;
    width: 300px;
    height: 37px;
    padding: 5px 10px 0;
    margin: 1px 1px;
}

.bakara_cart .bet_money_free label {
    font-weight: bold;
    color: #222;
    font-size: 13px;
    display: inline-block;
    margin-right: 4px;
    letter-spacing: -0.5px;
    margin-bottom: 0px;
}

.bakara_cart .bet_money_free input {
    text-align: right;
    background: #f7f7f7;
    color: #111;
    width: 209px;
    font-size: 18px;
    letter-spacing: -0.5px;
    font-weight: bold;
    border: 0;
    float: right
}

.bakara_cart input.btn_bet {
    cursor: pointer;
    display: block;
    position: absolute;
    right: 10px;
    top: 17px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0 !important;
    background-image: -webkit-linear-gradient(top, #a90329, #6d0019);
    border: 1px solid #c10000;
    border-bottom: 1px solid #310000;
    border-right: 1px solid #310000;
    width: 100px;
    height: 125px;
    text-align: center;
    color: #fff !important;
    border-radius: 5px;
}

.bead-board {
    width: 2000px;
    background: url('./img/sixmap_back.jpg') repeat-x;
    overflow: hidden;
    height: 151px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
}

.bead-board .item {
    width: 25px;
    height: 25px;
}

.bead-board .item .number {
    display: none;
}

.bead-board .item.P {
    background: url('./img/beadplate/P.png');
}

.bead-board .item.P1 {
    background: url('./img/beadplate/P1.png');
}

.bead-board .item.P2 {
    background: url('./img/beadplate/P2.png');
}

.bead-board .item.P12 {
    background: url('./img/beadplate/P12.png');
}

.bead-board .item.B {
    background: url('./img/beadplate/B.png');
}

.bead-board .item.B1 {
    background: url('./img/beadplate/B1.png');
}

.bead-board .item.B2 {
    background: url('./img/beadplate/B2.png');
}

.bead-board .item.B12 {
    background: url('./img/beadplate/B12.png');
}

.bead-board .item.T {
    background: url('./img/beadplate/T.png');
}

.bead-board .item.T1 {
    background: url('./img/beadplate/T1.png');
}

.bead-board .item.T2 {
    background: url('./img/beadplate/T2.png');
}

.bead-board .item.T12 {
    background: url('./img/beadplate/T12.png');
}

@media (max-width: 800px) {
    .bakara_cartwrap {
        width: 100%;
        height: auto;
        margin-top: 0px;
        display: inline-block;
        border-radius: 0;
        max-width: 100%;
        padding: 0;
    }

    .bakara_cart .cart_session {
        width: 100%;
        height: auto;
        background: #1a2226;
        border-radius: 5px;
        margin-right: 0px;
        padding: 0;
    }

    .bakara_cart .cart_session li {
        width: 100%;
        display: flex;
        padding: 5px 0px;
        border-bottom: 1px solid #313d44;
        justify-content: flex-start;
        align-items: center;
    }

    .bakara_cart .cart_pay {
        width: 100%;
        margin-top: 5px;
        padding: 15px;
        padding: 0;
    }

    .bakara_cart .bet_money_wrap {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .bakara_cart .bet_money label {
        font-size: 30px;
    }

    .bakara_cart .bet_money {
        float: left;
        display: block;
        width: 47%;
        font-size: 19px;
        height: auto;
        padding: 5px;
        margin: 0;
    }

    .bakara_cart .bet_money input {
        text-align: right;
        background: #fff;
        color: #e42828;
        width: 62%;
        font-size: 35px;
        letter-spacing: -0.5px;
        font-weight: bold;
        margin-top: 3px;
        border: 0;
        float: right;
    }

    .bakara_cart .bet_btn_inner {
        clear: both;
        width: 100%;
    }

    .bakara_cart .bet_btn_inner [type=button] {
        color: #eee;
        width: 24.6%;
        height: auto;
        margin: 1px;
        float: left;
        text-align: center;
        font-size: 30px;
        padding: 15px 0px;
    }

    .bakara_cart .bet_money_free input {
        font-size: 30px;
    }

    .bakara_cart .bet_money_free label {
        font-size: 30px;
    }

    .bakara_cart .bet_money_free {
        width: 47%;
        padding: 14px 10px;
        margin: 2px 1px;
        height: auto;
    }

    .bakara_cart input.btn_bet {
        cursor: pointer;
        display: block;
        position: relative;
        right: 0px;
        top: 4px;
        font-size: 35px;
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .betting_list {
        width: 100%;
        padding-bottom: 10px;
    }

    .history>div>ul>li>dl>dt:last-child {
        font-size: 30px;
        color: #dfce9c;
        letter-spacing: 2px;
        background: #000;
        height: auto;
    }

    .history>div>ul>li>dl>dt {
        height: 42px;
        text-align: center;
        font-size: 25px;
        letter-spacing: -1px;
        line-height: initial;
        background: #1e2b34;
        border-bottom: 1px solid #575757;
    }

    .history>div>ul>li>dl>dt:first-child {
        font-size: 25px;
        color: #00b7df;
        height: auto;
        padding: 10px 0;
    }

    .histogram>h1>ul>li {
        display: inline-block;
        margin: 0 11px;
        font-size: 30px;
        color: #e5e5e5
    }

    .histogram_toggle {
        font-size: 35px;
    }

    .betting_table th {
        font-size: 23px;
        padding: 15px 0;
    }

    .betting_table td {
        font-size: 24px;
        height: auto;
        padding: 10px 0;
        /* min-height은 데스크탑 CSS에서 이미 설정됨 */
    }

    .bakara_wrap {
        padding: 0;
        width: 100%;
        height: auto;
        margin-bottom: 5px;
        max-width: 100%;
    }

    .bakara_wrap>div {
        padding: 0;
        height: auto;
        margin: 0;
        padding: 10px 0px;
    }

    .bakara_wrap>div>div>ul>li input {
        cursor: pointer;
        border: 0;
        height: 110px;
        margin-left: 0px;
        padding-top: 60px;
        background-size: 100% !important;
        font-size: 32px;
        margin-left: 1.2%;
        background: white;
        margin: 0;
        margin-left: 0;
    }

    .bakara_wrap>div li.super6:after {
        margin-top: 6px;
        font-size: 35px;
        letter-spacing: -4px;
        padding: 0;
    }

    .bakara_wrap>div>div>ul>li input.p_pair {
        margin-left: 0;
    }

    .bakara_cart .cart_session ul {
        width: 100%;
    }

    #current_no {
        width: auto;
    }

    .bakara_cart .cart_session span {
        font-size: 34px;
        width: auto;
    }

    .bakara_cart .cart_session span.tx {
        width: auto;
        padding-left: 10px;
    }

    .bakara_cart .cart_session em {
        font-size: 30px;
        padding-left: 10px;
    }

    .bakara_cart .cart_session strong {
        font-size: 32px;
        padding-left: 5px;
    }
}

/* 기존 테이블 스타일 유지 */
.betting_table th,
.betting_table td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #4A5568;
}

.betting_table th {
    background-color: #2D3748;
    color: #E2E8F0;
}

.betting_table td {
    background-color: #1A202C;
    color: #CBD5E0;
    /* height: auto; 와 min-height 는 이미 위에서 적용됨 */
}


.betting_table .win {
    color: #68D391;
    font-weight: bold;
}

.betting_table .lose {
    color: #FC8181;
}

.betting_table td div[style*="min-width"] {
    line-height: normal;
}


/* === MODIFIED STYLES FOR result.php CARD IMAGES (CLIPPED CORNER & OVERLAPPING) === */
.betting_list .betting_list_card_image {
    width: 30px;
    height: 45px;
    object-fit: none;
    object-position: 0 0;
    border: 1px solid #666;
    border-radius: 3px;
    vertical-align: middle;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-right: 0;
    margin-left: -20px;
    background-color: #333;
}

.betting_list td > .betting_list_card_image:first-child,
.betting_list div > .betting_list_card_image:first-child {
    margin-left: 2px;
}

.betting_list .betting_table td img:not(.betting_list_card_image) {
    width: 30px;
    height: 45px;
    object-fit: none;
    object-position: 0 0;
    border: 1px solid #555;
    border-radius: 3px;
    vertical-align: middle;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-right: 0;
    margin-left: -20px;
    background-color: #333;
}

.betting_list .betting_table td img:not(.betting_list_card_image):first-child {
    margin-left: 2px;
}
/* === END OF MODIFIED STYLES === */

