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





:root {
    --color-magenta: #ff00ff;
    --color-yellow: #fff200;
    --color-cyan-bg: #2ae6de;
    --color-cyan-modal: #adefe9;
    --color-cyan-shadow: #24a7a4;
    --color-dark: #000000;
    --color-gray: #2a2a2a;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-cyan-bg) url("../img/POPUP.jpg") no-repeat center center;
    background-size: cover;
    z-index: 99;
    justify-content: center;
    align-items: center;
}

.popup-close {
    position: absolute;
    width: clamp(15px, 4vw, 95px);
    height: auto;
    top: clamp(7.5px, 2vw, 51.2px);
    right: clamp(7.5px, 2vw, 51.2px);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99;
    transition: 0.1s;
}
.popup-close:hover {
    transform: scale(0.95);
    filter: brightness(1.5);
}

.popup-box {
    position: relative;
    width: auto;
    height: auto;
    color: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center;
    --animate-duration: 0.3s;
}
.popup-box.animate__animated {
    animation-duration: 0.4s;
}

.popup-content {
    width: 100%;
    max-width: clamp(1040px, 54.17vw, 1387px);

    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(7.5px, 2vw, 51.2px) clamp(18.7px, 5vw, 128px);
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}
.popup-content::-webkit-scrollbar-track {
    background: #00000020;
}
.popup-content::-webkit-scrollbar-thumb {
    background: #00000040;
}
.popup-content::-webkit-scrollbar-thumb:hover {
    background: #00000060;
}

.popup-header, .popup-headerJoin {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: clamp(5.6px, 1.5vw, 38.4px);
    padding-bottom: clamp(1.8px, 0.5vw, 12.8px);
    padding-right: clamp(1.8px, 0.5vw, 12.8px);
}
.popup-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-yellow);
    z-index: -1;
    height: clamp(9.3px, 2.5vw, 64px);
}

.popup-headerJoin::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #99fd27;
    z-index: -1;
    height: clamp(9.3px, 2.5vw, 64px);
}






.popup-title {
    position: relative;
    z-index: 2;
    width: clamp(71.25px, 19vw, 467px);
}
.login-info {
    background-color: var(--color-dark);
    color: #ffffff;
    width: 27vw;
    display: flex;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    align-items: center;
    justify-content: space-between;
    padding: clamp(4.5px, 1.2vw, 30.7px) clamp(7.5px, 2vw, 51.2px);
    gap: clamp(3.7px, 1vw, 25.6px);
}
.login-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}
.social-icons {
    display: flex;
    gap: clamp(3.7px, 1vw, 25.6px);
}
.social-icon {
    width: clamp(9.38px, 2.5vw, 33px);
    height: clamp(9.38px, 2.5vw, 33px);
    padding: clamp(1.1px, 0.3vw, 7.6px);
    background-color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 3px 3px 0 var(--color-magenta);
}
.social-icon:hover {
    transform: translateY(-3px);
}


.social-iconJoin {
    width: clamp(9.38px, 2.5vw, 33px);
    height: clamp(9.38px, 2.5vw, 33px);
    padding: clamp(1.1px, 0.3vw, 7.6px);
    background-color: #99fd27;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 3px 3px 0 var(--color-magenta);
}
.social-iconJoin:hover {
    transform: translateY(-3px);
}



