.data_pattern_wrap { width: 95%;
    max-width: 900px;
    margin: 20px auto;
    padding: 8px;
    border-radius: 6px;
    background:#fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #444;
    position: relative;
    z-index: 1 !important;

	}

.data_pattern_wrap.sheets {border:1px solid #d6d6d6;}
.pattern_menu {display:flex;   border-bottom:1px solid rgba(0,255,255,0.15);background-color:#0b0f1a;}

.pattern_menu:after {display:block; content:''; clear:both;}
.pattern_menu li {flex:1; border-left:1px solid rgba(0,255,255,0.15); box-sizing:border-box;}
.data_pattern_wrap ul,
.data_pattern_wrap ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.pattern_summary {height:51px; border-bottom:1px solid #d6d6d6;}
.pattern_summary .bs {float:left; margin:12px 0 0 15px;}
.pattern_summary .bs dl {float:left; margin-left:25px;}
.pattern_summary .bs dl:first-child {margin-left:0;}
.pattern_summary .bs dt {float:left; margin-right:10px; width:27px; height:27px; line-height:27px; text-align:center; border-radius:100%; background-color:#333; color:#fff;}
.pattern_summary .bs dd {float:left; line-height:27px;}
.pattern_summary .EVEN dt,
.pattern_summary .AWAY dt,
.pattern_summary .RIGHT dt,
.pattern_summary .FOUR dt,
.pattern_summary .LEFT3EVEN dt,
.pattern_summary .RIGHT4EVEN dt,
.pattern_summary .EVENUNDER dt,
.pattern_summary .EVENOVER dt,
.pattern_summary .EVENLARGE dt,
.pattern_summary .EVENL dt,
.pattern_summary .EVENMEDIUM dt,
.pattern_summary .EVENM dt,
.pattern_summary .EVENSMALL dt,
.pattern_summary .EVENS dt,
.pattern_summary .OVER dt {background-color:#e74c3c;}
.pattern_summary .ODD dt,
.pattern_summary .HOME dt,
.pattern_summary .LEFT dt,
.pattern_summary .THREE dt,
.pattern_summary .LEFT4ODD dt,
.pattern_summary .RIGHT3ODD dt,
.pattern_summary .ODDUNDER dt,
.pattern_summary .ODDOVER dt,
.pattern_summary .ODDLARGE dt,
.pattern_summary .ODDL dt,
.pattern_summary .ODDMEDIUM dt,
.pattern_summary .ODDM dt,
.pattern_summary .ODDSMALL dt,
.pattern_summary .ODDS dt,
.pattern_summary .UNDER dt {background-color:#3498db;}
.pattern_summary .A dt {background-color:#ffba00;}
.pattern_summary .B dt {background-color:#b08102;}
.pattern_summary .C dt {background-color:#7f5d02;}
.pattern_summary .D dt {background-color:#4b3701;}
.pattern_summary .LARGE,
.pattern_summary .L dt {background-color:#e74c3c;}
.pattern_summary .MEDIUM,
.pattern_summary .M dt {background-color:#3498db;}
.pattern_summary .SMALL,
.pattern_summary .S dt {background-color:#27ae60;}

.pattern_summary .etc {float:right; margin:12px 15px 0 0;}

/* 모바일 대응: 화면 폭 768px 이하에서 숨김 */
@media (max-width: 768px) {
    .pattern_summary .etc {
        display: none;
    }
}
.data_minmax_wrap {background-color:#fff;}
.data_minmax_wrap .tit {height:51px;line-height:51px; text-align:center; border:1px solid #d6d6d6; border-bottom:none; background-color:#f2f2f7;}
.data_minmax_wrap .minmax_list table {width:100%; border:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list thead th {height:53px; border-bottom:1px solid #d6d6d6; border-top:none;}
.data_minmax_wrap .minmax_list th {height:51px; border-left:1px solid #f2f2f2; border-top:1px solid #f2f2f2; background-color:#fcfcfc;}
.data_minmax_wrap .minmax_list th:first-child {border-left:none;}
.data_minmax_wrap .minmax_list td {border-left:1px solid #f2f2f2; border-top:1px solid #f2f2f2; text-align:center;}
.data_minmax_wrap .minmax_list td:first-child {border-left:none;}
.data_minmax_wrap .minmax_list tr.line_top th,
.data_minmax_wrap .minmax_list tr.line_top td {border-top:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list .line_left {border-left:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list .max {font-weight:bold; color:#e74c3c;}
.data_minmax_wrap .minmax_list .min {font-weight:bold; color:#3498db;}
.daterangepicker .drp-buttons {padding-top:20px !important;}
.daterangepicker .drp-buttons .drp-selected {float:left; height:30px; line-height:30px;}
.daterangepicker .drp-buttons .btn.applyBtn {float:right; padding:0; margin:0; outline-style:none !important; height:30px; line-height:30px;}
.daterangepicker .drp-buttons .btn.cancelBtn {display:none;}
.daterangepicker .drp-calendar.left {margin-right:20px !important;}
.daterangepicker .drp-calendar.right {padding:0 !important;}
.pattern_search_data {margin-bottom:5px; padding:22px 30px 30px 30px; border:1px solid #d6d6d6; background-color:#fff;}
.pattern_search_data:after {display:block; content:''; clear:both;}
.pattern_search_data .tit {margin-bottom:22px; font-size:13px; height:31px; line-height:31px;}
.pattern_search_data .inner {position:relative;}
.pattern_search_data dl {float:left; margin-left:7px; width:31px; height:68px; border-radius:15px; background-color:#f2f2f7;}
.pattern_search_data dl:first-child {margin-left:0;}
.pattern_search_data dt {display:block; margin-bottom:7px; width:31px; height:31px; line-height:31px; text-align:center; font-family:'굴림', Gulim, Helvetica, sans-serif; font-size:12px; border-radius:100%; color:#fff;}
.pattern_search_data dt.SELL,
.pattern_search_data dt.ODD,
.pattern_search_data dt.HOME,
.pattern_search_data dt.UNDER,
.pattern_search_data dt.MEDIUM,
.pattern_search_data dt.LEFT,
.pattern_search_data dt.THREE,
.pattern_search_data dt.L4O,
.pattern_search_data dt.R3O,
.pattern_search_data dt.SNAIL1,
.pattern_search_data dt.SNAIL3,
.pattern_search_data dt.ODDUNDER,
.pattern_search_data dt.ODDOVER,
.pattern_search_data dt.ODDLARGE,
.pattern_search_data dt.ODDMEDIUM,
.pattern_search_data dt.ODDSMALL {background-color:#3498db;}
.pattern_search_data dt.BUY,
.pattern_search_data dt.EVEN,
.pattern_search_data dt.AWAY,
.pattern_search_data dt.RIGHT,
.pattern_search_data dt.FOUR,
.pattern_search_data dt.R4E,
.pattern_search_data dt.L3E,
.pattern_search_data dt.SNAIL2,
.pattern_search_data dt.SNAIL4,
.pattern_search_data dt.EVENUNDER,
.pattern_search_data dt.EVENOVER,
.pattern_search_data dt.EVENLARGE,
.pattern_search_data dt.EVENMEDIUM,
.pattern_search_data dt.EVENSMALL,
.pattern_search_data dt.OVER {background-color:#e74c3c;}
.pattern_search_data dt.A {background-color:#ffba00;}
.pattern_search_data dt.B {background-color:#b08102;}
.pattern_search_data dt.C {background-color:#7f5d02;}
.pattern_search_data dt.D {background-color:#4b3701;}
.pattern_search_data dt.LARGE {background-color:#e74c3c;}
.pattern_search_data dt.MEDIUM {background-color:#3498db;}
.pattern_search_data dt.SMALL {background-color:#27ae60;}
.pattern_search_data dd {display:block; height:11px; line-height:11px; text-align:center; font-family:Tahoma, sans-serif; font-size:9px;}
.pattern_search_data .length {font-weight:bold;}
.search_pattern_history {float:left; margin:5px; width:31px;}
.pattern_menu li:first-child {border-left:none;}

.pattern_menu a {display:block; height:41px; line-height:41px; text-align:center; color:#fff;}
.pattern_menu .selected {color:#fff; background-color:#e74c3c;}

.pattern_sheets {display:flex; border-bottom:1px solid #d6d6d6; background-color:#f2f2f7;}
.pattern_sheets:after {display:block; content:''; clear:both;}
.pattern_sheets li {flex:1; border-left:1px solid #d6d6d6;}
.pattern_sheets li:first-child {border-left:none;}
.pattern_sheets a {display:block; height:51px; line-height:51px; text-align:center;}
.pattern_sheets .selected {background-color:#fff;}
.pattern_sheets_sub {border-bottom:1px solid #d6d6d6;}
.pattern_sheets_sub:after {display:block; content:''; clear:both;}
.pattern_sheets_sub li {float:left; margin-left:30px; height:51px;}
.pattern_sheets_sub li:first-child {margin-left:20px;}
.pattern_sheets_sub a {line-height:51px;}
.pattern_sheets_sub a:before {float:left; margin:15px 10px 0 0; content:''; width:21px; height:21px; border-radius:100%; background:url('https://named.net/public/images/minigame/stats/sp_label.png') no-repeat 0 0;}
.pattern_sheets_sub a.selected:before {background-position:0 -60px;}

.pattern_data dt,
.pattern_data dd {padding:0 1px 1px 0; width:33px; height:33px; line-height:33px; text-align:center; font-size:12px;}
.pattern_data dt.SELL,
.pattern_data dt.ODD,
.pattern_data dt.HOME,
.pattern_data dt.UNDER,
.pattern_data dt.LEFT,
.pattern_data dt.ODDL,
.pattern_data dt.ODDM,
.pattern_data dt.ODDS,
.pattern_data dt.MEDIUM {color:#3498db;}
.pattern_data dt.BUY,
.pattern_data dt.EVEN,
.pattern_data dt.AWAY,
.pattern_data dt.OVER,
.pattern_data dt.RIGHT,
.pattern_data dt.EVENL,
.pattern_data dt.EVENM,
.pattern_data dt.EVENS,
.pattern_data dt.LARGE {color:#e74c3c;}
.pattern_data dt.SMALL {color:#27ae60;}
.pattern_data dt.A {color:#ffba00;}
.pattern_data dt.B {color:#b08102;}
.pattern_data dt.C {color:#7f5d02;}
.pattern_data dt.D {color:#4b3701;}
.pattern_data dt.L {color:#e74c3c;}
.pattern_data dt.M {color:#3498db;}
.pattern_data dt.S {color:#27ae60;}

.pattern_data dd span {display:inline-block; margin-top:3px; width:27px; height:27px; line-height:27px; border-radius:100%;  font-size:10px; color:#fff;}
.pattern_data dd .SELL,
.pattern_data dd .ODD,
.pattern_data dd .HOME,
.pattern_data dd .LEFT,
.pattern_data dd .SNAIL1,
.pattern_data dd .SNAIL3,
.pattern_data dd .ODDL,
.pattern_data dd .ODDM,
.pattern_data dd .ODDS,
.pattern_data dd .UNDER {background-color:#3498db;}
.pattern_data dd .BUY,
.pattern_data dd .EVEN,
.pattern_data dd .AWAY,
.pattern_data dd .RIGHT,
.pattern_data dd .SNAIL2,
.pattern_data dd .SNAIL4,
.pattern_data dd .EVENL,
.pattern_data dd .EVENM,
.pattern_data dd .EVENS,
.pattern_data dd .OVER {background-color:#e74c3c;}
.pattern_data dd .A {background-color:#ffba00;}
.pattern_data dd .B {background-color:#b08102;}
.pattern_data dd .C {background-color:#7f5d02;}
.pattern_data dd .D {background-color:#4b3701;}
.pattern_data dd .LARGE {background-color:#e74c3c;}
.pattern_data dd .MEDIUM {background-color:#3498db;}
.pattern_data dd .SMALL {background-color:#27ae60;}
.pattern_data dd .L {background-color:#e74c3c;}
.pattern_data dd .M {background-color:#3498db;}
.pattern_data dd .S {background-color:#27ae60;}

.data_minmax_wrap {background-color:#fff;}
.data_minmax_wrap .tit {height:51px;line-height:51px; text-align:center; border:1px solid #d6d6d6; border-bottom:none; background-color:#f2f2f7;}
.data_minmax_wrap .minmax_list table {width:100%; border:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list thead th {height:53px; border-bottom:1px solid #d6d6d6; border-top:none;}
.data_minmax_wrap .minmax_list th {height:51px; border-left:1px solid #f2f2f2; border-top:1px solid #f2f2f2; background-color:#fcfcfc;}
.data_minmax_wrap .minmax_list th:first-child {border-left:none;}
.data_minmax_wrap .minmax_list td {border-left:1px solid #f2f2f2; border-top:1px solid #f2f2f2; text-align:center;}
.data_minmax_wrap .minmax_list td:first-child {border-left:none;}
.data_minmax_wrap .minmax_list tr.line_top th,
.data_minmax_wrap .minmax_list tr.line_top td {border-top:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list .line_left {border-left:1px solid #d6d6d6;}
.data_minmax_wrap .minmax_list .max {font-weight:bold; color:#e74c3c;}
.data_minmax_wrap .minmax_list .min {font-weight:bold; color:#3498db;}
.daterangepicker .drp-buttons {padding-top:20px !important;}
.daterangepicker .drp-buttons .drp-selected {float:left; height:30px; line-height:30px;}
.daterangepicker .drp-buttons .btn.applyBtn {float:right; padding:0; margin:0; outline-style:none !important; height:30px; line-height:30px;}
.daterangepicker .drp-buttons .btn.cancelBtn {display:none;}
.daterangepicker .drp-calendar.left {margin-right:20px !important;}
.daterangepicker .drp-calendar.right {padding:0 !important;}
.pattern_search_data {margin-bottom:5px; padding:22px 30px 30px 30px; border:1px solid #d6d6d6; background-color:#fff;}
.pattern_search_data:after {display:block; content:''; clear:both;}
.pattern_search_data .tit {margin-bottom:22px; font-size:13px; height:31px; line-height:31px;}
.pattern_search_data .inner {position:relative;}
.pattern_search_data dl {float:left; margin-left:7px; width:31px; height:68px; border-radius:15px; background-color:#f2f2f7;}
.pattern_search_data dl:first-child {margin-left:0;}
.pattern_search_data dt {display:block; margin-bottom:7px; width:31px; height:31px; line-height:31px; text-align:center; font-family:'굴림', Gulim, Helvetica, sans-serif; font-size:12px; border-radius:100%; color:#fff;}

#stats-pattern {
    width: 100%;
    background: url('/game/bg_cell.png') repeat; 
    overflow-x: scroll;
    overflow-y: hidden;        /* ❗ visible 절대 금지 */
    white-space: nowrap;
    position: relative;
    top: -7px;
}

.pattern_data {
    overflow-x: auto;
    overflow-y: hidden;
    background: none; /* ❗ 배경 제거 */
}

.pattern_data .inner {
    display: inline-block;
    font-size: 0;
    background-size: 34px 34px;
}

#pattern-list {
    display: inline-flex;
    width: max-content;
    font-size: 0;
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 셀 공통 (34x34 정중앙) */
.pattern_data dt,
.pattern_data dd {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-sizing: border-box;
}

/* 원형 아이콘 */
.pattern_data dd span {
    width: 27px;
    height: 27px;
    line-height: 27px;
    border-radius: 50%;
    display: inline-block;
    font-size: 10px;
    color: #fff;
}

..pattern_data dl.default {
    padding-bottom: 0 !important;
}

.pattern_data dl {
 margin: 0;              /* ⭐ 이거 하나로 반 이상 해결됨 */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.pattern_data .length {
    margin-top: auto;
}

.pattern_data .times {
    margin-top: 0;
}

/* stats-pattern 오래된 dl 숨김 */
dl.pattern-hidden {
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    flex: 0 0 0 !important;
}

/* 숨김 처리용 */
.pattern-hidden {
    display: none !important;
}

/* ===== 결과 동그라미 배지 ===== */

.result-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    border-radius:50%;
    font-weight:700;
    font-size:20px;
    color:#fff;
    box-shadow:0 4px 10px rgba(0,0,0,0.25);
}

.content {
    min-height: 250px;
    padding: 0px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 0px;
    padding-right: 0px;
}

/* 기본 타이틀 박스 */
.ladder-title-wrapper {
    width: 100%;
    margin: 0px auto;
    text-align: center;
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 60px 20px; 
}

/* 타이틀/설명 */
.ladder-title { font-size: 38px; font-weight: 800; margin-bottom: 35px; text-shadow: 0 0 12px rgba(255,255,255,0.6); }
.ladder-desc { font-size: 18px; color: #f0f0f0; text-shadow: 0 0 8px rgba(0,0,0,0.3); }

/* 모바일 대응 */
@media (max-width: 768px) {
    .ladder-title {
        font-size: 28px;   /* 글자 크기 축소 */
        margin-bottom: 20px; /* 여백도 줄임 */
    }

    .ladder-desc {
        font-size: 12px;  /* 글자 크기 축소 */
    }
}

/* 🌌 배경 수직 그라데이션 */
.ladder-title-wrapper::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, #001f5b 0%, #000000 50%, #8b0000 100%);
    z-index: 0;
}
.ladder-title-wrapper > * {
    position: relative;
    z-index: 1;
}

/* 은하수 성운 */
.galaxy {
    position: absolute;
    top:0; left:0; width:200%; height:200%;
    background: radial-gradient(circle at 30% 30%, #ff4c4c, transparent 60%),
                radial-gradient(circle at 70% 70%, #4c6bff, transparent 50%),
                radial-gradient(circle at 50% 50%, #ffeb3b, transparent 70%);
    filter: blur(120px);
    animation: galaxy-move 40s linear infinite;
    z-index: 1;
}

@keyframes galaxy-move {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-20%, -20%) rotate(180deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}

/* 별 */
/* 🌊 물방울 */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top:0; left:0;
    z-index:1;
    pointer-events: none;
}

.bubbles span {
    position: absolute; display: block; border-radius: 50%;
    background: white;
    opacity: 0.15; filter: blur(3px);
    animation: bubble-rise linear infinite;
    bottom:0;
}
@keyframes bubble-rise {
    0% { transform: translate(0,0); opacity:0.1; }
    50% { opacity:0.3; }
    100% { transform: translate(0, -120%); opacity:0; }
}

@keyframes rise {
    0% { transform: translateY(100%); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* 별 기본 스타일 */
.stars {
    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.stars span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: moveRight linear infinite, twinkle ease-in-out infinite;
}

/* 왼쪽 → 오른쪽 이동 (약간 흔들리도록 y-offset) */
@keyframes moveRight {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20vw) translateY(var(--y-offset)); } /* 상대 이동폭 작게 */
}
/* 반짝임 */
@keyframes twinkle {
    0%,100% { opacity: 0.3; }
    50% { opacity: 1; }
}


/* 세로줄 */
.line {
    position: absolute;
    top: 0px;
    bottom: 0;
    width: 12px;
    background: #ccc;
}

/* 가로줄 */
.hline {
    position: absolute;
    height: 12px;
    background: #ccc;
    box-sizing: border-box;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .container { padding: 20px; height: 200px; }
    .line { width: 12px; }
    .hline { width: calc(100% - 2 * 12px); }
}


/* 경로 애니메이션 */
.path {
    position: absolute;
    background: red;
    width: 12px;
    height: 12px;

}

.endpoint {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;  
}


/* 서버시간 박스 */
.server-time-box{
border-radius: 8px 8px 0 0;
	background: #1f2937;
	padding: 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;      /* 🔥 가로 가운데 */
    justify-content: center;
    text-align: center;       /* 🔥 텍스트 가운데 */
    margin-bottom: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.server-time-box .server-time{
    font-size:15px;
    font-weight:bold;
    color:#FFF;
}


#ladder {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 260px;
    margin: 50px auto;
    border: 0px solid #ccc;
}

/* 사다리게임 외부 테이블 */
.outerTable {
    margin: 20px auto; 
    padding: 0px;     
    border-radius: 0px;
    width: 90%;
    max-width: 900px;
}


.outerTable, .recordTableWrapper {
    width: 95%;          /* 화면 여백 확보 */
    max-width: 900px;    /* 최대 폭 */
    overflow-x: auto;    /* 모바일에서 가로 스크롤 발생 가능 */
}

/* 사다리 컨테이너 */
.container {
    display: flex;
    justify-content: center; /* 가로 중앙 */
    align-items: center;     /* 세로 중앙 */
    position: relative;       /* counter의 absolute 기준 */
    width: 100%;
    max-width: 700px;
    height: 250px;
    padding: 40px;
    margin: 40px auto;
    box-sizing: border-box;
    border-radius: 6px;
}

.container .counter {
    position: absolute;
    top: 45%;
    left: calc(50% + 6px);
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 16px 40px;
    border-radius: 6px;
    color: #00ffcc;

    /* =========================
       DIGITAL HUD STYLE
    ========================= */
    background: rgba(0, 10, 15, 0.85);
    border: 1px solid rgba(0, 255, 204, 0.35);

    box-shadow:
        0 0 20px rgba(0, 255, 204, 0.25),
        inset 0 0 15px rgba(0, 255, 204, 0.08);

    text-shadow:
        0 0 6px rgba(0, 255, 204, 0.8),
        0 0 12px rgba(0, 255, 204, 0.5);

    z-index: 1001;
    display: none;

    line-height: 1.4;

    /* subtle flicker */
    animation: digitalFlicker 2.5s infinite;
}

/* =========================
   FLICKER EFFECT
========================= */
@keyframes digitalFlicker {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    92%  { opacity: 1; }
    93%  { opacity: 0.85; }
    94%  { opacity: 1; }
    96%  { opacity: 0.9; }
    100% { opacity: 1; }
}


/* =========================
   COUNTER POP ANIMATION
========================= */

.counter {
    transform-origin: center;
}

/* 등장: 풍선처럼 튀어나옴 */
.counter.pop-in {
    animation: popIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

/* 사라짐: 작아지면서 소멸 */
.counter.pop-out {
    animation: popOut 0.35s ease-in forwards;
}

/* 라벨 글자
.bet-summary span::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:2px;
    background: linear-gradient(90deg, transparent, #00f7ff, transparent);
    animation: scan 2s linear infinite;
}
 */

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
        filter: blur(4px);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
        filter: blur(3px);
    }
}


/* ==================== container 내부 카운터 ==================== */
/* 상단 카운터 */
@import url('https://fonts.googleapis.com');
.container .top-counter {
    position: absolute;      /* 화면 상단 중앙 */
    top: 10px;
    left: calc(50% + 6px); /* 보정값 필요하면 유지 */
    transform: translateX(-50%);
    padding: 5px 15px;
    background: rgba(0,0,0,0.2); /* 반투명 블랙 */
    color: #0ff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    z-index: 1000;

}
/* 모바일 대응 */
@media (max-width: 768px) {
    .container {
        width: 100%;    /* 모바일 화면 꽉 채우기 */
        padding: 10px;  /* 패딩 최소화 */
    }
    .container .counter {
	min-width: 200px;       /* 최소 폭 확보 */
    width: 60%;             /* 컨테이너 폭 기준 가로로 길게 */
        padding: 15px 20px;  /* 카운터도 가로로 길게 */
        font-size: 16px;
    }
}

.result-counter {
    position: absolute;
    top: 50%;
    left: 51%;
	border: 0px solid #bbc6c9;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;   /* 세로 배치 */
    align-items: center;
    background: rgba(0,0,0,0.85);
    padding: 15px 20px;
    border-radius: 6px;
    z-index: 1001;
    animation: scalePop 0.5s ease forwards; /* 튀어나오기 */
}

.result-item {
    display: flex;
    align-items: center;
    margin: 10px 0; /* 세로 간격 */
}

.result-item .value {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .result-counter {
        left: 50%;
        top: 51%;
        transform: translate(-50%, -50%);
        padding: 15px 20px;
    }

    .result-item {
        margin: 6px 0;
        flex-direction: column; /* 세로 간격 강조 */
    }

    .result-item .value {
        width: 50px;
        height: 50px;
        font-size: 13px;
    }
}

/* 색상 규칙 */
#res-start.res-left { background-color: #3498db; }   /* 좌 파랑 */
#res-start.res-right { background-color: #e74c3c; }       /* 우 빨강 */

#res-line.res-3 { background-color: #3498db; }       /* 줄 3 파랑 */
#res-line.res-4 { background-color: #e74c3c; }           /* 줄 4 빨강 */

#res-result.res-hol { background-color: #3498db; }   /* 홀 파랑 */
#res-result.res-jjak { background-color: #e74c3c; }      /* 짝 빨강 */


/* 튀어나오는 애니메이션 */
@keyframes scalePop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity:0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity:1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity:1; }
}

.blink {
    animation: blinkColor 1s infinite;
}
@keyframes blinkColor {
    0%,100% { color: #fff; }
    50% { color: orange; }
}
.warning { color: red; font-size: 20px; }

@keyframes pulse {
    0% { transform: scale(1); opacity:1; }
    50% { transform: scale(1.2); opacity:0.8; }
    100% { transform: scale(1); opacity:1; }
}
.animated { animation: pulse 1s infinite; }



/* 이용가이드 버튼 */
#guideBtn{
    position: absolute;
    top: 8px;          /* 🔝 서버시간보다 위 */
    right: 8px;
    width: 28px;
    height: 28px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4000; /* 팝업보다 낮게 */
}

/* 이용가이드 팝업 */
.guide-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important; /* 최대값 */
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
}

/* 카드 */
.guide-card {
    background: #fff;
    width: 92%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: guidePop 0.3s ease;
	position: relative !important;
    z-index: 2147483647 !important;
}

/* 헤더 */
.guide-header {
    background: #1f2937;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-header h4 {
    margin: 0;
    font-size: 16px;
}

.guide-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* 본문 */
.guide-body {
	text-align: left; /* 왼쪽 정렬 */
    padding: 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.guide-section {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111827;
}

/* 강조 박스 */
.guide-section.highlight {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
}

/* 푸터 */
.guide-footer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
   
}

.guide-ok {
    background: #111827;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}


/* 애니메이션 */
@keyframes guidePop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



.table-layout {
    display: flex;
    gap: 12px;
}

/* 좌우 테이블 공통 */
.sideTable {
    background: rgba(0,0,0,0.5); /* 반투명 블랙 */
    padding: 10px;
    flex-shrink: 0;
    width: 150px;
    font-family: sans-serif;
	color: #333;
	border-radius: 6px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.side-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}


/* ----------------- 좌측 통계 ----------------- */
.leftTable {
    background-color: #;
    border-radius: 0px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.leftTable hr {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0;
    border-top: 1px solid #eee;
    display: block;
}


.leftTable .side-title {
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 12px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 4px;
}

.leftTable .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 6px 10px;
     background: rgba(0,0,0,0.4); /* 반투명 블랙 */
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.leftTable .stat-item span {
    font-weight: 500;
    color: #fff;
}

.leftTable .stat-item strong {
    background: none !important;
    color: #fff;              /* 필요하면 #333 으로 변경 */
    font-size: 18px;
    padding: 0;
}

/* 강조 박스 */
.stat-item.highlight {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 12px rgba(255,255,255,0.35);
    animation: blinkHighlight 1.2s infinite ease-in-out;
}

/* 깜박임 애니메이션 */
@keyframes blinkHighlight {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}


.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.badge.blue {
    background-color: #3498db;
}

.badge.red {
    background-color: #e74c3c;
}


/* 통계 숫자 강조 */
.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.stat-item strong {
    font-size: 18px;
    color: #333;
}

/* 중앙 사다리 */
.ladder-wrap {
    position: relative;
    flex-grow: 1;
    border-radius: 6px !important;
    padding: 0px;
	background: rgba(0,0,0,0.5); /* 반투명 블랙 */
}

/* ----------------- 우측 최근 10회 ----------------- */
.rightTable {
    background: rgba(0,0,0,0.5); /* 반투명 블랙 */
    border-radius: 0px;
    padding: 10px;
}

.rightTable .side-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
}

.rightTable .recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px; /* 스크롤 가능 */
    overflow-y: auto;
}

.rightTable .recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.3); /* 반투명 블랙 */
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-size: 12px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item span {
    width: 28px;
    height: 28px;
    line-height: 28px;   /* 세로 중앙 */
    text-align: center;
    border-radius: 50%;
    padding: 0;          /* 중요 */
    font-weight: 500;
}

.recent-item .lines{
    font-weight: 500;
	color: #fff;
}

/* 최근 회차 강조 */
.recent-item.highlight {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.35);
    animation: blinkHighlight 1.2s infinite ease-in-out;
}

@keyframes blinkHighlight {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* start 좌/우 색상 */
.recent-item .start.left { background-color: #3498db; color: #fff; }
.recent-item .start.right { background-color: #e74c3c; color: #fff; }

/* line 줄 수 색상 */
.recent-item .line.lines-3 { background-color: #3498db; color: #fff; }
.recent-item .line.lines-4 { background-color: #e74c3c; color: #fff; }

/* result 홀/짝 색상 */
.recent-item .result.odd { background-color: #3498db; color: #fff; }
.recent-item .result.even { background-color: #e74c3c; color: #fff; }


/* 모바일에서 좌우 테이블 숨기기 */
@media (max-width: 768px) {
    .sideTable {
        display: none;
    }

    /* 사다리 컨테이너 너비를 100%로 확장 */
    .ladder-wrap {
        width: 100% !important;
    }
}


.top-buttons {
    display: flex;
    gap: 10px; /* 버튼 사이 간격 */
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4000; /* 팝업보다 낮게 */
}

.guide-btn {
    width: ;
    height: 28px;
	border: 0;
    padding: 0px 5px;
    background-color: #000; /* 기존 버튼 색상 유지 */
	color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
	transition: background 0.3s;
}

.guide-btn:hover {
    background-color: #45a049;
}

.prediction-graph {
    width: 80%;
    height: 25px;
    display: flex;
    position: absolute;
    bottom: 20px;  /* 완전 아래 */
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
    transition: background-color 0.5s ease;
}
.bar {
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: width 0.5s ease, left 0.5s ease;
}
.bar-odd { background-color: #3498db; left: 50%; transform-origin: right; border-radius: 5px 0 0 5px;}
.bar-even { background-color: #e74c3c; left: 50%; transform-origin: left; border-radius: 0 5px 5px 0;}
.bar span { transition: opacity 0.5s ease; position: absolute; }

.prediction-status{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:14px;
    color:#fff;
    opacity:0.7;
    pointer-events:none;

}


#counter.hidden {
    opacity: 0;
    pointer-events: none;
}



/* =========================
   배팅 전체 컨테이너
========================= */
.betting-container{
    width: 95%;
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
    border-radius: 6px;
    background: rgba(10,10,10,0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #fff;
	position: relative;
    z-index: 1 !important;
}

/* =========================
   상단 요약
========================= */
.bet-summary{
    display:flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 15px;
    font-size: 13px;
}

/* =========================
   포인트 버튼
========================= */
.point-select{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom: 12px;
}

.point-btn{
    flex:1;
    min-width: 80px;
    padding:10px;
    border-radius:6px;
	font-weight: 600;
    border:1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color:#fff;
    cursor:pointer;
}

.point-btn:hover{
   background: #22c55e;  /* 초록 단색 */

}

.point-btn.active{
    background: #22c55e;  /* 초록 단색 */
    color: #fff;
    border: 1px solid #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);

}

/* =========================
   배팅 선택 + 버튼
========================= */
.bet-selection-row{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom: 15px;
}

.bet-options{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    flex:1;
}

.bet-btn{
    padding:8px 14px;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color:#fff;
	font-weight: 500;
    cursor:pointer;
}

.bet-btn:hover{
    background: #3b82f6;   /* 파란 단색 */
}

.bet-btn.active{
    background: #3b82f6;   /* 파란 단색 */
    color: #fff;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.4);

}

.start-btn{
    padding:10px 18px;
    border:none;
    border-radius:6px;
    background: linear-gradient(135deg,#7b2ff7,#00c6ff);
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}


/* =========================
   상단 요약
========================= */
.bet-summary{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:12px;
    background: linear-gradient(135deg,#0b0f1a,#111a2e);
    border:1px solid rgba(0,255,255,0.15);
    border-radius:6px;
    box-shadow: 0 0 15px rgba(0,255,255,0.08);
}

.bet-summary span{
    flex:1;
    min-width:120px;
    padding:10px;
    background: rgba(0,0,0,0.35);
    border:1px solid rgba(0,255,255,0.15);
    border-radius:6px;
    color:#bffcff;
    font-size:13px;
    text-align:center;
    position:relative;
    overflow:hidden;
}



@keyframes scan{
    0%{ transform:translateX(-100%); }
    100%{ transform:translateX(100%); }
}

/* 숫자 강조 */
.bet-summary strong{
    display:block;
    margin-top:5px;
    font-size:18px;
    font-weight:bold;
    color:#00f7ff;
    text-shadow:0 0 8px rgba(0,255,255,0.5);
}

/* P 자동 추가 (구매/적중/미적중/통합결과 공통) */
#betSpent::after,
#totalSpent::after,
#totalWin::after,
#totalLose::after,
#totalProfit::after {
    content: "P";
    margin-left: 2px;
    font-size: 12px;
    color: #00f7ff;
    opacity: 0.8;
}


/* 숫자 강조 */
.bet-summary strong {
    font-size: 18px;
    font-weight: bold;
    color: #;
    text-shadow: 0 0 8px rgba(0,255,255,0.4);
}

#totalProfit {
    color: #ff4d4d;
   text-shadow: 0 0 10px rgba(0,200,255,0.4);
}

#myPoint {
   color: #00ff9d;
    text-shadow: 0 0 10px rgba(0,255,157,0.5);
    transition: transform 0.15s ease;
}

#betSpent {
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0,200,255,0.4);
}

#totalSpent {
    color: #00aaff;
    text-shadow: 0 0 8px rgba(0,170,255,0.4);
}

#totalWin {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0,255,204,0.4);
}

#totalLose {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255,77,77,0.4);
}

.point-flash {
    transform: scale(1.2);
    color: #00ff88;
}


/* =========================
   배팅 기록 테이블 (핵심)
========================= */
.bet-records .bet-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    overflow: hidden;
}

/* header */
.bet-records .bet-table th {
    padding: 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    color: #ddd;
    text-align: center;
}

/* body */
.bet-records .bet-table td {
    font-weight: 600;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* hover */
.bet-records .bet-table tr:hover td {
    background: rgba(255,255,255,0.06);
}

/* 상태 */
.bet-records .win { color:#00ffb3;}
.bet-records .lose { color:#ff4d4d;}

@media (max-width: 768px) {

    /* 테이블 구조 유지 */
    .bet-records .bet-table thead {
        display: none;
    }

    .bet-records .bet-table {
        background: transparent;
    }

    /* 카드화 */
    .bet-records .bet-table tbody tr {
        display: block;
        background: #111a2e;
        border: 1px solid #22304d;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }

    .bet-records .bet-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 7px 0;
        font-size: 13px;
        color: #cbd5e1;

    }

    .bet-records .bet-table tbody tr td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-size: 12px;

    }

    /* 상태 */
    .bet-records .status-win { color:#22c55e; }
    .bet-records .status-lose { color:#ef4444; }
    .bet-records .status-wait { color:#64748b; }

    /* 포인트 강조 */
    .bet-records .bet-table tbody tr td:nth-child(4),
    .bet-records .bet-table tbody tr td:nth-child(5) {
        color: #e2e8f0;
        font-weight: 600;
    }

.bet-table td.win { color:#00ffb3; font-weight:bold; }
.bet-table td.lose { color:#ff4d4d; font-weight:bold; }
.bet-table td.pending { color:#94a3b8; }
}


#pagination{
    display:flex;
    gap:6px;
    justify-content:center;
    margin-top:10px;
}

.page-btn{
    padding:6px 10px;
    border:none;
    border-radius:4px;
    background:#1b2740;
    color:#fff;
    cursor:pointer;
}

.page-btn.active{
    background:#00ffb3;
    color:#000;
}



/* =========================
   게임설명 우측 고정 버튼
========================= */
.guide-floating-wrap{
    position:absolute;
    top:0px;
    right:0px;
    z-index:1200;
}

.guide-floating-btn{
    border:none;
    outline:none;
    cursor:pointer;

    padding:10px 16px;
    border-radius:6px;

    color:#fff;
    font-size:14px;
    font-weight:700;

    background:
        linear-gradient(135deg,#7c4dff,#b388ff);

    box-shadow:
        0 10px 25px rgba(124,77,255,.35),
        inset 0 1px 0 rgba(255,255,255,.2);

    transition:all .25s ease;
}

.guide-floating-btn:hover{
    transform:translateY(-2px) scale(1.03);

    box-shadow:
        0 14px 30px rgba(124,77,255,.45),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.guide-floating-btn:active{
    transform:scale(.97);
}

/* 모바일 */
@media(max-width:768px){

    .guide-floating-wrap{
        top:0px;
        right:0px;
    }

    .guide-floating-btn{
        padding:8px 12px;
        font-size:13px;
        border-radius:12px;
    }
}



/* =========================
   게임 설명 팝업
========================= */
.guide-popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:999999 !important; /* 🔥 핵심 */
    align-items:center;
    justify-content:center;
    padding:20px;
}


.guide-box{
    width:100%;
    max-width:520px;
    background:linear-gradient(135deg,#1c1b2a,#2a2340);
    border:1px solid rgba(255,255,255,.08);
    border-radius:6px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
    overflow:hidden;
    animation:pop .25s ease;
}

@keyframes pop{
    from{transform:scale(.9);opacity:0;}
    to{transform:scale(1);opacity:1;}
}

.guide-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 18px;
    background:rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.guide-header h2{
    font-size:16px;
    color:#fff;
    margin:0;
}

.guide-close{
    background:none;
    border:none;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.guide-body{
    padding:18px;
    color:#ddd;
    font-size:13px;
    line-height:1.6;
}

.guide-body h3{
    margin:14px 0 6px;
    font-size:14px;
    color:#b388ff;
}

.guide-body ul{
    padding-left:18px;
}

.guide-body li{
    margin-bottom:4px;
}
