@font-face {
    font-family: 'RSU';
    src: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/font/RSU_Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlimamaFangYuan';
    src: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/font/AlimamaFangYuanTiVF-Thin.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
*{
	box-sizing: border-box;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'AlimamaFangYuan', sans-serif;
    background-color: #000;
    -webkit-font-smoothing: antialiased;
}

html[lang="th"] body,
.lang-th {
    font-family: 'RSU', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.scrollbar::-webkit-scrollbar{
	width : 5px;  
	height: 1px;
}
.scrollbar::-webkit-scrollbar-thumb{
	border-radius: 5px;
	background   : #b1b1b1;	
}
.scrollbar::-webkit-scrollbar-track{
	background: #dedede;
	border-radius: 6px;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
}

.page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/bg.jpg') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.42rem 0.62rem 0;
    min-height: 1.1rem;
}

.header-logo {
    display: block;
    flex-shrink: 0;
    width: 2.48rem;
    height: 0.53rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/logo.png') no-repeat center center;
    background-size: 100% 100%;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.28rem;
    margin-top: 0.06rem;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.30rem;
    padding-right: 0.44rem;
    border-right: 0.03rem solid rgba(255, 255, 255, 0.55);
}

.nav-social-item {
    display: block;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    transition: opacity 0.2s;
}

.nav-social-item:hover {
    opacity: 0.85;
}

.nav-social-item--facebook {
    width: 0.18rem;
    height: 0.32rem;
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/media_facebook.png');
}

.nav-social-item--youtube {
    width: 0.43rem;
    height: 0.30rem;
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/media_youTube.png');
}

.nav-social-item--discord {
    width: 0.39rem;
    height: 0.29rem;
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/media_discord.png');
}

.nav-login {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.12rem;
    margin-left: 0.04rem;
}

.nav-login-trigger {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.08rem;
    color: #fff;
    font-size: 0.2rem;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-login-trigger:hover {
    opacity: 0.85;
}

.nav-login-trigger.is-logged-in {
    cursor: default;
}

.nav-login-trigger.is-logged-in:hover {
    opacity: 1;
}

.nav-logout {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.2rem;
    line-height: 0.3rem;
    white-space: nowrap;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
	text-underline-offset: 4px;
}

.nav-logout:hover {
    opacity: 0.85;
}

.nav-logout.is-hidden {
    display: none;
}

.nav-lang {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.12rem;
}

.nav-lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.2rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-lang-trigger:hover {
    opacity: 0.85;
}

.nav-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -.6rem;
    z-index: 200;
    width: 2rem;
    margin-top: 0.12rem;
    padding: 0.1rem 0;
    list-style: none;
    border-bottom-left-radius: 0.24rem;
    border-bottom-right-radius: 0.24rem;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.12);
}

.nav-lang.is-open .nav-lang-dropdown {
    display: block;
}

.nav-lang-option {
    display: block;
    width: 100%;
    padding: 0.1rem 0.24rem;
    border: 0;
    background: transparent;
    color: #2e3444;
    font-family: inherit;
    font-size: 0.2rem;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-lang-option--th {
    font-family: 'RSU', sans-serif;
}

.nav-lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-lang-option.is-active {
    font-weight: bold;
}

.nav-lang-icon {
    width: 0.36rem;
    height: 0.30rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/icon_switch_lang.png') no-repeat center center;
    background-size: 100% 100%;
    flex-shrink: 0;
}

.nav-lang-text{
    display: block;
	width: .8rem;
    height: .3rem;
    line-height: .3rem;
    text-align: left;
}

.nav-login-icon {
    width: 0.43rem;
    height: 0.43rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/icon_login.png') no-repeat center center;
    background-size: 100% 100%;
    flex-shrink: 0;
}

.nav-login-text {
    display: block;
    min-width: 1.1rem;
    height: 0.3rem;
    line-height: 0.3rem;
    text-align: left;
}

.hero {
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.hero-slogan {
    margin: 0 auto 0.28rem;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    background: none;
    background-size: 100% 100%;
}

.btn-join {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 1.32rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/btn_jointest.png') no-repeat center center;
    background-size: 100% 100%;
    color: #fff;
    font-size: 0.24rem;
    font-weight: bold;
    letter-spacing: 0.02rem;
    text-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.25);
    transition: filter 0.2s;
}

.btn-join:hover {
    filter: brightness(1.06);
}

.btn-join-label--joined {
    display: none;
}

.btn-join.is-joined {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/btn_joinedtest.png');
    color: rgba(255, 255, 255, 0.92);
    font-weight: normal;
}

.btn-join.is-joined .btn-join-label--join {
    display: none;
}

.btn-join.is-joined .btn-join-label--joined {
    display: inline;
}

/* login modal */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.login-modal-open {
    overflow: hidden;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal.is-hidden {
    display: none;
}

.login-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: default;
}

.login-modal__shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    border: 0.2rem solid rgba(255, 255, 255, 0.5);
    border-radius: 0.64rem;
	width: 10.11rem;
    height: 6.12rem;
}

