/* ==================== 허니랩 디자인 토큰 ==================== */
:root {
    --honey: #FFC93C;
    --honey-dark: #F5A623;
    --honey-light: #FFE8A3;
    --cream: #FFF9E6;
    --cream-dark: #FAF0D0;
    --brown: #5D4037;
    --brown-light: #8D6E63;
    --pink: #FF8FA3;
    --green: #88C88C;
    --blue: #7FB3D5;
    --purple: #B388EB;
    --shadow: 4px 4px 0 var(--brown);
    --shadow-lg: 6px 6px 0 var(--brown);
    --shadow-sm: 3px 3px 0 var(--brown);
    --radius: 20px;
    --radius-lg: 32px;
}

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

html, body {
    font-family: 'Gowun Dodum', 'Gaegu', -apple-system, 'Noto Sans KR', sans-serif;
    background: var(--cream);
    color: var(--brown);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-title { font-family: 'Jua', sans-serif; }
.font-cute  { font-family: 'Gaegu', sans-serif; }

/* ==================== 애니메이션 ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pop-in {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    70%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
@keyframes gleam {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

.float   { animation: float 3s ease-in-out infinite; }
.wiggle  { animation: wiggle 2s ease-in-out infinite; }
.pop-in  { animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.fade-up { animation: fade-up 0.6s ease-out forwards; opacity: 0; }

/* ==================== 배경 장식 ==================== */
.hex-pattern {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 201, 60, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 143, 163, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(136, 200, 140, 0.08) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* ==================== 네비게이션 ==================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 230, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--honey);
    padding: 14px 20px;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--brown);
    font-family: 'Jua', sans-serif;
    font-size: 22px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--honey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid var(--brown);
    box-shadow: 2px 2px 0 var(--brown);
}
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-links a {
    color: var(--brown);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover {
    background: var(--honey);
    color: var(--brown);
}

/* ==================== 컨테이너 ==================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.narrow { max-width: 720px; margin: 0 auto; }

/* ==================== 버튼 ==================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--honey);
    color: var(--brown);
    border: 3px solid var(--brown);
    border-radius: 50px;
    font-family: 'Jua', sans-serif;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--brown); }
.btn-outline { background: white; }
.btn-pink    { background: var(--pink); color: white; }
.btn-green   { background: var(--green); color: white; }
.btn-small   { padding: 10px 20px; font-size: 14px; box-shadow: var(--shadow-sm); }

/* ==================== 히어로 ==================== */
.hero {
    text-align: center;
    padding: 40px 20px 50px;
    position: relative;
}
.hero-badge {
    display: inline-block;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid var(--brown);
    font-size: 13px;
    margin-bottom: 16px;
    box-shadow: 2px 2px 0 var(--brown);
}
.hero h1 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1.15;
    margin: 12px 0 16px;
    color: var(--brown);
}
.hero h1 .accent {
    color: var(--honey-dark);
    position: relative;
    display: inline-block;
}
.hero h1 .accent::after {
    content: "";
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 12px;
    background: var(--honey-light);
    z-index: -1;
    border-radius: 8px;
}
.hero p {
    font-size: 16px;
    color: var(--brown-light);
    margin: 16px auto 24px;
    max-width: 500px;
}
.hero-bee {
    margin: 0 auto 10px;
    width: 160px;
    height: 160px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-info {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--brown-light);
}
.hero-info span {
    background: white;
    padding: 6px 14px;
    border-radius: 16px;
    border: 2px dashed var(--honey-dark);
}

