.quiz-page-shell {
    padding: 40px 0 20px;
}

.test-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 30px;
    display: flex;
    justify-content: center;
}

.test-container--details {
    margin-top: 20px;
}

.test-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-test__details,
.single-test--article {
    min-height: auto;
    justify-content: flex-start;
}

.test-page {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.test-page.active {
    display: flex;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-accent {
    background-color: #eef2ff;
    color: #5046e5;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.test-main-title {
    font-size: 2.2rem;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.test-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 36px;
    text-align: center;
}

.test-main-visual {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(80, 70, 229, 0.08);
    overflow: hidden;
}

.test-main-visual--image {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    box-shadow: none;
}

.test-main-visual__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.test-main-visual__emoji {
    line-height: 1;
}

.bg-blue {
    background-color: #ecf7ff;
}

.test-meta-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 20px;
}

.meta-divider {
    color: #cbd5e1;
}

.progress-container {
    width: 100%;
    margin-bottom: 44px;
}

.progress-text {
    text-align: left;
    margin-bottom: 8px;
    font-weight: 700;
}

.q-number {
    color: #5046e5;
    font-size: 1.2rem;
}

.q-total {
    color: #94a3b8;
    font-size: 0.9rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background-color: #5046e5;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-text {
    font-size: 1.4rem;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 700;
    margin-bottom: 50px;
    word-break: keep-all;
}

.answer-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-result {
    background-color: #f0fdf4;
    color: #16a34a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-lead {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 8px;
}

.result-lead:empty {
    display: none;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.result-graphic-card {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    margin-bottom: 36px;
}

.result-emoji {
    line-height: 1;
}

.result-detail-box {
    width: 100%;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 24px 30px;
    text-align: left;
    border: 1px solid #eef2f6;
    margin-bottom: 30px;
}

.detail-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.result-summary {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
}

.result-summary:empty {
    display: none;
}

.result-desc-list {
    list-style: none;
}

.result-desc-list li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.result-desc-list li::before {
    content: "•";
    color: #5046e5;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.chemistry-section {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
}

.chem-card {
    flex: 1;
    padding: 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.chem-good {
    background-color: #fefce8;
    border: 1px solid #fef08a;
}

.chem-bad {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
}

.chem-tag {
    font-size: 0.75rem;
    font-weight: 700;
}

.chem-good .chem-tag {
    color: #a16207;
}

.chem-bad .chem-tag {
    color: #be123c;
}

.chem-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.action-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-start {
    background-color: #5046e5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(80, 70, 229, 0.25);
}

.btn-start:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.btn-answer {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #334155;
    justify-content: flex-start;
    text-align: left;
    padding: 20px;
    gap: 16px;
}

.answer-index {
    width: 28px;
    height: 28px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.answer-txt {
    line-height: 1.4;
    font-weight: 500;
}

.btn-answer:hover {
    background-color: #f7f6ff;
    border-color: #5046e5;
}

.btn-answer:hover .answer-index {
    background-color: #5046e5;
    color: #ffffff;
}

.btn-restart {
    background-color: #1e293b;
    color: #ffffff;
}

.btn-restart:hover {
    background-color: #0f172a;
}

.btn-share {
    background-color: #ecf2ff;
    color: #5046e5;
}

.btn-share:hover {
    background-color: #e0e9ff;
}

.single-test__details-title {
    font-size: 1.35rem;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 18px;
}

.article-cover {
    width: 100%;
    margin-bottom: 28px;
}

.article-cover__image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.quiz-post-content {
    width: 100%;
    color: #475569;
    line-height: 1.9;
}

.quiz-post-content > *:first-child {
    margin-top: 0;
}

.quiz-post-content p,
.quiz-post-content ul,
.quiz-post-content ol {
    margin: 0 0 16px;
}

.quiz-post-content h2,
.quiz-post-content h3,
.quiz-post-content h4 {
    margin: 28px 0 12px;
    color: #1e293b;
    line-height: 1.4;
}

.quiz-post-content a {
    color: #5046e5;
}

.quiz-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .quiz-page-shell {
        padding: 20px 0 10px;
    }

    .test-container {
        padding: 0 15px;
    }

    .test-wrapper {
        padding: 36px 20px;
        border-radius: 20px;
        min-height: auto;
    }

    .test-main-title {
        font-size: 1.6rem;
    }

    .test-subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .test-main-visual {
        width: 100px;
        height: 100px;
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .test-main-visual--image {
        width: min(100%, 240px);
    }

    .question-text {
        font-size: 1.15rem;
        margin-bottom: 36px;
    }

    .btn-answer {
        padding: 16px;
        gap: 12px;
    }

    .answer-index {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .answer-txt {
        font-size: 0.9rem;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .result-graphic-card {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
        margin-bottom: 24px;
    }

    .result-detail-box {
        padding: 20px;
    }

    .result-desc-list li {
        font-size: 0.88rem;
    }

    .chemistry-section {
        flex-direction: column;
        gap: 12px;
    }
}
