.popup_start_dimmed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup_start_popup-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
    position: relative;
}

.popup_start_popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.popup_start_form-group {
    margin-bottom: 15px;
}

.popup_start_form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.popup_start_dropdown, .popup_start_number-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;        
}
.popup_start_dropdown {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.popup_start_dropdown:focus, .popup_start_number-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.popup_start_button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: center;
}

.popup_start_btn {
    padding: 10 20 5 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.popup_start_btn-primary {
    background-color: #007bff;
    color: white;
}

.popup_start_btn-primary:hover {
    background-color: #0056b3;
}

.popup_start_btn-secondary {
    background-color: #6c757d;
    color: white;
}

.popup_start_btn-secondary:hover {
    background-color: #545b62;
}

.popup_start_close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_start_close-btn:hover {
    color: #333;
}

.chip-pane {
    height: 50px;
    gap: 2vw;
}

.circle-wrapper {      
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.circle-wrapper.selected .outer-circle {
    box-shadow: 0 0 10px rgba(255, 255, 222, 0.9);
}

.outer-circle {
    width: 100%;
    height: 100%;      
    background-color: rgb(236, 229, 226);
    border-radius: 50%;
    position: relative;
}

.outer-circle:hover {
    box-shadow: 0 0 10px rgba(255, 255, 222, 0.9);
}

.inner-outer-circle {
    width: 80%;
    height: 80%;      
    background-color: rgb(236, 229, 226);
    border-radius: 50%;     
    z-index: 1010;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-circle {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding-top: 3px;
    text-align: center;
    user-select: none;
}

.line-thick {
    position: absolute;
    width: 7px;
    height: 100%;      
    top: 0px;
    left: 50%;
    transform-origin: center;
    z-index: 1;
}

.line-thick:nth-child(1) { transform: translateX(-50%) rotate(-25deg); }
.line-thick:nth-child(2) { transform: translateX(-50%) rotate(25deg); }

.line-thick:nth-child(3) { transform: translateX(-50%) rotate(65deg); }
.line-thick:nth-child(4) { transform: translateX(-50%) rotate(115deg); }

.line-thin {
    position: absolute;
    width: 2px;
    height: 100%;      
    top: 0px;
    left: 50%;
    transform-origin: center;
    z-index: 1;
}

.line-thin:nth-child(5) { transform: translateX(-50%) rotate(0deg); }
.line-thin:nth-child(6) { transform: translateX(-50%) rotate(90deg); }

@font-face {
    font-family: 'OTWelcomeRA';
    src: url('/assets/font/OTWelcomeRA.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

*{
    font-family: OTWelcomeRA;
}

body {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5385;
    color: #fff;
    text-align: left;
    background-color: #262230;
}

.btn-action {
    font-size: 14px;
    padding: 7 5 3 5px        
}

.arrow-button {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: gray;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
}        

.arrow-button:active
{        
    transform: scale(0.95);
}

.arrow-left {        
    left: 0;
    border-radius: 0 8px 8px 0;
}

.arrow-right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.rt_div svg {
    transform: scale(0.53);
    transform-origin: top left;
}

.rt_player {
    border-radius: 50%;
    border: 3px solid rgb(43, 129, 247);
}

.rt_banker {
    border-radius: 50%;
    border: 3px solid rgb(255, 18, 57);
}

.rt_cell_tie {
    position: relative;
}

.rt_cell_tie::after {            
    content: "";
    position: absolute;
    top: -1px;
    right: 1px;
    width: 141%; /* 길이: √2 * 100% */
    height: 3px;  /* 선 두께 */
    background-color: rgb(26, 156, 57); /* 선 색상 */
    transform: rotate(-45deg);
    transform-origin: top right;
}    

.rt6_player {
    color: white;
    font-size: 10px;
    padding-top: 3px;
    border-radius: 50%;
    background-color:rgb(43, 129, 247);
}
.rt6_banker {
    color: white;
    font-size: 10px;
    padding-top: 3px;

    border-radius: 50%;
    background-color: rgb(255, 18, 57);
}
.rt6_tie {
    color: white;
    font-size: 10px;
    padding-top: 3px;

    border-radius: 50%;
    background-color: rgb(26, 156, 57);
}

.rt-table{
    table-layout: fixed;border-radius:8px;border-collapse:collapse; background-color:white; border:1px #686868 solid;  border-spacing: 0px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mobile-rt-table-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;        
}

.mobile-rt-table-section {        
    width: 400px;
    height: 100%;
    flex-shrink: 0; /* 크기 축소 방지 */
    overflow-y: hidden; /* 세로 스크롤바 숨김 */
    overflow-x: auto;
    padding: 0px;
}

.fixed-bottom-left {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px; /* 화면 끝에 너무 붙지 않게 여백 */        
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000; /* 다른 요소 위에 보이도록 */

    background-color: rgba(0, 0, 0, 0.95); /* 배경색 추가 */
}

.fixed-bottom-right {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 10px; /* 화면 끝에 너무 붙지 않게 여백 */        
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000; /* 다른 요소 위에 보이도록 */
    text-align:right;

    background-color: rgba(0, 0, 0, 0.95); /* 배경색 추가 */
}

.up-message {
    position: absolute;        
    font-weight: bold;
    font-size: calc(56px * var(--bac-scale-factor));        
    text-shadow: 2px 2px 0px #000;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
}

@keyframes upAnimation {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    20% {
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
    }
}

@keyframes downAnimation {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    20% {
        transform: translateY(10px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(80px) scale(0.8);
    }
}

.animate-up {
    animation: upAnimation 1.7s ease-out forwards;
}
.animate-down {
    animation: downAnimation 1.7s ease-out forwards;
}

.mobile-hide,
.desktop-hide {}

@media (max-width: 989.98px)
{
    .chip-pane {            
        gap: 1vw;
    }
}
@media (max-width: 1299.98px) and (min-width: 990px)
{
    .chip-pane {            
        gap: 0.5vw;
    }
}
@media (min-width: 1300px)
{
    .chip-pane {
        gap: 2vw;
    }
}

/* 모바일에서 숨기기 (max-width 767.98px 기준) */
@media (max-width: 990.98px) {
    .mobile-hide {
        display: none !important;
    }

    .bac-round-shoe {
        font-size: 0.8rem;
    }

    .circle-wrapper {
        position: absolute;
        left: 50%;
        top: 79.5%;
        transform: translate(-50%, -50%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);            
    }

    .circle-wrapper:nth-child(1) { left: calc(50% + 5px); }
    .circle-wrapper:nth-child(2) { left: calc(50% - 5px); }
    .circle-wrapper:nth-child(3) { left: calc(50% + 5px); }
    .circle-wrapper:nth-child(4) { left: calc(50% - 5px); }
    .circle-wrapper:nth-child(5) { left: calc(50% + 5px); }
    .circle-wrapper:nth-child(6) { left: calc(50% - 5px); }
    .circle-wrapper:nth-child(7) { left: calc(50% + 5px); }
    .circle-wrapper:nth-child(8) { left: calc(50% - 5px); }
    

    .circle-wrapper.selected {
        left: 50%!important;            
    }

    .undo {
        margin-right:50px;
    }

    .btn-action {
        font-size: 10px;
        margin-bottom: 7px;
    }
}

/* 데스크탑에서 숨기기 (min-width 768px 기준) */
@media (min-width: 991px) {
    .desktop-hide {
        display: none !important;
    }    

    .bac-round-shoe {
        font-size: 1rem;
    }

    .circle-wrapper {
        position: relative;
    }
}


.td_diagonal {
    position: relative;
}

.td_diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140%;
    border-top: 1px solid green;
    transform: rotate(-45deg);
    transform-origin: top right;
}

.div_player {
    border-radius: 50%;
    border: 1px solid #0b4eb0;
}
.div_banker {
    border-radius: 50%;
    border: 1px solid #b91010;
}

.bac-game-ani-container {
    position: relative;
    width: 100%;        
    height: calc(100% * 9 / 19);
    background-color: #27ae60;
    border: 3px solid #1e7e34;
    border-radius: 10px;
    overflow: hidden;
    --bac-scale-factor: 1;
    aspect-ratio: 3/2;
}

.bac-center-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    z-index: 1;
}

.bac-label {
    position: absolute;
    font-weight: bold;
    color: white;
    font-size: calc(24px * var(--bac-scale-factor));
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    user-select: none;
}

.bac-player-label {
    top: 5%;
    left: 17.5%;
}

.bac-banker-label {
    top: 5%;
    right: 17.5%;
}

.bac-score {
    position: absolute;
    bottom: 20%;
    font-weight: bold;
    color: white;
    font-size: calc(24px * var(--bac-scale-factor));
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 2.5% 3.75%;
    border-radius: 10px;
    user-select: none;
    z-index: 5;
}

.bac-round-shoe {
    font-weight: bold; border-radius: 10px; background-color: #000; opacity: 0.7; color: white; padding:8 5 4 5px; text-align: center;
}

.bac-player-score {
    left: 17.5%;
}

.bac-banker-score {
    right: 17.5%;
}

.bac-countdown {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(96px * var(--bac-scale-factor));
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    z-index: 30;
    animation: bac-countdownPulse 1s ease-in-out;
}

@keyframes bac-countdownPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.bac-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(40px * var(--bac-scale-factor));
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.7);
    padding: 5% 10%;
    border-radius: 15px;
    z-index: 30;
    animation: bac-resultShow 0.2s ease-in-out;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.bac-result.bac-player-win {
    color: #3498db;
    border: 3px solid #3498db;
}

.bac-result.bac-banker-win {
    color: #e74c3c;
    border: 3px solid #e74c3c;
}

.bac-result.bac-tie {
    color: #27ae60;
    border: 3px solid #27ae60;
}

@keyframes bac-resultShow {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.bac-card {
    position: absolute;
    width: calc(60px * var(--bac-scale-factor));
    height: calc(84px * var(--bac-scale-factor));
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    z-index: 10;
    user-select: none;
}

.bac-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.bac-card.bac-flipped .bac-card-inner {
    transform: rotateY(180deg);
}

.bac-card-front, .bac-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid #333;
    box-sizing: border-box;
    text-align: center;
}

.bac-card-front {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    font-size: calc(11px * var(--bac-scale-factor));
}

.bac-card-back {
    background: white;
    color: black;
    font-size: calc(10px * var(--bac-scale-factor));
    flex-direction: column;
    gap: 3px;
    transform: rotateY(180deg);
}

.bac-red-suit {
    color: red !important;
}

.bac-suit {
    font-size: calc(26px * var(--bac-scale-factor));
    line-height: 1.3;
}

.bac-rank {
    font-size: calc(22px * var(--bac-scale-factor));
    line-height: 0.4;
}

.gamepad {
    height: 120px; position: relative;
    user-select: none;
}
.gamepad-name {
    position: absolute; top: 90px; transform: translateY(-50%); color: white; font-size:18px;
}
.p-player {
    background-color: #0b4eb0;flex: 0 0 calc(35%); 
}
.p-tie {
    background-color: #0b870b;flex: 0 0 calc(20%); 
}
.p-banker {
    background-color: #b91010;flex: 0 0 calc(35%); 
}
.gamepad:hover {
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.betamount {
    position: absolute; top: 40px; transform: translateY(-50%); color: white; font-size:18px;
}    

.bg-a2000 {
    background-color: rgb(79, 79, 79);
}
.bg-a5000 {
    background-color: rgb(203, 106, 177);
}
.bg-a10000 {
    background-color: rgb(158, 27, 0);
}
.bg-a25000 {
    background-color: rgb(0, 156, 189);
}
.bg-a50000 {
    background-color: rgb(17, 135, 28);
}
.bg-a100000 {
    background-color: rgb(101, 67, 33);
}
.bg-a200000 {
    background-color: rgb(18, 18, 18);
}
.bg-a500000 {
    background-color: rgb(18, 18, 18);
}
.bg-a1000000 {
    background-color: rgb(94, 50, 129);
}

.bd-a2000 {
    border: 1px solid rgb(79, 79, 79);
}
.bd-a5000 {
    border: 1px solid rgb(203, 106, 177);
}
.bd-a10000 {
    border: 1px solid rgb(158, 27, 0);
}
.bd-a25000 {
    border: 1px solid rgb(0, 156, 189);
}
.bd-a50000 {
    border: 1px solid rgb(17, 135, 28);
}
.bd-a100000 {
    border: 1px solid rgb(101, 67, 33);
}
.bd-a200000 {
    border: 1px solid rgb(18, 18, 18);
}
.bd-a500000 {
    border: 1px solid rgb(18, 18, 18);
}
.bd-a1000000 {
    border: 1px solid rgb(94, 50, 129);
}

.undo {
    width: 45px;
    height: 45px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.double {
    width: 45px;
    height: 45px;
    padding: 10px;
    background-color: rgb(145, 144, 142);
    border-radius: 50%;
    color: white;        
    font-size: 18px;
    cursor: pointer;        
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 13px;
    
}    

.pattern2find span svg {
    display: inline-block
}
.realtime-card {
    width: 290px;
}
