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

:root {
    --bg-body: #eef1f5;       
    --bg-container: #ffffff;  
    --bg-card: #f3f6f9;       
    --bg-section: #f8f9fb;    
    --border-main: #d1d8e0;   
    --shadow-main: 0 4px 20px rgba(0,0,0,0.08); 
    --text-strong: #111827;
    --text-main: #333d4b;
    --text-muted: #6b7684;
    --text-light: #8b95a1;
    --btn-primary: #1f2937;
    --btn-hover: #111827;
    --c-blue: #2563eb;
    --c-blue-bg: rgba(37, 99, 235, 0.08);
    --c-indigo: #4f46e5; 
    --c-indigo-bg: rgba(79, 70, 229, 0.08);
    --c-red: #dc2626;
    --c-red-bg: rgba(220, 38, 38, 0.08);
    --c-purple: #9333ea;
    --c-purple-bg: rgba(147, 51, 234, 0.08);
    --c-yellow: #d97706; 
    --c-yellow-bg: rgba(217, 119, 6, 0.08);
    --c-yellow-badge-text: #ffffff; 
    --c-green: #059669;
    --c-green-bg: rgba(5, 150, 105, 0.08);
    --c-orange: #ea580c;
    --c-orange-bg: rgba(234, 88, 12, 0.08);
    --c-teal: #0d9488;
    --c-slate: #475569;
    --tc-text-strong: #0f172a; 
    --tc-text-main: #334155;
    --tc-match-bg: rgba(255, 255, 255, 0.65);
    --tc-match-border: rgba(255, 255, 255, 0.9);
    --tc-good: #2563eb;
    --tc-bad: #dc2626;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        --bg-container: #1e293b;
        --bg-card: #0f172a; 
        --bg-section: #182235;
        --border-main: #334155;
        --shadow-main: 0 8px 30px rgba(0,0,0,0.4);
        --text-strong: #f8fafc;
        --text-main: #cbd5e1;
        --text-muted: #94a3b8;
        --text-light: #64748b;
        --btn-primary: #3b82f6;
        --btn-hover: #2563eb;
        --c-blue: #60a5fa;
        --c-blue-bg: rgba(96, 165, 250, 0.15);
        --c-indigo: #818cf8; 
        --c-indigo-bg: rgba(129, 140, 248, 0.15);
        --c-red: #f87171;
        --c-red-bg: rgba(248, 113, 113, 0.15);
        --c-purple: #c084fc;
        --c-purple-bg: rgba(192, 132, 252, 0.15);
        --c-yellow: #fbbf24; 
        --c-yellow-bg: rgba(251, 191, 36, 0.15);
        --c-yellow-badge-text: #000000; 
        --c-green: #34d399;
        --c-green-bg: rgba(52, 211, 153, 0.15);
        --c-orange: #fb923c;
        --c-orange-bg: rgba(251, 146, 60, 0.15);
        --c-teal: #2dd4bf;
        --c-slate: #94a3b8;
        --tc-text-strong: #020617; 
        --tc-text-main: #1e293b;
        --tc-match-bg: rgba(255, 255, 255, 0.45);
        --tc-match-border: rgba(255, 255, 255, 0.75);
        --tc-good: #1d4ed8;
        --tc-bad: #b91c1c;
    }
}

