/* story.css — PGC 故事线(极光奇幻森林)占位样式。⚠️ 素框架：UED 设计稿到位后整体替换本文件即可，
   业务 JS(flow-story.js) 只依赖这些 .story-* 类名与现有 .card/.btn/.quiz-opt。配色沿用 app.css 的 CSS 变量。 */
.story-card { margin-bottom: 12px; }
.story-kicker { font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 2px 0 6px; }
.story-meta { font-size: 13px; color: var(--text); margin-top: 6px; }
.story-meta.muted { color: var(--muted); }
.story-badge { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 9px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.story-badge-cleared, .story-badge-good { background: rgba(55,211,155,.18); color: var(--ok); }
.story-badge-locked { background: var(--surface); color: var(--faint); }
.story-badge-bad, .story-badge-fail { background: rgba(255,107,107,.16); color: var(--danger); }
.story-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
/* 按钮本身是 inline-flex, 直接排在文字后会贴住/压住上一行; 故事线里的按钮一律放进 .story-actions 或自带上边距 */
.story-card > .btn.block { margin-top: 14px; }
.story-card .story-opts + .btn.block { margin-top: 4px; }
.story-card-locked { opacity: .72; }
.story-rules { margin: 8px 0 4px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.story-text { white-space: pre-wrap; line-height: 1.7; font-size: 15px; color: var(--text); margin: 8px 0 12px; }
.story-text.story-system { border-left: 3px solid var(--accent); padding-left: 10px; color: var(--muted); font-size: 14px; }
.story-speaker { font-weight: 600; color: var(--accent); margin-top: 6px; }
.story-prompt { font-size: 16px; font-weight: 600; line-height: 1.6; margin: 6px 0 10px; }
.story-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.story-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; }
.story-opt-key { flex: 0 0 24px; height: 24px; border-radius: 12px; background: var(--surface-2); font-size: 12px; line-height: 24px; text-align: center; font-weight: 700; }
.story-opt-text { flex: 1; line-height: 1.5; }
.story-play-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.story-progress { font-size: 12px; margin-bottom: 6px; }
.story-timer { font-variant-numeric: tabular-nums; font-size: 13px; padding: 2px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.story-timer.urgent { background: rgba(255,107,107,.2); color: var(--danger); }
.story-feedback.ok .section-title { color: var(--ok); }
.story-feedback.wrong .section-title { color: var(--danger); }
.story-quit { margin-top: 4px; }
.story-reward-name { font-size: 20px; font-weight: 700; margin: 4px 0; }
/* 故事列表顶部的森林次数卡(点开钱包) */
.story-wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.story-wallet-label { font-size: 12px; color: var(--muted); }
.story-wallet-count { font-size: 20px; font-weight: 700; }
.story-wallet-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* 顶栏右侧工具(仅章节列表页): 图鉴 / 玩法说明, 顶掉生成次数徽标的位置(2026-09-10 用户反馈) */
.story-tools { display: flex; gap: 6px; }
.story-tool { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 16px; line-height: 30px; text-align: center; }
/* 森林营地(=图鉴, UED 换皮槽位): 按章节分组, 三列小格; 已领取显示形象图, 未收集的半透明只显示"？？？" */
.story-camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.story-camp-item { padding: 10px 6px; border-radius: var(--radius-sm); background: var(--surface); text-align: center; opacity: .55; }
.story-camp-item.on { opacity: 1; background: rgba(55,211,155,.12); }
.story-camp-mark { width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 18px; color: var(--muted); }
.story-camp-item.on .story-camp-mark { background: rgba(55,211,155,.25); color: var(--ok); }
.story-camp-name { font-size: 13px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.story-howto li { margin-bottom: 8px; }
.story-camp-img { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 12px; object-fit: cover; display: block; background: var(--surface-2); }

/* 结局奖励弹窗卡片(产品 09-11): 形象 + 名称 + 介绍 */
.story-friend-card { text-align: center; }
.story-friend-img { width: 120px; height: 120px; margin: 4px auto 10px; border-radius: 24px; object-fit: cover; display: block; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.story-friend-ph { display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.story-friend-card .story-text { text-align: left; }
/* 营地点亮动效: 刚加入的伙伴格子 */
@keyframes story-lit { 0% { transform: scale(.6); opacity: .2; box-shadow: 0 0 0 0 rgba(55,211,155,.0); } 55% { transform: scale(1.12); opacity: 1; box-shadow: 0 0 0 14px rgba(55,211,155,.22); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(55,211,155,0); } }
.story-camp-item.lit { animation: story-lit 1.1s ease-out both; outline: 2px solid var(--ok); }
