@charset "utf-8";

:root{
    --mental-bg: #f4f7fb;
    --mental-card: #ffffff;
    --mental-line: #dbe6f2;
    --mental-text: #233142;
    --mental-sub: #5e7084;
    --mental-primary: #5aa8f5;
    --mental-primary-deep: #7f74dc;
    --mental-accent: #7c4dff;
    --mental-soft: #eef6ff;
    --mental-soft-2: #f8fbff;
    --mental-success: #3bb273;
    --mental-warning: #f39c12;
    --mental-danger: #ff5b7f;
    --mental-shadow: 0 16px 40px rgba(69, 102, 145, 0.10);
    --mental-radius-xl: 26px;
    --mental-radius-lg: 20px;
    --mental-radius-md: 14px;
}

.zzoa-mental-wrap{
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 50px;
    color: var(--mental-text);
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    word-break: keep-all;
}

.mental-hero{
    margin-bottom: 20px;
}

.mental-hero__inner{
    background: linear-gradient(135deg, #fafdff 0%, #f4f8ff 45%, #f7f2ff 100%);
    border: 1px solid #e6eef9;
    border-radius: 26px;
    box-shadow: var(--mental-shadow);
    padding: 24px 24px;
    position: relative;
    overflow: hidden;
}

.mental-hero__inner::before{
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(90,168,245,0.22), transparent 65%);
    pointer-events: none;
}

.mental-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(90,168,245,0.12);
    color: #4176d6;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mental-title{
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: #4378d8;
    font-weight: 900;
}

.mental-subtitle{
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--mental-sub);
    line-height: 1.7;
}

.hero-mini-features{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-mini-item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.8);
    border: 1px solid #e2ebf6;
    border-radius: 999px;
    font-size: 13px;
    color: #516479;
    font-weight: 700;
}

.hero-mini-icon{
    font-size: 15px;
}

.mental-start-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mental-main{
    margin-top: 18px;
}

.mental-card{
    background: var(--mental-card);
    border: 1px solid #e5edf7;
    border-radius: var(--mental-radius-xl);
    box-shadow: var(--mental-shadow);
}

.quiz-card{
    padding: 24px;
}

.quiz-top{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.quiz-count{
    min-width: 102px;
    text-align: center;
    padding: 13px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mental-primary), var(--mental-primary-deep));
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(95, 139, 235, 0.28);
}

.quiz-progress{
    position: relative;
    flex: 1;
    height: 14px;
    border-radius: 999px;
    background: #edf4fb;
    overflow: hidden;
}

.quiz-progress__bar{
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mental-primary), var(--mental-primary-deep));
    transition: width .35s ease;
}

.question-chip{
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f8ff;
    color: #5c7baf;
    border: 1px solid #dce7f7;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.quiz-question{
    margin: 0;
    font-size: 34px;
    line-height: 1.45;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-align: center;
    padding: 10px 0 0;
}

.quiz-help{
    text-align: center;
    margin: 12px 0 28px;
    color: var(--mental-sub);
    font-size: 15px;
}

.answer-list{
    display: grid;
    gap: 14px;
}

.answer-item{
    border: 2px solid #dbe7f3;
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px 18px 18px 58px;
    cursor: pointer;
    position: relative;
    transition: all .2s ease;
    min-height: 74px;
    display: flex;
    align-items: center;
}

.answer-item:hover{
    transform: translateY(-2px);
    border-color: #9cc4f1;
    box-shadow: 0 12px 26px rgba(89, 138, 210, 0.10);
    background: #ffffff;
}

.answer-item.selected{
    border-color: #699ff0;
    background: linear-gradient(135deg, rgba(90,168,245,0.11), rgba(127,116,220,0.10));
    box-shadow: 0 12px 28px rgba(95, 139, 235, 0.16);
}

.answer-item::before{
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #bfd2e7;
    border-radius: 50%;
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    transition: all .2s ease;
}

