@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap");

:root {
    --btn-bg: #4a2914;
    --text-dark: #29180c;
    --text-red: #d75e5e;
    --text-popup: #686868;
    --form-bg: #ffffff;
    --label-color: #5e5853;
    --input-bg: #e3d8ce;
    --placeholder-color: #ffffff;
    --active-green: #73e852;
    --border-radius-pill: 999px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
}
#popup-content-login::-webkit-scrollbar,
#popup-content-logout::-webkit-scrollbar {
    width: 0.937cqw;
}
#popup-content-login::-webkit-scrollbar-track,
#popup-content-logout::-webkit-scrollbar-track {
    background: transparent;
    margin: 1.5cqw 0;
}
#popup-content-login::-webkit-scrollbar-thumb,
#popup-content-logout::-webkit-scrollbar-thumb {
    background-color: rgba(60, 47, 35, 0.2);
    border-radius: 50cqw;
    border: 0.312cqw solid transparent;
    background-clip: padding-box;
    transition: background-color 0.2s ease;
}
#popup-content-login::-webkit-scrollbar-thumb:hover,
#popup-content-logout::-webkit-scrollbar-thumb:hover {
    background-color: rgba(60, 47, 35, 0.3);
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #24160bcc;
    z-index: 98;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(2px);
}
.popup-close {
    position: absolute;
    width: 2.813cqw;
    height: auto;
    top: -1cqw;
    right: -1cqw;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99;
    transform: skew(0deg);
    transition: 0.3s;
}
.popup-close:hover {
    filter: brightness(1.2);
    transform: scale(0.95);
}
.popup-box {
    position: relative;
    width: auto;
    height: auto;
    color: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center;
}
#popup_box.animate__animated {
    animation-duration: 0.7s;
}
.popup_main {
    display: flex;
    flex-direction: column;
    position: relative;
    width: auto;
    height: auto;
    margin: 0;
    color: #464141;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    border-radius: 1.458cqw;
}
.popup-title {
    width: 100%;
    padding: 1.5cqw 0;
    background-color: #862e00cc;
    background-image: url("../img/wood.jpg");
    background-size: auto;
    background-repeat: repeat;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.156cqw;
    font-size: 1.458cqw;
    text-align: center;
}
.popup-text01 {
    position: relative;
    width: auto;
    margin-top: 2cqw;
    padding: 1.5% 18%;
    font-size: 1.083cqw;
    line-height: 1.5;
    letter-spacing: 0.052cqw;
    color: #fff;
    background-color: #d6c8ba;
    border-radius: 50cqw;
}
.pop_send {
    position: relative;
    width: auto;
    padding: 0.333cqw 5cqw;
    font-size: 1.416cqw;
    line-height: 1.7;
    font-weight: 600;
    margin: 5% 0;
    color: #fff;
    background-color: var(--btn-bg);
    border-radius: 50cqw;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.pop_send:hover {
    transform: scale(0.95);
}
#popup-content-logout {
    position: relative;
    display: flex;
    height: auto;
    max-height: 50vh;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.083cqw 1.666cqw;
    flex-direction: column;
    align-items: center;
    width: 22.5cqw;
}
#box-login {
    position: relative;
    display: flex;
    gap: 1.666cqw;
    color: #fff;
    width: auto;
    height: auto;
    z-index: 1;
    margin-top: 0;
    justify-content: center;
}
#popup-content-login {
    position: relative;
    display: none;
    height: auto;
    max-height: 50vh;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.083cqw 1.666cqw;
    flex-direction: column;
    align-items: center;
    width: 22.5cqw;
}
#box-ro-logout {
    display: none;
    position: relative;
    font-size: 0.8cqw;
    font-weight: 400;
    letter-spacing: 0.1cqw;
    line-height: 1.75;
    color: #fff;
    width: auto;
    height: auto;
    padding: 2.5cqw;
    z-index: 1;
    background-color: #ffffff59;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1cqw;
}
#fb-login,
#gp-login,
#ios-login {
    display: block;
    position: relative;
    width: 6cqw;
    max-width: 5.208cqw;
    height: 6cqw;
    max-height: 5.208cqw;
    background-color: #815031;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: pointer;
    border-radius: 0.833cqw;
    transition: transform 0.25s ease;
}
#fb-login {
    background-image: url("../img/login-btn01.png");
}
#gp-login {
    background-image: url("../img/login-btn02.png");
}
#ios-login {
    background-image: url("../img/login-btn03.png");
}
#fb-login:hover,
#gp-login:hover,
#ios-login:hover {
    transform: scale(0.95);
}
#btn_ok {
    display: block;
    position: relative;
    width: 4.4cqw;
    height: 2.5cqw;
    background-image: url("../img/btn_dc.png");
    background: #ff000050;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
