/* 작은 돈, 큰 신뢰 — 디자인 (반 쪽 줄래, 다 먹을래? 디자인을 바탕으로 함, 테라코타 결) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Pretendard", "Malgun Gothic", sans-serif; color: #1B1F1C; background: #FBEFE6; word-break: keep-all; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
a { color: inherit; }

.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px 20px; }
.sl-top .home { flex: none; font-size: 14px; font-weight: 700; color: #8B5A2B; text-decoration: none; }
.sl-top .logo { flex: 1 1 auto; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 900; text-decoration: none; }
/* 🔊 BGM 버튼 (공통 cookie_story.jsp 의 .hcst-tg 위에 테라코타 색) */
.sl-bgm { flex: none; display: inline-flex; }
.sl-top .hcst-tg { min-height: 32px; padding: 0 11px; border-color: #F6C7AA; background: #fff; color: #96421F; font-size: 12px; white-space: nowrap; }
.sl-top .hcst-tg:hover { border-color: #C98A4B; }
.sl-top .hcst-tg:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.sl-top .logo span { color: #B4532A; }
.sl-main { max-width: 680px; margin: 0 auto 48px; padding: 0 16px; }
.sl-main > section { background: #fff; border-radius: 28px; padding: 34px 26px; box-shadow: 0 10px 30px rgba(139,90,43,.08); }
.sl-foot { text-align: center; padding: 0 16px 36px; font-size: 13px; color: #A8927A; }
.sl-foot b { color: #8B5A2B; }

.sl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #E2D3BF; background: #fff; color: #5B3A1E; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; }
.sl-btn:hover { border-color: #C98A4B; }
.sl-btn:active { transform: scale(.98); }
.sl-btn:disabled { opacity: .6; cursor: default; }
.sl-btn.pri { background: #B4532A; border-color: #B4532A; color: #fff; }
.sl-btn.pri:hover { background: #96421F; border-color: #96421F; }
.sl-btn.big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.sl-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.sl-btn:focus-visible, .sl-opt:focus-visible, .sl-input:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.sl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.sl-muted { color: #8B7355; font-size: 14px; }
.sl-toast { min-height: 20px; margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #166534; }
.sl-eye { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #C98A4B; }

/* 시작 */
.sl-start { text-align: center; }
.sl-logo { margin: 10px 0 0; font-size: 42px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.sl-logo small { display: block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .22em; color: #B4532A; }
.sl-ask { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #5B3A1E; }
.sl-ask b { font-size: 22px; color: #1B1F1C; }
.sl-theory { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border: 1.5px solid #FDBA74; }
.sl-theory b { display: block; font-size: 15px; font-weight: 800; line-height: 1.55; color: #5B3A1E; }
.sl-theory b i { font-style: normal; margin-right: 4px; }
.sl-theory b span { color: #B4532A; }
.sl-theory small { display: block; margin-top: 6px; font-size: 13px; color: #8B7355; }
.sl-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; text-align: left; }
.sl-mode { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border-radius: 20px; border: 1.5px solid #F0E6D8; background: #FFFCF7; }
.sl-mode.tog { background: #F0F9FF; border-color: #BAE6FD; }
.sl-mode .t { font-size: 18px; font-weight: 900; }
.sl-mode p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A5249; }
.sl-mode .sl-btn { margin-top: auto; width: 100%; }
.sl-price { display: inline-block; margin: 0; padding: 6px 10px; border-radius: 10px; background: #FEF3C7; color: #92400E !important; font-size: 12px !important; font-weight: 700; line-height: 1.5; }
.sl-price.big { display: block; margin: 12px 0 0; font-size: 14px !important; text-align: center; }
.sl-gbanner { margin-top: 22px; padding: 20px; border-radius: 20px; background: #F0F9FF; border: 1.5px solid #BAE6FD; font-size: 16px; line-height: 1.6; }
.sl-gbanner span { display: block; font-size: 13px; font-weight: 800; color: #0369A1; margin-bottom: 4px; }
.sl-gbanner p { margin: 6px 0 14px; font-size: 14px; color: #4A5249; }
.sl-gbanner.closed { background: #F1F5F9; border-color: #CBD5E1; }
.sl-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #9CA3AF; }

/* 소개 */
.sl-start-ab, .sl-about { margin-top: 20px; border-radius: 18px; border: 1.5px solid #F0E6D8; background: #FFFCF7; text-align: left; }
.sl-start-ab summary, .sl-about summary { list-style: none; position: relative; display: block; padding: 16px 48px 16px 18px; cursor: pointer; font-size: 16px; font-weight: 800; color: #5B3A1E; }
.sl-start-ab summary::-webkit-details-marker, .sl-about summary::-webkit-details-marker { display: none; }
.sl-start-ab summary span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #8B7355; }
.sl-start-ab summary::after, .sl-about 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; }
.sl-start-ab[open] summary::after, .sl-about[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.sl-start-ab[open] summary, .sl-about[open] summary { border-bottom: 1px solid #F0E6D8; }
.sl-start-ab > :not(summary), .sl-about > :not(summary) { margin-left: 22px !important; margin-right: 22px !important; }
.sl-start-ab > :last-child, .sl-about > :last-child { margin-bottom: 18px; }
.sl-start-ab p, .sl-about p { font-size: 15px; line-height: 1.85; color: #374151; margin: 14px 0 0; word-break: keep-all; overflow-wrap: break-word; }
.sl-ab-lead { padding: 12px 14px; border-radius: 12px; background: #FFF7ED; font-weight: 800; color: #9A3412 !important; margin-top: 16px !important; }
.sl-start-ab h3, .sl-about h3 { margin: 26px 0 12px; font-size: 17px; font-weight: 800; word-break: keep-all; }
.sl-ab-sub { font-size: 14px !important; color: #6B7268 !important; }
.sl-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sl-uses li { padding: 12px; border-radius: 12px; background: #F0FDF4; display: flex; flex-direction: column; gap: 4px; }
.sl-uses b { color: #166534; font-size: 15px; }
.sl-uses span { font-size: 14px; line-height: 1.6; }
.sl-caution { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #FEF3C7; border: 1px solid #FDE68A; }
.sl-caution b { color: #92400E; }
.sl-caution ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #78350F; }

/* 질문 */
.sl-gtag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #E0F2FE; color: #0369A1; font-size: 13px; font-weight: 800; }
.sl-prog { height: 8px; border-radius: 4px; background: #F3E8D9; overflow: hidden; }
.sl-prog i { display: block; height: 100%; background: linear-gradient(90deg, #F59E0B, #B4532A); transition: width .3s; }
.sl-qn { margin: 22px 0 10px; font-size: 13px; font-weight: 800; color: #C98A4B; }

.sl-busy { text-align: center; padding: 70px 20px !important; }
.sl-busy p { margin: 16px 0 0; font-size: 18px; font-weight: 700; color: #5B3A1E; }

/* 결과 */
.sl-res { text-align: center; }
.sl-shared { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 700; }
.sl-type .e { display: block; font-size: 56px; line-height: 1.15; margin-top: 8px; }
.sl-type h1 { margin: 8px 0 0; font-size: 32px; font-weight: 900; color: var(--tc); }
.sl-type p { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #6B7268; }
.sl-desc { margin: 16px 0 0; font-size: 16px; line-height: 1.75; color: #374151; text-align: left; }
.sl-cardbox { margin-top: 20px; padding: 20px 18px; border-radius: 20px; border: 1px solid #F0E6D8; text-align: left; }
.sl-cardbox.center { text-align: center; }
.sl-cardbox h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.sl-cardbox p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: #374151; }
.sl-bars, .sl-tdist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-bars li, .sl-tdist li { display: grid; grid-template-columns: 100px 1fr 46px; align-items: center; gap: 10px; font-size: 14px; }
.sl-tdist li { grid-template-columns: 170px 1fr 40px; }
.sl-bars .n, .sl-tdist .n { font-weight: 700; color: #4A5249; }
.sl-bars .b, .sl-tdist .b { height: 12px; border-radius: 6px; background: #F3EEE6; overflow: hidden; }
.sl-bars .b i, .sl-tdist .b i { display: block; height: 100%; border-radius: 6px; }
.sl-bars b, .sl-tdist b { text-align: right; font-weight: 800; }
.sl-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.sl-links span { font-size: 13px; font-weight: 800; color: #8B5A2B; margin-right: 4px; }
.sl-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; }
.sl-refnote { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; font-size: 14px; font-weight: 700; color: #92400E; }

/* 함께하기 · 모임 결과 */
.sl-title { margin: 6px 0 0; font-size: 26px; font-weight: 900; line-height: 1.35; }
.sl-howto { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.sl-howto li { counter-increment: s; position: relative; padding: 12px 14px 12px 48px; border-radius: 14px; background: #FFFCF7; font-size: 14px; line-height: 1.6; color: #4A5249; }
.sl-howto li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #B4532A; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sl-howto b { display: block; color: #1B1F1C; font-size: 15px; }
.sl-label { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: #4A5249; }
.sl-input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #E2D3BF; background: #FFFCF7; font-size: 16px; }
.sl-glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-glist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FFFCF7; border: 1px solid #F0E6D8; }
.sl-glist b { display: block; font-size: 15px; }
.sl-glist small { font-size: 13px; color: #8B7355; }
.sl-glist em { font-style: normal; color: #B91C1C; }
.sl-glist .act { display: flex; gap: 6px; }
.sl-gmeta { margin: 8px 0 0; font-size: 15px; color: #6B7268; }
.sl-gmeta b { color: #B4532A; font-size: 18px; }
.sl-wait { font-size: 40px; margin: 0 !important; }
.sl-talk { margin: 6px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: #374151; }

@keyframes slIn { from { opacity: 0; transform: translateX(24px) rotate(1deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-card, .sl-story, .sl-pickres { animation: none !important; } }

@media (max-width: 520px) {
	.sl-main { padding: 0 10px; }
	.sl-main > section { padding: 26px 16px; border-radius: 22px; }
	.sl-logo { font-size: 36px; }
	.sl-modes, .sl-uses { grid-template-columns: 1fr; }
	.sl-card h2 { font-size: 18px; }
	.sl-type h1 { font-size: 26px; }
	.sl-tdist li { grid-template-columns: 120px 1fr 36px; font-size: 13px; }
	.sl-bars li { grid-template-columns: 84px 1fr 42px; font-size: 13px; }
	.sl-row .sl-btn { flex: 1 1 100%; }
}
.sl-btn.danger { color: #B91C1C; border-color: #FCA5A5; }
.sl-btn.danger:hover { background: #FEF2F2; border-color: #DC2626; }

/* 먼저 꼭 읽어 보기 (0.1.3) */
.sl-start-ab.sl-must { margin: 20px 0 0; border: 2px solid #B4532A; background: #FFF7ED; box-shadow: 0 6px 16px rgba(180,83,42,.12); }
.sl-must > summary { text-align: center; padding: 16px 44px; }
.sl-must > summary b { display: block; font-size: 19px; font-weight: 900; color: #96421F; }
.sl-must:not([open]) > summary { animation: slPulse 2.4s ease-in-out infinite; border-radius: 18px; }
.sl-mustnote { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: left; }
@keyframes slPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(180,83,42,0); } 50% { box-shadow: 0 0 0 6px rgba(180,83,42,.15); } }
@media (prefers-reduced-motion: reduce) { .sl-must > summary { animation: none !important; } }
@media (max-width: 480px) { .sl-start-ab > :not(summary), .sl-about > :not(summary) { margin-left: 16px !important; margin-right: 16px !important; } }

/* 노벨상 홍보 배지 */
.sl-nobel { display: inline-flex; align-items: center; gap: 10px; margin: 14px auto 0; padding: 8px 18px 8px 10px; border-radius: 999px; background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 2px solid #FCD34D; box-shadow: 0 6px 16px rgba(217,119,6,.18); text-align: left; }
.sl-nobel svg { width: 44px; height: 55px; flex: none; filter: drop-shadow(0 3px 4px rgba(146,64,14,.25)); }
.sl-nobel .tx b { display: block; font-size: 17px; font-weight: 900; color: #92400E; line-height: 1.25; }
.sl-nobel .tx small { display: block; font-size: 13px; font-weight: 700; color: #B45309; }
.sl-nobel.big { padding: 10px 22px 10px 12px; }
.sl-nobel.big svg { width: 60px; height: 75px; animation: slShine 3s ease-in-out infinite; }
.sl-nobel.big .tx b { font-size: 20px; }
.sl-nobel.sm { margin: 0 auto 12px; padding: 6px 14px 6px 8px; }
.sl-nobel.sm svg { width: 30px; height: 38px; }
.sl-nobel.sm .tx b { font-size: 14px; } .sl-nobel.sm .tx small { font-size: 11px; }
@keyframes slShine { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }
.sl-claim { margin: 14px auto 0; max-width: 460px; padding: 10px 14px; border-radius: 14px; background: #FFFBEB; border: 1px dashed #F59E0B; font-size: 14px; font-weight: 700; line-height: 1.6; color: #92400E; word-break: keep-all; }
.sl-theory b span { color: #B45309 !important; }
@media (prefers-reduced-motion: reduce) { .sl-nobel.big svg { animation: none; } }

/* 작은 돈, 큰 신뢰 추가 */
.sl-logo span { color: #B4532A; }
.sl-logo small { letter-spacing: .08em; font-size: 11px; }
.sl-shop { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px auto 0; width: 260px; height: 92px; border-radius: 46px; background: linear-gradient(180deg, #FCE7D9, #F6D2BC); box-shadow: 0 10px 24px rgba(180,83,42,.15); font-size: 36px; }
.sl-shop .c { font-size: 46px; animation: slWiggle 2s ease-in-out infinite; }
@keyframes slWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.sl-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sl-how li { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: #FFF4EC; border: 1px solid #F6D2BC; }
.sl-how i { font-style: normal; font-size: 22px; }
.sl-how b { color: #96421F; font-size: 15px; }
.sl-how span { font-size: 14px; line-height: 1.6; word-break: keep-all; }

.sl-play { text-align: left; }
.sl-meter { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sl-meter span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.sl-meter .t { background: #FCE7D9; color: #96421F; }
.sl-meter .m { background: #FEF3C7; color: #92400E; }
.sl-meter b { font-size: 18px; font-weight: 900; margin-left: 2px; }
.sl-play .sl-qn { text-align: center; }
.sl-card { position: relative; margin-top: 16px; padding: 28px 22px 22px; border-radius: 22px; background: linear-gradient(160deg, #FFF7F1, #FCE7D9); border: 1.5px solid #F6C7AA; box-shadow: 0 8px 20px rgba(180,83,42,.08); animation: slIn .35s ease; text-align: center; }
.sl-card-tag, .sl-story-tag { position: absolute; top: -12px; left: 18px; padding: 4px 12px; border-radius: 999px; background: #B4532A; color: #fff; font-size: 12px; font-weight: 800; }
.sl-card .e { display: block; font-size: 48px; line-height: 1.1; }
.sl-card h2 { margin: 8px 0 0; font-size: 21px; line-height: 1.45; font-weight: 900; word-break: keep-all; }
.sl-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: #374151; text-align: left; word-break: keep-all; }
.sl-card.quiz { background: linear-gradient(160deg, #FFFBEB, #FEF3C7); border-color: #FCD34D; }
.sl-card.quiz .sl-card-tag { background: #B45309; }
.sl-card.quiz h2 { text-align: left; font-size: 19px; }
.sl-opts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-opts.ox { flex-direction: row; }
.sl-opts.ox li { flex: 1; }
.sl-opts.ox .sl-opt { justify-content: center; font-size: 18px; font-weight: 800; min-height: 64px; }
.sl-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid #EADFCF; background: #FFFCF7; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.5; color: #1B1F1C; cursor: pointer; transition: border-color .15s, background .15s; word-break: keep-all; }
.sl-opt i { font-style: normal; font-size: 26px; flex: none; }
.sl-opt:hover:not(:disabled) { border-color: #D9865C; background: #FFF4EC; }
.sl-opt:disabled { cursor: default; opacity: .6; }
.sl-opt.ok { opacity: 1; border-color: #16A34A; background: #DCFCE7; color: #14532D; }
.sl-opt.no { opacity: 1; border-color: #DC2626; background: #FEE2E2; color: #7F1D1D; }
.sl-pickres { margin-top: 14px; padding: 18px; border-radius: 20px; background: #FFFCF7; border: 1.5px solid #F0E6D8; animation: slIn .3s ease; }
.sl-pickres p { margin: 0; font-size: 15px; line-height: 1.7; color: #374151; }
.sl-pickres p.me { margin-bottom: 8px; font-size: 16px; font-weight: 800; color: #96421F; }
.sl-pickres p.me i { font-style: normal; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sl-chip { padding: 4px 10px; border-radius: 999px; background: #F3EEE6; color: #6B7268; font-size: 13px; font-weight: 800; }
.sl-chip.up { background: #DCFCE7; color: #166534; }
.sl-chip.dn { background: #FEE2E2; color: #991B1B; }
.sl-story { position: relative; margin-top: 26px; padding: 26px 20px 20px; border-radius: 20px; background: #F0F7FF; border: 1.5px solid #BFDBFE; animation: slIn .4s ease; }
.sl-story-tag { background: #1D4ED8; }
.sl-story small { display: block; font-size: 13px; font-weight: 800; color: #1E40AF; }
.sl-story h3 { margin: 4px 0 0; font-size: 18px; font-weight: 900; color: #1B1F1C; word-break: keep-all; }
.sl-story p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #1F2937; word-break: keep-all; }
/* 📷 진짜 이야기 카드 아래 사진 (2장이면 넓은 화면에서 나란히, 640px 이하에서는 위아래) */
.sl-hist { position: relative; margin: 26px 0 0; padding: 22px 14px 14px; border-radius: 18px; background: #1E3A5F; min-width: 0; animation: slIn .4s ease; }
.sl-hist[hidden] { display: none; }
.sl-hist.tall { max-width: 380px; margin-left: auto; margin-right: auto; }
.sl-hist-tag { position: absolute; top: -12px; left: 18px; padding: 4px 12px; border-radius: 999px; background: #BFDBFE; color: #1B1F1C; font-size: 12px; font-weight: 800; }
.sl-hist img { display: block; width: 100%; height: auto; border-radius: 8px; background: #2B4C75; }
.sl-hist figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #F0F7FF; overflow-wrap: anywhere; word-break: keep-all; }
.sl-hist figcaption small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #BFD3EE; }
.sl-hist figcaption a { color: #FDE68A; }
.sl-hists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 26px; }
.sl-hists .sl-hist { margin: 0; }
@media (max-width: 640px) { .sl-hists { grid-template-columns: 1fr; gap: 26px; } .sl-hist.tall { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { .sl-hist { animation: none !important; } }
.sl-why { margin-top: 14px; padding: 14px 16px; border-radius: 16px; }
.sl-why.ok { background: #F0FDF4; border: 1px solid #BBF7D0; }
.sl-why.no { background: #FFF7ED; border: 1px solid #FED7AA; }
.sl-why b { font-size: 16px; }
.sl-why p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #374151; }
.sl-crumb { font-size: 64px; animation: slWiggle .6s ease-in-out infinite; }

.sl-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sl-kpi div { padding: 14px 6px; border-radius: 18px; background: #FBEDE2; text-align: center; }
.sl-kpi span { display: block; font-size: 13px; font-weight: 800; color: #96421F; }
.sl-kpi b { display: block; font-size: 28px; font-weight: 900; color: #1B1F1C; }
.sl-kpi b em { font-style: normal; font-size: 16px; color: #8B7355; }
.sl-kpi small { font-size: 12px; color: #8B7355; }
.sl-balance { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #FFF4EC; font-size: 15px; font-weight: 700; line-height: 1.6; color: #7C2D12; }
.sl-tdist li.me .n { color: #1B1F1C; font-weight: 900; }
.sl-journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-journey li { padding: 10px 12px; border-radius: 12px; background: #FFFCF7; border: 1px solid #F0E6D8; }
.sl-journey small { display: block; font-size: 12px; font-weight: 800; color: #C98A4B; }
.sl-journey b { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; word-break: keep-all; }
.sl-journey b i { font-style: normal; }
.sl-journey .sl-chips { margin-top: 6px; }
.sl-qrev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-qrev li { padding: 10px 12px; border-radius: 12px; background: #FFF7ED; }
.sl-qrev li.ok { background: #F0FDF4; }
.sl-qrev b { display: block; font-size: 15px; line-height: 1.5; word-break: keep-all; }
.sl-qrev span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: #6B7268; }
.sl-cardbox.gift { background: #FFF4EC; border-color: #F6C7AA; }
.sl-lesson { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sl-lesson li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.sl-lesson i { font-style: normal; font-size: 22px; flex: none; }
.sl-lesson b { display: block; font-size: 15px; color: #96421F; }
.sl-lesson span { display: block; font-size: 14px; line-height: 1.6; color: #374151; word-break: keep-all; }
.sl-big { font-size: 64px !important; font-weight: 900; color: #B4532A !important; margin: 4px 0 0 !important; line-height: 1.1 !important; }
.sl-big small { font-size: 26px; }
.sl-tdist.q li { grid-template-columns: 1fr 90px 44px; }
.sl-tdist.q .n { font-size: 13px; line-height: 1.45; word-break: keep-all; }
.sl-scstat { margin-top: 14px; }
.sl-scstat:first-of-type { margin-top: 4px; }
.sl-scstat > p { margin: 0 0 6px !important; font-size: 14px !important; }
.sl-scstat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-scstat li { display: grid; grid-template-columns: 1fr 90px 44px; align-items: center; gap: 8px; font-size: 13px; }
.sl-scstat .n { line-height: 1.45; color: #4A5249; word-break: keep-all; }
.sl-scstat .n i { font-style: normal; }
.sl-scstat .b { height: 10px; border-radius: 5px; background: #F3EEE6; overflow: hidden; }
.sl-scstat .b i { display: block; height: 100%; background: linear-gradient(90deg, #E9A27A, #B4532A); }
.sl-scstat b { text-align: right; font-weight: 800; }
@media (max-width: 520px) {
	.sl-how { grid-template-columns: 1fr; }
	.sl-card { padding: 26px 16px 18px; }
	.sl-card p { font-size: 15px; }
	.sl-opt { font-size: 15px; padding: 12px 14px; }
	.sl-kpi b { font-size: 22px; }
	.sl-kpi span { font-size: 12px; }
	.sl-tdist.q li, .sl-scstat li { grid-template-columns: 1fr 60px 40px; }
}
@media (prefers-reduced-motion: reduce) { .sl-shop .c, .sl-crumb { animation: none !important; } }

/* 🎬 대화 장면 (공통 cookie_story.jsp 의 .hcvn 위에 테라코타·크림 색을 덧입힘): 배경 그림 + 인물 초상 + 아래 대사창 */
.sl-vntag { margin: 18px 0 8px; font-size: 13px; font-weight: 900; color: #96421F; }
.sl-vn { margin: 0; }
.sl-vn .hcvn { background: #5B3A1E; box-shadow: 0 10px 26px rgba(139,90,43,.28); }
.sl-vn .hcvn-box { border-color: #B4532A; background: #FFF8F1; color: #3A2414; }
.sl-vn .hcvn-name { background: #B4532A; color: #fff; border-color: #FDBA74; }
.sl-vn .hcvn-text.narr { color: #6B4A2B; }
.sl-vn .hcvn-next { color: #B4532A; }
.sl-vn .hcvn-who.talk { z-index: 2; }
.sl-vn .hcvn-bar button, .sl-vn .hcvn-hint { background: rgba(91, 58, 30, .72); border-color: rgba(253, 186, 116, .6); color: #FFF6EA; }
.sl-vn .hcvn-bar button[aria-pressed="true"] { background: #FDBA74; color: #5B3A1E; }
.sl-vn .hcvn-askh { color: #96421F; }
.sl-vn .hcvn-ask button { border-color: #FDBA74; background: #96421F; color: #FFF6EA; }
.sl-vn .hcvn-ask button:hover, .sl-vn .hcvn-ask button:focus-visible { background: #B4532A; }
.sl-vn .hcvn-ask button b { color: #FDE68A; }
.sl-vn .hcvn-log p b { color: #FDBA74; }
/* 인물이 셋이면 조금 작게 */
.sl-vn.n3 .hcvn-who { height: 66%; }
@media (max-width: 640px) { .sl-vn.n3 .hcvn-who { height: 64%; } }
/* 공통 엔진이 없을 때: 대사를 한꺼번에 */
.sl-vnfb { padding: 18px; border-radius: 20px; background: #FFFCF7; border: 1.5px solid #F0E6D8; }
.sl-vnfb p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: #374151; } .sl-vnfb p b { display: block; font-size: 13px; color: #96421F; }
.sl-after { animation: slIn .3s ease; }
.sl-legend { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #FFF4EC; font-size: 13.5px; line-height: 1.6; color: #5B3A1E; text-align: center; }
.sl-legend span { font-weight: 800; } .sl-legend .a { color: #B4532A; } .sl-legend .b { color: #B45309; }
@media (prefers-reduced-motion: reduce) { .sl-after { animation: none !important; } }
@media (max-width: 520px) { .sl-top { gap: 8px; padding: 12px 14px; } .sl-top .home, .sl-top .logo { font-size: 13px; } .sl-top .hcst-tg { padding: 0 9px; } .sl-top .hcst-tg .eq { display: none; } }

/* 함께하기 닉네임 · 참여자별 결과 · 90일 자동 삭제 안내 */
.sl-nick { margin: 4px 0 12px; text-align: left; }
.sl-nick .sl-input { margin-top: 6px; }
.sl-nickhelp { display: block; font-size: 13px; color: #8B7355; line-height: 1.5; }
.sl-nickerr { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #B42318; }
.sl-nickerr[hidden] { display: none; }
.sl-nickkeep { margin: 10px 0 0 !important; font-size: 12px !important; color: #8B7355 !important; }
.sl-nickfix { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: #FFF4E5; border: 1.5px solid #F2C3A8; text-align: left; }
.sl-nickfix p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.sl-nickfix p b { display: block; color: #B42318; }
.sl-made { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #F0FDF4; border: 1px solid #BBF7D0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.sl-made b, .sl-made span { display: block; }
.sl-expire { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #8B7355; overflow-wrap: anywhere; }
.sl-mtab { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.sl-mtab th, .sl-mtab td { padding: 8px 6px; border-bottom: 1px solid #F0E6D8; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.sl-mtab th { font-size: 12px; font-weight: 800; color: #8B7355; white-space: nowrap; }
.sl-mtab .no { width: 2.4em; color: #8B7355; }
.sl-mtab .nn { font-weight: 800; }
.sl-mtab .nn em { font-style: normal; font-weight: 600; color: #8B7355; }
.sl-mtab .at { white-space: nowrap; color: #8B7355; font-size: 13px; }
@media (max-width: 640px) {
	.sl-mtab thead { display: none; }
	.sl-mtab, .sl-mtab tbody, .sl-mtab tr, .sl-mtab td { display: block; width: auto; }
	.sl-mtab tr { margin-bottom: 8px; padding: 10px 12px; border: 1px solid #F0E6D8; border-radius: 14px; background: #FFFCF7; }
	.sl-mtab td { padding: 2px 0; border: 0; font-size: 13px; }
	.sl-mtab td.no, .sl-mtab td.nn { display: inline; }
	.sl-mtab td.no::after { content: '.'; }
	.sl-mtab td.nn { margin-left: 4px; font-size: 15px; }
	.sl-mtab td[data-l]::before { content: attr(data-l) ' · '; font-weight: 700; color: #8B7355; }
	.sl-mtab .at { white-space: normal; }
}