/* ==================== 섹션 ==================== */
.section { padding: 30px 20px; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title .label {
    display: inline-block;
    background: var(--brown);
    color: var(--cream);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-title h2 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(26px, 5vw, 38px);
    color: var(--brown);
}

/* ==================== 테스트 그리드 (홈) ==================== */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.test-card {
    background: white;
    border: 3px solid var(--brown);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--brown);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 210px;
}
.test-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--brown);
}
.test-card .card-emoji {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.test-card .card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--pink);
    color: white;
    font-size: 11px;
    font-family: 'Jua', sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    border: 2px solid var(--brown);
    box-shadow: 2px 2px 0 var(--brown);
    z-index: 2;
}
.test-card .card-tag.hot  { background: #FF5252; }
.test-card .card-tag.new  { background: var(--green); }
.test-card .card-tag.best { background: var(--honey-dark); }
.test-card .card-title {
    font-family: 'Jua', sans-serif;
    font-size: 20px;
    color: var(--brown);
}
.test-card .card-subtitle {
    font-size: 13px;
    color: var(--brown-light);
}
.test-card .card-desc {
    font-size: 13px;
    color: var(--brown-light);
    flex: 1;
    line-height: 1.5;
}
.test-card .card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--brown-light);
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--honey-dark);
}
.test-card .card-meta span {
    background: var(--cream-dark);
    padding: 3px 10px;
    border-radius: 10px;
}

/* 필터 탭 */
.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.filter-tab {
    background: white;
    border: 2px solid var(--brown);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Jua', sans-serif;
    font-size: 13px;
    cursor: pointer;
    color: var(--brown);
    box-shadow: 2px 2px 0 var(--brown);
    transition: all 0.15s;
}
.filter-tab.active { background: var(--honey); }
.filter-tab:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--brown); }

/* ==================== 메인 배너 (MBTI) ==================== */
.main-banner {
    background: linear-gradient(135deg, var(--honey) 0%, var(--honey-dark) 100%);
    border: 3px solid var(--brown);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.main-banner::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 150px; height: 150px;
    background: rgba(255, 249, 230, 0.3);
    border-radius: 50%;
}
.main-banner-text { flex: 1; position: relative; z-index: 1; }
.main-banner-text .badge {
    display: inline-block;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    border: 2px solid var(--brown);
    font-size: 11px;
    font-family: 'Jua', sans-serif;
    margin-bottom: 10px;
    box-shadow: 2px 2px 0 var(--brown);
}
.main-banner-text h2 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(24px, 4.5vw, 34px);
    color: var(--brown);
    line-height: 1.2;
    margin-bottom: 6px;
}
.main-banner-text p {
    color: var(--brown);
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.85;
}
.main-banner-art {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 600px) {
    .main-banner { flex-direction: column; text-align: center; }
    .main-banner-art { width: 120px; height: 120px; }
}

/* ==================== 테스트 진행 페이지 ==================== */
.test-wrap {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}
.test-card-wrap {
    background: white;
    border: 3px solid var(--brown);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--brown-light);
    margin-bottom: 12px;
    font-family: 'Jua', sans-serif;
}
.progress-bar {
    height: 14px;
    background: var(--cream-dark);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--brown);
    margin-bottom: 28px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--honey-dark), var(--honey));
    transition: width 0.4s ease;
    border-radius: 50px;
}
.q-char {
    text-align: center;
    font-size: 60px;
    margin-bottom: 12px;
}
.q-text {
    font-family: 'Jua', sans-serif;
    font-size: clamp(20px, 4vw, 26px);
    text-align: center;
    margin-bottom: 24px;
    color: var(--brown);
    line-height: 1.5;
    min-height: 70px;
}

/* 2지선다 */
.answer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: white;
    border: 3px solid var(--brown);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 15px;
    color: var(--brown);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
    line-height: 1.5;
}
.answer-btn:hover {
    background: var(--honey-light);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--brown);
}
.answer-btn .letter {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--honey);
    border: 2px solid var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jua', sans-serif;
    font-size: 16px;
}

