/* [claude code] 2026-10-19 v0.13 公告面板(標題 · 內文照原本的換行) */
/* [claude code] 2026-10-19 v0.12 主線(任務面板)· 劇情對白框 · 新手引導的提示 · 圖鑑(P23) */
/* [claude code] 2026-10-19 v0.11 英靈塔試煉(P26)· 稱號(P27)· 每日任務(P16)· 信箱(P24)· 排行榜(P22) */
.trial-floor { font-size: 20px; font-weight: 700; }
.box.trial-next.boss { border-color: var(--gold); }
.trial-foes { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui-skin] .trial-foes .chip.strong { border: 1px solid var(--gold); }
.trial-run p { margin: 0; }
.rank-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; }
.rank-row.me { border-color: var(--accent); }
.rank-n { width: 28px; text-align: center; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font-size: 13px; color: var(--mute); }
.title-row.locked b { opacity: .55; }
.box.mail.read { opacity: .7; }
.mail-gift { font-size: 13px; color: var(--accent-deep); }
.row.all { border-top: 1px dashed var(--border); }

/* 主線 */
.story-row.done b { color: var(--mute); }
.story-row.locked { opacity: .55; }
.story-row.now { border: 1px solid var(--gold); border-radius: 8px; padding: 6px 8px; }
.story-gift { color: var(--accent-deep); }
.btn-col { display: flex; flex-direction: column; gap: 4px; }
/* 劇情對白框:蓋在最上面(結算頁之下),下半部一個框;返回鍵 = 關掉 */
.dialog { position: absolute; inset: 0; z-index: 57; display: flex; align-items: flex-end; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--scrim); }
.dialog[hidden] { display: none; }
.dlg-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; width: 100%; padding: 12px; border: 2px solid var(--gold); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.dlg-art { width: 72px; height: 72px; object-fit: contain; }
.dlg-name { display: block; font-size: 15px; color: var(--accent-deep); }
.dlg-text { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.dlg-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
/* 新手引導:要按的那一個一閃一閃 */
.guide-pulse { position: relative; animation: guide-pulse 1.2s ease-in-out infinite; }
@keyframes guide-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--gold); } 50% { box-shadow: 0 0 0 6px var(--gold); } }
@media (prefers-reduced-motion: reduce) { .guide-pulse { animation: none; outline: 3px solid var(--gold); } }
/* 圖鑑 */
.codex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-ui-skin] .codex-card { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; padding: 6px; text-align: center; }
.codex-card b { font-size: 13px; }
.codex-card small { font-size: 11px; color: var(--mute); }
.codex-card .codex-how { color: var(--accent-deep); }
.codex-art { width: 72px; height: 72px; object-fit: contain; }
.codex-art.sm { width: 48px; height: 48px; flex: none; }
.unknown .codex-art { filter: brightness(0); opacity: .35; }
html[data-ui-skin] .codex-card.unknown:disabled { opacity: 1; }
.codex-mon { justify-content: flex-start; }
.codex-mon > div { min-width: 0; }
.codex-drop { white-space: pre-line; }
/* 設定:聲音 · 音樂來源 */
.vol-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 44px; }
.vol-row input { width: 100%; min-height: 44px; }
.vol-n { text-align: right; font-size: 13px; }
.credit-row a { font-weight: 700; color: var(--accent-deep); }
/* 公告 */
.box.news h3 { margin: 0 0 4px; }
.news-body { margin: 0 0 4px; white-space: pre-line; line-height: 1.6; }