.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3.7px, 1vw, 25.6px);
    margin-bottom: clamp(7.5px, 2vw, 51.2px);
}
.form-group {
    display: flex;
    height: clamp(12.3px, 3.3vw, 84.4px);
}
.form-label {
    background-color: var(--color-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    width: clamp(30px, 8vw, 204.8px);
}
.form-label.leader {
    background-color: var(--color-magenta);
}

.form-label.T1, .form-label.T3 {
    background-color: #fbf22e;
    color: #000000;
    font-weight: 700;
}

.form-label.T2 {
    background-color: #99fd27;
    color: #000000;
    font-weight: 700;
}


.form-label.Ev1 {
    width: clamp(30px, 10vw, 204.8px);
}


.form-control,
.form-control-text {
    flex: 1;
    background-color: #000000d1;
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    outline: none;
    font-family: inherit;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 clamp(3.7px, 1vw, 25.6px);
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

.form-control-text.blank {
    color: #868686;
}
.form-control::placeholder {
    color: #aaaaaa;
}

.form-control:focus {
    box-shadow: 3px 3px 0 #fff200;

    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

select.form-control {
    cursor: pointer;
    background-image: url("../img/arrow.svg");
    background-repeat: no-repeat;
    background-position: right clamp(3.7px, 1vw, 25.6px) center;
    background-size: clamp(4.8px, 1.3vw, 33.2px);
    padding-right: clamp(3.7px, 1vw, 25.6px);
}

select.form-control option {
    background-color: var(--color-gray);
    color: #fff;
}

.btn-submit {
    background-color: var(--color-magenta);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 3px 3px 0 #fff;
    height: clamp(12.3px, 3.3vw, 84.4px);
}
.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit.Ev01 {
background-color: #00e5ff;
    color: #ffffff;
}


.btn-submit.Store {
    background-color: #00e5ff;
    color: #ffffff;
    width: 100%;
    margin-bottom: 1.5vw;
}



.btn-logout, .btn-logout_T3 {
    background-color: var(--color-yellow);
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 3px 3px 0 var(--color-magenta);
    border: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: clamp(1.5px, 0.4vw, 10.2px) clamp(3.7px, 1vw, 25.6px);
}

.btn-logout_T2 {
    background-color: #99fd27;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 3px 3px 0 var(--color-magenta);
    border: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: clamp(1.5px, 0.4vw, 10.2px) clamp(3.7px, 1vw, 25.6px);
}

.btn-logout:hover,
.btn-logout_T2:hover,
.btn-logout_T3:hover {
    transform: translateY(-3px);
}
.btn-agree,
.btn-reject {
    width: auto;
    border: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.2s;
    padding: 0 clamp(4.8px, 1.3vw, 33.2px);
}
.btn-agree {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}


.btn-reject {
    background-color: var(--color-magenta);
    color: #ffffff;
}
.btn-agree:hover,
.btn-reject:hover {
    filter: brightness(1.15);
}

.notice-list-popup {
    counter-reset: notice-counter;
    list-style: none;
}
.notice-list-popup li {
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #2e2e2e;
    padding-left: clamp(8.2px, 2.2vw, 56.3px);
    margin-bottom: clamp(2.8px, 0.75vw, 19.2px);
}
.notice-list-popup li::before {
    counter-increment: notice-counter;
    content: counter(notice-counter);
    position: absolute;
    left: 0;
    top: 2px;
    background-color: #ff1bf7;
    box-shadow: 3px 3px 0 #fff200;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.1px, 1.1vw, 28.1px);
    height: clamp(3.7px, 1vw, 25.6px);
    padding-bottom: clamp(0.3px, 0.1vw, 2.5px);
}
.text-magenta {
    color: #ff1bf7;
    font-weight: bold;
}
.text-cyan {
    color: #14e9e9;
    font-weight: bold;
}

.popup_main.popup-rules-theme {
    width: clamp(262.5px, 70vw, 1333px);
    height: auto;
    max-height: 85vh;
    background: var(--color-cyan-modal);
    padding: 40px 50px;
    color: #000;
    overflow-y: auto;
}
.popup_main.popup-rules-theme::-webkit-scrollbar {
    width: 6px;
}
.popup_main.popup-rules-theme::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.popup_main.popup-rules-theme::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
}

.tag-new {
    color: #ff1bf7;
    font-size: 2.4rem;
    text-transform: uppercase;
    font-family: 'Impact', 'Anton', sans-serif;
}


.rule-heading {
    display: inline-block;
    background-color: var(--color-yellow);
    color: #000000;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 3px 3px 0 #ff1bf7;
    padding: 0 clamp(1.8px, 0.5vw, 12.8px);
    margin: 0 0 clamp(4.5px, 1.2vw, 30.7px) 0;
}
.rule-section {
    margin-bottom: 40px;
}
.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rule-counter;
}
.rule-list > li {
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #2e2e2e;
    padding-left: clamp(8.2px, 2.2vw, 56.3px);
    margin-bottom: clamp(2.8px, 0.75vw, 19.2px);
}
.rule-list > li::before {
    counter-increment: rule-counter;
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 2px;
    background-color: var(--color-magenta);
    box-shadow: 3px 3px 0 #fff200;
    color: #ffffff;
    font-size: 1rem;
    padding-bottom: .1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.1px, 1.1vw, 28.1px);
    height: clamp(3.7px, 1vw, 25.6px);
}
.sub-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
.sub-list li {
    position: relative;
    font-size: 1rem;
    color: #222222;
    padding-left: clamp(3.7px, 1vw, 25.6px);
    margin-bottom: clamp(1.1px, 0.3vw, 7.6px);
}
.sub-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
    color: #000;
}
.note-text {
    display: block;
    font-size: 0.9rem;
    color: #444;
    margin-top: 4px;
}