[data-type="DCSV"] { --tc-bg: #fee2e2; --tc-border: #fca5a5; --tc-code: #b91c1c; }
[data-type="DCEV"] { --tc-bg: #fce7f3; --tc-border: #f9a8d4; --tc-code: #be185d; }
[data-type="DMSV"] { --tc-bg: #f3e8ff; --tc-border: #d8b4fe; --tc-code: #7e22ce; }
[data-type="DMEV"] { --tc-bg: #fae8ff; --tc-border: #f0abfc; --tc-code: #a21caf; }
[data-type="DCSF"] { --tc-bg: #d1fae5; --tc-border: #6ee7b7; --tc-code: #047857; }
[data-type="DCEF"] { --tc-bg: #ccfbf1; --tc-border: #5eead4; --tc-code: #0f766e; }
[data-type="DMSF"] { --tc-bg: #e0f2fe; --tc-border: #7dd3fc; --tc-code: #0369a1; }
[data-type="DMEF"] { --tc-bg: #dcfce7; --tc-border: #86efac; --tc-code: #15803d; }
[data-type="UCSV"] { --tc-bg: #dbeafe; --tc-border: #93c5fd; --tc-code: #1d4ed8; }
[data-type="UCEV"] { --tc-bg: #e0e7ff; --tc-border: #a5b4fc; --tc-code: #4338ca; }
[data-type="UMSV"] { --tc-bg: #f5f3ff; --tc-border: #c4b5fd; --tc-code: #6d28d9; }
[data-type="UMEV"] { --tc-bg: #cffafe; --tc-border: #67e8f9; --tc-code: #0e7490; }
[data-type="UCSF"] { --tc-bg: #fef9c3; --tc-border: #fde047; --tc-code: #a16207; }
[data-type="UCEF"] { --tc-bg: #ffedd5; --tc-border: #fdba74; --tc-code: #c2410c; }
[data-type="UMSF"] { --tc-bg: #fef3c7; --tc-border: #fcd34d; --tc-code: #b45309; }
[data-type="UMEF"] { --tc-bg: #ffe4e6; --tc-border: #fda4af; --tc-code: #be123c; }

@media (prefers-color-scheme: dark) {
    [data-type="DCSV"] { --tc-bg: #fca5a5; --tc-border: #ef4444; --tc-code: #7f1d1d; }
    [data-type="DCEV"] { --tc-bg: #f9a8d4; --tc-border: #ec4899; --tc-code: #831843; }
    [data-type="DMSV"] { --tc-bg: #d8b4fe; --tc-border: #a855f7; --tc-code: #581c87; }
    [data-type="DMEV"] { --tc-bg: #f0abfc; --tc-border: #d946ef; --tc-code: #701a75; }
    [data-type="DCSF"] { --tc-bg: #6ee7b7; --tc-border: #10b981; --tc-code: #064e3b; }
    [data-type="DCEF"] { --tc-bg: #5eead4; --tc-border: #14b8a6; --tc-code: #134e4a; }
    [data-type="DMSF"] { --tc-bg: #7dd3fc; --tc-border: #0ea5e9; --tc-code: #0c4a6e; }
    [data-type="DMEF"] { --tc-bg: #86efac; --tc-border: #22c55e; --tc-code: #14532d; }
    [data-type="UCSV"] { --tc-bg: #93c5fd; --tc-border: #3b82f6; --tc-code: #1e3a8a; }
    [data-type="UCEV"] { --tc-bg: #a5b4fc; --tc-border: #6366f1; --tc-code: #312e81; }
    [data-type="UMSV"] { --tc-bg: #c4b5fd; --tc-border: #8b5cf6; --tc-code: #4c1d95; }
    [data-type="UMEV"] { --tc-bg: #67e8f9; --tc-border: #06b6d4; --tc-code: #164e63; }
    [data-type="UCSF"] { --tc-bg: #fde047; --tc-border: #eab308; --tc-code: #713f12; }
    [data-type="UCEF"] { --tc-bg: #fdba74; --tc-border: #f97316; --tc-code: #7c2d12; }
    [data-type="UMSF"] { --tc-bg: #fcd34d; --tc-border: #f59e0b; --tc-code: #78350f; }
    [data-type="UMEF"] { --tc-bg: #fda4af; --tc-border: #f43f5e; --tc-code: #881337; }
}

* { box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; padding: 20px; margin: 0; transition: background 0.3s, color 0.3s; }
.container { max-width: 800px; margin: 0 auto; background: var(--bg-container); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-main); transition: background 0.3s; }
@media (max-width: 600px) { .container { padding: 20px; } }

#intro-section { animation: fadeIn 0.8s ease; }
h1 { text-align: center; color: var(--text-strong); margin-bottom: 10px; font-size: 2.5em; font-weight: 900; letter-spacing: -1px; }
.text-gradient { background: linear-gradient(90deg, var(--c-indigo), var(--c-blue)); -webkit-background-clip: text; color: transparent; display: inline-block; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.15em; font-weight: 600; }

.btn-primary { 
    display: block; width: 100%; padding: 22px; 
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-blue) 100%); 
    color: white; border: none; border-radius: 20px; font-size: 1.3em; 
    font-weight: 900; cursor: pointer; transition: all 0.3s; 
    margin-top: 30px; box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4); filter: brightness(1.1); }

.intro-desc { 
    background: var(--bg-container); border: 1px solid var(--border-main); 
    padding: 40px 30px; margin-bottom: 50px; border-radius: 24px; 
    color: var(--text-main); font-size: 1.15em; line-height: 1.7; 
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    position: relative; overflow: hidden; font-weight: 500;
}
.intro-desc::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--c-indigo), var(--c-purple));
}
.intro-desc strong { color: var(--text-strong); font-weight: 900; box-shadow: inset 0 -12px 0 rgba(79, 70, 229, 0.15); padding: 0 2px; }

.axis-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
@media (min-width: 600px) { .axis-grid { grid-template-columns: 1fr 1fr; gap: 25px; } }
.axis-card { 
    background: var(--bg-container); border: 1px solid var(--border-main); 
    border-radius: 24px; padding: 35px 25px; position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.axis-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); border-color: var(--c-indigo); }
.axis-letter { 
    position: absolute; right: 5px; bottom: -15px; font-size: 7.5em; 
    font-weight: 900; color: var(--text-strong); opacity: 0.03; 
    line-height: 1; z-index: 0; pointer-events: none; margin: 0;
}
@media (prefers-color-scheme: dark) { .axis-letter { opacity: 0.05; color: #fff; } }
.axis-header { display: flex; align-items: center; justify-content: center; margin-bottom: 25px; position: relative; z-index: 1;}
.axis-title { font-size: 1.3em; font-weight: 900; color: var(--text-strong); letter-spacing: -0.5px;}
.axis-vs { 
    display: flex; justify-content: space-between; align-items: center; 
    background: var(--bg-section); border-radius: 16px; padding: 16px 20px; 
    margin-bottom: 20px; font-weight: 900; font-size: 1.1em; 
    border: 1px solid var(--border-main); position: relative; z-index: 1;
}
.axis-vs span.vs { background: var(--text-muted); color: var(--bg-container); padding: 4px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 900; box-shadow: var(--shadow-main);}
.axis-detail { font-size: 0.95em; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; font-weight: 600; word-break: keep-all; text-align: center;}

.intro-notice { 
    background: var(--c-yellow-bg); border: 2px dashed rgba(217, 119, 6, 0.4); 
    color: #b45309; border-radius: 16px; padding: 20px; 
    text-align: center; font-weight: 900; margin-bottom: 30px; font-size: 1.05em;
}
@media (prefers-color-scheme: dark) { .intro-notice { color: var(--c-yellow); border-color: rgba(251, 191, 36, 0.4); } }

#test-section { display: none; animation: fadeIn 0.5s ease; padding-bottom: 40px; }

.progress-container { 
    position: sticky; top: 0; background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 100; padding: 20px 0; border-bottom: 1px solid var(--border-main); 
    margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
@media (prefers-color-scheme: dark) { .progress-container { background: rgba(30, 41, 59, 0.9); } }
.progress-info { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
#current-part-text { font-weight: 900; color: var(--c-indigo); font-size: 1.05em; }
.progress-text { font-size: 0.95em; color: var(--text-muted); font-weight: 800; }

.progress-bar-bg { width: 100%; height: 10px; background: var(--bg-section); border-radius: 5px; overflow: hidden; border: 1px solid var(--border-main); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-indigo), var(--c-blue)); width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.part-title { 
    font-size: 1.05em; color: var(--c-indigo); font-weight: 900; 
    background: var(--c-indigo-bg); padding: 8px 20px; 
    border-radius: 20px; display: inline-block; 
    margin: 10px 0 20px 0; border: 1px solid rgba(79, 70, 229, 0.2); 
}

.question-card { 
    margin-bottom: 40px; padding: 40px 30px; border: none; 
    border-radius: 20px; background: var(--bg-container); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.04); 
}
@media (max-width: 600px) { .question-card { padding: 30px 20px; } }

.question-title { 
    font-weight: 900; margin-bottom: 35px; font-size: 1.35em; 
    color: var(--text-strong); line-height: 1.5; word-break: keep-all; 
}

.options-wrapper { display: flex; flex-direction: column; gap: 15px; }
.option-label { 
    display: flex; align-items: center; cursor: pointer; 
    padding: 20px 24px; border-radius: 16px; background: var(--bg-section); 
    border: 2px solid transparent; transition: all 0.25s ease; 
    font-size: 1.1em; line-height: 1.5; color: var(--text-main); font-weight: 600;
}
.option-label:hover { background: var(--bg-container); border-color: var(--border-main); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

.option-label input[type="radio"] { display: none; }
.custom-radio { 
    min-width: 24px; height: 24px; border: 2px solid var(--text-muted); 
    border-radius: 50%; margin-right: 18px; display: inline-block; position: relative; transition: all 0.2s;
}

.option-label:has(input[type="radio"]:checked) { 
    border-color: var(--c-indigo); background: var(--c-indigo-bg); 
    color: var(--text-strong); font-weight: 900; 
    transform: translateY(-2px); box-shadow: 0 6px 15px rgba(79, 70, 229, 0.1); 
}
.option-label input[type="radio"]:checked + .custom-radio { border-color: var(--c-indigo); }
.option-label input[type="radio"]:checked + .custom-radio::after { 
    content: ''; position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); width: 12px; height: 12px; 
    background: var(--c-indigo); border-radius: 50%; 
}

#result-section { display: none; margin-top: 20px; animation: fadeIn 0.8s ease; }

.result-header-wrap { 
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-container) 100%); 
    padding: 50px 20px 40px 20px; border-radius: 24px; border: 1px solid var(--border-main); 
    border-top: 6px solid var(--c-indigo); text-align: center; margin-bottom: 40px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); position: relative; 
}
.main-type-badge { 
    display: inline-block; background: var(--text-strong); color: var(--bg-container); 
    padding: 8px 24px; border-radius: 30px; font-weight: 900; font-size: 1.05em; 
    margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); letter-spacing: 1px; 
}
@media (prefers-color-scheme: dark) { .main-type-badge { background: var(--c-yellow); color: #000; } }
.result-title { font-size: 2.4em; font-weight: 900; margin-bottom: 0; line-height: 1.3; color: var(--text-strong); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result-code { font-size: 0.45em; color: var(--c-indigo); font-weight: 900; letter-spacing: 3px; background: var(--c-indigo-bg); padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(79, 70, 229, 0.2); }

.result-desc-wrap { background: transparent; border: none; padding: 0; margin-top: 30px; box-shadow: none; }
.result-desc-surface { 
    position: relative; font-size: 1.15em; color: var(--text-main); line-height: 1.7; 
    word-break: keep-all; font-weight: 600; padding: 35px 25px; 
    background: var(--bg-container); border-radius: 16px; border: 1px solid var(--border-main); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); z-index: 2; 
}
.result-desc-surface::before { content: '“'; position: absolute; top: -15px; left: 15px; font-size: 4em; color: var(--border-main); font-family: Georgia, serif; opacity: 0.3; line-height: 1; }
.result-desc-surface::after { content: '”'; position: absolute; bottom: -35px; right: 15px; font-size: 4em; color: var(--border-main); font-family: Georgia, serif; opacity: 0.3; line-height: 1; }

.result-desc-truth { 
    background: rgba(220, 38, 38, 0.03); border: 2px dashed rgba(220, 38, 38, 0.3); 
    border-radius: 16px; padding: 30px 25px; margin-top: 25px; text-align: left; 
}
.result-desc-truth .truth-title { color: #dc2626; font-weight: 900; margin-bottom: 15px; font-size: 1.1em; display: inline-flex; align-items: center; background: rgba(220, 38, 38, 0.08); padding: 8px 16px; border-radius: 12px; }
.result-desc-truth .truth-txt { font-size: 1.05em; color: var(--text-strong); line-height: 1.6; word-break: keep-all; font-weight: 700; text-align: left; }

.res-wiki-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--c-indigo-bg);
    border: 2px solid var(--c-indigo);
    color: var(--c-indigo);
    border-radius: 30px;
    font-weight: 900;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.2px;
}
.res-wiki-btn:hover {
    background: var(--c-indigo);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}
@media (prefers-color-scheme: dark) {
    .result-desc-truth { background: rgba(248, 113, 113, 0.05); border-color: rgba(248, 113, 113, 0.3); }
    .result-desc-truth .truth-title { color: #f87171; background: rgba(248, 113, 113, 0.15); }
}

.result-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.tab-btn {
    flex: unset; width: 48%; max-width: 200px; padding: 11px 10px;
    border-radius: 30px; border: 2px solid var(--border-main);
    background: var(--bg-container); color: var(--text-main);
    font-size: 0.9em; font-weight: 900; transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); cursor: pointer;
}
.tab-btn:hover {
    border-color: var(--text-light); transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: var(--text-strong);
}
.tab-btn.active#btn-tab-hex { background: rgba(147, 51, 234, 0.1); border-color: #9333ea; color: #9333ea; box-shadow: none; transform: none; }
.tab-btn.active#btn-tab-bar { background: rgba(37, 99, 235, 0.1); border-color: #2563eb; color: #2563eb; box-shadow: none; transform: none; }
.tab-btn.active#btn-sim-romance { background: rgba(236, 72, 153, 0.1); border-color: #ec4899; color: #db2777; box-shadow: none; transform: none; margin-bottom: 0; padding-bottom: 14px; }
.tab-btn.active#btn-sim-conflict { background: rgba(79, 70, 229, 0.1); border-color: #6366f1; color: #4f46e5; box-shadow: none; transform: none; margin-bottom: 0; padding-bottom: 14px; }

.result-tab-container { margin-top: 28px; margin-bottom: 0; }
.tab-content-wrapper {
    background: var(--bg-section);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: none;
    position: relative;
    overflow: visible;
}
.result-tab-container .tab-content-wrapper::before { display: none; }
.tab-content-wrapper::before {
    content: ''; position: absolute; top: 0; left: -1px; right: -1px; height: 8px;
    background: linear-gradient(90deg, #9333ea, #2563eb);
    border-radius: 24px 24px 0 0;
}
.simulator-container .tab-content-wrapper { 
    border: none; padding: 0 !important; background: transparent; box-shadow: none; border-radius: 0;
}
.simulator-container .tab-content-wrapper::before { display: none; }

#tab-hex {
    position: relative;
    background: radial-gradient(circle at center, var(--c-purple-bg) 0%, transparent 70%);
    padding: 10px 0; 
    border-radius: 50%;
    margin: 0 auto;
}
#radar-canvas { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; position: relative; z-index: 2; }

.chart-container { margin-bottom: 0; padding: 0 !important; background: var(--bg-container); border: 1px solid var(--border-main); border-radius: 12px; overflow: visible; }
.chart-section {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-main);
    border-radius: 0;
    padding: 14px 16px !important;
    margin-bottom: 0;
    position: relative;
    cursor: help;
    transition: background 0.2s;
    text-align: left;
}
.chart-section:first-child { border-top: none; }
.chart-section:last-child { margin-bottom: 0; }
.chart-section:hover {
    background: var(--bg-section);
    transform: none;
    box-shadow: none;
    z-index: auto;
}
.chart-axis-name {
    display: inline-block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: var(--text-sub);
    font-size: 0.75em;
    font-weight: 800;
    margin-bottom: 7px;
    border: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chart-labels { display: flex; justify-content: space-between; font-size: 0.88em; margin-bottom: 6px; color: var(--text-strong); font-weight: 800; }
.chart-labels span { display: flex; align-items: center; gap: 5px; }
.chart-bar-bg { width: 100%; height: 12px; background: var(--border-main); border-radius: 6px; display: flex; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
.chart-bar-left { height: 100%; transition: width 1s ease-out; position: relative; }
.chart-bar-right { height: 100%; transition: width 1s ease-out; position: relative; }

.chart-section::after {
    content: attr(data-tooltip); position: absolute;
    bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--text-strong); color: var(--bg-container);
    padding: 10px 14px; border-radius: 8px; font-size: 0.82em; width: 240px;
    text-align: left; opacity: 0; visibility: hidden; transition: all 0.2s; z-index: 200; pointer-events: none; box-shadow: var(--shadow-main);
}
.chart-section::before {
    content: ''; position: absolute;
    bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
    border-width: 6px; border-style: solid; border-color: var(--text-strong) transparent transparent transparent;
    opacity: 0; visibility: hidden; transition: all 0.2s; z-index: 200; pointer-events: none;
}
.chart-section:hover::after { opacity: 1; visibility: visible; }
.chart-section:hover::before { opacity: 1; visibility: visible; }

@media (max-width: 600px) {
    .chart-section::after { width: 200px; font-size: 0.78em; }
}

.direct-link-notice { background: var(--c-yellow-bg); border: 1px solid var(--c-yellow); padding: 18px 20px; border-radius: 12px; text-align: center; margin-bottom: 0; color: var(--c-yellow); font-weight: bold; }

.match-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 15px; }
@media (min-width: 600px) { .match-container { flex-direction: row; } }
.match-box { 
    flex: 1; padding: 35px 25px; border-radius: 20px; text-align: left; 
    cursor: pointer; transition: all 0.3s ease; 
    position: relative; overflow: hidden;
    background: var(--bg-container); border: 1px solid var(--border-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03); 
    display: flex; flex-direction: column;
}
.match-box:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.match-good { border-top: 6px solid var(--c-blue); }
.match-good::before { 
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(180deg, var(--c-blue-bg) 0%, transparent 100%); 
    pointer-events: none; z-index: 0;
}
.match-bad { border-top: 6px solid var(--c-red); }
.match-bad::before { 
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(180deg, var(--c-red-bg) 0%, transparent 100%); 
    pointer-events: none; z-index: 0;
}
.match-title { 
    font-weight: 900; margin-bottom: 15px; font-size: 0.9em; 
    text-transform: uppercase; letter-spacing: 1px; 
    padding: 6px 14px; border-radius: 20px; 
    display: inline-block; align-self: flex-start; 
    z-index: 1; position: relative;
}
.match-good .match-title { color: var(--c-blue); background: var(--bg-container); border: 1px solid var(--c-blue); }
.match-bad .match-title { color: var(--c-red); background: var(--bg-container); border: 1px solid var(--c-red); }
.match-type { 
    font-size: 1.4em; font-weight: 900; margin-bottom: 12px; 
    color: var(--text-strong); z-index: 1; position: relative; letter-spacing: -0.5px;
}
.match-desc { 
    font-size: 1em; color: var(--text-main); line-height: 1.6; 
    z-index: 1; position: relative; font-weight: 600; word-break: keep-all;
}

.stats-container { background: var(--bg-card); border: 1px solid var(--border-main); padding: 30px; border-radius: 16px; margin-top: 40px; margin-bottom: 30px; box-shadow: var(--shadow-main); }
#stats-only-section .stats-container { margin-top: 0; padding: 30px; }
.stat-highlight { color: var(--c-blue); font-size: 1.2em; }

.my-stat-hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; border-radius: 16px; padding: 25px; margin-bottom: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); position: relative; overflow: hidden; }
.my-stat-hero::before { content: ''; position: absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 60%); pointer-events: none; }
.my-stat-header { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; position: relative; z-index: 1;}
.my-stat-badge { background: var(--c-yellow); color: #000; font-size: 0.85em; font-weight: 900; padding: 6px 12px; border-radius: 20px; }
.my-stat-type { font-size: 1.5em; font-weight: 900; color: #fff; letter-spacing: 1px; }
.my-stat-body { display: flex; align-items: center; justify-content: space-around; position: relative; z-index: 1;}
.my-stat-item { text-align: center; flex: 1; }
.my-stat-val { font-size: 2.8em; font-weight: 900; color: #38bdf8; line-height: 1; margin-bottom: 5px; }
.my-stat-val.rank-val { color: #fbbf24; }
.my-stat-val .unit { font-size: 0.4em; color: #94a3b8; margin-left: 5px; font-weight: 700; }
.my-stat-lbl { font-size: 0.9em; color: #cbd5e1; font-weight: 600; }
.my-stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); }

.top-bottom-stats-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: transparent; border: none; overflow: visible; }
.top-bottom-stats-wrapper .stat-box { background: var(--bg-container); border: 1px solid var(--border-main); border-radius: 12px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stat-icon { font-size: 1.8em; margin-bottom: 8px; }
.stat-box .stat-label { font-size: 0.85em; color: var(--text-muted); font-weight: bold; margin-bottom: 5px; }
.stat-box .stat-value { font-size: 1.3em; font-weight: 900; color: var(--text-strong); margin-bottom: 2px;}
.stat-box .stat-sub { font-size: 0.9em; color: var(--c-blue); font-weight: bold; margin-top: 5px; background: var(--c-blue-bg); padding: 4px 10px; border-radius: 12px;}

.stat-list-item { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 16px; background: var(--bg-card); border-radius: 12px; 
    margin-bottom: 10px; border: 1px solid var(--border-main); 
    transition: transform 0.2s, box-shadow 0.2s; 
    position: relative;
    overflow: hidden;
    cursor: pointer; 
    -webkit-tap-highlight-color: transparent;
}
.stat-list-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.stat-list-item-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--c-blue-bg);
    border-left: 3px solid var(--c-blue);
    z-index: 0;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-list-left { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; position: relative; z-index: 1; }
.stat-list-right { display: flex; align-items: center; gap: 15px; justify-content: flex-end; position: relative; z-index: 1; }

.rank-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--text-muted); color: var(--bg-container); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85em; flex-shrink: 0; }
.rank-badge.top-1 { background: #fbbf24; color: #000; box-shadow: 0 0 10px rgba(251,191,36,0.4); }
.rank-badge.top-2 { background: #94a3b8; color: #fff; }
.rank-badge.top-3 { background: #b45309; color: #fff; }

.stat-list-text-swap {
    position: relative;
    flex: 1;
    height: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.stat-list-code, .stat-list-name {
    position: absolute;
    left: 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.stat-list-code { 
    font-weight: 900; color: var(--c-blue); letter-spacing: 1px; font-size: 1.05em; 
    transform: translateY(0); opacity: 1;
}

.stat-list-name { 
    font-weight: 700; color: var(--text-strong); font-size: 0.95em; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
    transform: translateY(100%); opacity: 0;
}

.stat-list-item:hover .stat-list-code,
.stat-list-item:active .stat-list-code {
    transform: translateY(-100%); opacity: 0;
}
.stat-list-item:hover .stat-list-name,
.stat-list-item:active .stat-list-name {
    transform: translateY(0); opacity: 1;
}

.stat-list-pct { font-weight: 900; color: var(--text-strong); font-size: 1.1em; min-width: 45px; text-align: right; }

.btn-refresh-cache { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-main); padding: 8px 16px; border-radius: 6px; font-size: 0.9em; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.btn-refresh-cache:hover { background: var(--border-main); color: var(--text-strong); }

@keyframes simFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-update { animation: simFade 0.4s ease-out forwards; }

.simulator-container { 
    background: var(--bg-container); border: 1px solid var(--border-main); 
    padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    position: relative; overflow: hidden; 
}
.simulator-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 8px;
    background: linear-gradient(90deg, #f472b6, #c084fc, #60a5fa);
}
.simulator-container .visual-title { font-size: 1.8em; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.5px; }
.sim-desc { 
    background: var(--bg-section); padding: 15px 25px; border-radius: 12px; 
    font-size: 1.05em; color: var(--text-main); border: 1px dashed var(--border-main); 
    display: inline-block; margin: 0 auto 35px auto; font-weight: 600; 
}
.sim-desc-wrap { text-align: center; }
@media (max-width: 600px) { .simulator-container { padding: 30px 15px; } .sim-desc { font-size: 0.95em; padding: 15px; } }

.sim-selector-box { background: var(--bg-section); padding: 25px 20px; border-radius: 16px; border: 1px solid var(--border-main); margin-bottom: 30px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
.sim-selectors-wrap { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-direction: column; position: relative; }
@media (min-width: 600px) { .sim-selectors-wrap { flex-direction: row; gap: 20px; } }
.sim-select-group { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.sim-vs-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-container); border: 2px solid var(--border-main); font-size: 0.8em; font-weight: 900; color: var(--text-muted); z-index: 1; margin: -5px 0; box-shadow: var(--shadow-main); }
@media (min-width: 600px) { .sim-vs-badge { margin: 0; margin-top: 25px; } }
.sim-label { font-weight: 900; color: var(--text-strong); font-size: 1em; text-align: center; }

.sim-select-group select { 
    appearance: none; -webkit-appearance: none; width: 100%; 
    padding: 16px 40px 16px 20px; font-size: 1.1em; border-radius: 12px; 
    background-color: var(--bg-container); color: var(--text-strong); 
    border: 2px solid var(--border-main); outline: none; cursor: pointer; 
    font-weight: 900; text-align: center; transition: all 0.3s; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7684'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: right 15px center; background-size: 20px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); text-align-last: center; 
}
.sim-select-group select:hover, .sim-select-group select:focus { border-color: var(--c-purple); box-shadow: 0 4px 15px var(--c-purple-bg); }
@media (prefers-color-scheme: dark) {
    .sim-select-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); }
}

.sim-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .sim-grid { grid-template-columns: 1fr 1fr; } }
.sim-box { padding: 20px; border-radius: 12px; border: 1px solid var(--border-main); box-shadow: 0 2px 10px rgba(0,0,0,0.03); opacity: 0; }
.sim-guide-box, .sim-romance-guide-box { grid-column: 1 / -1; border-width: 2px; }
.sim-box-title { font-weight: 900; margin-bottom: 12px; font-size: 1.05em; letter-spacing: 0.5px; }
.sim-box-txt { font-size: 0.95em; color: var(--text-main); line-height: 1.6; word-break: keep-all; }

.sim-reaction-box { background: #eef2ff; border-color: #c7d2fe; }
.sim-reaction-box .sim-box-title { color: #4f46e5; }
.sim-warning-box { background: #fef2f2; border-color: #fecaca; }
.sim-warning-box .sim-box-title { color: #e11d48; }
.sim-guide-box { background: #eff6ff; border-color: #bfdbfe; }
.sim-guide-box .sim-box-title { color: #2563eb; }

.sim-charm-target-box { background: #faf5ff; border-color: #d8b4fe; }
.sim-charm-target-box .sim-box-title { color: #9333ea; } 
.sim-charm-me-box { background: #fdf2f8; border-color: #fbcfe8; }
.sim-charm-me-box .sim-box-title { color: #db2777; } 
.sim-romance-guide-box { background: #fff1f2; border-color: #fda4af; }
.sim-romance-guide-box .sim-box-title { color: #e11d48; }

@media (prefers-color-scheme: dark) {
    .tab-btn.active#btn-tab-hex { color: #c084fc; border-color: #c084fc; }
    .tab-btn.active#btn-tab-bar { color: #60a5fa; border-color: #60a5fa; }
    .tab-btn.active#btn-sim-romance { color: #f472b6; border-color: #f472b6; }
    .tab-btn.active#btn-sim-conflict { color: #818cf8; border-color: #818cf8; }
    
    .sim-charm-target-box { background: rgba(147, 51, 234, 0.15); border-color: #9333ea; }
    .sim-charm-target-box .sim-box-title { color: #c084fc; } 
    .sim-charm-me-box { background: rgba(219, 39, 119, 0.15); border-color: #db2777; }
    .sim-charm-me-box .sim-box-title { color: #f472b6; } 
    .sim-romance-guide-box { background: rgba(225, 29, 72, 0.15); border-color: #e11d48; }
    .sim-romance-guide-box .sim-box-title { color: #fb7185; }

    .sim-reaction-box { background: rgba(79, 70, 229, 0.15); border-color: #4f46e5; }
    .sim-reaction-box .sim-box-title { color: #818cf8; }
    .sim-warning-box { background: rgba(225, 29, 72, 0.15); border-color: #e11d48; }
    .sim-warning-box .sim-box-title { color: #fb7185; }
    .sim-guide-box { background: rgba(37, 99, 235, 0.15); border-color: #2563eb; }
    .sim-guide-box .sim-box-title { color: #60a5fa; }
}

.action-buttons-wrap { display: flex; flex-direction: column; gap: 15px; margin-bottom: 50px; }
.action-buttons { display: flex; gap: 15px; flex-direction: column; }
@media (min-width: 600px) { .action-buttons { flex-direction: row; } }
.btn { flex: 1; padding: 18px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1.1em; border: none; transition: all 0.3s; text-align: center; width: 100%; box-sizing: border-box; }
.btn-share { background: var(--c-blue); color: white; }
.btn-share:hover { filter: brightness(0.9); }
.btn-reset { background: var(--c-yellow); color: var(--c-yellow-badge-text); }
.btn-reset:hover { filter: brightness(0.9); }
.btn-download { background: var(--text-strong); color: var(--bg-body); border: 2px solid var(--text-strong); }
.btn-download:hover { filter: brightness(0.8); transform: translateY(-2px); box-shadow: var(--shadow-main); }
.visual-section { background: var(--bg-section); padding: 30px; border-radius: 12px; margin-bottom: 30px; border: 1px solid var(--border-main); }
@media (max-width: 600px) { .visual-section { padding: 20px; } }
.visual-title { text-align: center; color: var(--text-strong); font-size: 1.3em; margin-top: 0; margin-bottom: 5px; }
.visual-desc { text-align: center; color: var(--text-muted); font-size: 0.9em; margin-bottom: 25px; line-height: 1.5; }

.eco-container {
    background: var(--bg-container);
    border-radius: 20px;
    padding: 40px 30px;
    border: 2px solid var(--border-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.eco-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 8px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
}
.eco-container .visual-title { font-size: 1.8em; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.5px; }
.eco-desc {
    background: var(--bg-section); padding: 25px; border-radius: 12px;
    font-size: 1.05em; color: var(--text-main); line-height: 1.7;
    margin-bottom: 40px !important; border: 1px dashed var(--border-main);
}
.eco-desc strong { color: var(--c-indigo); font-weight: 900; }
.eco-desc .highlight-quote {
    margin-top: 15px; padding: 15px; background: var(--c-indigo-bg);
    border-left: 4px solid var(--c-indigo); color: var(--text-strong);
    font-weight: 900; font-size: 1.1em; border-radius: 0 8px 8px 0;
}
.eco-desc .highlight-quote span { color: var(--c-indigo); }
.eco-desc .hint {
    display: inline-block; margin-top: 15px; font-size: 0.85em;
    color: var(--text-muted); font-weight: bold; background: var(--bg-card);
    padding: 6px 12px; border-radius: 20px;
}
@media (max-width: 600px) {
    .eco-container { padding: 30px 15px; }
    .eco-desc { font-size: 0.95em; padding: 20px 15px; }
}

.unified-network { position: relative; padding: 60px 10px 30px 10px; background: var(--bg-container); border-radius: 12px; border: 1px solid var(--border-main); display: flex; flex-direction: column; gap: 65px; overflow: visible; align-items: center; }
@media (max-width: 600px) { .unified-network { gap: 55px; padding: 50px 5px 20px 5px; } }
.network-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none;  }
.map-line { transition: opacity 0.3s ease, stroke-width 0.3s ease; stroke-linecap: round; }
.map-line.dim-line { opacity: 0.05 !important; }
.map-line.active-line { opacity: 1 !important; stroke-width: 3 !important; }
.net-row { display: flex; justify-content: space-around; align-items: center; width: 100%; max-width: 520px; position: relative; padding: 25px 10px 15px 10px; border-radius: 12px; }
.tier-row-1 { background: var(--c-red-bg); border: 1px solid var(--c-red); }
.tier-row-2 { background: var(--c-orange-bg); border: 1px solid var(--c-orange); }
.tier-row-3 { background: var(--c-green-bg); border: 1px solid var(--c-green); }
.tier-row-4 { background: var(--c-blue-bg); border: 1px solid var(--c-blue); }
.tier-box-label { position: absolute; top: -12px; left: 15px; font-size: 0.75em; font-weight: 900; letter-spacing: 0.5px; background: var(--bg-container); padding: 2px 10px; border-radius: 10px; z-index: 1;  }
.tier-row-1 .tier-box-label { color: var(--c-red); border: 1px solid var(--c-red); }
.tier-row-2 .tier-box-label { color: var(--c-orange); border: 1px solid var(--c-orange); }
.tier-row-3 .tier-box-label { color: var(--c-green); border: 1px solid var(--c-green); }
.tier-row-4 .tier-box-label { color: var(--c-blue); border: 1px solid var(--c-blue); }
.net-node { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-container); border: 2px solid var(--border-main); font-size: 0.8em; font-weight: bold; color: var(--text-main); cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: var(--shadow-main); position: relative; z-index: 20;  }
@media (max-width: 600px) { .net-node { width: 48px; height: 48px; font-size: 0.7em; } }
.tier-row-1 .net-node { border-color: var(--c-red); }
.tier-row-2 .net-node { border-color: var(--c-orange); }
.tier-row-3 .net-node { border-color: var(--c-green); }
.tier-row-4 .net-node { border-color: var(--c-blue); }
.net-node:hover, .net-node.active-node { transform: scale(1.2); box-shadow: 0 5px 20px rgba(0,0,0,0.25); z-index: 30;  }
.tier-row-1 .net-node.active-node { background: var(--c-red); color: white; }
.tier-row-2 .net-node.active-node { background: var(--c-orange); color: white; }
.tier-row-3 .net-node.active-node { background: var(--c-green); color: white; }
.tier-row-4 .net-node.active-node { background: var(--c-blue); color: white; }
.net-node.dim-node { opacity: 0.25; filter: grayscale(100%); transform: scale(0.9); z-index: 5; box-shadow: none; border-color: var(--border-main) !important;  }
.map-legend { display: flex; justify-content: center; gap: 20px; margin-top: 15px; font-size: 0.9em; color: var(--text-muted); }

.all-types-header-wrap { text-align: center; margin: 60px 0 30px 0; border-top: 2px dashed var(--border-main); padding-top: 50px; }
.all-types-header { font-size: 1.8em; font-weight: 900; color: var(--text-strong); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.5px;}
.all-types-desc { color: var(--text-muted); font-size: 1.05em; font-weight: 600; }

.all-types-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .all-types-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

.type-card { 
    background: var(--tc-bg); border: 2px solid var(--tc-border); 
    border-radius: 20px; padding: 30px 25px; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    text-align: left; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
}
.type-card::after {
    content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px;
    background: radial-gradient(circle top right, var(--tc-border) 0%, transparent 70%);
    opacity: 0.3; border-radius: 0 20px 0 100px; pointer-events: none;
}
.type-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-color: var(--tc-code); }

.type-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; z-index: 1; position: relative;}
.tc-title { font-size: 1.4em; font-weight: 900; color: var(--tc-text-strong); line-height: 1.3; margin: 0; padding-right: 10px; word-break: keep-all;}
.tc-code { 
    background: var(--tc-match-bg); color: var(--tc-code); padding: 6px 14px; 
    border-radius: 20px; font-weight: 900; font-size: 0.85em; 
    border: 1px solid var(--tc-border); box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    flex-shrink: 0; letter-spacing: 1px;
}

.tc-desc { font-size: 0.95em; color: var(--tc-text-main); line-height: 1.6; margin-bottom: 25px; font-weight: 600; z-index: 1; position: relative; }

.tc-match-wrap { background: var(--tc-match-bg); padding: 16px 20px; border-radius: 16px; border: 1px solid var(--tc-match-border); z-index: 1; position: relative; display: flex; flex-direction: column; gap: 10px;}
.tc-match { font-size: 0.9em; font-weight: 700; color: var(--tc-text-strong); display: flex; align-items: center; gap: 8px; word-break: keep-all;}
.tc-match-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.85em; font-weight: 900; white-space: nowrap;}
.tc-match-badge.good { background: rgba(37, 99, 235, 0.1); color: var(--tc-good); border: 1px solid rgba(37, 99, 235, 0.2); }
.tc-match-badge.bad { background: rgba(220, 38, 38, 0.1); color: var(--tc-bad); border: 1px solid rgba(220, 38, 38, 0.2); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.footer-copyright { text-align: center; margin-top: 40px; padding-bottom: 30px; font-size: 0.9em; }
.footer-copyright a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-copyright a:hover { color: var(--text-main); text-decoration: underline; }

.footer-area {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-creator-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--c-purple-bg), var(--c-indigo-bg));
    border: 1px solid rgba(147, 51, 234, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.footer-creator-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}
@media (prefers-color-scheme: dark) {
    .footer-creator-link::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    }
}
@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.footer-creator-link:hover {
    transform: translateY(-2px);
    border-color: var(--c-purple);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.15);
}

.fcl-icon { font-size: 1.2em; }
.fcl-text { font-weight: 800; color: var(--text-strong); font-size: 0.95em; }
.fcl-arrow { color: var(--c-purple); font-weight: 900; transition: transform 0.3s; }
.footer-creator-link:hover .fcl-arrow { transform: translateX(4px); }

.footer-copyright { font-size: 0.9em; }
.footer-copyright a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-copyright a:hover { color: var(--text-main); text-decoration: underline; }
.footer-about-link {
    background: linear-gradient(90deg, var(--c-indigo), var(--c-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
}
.footer-about-link:hover { text-decoration: underline; -webkit-text-fill-color: transparent; }



#capture-area { 
    position: fixed; left: -9999px; top: 0; 
    width: 1080px; height: auto; 
    padding: 80px 60px 60px 60px; box-sizing: border-box; 
    display: block; font-family: 'Pretendard', sans-serif; z-index: -999; 
}
#capture-area[data-type] { background-color: var(--tc-bg); color: var(--tc-text-strong); }

.cap-top-wrap { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 4px solid var(--tc-match-border); padding-bottom: 20px; margin-bottom: 40px; }
.cap-header { font-size: 35px; font-weight: 900; color: var(--tc-code); letter-spacing: 2px; margin: 0; }
.cap-url { font-size: 26px; color: var(--tc-text-main); font-weight: 700; letter-spacing: 1px; }

.cap-title-area { text-align: center; margin-bottom: 50px; }
.cap-badge { display: inline-block; background: var(--tc-text-strong); color: var(--tc-bg); padding: 12px 30px; border-radius: 40px; font-size: 32px; font-weight: 900; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cap-title { font-size: 70px; font-weight: 900; color: var(--tc-text-strong); line-height: 1.2; word-break: keep-all; margin: 0; }
.cap-code { display: inline-block; font-size: 40px; color: var(--tc-code); margin-top: 25px; font-weight: 900; letter-spacing: 5px; background: rgba(0,0,0,0.05); padding: 10px 30px; border-radius: 20px; }

.cap-main-grid { display: flex; justify-content: space-between; align-items: stretch; margin-bottom: 40px; }

.cap-left-col { width: 440px; flex-shrink: 0; display: block; }
.cap-left-col > div { margin-bottom: 40px; }
.cap-left-col > div:last-child { margin-bottom: 0; }

.cap-right-col { width: 480px; flex-shrink: 0; display: block; }
.cap-right-col > div { margin-bottom: 40px; }
.cap-right-col > div:last-child { margin-bottom: 0; }

.cap-card { 
    background: rgba(255, 255, 255, 0.85); border-radius: 36px; padding: 40px; 
    box-shadow: 0 12px 40px rgba(0,0,0,0.04); border: 2px solid rgba(255,255,255, 0.5); 
}

.cap-chart-card { display: flex; justify-content: center; align-items: center; padding: 20px; }
#cap-radar-canvas { max-width: 100%; height: auto; display: block; margin: 0; }

.cap-traits-card { padding: 40px 35px; }
.cap-traits-title { font-size: 32px; color: var(--tc-text-strong); font-weight: 900; margin-bottom: 25px; border-bottom: 3px solid var(--tc-match-border); padding-bottom: 15px; }
.cap-trait-check { display: none !important; }
.cap-trait-item { position: relative; padding-left: 45px; margin-bottom: 24px; font-size: 28px; line-height: 1.45; font-weight: 800; color: var(--tc-text-main); word-break: keep-all;}
.cap-trait-item::before { content: '✔'; position: absolute; left: 0; top: 2px; color: var(--tc-code); font-size: 32px; font-weight: 900; }

.cap-desc-card { position: relative; padding: 50px 45px; }
.cap-desc-surface { position: relative; font-size: 30px; color: var(--tc-text-strong); line-height: 1.65; word-break: keep-all; text-align: center; font-weight: 800; z-index: 2; }
.cap-desc-surface::before { content: '“'; position: absolute; top: -40px; left: -15px; font-size: 80px; color: var(--tc-match-border); font-family: Georgia, serif; opacity: 0.8; line-height: 1; }
.cap-desc-surface::after { content: '”'; position: absolute; bottom: -60px; right: -15px; font-size: 80px; color: var(--tc-match-border); font-family: Georgia, serif; opacity: 0.8; line-height: 1; }

.cap-truth-card { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(254,226,226,0.6) 100%); border: 4px dashed rgba(220, 38, 38, 0.3); }
.cap-truth-header { color: #dc2626; font-size: 30px; font-weight: 900; margin-bottom: 20px; display: inline-flex; align-items: center; background: rgba(220, 38, 38, 0.08); padding: 10px 25px; border-radius: 20px; }
.cap-desc-truth-txt { color: var(--tc-text-strong); font-size: 28px; line-height: 1.6; word-break: keep-all; font-weight: 800; }

.cap-match-grid { display: flex; justify-content: space-between; align-items: stretch; margin-top: 0; }
.cap-match-item { width: 460px; display: flex; flex-direction: column; align-items: flex-start; padding: 40px 35px; overflow: hidden; position: relative; margin-bottom: 0;}
.cap-match-good-card { border-top: 8px solid var(--tc-good); }
.cap-match-bad-card { border-top: 8px solid var(--tc-bad); }

.cap-match-label { font-size: 24px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; padding: 10px 25px; border-radius: 30px; background: rgba(255,255,255,0.9); position: relative; z-index: 1;}
.good-label { color: var(--tc-good); border: 2px solid var(--tc-good); }
.bad-label { color: var(--tc-bad); border: 2px solid var(--tc-bad); }

.cap-match-type { font-size: 60px; font-weight: 900; color: var(--tc-text-strong); letter-spacing: -1px; position: relative; z-index: 1;}

.cap-footer { text-align: center; margin-top: 40px; background: var(--tc-text-strong); color: var(--tc-bg); padding: 30px; border-radius: 20px; font-size: 32px; font-weight: bold; letter-spacing: 2px; }

.return-sticky-wrap { position: fixed; bottom: 0; left: 0; width: 100%; height: 20vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 30px; pointer-events: none; z-index: 9999; }
.return-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg-body) 0%, transparent 100%); z-index: -1; }
.btn-return { pointer-events: auto; background: var(--text-strong); color: var(--bg-container); padding: 16px 32px; border-radius: 40px; font-weight: 900; font-size: 1.1em; border: none; box-shadow: var(--shadow-main); cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; }
.btn-return:hover { transform: translateY(-3px); filter: brightness(1.2); }

.stat-header-flex { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; gap: 10px;
}
.btn-toggle-stats {
    flex-shrink: 0; background: var(--bg-container); color: var(--text-main);
    border: 1px solid var(--border-main); padding: 8px 16px; 
    border-radius: 20px; font-size: 0.85em; font-weight: 900; 
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-toggle-stats:hover {
    background: var(--bg-section); color: var(--text-strong); 
    border-color: var(--text-muted); transform: translateY(-1px);
}

.chart-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
    margin-bottom: 30px; 
    width: 100%;
}
@media(min-width: 600px) { 
    .chart-grid { grid-template-columns: 1fr 1fr; } 
}

.stat-card { 
    background: var(--bg-container); border: 1px solid var(--border-main); 
    border-radius: 16px; padding: 25px 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.stat-card canvas {
    max-width: 100%;
}

.stat-card-title { 
    text-align: center; font-weight: 900; color: var(--text-strong); 
    margin-bottom: 15px; font-size: 1.05em; background: var(--bg-section); 
    padding: 8px; border-radius: 12px; border: 1px dashed var(--border-main);
}

.stat-value {
    position: relative;
    height: 1.8em;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stat-value .hover-code, .stat-value .hover-title {
    position: absolute;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.stat-value .hover-code { transform: translateY(0); opacity: 1; }
.stat-value .hover-title { transform: translateY(100%); opacity: 0; }

.stat-box:hover .hover-code, .stat-box:active .hover-code { transform: translateY(-100%); opacity: 0; }
.stat-box:hover .hover-title, .stat-box:active .hover-title { transform: translateY(0); opacity: 1; }

.my-stat-type-wrap {
    position: relative;
    height: 2.2em;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.my-stat-type-wrap .hover-code, .my-stat-type-wrap .hover-title {
    position: absolute;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.my-stat-type-wrap .hover-code { transform: translateY(0); opacity: 1; }
.my-stat-type-wrap .hover-title { transform: translateY(100%); opacity: 0; }

.my-stat-type-wrap:hover .hover-code, .my-stat-type-wrap:active .hover-code { transform: translateY(-100%); opacity: 0; }
.my-stat-type-wrap:hover .hover-title, .my-stat-type-wrap:active .hover-title { transform: translateY(0); opacity: 1; }

.action-buttons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 0;
    align-items: stretch;
}
.action-buttons-wrap .btn {
    height: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
.action-buttons-wrap .btn-share    { grid-column: 1 / 2; margin: 0; }
.action-buttons-wrap .btn-reset    { grid-column: 2 / 3; margin: 0; }
.action-buttons-wrap .btn-download { grid-column: 1 / 2; margin: 0; font-size: 0.95em; }
.action-buttons-wrap .btn-save-url { grid-column: 2 / 3; margin: 0; }
.action-buttons-wrap .btn-counsel  { grid-column: 1 / 2; margin: 0; }
.action-buttons-wrap .btn-translate{ grid-column: 2 / 3; margin: 0; }

@media (max-width: 600px) {
    .action-buttons-wrap .btn { font-size: 0.9em; padding: 14px 5px; word-break: keep-all; }
}

.btn-counsel {
    width: 100%; padding: 15px; border-radius: 12px; font-size: 1.1em; font-weight: 900;
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-purple) 100%);
    color: white; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); transition: all 0.2s;
}
.btn-counsel:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }

.btn-translate {
    width: 100%; padding: 15px; border-radius: 12px; font-size: 1.1em; font-weight: 900;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3); transition: all 0.2s;
}
.btn-translate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4); }
.btn-beta-badge {
    display: inline-block; background: rgba(255,255,255,0.25);
    border-radius: 8px; padding: 1px 7px; font-size: 0.7em;
    font-weight: 800; letter-spacing: 0.3px; vertical-align: middle; margin-left: 4px;
}
.f-btn-translate {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white; border: none;
}
.f-btn-translate:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white; box-shadow: 0 6px 15px rgba(8, 145, 178, 0.4);
}

.floating-start-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.floating-start-wrap.hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
.floating-start-gradient {
    height: 72px;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
}
.floating-start-bar {
    background: var(--bg-body);
    padding: 0 20px 24px;
    display: flex;
    justify-content: center;
}
.floating-start-btn {
    pointer-events: all;
    max-width: 480px;
    width: 100%;
    margin: 0;
}
.floating-back-btn {
    pointer-events: all;
    max-width: 480px;
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    background: transparent;
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-btn, 12px);
    color: var(--text-muted);
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.floating-back-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-base);
    background: var(--bg-section);
}

.floating-action-bar {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: var(--bg-body);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-action-bar.active {
    top: 0;
}

.f-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 2px;
    border-radius: 12px;
    border: 1px solid var(--border-main);
    background: var(--bg-container);
    color: var(--text-strong);
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.f-btn:hover {
    background: var(--bg-section);
    transform: translateY(-2px);
}
.f-icon { font-size: 1.3em; display: block; }
.f-txt { font-size: 0.75em; font-weight: 900; white-space: nowrap; display: block; }

.f-btn-counsel {
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-purple) 100%);
    color: white;
    border: none;
}
.f-btn-counsel:hover {
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-purple) 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(147, 51, 234, 0.4);
}

@keyframes slideDown { from { top: -100px; } to { top: 0; } }

.action-buttons-wrap.is-sticky .sticky-btn-target {
    flex: 1; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 2px; border-radius: 12px;
    border: 1px solid var(--border-main); background: var(--bg-container);
    color: var(--text-strong); font-size: 1em; box-shadow: none;
    height: auto;
}
.action-buttons-wrap.is-sticky .sticky-btn-target:hover { background: var(--bg-section); transform: translateY(-2px); }

.action-buttons-wrap.is-sticky .btn-share { order: 1; }
.action-buttons-wrap.is-sticky .btn-download { order: 2; }
.action-buttons-wrap.is-sticky .btn-reset { order: 3; }
.action-buttons-wrap.is-sticky .btn-counsel { order: 4; }

.action-buttons-wrap.is-sticky .s-icon { display: block; font-size: 1.3em; }
.action-buttons-wrap.is-sticky .txt-normal { display: none; }
.action-buttons-wrap.is-sticky .txt-short { display: block; font-size: 0.75em; font-weight: 900; white-space: nowrap; }

.action-buttons-wrap.is-sticky .btn-counsel {
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-purple) 100%); 
    color: white; 
    border: none;
}

.action-buttons-wrap.is-sticky .btn-counsel:hover {
    background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-purple) 100%) !important; 
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(147, 51, 234, 0.4);
}

.sim-score-wrap {
    text-align: center;
    margin: 25px 0;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--bg-container) 0%, var(--bg-section) 100%);
    border: 2px solid var(--border-main);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.sim-score-title {
    font-size: 1.1em;
    font-weight: 900;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sim-score-number {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--text-strong);
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px var(--bg-body);
}

.sim-score-number span {
    font-size: 0.4em;
    color: var(--text-light);
}

.sim-score-comment {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-body);
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05em;
    color: var(--text-strong);
    border: 1px dashed var(--border-main);
}

.sim-ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 50px; 
}
@media (max-width: 600px) {
    .sim-ranking-grid { grid-template-columns: 1fr; }
}

.sim-rank-box {
    background: var(--bg-container);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 15px;
}

.sim-rank-box.best { border-top: 4px solid var(--c-blue); }
.sim-rank-box.worst { border-top: 4px solid var(--c-red); }

.sim-rank-title {
    font-weight: 900;
    font-size: 0.95em;
    margin-bottom: 10px;
    text-align: center;
}
.sim-rank-box.best .sim-rank-title { color: var(--c-blue); }
.sim-rank-box.worst .sim-rank-title { color: var(--c-red); }

.sim-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--bg-body);
    font-size: 0.9em;
}
.sim-rank-item:last-child { border-bottom: none; }
.sim-rank-code { font-weight: 900; color: var(--text-strong); }
.sim-rank-score { font-weight: bold; color: var(--text-muted); }

.group-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 9999;
    opacity: 0; transition: opacity 0.3s ease;
}
.group-modal-overlay.active { display: flex; opacity: 1; }

.group-modal-box {
    background: var(--bg-container); border-radius: 24px; padding: 40px 30px;
    width: 90%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px); transition: transform 0.3s ease; border: 1px solid var(--border-main);
}
.group-modal-overlay.active .group-modal-box { transform: translateY(0); }

.group-modal-title { font-size: 1.5em; font-weight: 900; color: var(--text-strong); margin-bottom: 10px; text-align: center; }
.group-modal-desc { font-size: 0.95em; color: var(--text-muted); text-align: center; margin-bottom: 25px; word-break: keep-all; }

.group-input-wrap { margin-bottom: 20px; }
.group-input-wrap label { display: block; font-weight: 900; font-size: 0.9em; color: var(--text-strong); margin-bottom: 8px; }
.group-input { 
    width: 100%; padding: 15px; border-radius: 12px; border: 2px solid var(--border-main);
    background: var(--bg-section); color: var(--text-strong); font-size: 1.05em; font-weight: bold;
    outline: none; transition: border-color 0.2s;
}
.group-input:focus { border-color: var(--c-teal); }

.group-modal-btns { display: flex; gap: 10px; margin-top: 30px; }
.group-btn { flex: 1; padding: 16px; border-radius: 12px; font-weight: 900; font-size: 1.05em; border: none; cursor: pointer; transition: all 0.2s; }
.btn-g-cancel { background: var(--bg-section); color: var(--text-muted); border: 1px solid var(--border-main); }
.btn-g-cancel:hover { background: var(--border-main); color: var(--text-strong); }
.btn-g-submit { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-blue) 100%); color: white; box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3); }
.btn-g-submit:hover { transform: translateY(-2px); filter: brightness(1.1); }

.live-feed-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    height: 46px;
    overflow: hidden;
    position: relative;
    background: var(--bg-container);
    border: 1px solid var(--border-main);
    border-radius: 23px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    padding: 0 18px;
    text-decoration: none;
}
.live-feed-badge {
    background: var(--c-green-bg); color: var(--c-green);
    font-weight: 900; font-size: 0.75em; padding: 4px 8px;
    border-radius: 8px; margin-right: 12px; flex-shrink: 0;
    animation: pulseGreen 2s infinite; letter-spacing: 0.5px;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.live-feed-content {
    flex: 1; position: relative; height: 100%;
}
.live-feed-item {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 100%; font-size: 0.95em; font-weight: bold; color: var(--text-strong);
    white-space: nowrap; overflow: hidden; 
    opacity: 0; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}
.live-feed-item.active { opacity: 1; top: 50%; }
.live-feed-item.exit { opacity: 0; top: -50%; }
.live-feed-item.enter { opacity: 0; top: 150%; }
.lf-code { color: var(--c-indigo); font-weight: 900; margin-right: 6px; letter-spacing: 0.5px; flex-shrink: 0; }
.lf-time { 
    color: var(--text-muted); font-size: 0.85em; font-weight: normal; 
    margin-left: auto; 
    flex-shrink: 0;
}

.hero-highlight-box { 
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-container) 100%); 
    padding: 50px 20px 40px 20px; 
    border-radius: 24px; 
    border: 1px solid var(--border-main); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
    text-align: center; 
    margin-bottom: 50px; 
    position: relative; 
}
.hero-main-title { margin-top: 0; margin-bottom: 25px; font-size: 2em; }
.hero-hook { font-size: 2.6em; font-weight: 900; color: var(--text-strong); line-height: 1.4; letter-spacing: -1.5px; margin-bottom: 25px; word-break: keep-all; }
.hero-subhook { margin-bottom: 30px; }

.truth-highlight { 
    display: inline-block;
    color: #dc2626; 
    font-weight: 900; 
    font-size: 1.15em;
    background: rgba(220, 38, 38, 0.08); 
    padding: 12px 20px; 
    border-radius: 16px; 
    border: 1px dashed rgba(220, 38, 38, 0.3); 
    line-height: 1.6;
    word-break: keep-all;
}
@media (prefers-color-scheme: dark) { 
    .truth-highlight { color: #f87171; background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.3); } 
}
@media (max-width: 600px) { .hero-hook { font-size: 1.9em; } .truth-highlight { font-size: 1.05em; } }

.intro-seesaw-wrap { margin-top: 90px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.seesaw-container { position: relative; width: 240px; height: 100px; perspective: 1000px; margin-bottom: -5px; }
.seesaw-board { position: absolute; top: 30px; left: 0; width: 100%; height: 8px; background: linear-gradient(90deg, var(--c-teal), var(--c-yellow)); border-radius: 4px; transform-origin: center center; animation: seesawAnim 4s infinite ease-in-out; display: flex; justify-content: space-between; align-items: center; }
.seesaw-center { width: 16px; height: 16px; background: var(--border-main); border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; border: 3px solid var(--bg-container); }
.seesaw-base { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 30px solid var(--border-main); z-index: 1; }
.seesaw-item { position: absolute; bottom: 15px; padding: 8px 16px; border-radius: 12px; font-weight: 900; font-size: 0.9em; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.item-v { left: -30px; background: var(--c-teal); color: white; border: 2px solid rgba(255,255,255,0.2); animation: counterRotate 4s infinite ease-in-out; }
.item-f { right: -30px; background: var(--c-yellow); color: black; border: 2px solid rgba(255,255,255,0.5); animation: counterRotate 4s infinite ease-in-out; }
.seesaw-item span { display: block; font-size: 0.75em; opacity: 0.9; margin-top: 2px; }
.seesaw-title { font-size: 1.25em; font-weight: 900; color: var(--text-strong); margin: 0; word-break: keep-all; z-index: 3; position: relative; }

@keyframes seesawAnim { 0%, 100% { transform: rotate(-15deg); } 50% { transform: rotate(12deg); } }
@keyframes counterRotate { 0%, 100% { transform: rotate(15deg); } 50% { transform: rotate(-12deg); } }

.intro-tiers-teaser { background: var(--bg-section); padding: 40px 25px; border-radius: 24px; margin-bottom: 60px; text-align: center; border: 1px solid var(--border-main); }
.larger-title { font-size: 1.5em !important; font-weight: 900; color: var(--text-strong); margin-bottom: 25px; word-break: keep-all; }
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media (max-width: 600px) { .tiers-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .intro-tiers-teaser { padding: 30px 15px; } }
.tier-teaser-card { background: var(--bg-container); border: 1px solid var(--border-main); border-radius: 16px; padding: 25px 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: help; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tier-teaser-card:hover { transform: translateY(-5px); border-color: var(--c-indigo); box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1); }
.tier-icon { font-size: 2.5em; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); line-height: 1; }
.tier-blur { font-weight: 900; color: var(--text-strong); font-size: 0.9em; filter: blur(4px); opacity: 0.7; transition: all 0.3s; user-select: none; }
.tier-teaser-card:hover .tier-blur { filter: blur(0); opacity: 1; color: var(--c-indigo); }

.axis-section-title { text-align: center; font-size: 1.3em; font-weight: 900; margin-bottom: 25px; word-break: keep-all; }
.modern-axis-card { border: 1px solid rgba(209, 216, 224, 0.4); background: linear-gradient(145deg, var(--bg-container) 0%, var(--bg-section) 100%); transition: all 0.3s; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .modern-axis-card { border-color: rgba(51, 65, 85, 0.6); } }
.modern-axis-card .axis-letter { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.modern-axis-card:hover { border-color: var(--c-indigo); box-shadow: 0 10px 30px var(--c-indigo-bg); transform: translateY(-3px); }
.modern-axis-card:hover .axis-letter {
    background: linear-gradient(135deg, var(--c-indigo), var(--c-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    transform: scale(1.05);
}
.modern-vs { background: var(--bg-container); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); border: 1px dashed var(--border-main); padding: 14px 20px; }
.modern-vs .vs-badge { background: linear-gradient(135deg, var(--text-strong), var(--text-muted)); color: var(--bg-body); padding: 4px 10px; border-radius: 10px; font-size: 0.75em; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.axis-color-u { color: var(--c-red); font-weight: 900; }
.axis-color-d { color: var(--c-blue); font-weight: 900; }
.axis-color-m { color: var(--c-green); font-weight: 900; }
.axis-color-c { color: var(--c-purple); font-weight: 900; }
.axis-color-e { color: var(--c-orange); font-weight: 900; }
.axis-color-s { color: var(--c-indigo); font-weight: 900; }
.axis-color-f { color: var(--c-yellow); font-weight: 900; }
.axis-color-v { color: var(--c-teal); font-weight: 900; }

.intro-cta-wrap { margin-top: 60px; text-align: center; }
.modern-notice { background: rgba(37, 99, 235, 0.05); border-color: rgba(37, 99, 235, 0.2); color: var(--c-blue); }
@media (prefers-color-scheme: dark) { .modern-notice { color: #60a5fa; } }
.pulse-btn { animation: pulseAnim 2s infinite; position: relative; overflow: hidden; margin-bottom: 20px; }
@keyframes pulseAnim { 
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); } 
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } 
}

.intro-extra-wrap { margin-top: 30px; }
.extra-divider { border-top: 2px dashed var(--border-main); margin: 0 auto 20px auto; width: 100%; }
.intro-special-service-box { background: var(--bg-body); margin: 0 -40px 0 -40px; padding: 20px 40px 28px 40px; }
@media (max-width: 600px) { .intro-special-service-box { margin: 0 -20px; padding: 20px 20px 28px 20px; } }
.extra-title { font-size: 1.1em; font-weight: 900; color: var(--text-strong); margin-bottom: 20px; }
.intro-extra-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-group-map { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-blue) 100%); margin-top: 0; box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3); padding: 18px; }
.btn-counsel-main { width: 100%; margin: 0; }

.intro-compendium-wrap {
    position: relative;
}
.intro-compendium-container {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 8px;
}
.intro-compendium-container.expanded {
    max-height: 6000px;
}
.intro-compendium-fade {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-container) 60%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 55px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.intro-compendium-wrap.expanded .intro-compendium-fade {
    opacity: 0;
    pointer-events: none;
}
.intro-compendium-expand-text {
    position: relative;
    z-index: 11;
    font-size: 1.85em;
    font-weight: 900;
    color: var(--c-indigo);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.chev-group {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.chev {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--c-indigo);
    border-bottom: 2.5px solid var(--c-indigo);
    transform: rotate(45deg);
    opacity: 0;
    animation: chevFlow 1.4s ease-in-out infinite;
}
.chev:nth-child(1) { animation-delay: 0s; }
.chev:nth-child(2) { animation-delay: 0.25s; }
.chev:nth-child(3) { animation-delay: 0.5s; }
.chev-group-left .chev:nth-child(1) { animation-delay: 0.5s; }
.chev-group-left .chev:nth-child(2) { animation-delay: 0.25s; }
.chev-group-left .chev:nth-child(3) { animation-delay: 0s; }
@keyframes chevFlow {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    60%  { opacity: 0; }
    100% { opacity: 0; }
}
.intro-compendium-collapse-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
}
.intro-compendium-collapse-btn:hover {
    color: var(--text-strong);
}

.type-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; justify-content: center; align-items: center; z-index: 10000;
    opacity: 0; transition: opacity 0.3s ease;
    padding: 20px; box-sizing: border-box;
}
.type-modal-overlay.active { display: flex; opacity: 1; }

.type-modal-box {
    background: var(--bg-container); border-radius: 24px; padding: 35px 25px;
    width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); border: 1px solid var(--border-main);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.type-modal-overlay.active .type-modal-box { transform: translateY(0); }

.type-modal-close {
    position: absolute; top: 20px; right: 20px; background: var(--bg-section);
    border: 1px solid var(--border-main); width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.2em; font-weight: bold; color: var(--text-muted); cursor: pointer;
    display: flex; justify-content: center; align-items: center; transition: all 0.2s;
}
.type-modal-close:hover { background: var(--border-main); color: var(--text-strong); transform: rotate(90deg); }

.tm-header { text-align: center; margin-bottom: 25px; border-bottom: 2px dashed var(--border-main); padding-bottom: 25px; }
.tm-code { display: inline-block; background: var(--text-strong); color: var(--bg-container); padding: 6px 16px; border-radius: 20px; font-weight: 900; font-size: 0.9em; margin-bottom: 12px; letter-spacing: 1px;}
@media (prefers-color-scheme: dark) { .tm-code { background: var(--c-yellow); color: #000; } }
.tm-title { font-size: 1.6em; font-weight: 900; color: var(--text-strong); word-break: keep-all; line-height: 1.3; margin: 0;}

.tm-radar-wrap { background: var(--bg-section); border-radius: 16px; padding: 25px 15px; border: 1px solid var(--border-main); }
.tm-radar-title { text-align: center; font-weight: 900; color: var(--text-strong); font-size: 1.1em; margin-bottom: 25px; }
.tm-radar-map { display: flex; flex-direction: column; align-items: center; }

.tm-map-center { position: relative; z-index: 2; }
.tm-map-node { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; background: var(--bg-container); border: 3px solid var(--text-strong); box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-size: 1.1em; color: var(--text-strong); letter-spacing: 1px;}
@media (prefers-color-scheme: dark) { .tm-map-node { border-color: var(--c-yellow); } }

.tm-map-stem { width: 2px; height: 15px; background: var(--border-main); }
.tm-map-branches { display: flex; gap: 10px; width: 100%; position: relative; }
.tm-branch { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }

.good-branch::before { content: ''; position: absolute; top: 0; right: -5px; width: calc(50% + 5px); height: 2px; background: var(--c-blue); }
.bad-branch::before { content: ''; position: absolute; top: 0; left: -5px; width: calc(50% + 5px); border-top: 2px dashed var(--c-red); }

.tm-arrow { height: 15px; position: relative; margin-bottom: 12px; }
.tm-arrow-good { width: 2px; background: var(--c-blue); }
.tm-arrow-bad { width: 0; border-left: 2px dashed var(--c-red); }

.tm-arrow-good::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); border-width: 6px 5px 0 5px; border-style: solid; border-color: var(--c-blue) transparent transparent transparent; }
.tm-arrow-bad::after { content: ''; position: absolute; bottom: -2px; left: -1px; transform: translateX(-50%); border-width: 6px 5px 0 5px; border-style: solid; border-color: var(--c-red) transparent transparent transparent; }

.tm-target-box { background: var(--bg-container); border: 1px solid var(--border-main); border-radius: 12px; padding: 15px 12px; width: 100%; box-sizing: border-box; box-shadow: 0 4px 10px rgba(0,0,0,0.02); text-align: left; position: relative; z-index: 2; height: 100%; }
.good-box { border-top: 4px solid var(--c-blue); background: rgba(37, 99, 235, 0.03); }
.bad-box { border-top: 4px solid var(--c-red); background: rgba(220, 38, 38, 0.03); }

.tm-target-title { font-size: 0.8em; font-weight: 900; margin-bottom: 8px; }
.good-box .tm-target-title { color: var(--c-blue); }
.bad-box .tm-target-title { color: var(--c-red); }

.tm-target-type { font-weight: 900; color: var(--text-strong); font-size: 0.95em; margin-bottom: 6px; word-break: keep-all; line-height: 1.3; }
.tm-target-desc { font-size: 0.8em; color: var(--text-main); line-height: 1.5; word-break: keep-all; font-weight: 600; opacity: 0.9; }

@media (max-width: 400px) {
    .tm-map-branches { gap: 6px; }
    .tm-target-box { padding: 12px 10px; }
    .tm-target-type { font-size: 0.85em; }
    .tm-target-desc { font-size: 0.75em; }
}

.simulator-container { transition: background-color 0.4s ease, border-color 0.4s ease; }
.simulator-container.theme-good { background-color: rgba(37, 99, 235, 0.03); border-color: rgba(37, 99, 235, 0.3); }
.simulator-container.theme-bad { background-color: rgba(220, 38, 38, 0.03); border-color: rgba(220, 38, 38, 0.3); }

.sim-unified-board {
    background: var(--bg-container);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}
.sim-score-area {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-main);
    text-align: center;
}

.sim-match-info {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 600px) {
    .sim-match-info { grid-template-columns: 1fr 1fr; }
}

.match-rank-box {
    background: var(--bg-container);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.best-box { border-top: 4px solid var(--c-blue); background: rgba(37, 99, 235, 0.02); }
.worst-box { border-top: 4px solid var(--c-red); background: rgba(220, 38, 38, 0.02); }

.match-rank-title {
    font-weight: 900;
    font-size: 0.95em;
    margin-bottom: 15px;
    text-align: center;
}
.best-title { color: var(--c-blue); }
.worst-title { color: var(--c-red); }

.match-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px dashed var(--border-main);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}
.match-rank-item:hover { background: var(--bg-section); transform: translateX(3px); }
.match-rank-item:last-child { border-bottom: none; padding-bottom: 0; }

.rank-code { 
    font-weight: 800; color: var(--text-strong); 
    display: flex; align-items: center; gap: 8px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.rank-num { 
    display: inline-flex; justify-content: center; align-items: center; 
    width: 18px; height: 18px; background: var(--text-muted); color: white; 
    border-radius: 50%; font-size: 0.8em; font-weight: 900; flex-shrink: 0;
}
.best-box .rank-num { background: var(--c-blue); }
.worst-box .rank-num { background: var(--c-red); }

.rank-score { font-weight: 900; flex-shrink: 0; }
.best-score { color: var(--c-blue); }
.worst-score { color: var(--c-red); }

.sim-score-text { font-size: 1.1em; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.sim-score-val { color: var(--text-strong); font-size: 1.8em; font-weight: 900; margin: 0 5px; }
.sim-score-bar-bg { width: 100%; max-width: 400px; height: 14px; background: var(--bg-section); border-radius: 7px; overflow: hidden; margin: 0 auto 15px auto; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); }
.sim-score-bar-fill { height: 100%; width: 0%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s; }
.sim-score-comment { font-weight: 800; color: var(--text-strong); font-size: 1.1em; word-break: keep-all; }

.sim-grid-inline { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-main); }
.sim-grid-inline .sim-box { padding: 14px 16px; border-radius: 10px; }
.sim-grid-inline .sim-box-title { font-size: 0.9em; margin-bottom: 8px; }
.sim-grid-inline .sim-box-txt { font-size: 0.88em; }

.sim-deep-report-wrapper { background: var(--bg-container); border: 2px solid var(--border-main); border-radius: 16px; margin-top: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.deep-report-header { padding: 20px 25px 0 25px; font-weight: 900; font-size: 1.15em; color: var(--c-indigo); margin-bottom: 15px; }
.deep-report-content { padding: 0 25px 25px 25px; }
.deep-section { margin-bottom: 22px; }
.deep-section:last-child { margin-bottom: 0; }
.deep-title { font-weight: 900; font-size: 1em; color: var(--text-strong); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border-main); }
.deep-txt { font-size: 0.95em; color: var(--text-main); line-height: 1.75; font-weight: 600; word-break: keep-all; }

@media (prefers-color-scheme: dark) {
    .deep-title { border-bottom-color: rgba(255, 255, 255, 0.1); }
}

.cap-bar-row { margin-bottom: 20px; }
.cap-bar-row:last-child { margin-bottom: 0; }
.cap-bar-labels { display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; color: var(--tc-text-strong); margin-bottom: 10px; }
.cap-bar-labels span { display: flex; align-items: center; gap: 8px; }
.cap-bar-bg { width: 100%; height: 18px; background: rgba(0,0,0,0.1); border-radius: 9px; display: flex; overflow: hidden; }
.cap-bar-left, .cap-bar-right { height: 100%; }

.cap-traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.cap-traits-grid .cap-trait-item {
    margin-bottom: 0;
}

.btn-save-url { 
    background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-blue) 100%); 
    color: white; 
    border: none; 
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}
.btn-save-url:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.1); 
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}
.action-buttons-wrap.is-sticky .btn-save-url { order: 2; }

.privacy-modal-box {
    max-width: 650px !important;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    padding: 40px !important;
}

.privacy-modal-title {
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.privacy-modal-desc {
    text-align: center;
    margin-bottom: 25px;
}

.privacy-content {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 25px;
    word-break: keep-all;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-highlight-blue { color: var(--c-blue); font-weight: bold; }
.privacy-highlight-purple { color: var(--c-purple); font-weight: bold; }
.privacy-highlight-red { color: var(--c-red); font-weight: bold; }
.privacy-text-strong { color: var(--text-strong); }

.privacy-notice-box {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 0.95em;
    border: 1px dashed var(--border-main);
}

.privacy-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.privacy-btn-group .btn-g-cancel { flex: 1; }
.privacy-btn-group .btn-g-submit { flex: 2; }

@media (max-width: 600px) {
    .privacy-modal-box {
        padding: 25px 20px !important; 
        width: 95%; 
        max-height: 75vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .privacy-modal-title {
        font-size: 1.3em;
    }

    .privacy-content {
        font-size: 0.9em; 
    }

    .privacy-btn-group {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 20px;
    }

    .privacy-btn-group .btn-g-cancel,
    .privacy-btn-group .btn-g-submit {
        width: 100%; 
        flex: none;
    }
}

.all-types-header-intro { margin: 30px 0 20px 0; padding-top: 30px; }

.questions-loading { text-align: center; padding: 50px; color: var(--text-muted); }
.submit-btn-mt { margin-top: 50px; }

.queue-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 9999; align-items: center; justify-content: center; }
.queue-box { background: var(--bg-container); border-radius: 24px; padding: 44px 36px; max-width: 360px; width: 90%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.queue-icon { font-size: 2.8em; margin-bottom: 16px; }
.queue-title { font-size: 1.25em; font-weight: 900; color: var(--text-strong); margin-bottom: 10px; }
.queue-desc { color: var(--text-muted); font-size: 0.92em; line-height: 1.7; margin-bottom: 20px; }
.queue-active-num { color: var(--c-indigo); font-size: 1.1em; }
.queue-max-hint { font-size: 0.88em; }
.queue-countdown-box { background: var(--bg-section); border-radius: 14px; padding: 18px; margin-bottom: 20px; border: 1px solid var(--border-main); }
.queue-wait-hint { font-size: 0.83em; color: var(--text-muted); margin-bottom: 6px; }
.queue-countdown-num { font-size: 2em; font-weight: 900; color: var(--c-indigo); }
.queue-countdown-unit { font-size: 0.55em; font-weight: 600; }
.queue-bottom-hint { font-size: 0.78em; color: var(--text-muted); }

.stat-all-mt { margin-top: 20px; }

.cap-bar-section { width: 100%; margin-top: 30px; }
.cap-radar-empty-wrap { width: 100%; box-sizing: border-box; padding: 20px 0; }
.cap-empty-notice { background: rgba(217,119,6,0.08); border: 3px solid #d97706; padding: 50px 30px; border-radius: 20px; text-align: center; color: #d97706; font-weight: bold; font-size: 34px; line-height: 1.6; word-break: keep-all; }
.cap-empty-count { font-size: 40px; font-weight: 900; }
.cap-traits-section { margin-bottom: 40px; }

.tm-detail-btn { margin-top: 25px; padding: 16px; border-radius: 16px; }

.g-modal-error-wrap { text-align: center; margin-top: 10px; }
.g-modal-error-box { background: var(--c-red-bg); border: 1px solid rgba(220,38,38,0.3); padding: 25px 20px; border-radius: 16px; margin-bottom: 25px; }
.g-modal-error-icon { font-size: 2.5em; margin-bottom: 10px; }
.g-modal-error-title { color: var(--c-red); font-weight: 900; font-size: 1.1em; margin-bottom: 8px; }
.g-modal-error-desc { color: var(--text-main); font-size: 0.95em; font-weight: bold; word-break: keep-all; }
.btn-g-dark { background: var(--text-strong); color: var(--bg-body); }

.input-warn { font-size: 0.8em; color: var(--c-red); margin-top: 8px; font-weight: bold; }
.input-readonly { background: var(--bg-body); color: var(--text-muted); cursor: not-allowed; }

.result-side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
}
.rsn-list {
    background: var(--bg-container);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 180px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.rsn-list::-webkit-scrollbar { display: none; }
.rsn-section-label {
    font-size: 0.75em;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 16px 5px 16px;
}
.rsn-section-label:first-child { padding-top: 5px; }
.rsn-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 9px 16px;
    font-size: 0.92em;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
    border-radius: 0;
}
.rsn-item:hover { background: var(--bg-section); color: var(--c-indigo); }
.rsn-item.rsn-sub { padding-left: 26px; font-weight: 600; font-size: 0.85em; color: var(--text-muted); }
.rsn-item.rsn-sub:hover { color: var(--c-blue); background: var(--c-blue-bg); }
.rsn-item.rsn-active { color: var(--c-indigo); background: var(--c-indigo-bg); }
.rsn-item.rsn-sub.rsn-active { color: var(--c-blue); background: var(--c-blue-bg); }