/* 5점 리커트 */
.likert5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0 8px;
}
.likert5 button {
    aspect-ratio: 1 / 1;
    border: 3px solid var(--brown);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Jua', sans-serif;
    font-size: 22px;
    color: var(--brown);
    box-shadow: 3px 3px 0 var(--brown);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.likert5 button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--brown);
}
.likert5 button[data-v="-2"] { background: #FFCCBC; }
.likert5 button[data-v="-1"] { background: #FFE0B2; }
.likert5 button[data-v="0"]  { background: white; }
.likert5 button[data-v="1"]  { background: #DCEDC8; }
.likert5 button[data-v="2"]  { background: #C8E6C9; }
.likert5-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--brown-light);
    margin-top: 4px;
    padding: 0 4px;
}

/* 4점 척도 */
.likert4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
}
@media (min-width: 480px) {
    .likert4 { grid-template-columns: repeat(2, 1fr); }
}
.likert4 button {
    padding: 14px 16px;
    background: white;
    border: 3px solid var(--brown);
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 14px;
    color: var(--brown);
    box-shadow: 3px 3px 0 var(--brown);
    transition: all 0.15s;
    text-align: left;
    line-height: 1.4;
}
.likert4 button:hover {
    background: var(--honey-light);
    transform: translate(-1px, -1px);
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--brown-light);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* 로딩 */
.loading-wrap {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.loading-bee {
    font-size: 80px;
    animation: spin-slow 2s linear infinite;
    display: inline-block;
    margin-bottom: 18px;
}

/* ==================== 결과 페이지 ==================== */
.result-hero {
    padding: 40px 20px 48px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--brown);
    box-shadow: var(--shadow-lg);
}
.result-hero-bg-letters {
    position: absolute;
    font-family: 'Jua', sans-serif;
    font-size: clamp(180px, 40vw, 280px);
    font-weight: bold;
    opacity: 0.08;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}
.result-label {
    display: inline-block;
    background: var(--brown);
    color: var(--cream);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-family: 'Jua', sans-serif;
}
.result-svg {
    width: clamp(160px, 35vw, 220px);
    height: clamp(160px, 35vw, 220px);
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}
.result-type {
    font-family: 'Jua', sans-serif;
    font-size: clamp(44px, 12vw, 90px);
    line-height: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}
.result-nick {
    font-family: 'Jua', sans-serif;
    font-size: clamp(20px, 4vw, 28px);
    color: var(--brown);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.result-desc {
    font-size: 16px;
    color: var(--brown);
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}
.traits {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.trait {
    background: white;
    border: 2px solid var(--brown);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.borderline-notice {
    background: var(--honey-light);
    border: 2px dashed var(--honey-dark);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 16px auto;
    max-width: 500px;
    font-size: 13px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 점수 막대 */
.scores { max-width: 600px; margin: 0 auto; }
.score-row { margin-bottom: 20px; }
.score-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 6px;
}
.score-left, .score-right { font-weight: bold; font-family: 'Jua', sans-serif; }
.score-label { color: var(--brown-light); font-size: 11px; letter-spacing: 2px; }
.score-bar {
    height: 18px;
    background: var(--cream-dark);
    border: 2px solid var(--brown);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.score-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

/* 수치형 결과 (도파민/MZ력) */
.gauge-wrap {
    max-width: 480px;
    margin: 20px auto 30px;
    position: relative;
    z-index: 1;
}
.gauge-track {
    height: 30px;
    background: var(--cream-dark);
    border: 3px solid var(--brown);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #64B5F6 0%, var(--honey) 50%, #EF5350 100%);
    width: 0;
    transition: width 1.5s ease;
}
.gauge-value {
    font-family: 'Jua', sans-serif;
    font-size: 60px;
    text-align: center;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* 궁합 */
.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 500px;
    margin: 0 auto;
}
.mini-card {
    background: white;
    border: 3px solid var(--brown);
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--brown);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 130px;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.mini-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brown); }
.mini-card .emoji { font-size: 30px; margin-bottom: 6px; }
.mini-card .type-name { font-family: 'Jua', sans-serif; font-size: 18px; letter-spacing: 1px; }
.mini-card .nick { font-size: 12px; color: var(--brown-light); margin-top: 4px; }

/* 공유 섹션 */
.share-section {
    background: var(--brown);
    color: var(--cream);
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    text-align: center;
    border: 3px solid var(--brown);
    box-shadow: 6px 6px 0 var(--honey-dark);
}
.share-section h3 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(24px, 4vw, 34px);
    color: var(--honey);
    margin-bottom: 8px;
}
.share-section p { color: var(--cream-dark); margin-bottom: 20px; font-size: 14px; }
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.share-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 3px solid var(--cream);
    font-family: 'Jua', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.share-btn.kakao   { background: #FEE500; color: #3C1E1E; border-color: #3C1E1E; }
.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.copy    { background: var(--cream); color: var(--brown); }
.share-btn:hover   { transform: translateY(-3px); }
.share-url {
    background: rgba(0,0,0,0.25);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    word-break: break-all;
    max-width: 500px;
    margin: 0 auto 20px;
    font-family: monospace;
}

/* About 페이지 */
.about-content {
    background: white;
    border: 3px solid var(--brown);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}
.about-content h2 {
    font-family: 'Jua', sans-serif;
    font-size: 22px;
    margin: 20px 0 10px;
    color: var(--brown);
}
.about-content p { margin-bottom: 12px; }
.warn-box {
    background: var(--honey-light);
    border-left: 6px solid var(--honey-dark);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.warn-box .title { font-family: 'Jua', sans-serif; font-size: 17px; margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card-good, .card-bad {
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid;
}
.card-good { background: #E8F5E9; border-color: var(--green); }
.card-bad  { background: #FFEBEE; border-color: var(--pink); }
.card-good .title, .card-bad .title { font-family: 'Jua', sans-serif; font-size: 16px; margin-bottom: 8px; }
.card-good ul, .card-bad ul { list-style: none; font-size: 13px; }
.card-good ul li, .card-bad ul li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.card-good ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: bold; }
.card-bad ul li::before  { content: "✗"; position: absolute; left: 0; color: #C62828; font-weight: bold; }
.accuracy-table {
    background: var(--cream);
    border: 2px solid var(--brown);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0;
}
.accuracy-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--brown-light);
}
.accuracy-row:last-child { border-bottom: none; }
.accuracy-row .pct { font-family: 'Jua', sans-serif; color: var(--honey-dark); }
.conclusion-box {
    background: var(--brown);
    color: var(--cream);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
}
.conclusion-box .title { font-family: 'Jua', sans-serif; font-size: 20px; color: var(--honey); margin-bottom: 8px; }

/* 월드컵 */
.tournament-wrap {
    padding: 30px 20px;
    min-height: calc(100vh - 73px);
}
.vs-header {
    text-align: center;
    margin-bottom: 20px;
}
.vs-round {
    font-family: 'Jua', sans-serif;
    font-size: 28px;
    color: var(--honey-dark);
}
.vs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
}
.vs-card {
    background: white;
    border: 3px solid var(--brown);
    border-radius: 24px;
    padding: 24px 18px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vs-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--brown); }
.vs-card .emoji { font-size: 54px; margin-bottom: 8px; }
.vs-card .name { font-family: 'Jua', sans-serif; font-size: 20px; }
.vs-card .hint { font-size: 12px; color: var(--brown-light); margin-top: 6px; }
.vs-divider {
    font-family: 'Jua', sans-serif;
    font-size: 28px;
    color: var(--honey-dark);
}
@media (max-width: 600px) {
    .vs-grid { grid-template-columns: 1fr; }
    .vs-divider { transform: rotate(90deg); }
}

/* MBTI 궁합 페이지 */
.match-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 20px auto;
}
.match-select label {
    font-family: 'Jua', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}
.mbti-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.mbti-selector button {
    background: white;
    border: 2px solid var(--brown);
    padding: 10px 4px;
    border-radius: 12px;
    font-family: 'Jua', sans-serif;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--brown);
}
.mbti-selector button.active { background: var(--honey); }
.match-result {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    border: 3px solid var(--brown);
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.match-score {
    font-family: 'Jua', sans-serif;
    font-size: 60px;
    color: var(--honey-dark);
}
.match-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 38px;
    margin: 16px 0;
    font-family: 'Jua', sans-serif;
}
.heart-icon {
    font-size: 36px;
    animation: gleam 1.5s ease-in-out infinite;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--brown-light);
    font-size: 13px;
    border-top: 2px dashed var(--honey-dark);
    margin-top: 30px;
}
.footer a { color: var(--honey-dark); }

/* 토스트 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--brown);
    color: var(--cream);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    z-index: 200;
    font-size: 14px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* 일러스트 프레임 (감성 테스트용) */
.illust-frame {
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.illust-big-emoji {
    font-size: clamp(100px, 22vw, 180px);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
