@font-face {
    font-family: Nunito;
    font-weight: 100 900;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/Nunito/Nunito-ExtraLight.woff2') format('woff2');
}

@font-face {
    font-family: "Bowlby One SC";
    font-weight: 100 900;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/Bowlby_One_SC/BowlbyOneSC-Regular.woff2') format('woff2');
}

@font-face {
    font-family: source sans pro;
    font-weight: normal;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/SourceSansPro-Regular.woff2') format('woff2');
}

@font-face {
    font-family: source sans pro;
    font-weight: 700;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/SourceSansPro-Black.woff2') format('woff2')
}

@font-face {
    font-family: source sans pro;
    font-weight: 600;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/SourceSansPro-SemiBold.woff2') format('woff2')
}

@font-face {
    font-family: source sans pro;
    font-weight: 900;
    font-style: normal;
    font-display: auto;
    src: url('../../../../api/fonts/source-sans-pro/SourceSansPro-Black.woff2') format('woff2')
}

[v-cloak] {
    display: none !important;
}

[flex-center] {
    display: flex;
    align-items: center;
    justify-content: center;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--pageBg);
}

* {
    box-sizing: border-box;
}

a {
    color: #000000;
    display: inline-block;
    text-decoration: none;
}

#app {
    min-height: calc(100vh - 2rem);
}

.selectPage {
    padding-top: 4.31rem;
}

.selectPage header {
    width: 100%;
    height: 4.31rem;
    background: #FFD3F0;
    border-radius: 0 0 1.25rem 1.25rem;
    padding: 1.06rem 1rem 0;
    box-shadow: 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: center;
    flex-direction: column;

    top: 0;
    left: 50%;
    z-index: 10;
    position: fixed;
    transform: translateX(-50%);
}

.selectPage header > :first-child {
    width: 100%;
    display: grid;
    grid-template-columns: 1.03rem 1fr 1.03rem;
    align-items: center;
    margin-bottom: .41rem;
}

.selectPage header img {
    display: block;
    width: 1.03125rem;
}

.selectPage header .title {
    font-family: Nunito, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
    color: #826CFF;
}

.selectPage header .progress {
    margin: 0 auto;
    width: 14.38rem;
    height: 0.4375rem;
    border-radius: 0.296875rem;
    background: rgba(0, 0, 0, 0.1);

    position: relative;
}

.selectPage header .progress::after {
    width: var(--finish-progress);

    content: "";
    height: 100%;
    background: #FF93EC;
    border-radius: 0.296875rem;

    position: absolute;
    transition: width 0.4s ease;
}

.selectPage header .quizTitle {
    width: 100%;

    font-family: Source Sans Pro, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 130%;
    text-align: center;
    letter-spacing: normal;
    color: #000000;
}

.selectPage .question-card {
    width: 100%;
    padding: 0 1rem;
    margin: 1.25rem 0 0.9375rem;
    color: #666666;
    opacity: 0.5;

    font-family: source sans pro, sans-serif;
    font-size: 1.0625rem;
    font-weight: normal;
    line-height: 150%;
    letter-spacing: 0;
    font-feature-settings: "kern" on;

    transition: opacity 400ms ease;
}

.selectPage .question-active {
    opacity: 1
}

.selectPage .question-card > :first-child {
    color: #222222;
    font-weight: 600;
    padding-bottom: 0.625rem;
}

.selectPage .question-card > :nth-child(n + 2) {
    padding: 0.625rem 0;
}

.selectPage .question-card .question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.selectPage .question-card .question-btn > div {
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: 50%;
    border: 0.125rem solid var(--btn-color);
}

.selectPage .question-card .question-btn .isActive {
    background-color: var(--btn-color);
    background-image: url("../resources/select.webp");
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: center;
}

.selectPage .question-card .question-tag > div {
    text-align: center;
    font-family: source sans pro, sans-serif;
    font-size: 1.13rem;
}

