body.survey-modal-open {
    overflow: hidden;
}

.survey-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a2332;
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.survey-modal.is-hidden {
    display: none;
}

.survey-modal__shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 12.97rem;
    padding-top: 0.5rem;
    padding-bottom: 0.35rem;
}

.survey-modal__header {
    position: relative;
    z-index: 22;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto -0.23rem;
}

.survey-modal__header > .survey-modal__close {
    position: absolute;
    bottom: 0;
    right: -0.6rem;
    z-index: 3;
    width: 0.52rem;
    height: 0.52rem;
    padding: 0;
    border: 0;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_close.png') no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
}

.survey-modal__title {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    background-size: 100% 100%;
}

/* 问卷顶栏标题切图像素尺寸不同，按稿 ÷100 → rem */
html[lang="zh"] .survey-modal__title {
    width: 11.47rem;
    height: 1.84rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_title_cn.png') no-repeat center center;
    background-size: 100% 100%;
}

html[lang="en"] .survey-modal__title {
    width: 10.21rem;
    height: 2.38rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_title_en.png') no-repeat center center;
    background-size: 100% 100%;
}

html[lang="th"] .survey-modal__title {
    width: 12.11rem;
    height: 1.84rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_title_th.png') no-repeat center center;
    background-size: 100% 100%;
}

.survey-modal__panel {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 12.97rem;
    height: 5.48rem;
    padding: 0.72rem .6rem 0.65rem .7rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquete_main.png') no-repeat center center;
    background-size: 100% 100%;
}

.survey-modal__scroll {
    box-sizing: border-box;
    height: 4.05rem;
    overflow-y: auto;
    color: #3d3d3d;
    font-size: 0.22rem;
    line-height: 0.32rem;
	padding-right: .1rem;
}

.survey-modal__greeting {
    margin: 0 0 0.12rem;
    font-weight: bold;
}

.survey-modal__para {
    margin: 0 0 0.16rem;
}

.survey-modal__para strong {
    font-weight: bold;
}

.survey-modal__section-title {
    margin: 0 0 0.08rem;
    font-weight: bold;
}

.survey-modal__info-list {
    margin: 0;
    padding: 0 0 0 0.22rem;
}

.survey-modal__info-list li {
    margin-bottom: 0.04rem;
}

.survey-modal__start {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.02rem;
    height: 1rem;
    margin: 0.28rem auto 0;
    border-radius: 0.12rem;
    background: #2baf7f;
    color: #fff;
    font-size: 0.36rem;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

.survey-modal__intro.is-hidden,
.survey-modal__quiz.is-hidden,
.survey-modal__complete.is-hidden {
    display: none;
}

.survey-modal__panel--quiz {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.95rem 0.45rem 1rem;
    overflow: hidden;
    min-height: 0;
}

.survey-modal__panel--quiz .survey-question {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.08rem;
    -webkit-overflow-scrolling: touch;
}

.survey-modal__panel--quiz .survey-question__options,
.survey-modal__panel--quiz .survey-question__options.is-scrollable,
.survey-modal__panel--quiz .survey-question--text .survey-question__options,
.survey-modal__panel--quiz .survey-question--dropdown .survey-question__options,
.survey-modal__panel--quiz .survey-question--matrix .survey-question__options {
    max-height: none;
    overflow: visible;
}

.survey-modal__panel--quiz .survey-progress {
    flex-shrink: 0;
    margin-top: 0.12rem;
    margin-bottom: 0;
    padding-top: 0.28rem;
}

.survey-question__head {
    margin: 0 0 0.24rem;
    color: #3d3d3d;
    font-size: 0.22rem;
    font-weight: bold;
    line-height: 0.34rem;
    white-space: pre-line;
}

.survey-question__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.4rem;
    row-gap: 0.18rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.survey-question__options.is-scrollable {
    max-height: 2.85rem;
    overflow-y: auto;
    padding-right: 0.08rem;
}

.survey-question__options[data-row-divide="1"] {
    grid-template-columns: 1fr;
}

.survey-option {
    display: block;
    cursor: pointer;
}

.survey-option__row {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
}

.survey-option__input-wrap {
    position: relative;
    flex-shrink: 0;
    width: 0.21rem;
    height: 0.21rem;
    margin-top: 0.04rem;
}

.survey-option__input-wrap .radio-bg {
    display: block;
    width: 100%;
    height: 100%;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_radio_unchecked.png') no-repeat center center;
    background-size: 100% 100%;
}

.survey-option__input-wrap .radio-bg.active {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_radio_checked.png');
}

.survey-option__input-wrap--checkbox {
    width: 0.24rem;
    height: 0.23rem;
}

.survey-option__input-wrap .checkbox-bg {
    display: block;
    width: 100%;
    height: 100%;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_checkbox_unchecked.png') no-repeat center center;
    background-size: 100% 100%;
}

.survey-option__input-wrap .checkbox-bg.active {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_checkbox_checked.png');
}

.survey-option__input-wrap input[type="radio"],
.survey-option__input-wrap input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.survey-option__text {
    flex: 1;
    color: #3d3d3d;
    font-size: 0.2rem;
    line-height: 0.3rem;
}

.survey-option__other {
    display: none;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0.08rem;
    padding: 0.06rem 0.1rem;
    border: 1px solid #d6d2d3;
    border-radius: 0.06rem;
    font-family: inherit;
    font-size: 0.16rem;
    line-height: 0.28rem;
    color: #4e5870;
}

.survey-option--has-other .survey-option__other {
    display: block;
}

.survey-option__other::placeholder {
    color: #b0b5bd;
}

.survey-modal__footer {
    position: relative;
    z-index: 2;
    width: 12.97rem;
    margin: 0.28rem auto 0;
}

.survey-progress {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding-top: 0.14rem;
    margin-bottom: 0;
}

.survey-progress__track {
    position: relative;
    height: 0.02rem;
    border-radius: 0.03rem;
    background: #a8a8a8;
    overflow: visible;
}

.survey-progress__dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.survey-progress__dot {
    position: absolute;
    top: 50%;
    width: 0.08rem;
    height: 0.08rem;
    border-radius: 50%;
    background: #a8a8a8;
    transform: translate(-50%, -50%);
}

.survey-progress__dot.is-answered {
    background: #2baf7f;
}

.survey-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 0.1rem;
    background: #2baf7f;
    transition: width 0.2s ease;
    z-index: 1;
}

