* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url(../img/bg.jpg?2025);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: auto;
    min-width: 830px;
    min-height: 830px;
    font-family: 'Apple SD Gothic Neo', 'Nanum Gothic', sans-serif;
}
ul, li{padding:0; margin:0;list-style:none;}
.main_wrap {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
a {
    text-decoration: none;
}
.main_bg{
	position: relative;
	width:786px;
	height:662px;
	margin-top: 85px;
	
	border: 6px solid #190047;
    border-radius: 25px;
    background: #2c2c7f;
	
	background-image: url(../img/main_bg.png?13);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  
}
.copy {
    position: absolute;
	bottom: -37px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.35);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-weight: 700;
}
.title_box{	
	position: absolute;
    width: 385px;
    height: 128px;
    z-index: 500;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    transform-style: preserve-3d;
}

.gmImg {
    display: block;
    position: absolute;
    background-image: url(../img/img3.png?10);
}

.topbtnBox {
    display: block;
    position: absolute;
    top: -165px;
    right: -95px;
    z-index: 3000;
}

.topbtnBox button {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
}

.topbtnBox .btn_help {    
    right: 120px;
    background-position: -90px -67px;
}

.topbtnBox .btn_scrap {
    right: 65px;
    background-position: -135px -67px;
}

.topbtnBox .btn_sound {
    right: 10px;
    background-position: -180px -67px;
}

.topbtnBox .btn_sound.off {
    background-position: -225px -67px;
}

.popuplayer {
    display: none;
    position: absolute;
    top: 0px;
    right: -16px;
    width: 800px;
    z-index: 1500;
    background-color: #28211b;
    box-sizing: border-box;
    padding-bottom: 10px;
}

.popuplayer h2 {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    background-position: 0px -125px;
    background-color: #46382b;
    color: #fff;
    padding: 0 30px;
    height: 75px;
    font-weight: bold;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.popuplayer h3 {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    height: 30px;
    background-position: 0 -141px;
    margin: 10px 0;
    padding: 0 20px;
    color: #fcba1d;
    font-weight: bold;
    letter-spacing: -1px;
}

.popuplayer ul.thlep {
    padding: 0 30px;
    margin: 0;
}

.popuplayer ul.thlep li {
    line-height: 20px;
    color: #b4ad90;
    font-size: 13px;
    letter-spacing: -1px;
}

.popuplayer .default {
    line-height: 24px;
    color: #b4ad90;
    font-size: 13px;
    padding: 0 30px;
}

.popuplayer .codebox {
    display: flex;
    border-radius: 5px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    background-color: #110803;
    margin: 10px 30px;
}

.popuplayer .codebox p {
    flex: 1;
    word-break: break-all;
    color: #ffc438;
    font-family: Tahoma, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0;
    padding: 10px 20px 10px 10px;
    margin-right: auto;
    text-align: left;
}

.popuplayer .codebox button {
    display: flex;
    position: relative;
    width: 145px;
    height: 45px;
    border-radius: 5px;
    background-color: #53392a;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    vertical-align: top;
    top: 0;
    color: #fff;
    font-weight: bold;
    letter-spacing: -1px;
}

.topbtnBox button.layer_close {
    z-index: 1600;
    top: 22px;
    right: 22px;
    width: 31px;
    height: 31px;
    background-position: -175px -28px;
}

.main {
	position: relative;
	width: 730px;
	height: 606px;
	margin: 22px;
	display: flex;
    justify-content: center;
    align-items: center;
}
.game_board{
	display:grid;
	grid-template-columns: repeat(10, 70px);
	grid-template-rows: repeat(10, 57px);
	gap: 5px;
	position: relative;
}
.game_board .cell{position:relative;}
.game_board .cell .tile{width:100%; height:100%;}	
/*
.game_board .selected{
	transform: scale(1.2);
    transform-origin: center;
    box-shadow: 0 0 5px rgba(255, 255, 255, 1);    
    border: 6px solid #fff;
    border-radius: 20px;        
}

.game_board .dice1_selected{
    transform: scale(1.2);
    transform-origin: center;
    box-shadow: 0 0 5px rgba(103, 58, 183, 0.8);
    border: 6px solid #673ab7;
    border-radius: 20px;        
}
*/
.game_board .horse{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;   
}

@keyframes pulse3x {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    16.6%    { transform: translate(-50%, -50%) scale(1.3); }
    33.3%    { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.3); }
    66.6%    { transform: translate(-50%, -50%) scale(1); }
    83.3%    { transform: translate(-50%, -50%) scale(1.3); }
}
.horse.animate-pulse {
    animation: pulse3x 2s ease-in-out 1;
}