#btn_ok:hover {
    transform: scale(0.95);
}
#ro-logout {
    position: relative;
    width: auto;
    padding: 0.25cqw 2.083cqw;
    font-size: 0.916cqw;
    font-weight: 500;
    letter-spacing: 0.052cqw;
    line-height: 1.5;
    margin: 1% 0 10%;
    color: #fff;
    background-color: var(--btn-bg);
    border-radius: 50cqw;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
#ro-logout:hover {
    transform: scale(0.95);
    filter: brightness(1.1);
}
#order {
    position: relative;
    width: 3cqw;
    height: 3cqw;
    background-image: url("../img/arrow.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0.5cqw 0;
    z-index: 1;
}
#box-rorb-logout {
    display: none;
    position: relative;
    background-color: #ffffff50;
    font-size: 0.8cqw;
    font-weight: 400;
    letter-spacing: 0.1cqw;
    line-height: 1.75;
    color: #fff;
    width: 42.7cqw;
    height: 15cqw;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    padding: 6cqw 0 0;
    background-image: url("../img/step-1.png");
    background-size: cover;
    background-repeat: no-repeat;
}
#rorb-logout {
    display: block;
    position: relative;
    width: 19.4cqw;
    height: 2.6cqw;
    background-image: url("../img/btn_dc.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: pointer;
    margin: 0.5cqw 0;
    transition: transform 0.2s ease-in-out;
}
#rorb-fb,
#rorb-gp,
#rorb-ios {
    position: relative;
    width: 3cqw;
    height: 3cqw;
    background: #fff00050;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
#rorb-fb:hover,
#rorb-gp:hover,
#rorb-ios:hover {
    transform: scale(0.95);
}
.box-option {
    display: block;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
}
.box-option.t1 {
    background-image: url("../img/text-1.png");
}
.box-option.t2 {
    background-image: url("../img/t1.png");
}
.box-option.t3 {
    background: #5570E8;
}
.box-option.t4 {
    background: #5570E8;
}
.box-option.t5 {
    background: #5570E8;
}
.account {
    color: var(--btn-bg);
    font-size: 1cqw;
    font-weight: 700;
    margin-bottom: 0.312cqw;
    letter-spacing: 0.078cqw;
}
.custom-dropdown {
    appearance: none;
    width: auto;
    padding: 0.6cqw 2.5cqw 0.6cqw 0.8cqw;
    background-color: #ffffff;
    border-radius: 21.7cqw;
    color: #bbb;
    font-size: 0.8cqw;
    text-align: center;
    cursor: pointer;
    background-image: url("../img/dropdown.png");
    background-repeat: no-repeat;
    background-position: right 0.52cqw center;
    background-size: 1.6cqw;
}
.custom-dropdown:valid {
    color: #5d5d5d;
}
.custom-dropdown option {
    color: #868686;
}
.custom-dropdown:focus {
    outline: none;
}
.custom-dropdown option[value=""][disabled] {
    display: none;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: notice-counter;
}
.notice-list li {
    counter-increment: notice-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.2cqw;
    font-size: clamp(0.729cqw, 1.2cqw, 0.833cqw);
    line-height: 1.65;
    color: var(--text-popup);
    padding: 0.208cqw 0.416cqw;
    border-radius: 0.416cqw;
    transition: background-color 0.2s ease;
}
.notice-list li:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.notice-list li::before {
    content: counter(notice-counter) ".";
    flex-shrink: 0;
    width: 1.8em;
    margin-right: 0.208cqw;
    text-align: left;
}
.notice-list li p {
    margin: 0;
    flex: 1;
    word-break: break-word;
}
.notice-list li.is-warning,
.notice-list li.is-warning::before {
    color: var(--text-red);
    font-weight: bold;
}
.text-qa {
    color: var(--text-red);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.916cqw;
}
.text-qa:hover {
    color: #e77474;
}
* {
    -webkit-tap-highlight-color: transparent;
}
.game-form-container {
    width: 90%;
    position: relative;
    left: 1%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.416cqw;
    margin-bottom: 1.041cqw;
}
.form-label {
    font-size: 0.875cqw;
    font-weight: 600;
    color: var(--label-color);
    letter-spacing: 0.026cqw;
}
.input-control,
.select-control {
    width: 100%;
    height: 2.5cqw;
    background-color: #d6c8ba;
    border: none;
    outline: none;
    border-radius: var(--border-radius-pill);
    padding: 0 1.041cqw;
    font-size: 0.833cqw;
    color: #ffffff;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.input-control {
    width: auto;
}
.input-control::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}
.input-control:focus,
.select-control:focus {
    background-color: #704a24c2;
}
.select-wrapper {
    position: relative;
    width: 100%;
}
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.041cqw;
    top: 50%;
    transform: translateY(-40%);
    width: 0;
    height: 0;
    border-left: 0.312cqw solid transparent;
    border-right: 0.312cqw solid transparent;
    border-top: 0.416cqw solid #ffffff;
    pointer-events: none;
}
.select-control:invalid {
    color: var(--placeholder-color);
}
.select-control option {
    background-color: #ffffff;
    color: var(--label-color);
}
.phone-group {
    display: flex;
    flex-direction: column;
    gap: 0.625cqw;
}
.radio-group {
    display: flex;
    gap: 0.833cqw;
}
.radio-option {
    flex: 1;
    position: relative;
}
.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6% 0;
    background-color: #d6c8ba;
    color: #ffffff;
    font-size: 0.875cqw;
    font-weight: 500;
    letter-spacing: 0.208cqw;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