.login-modal__panel {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 0.70rem 0.52rem 0.52rem;
    border-radius: 0.44rem;
    background: #fff;
}

.login-modal__close {
    position: absolute;
    top: -0.44rem;
    right: -0.40rem;
    z-index: 2;
    width: 0.43rem;
    height: 0.43rem;
    padding: 0;
    border: 0;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/pop_close.png') no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-modal__close:hover {
    opacity: 0.85;
}

.login-modal__logo {
    width: 3.73rem;
    height: 0.81rem;
    margin: 0 auto 0.62rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/pop_book_logo.png') no-repeat center center;
    background-size: 100% 100%;
}

.login-modal__form {
    display: flex;
    flex-direction: column;
    align-items: center;
	width: 6.1rem;
	margin: 0 auto;
}

.login-modal__field {
    width: 100%;
    margin-bottom: 0.2rem;
}

.login-modal__code-row {
    position: relative;
    width: 100%;
    margin-bottom: 0.6rem;
}

.login-modal__input {
    display: block;
    width: 100%;
    height: 0.67rem;
    padding: 0 0.3rem;
    border: 0;
    border-radius: 9999px;
    background: #f0f2f5;
    color: #333;
    font-family: inherit;
    font-size: 0.2rem;
    line-height: 0.67rem;
    outline: none;
    -webkit-appearance: none;
}

.login-modal__input--code {
    width: 100%;
    padding-right: 2.52rem;
}

.login-modal__input::placeholder {
    color: #b0b5bd;
}

.login-modal__send-code {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.38rem;
    height: 0.67rem;
    padding: 0 0.08rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/pop_code.png') no-repeat center center;
    background-size: 100% 100%;
    color: #fff;
    font-size: 0.18rem;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
}

.login-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 0.7rem;
    border-radius: 9999px;
    background: #ffe0a3;
    color: #5c3d1e;
    font-size: 0.3rem;
	letter-spacing: 0.01rem;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    cursor: pointer;
	
}
.login-modal__submit span {
	display: block;
	height: 100%;
	line-height: 0.7rem;
	background-image: linear-gradient(to bottom, #965524, #ae6229, #cc7230);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

/* tip modal */
body.tip-modal-open {
    overflow: hidden;
}

.tip-modal {
    position: fixed;
    inset: 0;
    z-index: 510;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-modal.is-hidden {
    display: none;
}

.tip-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: default;
}

.tip-modal__shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 8.7rem;
    height: 4.63rem;
    border: 0.2rem solid rgba(255, 255, 255, 0.5);
    border-radius: 0.64rem;
}

.tip-modal__panel {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.4rem 0.56rem;
    border-radius: 0.44rem;
    background: #fff;
}

.tip-modal__close {
    position: absolute;
    top: -0.44rem;
    right: -0.40rem;
    z-index: 2;
    width: 0.43rem;
    height: 0.43rem;
    padding: 0;
    border: 0;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/pop_close.png') no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tip-modal__close:hover {
    opacity: 0.85;
}

.tip-modal__message {
    margin: 0;
    color: #2e3444;
    font-size: 0.3rem;
    font-weight: bold;
    line-height: 1.45;
    text-align: center;
}

/* slogan 切图像素尺寸不同，按稿 ÷100 → rem */
html[lang="zh"] .hero-slogan {
    width: 13.3rem;
    height: 3.2rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/slogan_zh-hans.png') no-repeat center center;
    background-size: 100% 100%;
}

html[lang="en"] .hero-slogan {
    width: 19.92rem;
    height: 2.56rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/slogan_en.png') no-repeat center center;
    background-size: 100% 100%;
}

html[lang="th"] .hero-slogan {
    width: 17.57rem;
    height: 2.87rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/questionnaire/img/slogan_th.png') no-repeat center center;
    background-size: 100% 100%;
}

/* PC 泰语：相对默认 +0.08rem（累计两次 +4 字号） */
html[lang="th"] .nav-login-trigger {
    font-size: 0.28rem;
}

html[lang="th"] .nav-logout {
    font-size: 0.28rem;
}

html[lang="th"] .nav-lang-trigger {
    font-size: 0.28rem;
}

html[lang="th"] .nav-lang-option {
    font-size: 0.28rem;
}

html[lang="th"] .btn-join {
    font-size: 0.32rem;
}

html[lang="th"] .login-modal__input {
    font-size: 0.28rem;
}

html[lang="th"] .login-modal__send-code {
    font-size: 0.26rem;
}

html[lang="th"] .login-modal__submit {
    font-size: 0.38rem;
}

html[lang="th"] .tip-modal__message {
    font-size: 0.38rem;
}