/* ================= RWD  ================= */
@media (max-width: 900px) {
    .popup-box {
        width: 90%;
    }
    .popup-content {
        padding: 30px;
    }
    .popup-header, .popup-headerJoin {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 0;
        padding-right: 0;
    }
    .popup-header::before {
        display: none;
    }

.popup-headerJoin::before {
        display: none;
}


    .popup-title {
        font-size: 45px;
        margin-bottom: 0;
        width: 50vw;
    }
    .login-info {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .popup-overlay,
    .popup-overlay * {
        box-sizing: border-box !important;
    }
    .popup-content::-webkit-scrollbar {
        width: 5px;
    }
    .popup-overlay {
        padding: 1vw;
    }
    .popup-close {
        position: absolute;
        width: 10vw;
        height: auto;
        padding: 0;
        right: 2vw;
        top: 2vw;
        z-index: 999;
    }
    .popup-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    .popup-box.animate__animated {
        animation-duration: 0.5s;
    }

    .form-control, .form-control-text {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 3vw;
        font-size: 0.9rem;
        min-height: 12vw;
        margin: 0;
    }


    .popup_main {
        width: 100%;
        max-width: 100%;
        background-size: cover;
        position: relative;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    .popup-content {
        width: 100%;
        max-width: 100%;
        padding: 6vw 3vw;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: transparent;
        border: none;
    }
    .popup-title {
        width: 65vw;
        max-width: 100%;
        margin: 0 auto 5vw;
        display: block;
    }
    .login-info {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 2vw;
        padding: 3vw;
        margin-bottom: 5vw;
        background-color: rgba(0,0,0,0.8);
    }
    .login-text {
        font-size: 0.95rem;
        letter-spacing: 0;
    }
    .social-icons {
        gap: 2vw;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .social-icon {
        width: 9vw;
        height: 9vw;
        max-width: none;
        max-height: none;
        padding: 2vw;
    }

.social-iconJoin {
        width: 9vw;
        height: 9vw;
        max-width: none;
        max-height: none;
        padding: 2vw; 
}


    .btn-logout,
    .btn-logout_T2,
    .btn-logout_T3 {
        font-size: 0.95rem;
        padding: 2vw 3vw;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 4vw;
        margin-bottom: 6vw;
        width: 100%;
        max-width: 100%;
    }
    .form-group {
        height: auto;
        flex-direction: row;
        align-items: stretch;
        border: none;
        width: 100%;
        max-width: 100%;
    }
    .form-label {
        width: 26vw;
        height: auto;
        padding: 3vw 2vw;
        font-size: 0.9rem;
        text-align: center;
        flex-shrink: 0;
        letter-spacing: 0;
    }

    .form-label.Ev1 {
        width: 26vw;
        /* height: auto;
        padding: 3vw 2vw;
        font-size: 0.9rem;
        text-align: center;
        flex-shrink: 0;
        letter-spacing: 0; */
    }


    select.form-control {
        background-size: 4vw;
        background-position: right 3vw center;
        padding-right: 8vw;
    }
    .btn-submit {
        width: 100%;
        max-width: 100%;
        height: 13vw;
        font-size: 1.2rem;
        margin-top: 2vw;
    }
    .form-group .btn-agree,
    .form-group .btn-reject {
        width: auto;
        padding: 0 4vw;
        font-size: 0.9rem;
        height: auto;
    }
    .notice-list-popup {
        padding-left: 0;
        width: 100%;
        overflow: hidden;
    }
    .notice-list-popup li {
        font-size: 0.95rem;
        padding-left: 8vw;
        margin-bottom: 4vw;
        word-wrap: break-word;
        word-break: break-all;
    }
    .notice-list-popup li::before {
        width: 5.5vw;
        height: 5.5vw;
        font-size: 0.9rem;
        top: 0;
    }
    .popup_main.popup-rules-theme {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        padding: 6vw 5vw;
        background: var(--color-cyan-modal);
    }
    .rule-heading {
        font-size: 1.2rem;
        margin-bottom: 4vw;
        padding: 2vw 3vw;
    }
    .rule-list > li {
        font-size: 1rem;
        padding-left: 8vw;
        margin-bottom: 4vw;
        word-wrap: break-word;
    }
    .rule-list > li::before {
        width: 5.5vw;
        height: 5.5vw;
        font-size: 0.9rem;
        top: 0;
    }
    .sub-list li {
        font-size: 0.9rem;
        padding-left: 5vw;
    }

.tag-new {
    font-size: 1.7rem;
}


}

@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;
    }
}