.radio-label:hover {
    background-color: #704a24c2;
}
.radio-label:active {
    transform: scale(0.98);
}
.radio-option input[type="radio"]:checked + .radio-label {
    background-color: var(--active-green);
}

@media screen and (max-width: 768px) {
    .popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #24160bcc;
        z-index: 98;
        justify-content: center;
        align-items: center;
    }
    .popup-box {
        width: 92%;
        position: relative;
        height: auto;
        color: aliceblue;
    }
    #popup_box.animate__animated {
        animation-duration: 0.7s;
    }
    .popup-close {
        position: absolute;
        width: 12vw;
        height: auto;
        top: -7vh;
        right: 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 99;
        transform: skew(0deg);
        padding: 0;
    }

    .popup_main {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        margin: 0 auto;
        background-color: #fff;
        color: #464141;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        border-radius: 4vw;
    }
    .popup-title {
        width: 100%;
        padding: 4vw 0;
        background-size: cover;
        font-size: 6vw;
        letter-spacing: 1vw;
    }

    #popup-content-login,
    #popup-content-logout {
        width: 100%;
        max-height: 56vh;
        padding: 6vw 4vw;
        box-sizing: border-box;
    }

    #box-login {
        gap: 6vw;
        margin-top: 4vw;
    }
    #fb-login,
    #gp-login,
    #ios-login {
        width: 16vw;
        height: 16vw;
        max-width: none;
        max-height: none;
        border-radius: 3vw;
    }
    .popup-text01 {
        font-size: 4.5vw;
        padding: 1vw 10vw;
        margin-top: 6vw;
        margin-bottom: 4vw;
        border-radius: 50vw;
    }

    .account {
        font-size: 5vw;
        margin-bottom: 2vw;
    }
    #ro-logout {
        font-size: 4vw;
        padding: 2vw 8vw;
        margin: 2vw 0 6vw;
        border-radius: 50vw;
    }
    .game-form-container {
        width: 100%;
        left: 0;
    }
    .form-group {
        gap: 2vw;
        margin-bottom: 5vw;
    }
    .form-label {
        font-size: 4vw;
    }
    .input-control,
    .select-control {
        height: 12vw;
        padding: 0 4vw;
        font-size: 4vw;
        border-radius: 999px;
    }
    .select-wrapper::after {
        right: 4vw;
        border-left: 1.5vw solid transparent;
        border-right: 1.5vw solid transparent;
        border-top: 2vw solid #ffffff;
    }
    .phone-group {
        gap: 3vw;
    }
    .radio-group {
        gap: 3vw;
    }
    .radio-label {
        font-size: 4vw;
        padding: 4vw 0;
    }

    .pop_send {
        font-size: 5vw;
        padding: 3vw 25vw;
        margin: 8vw 0 4vw;
        border-radius: 999px;
    }

    .notice-list li {
        font-size: 4vw;
        margin-bottom: 3vw;
        padding: 1vw;
    }
    .notice-list li::before {
        margin-right: 2vw;
        width: 1.5em;
    }
    .text-qa {
        font-size: 3.8vw;
    }
}

@media screen and (min-aspect-ratio: 19/9) and (max-aspect-ratio: 26/9) {
    .popup_main {
        transform: scale(0.8);
        transform-origin: center;
    }
}
@media screen and (min-aspect-ratio: 35/10) and (max-aspect-ratio: 36/10) and (min-width: 2200px) {
    .popup_main {
        transform: scale(0.6);
        transform-origin: center;
    }
}
