/* 킹리적 쿱심 — 모바일 먼저, PC는 가운데 카드 */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Pretendard", "Malgun Gothic", sans-serif; color: #1B1F1C; background: #FDF6EC; word-break: keep-all; -webkit-text-size-adjust: 100%; }
button { font: inherit; }
a { color: inherit; }

.cs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 720px; margin: 0 auto; padding: 14px 20px; }
.cs-top .home { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #8B5A2B; text-decoration: none; }
.cs-top .logo { font-size: 15px; font-weight: 900; color: #1B1F1C; text-decoration: none; }
.cs-top .logo span { color: #EA580C; }

.cs-main { max-width: 640px; margin: 0 auto 48px; padding: 0 16px; }
.cs-main > section { background: #fff; border-radius: 28px; padding: 36px 28px; box-shadow: 0 10px 30px rgba(139,90,43,.08); }

.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #E2D3BF; background: #fff; color: #5B3A1E; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.cs-btn:hover { border-color: #C98A4B; }
.cs-btn:active { transform: scale(.98); }
.cs-btn.pri { background: #EA580C; border-color: #EA580C; color: #fff; }
.cs-btn.pri:hover { background: #C2410C; border-color: #C2410C; }
.cs-btn.big { min-height: 58px; padding: 0 34px; font-size: 18px; }
.cs-btn:focus-visible, .cs-opt:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }

/* 시작 */
.cs-start { text-align: center; }
.cs-crown { font-size: 52px; line-height: 1; animation: csBob 2.4s ease-in-out infinite; }
.cs-eye { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #C98A4B; }
.cs-logo { margin: 6px 0 0; font-size: 44px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.cs-logo small { display: block; margin-top: 6px; font-size: 14px; font-weight: 800; letter-spacing: .2em; color: #EA580C; }
.cs-slogan { margin: 14px 0 0; font-size: 18px; font-weight: 700; color: #5B3A1E; }
.cs-asks { list-style: none; margin: 24px 0 28px; padding: 18px 20px; border-radius: 18px; background: #FFF7ED; text-align: left; font-size: 15px; color: #4A5249; }
.cs-asks li { padding: 4px 0 4px 26px; position: relative; }
.cs-asks li::before { content: "🍪"; position: absolute; left: 0; top: 4px; font-size: 14px; }
.cs-meta { margin: 14px 0 0; font-size: 14px; color: #6B7268; }
.cs-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #9CA3AF; }

/* 거리 막대 */
.cs-dist { display: flex; align-items: center; gap: 10px; margin: 22px auto 0; max-width: 420px; }
.cs-dist span { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.cs-dist .me { background: #FEE2E2; color: #B91C1C; }
.cs-dist .co { background: #DCFCE7; color: #166534; }
.cs-dist i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #E2D3BF 0 8px, transparent 8px 14px); }
.cs-start .cs-dist i::after { content: "🤔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; animation: csSlide 3s ease-in-out infinite; }
.cs-dist.res i em { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--tc, #EA580C); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transform: translate(-50%, -50%); }

/* 질문 */
.cs-prog .bar { height: 8px; border-radius: 4px; background: #F3E8D9; overflow: hidden; }
.cs-prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, #F59E0B, #EA580C); border-radius: 4px; transition: width .3s; }
.cs-prog .steps { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.cs-prog .steps span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: #C4B5A0; padding: 4px 0; border-radius: 999px; }
.cs-prog .steps span.on { color: #fff; background: var(--c); }
.cs-qn { margin: 26px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.cs-q { margin: 0; font-size: 23px; line-height: 1.45; font-weight: 800; }
.cs-hint { margin: 8px 0 0; font-size: 14px; color: #8B7355; }
.cs-opts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-opt { width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid #EADFCF; background: #FFFCF7; text-align: left; font-size: 16px; font-weight: 600; color: #1B1F1C; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s, transform .12s; }
.cs-opt:hover { border-color: #F59E0B; background: #FFF7ED; }
.cs-opt.sel { border-color: #EA580C; background: #FFEDD5; }
.cs-opt.ok { border-color: #16A34A; background: #DCFCE7; }
.cs-opt.no { border-color: #DC2626; background: #FEE2E2; }
.cs-opt:disabled { cursor: default; }
.cs-opt em { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #F3E8D9; color: #8B5A2B; font-style: normal; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.cs-opts.ladder .cs-opt.sel em { background: #EA580C; color: #fff; }
.cs-opts.scale { flex-direction: row; gap: 6px; }
.cs-opts.scale li { flex: 1; }
.cs-opt.sc { flex-direction: column; justify-content: center; text-align: center; min-height: 76px; padding: 10px 4px; font-size: 13px; line-height: 1.35; gap: 0; }
.cs-fb { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: #F0FDF4; font-size: 15px; line-height: 1.6; }
.cs-fb .cs-btn { display: flex; margin-top: 12px; width: 100%; }
.cs-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.cs-cnt { font-size: 14px; font-weight: 700; color: #C4B5A0; }

/* 분석 중 */
.cs-busy { text-align: center; padding: 70px 20px !important; }
.cs-oven { font-size: 72px; animation: csSpin 1.6s ease-in-out infinite; }
.cs-busy p { margin: 18px 0 0; font-size: 18px; font-weight: 700; color: #5B3A1E; }
.cs-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.cs-dots i { width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; animation: csDot 1s infinite; }
.cs-dots i:nth-child(2) { animation-delay: .15s; } .cs-dots i:nth-child(3) { animation-delay: .3s; }

/* 결과 */
.cs-res { text-align: center; }
.cs-shared { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 700; }
.cs-type .e { display: block; font-size: 64px; line-height: 1.1; margin-top: 8px; }
.cs-type h1 { margin: 8px 0 0; font-size: 32px; font-weight: 900; color: var(--tc); letter-spacing: -.02em; }
.cs-type p { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #6B7268; }
.cs-index { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px; padding: 12px 24px; border-radius: 999px; background: #FFF7ED; }
.cs-index span { font-size: 14px; font-weight: 700; color: #8B5A2B; }
.cs-index b { font-size: 40px; font-weight: 900; color: var(--tc); line-height: 1; }
.cs-index small { font-size: 15px; font-weight: 700; color: #9CA3AF; }
.cs-gap { margin: 10px 0 0; font-size: 14px; color: #6B7268; }
.cs-gap b { color: #1B1F1C; }
.cs-desc { margin: 18px 0 0; font-size: 16px; line-height: 1.75; color: #374151; text-align: left; }
.cs-card { margin-top: 22px; padding: 22px 20px; border-radius: 20px; border: 1px solid #F0E6D8; text-align: left; }
.cs-card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.cs-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: #374151; }
.cs-radar { display: block; width: 100%; max-width: 330px; margin: 0 auto; }
.cs-radar .g { fill: none; stroke: #F0E6D8; stroke-width: 1; }
.cs-radar .a { stroke: #F0E6D8; stroke-width: 1; }
.cs-radar .v { fill: rgba(234,88,12,.18); stroke: #EA580C; stroke-width: 2.5; stroke-linejoin: round; }
.cs-radar text { font-size: 12px; font-weight: 800; }
.cs-bars { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-bars li { display: grid; grid-template-columns: 92px 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.cs-bars .n { font-weight: 700; color: #4A5249; }
.cs-bars .b { height: 12px; border-radius: 6px; background: #F3EEE6; overflow: hidden; }
.cs-bars .b i { display: block; height: 100%; border-radius: 6px; }
.cs-bars b { text-align: right; font-weight: 800; }
.cs-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cs-links span { font-size: 13px; font-weight: 800; color: #8B5A2B; margin-right: 4px; }
.cs-links a { padding: 8px 14px; border-radius: 999px; background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; font-size: 14px; font-weight: 700; text-decoration: none; }
.cs-links a:hover { background: #FFEDD5; }
.cs-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.cs-toast { min-height: 20px; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #166534; }
.cs-about { margin-top: 18px; text-align: left; font-size: 14px; color: #6B7268; }
.cs-about summary { cursor: pointer; font-weight: 700; color: #8B5A2B; }
.cs-about ul { margin: 8px 0; padding-left: 18px; line-height: 1.7; }
.cs-about p { margin: 8px 0 0; line-height: 1.7; }

.cs-foot { text-align: center; padding: 0 16px 36px; font-size: 13px; color: #A8927A; }
.cs-foot b { color: #8B5A2B; }

@keyframes csBob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
@keyframes csSlide { 0%,100% { left: 30%; } 50% { left: 70%; } }
@keyframes csSpin { 0%,100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.08); } }
@keyframes csDot { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cs-crown, .cs-oven, .cs-dots i, .cs-start .cs-dist i::after { animation: none !important; } }

@media (max-width: 480px) {
	.cs-main { padding: 0 10px; }
	.cs-main > section { padding: 28px 18px; border-radius: 22px; }
	.cs-logo { font-size: 36px; }
	.cs-q { font-size: 20px; }
	.cs-opt.sc { font-size: 12px; min-height: 68px; }
	.cs-type h1 { font-size: 26px; }
	.cs-bars li { grid-template-columns: 80px 1fr 32px; font-size: 13px; }
	.cs-share .cs-btn { flex: 1 1 100%; }
}

/* 소개 (0.2.0) */
.cs-btn.ghost { margin-top: 12px; min-height: 40px; border: 0; background: transparent; color: #8B5A2B; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.cs-btn.ghost:hover { color: #EA580C; }
.cs-ab { text-align: left; }
.cs-ab-title { margin: 6px 0 14px; font-size: 26px; font-weight: 900; line-height: 1.35; }
.cs-ab p { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: #374151; }
.cs-ab-lead { padding: 14px 16px; border-radius: 14px; background: #FFF7ED; font-weight: 800; color: #9A3412 !important; }
.cs-ab h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 800; color: #1B1F1C; }
.cs-th { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-th li { padding: 16px 16px 14px; border-radius: 16px; border: 1px solid #F0E6D8; background: #FFFCF7; }
.cs-th .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cs-th .h b { font-size: 16px; font-weight: 800; }
.cs-th .h small { font-size: 12px; color: #9CA3AF; }
.cs-ab .cs-th .who { margin-top: 2px; font-size: 13px; font-weight: 700; color: #C2410C; }
.cs-ab .cs-th p { font-size: 14px; }
.cs-th .qq { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; }
.cs-th .qq span { flex: 1; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #F0E6D8; font-size: 14px; font-weight: 700; line-height: 1.5; }
.cs-th .qq span:last-child { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.cs-th .qq em { display: block; margin-bottom: 2px; font-style: normal; font-size: 11px; font-weight: 800; color: #9CA3AF; }
.cs-th .qq i { align-self: center; font-style: normal; color: #C98A4B; font-weight: 800; }
.cs-ab .cs-th .use { margin-top: 8px; font-size: 13px; color: #6B7268; }
.cs-ab .cs-ab-sub { font-size: 14px; color: #6B7268; }
.cs-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cs-uses li { padding: 14px; border-radius: 14px; background: #F0FDF4; display: flex; flex-direction: column; gap: 4px; }
.cs-uses b { font-size: 15px; color: #166534; }
.cs-uses span { font-size: 14px; line-height: 1.6; color: #374151; }
.cs-caution { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: #FEF3C7; border: 1px solid #FDE68A; }
.cs-caution b { font-size: 15px; color: #92400E; }
.cs-caution ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #78350F; }
.cs-refnote { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; font-size: 14px; font-weight: 700; color: #92400E; }
.cs-res .cs-about.cs-ab { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid #F0E6D8; }
.cs-res .cs-about.cs-ab summary { font-size: 15px; }
@media (max-width: 480px) {
	.cs-uses { grid-template-columns: 1fr; }
	.cs-th .qq { flex-direction: column; }
	.cs-th .qq i { transform: rotate(90deg); }
}

/* 첫 화면 소개 펼치기 (0.2.1) */
.cs-start-ab { margin-top: 22px; padding: 0; border-radius: 18px; border: 1.5px solid #F0E6D8; background: #FFFCF7; text-align: left; }
.cs-start-ab summary { list-style: none; position: relative; display: block; padding: 16px 48px 16px 18px; cursor: pointer; font-size: 16px; font-weight: 800; color: #5B3A1E; }
.cs-start-ab summary::-webkit-details-marker { display: none; }
.cs-start-ab summary span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #8B7355; }
.cs-start-ab summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid #C98A4B; border-bottom: 2.5px solid #C98A4B; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.cs-start-ab[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.cs-start-ab[open] summary { border-bottom: 1px solid #F0E6D8; }
.cs-start-ab > :not(summary) { margin-left: 18px; margin-right: 18px; }
.cs-start-ab > .cs-share { padding-bottom: 20px; }
.cs-start-ab > .cs-ab-lead { margin-top: 16px; }

/* 5가지 사회이론 특장점 (0.2.2) */
.cs-theory5 { margin: 18px auto 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border: 1.5px solid #FDBA74; }
.cs-theory5 b { display: block; font-size: 16px; font-weight: 800; line-height: 1.5; color: #5B3A1E; }
.cs-theory5 b i { font-style: normal; margin-right: 4px; }
.cs-theory5 b span { color: #EA580C; }
.cs-theory5 ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cs-theory5 li { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #FED7AA; font-size: 12px; font-weight: 700; color: #9A3412; }

/* 우리 협동조합 판 (0.3.0) */
.cs-who { margin: -12px 0 18px; padding: 10px 14px; border-radius: 12px; background: #F0FDF4; font-size: 14px; font-weight: 700; line-height: 1.6; color: #166534; }

/* 먼저 꼭 읽어 보기 (0.3.2) */
.cs-start-ab.cs-must { margin: 0 0 16px; border: 2px solid #EA580C; background: #FFF7ED; box-shadow: 0 6px 16px rgba(234,88,12,.12); }
.cs-must > summary { text-align: center; padding: 16px 44px; }
.cs-must > summary b { display: block; font-size: 19px; font-weight: 900; color: #C2410C; }
.cs-must > summary span { margin-top: 4px; }
.cs-must:not([open]) > summary { animation: csPulse 2.4s ease-in-out infinite; border-radius: 18px; }
.cs-mustnote { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-size: 14px; font-weight: 700; line-height: 1.6; }
@keyframes csPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(234,88,12,.0); } 50% { box-shadow: 0 0 0 6px rgba(234,88,12,.15); } }
@media (prefers-reduced-motion: reduce) { .cs-must > summary { animation: none !important; } }