.survey-progress__cur {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 3;
    width: 0.28rem;
    height: 0.29rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/progress_cur.png') no-repeat center center;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.survey-modal__next,
.survey-modal__done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.02rem;
    height: 1rem;
    margin: 0 auto;
    border-radius: 0.12rem;
    background: #2baf7f;
    color: #fff;
    font-size: 0.36rem;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

.survey-modal__panel--complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.survey-complete__message {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    color: #8a8a8a;
    font-size: 0.22rem;
    line-height: 0.36rem;
}

.survey-modal__complete.is-progress-hidden .survey-progress {
    display: none;
}

.survey-modal__panel--complete .survey-progress {
    flex-shrink: 0;
    margin-top: 0.12rem;
    margin-bottom: 0;
    padding-top: 0.28rem;
}

.survey-complete__message p {
    margin: 0 0 0.12rem;
}

.survey-complete__message p.survey-complete__spacer {
    height: 0.2rem;
    margin: 0;
    padding: 0;
}

.survey-complete__social {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin-top: 0.28rem;
    margin-bottom: 0.08rem;
}

.survey-complete__social-item {
    display: block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.survey-complete__social-item:hover {
    opacity: 0.85;
}

.survey-complete__social-item--youtube {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquet_youtube.png');
}

.survey-complete__social-item--facebook {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquet_fb.png');
}

.survey-complete__social-item--discord {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/enquet_discord.png');
}

.survey-question--text .survey-question__options,
.survey-question--dropdown .survey-question__options {
    display: block;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.survey-question__textarea,
.survey-question__text-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.16rem 0.2rem;
    border: 1px solid #d6d2d3;
    border-radius: 0.08rem;
    font-family: inherit;
    font-size: 0.18rem;
    line-height: 0.28rem;
    color: #3d3d3d;
}

.survey-question__textarea {
    height: 3rem;
    resize: none;
}

.survey-question__text-input {
    height: 0.52rem;
    margin-top: 0;
}

.survey-question__select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 0.52rem;
    padding: 0 0.2rem;
    border: 1px solid #d6d2d3;
    border-radius: 0.08rem;
    font-family: inherit;
    font-size: 0.18rem;
    line-height: 0.28rem;
    color: #3d3d3d;
    background: #fff;
    cursor: pointer;
}

.survey-question__select option[value=""] {
    color: #b0b5bd;
}

.survey-question__textarea::placeholder,
.survey-question__text-input::placeholder {
    color: #b0b5bd;
}

.survey-question--matrix .survey-question__options {
    display: block;
    max-height: 3.35rem;
    overflow-y: auto;
}

.survey-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.18rem;
    color: #3d3d3d;
}

.survey-matrix th,
.survey-matrix td {
    padding: 0.08rem 0.06rem;
    text-align: center;
    vertical-align: middle;
}

.survey-matrix th:first-child,
.survey-matrix td:first-child {
    text-align: left;
    max-width: 2.2rem;
    line-height: 0.28rem;
}

.survey-matrix__radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.survey-matrix__radio .radio-bg {
    display: block;
    width: 0.21rem;
    height: 0.21rem;
    background: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_radio_unchecked.png') no-repeat center center;
    background-size: 100% 100%;
}

.survey-matrix__radio .radio-bg.active {
    background-image: url('https://media.game-tree.com/mabinogimobile/actv/2026/creatorProgram/img/icon_radio_checked.png');
}

.survey-matrix__radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.survey-option--image {
    grid-column: span 2;
}

.survey-option__img {
    display: block;
    max-width: 100%;
    max-height: 1.2rem;
    margin-top: 0.08rem;
    object-fit: contain;
}

.survey-question--image-grid .survey-question__options {
    grid-template-columns: 1fr 1fr;
}

/* PC 泰语：相对默认 +0.08rem（累计两次 +4 字号） */
html[lang="th"] .survey-modal__scroll {
    font-size: 0.3rem;
}

html[lang="th"] .survey-modal__start {
    width: 4.2rem;
}

html[lang="th"] .survey-modal__start,
html[lang="th"] .survey-modal__next,
html[lang="th"] .survey-modal__done {
    font-size: 0.48rem;
}

html[lang="th"] .survey-question__head {
    font-size: 0.3rem;
}

html[lang="th"] .survey-option__text {
    font-size: 0.28rem;
}

html[lang="th"] .survey-option__other {
    font-size: 0.24rem;
}

html[lang="th"] .survey-complete__message {
    font-size: 0.3rem;
}

html[lang="th"] .survey-question__textarea,
html[lang="th"] .survey-question__text-input,
html[lang="th"] .survey-question__select {
    font-size: 0.3rem;
}

html[lang="th"] .survey-matrix {
    font-size: 0.26rem;
}
