/* 쿱타입(COOP TYPE) 화면 */
:root { --brown: #8B4E1F; --brown-d: #6B3A14; --cream: #FDF6EC; --ink: #1F2937; --muted: #6B7280; --line: #EADCC8; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Pretendard, -apple-system, 'Malgun Gothic', sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.ct-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(253,246,236,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.ct-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .04em; color: var(--brown); text-decoration: none; font-size: 18px; }
.ct-logo small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ct-toplinks { display: flex; gap: 8px; }
.ct-toplinks a { font-size: 14px; font-weight: 700; color: var(--brown); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ct-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }

.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brown); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, transform .15s; }
.ct-btn:hover { background: #FFF8EE; }
.ct-btn.pri { background: var(--brown); border-color: var(--brown); color: #fff; }
.ct-btn.pri:hover { background: var(--brown-d); }
.ct-btn.big { min-height: 56px; padding: 0 36px; font-size: 18px; box-shadow: 0 8px 20px rgba(139,78,31,.25); }
.ct-btn:focus-visible, .ct-opt:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.ct-small { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.ct-small.center { text-align: center; }
.ct-eye { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--brown); }

/* 시작 */
.ct-start { text-align: center; padding: 24px 0 8px; }
.ct-hero-cookies { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.ct-hero-cookies .ct-cookie { filter: drop-shadow(0 6px 10px rgba(139,87,42,.2)); animation: ctBob 3.2s ease-in-out infinite; }
.ct-hero-cookies .ct-cookie:nth-child(2) { animation-delay: -.6s; } .ct-hero-cookies .ct-cookie:nth-child(3) { animation-delay: -1.2s; } .ct-hero-cookies .ct-cookie:nth-child(4) { animation-delay: -1.8s; } .ct-hero-cookies .ct-cookie:nth-child(5) { animation-delay: -2.4s; }
@keyframes ctBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.ct-start h1 { margin: 12px 0 8px; font-size: 40px; line-height: 1.25; font-weight: 900; color: #2B1A0C; }
.ct-sub { margin: 0; font-size: 18px; font-weight: 700; color: var(--brown); }
.ct-core { margin: 18px auto 0; max-width: 460px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed #D9B98F; font-size: 16px; }
.ct-core b { color: var(--brown); }
.ct-facts { display: flex; justify-content: center; gap: 8px; margin: 20px 0 26px; padding: 0; list-style: none; }
.ct-facts li { padding: 6px 14px; border-radius: 999px; background: #F5E6D0; color: var(--brown-d); font-size: 14px; font-weight: 700; }
.ct-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.ct-types span { padding: 5px 12px; border-radius: 999px; background: var(--s); color: var(--c); font-size: 13px; font-weight: 700; }

/* 질문 */
.ct-prog { margin-bottom: 22px; }
.ct-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.ct-steps span { font-size: 12px; font-weight: 700; color: #B8A48C; text-align: center; padding-bottom: 6px; border-bottom: 3px solid #EADCC8; }
.ct-steps span.done { color: var(--brown); border-color: #D9B98F; }
.ct-steps span.on { color: var(--brown); border-color: var(--brown); }
.ct-bar { height: 8px; border-radius: 999px; background: #EADCC8; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: var(--brown); border-radius: 999px; transition: width .3s; }
.ct-count { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.ct-area { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--brown); }
.ct-quiz h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.45; font-weight: 800; outline: none; }
.ct-opts { display: flex; flex-direction: column; gap: 10px; }
.ct-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.ct-opt b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #F5E6D0; color: var(--brown-d); font-size: 14px; }
.ct-opt:hover { border-color: #D9B98F; background: #FFFBF5; }
.ct-opt:active { transform: scale(.99); }
.ct-opt.sel { border-color: var(--brown); background: #FFF3E3; }
.ct-opt.sel b { background: var(--brown); color: #fff; }
.ct-nav { margin-top: 20px; }

/* 분석 중 */
.ct-load { text-align: center; padding: 72px 0; }
.ct-oven { display: inline-block; animation: ctSpin 1.5s ease-in-out infinite; }
@keyframes ctSpin { 0% { transform: rotate(0) scale(.9); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(.9); } }
.ct-load h2 { margin: 18px 0 6px; font-size: 22px; }
.ct-load p { margin: 0; color: var(--muted); font-size: 14px; }

/* 결과 */
.ct-result { display: flex; flex-direction: column; gap: 14px; }
.ct-card { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ct-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.ct-card.main { text-align: center; background: linear-gradient(180deg, var(--s, #fff), #fff 70%); border-color: var(--c, var(--line)); border-width: 2px; padding: 28px 22px; }
.ct-card.main .ct-cookie { filter: drop-shadow(0 8px 14px rgba(0,0,0,.12)); }
.ct-card.main h1 { margin: 6px 0 10px; font-size: 26px; line-height: 1.4; font-weight: 900; outline: none; }
.ct-card.main h1 em { font-style: normal; }
.ct-nick { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.ct-nick span { display: inline-block; margin-right: 6px; padding: 3px 12px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; }
.ct-nick b { color: var(--c); font-size: 18px; }
.ct-detail { margin: 0 auto 10px; max-width: 540px; padding: 10px 14px; border-radius: 12px; background: var(--s); font-size: 14px; }
.ct-lead { margin: 0 auto 8px; max-width: 560px; font-size: 16px; }
.ct-law { margin: 0 auto 4px; max-width: 560px; font-size: 13px; color: var(--muted); }
.ct-dual { margin: 12px auto 0; max-width: 560px; padding: 10px 14px; border-radius: 12px; background: #FFF7E6; color: #7A4B00; font-size: 14px; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ct-bars li { display: grid; grid-template-columns: 116px 1fr 44px; align-items: center; gap: 8px; font-size: 14px; }
.ct-bars .b { height: 10px; border-radius: 999px; background: #F1E7DA; overflow: hidden; }
.ct-bars .b i { display: block; height: 100%; border-radius: 999px; }
.ct-bars .p { text-align: right; font-weight: 700; }
.ct-why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ct-why li { padding: 10px 12px; border-radius: 12px; background: #FFFBF5; font-size: 15px; }
.ct-why small { display: block; font-size: 12px; font-weight: 700; color: var(--brown); }
.ct-second { display: flex; gap: 12px; align-items: flex-start; }
.ct-second .ct-cookie { flex: none; }
.ct-second b { color: var(--c); font-size: 17px; }
.ct-second small { color: var(--muted); font-weight: 700; }
.ct-second p { margin: 4px 0 0; font-size: 14px; color: #4B5563; }
.ct-card.warn { background: #FFFBEB; border-color: #F5D58A; }
.ct-flags { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ct-table-wrap { overflow-x: auto; }
.ct-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 14px; }
.ct-table th, .ct-table td { padding: 10px 12px; border-top: 1px solid #F1E7DA; text-align: left; vertical-align: top; }
.ct-table thead th { border-top: 0; color: var(--muted); font-size: 13px; }
.ct-table tbody th { width: 90px; color: var(--brown-d); }
.ct-check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ct-check label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FFFBF5; cursor: pointer; font-size: 15px; }
.ct-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brown); }
.ct-check input:checked + span { text-decoration: line-through; color: var(--muted); }
.ct-next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-next a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.ct-next a:hover { border-color: var(--brown); background: #FFFBF5; }
.ct-next b { font-size: 15px; color: var(--brown-d); }
.ct-next span { font-size: 13px; color: var(--muted); }
.ct-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

@media (max-width: 720px) {
	.ct-main { padding: 20px 16px 48px; }
	.ct-start h1 { font-size: 32px; }
	.ct-hero-cookies .ct-cookie { width: 44px; height: 44px; }
	.ct-quiz h2 { font-size: 20px; }
	.ct-steps span { font-size: 11px; }
	.ct-opt { font-size: 15px; padding: 12px 14px; }
	.ct-grid { grid-template-columns: 1fr; }
	.ct-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-card.main h1 { font-size: 22px; }
	.ct-bars li { grid-template-columns: 96px 1fr 40px; font-size: 13px; }
	.ct-logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ct-hero-cookies .ct-cookie, .ct-oven { animation: none; } }
@media print {
	.ct-top, .ct-actions, .ct-next { display: none !important; }
	body { background: #fff; }
	.ct-card { break-inside: avoid; }
}
