@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
            --bg: #F9F6F0;
            --primary: #FF7A45;
            --primary-dark: #E66533;
            --primary-light: #FFF0EB;
            --accent: #f5a623;
            --green: #27ae60;
            --green-light: #e8f8ef;
            --text: #2A2A2A;
            --text-muted: #6B7280;
            --card: #FFFFFF;
            --border: #E5E0D8;
            --shadow-sm: 0 4px 12px rgba(0,0,0,0.02);
            --shadow-md: 0 8px 30px rgba(0,0,0,0.02);
            --shadow-lg: 0 16px 40px rgba(0,0,0,0.04);
            --radius: 16px;
            --radius-lg: 24px;
            --transition: 0.2s ease;

            /* 차트 컬러 팔레트 — 애니멀 테마 */
            --chart-blue: rgba(99, 179, 237, 1);
            --chart-blue-fill: rgba(99, 179, 237, 0.25);
            --chart-green: rgba(72, 199, 142, 1);
            --chart-green-fill: rgba(72, 199, 142, 0.25);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.7;
            letter-spacing: -0.02em;
            -webkit-font-smoothing: antialiased;
        }

/* ===== BENTO GRID SYSTEM ===== */
.bento-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    width: 100%;
}
@media (max-width: 768px) {
    .bento-container {
        padding: 30px 16px 60px;
    }
}

.bento-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px 0;
    width: 100%;
}
.bento-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 30px;
    word-break: keep-all;
}
.bento-hero h1 span {
    color: var(--primary);
}
@media (max-width: 768px) {
    .bento-hero h1 { font-size: 2.1rem; margin-bottom: 20px; }
    .bento-hero { margin-bottom: 40px; }
}
@media (max-width: 480px) {
    .bento-hero h1 { font-size: 1.65rem; }
}

.bento-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    max-width: 100%;
}
.bento-hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}
@media (max-width: 768px) {
    .bento-hero-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.15rem;
    }
}

.bento-grid-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}
@media (max-width: 768px) {
    .bento-grid-dashboard { 
        grid-template-columns: 1fr; 
        gap: 16px;
    }
}

.bento-grid-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}
@media (max-width: 900px) {
    .bento-grid-content { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .bento-grid-content { grid-template-columns: 1fr; gap: 16px; }
}

.bento-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    width: 100%;
    overflow: hidden;
}
.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #FFF0EB;
}
@media (max-width: 768px) {
    .bento-card {
        padding: 24px 20px;
        border-radius: var(--radius);
    }
    .bento-card:hover {
        transform: translateY(-3px); /* 모바일에서는 살짝만 움직임 */
    }
}

.bento-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: keep-all;
}
@media (max-width: 480px) {
    .bento-card-title { font-size: 1.15rem; }
}
.bento-card-title .icon {
    font-size: 1.8rem;
    background: var(--bg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .bento-card-title .icon { font-size: 1.5rem; width: 36px; height: 36px; }
}

.bento-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    word-break: keep-all;
}
@media (max-width: 480px) {
    .bento-card-text { font-size: 0.9rem; }
}

/* Dashboard Specific Cards */
.bento-dash-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #FFF0EB 0%, #FFFFFF 100%);
    border: 2px solid #FFF0EB;
}
.bento-dash-stat:hover {
    border-color: var(--primary);
}
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin: 16px 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .stat-number { font-size: 3.2rem; }
}
@media (max-width: 480px) {
    .stat-number { font-size: 2.6rem; }
}
.stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    word-break: keep-all;
}
@media (max-width: 480px) {
    .stat-label { font-size: 0.95rem; }
}

.bento-mini-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.bento-mini-tools .bento-card-title { margin-bottom: 24px; }
@media (max-width: 768px) {
    .bento-mini-tools .bento-card-title { margin-bottom: 16px; }
}