.resultPage {
    display: none;
    position: relative;
    padding: 0.9375rem 0;
}

.resultPage .resultPageBg {
    width: 20.5rem;
    margin: 0 auto;
    position: absolute;
    inset: 0.9375rem 0;
}

.resultPage .resultPageBg .bgHeader {
    width: 16.41rem;
    height: 5.09rem;
    background: var(--contentBg);
    border-radius: 1.25rem 1.25rem 0 0;
}

.resultPage .resultPageBg .bgContent {
    width: 20.5rem;
    height: calc(100% - 5.09rem);
    background: var(--contentBg);
    border-radius: 0 1.25rem 1.25rem 1.25rem;
}

.resultPage .result-content {
    width: 20.5rem;
    padding: .94rem;
    margin: 0 auto;
    position: relative;
}

.resultPage .result-content .result-back {
    width: 1.44rem;
    height: 1.44rem;

    background-color: var(--backColor);
    -webkit-mask: url(../resources/back.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask: url(../resources/back.svg) no-repeat center;
    mask-size: contain;
}

.resultPage .result-content .result-info {
    margin-top: 1rem;

    display: flex;
    align-items: start;
    justify-content: space-between;
}

.resultPage .result-content .result-role {
    /*font-family: source sans pro, sans-serif;*/
    /*font-size: 1.88rem;*/
    /*font-weight: 900;*/
    /*line-height: 100%;*/
    /*text-transform: uppercase;*/
    /*letter-spacing: normal;*/
    /*color: rgb(var(--roleColor));*/

    /*position: relative;*/

    content: var(--resMBTI);
    font-family: Bowlby One SC, sans-serif;
    font-size: 5rem;
    font-weight: normal;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: normal;
    color: var(--resColor);
}

.resultPage .result-content .result-role span {
    /*position: relative;*/
    /*z-index: 12;*/
}

.resultPage .result-content .result-role::before {
    /*content: var(--resMBTI);*/
    /*position: absolute;*/
    /*z-index: 9;*/

    /*left: 0;*/
    /*bottom: 0;*/

    /*font-family: Bowlby One SC, sans-serif;*/
    /*font-size: 5rem;*/
    /*font-weight: normal;*/
    /*line-height: 100%;*/
    /*text-transform: uppercase;*/
    /*letter-spacing: normal;*/
    /*color: var(--resColor);*/
}

.resultPage .result-content .result-ratio {
    width: 6.88rem;
    margin-bottom: 1rem;
}

.resultPage .result-content .result-ratio-content {
    gap: 0.44rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    color: #626262;
    font-family: source sans pro, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: 0;
    font-feature-settings: "kern" on;
}

.resultPage .result-content .result-ratio-content .active {
    color: var(--activeColor);
}

.resultPage .result-content .result-ratio-content .ratio {
    width: 100%;
    height: 0.5625rem;
    border-radius: 6.90625rem;
    background: var(--ratiosBg);

    position: relative;
}

.resultPage .result-content .result-ratio-content .ratio::after {
    width: var(--ratio);
    height: 100%;
    border-radius: 6.90625rem;
    background: var(--ratiosFinish);

    content: "";
    position: absolute;
}

.resultPage .result-content .result-ratio-content .right::after {
    right: 0;
}

.resultPage .result-content .photo-frame .role {
    width: 6.06rem;
    height: 6.92rem;
    transform: rotate(8deg);
    margin-top: 1.44rem;
    margin-right: 1.9rem;
}

.resultPage .result-content .photo-frame .rahmen {
    right: -2rem;
    width: 13.07rem;
    position: absolute;
}

.resultPage .result-content .resTitle {
    margin: 1.25rem 0 .62rem;
    font-family: Source Sans Pro, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    line-height: 100%;
    text-transform: uppercase;
    letter-spacing: normal;
    color: #3D3D3D;
}

.resultPage .result-content .resDescription {
    font-family: Source Sans Pro, sans-serif;
    font-size: 0.88rem;
    font-weight: normal;
    line-height: 160%;
    letter-spacing: normal;
    color: #3D3D3D;
}

.resultPage .result-content .resDescription > div {
    display: flex;
    align-items: center;
}

.resultPage .result-content .resDescription .powers {
    font-weight: bold;
}

.resultPage .result-content .resDescription .round {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3D3D3D;
    margin-right: 0.75rem;
}

.resultPage .result-content .resDescription samp {
    font-weight: 700;
}

.resultPage .result-content .resDescription:nth-of-type(n+7){
    filter: blur(3px);
}

.resultPage .result-content .unlock {
    left: 50%;
    bottom: 10vh;
    position: fixed;
    transform: translateX(-50%);

    width: 18.63rem;
    height: 3.44rem;
    border-radius: 7.38rem;
    background: #000000;
    cursor: pointer;

    font-family: Source Sans Pro, sans-serif;
    font-size: 1.31rem;
    font-weight: 600;
    line-height: 100%;
    text-transform: capitalize;
    letter-spacing: normal;
    color: #FFFFFF;
}

.resultPage .result-content .result-flipper {
    right: 0;
    position: fixed;
    bottom: 50vh;
    z-index: 12;
    padding-top: 0.1875rem;

    width: 5.9375rem;
    height: 3.75rem;
    background: url('../resources/flipper-bg.webp') center/cover no-repeat;
}

.resultPage .result-content .result-badge {
    top: 1rem;
    right: 0;
    transform: rotate(15deg);
    position: absolute;

    width: 7.03rem;
    height: 7.09rem;
    background-color: var(--badgeBg);
    -webkit-mask: url(../resources/badge.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask: url(../resources/badge.svg) no-repeat center;
    mask-size: contain;
}

.resultPage .result-content .result-badge img {
    width: 100%;
}

.resultPage .result-content .result-badge::after {
    top: 50%;
    left: 50%;
    content: var(--resMBTI);
    position: absolute;
    transform: translate(-50%, -50%) rotate(10deg);

    font-family: Bowlby One SC, sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 100%;
    text-transform: lowercase;
    letter-spacing: normal;
    color: var(--badgeColor);
}

#reward-toast {
    display: none;
    padding: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);

    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    line-height: 110%;
    text-align: center;

    left: 50%;
    bottom: 16vh;
    z-index: 12;
    position: fixed;
    transform: translateX(-50%);
}

