/* 我要挑战：开心格设计系统——深色 #2C3E50、2px 深色描边、黄色 #FFD93D、按钮圆角 12、大卡片圆角 16 */
.ch-main { max-width: 760px; margin: 0 auto; color: #2C3E50; }
.ch-card { background: #fff; border: 2px solid #2C3E50; border-radius: 16px; padding: 22px; }
.ch-intro, .ch-end { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 32px 22px; margin-top: 12px; }
.ch-intro-ic { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; background: #FFF1D6; border: 2px solid #2C3E50; }
.ch-title { margin: 0; font-size: 1.9rem; font-weight: 900; }
.ch-sub { margin: 0; font-size: 1.05rem; font-weight: 700; color: #5B6B7C; }
.ch-sub b { color: #2C3E50; }
.ch-sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 28px; font-size: 0.85rem; font-weight: 700; color: #8795A3; }
.ch-err { color: #C53030; }
.ch-best { font-size: 0.95rem; font-weight: 700; color: #5B6B7C; min-height: 1.2em; }
.ch-best b { color: #E8590C; font-size: 1.2rem; }
.ch-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-style: normal; font-size: 0.78rem; font-weight: 900; background: #EEF1F6; color: #5B6B7C; white-space: nowrap; }
.ch-tag.k-flags { background: #FFECEC; color: #C53030; }
.ch-tag.k-ket { background: #E5EEFF; color: #2457C5; }
.ch-tag.k-math { background: #E7F8EF; color: #00692A; }
.ch-go { min-width: 220px; height: 60px; margin-top: 6px; border: 2px solid #2C3E50; border-radius: 14px; background: #FFD93D; color: #2C3E50; box-shadow: 4px 4px 0 #2C3E50; font-family: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.ch-go:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #2C3E50; }
.ch-go:disabled { opacity: 0.6; cursor: default; }

/* 答题中 */
.ch-play { display: flex; flex-direction: column; gap: 14px; }
.ch-top { display: flex; align-items: center; gap: 14px; }
.ch-quit { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid #E3E8EF; border-radius: 50%; background: #fff; color: #5B6B7C; cursor: pointer; }
.ch-quit svg { width: 18px; height: 18px; }
.ch-timer { flex: 1; display: flex; align-items: center; gap: 12px; }
.ch-timer-bar { flex: 1; height: 16px; border-radius: 999px; background: #EEF1F6; border: 2px solid #2C3E50; overflow: hidden; }
.ch-timer-bar span { display: block; height: 100%; background: #2EB872; transition: width 0.2s linear; }
.ch-timer b { font-family: 'Funnel Sans', Inter, sans-serif; font-size: 1.6rem; font-weight: 900; min-width: 62px; text-align: right; }
.ch-timer.hurry .ch-timer-bar span { background: #FF5A5A; }
.ch-timer.hurry b { color: #E53935; }
.ch-score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; height: 56px; border: 2px solid #2C3E50; border-radius: 12px; background: #FFD93D; }
.ch-score span { font-size: 0.72rem; font-weight: 800; }
.ch-score b { font-family: 'Funnel Sans', Inter, sans-serif; font-size: 1.6rem; line-height: 1; font-weight: 900; }
.ch-score.pop { animation: chPop 0.3s ease-out; }
@keyframes chPop { 50% { transform: scale(1.15); } }
.ch-q { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; min-height: 360px; }
.ch-src { align-self: flex-start; }
.ch-prompt { font-size: 1.6rem; font-weight: 900; line-height: 1.35; word-break: break-word; }
.ch-prompt.big { font-family: 'Funnel Sans', Inter, sans-serif; font-size: 3rem; }
.ch-img { max-width: 260px; max-height: 170px; border: 2px solid #E3E8EF; border-radius: 10px; object-fit: contain; background: #fff; }
.ch-opts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.ch-opt { min-height: 64px; padding: 10px 14px; border: 2px solid #2C3E50; border-radius: 14px; background: #fff; color: #2C3E50; box-shadow: 0 4px 0 #2C3E50; font-family: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; word-break: break-word; }
.ch-opts.num .ch-opt { font-family: 'Funnel Sans', Inter, sans-serif; font-size: 1.7rem; }
.ch-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #2C3E50; }
.ch-opt:disabled { cursor: default; }
.ch-opt.right { background: #E7F8EF; border-color: #2EB872; box-shadow: 0 4px 0 #2EB872; color: #00692A; }
.ch-opt.wrong { background: #FFECEC; border-color: #E53935; box-shadow: 0 4px 0 #E53935; color: #C53030; animation: chShake 0.35s; }
@keyframes chShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ch-bar { display: flex; justify-content: center; }
.ch-skip { height: 44px; padding: 0 18px; border: 2px solid #E3E8EF; border-radius: 12px; background: #fff; color: #5B6B7C; font-family: inherit; font-size: 0.95rem; font-weight: 800; cursor: pointer; }

/* 时间到 */
.ch-newbest { padding: 4px 14px; border-radius: 999px; background: #FF8A1F; color: #fff; font-weight: 900; }
.ch-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 480px; }
.ch-nums div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 2px solid #2C3E50; border-radius: 12px; }
.ch-nums div:first-child { background: #FFD93D; }
.ch-nums b { font-family: 'Funnel Sans', Inter, sans-serif; font-size: 2rem; font-weight: 900; line-height: 1; }
.ch-nums span { font-size: 0.82rem; font-weight: 800; color: #5B6B7C; }
.ch-wrong { width: 100%; max-width: 520px; text-align: left; }
.ch-wrong-h { font-size: 0.9rem; font-weight: 900; margin-bottom: 6px; }
.ch-wrong ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-wrong li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #F5F7FA; border-radius: 10px; font-size: 0.9rem; }
.ch-wq { flex: 1; min-width: 0; color: #5B6B7C; font-weight: 700; }
.ch-wrong li b { white-space: nowrap; }
.ch-end-btns { display: flex; gap: 12px; }

@media (max-width: 640px) {
  .ch-prompt { font-size: 1.3rem; }
  .ch-prompt.big { font-size: 2.3rem; }
  .ch-opt { min-height: 56px; font-size: 1.05rem; }
  .ch-timer b { font-size: 1.3rem; min-width: 52px; }
}
