/* 초성 퀴즈(2026-10-27 개발자3). 공용 /psych/style.css 위에 덮는다. 본문 14px 이상. */
.stage.cs { padding: 0 0 40px; }
.hidden { display: none !important; }
.cs-head { text-align: center; margin: 12px 16px 0; }
.cs-eyebrow { font-size: 14px; font-weight: 800; color: #0C8599; }
.cs-title { font-size: 30px; font-weight: 900; color: #111827; margin: 2px 0 0; letter-spacing: -0.02em; }
.cs-sub { font-size: 15px; line-height: 1.6; color: #4B5563; margin: 6px 0 0; word-break: keep-all; }

.cs-box { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 22px; padding: 16px; margin: 16px 16px 0; }
.cs-box-title { font-size: 17px; font-weight: 900; color: #111827; margin-bottom: 10px; }
.cs-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font-family: inherit; border: 0; border-radius: 18px; padding: 14px 12px;
    min-height: 112px; color: #fff; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.12); -webkit-tap-highlight-color: transparent; }
.cs-topic:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.cs-topic .e { font-size: 30px; line-height: 1; }
.cs-topic .n { font-size: 17px; font-weight: 900; word-break: keep-all; }
.cs-topic .d { font-size: 14px; font-weight: 700; opacity: .92; line-height: 1.4; word-break: keep-all; }
.cs-topic .p { margin-top: auto; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 8px; }
.cs-t0 { background: linear-gradient(135deg, #F59F00, #E8590C); }
.cs-t1 { background: linear-gradient(135deg, #4DABF7, #1971C2); }
.cs-t2 { background: linear-gradient(135deg, #FF6B6B, #C92A2A); }
.cs-t3 { background: linear-gradient(135deg, #38D9A9, #0C8599); }
.cs-t4 { background: linear-gradient(135deg, #9775FA, #6741D9); }
.cs-rule { font-size: 14px; color: #6B7280; margin: 12px 0 0; line-height: 1.6; word-break: keep-all; }
.cs-rule b { color: #0C8599; }

.cs-challenge { text-align: center; padding: 6px 0 4px; }
.cs-ch-badge { display: inline-block; font-size: 14px; font-weight: 900; color: #fff; background: #E8590C; border-radius: 999px; padding: 4px 12px; }
.cs-ch-title { font-size: 22px; font-weight: 900; color: #111827; margin-top: 10px; word-break: keep-all; }
.cs-ch-desc { font-size: 15px; color: #4B5563; margin: 6px 0 0; }
.cs-text-btn { display: block; margin: 10px auto 0; font-family: inherit; font-size: 14px; font-weight: 800; color: #6B7280; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px; }

.cs-main { display: block; width: 100%; margin-top: 14px; font-family: inherit; font-size: 18px; font-weight: 900; color: #fff;
    background: linear-gradient(180deg, #15AABF, #0C8599); border: 0; border-radius: 16px; padding: 15px; cursor: pointer; box-shadow: 0 5px 0 #0B7285; }
.cs-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #0B7285; }

/* 게임 */
.cs-game { background: linear-gradient(180deg, #E3FAFC 0%, #fff 60%); border-color: #C5F6FA; }
.cs-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-topic-chip { font-size: 14px; font-weight: 800; color: #0B7285; background: #fff; border: 1.5px solid #99E9F2; border-radius: 999px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cs-progress { font-size: 15px; font-weight: 900; color: #111827; }
.cs-score { position: relative; font-size: 15px; font-weight: 900; color: #E8590C; }
.cs-plus { position: absolute; right: 0; top: -4px; font-style: normal; font-size: 18px; font-weight: 900; color: #2B8A3E; opacity: 0; pointer-events: none; }
.cs-plus.show { animation: csPlus .9s ease-out; }
@keyframes csPlus { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 25% { opacity: 1; transform: translateY(-10px) scale(1.15); } 100% { opacity: 0; transform: translateY(-30px) scale(1); } }
.cs-timer-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cs-timer { flex: 1; height: 10px; background: #E9ECEF; border-radius: 999px; overflow: hidden; }
.cs-sec { flex-shrink: 0; min-width: 34px; text-align: right; font-size: 14px; font-weight: 900; color: #495057; }
.cs-game { position: relative; }
.cs-combo { position: absolute; left: 50%; top: 58px; z-index: 3; white-space: nowrap; font-size: 20px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF922B, #E8590C);
    border-radius: 999px; padding: 5px 16px; box-shadow: 0 4px 12px rgba(232,89,12,.35); opacity: 0; pointer-events: none; transform: translate(-50%, 0); }
.cs-combo.show { animation: csCombo 1.2s ease-out; }
@keyframes csCombo { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -4px) scale(1.2); } 35% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.cs-game { transition: box-shadow .2s; }
.cs-game.good { animation: csGood .6s ease-out; }
.cs-game.bad { animation: csBad .5s ease-out; }
@keyframes csGood { 0% { box-shadow: 0 0 0 0 rgba(43,138,62,.0); } 30% { box-shadow: 0 0 0 6px rgba(43,138,62,.45); } 100% { box-shadow: 0 0 0 0 rgba(43,138,62,0); } }
@keyframes csBad { 0% { box-shadow: 0 0 0 0 rgba(224,49,49,0); } 30% { box-shadow: 0 0 0 6px rgba(224,49,49,.45); } 100% { box-shadow: 0 0 0 0 rgba(224,49,49,0); } }
.cs-feedback.pop { animation: csFb .4s ease-out; }
@keyframes csFb { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cs-timer i { display: block; height: 100%; width: 100%; background: #15AABF; border-radius: 999px; transform-origin: left center; }
.cs-timer i.low { background: #FA5252; }
.cs-tag { text-align: center; font-size: 14px; font-weight: 800; color: #6B7280; margin-top: 14px; }
.cs-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 4px; min-height: 64px; perspective: 600px; }
.cs-tiles span.t { position: relative; width: 54px; height: 60px; animation: csPop .3s ease-out backwards; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.cs-tiles span.t i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; backface-visibility: hidden; font-style: normal; font-weight: 900; }
.cs-tiles span.t .f { background: #fff; border: 2.5px solid #15AABF; box-shadow: 0 4px 0 #99E9F2; font-size: 32px; color: #0B7285; }
.cs-tiles span.t .b { transform: rotateY(180deg); font-size: 24px; color: #fff; background: #ADB5BD; box-shadow: 0 4px 0 #868E96; }
.cs-tiles.open span.t { transform: rotateY(180deg); }
.cs-tiles.ok span.t .b { background: #2B8A3E; box-shadow: 0 4px 0 #1E6B2E; }
@keyframes csPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cs-hint { text-align: center; font-size: 15px; font-weight: 700; color: #495057; background: #FFF9DB; border-radius: 12px; padding: 10px 12px; margin-top: 10px; word-break: keep-all; line-height: 1.5; }
.cs-feedback { text-align: center; min-height: 28px; font-size: 18px; font-weight: 900; margin-top: 8px; }
.cs-feedback.ok { color: #2B8A3E; } .cs-feedback.no { color: #E03131; }
.cs-form { display: flex; gap: 8px; margin-top: 6px; }
.cs-form input { flex: 1; min-width: 0; box-sizing: border-box; font-family: inherit; font-size: 18px; font-weight: 700; border: 2px solid #CED4DA; border-radius: 14px; padding: 12px 14px; background: #fff; }
.cs-form input:focus { outline: none; border-color: #15AABF; }
.cs-ok { flex-shrink: 0; font-family: inherit; font-size: 17px; font-weight: 900; color: #fff; background: #0C8599; border: 0; border-radius: 14px; padding: 0 20px; cursor: pointer; }
.cs-ok:disabled { opacity: .5; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cs-sub-btn { display: block; width: 100%; font-family: inherit; font-size: 15px; font-weight: 800; color: #374151; background: #F8F9FA; border: 1.5px solid #E9ECEF; border-radius: 12px; padding: 12px 6px; cursor: pointer; }
.cs-sub-btn:disabled { opacity: .45; cursor: default; }
.cs-shake { animation: csShake .35s; }
@keyframes csShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 결과 */
#csResult { text-align: center; }
.cs-res-emoji { font-size: 56px; line-height: 1.1; animation: csPop .5s ease-out; }
.cs-res-title { display: inline-block; margin-top: 6px; font-size: 20px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #FF922B, #E8590C); border-radius: 999px; padding: 5px 16px; box-shadow: 0 4px 0 #C2410C; }
.cs-res-big { font-size: 20px; font-weight: 800; color: #374151; margin-top: 6px; }
.cs-res-big b { font-size: 34px; font-weight: 900; color: #0C8599; }
.cs-res-score { font-size: 16px; font-weight: 800; color: #E8590C; margin-top: 4px; word-break: keep-all; line-height: 1.5; }
.cs-res-say { font-size: 15px; font-weight: 700; color: #4B5563; margin-top: 6px; word-break: keep-all; }
.cs-exam { display: block; margin-top: 12px; font-size: 15px; font-weight: 900; color: #1864AB; background: #E7F5FF; border-radius: 12px; padding: 12px; text-decoration: none; }
.cs-review { text-align: left; margin-top: 14px; }
.cs-review summary { font-size: 15px; font-weight: 800; color: #374151; cursor: pointer; padding: 6px 0; }
.cs-review-list { margin: 6px 0 0; padding-left: 22px; }
.cs-review-list li { font-size: 15px; line-height: 1.6; margin-bottom: 6px; word-break: keep-all; }
.cs-review-list .mk { font-weight: 900; margin-right: 4px; }
.cs-review-list .mk.ok { color: #2B8A3E; } .cs-review-list .mk.no { color: #E03131; }
.cs-review-list .cho { color: #868E96; margin-left: 4px; }
.cs-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
@media (prefers-reduced-motion: reduce) { .cs-tiles span.t, .cs-shake, .cs-game.good, .cs-game.bad, .cs-combo.show, .cs-plus.show { animation: none; } .cs-tiles span.t { transition: none; } }
@media (max-width: 360px) { .cs-tiles span.t { width: 46px; height: 54px; } .cs-tiles span.t .f { font-size: 28px; } }
@media (min-width: 768px) {
    .stage.cs { max-width: 760px; }
    .cs-title { font-size: 36px; }
    .cs-topics { grid-template-columns: repeat(3, 1fr); }
}

/* 주제 소개·다른 주제(2026-10-27 대표 "고단가 광고 염두") */
.cs-intro { color: #374151; }
.cs-intro:empty { display: none; }
.cs-intro-title { font-size: 18px; font-weight: 900; color: #111827; margin: 0 0 8px; }
.cs-intro p { font-size: 15px; line-height: 1.7; margin: 0 0 8px; word-break: keep-all; }
.cs-intro-meta { font-size: 14px !important; color: #6B7280; }
.cs-topic-links { list-style: none; margin: 0; padding: 0; }
.cs-topic-links li { padding: 10px 2px; border-top: 1px solid #F1F3F5; }
.cs-topic-links li:first-child { border-top: 0; }
.cs-topic-links a { font-size: 16px; font-weight: 900; color: #0B7285; text-decoration: none; }
.cs-topic-links span { display: block; font-size: 14px; color: #6B7280; margin-top: 2px; }
.cs-others { margin-top: 16px; text-align: left; }
.cs-others-title { font-size: 16px; font-weight: 900; color: #111827; margin-bottom: 8px; text-align: center; }
.cs-others-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-others-row button { font-family: inherit; font-size: 14px; font-weight: 800; color: #374151; background: #F8F9FA; border: 1.5px solid #E9ECEF; border-radius: 12px; padding: 11px 6px; cursor: pointer; word-break: keep-all; }
.cs-others-row button.hv { color: #8F5B00; background: #FFF9DB; border-color: #FFE066; }
.cs-review-list .x { display: block; font-size: 14px; color: #495057; margin-top: 2px; }

/* 오늘의 초성(2026-10-30) - 처음 화면 맨 위 큰 버튼(숫자야구 오늘의 숫자와 같은 꼴, 색만 초성 보라) */
.cs-daily { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left; font-family: inherit; border: 0; border-radius: 20px; padding: 16px; margin-bottom: 16px;
    color: #fff; cursor: pointer; background: linear-gradient(135deg, #7950F2, #5F3DC4); box-shadow: 0 5px 0 #4C2FA3; -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden; }
.cs-daily::after { content: 'ㅊㅅ'; position: absolute; right: 14px; bottom: 4px; font-size: 48px; font-weight: 900; opacity: .22; transform: rotate(-12deg); }
.cs-daily:active { transform: translateY(3px); box-shadow: 0 2px 0 #4C2FA3; }
.cs-daily-top { display: flex; align-items: center; gap: 8px; }
.cs-daily-badge { font-size: 13px; font-weight: 900; color: #5F3DC4; background: #fff; border-radius: 999px; padding: 2px 9px; }
.cs-daily-date { font-size: 15px; font-weight: 800; }
.cs-daily-name { font-size: 20px; font-weight: 900; }
.cs-daily-state { font-size: 14px; font-weight: 800; background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 10px; }