.mini-tool-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #F9F6F0;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 100%;
}
.mini-tool-btn:hover {
    background: #FFFFFF;
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
@media (max-width: 768px) {
    .mini-tool-btn { padding: 16px; font-size: 1.05rem; }
}
@media (max-width: 480px) {
    .mini-tool-btn { font-size: 0.95rem; gap: 12px; }
}
.mini-tool-btn .icon {
    font-size: 1.8rem;
    background: #FFFFFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .mini-tool-btn .icon { font-size: 1.4rem; width: 40px; height: 40px; }
}

/* Content List */
.content-list {
    list-style: none;
    padding: 0;
}
.content-list li {
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
    word-break: keep-all;
}
@media (max-width: 480px) {
    .content-list li { font-size: 0.88rem; }
}
.content-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}
.content-list li strong {
    color: var(--text);
    font-weight: 700;
}

        /* ===== HEADER ===== */
        header {
            background: var(--card);
            border-bottom: 1px solid var(--border);
            padding: 16px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow-sm);
        }
        .header-inner {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            position: relative;
        }
        .logo {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: -0.5px;
        }
        nav {
            margin-left: auto;
        }
        nav ul { display: flex; list-style: none; gap: 20px; }
        nav a {
            text-decoration: none;
            color: var(--text-muted);
            font-size: 0.88rem;
            font-weight: 500;
            transition: color var(--transition);
        }
        nav a:hover { color: var(--primary); }

        /* ===== CONTAINER ===== */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 24px 20px 60px;
        }

        /* ===== TEST & RESULT ZONES CONSTRAINTS ===== */
        #test-zone, #mbti-zone, #result-zone {
            max-width: 760px;
            margin: 0 auto;
        }

        /* ===== AD PLACEHOLDER ===== */
        .ad-placeholder {
            background: #f3f4f6;
            border: 1px dashed #c5ccd6;
            border-radius: 10px;
            padding: 14px;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.78rem;
            margin: 18px 0;
            min-height: 90px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 4px;
        }
        .ad-placeholder::before {
            content: "ADVERTISEMENT";
            display: block;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            color: #b0bec5;
        }

        /* ===== INTRO ARTICLE ===== */
        .intro-article {
            background: var(--card);
            border-radius: var(--radius);
            padding: 36px 32px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-md);
            margin-bottom: 28px;
        }
        .intro-article h1 {
            font-size: 1.65rem;
            font-weight: 900;
            color: var(--text);
            border-left: 4px solid var(--primary);
            padding-left: 14px;
            margin-bottom: 18px;
            line-height: 1.4;
        }
        .intro-article h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-top: 26px;
            margin-bottom: 10px;
        }
        .intro-article p {
            font-size: 0.95rem;
            color: #4a5568;
            margin-bottom: 14px;
            text-align: justify;
        }
        .intro-article ul { margin-left: 18px; margin-bottom: 14px; }
        .intro-article li {
            font-size: 0.93rem;
            color: #4a5568;
            margin-bottom: 9px;
        }
        .intro-article li strong { color: var(--primary-dark); }

        /* ===== START BUTTON ===== */
        .btn-start {
            display: block;
            width: 100%;
            background: linear-gradient(135deg, var(--primary) 0%, #5ba3f5 100%);
            color: #fff;
            border: none;
            padding: 18px;
            font-size: 1.05rem;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            text-align: center;
            margin-top: 24px;
            box-shadow: 0 4px 14px rgba(74, 144, 226, 0.35);
            font-family: 'Noto Sans KR', sans-serif;
        }
        .btn-start:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 144, 226, 0.45);
        }

        /* ===== TEST ZONE ===== */
        #test-zone { display: none; }

        .progress-wrap { margin-bottom: 24px; }
        .progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .progress-label { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
        .progress-count { font-size: 0.8rem; color: var(--text-muted); }
        .progress-bar-track {
            width: 100%;
            background: var(--border);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #63b3ed 0%, var(--primary) 50%, #48c78e 100%);
            border-radius: 4px;
            transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Question Card */
        .question-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 30px 26px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            animation: fadeSlide 0.35s ease;
        }
        @keyframes fadeSlide {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* 문항 번호 뱃지 — 카테고리 레이블 제거, 중립 번호만 */
        .question-number-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #ebf3fc, #d6eaff);
            color: var(--primary);
            font-size: 0.88rem;
            font-weight: 800;
            border-radius: 50%;
            margin-bottom: 16px;
            font-family: 'Outfit', sans-serif;
            box-shadow: 0 2px 6px rgba(74,144,226,0.15);
        }

        .question-text {
            font-size: 1.06rem;
            font-weight: 500;
            color: var(--text);
            margin-bottom: 28px;
            line-height: 1.7;
        }

        /* Likert Scale */
        .likert-scale {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            padding: 0 4px;
            gap: 4px;
        }
        .likert-scale::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 8%;
            right: 8%;
            height: 2px;
            background: linear-gradient(90deg, #63b3ed, #48c78e);
            opacity: 0.35;
            z-index: 1;
            border-radius: 2px;
        }
        /* likert-option: label 자체가 클릭 영역 */
        .likert-option {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
            cursor: pointer;
            transition: transform 0.15s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .likert-option:hover { transform: translateY(-2px); }

        /* label이 전체 클릭 영역 담당 */
        .likert-label-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            width: 100%;
        }

        /* radio input 숨기기 — label 내부 첫 자식으로 배치 */
        .likert-label-wrap input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            pointer-events: none;
        }

        /* 커스텀 원형 버튼 — 크기별 차등 */
        .likert-circle {
            border-radius: 50%;
            background: var(--card);
            border: 2px solid #d1dce8;
            margin: 0 auto 9px;
            transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .likert-circle[data-val="1"] { width: 24px; height: 24px; }
        .likert-circle[data-val="2"] { width: 28px; height: 28px; }
        .likert-circle[data-val="3"] { width: 32px; height: 32px; }
        .likert-circle[data-val="4"] { width: 28px; height: 28px; }
        .likert-circle[data-val="5"] { width: 24px; height: 24px; }

        .likert-circle::after {
            content: '';
            width: 45%;
            height: 45%;
            border-radius: 50%;
            background: transparent;
            transition: background 0.2s;
        }

        /* JS로 .selected 클래스를 토글하여 상태 표현 */
        .likert-label-wrap.selected .likert-circle {
            border-color: var(--primary);
            background: linear-gradient(135deg, #63b3ed, #4a90e2);
            box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.15), 0 2px 8px rgba(74,144,226,0.3);
            transform: scale(1.18);
        }
        .likert-label-wrap.selected .likert-circle::after {
            background: rgba(255,255,255,0.7);
        }

        .likert-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            line-height: 1.3;
            text-align: center;
        }
        .likert-label-wrap.selected .likert-label {
            color: var(--primary);
            font-weight: 700;
        }

        /* Scale endpoint labels */
        .scale-endpoints {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            padding: 0 4px;
            font-size: 0.72rem;
            color: #aab4be;
        }

        /* 하단 버튼 영역 */
        .test-btn-row {
            display: flex;
            gap: 12px;
            margin-top: 22px;
        }
        .btn-prev {
            flex: 0 0 auto;
            background: var(--card);
            color: var(--text-muted);
            border: 2px solid var(--border);
            padding: 14px 20px;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: 'Noto Sans KR', sans-serif;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-prev:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }
        .btn-prev:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        .btn-prev:disabled:hover {
            border-color: var(--border);
            color: var(--text-muted);
            background: var(--card);
        }
        .btn-next {
            flex: 1;
            background: linear-gradient(135deg, var(--primary) 0%, #5ba3f5 100%);
            color: #fff;
            border: none;
            padding: 15px;
            font-size: 1rem;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: 'Noto Sans KR', sans-serif;
            box-shadow: 0 4px 12px rgba(74,144,226,0.3);
        }
        .btn-next:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(74,144,226,0.4);
        }

        /* ===== RESULT ZONE ===== */
        #result-zone { display: none; }

        .result-header {
            background: linear-gradient(135deg, #1a2a4a 0%, #2c5282 60%, #2d6a4f 100%);
            border-radius: var(--radius);
            padding: 36px 30px;
            text-align: center;
            margin-bottom: 24px;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .result-header::before {
            content: '🐾';
            position: absolute;
            font-size: 120px;
            opacity: 0.06;
            top: -20px;
            right: -20px;
            line-height: 1;
        }
        .result-header::after {
            content: '🐾';
            position: absolute;
            font-size: 80px;
            opacity: 0.05;
            bottom: -10px;
            left: -10px;
            line-height: 1;
        }
        .result-tag {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            opacity: 0.65;
            margin-bottom: 12px;
        }
        .result-type-name {
            font-size: 1.55rem;
            font-weight: 900;
            line-height: 1.45;
            text-shadow: 0 2px 12px rgba(0,0,0,0.25);
        }

        /* ===== CHART CARD — 애니멀 테마 ===== */
        .chart-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 28px 24px 22px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }
        /* 카드 상단 컬러 바 */
        .chart-card.inherent-card { border-top: 4px solid var(--chart-blue); }
        .chart-card.acquired-card { border-top: 4px solid var(--chart-green); }

        .chart-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .chart-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        .inherent-card .chart-card-icon {
            background: linear-gradient(135deg, #ebf7ff, #d0ecff);
        }
        .acquired-card .chart-card-icon {
            background: linear-gradient(135deg, #e8f8ef, #c8f0db);
        }
        .chart-card-info {}
        .chart-card-title {
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
        }
        .chart-card-sub {
            font-size: 0.76rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* 차트 배경 장식 (발바닥 패턴) */
        .chart-bg-deco {
            position: absolute;
            bottom: 12px;
            right: 16px;
            font-size: 3rem;
            opacity: 0.04;
            line-height: 1;
            pointer-events: none;
            user-select: none;
        }

        /* Score chips 아래 */
        .score-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
            justify-content: center;
        }
        .score-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .score-chip.blue {
            background: #ebf7ff;
            color: #2980b9;
        }
        .score-chip.green {
            background: var(--green-light);
            color: var(--green);
        }
        .score-chip .chip-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }
        .score-chip.blue .chip-dot { background: var(--chart-blue); }
        .score-chip.green .chip-dot { background: var(--chart-green); }

        /* ===== REPORT CARD ===== */
        .report-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 32px 28px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            margin-bottom: 24px;
        }
        .report-section-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text);
            padding-bottom: 10px;
            border-bottom: 2px solid var(--bg);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .report-text {
            font-size: 0.93rem;
            color: #4a5568;
            line-height: 1.88;
            text-align: justify;
        }
        .summary-list { list-style: none; margin-top: 18px; }
        .summary-list li {
            background: var(--bg);
            border-left: 3px solid var(--primary);
            padding: 10px 14px;
            margin-bottom: 8px;
            border-radius: 0 8px 8px 0;
            font-size: 0.87rem;
            color: var(--text);
        }
        .summary-list li.green { border-left-color: var(--green); }
        .summary-list li.orange { border-left-color: var(--accent); }

        .humor-box {
            background: linear-gradient(135deg, #fff8ee 0%, #fff3cd 100%);
            border: 1px solid #fde8b0;
            border-radius: 10px;
            padding: 18px 20px;
            margin-top: 20px;
            font-size: 0.9rem;
            color: #7b4f00;
            font-weight: 600;
            font-style: italic;
            line-height: 1.7;
        }

        /* Buttons */
        .btn-group {
            display: flex;
            gap: 12px;
            margin-top: 6px;
        }
        .btn-kakao {
            flex: 1;
            background: #fee500;
            color: #191919;
            border: none;
            padding: 15px;
            font-size: 0.95rem;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: 'Noto Sans KR', sans-serif;
        }
        .btn-kakao:hover { background: #f5d900; transform: translateY(-1px); }
        .btn-save {
            flex: 1;
            background: #27ae60;
            color: #ffffff;
            border: none;
            padding: 15px;
            font-size: 0.95rem;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: 'Noto Sans KR', sans-serif;
        }
        .btn-save:hover { background: #219653; transform: translateY(-1px); }
        .btn-restart {
            flex: 1;
            background: #636e72;
            color: #fff;
            border: none;
            padding: 15px;
            font-size: 0.95rem;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition);
            font-family: 'Noto Sans KR', sans-serif;
        }
        .btn-restart:hover { background: #4a5568; transform: translateY(-1px); }

        /* ===================== MBTI ZONE ===================== */
        #mbti-zone {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        .mbti-container {
            background: var(--surface);
            border-radius: 20px;
            padding: 40px 20px;
            box-shadow: var(--shadow);
            text-align: center;
        }
        .mbti-container h2 {
            color: var(--primary);
            font-size: 1.8rem;
            margin-bottom: 12px;
        }
        .mbti-container p {
            color: #555;
            margin-bottom: 30px;
            line-height: 1.5;
            font-size: 1.05rem;
        }
        .mbti-select-wrapper {
            position: relative;
            max-width: 320px;
            margin: 0 auto 30px auto;
        }
        .mbti-select {
            width: 100%;
            padding: 16px 20px;
            font-size: 1rem;
            font-family: inherit;
            color: #333;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background-color: #fff;
            appearance: none;
            -webkit-appearance: none;
            outline: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .mbti-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
        }
        .mbti-select-wrapper::after {
            content: '▼';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
            pointer-events: none;
            font-size: 0.8rem;
        }

        /* ===== MODAL ===== */
        .modal {
            display: none;
            position: fixed;
            z-index: 300;
            inset: 0;
            background: rgba(0,0,0,0.55);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal.open { display: flex; }
        .modal-content {
            background: var(--card);
            border-radius: var(--radius);
            width: 100%;
            max-width: 640px;
            max-height: 82vh;
            overflow-y: auto;
            padding: 30px 28px;
            position: relative;
            box-shadow: var(--shadow-md);
        }
        .modal-close {
            position: absolute;
            top: 16px; right: 18px;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-muted);
            background: none;
            border: none;
            line-height: 1;
        }
        .modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; }
        .modal-body { font-size: 0.86rem; color: var(--text); line-height: 1.7; }
        .modal-body h4 { color: var(--primary-dark); margin: 14px 0 6px; }
        .modal-body p { margin-bottom: 10px; }

        /* ===== FOOTER ===== */
        footer {
            background: var(--card);
            border-top: 1px solid var(--border);
            padding: 30px 20px;
            text-align: center;
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-top: 60px;
        }
        .footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 12px; flex-wrap: wrap; }
        .footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; cursor: pointer; transition: color var(--transition); }
        .footer-links a:hover { color: var(--primary); }

        /* ===== RESPONSIVE & MOBILE MENU ===== */
        .menu-toggle {
            display: none !important;
            font-size: 1.8rem;
            background: none;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 4px;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block !important;
            }
            nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--card);
                border-bottom: 1px solid var(--border);
                box-shadow: 0 4px 10px rgba(0,0,0,0.05);
                padding: 10px 0;
                z-index: 99;
            }
            nav.active {
                display: block;
            }
            nav ul {
                flex-direction: column;
                gap: 0;
            }
            nav li {
                text-align: center;
            }
            nav a {
                display: block;
                padding: 14px 20px;
                font-size: 1rem;
                border-bottom: 1px solid #f0f0f0;
            }
            nav li:last-child a {
                border-bottom: none;
            }

            .intro-article { padding: 24px 18px; }
            .intro-article h1 { font-size: 1.3rem; }
            .question-card { padding: 22px 16px; }
            .btn-group { flex-direction: column; }
            .result-type-name { font-size: 1.25rem; }
            .report-card { padding: 22px 16px; }
        }
