/* 閻羅殿頁（#/yanluo）：敵方陣型格子圖；表格 / 格子都走捲動外框，屬性色沿用 herobf.css 的 .e-* */
.yl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.yl-tabs a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); color: var(--fg); text-decoration: none; font-size: 14px; }
.yl-tabs a.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.yl-form { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.yl-grid { display: grid; grid-template-columns: 34px repeat(5, minmax(104px, 1fr)); gap: 6px; min-width: 600px; }
.yl-rowh { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.yl-cell { border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-size: 12.5px; line-height: 1.4; background: var(--bg); min-width: 0; }
.yl-cell.boss { border-color: var(--accent); background: var(--accent-bg); }
.yl-cell .pos { color: var(--muted); font-size: 11px; }
.yl-cell img { display: block; width: 48px; height: 48px; object-fit: contain; margin: 2px auto; }
/* 戰鬥全身圖：尺寸不一 → 固定框高、等比縮小、底部置中（腳底對齊）；小圖不放大 */
.yl-cell img.yl-battle { width: 100%; max-width: 110px; height: 84px; object-fit: scale-down; object-position: center bottom; }
.yl-cell .nm { font-weight: 600; text-align: center; word-break: break-all; }
.yl-cell .hp { text-align: center; font-variant-numeric: tabular-nums; }
.yl-cell .hb-bar { min-width: 0; margin-top: 3px; font-size: 11px; line-height: 17px; }
.yl-cell .hb-bar span { padding: 0 2px; }
.yl-sw { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; margin: 6px 0; }
.yl-est { color: var(--muted); }
.yl-act { margin-top: .4rem; font-size: .92em; }
.yl-act ul { margin: 2px 0 0; padding-left: 1.2em; }
.yl-act li { margin: 1px 0; }
/* 明細表：怪物欄不斷行、屬性條縮窄、數字欄小字；技能列跨欄換行 */
.yl-t .yl-mon { white-space: nowrap; }
/* 屬性條：整條給足最小寬，每段文字不換行、段再窄也撐到放得下文字 */
.yl-t .hb-bar { min-width: 8rem; }
.yl-t .hb-bar span, .yl-cell .hb-bar span { white-space: nowrap; min-width: max-content; }
.yl-t .hb-bar span { padding: 0 3px; }
.yl-t th, .yl-t td { padding: 6px 8px; }
.yl-t th { font-size: 12.5px; }
.yl-t .yl-sm { font-size: 12px; }
.yl-t .yl-u > tr:first-child td { border-bottom: 0; }
.yl-t .yl-sk td { font-size: 12.5px; white-space: normal; text-align: left; }
.yl-src { color: var(--muted); font-size: 11px; }
.yl-ok { color: #1a7f37; font-weight: 600; }
.yl-bad { color: #c62828; font-weight: 600; }
@media (prefers-color-scheme: dark) { .yl-ok { color: #4ac26b; } .yl-bad { color: #ff7b72; } }
.yl-est-t td, .yl-est-t th { white-space: normal; text-align: left; vertical-align: top; }
.yl-est-t .yl-tip { min-width: 16rem; font-size: 12.5px; }
.yl-est-t td.num { min-width: 6.5rem; }

/* 陣型卡片：推算攻 / 防 / 敏（三行，窄卡片也不爆版） */
.yl-st { margin-top: 5px; padding-top: 4px; border-top: 1px dashed var(--line); font-size: 11.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.yl-st-h { color: var(--muted); font-size: 11px; text-align: center; }
.yl-st .st { display: flex; align-items: baseline; gap: 4px; min-width: 0; cursor: help; }
.yl-st .k { color: var(--muted); flex: none; }
.yl-st .v { flex: 1; text-align: right; white-space: nowrap; }
.yl-st .g { flex: none; font-size: 10px; padding: 0 4px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.yl-st .g-A { color: var(--accent); border-color: var(--accent); }
