
:root{--ink:#343448;--sub:#7c7b8e;--pink:#ef829e;--deep:#dc6485;--cream:#fff9f2;--line:#efe8e9;--blue:#7aa8d8}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:linear-gradient(155deg,#fff4f5 0%,#fffefa 49%,#eff9ff 100%);font:16px/1.7 system-ui,-apple-system,"Noto Sans KR",sans-serif;min-height:100vh}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.shell{max-width:1020px;margin:auto;padding:0 22px}.top{border-bottom:1px solid #ffffffc9;background:#ffffffb5;backdrop-filter:blur(12px)}.top .shell{height:75px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;letter-spacing:-.8px;font-size:19px;color:#ca6f89}.brand span{font-size:24px}.top small{color:#908595}.hero{text-align:center;padding:70px 0 38px}.pill{display:inline-block;color:#c76888;background:#ffe7ef;border:1px solid #ffdae5;border-radius:30px;padding:6px 18px;font-size:13px;font-weight:750}.hero h1{font-size:clamp(34px,5vw,60px);letter-spacing:-2px;line-height:1.27;margin:20px 0}.hero h1 em{color:var(--deep);font-style:normal}.hero-subtitle{font-weight:750;font-size:clamp(19px,3vw,27px)!important;color:var(--deep)!important;margin-bottom:14px!important}.hero p{color:var(--sub);font-size:17px;margin:0 auto;max-width:630px;word-break:keep-all}.features{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:24px 0}.features span{background:#fff;border:1px solid var(--line);border-radius:30px;padding:7px 15px;color:#817482;font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 18px 65px #a8677930;padding:clamp(23px,4vw,46px);margin:18px auto 38px;max-width:780px}.preview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.preview img{width:100%;height:175px;object-fit:cover;border-radius:19px;background:#fff8f5}.action{border:0;border-radius:15px;background:var(--pink);color:white;font-weight:800;padding:15px 28px;min-height:52px;box-shadow:0 8px 23px #ef829e55}.action:hover:not(:disabled){background:var(--deep)}.secondary{border:1px solid #e9dfe3;background:white;color:#77717d;box-shadow:none}.center{text-align:center}.hint{font-size:13px;color:var(--sub);margin:14px 0}.progress-head{display:flex;justify-content:space-between;font-size:14px;font-weight:800;color:#a27a88}.track{height:10px;border-radius:30px;background:#f8ebee;overflow:hidden;margin:10px 0 27px}.fill{background:linear-gradient(90deg,#f1abc3,#e97594);height:100%;border-radius:30px;transition:width .25s}.chapter{font-size:13px;color:var(--deep);font-weight:900;letter-spacing:1px}.question{word-break:keep-all;font-size:clamp(23px,3.4vw,30px);line-height:1.4;letter-spacing:-.7px;margin:10px 0}.situation{color:#5b4653;font-size:16px;font-weight:750;line-height:1.7;margin:15px 0 24px;padding:16px 20px;background:#fff0f5;border:1px solid #f1bfd0;border-left:5px solid #e9799b;border-radius:13px;word-break:keep-all}.options{display:grid;gap:10px}.opt{width:100%;text-align:left;display:flex;gap:15px;align-items:center;border:2px solid #f3edf0;border-radius:14px;padding:13px 16px;background:#fff;color:#5e5968;transition:.15s}.opt:hover{border-color:#f3a8bd;background:#fff9fb}.opt.sel{border-color:#ee7d9e;background:#fff0f5;color:#973f5d;font-weight:800}.dot{height:25px;min-width:25px;border-radius:50%;border:2px solid #e8d8de;display:grid;place-items:center;font-size:12px}.sel .dot{background:var(--pink);border-color:var(--pink);color:#fff}.nav{display:flex;gap:12px;justify-content:space-between;margin-top:27px}.nav button{flex:1}.hidden{display:none!important}.result-hero{text-align:center}.result-photo{width:min(100%,340px);height:260px;object-fit:contain;background:#fff7f8;border-radius:24px;border:8px solid #fff6f8;box-shadow:0 5px 22px #ad83972b}.result-title{font-size:32px;line-height:1.3;letter-spacing:-1px;margin:10px 0}.type-chip{display:inline-block;border-radius:20px;background:#f7eaf6;color:#9d60a3;padding:4px 15px;font-size:19px;font-weight:900}.card-title{font-size:21px;margin:0 0 12px;letter-spacing:-.5px}.desc{color:#777584;line-height:1.85}.box{border:1px solid #f0e8eb;border-radius:19px;background:#fffdfc;padding:22px;margin-top:18px}.stats{display:grid;gap:20px}.axis-header{display:flex;justify-content:space-between;font-size:14px;font-weight:800}.bar{height:14px;border-radius:20px;background:#e5f0f8;overflow:hidden;display:flex;margin:8px 0}.bar .left{background:#ed9bb2;height:100%}.percent{font-size:12px;color:#8c8893}.tags{display:flex;flex-wrap:wrap;gap:8px}.tag{background:#fff2f7;color:#b96883;border-radius:30px;padding:5px 12px;font-size:13px;font-weight:750}.rank{display:flex;align-items:center;gap:12px;margin:13px 0}.rank img{width:65px;height:55px;border-radius:12px;object-fit:cover}.rank .rankmid{flex:1}.rank .rankbar{height:8px;background:#f1e9ed;border-radius:20px;overflow:hidden}.rank .rankbar i{display:block;height:100%;background:#ef9ab5}.footer{font-size:12px;color:#918b96;text-align:center;padding:26px 0 40px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.notice{background:#fff8e9;border:1px solid #f6ebd5;padding:14px 18px;border-radius:13px;font-size:13px;color:#887b67}.divider{height:1px;background:#f0e8ea;margin:25px 0}.report{white-space:pre-line}.muted{color:#9b91a2}.shareline{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:25px 0 4px}.shareline button{flex:1;min-width:145px}@media(max-width:600px){.shell{padding:0 15px}.top .shell{height:65px}.top small{font-size:11px}.hero{padding:43px 0 24px}.panel{padding:21px 17px;border-radius:22px}.preview{gap:6px}.preview img{height:120px;border-radius:12px}.grid{grid-template-columns:1fr}.opt{font-size:14px;padding:12px}.nav button{padding:12px 10px}.result-title{font-size:27px}}
.compat-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.compat-head strong{font-size:17px}.compat-character{display:flex;align-items:center;gap:18px;margin:14px 0}.compat-character img{width:135px;height:125px;object-fit:cover;border-radius:18px;background:#fff5f7}.compat-character h4{font-size:22px;margin:0 0 6px}.compat-character p{margin:0}.compatibility .desc{margin:12px 0}.compatibility .hint{margin-top:0}@media(max-width:440px){.compat-character img{width:100px;height:108px}.compat-character{gap:12px}}.tension{background:#fdfcff;border-color:#e9e4f0}.tension .type-chip{background:#eeeafa;color:#6d618e}.tension .compat-character img{background:#f4f0ff}.tension .hint{color:#7b718c}
/* 테스트 페이지 전용 헤더: 퀴즈의 .nav 스타일과 분리 */
.test-site-header{position:sticky;top:0;z-index:100;background:rgba(255,250,252,.97);border-bottom:1px solid #f4dfe7;backdrop-filter:blur(12px)}
.top .test-header-inner{max-width:1240px;width:100%;height:auto;min-height:86px;gap:20px;padding:14px 24px;position:relative}
.test-brand-group{flex-shrink:0}
.test-brand-group .brand{color:#bf6684;font-size:19px;line-height:1.5;white-space:nowrap}
.test-brand-group small{display:block;color:#b29aa6;font-size:9px;letter-spacing:1.3px;margin-top:3px}
.test-site-nav{display:flex;align-items:center;gap:6px;min-width:0}
.test-site-nav a{text-decoration:none;white-space:nowrap;padding:10px 13px;border:1px solid transparent;border-radius:24px;color:#8c6b7d;font-size:13px;font-weight:750;line-height:1.5;transition:background .18s,color .18s,border-color .18s}
.test-site-nav a:hover,.test-site-nav a:focus-visible{color:#b84970;background:#ffeaf2;border-color:#f5ccdb}
.test-menu-toggle{display:none;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:8px 13px;background:#fff0f5;border:1px solid #f1d6e2;border-radius:14px;color:#b96c89;font-size:13px;font-weight:750}
.test-menu-toggle>span:first-child{font-size:22px;line-height:1}
.test-menu-toggle:focus-visible,.test-site-nav a:focus-visible{outline:3px solid #edb2c8;outline-offset:3px}
@media(max-width:1050px){
 .top .test-header-inner{min-height:78px;padding:12px 20px;flex-wrap:wrap;gap:10px}
 .test-menu-toggle{display:inline-flex}
 .test-site-nav{display:none;flex:0 0 100%;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 3px;max-height:calc(100dvh - 110px);overflow-y:auto}
 .test-site-nav.is-open{display:grid}
 .test-site-nav a{min-width:0;min-height:47px;display:flex;align-items:center;justify-content:center;white-space:normal;word-break:keep-all;text-align:center;padding:11px 8px;background:#fff4f8;border:1px solid #f5e0e9;border-radius:14px;font-size:14px}
 .test-site-nav a:last-child{grid-column:1/-1}
}
@media(max-width:360px){.top .test-header-inner{padding:11px 14px}.test-brand-group .brand{font-size:17px}.test-brand-group small{font-size:8px;letter-spacing:.7px}.test-menu-toggle{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.test-site-nav a{transition:none}}


/* PC 헤더만 글자와 여백 확대. 모바일 기존 크기 유지 */
@media(min-width:1051px){
 .top .test-header-inner{max-width:1320px;min-height:90px;gap:22px;padding:16px 24px}
 .test-brand-group .brand{font-size:22px;line-height:1.5}
 .test-brand-group small{font-size:10px;letter-spacing:1.4px;margin-top:4px}
 .test-site-nav{gap:5px}
 .test-site-nav a{font-size:16px;font-weight:750;padding:11px 12px;line-height:1.5}
}


.inline-style-1 { width:min(100%,370px) }
.inline-style-2 { width:2% }
.inline-style-3 { flex:none;min-width:135px }
.inline-style-4 { margin:auto 0 auto auto }
.inline-style-5 { font-weight:800 }