.mbti-match-page {
    max-width: 1040px;
}

.mbti-match-card {
    padding: 34px;
}

.is-hidden {
    display: none !important;
}

.match-hero {
    text-align: center;
    margin-bottom: 30px;
}

.match-hero-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff7ed, #eef2ff);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.match-chip,
.match-result-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.match-hero h2 {
    margin: 16px 0 0;
    font-size: 30px;
    font-weight: 850;
    color: #111827;
    letter-spacing: -0.04em;
}

.match-hero p {
    max-width: 680px;
    margin: 14px auto 0;
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
}

.match-input-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.match-select-card {
    padding: 22px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.match-center-mark {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.match-btn-row {
    justify-content: center;
    margin-top: 24px;
}

.match-message {
    min-height: 22px;
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #2563eb;
}

.match-message.is-error {
    color: #dc2626;
}

.match-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.match-result-title {
    margin-top: 16px;
}

.match-result-title strong {
    display: block;
    font-size: 42px;
    font-weight: 950;
    line-height: 1.15;
    color: #111827;
    letter-spacing: -0.05em;
}

.match-result-title span {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 850;
    color: #374151;
}

.match-score-wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 28px;
    padding: 26px;
    border-radius: 28px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.match-score-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.match-score-circle strong {
    width: 100%;
    font-size: 52px;
    font-weight: 950;
    line-height: 1;
}

.match-score-circle span {
    width: 100%;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
}

.match-score-text h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.35;
    color: #111827;
    letter-spacing: -0.03em;
}

.match-score-text p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.match-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
    text-align: left;
}

.match-detail-box {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.match-detail-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 850;
    color: #111827;
}

.match-detail-box ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.8;
}

.match-axis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.match-axis-grid div {
    padding: 18px 16px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.match-axis-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.match-axis-grid span {
    font-size: 16px;
    font-weight: 850;
    color: #111827;
}

.match-result-actions {
    justify-content: center;
    margin-top: 24px;
}

.help-panel {
    margin-top: 32px;
}

.help-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 850;
    color: #111827;
}

.help-panel .help-box + .help-box {
    margin-top: 18px;
}

.help-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

@media (max-width: 820px) {
    .mbti-match-card {
        padding: 24px;
    }

    .match-input-grid {
        grid-template-columns: 1fr;
    }

    .match-center-mark {
        height: 26px;
    }

    .match-score-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .match-detail-grid,
    .match-axis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mbti-match-card {
        padding: 20px;
    }

    .match-hero h2 {
        font-size: 24px;
    }

    .match-result-title strong {
        font-size: 34px;
    }

    .match-detail-grid,
    .match-axis-grid {
        grid-template-columns: 1fr;
    }

    .match-btn-row,
    .match-result-actions {
        flex-direction: column;
    }

    .match-btn-row .utility-btn,
    .match-result-actions .utility-btn {
        width: 100%;
    }
}