/* toast提示窗 */
.toast-popup {
    display: none;
    padding: 3vw;
    width: 70.28vw;
    text-align: center;
    border-radius: 1.39vw;
    background: rgba(0, 0, 0, 0.72);
    top: 50%;
    left: 50%;
    z-index: 10;
    color: #FFFFFF;
    position: fixed;
    transform: translate(-50%, -50%);
}

.toast-popup .toast-subtitle {
    font-family: HarmonyOS Sans SC, sans-serif;;
    font-size: 3.61vw;
    font-weight: normal;
    line-height: 5.33vw;
    text-align: center;
    letter-spacing: -0.063894vw;
    color: rgba(255, 255, 255, 0.54);
}

footer {
    height: 2rem;
    color: #4c4c4c;
    padding: 0 2.6rem;
    font-size: 0.74rem;
    text-align: center;
    border-top: 1px solid #3a3a3a;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 4px 1fr;
}

footer a {
    color: #3a3a3a;
    text-align: center;
}

.mask {
    inset: 0;
    z-index: 13;
    position: fixed;
    pointer-events: none;
}

.mask svg {
    width: 100%;
    height: 100%;
}

.mask img {
    left: 0;
    z-index: 14;
    width: 120px;
    display: none;
    position: absolute;
    transform: rotate(22deg);
    animation: slide 1.5s ease-in-out infinite;
}

@keyframes slide {
    0% {
        left: 0
    }
    100% {
        left: 80%;
    }
}
