/* common.css */
@font-face {
    font-family: 'CustomFont';
    src: url('/font/DungGeunMo-60513aaa7442397557e52236ec6f8c51.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* 컨테이너 */
.container {
    width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    background: url('/images/mainbackg-a6013d11c4ab2143ce0d24809a9ec57f.png') repeat center center;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 공통 topnav */
.topnav {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.topnav a {
    height: 60px;
    line-height: 60px;
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.topnav a:hover {
    background-color: rgba(255,255,255,0.15);
}

.topnav a.active {
    background-color: #04ca04;
    color: #fff;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    padding: 20px;
}

.menu-page {
    display: none;
}

/* 게임 상태 바 */
.game-status-bar {
    color: white;
    text-align: center;
    width: 100%;
    height: 40px;
    line-height: 40px;

    position: sticky;
    top: 0;
    /*z-index: 999;*/
}

/* info-card 공통 */
.info-card {
    margin: 30px auto 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    font-size: 15px;
}
.info-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* info-row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-label {
    font-weight: 600;
    text-align: left;
}

.info-value {
    text-align: right;
}

/* toggle-section */
.toggle-section {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.toggle-section label {
    display: block;
    margin-bottom: 8px;
}
.toggle-section input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 8px;
    border-radius: 4px;
    border: none;
}

body.anon .topnav a:not(#menu-game):not(#menu-ingameserver):not(#menu-board) {
    pointer-events: none;
    opacity: 0.5;
}

.response-message {
    display: block;
    margin-top: 6px;
    font-weight: 600;
}

.info-bar-color{
    background-color: #04ca04;
}

.gray-color {
    color: #a2a2a2;
}

.info-card button {
    background-color: #04ca04;
    color: #fff;
    font-size: 14px;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.info-card button:hover {
    background-color: #12f512;
}

.win-row {
    color: #04ca04;
    /*background-color: #04ca04;*/
}


/* 날짜 인풋 .. */
label.date-label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    color: #ddd;
    font-weight: 500;
}


input[type="date"].date-input {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
}


input[type="date"].date-input:focus {
    outline: none;
    border-color: #04ca04;
}


input[type="date"].date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 유저 정보 퀵 */
.user-quick-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #222;
    color: #fff;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
}

.user-quick-info .level-icon {
    width: 24px;
    height: 24px;
    background: url('/images/level_icon-babc635ddcbd718a74cbd8bb36373a09.png') no-repeat center center;
    background-size: contain;
}

.user-quick-info .cash-icon {
    width: 24px;
    height: 24px;
    background: url('/images/dia-icon-27ad03e254bcf2fb8c40da5932906d2e.png') no-repeat center center;
    background-size: contain;
}

.ticket-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/images/dia-icon-27ad03e254bcf2fb8c40da5932906d2e.png') no-repeat center center;
    background-size: contain;
    margin-right:4px;
    vertical-align:middle;
}
.messenger-group{
    margin-right:auto;
    display:flex;
    gap:10px;
    align-items:center;
}

.social-icon{
    width:28px;height:28px;cursor:pointer;
    background-size:contain;background-repeat:no-repeat;background-position:center;
}
.social-icon.telegram{background-image:url('/images/telegramicon-93bc86adf194633f383ba9a5ebeda166.png');}
.social-icon.signal  {background-image:url('/images/signalicon-c704d48955c3e61f30d4f97db1e4ef8a.png');}
.social-icon.kakaotalk  {background-image:url('/images/kakaoicon-7c06d246088cfad8d7fbe2c7b2ce7f37.png');}

.toast{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);
    background:#222;color:#fff;padding:6px 12px;border-radius:4px;
    opacity:0;transition:opacity .3s;}
.toast.show{opacity:1;}

.dia-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/images/dia-icon-27ad03e254bcf2fb8c40da5932906d2e.png') no-repeat center center;
    background-size: contain;
    margin: 0 4px 0 2px;
    vertical-align: text-bottom;
}

.vertical-middle {
    vertical-align:middle;
}

.tablebackColor{
    background-color: rgba(255,255,255,0.1);
}


.green-button {
    background-color: #04ca04;
    color: #fff;
    font-size: 14px;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.green-button:hover {
    background-color: #12f512;
}


.green-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}




#consultBar{
    position:fixed; left:-110px; top:50%;
    transform:translateY(-50%);
    width:140px; height:110px;
    display:flex; align-items:center;
    transition:left .35s ease;
    z-index:9999;
    flex-direction:row-reverse;
}

#consultToggle{
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    width:32px; height:100%;
    background: rgba(0, 0, 0, 0.35); color:#fff; cursor:pointer;
    gap:10px;
}
#consultToggle .arrow{font-size:18px; line-height:18px;}
#consultToggle .label{font-size:12px; writing-mode:vertical-rl;}

#consultBar.open{ left:0; }


#consultBar .icons{
    background:#222; height:100%; width:80px;
    display:flex; flex-direction:column; gap:8px;
    align-items:center; justify-content:center;
}
.social-icon{
    width:40px; height:40px; cursor:pointer;
    background-size:contain; background-repeat:no-repeat; background-position:center;
}
.social-icon.telegram{background-image:url('/images/telegramicon-93bc86adf194633f383ba9a5ebeda166.png');}
.social-icon.signal  {background-image:url('/images/signalicon-c704d48955c3e61f30d4f97db1e4ef8a.png');}
.social-icon.kakaotalk  {background-image:url('/images/kakaoicon-7c06d246088cfad8d7fbe2c7b2ce7f37.png');}


.toast-container{position:fixed;bottom:70px;left:50%;
    transform:translateX(-50%);}
.toast-message{background:#222;color:#fff;padding:6px 14px;border-radius:4px;
    margin-top:6px;opacity:0;animation:fade .3s forwards;}
@keyframes fade{to{opacity:1}}

/*  제목 1.2, 1.1*/
@media screen and (max-width: 768px) {
    html, body  {
        font-size: 17px;
    }
    .topnav {
        font-size: 1.2rem;
    }
    .info-card {
        font-size: 1.1rem;
    }
    .info-card button {
        font-size: 1.2rem;
    }
    .game-status-bar{
        font-size: 1.2rem;
    }

    .green-button{
        font-size: 1.2rem;
    }
    .player-info p {
        font-size: 1.1rem;
    }

    .ticket-summary {
        font-size: 1.2rem;
    }

    #currentCashContainer{
        font-size: 1.2rem;
    }

    .board-title{
        font-size: 1.2rem;
    }

    .user-quick-info {
        font-size: 1.1rem;
    }
    .dia-icon {
        width: 20px;
        height: 20px;
    }

    #consultBar{
        left:-80px;
        width:115px; height:140px;
    }
    #consultToggle{
        width:40px; height:100%;
    }
    #consultToggle .arrow{ font-size: 1.3rem; line-height:1.3rem;}
    #consultToggle .label{font-size:1.3rem; writing-mode:vertical-rl;}
    #consultBar .icons{
        gap:10px;
    }
    .social-icon{
        width:50px; height:50px;
    }
}