.game_board .dice1_selected .horse{
    display: block;
    background-image: url('../img/horse_1.png?v=1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    pointer-events: none;        
}

.game_board .dice2_selected .horse{
    display: block;
    background-image: url('../img/horse_2.png?v=1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    pointer-events: none;        
}

.game_board .dice3_selected .horse{
    display: block;
    background-image: url('../img/horse_3.png?v=1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    pointer-events: none;        
}

/*아래줄*/
.pos_1 { grid-column: 9; grid-row: 10; }
.pos_2 { grid-column: 8; grid-row: 10; }
.pos_3 { grid-column: 7; grid-row: 10; }
.pos_4 { grid-column: 6; grid-row: 10; }
.pos_5 { grid-column: 5; grid-row: 10; }
.pos_6 { grid-column: 4; grid-row: 10; }
.pos_7 { grid-column: 3; grid-row: 10; }
.pos_8 { grid-column: 2; grid-row: 10; }
.pos_9 { grid-column: 1; grid-row: 10; }

/*왼쪽줄*/
.pos_10 { grid-column: 1; grid-row: 9; }
.pos_11 { grid-column: 1; grid-row: 8; }
.pos_12 { grid-column: 1; grid-row: 7; }
.pos_13 { grid-column: 1; grid-row: 6; }
.pos_14 { grid-column: 1; grid-row: 5; }
.pos_15 { grid-column: 1; grid-row: 4; }
.pos_16 { grid-column: 1; grid-row: 3; }
.pos_17 { grid-column: 1; grid-row: 2; }
.pos_18 { grid-column: 1; grid-row: 1; }

/*위쪽줄*/
.pos_19 { grid-column: 2; grid-row: 1; }
.pos_20 { grid-column: 3; grid-row: 1; }
.pos_21 { grid-column: 4; grid-row: 1; }
.pos_22 { grid-column: 5; grid-row: 1; }
.pos_23 { grid-column: 6; grid-row: 1; }
.pos_24 { grid-column: 7; grid-row: 1; }
.pos_25 { grid-column: 8; grid-row: 1; }
.pos_26 { grid-column: 9; grid-row: 1; }
.pos_27 { grid-column: 10; grid-row: 1; }

/*오른줄*/
.pos_28 { grid-column: 10; grid-row: 2; }
.pos_29 { grid-column: 10; grid-row: 3; }
.pos_30 { grid-column: 10; grid-row: 4; }
.pos_31 { grid-column: 10; grid-row: 5; }
.pos_32 { grid-column: 10; grid-row: 6; }
.pos_33 { grid-column: 10; grid-row: 7; }
.pos_34 { grid-column: 10; grid-row: 8; }
.pos_35 { grid-column: 10; grid-row: 9; }
.pos_36 { grid-column: 10; grid-row: 10; }

/*가운데 게임정보*/
.gmContent{
	grid-column: 2 / span 8;
    grid-row: 2 / span 8;
    border-radius: 15px;
	margin: 8px;
    position: relative;
}

.gmContent .scrollBox {    
    overflow: hidden;
    overflow-x: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.gmContent .scrollBox::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.gmContent .nResult {
    display: flex;
    width: 546px;
    margin: 36px 0 0 15px;
}

.nResult .resultBox{
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: hsla(20, 7%, 17%, 0.8); */
    background: #0d3443;
    border: 3px solid #88f7ff;
    outline: 1px solid #1d0618;
    outline-offset: -1px;
    width: 180px;
    border-radius: 10px;
    padding: 5px 0px;
    margin-right: 3px;
    flex-shrink: 0;
}

.nResult .resultBox .hc {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-right: 15px;    
}

.center_logo_box{
    position: absolute;
    z-index: 1000;    
    left: 48%;
    transform: translateX(-50%);
    width: 400px;
    top: 90px;
}

.center_logo_box img{
    width: 100%;
}

/*게임 결과*/
.gameResultBox {
	background-image: url(../img/img3.png?10);
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 244px;
    height: 104px;
    background-position: 0 -112px;
    z-index: 2000;
    display: none;
}

.gameResultBox h2 {
    padding: 5px 0 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: gulim;
    height: 43px;
    font-size: 12px;
    color: #fff;
}

.gameResultBox p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: gulim;
    font-size: 12px;
    height: 58px;
}

.gameResultBox p .col {
    color: #dfaf41;
    margin: 0 4px;
}

/*주사위*/
.dice_box{
    position: absolute;
    z-index: 2000;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    top: 243px;
}

.dice {
    width: 70px;
    height: 70px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-70deg) rotateY(45deg); /* 시점 */
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.dice-face {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    background: #fff;
    border: 1px solid #d9d9d9;
}

.face-1 { transform: rotateY(0deg) translateZ(35px); background: #c7c7c7;}     /* front */
.face-2 { transform: rotateY(180deg) translateZ(35px); }   /* back */
.face-3 { transform: rotateX(90deg) translateZ(35px); }    /* top */
.face-4 { transform: rotateX(-90deg) translateZ(35px); }   /* bottom */
.face-5 { transform: rotateY(90deg) translateZ(35px); }    /* right */
.face-6 { transform: rotateY(-90deg) translateZ(35px); background: #d9d9d9;}   /* left */

/*
@keyframes bounce {
0%   { transform: translateY(0) rotateX(-70deg) rotateY(45deg); }
30%  { transform: translateY(-240px) rotateX(290deg) rotateY(765deg); }
60%  { transform: translateY(-120px) rotateX(470deg) rotateY(945deg); }
100% { transform: translateY(0) rotateX(650deg) rotateY(1125deg); }
}
*/
@keyframes bounce {
    0%   { transform: translateY(0) rotateX(-70deg) rotateY(45deg); }
    25%  { transform: translateY(-240px) rotateX(290deg) rotateY(405deg); }    
    50%  { transform: translateY(-240px) rotateX(650deg) rotateY(1125deg); }
    75%  { transform: translateY(-120px) rotateX(470deg) rotateY(765deg); }
    100% { transform: translateY(0) rotateX(830deg) rotateY(1485deg); }
}

.bouncing {
animation: bounce 0.5s ease-in-out;
}

/*프로그래시브 바*/
.relativeBox {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}

.bottomBox {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    height: 51px;
    width: 270px;
    border-radius: 19px;
    background-color: #082f3e;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 4px;
    border: 2px solid #22596f;
}

.bottomBox .playResult {
    width: 100%;
    height: 38px;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Helvetica, sans-serif;
    color: #fff;
}

.bottomBox .relativeBox {
    background: transparent !important;
}

.bottomBox .progressBar {
    border-radius: 15px;
    overflow: hidden;
}

.bottomBox .progress {
    display: block;
    height: 39px;
    background-color: #57911c !important;
    -webkit-animation: cssProgressActiveRight 1.5s linear infinite;
    animation: cssProgressActiveRight 1.5s linear infinite;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
}

.bottomBox .timeBox {
    position: absolute;
    top: 0;
    height: 39px;
    width: 262px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    font-family: Tehoma, Gulim, sans-serif;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 1);
    border-radius: 16px;
}
@-webkit-keyframes cssProgressActiveRight {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -20px -20px;
    }
}

@-ms-keyframes cssProgressActiveRight {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -20px -20px;
    }
}

@keyframes cssProgressActiveRight {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -20px -20px;
    }
}

.ricon {
    position: relative;
    width: 28px;
    height: 28px;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 1);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/*홀짝*/
.ricon.r1_1 {
    background: #2193b0;
    background: -webkit-linear-gradient(45deg, #2193b0, #6dd5ed);
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.ricon.r1_1::after {
    content: '홀';
}

.ricon.r1_2 {
    background: #f12711;
    background: -webkit-linear-gradient(45deg, #f12711, #f37669);
    background: linear-gradient(45deg, #f12711, #f37669);
}

.ricon.r1_2::after {
    content: '짝';
}

/*언더/오버*/
.ricon.r2_1 {
    background: #2193b0;
    background: -webkit-linear-gradient(45deg, #2193b0, #6dd5ed);
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.ricon.r2_1::after {
    font-size: 11.5px;
    letter-spacing: -1px;
    content: '언더';
    position: relative;
    left: -1px;
}

.ricon.r2_2 {
    background: #f12711;
    background: -webkit-linear-gradient(45deg, #f12711, #f37669);
    background: linear-gradient(45deg, #f12711, #f37669);
}

.ricon.r2_2::after {
    font-size: 11.5px;
    letter-spacing: -1px;
    content: '오버';
    position: relative;
    left: -1px;
}

/*색깔*/
.ricon.r3_1 {
    background: #2193b0;
    background: -webkit-linear-gradient(45deg, #2193b0, #6dd5ed);
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.ricon.r3_1::after {    
    content: 'X2';   
}

.ricon.r3_2 {
    background: #56ab2f;
    background: -webkit-linear-gradient(45deg, #56ab2f, #a8e063);
    background: linear-gradient(45deg, #56ab2f, #a8e063);
}

.ricon.r3_2::after {
    content: 'X3';   
}

.ricon.r3_3 {
    background: #f12711;
    background: -webkit-linear-gradient(45deg, #f12711, #f37669);
    background: linear-gradient(45deg, #f12711, #f37669);
}

.ricon.r3_3::after {
    content: 'X5';
}

.ricon.r3_4 {
    background: #fa7400;
    background: -webkit-linear-gradient(45deg, #fa7400, #ffb600);
    background: linear-gradient(45deg, #fa7400, #ffb600);
    letter-spacing: -1px;
}

.ricon.r3_4::after {
    content: 'X35';
}