.answer-item.selected::before{
    border-color: #699ff0;
    background: radial-gradient(circle at center, #699ff0 0 45%, #ffffff 46% 100%);
}

.answer-item__text{
    font-size: 18px;
    line-height: 1.7;
    color: #374b61;
    font-weight: 700;
}

.quiz-bottom{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.mental-btn{
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 800;
    transition: all .2s ease;
}

.mental-btn:hover{
    transform: translateY(-1px);
}

.mental-btn--primary{
    background: linear-gradient(135deg, var(--mental-primary), var(--mental-primary-deep));
    color: #fff;
    box-shadow: 0 12px 26px rgba(89, 138, 210, 0.20);
}

.mental-btn--line{
    background: #fff;
    color: #49637f;
    border: 1px solid #d9e6f4;
}

.mental-btn--ghost{
    background: rgba(255,255,255,0.86);
    color: #55708d;
    border: 1px solid #dce7f4;
}

.mental-btn--share{
    background: linear-gradient(135deg, #6fc2ff, #7a7dff);
    color: #fff;
}

.loading-card{
    text-align: center;
    padding: 42px 22px;
    margin-top: 18px;
}

.loading-ring{
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 6px solid #f1dcea;
    border-top-color: #f264b0;
    animation: spinRing 1s linear infinite;
}

@keyframes spinRing{
    to{ transform: rotate(360deg); }
}

.loading-card h3{
    margin: 0 0 10px;
    font-size: 28px;
    color: #7c39d7;
}

.loading-card p{
    margin: 0;
    color: var(--mental-sub);
    font-size: 16px;
    line-height: 1.7;
}

.loading-steps{
    display: grid;
    gap: 10px;
    margin-top: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.loading-step{
    background: #faf5ff;
    border: 1px solid #efddff;
    color: #7a46bf;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
}

.result-card{
    padding: 26px;
    margin-top: 18px;
}

.result-header{
    text-align: center;
}

.result-header__label{
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf5ff;
    color: #567fc4;
    border: 1px solid #d6e5f8;
    font-size: 13px;
    font-weight: 800;
}

.result-header__title{
    margin: 14px 0 8px;
    font-size: 36px;
    font-weight: 900;
    color: #5b8ee5;
    letter-spacing: -0.04em;
}

.result-header__desc{
    margin: 0;
    font-size: 15px;
    color: var(--mental-sub);
    line-height: 1.7;
}

.result-hero-box{
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.result-age-box{
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
        linear-gradient(135deg, #5ba9f6 0%, #6d94ef 45%, #9c85e9 100%);
    box-shadow: 0 18px 36px rgba(91, 148, 233, 0.26);
    position: relative;
    overflow: hidden;
}

.result-age-box::after{
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.10);
    top: -60px;
    right: -40px;
    border-radius: 40px;
    transform: rotate(18deg);
}

.result-age-box__label{
    font-size: 26px;
    font-weight: 800;
    opacity: 0.92;
}

.result-age-box__number{
    font-size: 96px;
    line-height: 1;
    font-weight: 900;
    margin: 20px 0 10px;
    letter-spacing: -0.04em;
}

.result-age-box__type{
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
}

.result-summary-box{
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
    border: 1px solid #e2ecf9;
    border-radius: 24px;
    padding: 22px;
}

.result-summary-box__top{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.result-highlight{
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff2f8;
    color: #dc4a8e;
    border: 1px solid #ffd5e9;
    font-size: 13px;
    font-weight: 800;
}

.result-badge{
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef5ff;
    color: #4d73c8;
    border: 1px solid #d8e6fb;
    font-size: 13px;
    font-weight: 800;
}

.result-main-desc{
    margin: 0;
    font-size: 17px;
    line-height: 1.9;
    color: #33495f;
    font-weight: 700;
}

.result-keywords{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.result-keyword{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dde8f5;
    color: #526880;
    font-size: 14px;
    font-weight: 700;
}

.result-detail-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.result-detail-card{
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #e3edf8;
    background: #fbfdff;
}

.result-detail-card__icon{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(90,168,245,0.12), rgba(127,116,220,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.result-detail-card h3{
    margin: 4px 0 8px;
    font-size: 18px;
    color: #3d5873;
}

.result-detail-card p{
    margin: 0;
    color: #5f7184;
    line-height: 1.8;
    font-size: 15px;
}

.result-score-section{
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    border: 1px solid #e3edf8;
}

.score-section-head h3{
    margin: 0;
    font-size: 24px;
    color: #486fae;
}

.score-section-head p{
    margin: 8px 0 0;
    color: var(--mental-sub);
    line-height: 1.7;
    font-size: 15px;
}

.score-bars{
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.score-bar-item{
    background: #fff;
    border: 1px solid #e4edf8;
    border-radius: 18px;
    padding: 14px 16px;
}

.score-bar-head{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.score-bar-label{
    font-size: 15px;
    color: #37516a;
    font-weight: 800;
}

.score-bar-value{
    font-size: 14px;
    color: #4f71a7;
    font-weight: 800;
}

.score-bar-track{
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #edf4fb;
    overflow: hidden;
}

.score-bar-fill{
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #69b3f8, #8e7ee7);
    transition: width .6s ease;
}

.result-action-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.share-message{
    margin-top: 14px;
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #f3fbff 0%, #eef6ff 100%);
    border: 1px solid #d5e8fb;
    color: #46617e;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.share-url{
    margin-top: 8px;
    color: #4b73cc;
    font-weight: 800;
    word-break: break-all;
}

.mental-info-section{
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.info-block{
    padding: 22px;
}

.info-block__title{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.info-block__title h3{
    margin: 0;
    font-size: 24px;
    color: #446aab;
}

.info-block__icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(90,168,245,0.14), rgba(127,116,220,0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item{
    border-radius: 18px;
    background: #f9fbff;
    border: 1px solid #e3edf8;
    padding: 18px;
}

.info-item strong{
    display: block;
    margin-bottom: 8px;
    color: #395572;
    font-size: 16px;
}

.info-item p{
    margin: 0;
    color: #607387;
    font-size: 14px;
    line-height: 1.8;
}

.guide-card{
    padding: 24px;
}

.guide-title-row{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.guide-title-row h3{
    margin: 0;
    font-size: 24px;
    color: #4a72b1;
}

.guide-icon{
    font-size: 24px;
}

.guide-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-item{
    display: flex;
    gap: 14px;
    border-radius: 20px;
    border: 1px solid #e2ebf7;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
    padding: 18px;
}

.guide-item__icon{
    font-size: 24px;
    flex-shrink: 0;
}

.guide-item strong{
    display: block;
    margin-bottom: 6px;
    color: #395572;
    font-size: 16px;
}

.guide-item p{
    margin: 0;
    color: #607387;
    font-size: 14px;
    line-height: 1.8;
}

.mental-footer-note{
    text-align: center;
    color: #7f8ea1;
    font-size: 12px;
    margin-top: 24px;
}

.hidden{
    display: none !important;
}

@media (max-width: 768px){
    .zzoa-mental-wrap{
        padding: 16px 12px 40px;
    }

    .mental-hero__inner,
    .quiz-card,
    .result-card,
    .info-block,
    .guide-card{
        padding: 18px;
        border-radius: 20px;
    }

    .mental-title{
        font-size: 28px;
    }

    .quiz-top{
        gap: 10px;
        align-items: center;
    }

    .quiz-count{
        min-width: 88px;
        font-size: 22px;
        padding: 12px 14px;
    }

    .quiz-question{
        font-size: 26px;
    }

    .answer-item{
        min-height: 68px;
        padding: 16px 16px 16px 50px;
    }

    .answer-item::before{
        left: 18px;
        width: 18px;
        height: 18px;
    }

    .answer-item__text{
        font-size: 16px;
    }

    .quiz-bottom{
        flex-direction: column;
    }

    .mental-btn{
        width: 100%;
    }

    .result-header__title{
        font-size: 28px;
    }

    .result-hero-box,
    .result-detail-grid,
    .info-grid,
    .guide-grid{
        grid-template-columns: 1fr;
    }

    .result-age-box__label{
        font-size: 20px;
    }

    .result-age-box__number{
        font-size: 72px;
    }

    .result-age-box__type{
        font-size: 24px;
    }

    .result-main-desc{
        font-size: 16px;
    }
}