*{box-sizing:border-box}body{margin:0;background:#edf0f3;color:#252525;font:14px/1.65 Arial,"Microsoft JhengHei",sans-serif}a{color:#245e95;text-decoration:none}a:hover{text-decoration:underline}button,input{font:inherit}header{height:52px;background:#fff;border-bottom:1px solid #c8cdd3;display:flex;align-items:center;padding:0 25px;position:sticky;top:0;z-index:4}.brand{font-size:18px;font-weight:bold;color:#333}.brand small{font-size:12px;font-weight:normal;color:#777;margin-left:12px}.support{margin-left:auto;font-size:12px}aside{width:200px;position:fixed;top:52px;bottom:0;overflow:auto;padding:20px 17px;background:#f5f6f8;border-right:1px solid #cbd1d7}.wiki-logo{text-align:center;font:bold 42px/1.3 serif;color:#634e32;padding:12px 0 24px}.wiki-logo span{display:block;font-size:19px;letter-spacing:3px}.wiki-logo small{font:11px Arial!important;letter-spacing:0;color:#888!important;border:0!important;margin:8px 0 0!important;padding:0!important}aside>small{display:block;font-weight:bold;color:#555;border-bottom:1px solid #ccd2d8;padding:5px 0;margin:13px 0 7px}aside a{display:block;padding:4px 8px;font-size:13px}aside p{font-size:12px;color:#888;margin-top:30px}main{margin:20px 25px 25px 220px;background:#fff;border:1px solid #cbd1d7;padding:18px 25px;min-height:calc(100vh - 92px);max-width:1350px}.top-nav{display:flex;gap:0;border:1px solid #a9bac9;background:#e8eef4;margin-bottom:14px}.top-nav a{padding:7px 25px;border-right:1px solid #b9c6d1;font-weight:bold}.notice{font-size:12px;background:#f8f8f8;border:1px solid #ddd;padding:7px 12px;color:#666}.crumb{font-size:12px;color:#777;margin:20px 0 5px}.heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #a2a9b1;margin-bottom:12px}h2{font-size:25px;font-weight:normal;margin:7px 0}h2 small{display:none}input{width:230px;padding:5px 8px;border:1px solid #a2a9b1;font-size:12px}.reading-note{font-size:13px;padding:10px 0 18px;color:#555}.tabs{display:flex;border-bottom:2px solid #557b9c;gap:3px;margin-top:4px}.tabs button{background:#edf1f5;border:1px solid #c5ced7;border-bottom:0;padding:7px 22px;color:#496780;cursor:pointer;font-weight:bold;white-space:nowrap}.tabs button.selected{color:white;background:#557b9c;border-color:#557b9c}.rows{border:1px solid #c5ced7;border-top:0;padding:7px 14px 16px}.row{display:flex;align-items:center;gap:12px;padding:7px 3px;border-bottom:1px dashed #e0e3e6}.row:hover{background:#f3f6f9;text-decoration:none}.row b{font-size:14px;font-weight:normal}.row:hover b{text-decoration:underline}.row p{display:none}.tag{color:#666;font-size:12px;border-right:1px solid #bbc5cd;width:80px;flex-shrink:0}.tag.pin{color:#ad5c32}.row time{margin-left:auto;color:#999;font-size:11px;white-space:nowrap}.arrow{display:none}.bottom{margin-top:25px}.panel{font-size:12px;border-top:1px solid #ddd;padding:12px 0;color:#777}.panel h3{display:none}.panel p{display:inline;margin:0 10px 0 0}.button{font-size:12px}.ad{height:90px;background:#fafafa;border:1px solid #eee;margin-top:14px;color:#aaa;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:10px;letter-spacing:1px}.ad small{font-size:11px;letter-spacing:0}.article h1{font-size:27px;font-weight:normal;border-bottom:1px solid #a2a9b1;margin:14px 0 8px;padding-bottom:8px}.article>p{font-size:13px}.article nav{background:#f8f9fa;border:1px solid #a2a9b1;display:table;padding:13px 20px;margin:20px 0;font-size:13px}.article h2{font-size:21px;border-bottom:1px solid #a2a9b1;margin-top:30px}.empty{padding:25px;text-align:center;color:#888}footer{margin-top:35px;border-top:1px solid #ddd;padding-top:15px;font-size:11px;color:#888}footer p{margin:5px 0}#menu{display:none}@media(min-width:1500px){main{margin-right:auto}}@media(max-width:800px){header{padding:0 12px;gap:10px}.brand{font-size:15px}.brand small{display:none}#menu{display:block;background:none;border:0;font-size:20px;color:#555}aside{display:none;z-index:3;box-shadow:4px 0 12px #0002}body.menu aside{display:block}main{margin:10px;padding:12px;min-height:calc(100vh - 72px)}.top-nav a{padding:6px 18px;font-size:12px}.heading{flex-wrap:wrap;padding-bottom:12px;gap:5px}.heading h2{width:100%;font-size:24px}.heading input{width:100%}.tabs{overflow-x:auto}.tabs button{padding:7px 13px;font-size:12px}.rows{padding:5px 8px 12px}.row{gap:8px;padding:10px 0}.tag{font-size:11px;width:66px}.row b{font-size:13px}.row time{display:none}.panel p{display:block;margin-bottom:5px}}

/* 分類以文字與留白呈現，避免方格堆疊。 */
main{border:0}.top-nav{border:0;background:none;border-bottom:1px solid #d7dde2}.top-nav a{border:0}.notice{border:0;border-left:3px solid #b4c2cd;background:#f5f7f8}.tabs{gap:22px;border-bottom:1px solid #ccd4dc}.tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:9px 0;font-weight:normal}.tabs button.selected{color:#245e95;background:none;border-bottom-color:#245e95;font-weight:bold}.rows{border:0;padding:8px 0}.subheading{font-size:14px;margin:24px 0 2px;font-weight:bold;color:#444}.subheading:first-child{margin-top:14px}.row{border-bottom:0;padding:8px 2px}.tag{border:0}.row:hover{background:#f7f9fa}.ad{border:0;background:#fafafa}
/* 五大分類採暖色識別，正文保持原有對比。 */
:root{--category-color:#955139;--category-bg:#faf0e8}
body[data-category="新手入門"]{--category-color:#956412;--category-bg:#fff5d9}
body[data-category="英雄培養"]{--category-color:#a43d35;--category-bg:#fceeea}
body[data-category="系統與加成"]{--category-color:#a3531e;--category-bg:#fff0df}
body[data-category="資源與活動"]{--category-color:#846817;--category-bg:#faf4d6}
body[data-category="聯盟與賽季"]{--category-color:#8e3f54;--category-bg:#f9edf1}
.tabs button[data-cat="新手入門"]{color:#956412}
.tabs button[data-cat="英雄培養"]{color:#a43d35}
.tabs button[data-cat="系統與加成"]{color:#a3531e}
.tabs button[data-cat="資源與活動"]{color:#846817}
.tabs button[data-cat="聯盟與賽季"]{color:#8e3f54}
.tabs button.selected{color:var(--category-color);border-bottom-color:var(--category-color)}
.tag{color:var(--category-color);border-left:2px solid var(--category-color);padding-left:8px}
.row[data-category="新手入門"] .tag{color:#956412;border-color:#956412}
.row[data-category="英雄培養"] .tag{color:#a43d35;border-color:#a43d35}
.row[data-category="系統與加成"] .tag{color:#a3531e;border-color:#a3531e}
.row[data-category="資源與活動"] .tag{color:#846817;border-color:#846817}
.row[data-category="聯盟與賽季"] .tag{color:#8e3f54;border-color:#8e3f54}
.row:hover{background:var(--category-bg)}
aside a[aria-current="page"]{color:var(--category-color);font-weight:bold;border-left:2px solid var(--category-color);padding-left:6px}
.article h1{border-bottom-color:var(--category-color)}
.article>p:first-of-type{color:var(--category-color)}
/* 拉開分類色相，增加標題辨識度。 */
body[data-category="新手入門"]{--category-color:#946000;--category-bg:#fff7dc}
body[data-category="英雄培養"]{--category-color:#bd2929;--category-bg:#fff0ed}
body[data-category="系統與加成"]{--category-color:#285eaa;--category-bg:#eef4ff}
body[data-category="資源與活動"]{--category-color:#277044;--category-bg:#edf8ef}
body[data-category="聯盟與賽季"]{--category-color:#7942a4;--category-bg:#f6effc}
.tabs button[data-cat="新手入門"],.row[data-category="新手入門"] .tag{color:#946000;border-bottom-color:transparent}
.tabs button[data-cat="英雄培養"],.row[data-category="英雄培養"] .tag{color:#bd2929;border-bottom-color:transparent}
.tabs button[data-cat="系統與加成"],.row[data-category="系統與加成"] .tag{color:#285eaa;border-bottom-color:transparent}
.tabs button[data-cat="資源與活動"],.row[data-category="資源與活動"] .tag{color:#277044;border-bottom-color:transparent}
.tabs button[data-cat="聯盟與賽季"],.row[data-category="聯盟與賽季"] .tag{color:#7942a4;border-bottom-color:transparent}
.row[data-category="新手入門"] .tag{border-left-color:#946000}
.row[data-category="英雄培養"] .tag{border-left-color:#bd2929}
.row[data-category="系統與加成"] .tag{border-left-color:#285eaa}
.row[data-category="資源與活動"] .tag{border-left-color:#277044}
.row[data-category="聯盟與賽季"] .tag{border-left-color:#7942a4}
.tabs button.selected{border-bottom-color:var(--category-color);font-weight:700}
.heading h2,.article h1,.article h2,.row b{font-weight:700}
.tag{font-weight:700}
.recent{margin:30px 0 20px}.recent h3{font-size:17px;margin:0 0 10px}.recent h3 small{font-size:11px;font-weight:normal;color:#888;margin-left:10px}.update-row{display:flex;gap:14px;align-items:baseline;padding:7px 0;font-size:13px}.update-row time{color:#888;font-size:12px;white-space:nowrap}.update-type{font-size:11px;color:#956000}.muted{color:#888;font-size:12px}.article-meta{display:flex;flex-wrap:wrap;gap:6px 22px;color:#777;font-size:12px}.draft-note{color:#896d40!important;font-size:12px;padding:8px 0}.article-layout{display:grid;grid-template-columns:175px minmax(0,1fr);gap:30px;align-items:start;margin-top:15px}.toc{position:sticky;top:72px;padding:8px 0;border-top:2px solid var(--category-color)}.toc summary{font-size:14px;font-weight:bold;cursor:pointer}.toc ol{padding-left:20px;font-size:13px;line-height:2.2;margin:8px 0}.article-body section{scroll-margin-top:75px;margin-bottom:32px}.article-body h2{margin-top:0;padding-bottom:5px;font-size:20px;border-bottom:1px solid #e0e2e4}.placeholder{color:#888;font-size:13px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;margin-top:16px;text-align:left}caption{text-align:left;color:#888;font-size:11px;margin-bottom:7px}th{background:#f4f5f6;color:#555}th,td{padding:9px 12px;border-bottom:1px solid #ddd}td[colspan]{color:#999}.article-history{font-size:12px;color:#888}@media(max-width:800px){.article-layout{display:block}.toc{position:static;margin:0 0 25px}.toc ol{columns:2}.update-row{flex-wrap:wrap;gap:3px 10px}.update-row a{flex-basis:100%}.article-meta{display:block}.article-meta span{display:block;margin:3px 0}.article-body section{margin-bottom:30px}}

.uncertain{border-left:3px solid #c69732;padding:8px 13px;background:#fffaf0;color:#806025;font-size:13px}.related-links{display:flex;flex-wrap:wrap;gap:8px 20px}.article-body p,.article-body li{line-height:1.9}.article-body table{margin-bottom:20px}

/* 文章改為全寬閱讀，移除文章目錄。 */
.hero-article .article-body{margin-top:30px}.hero-article table{font-size:13px}.hero-article th{white-space:nowrap}
.toc{display:none}.article-layout{display:block}
.tabs a{padding:9px 0;white-space:nowrap;border-bottom:2px solid transparent;color:#666;font-size:13px}.tabs a.selected{font-weight:bold;color:var(--category-color);border-bottom-color:var(--category-color)}.row[hidden]{display:none}.article-body h2{margin-top:30px}.article-body blockquote{margin:16px 0;padding:8px 15px;border-left:3px solid #c69732;background:#fffaf0;color:#806025}

/* 站長提供的徽章，維持原圖比例。 */
aside a.image-logo{display:block;padding:0;margin:0 0 18px;border:0;background:none}.image-logo img{display:block;width:100%;height:auto;max-width:150px;margin:0 auto}.brand{display:flex;align-items:center;gap:10px}.brand-icon{display:block;width:30px;height:40px;object-fit:contain;flex-shrink:0}@media(max-width:800px){.brand{gap:7px}.brand-icon{width:24px;height:32px}}

.stat-baseline{display:inline-block;margin:2px 0 6px;padding:2px 9px;border-radius:3px;background:#f8edd9;color:#855414;font-size:12px;font-weight:700;letter-spacing:.2px}.article-body td{vertical-align:top}

/* 英雄比較：同欄對齊，同列保留完整數據。 */
.hero-stat{display:grid;gap:3px;min-width:105px;font-variant-numeric:tabular-nums}.hero-stat>span{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.hero-stat small{font-size:11px;color:#929292;font-weight:normal}.hero-stat b{font-weight:700;color:#333}.article-body table:has(.hero-stat) td{padding:12px 14px;vertical-align:middle;font-variant-numeric:tabular-nums}.article-body table:has(.hero-stat) td:first-child{font-weight:700;white-space:nowrap}.article-body table:has(.hero-stat) td:nth-child(2){font-size:12px;white-space:nowrap;color:#777}.article-body table:has(.hero-stat) tr:hover td{background:#faf8f4}.article-body table:has(.hero-stat){min-width:630px}
/* 英雄三張比較表：欄位獨立、數字對齊。 */
.hero-comparison th:not(:first-child),.hero-comparison td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.hero-comparison td:first-child{font-weight:600;white-space:nowrap}.hero-comparison tbody tr:hover{background:#faf8f4}
.sort-button{font:inherit;font-weight:inherit;color:inherit;border:0;background:none;padding:4px 0;cursor:pointer;white-space:nowrap}.sort-arrow{display:inline-block;margin-left:5px;color:#9b8b76;font-size:13px}.sort-button:hover,.sort-button:hover .sort-arrow{color:#a43d35}.sort-button:focus-visible{outline:2px solid #a43d35;outline-offset:4px}th[aria-sort="descending"] .sort-arrow,th[aria-sort="ascending"] .sort-arrow{color:#a43d35;font-weight:bold}

.hero-level-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;margin:24px 0}.hero-level-grid>section{min-width:0}.hero-level-grid h3{margin:0;min-height:36px;display:flex;align-items:center}.hero-level-label{display:flex;align-items:center;gap:8px}.hero-level-label input{width:75px;margin:0;padding:4px 7px;font-size:16px;font-weight:700;border:0;border-bottom:1px solid #b9a68d;border-radius:0;background:#faf8f4}.hero-level-label input[aria-invalid=true]{outline:1px solid #bd2929}.level-hint{font-size:11px;color:#888;margin:5px 0 12px}.hero-level-grid table th,.hero-level-grid table td{padding:9px 7px}.hero-level-grid .table-scroll{margin:0}.hero-level-grid table{margin-top:0}@media(max-width:900px){.hero-level-grid{grid-template-columns:1fr}}

.hero-visibility{display:flex;align-items:center;gap:8px;font-size:13px;color:#666;margin:12px 0}.hero-visibility input{width:16px;height:16px;margin:0;accent-color:#a43d35}.hero-comparison tr[hidden]{display:none}
/* Trial: slightly clearer article table boundaries. */
.article-body table{border:1px solid #c9cdd1}
.article-body th{background:#eef0f2;border-bottom:1px solid #bfc5cb}
.article-body td{border-bottom:1px solid #d3d7db}
.article-body tbody tr:last-child td{border-bottom:0}
/* Hero aptitude and attribute comparisons only. */
.article-body table.hero-comparison{border:1px solid #b8c0c8}
.article-body table.hero-comparison th,.article-body table.hero-comparison td,.article-body table.hero-comparison th:not(:first-child),.article-body table.hero-comparison td:not(:first-child){text-align:center;vertical-align:middle;border-right:1px solid #c7cdd3;border-bottom:1px solid #c7cdd3}
.article-body table.hero-comparison th{background:#e9edf1;border-bottom-color:#b8c0c8}
.article-body table.hero-comparison th:last-child,.article-body table.hero-comparison td:last-child{border-right:0}
.article-body table.hero-comparison tbody tr:last-child td{border-bottom:0}

.sort-hint{font-size:11px;color:#8b8f94;margin:7px 0 9px;line-height:1.5}.article-body th:has(.sort-button){padding:0}.sort-button{display:block;width:100%;padding:9px 7px;transition:background-color .15s,color .15s}.sort-button:hover{background:#dfe5eb}.sort-button:focus-visible{outline:2px solid #a43d35;outline-offset:-2px;background:#dfe5eb}

.sort-cue{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;margin-left:4px;border:1px solid #a2a8ad;border-radius:50%;font:700 9px/1 Arial;color:#8b9298;vertical-align:middle}.sort-button:hover{background:transparent}.sort-button:hover .sort-cue{border-color:#a43d35;color:#a43d35}.sort-arrow:empty{display:none}

.shared-requirement{vertical-align:middle!important;line-height:2;white-space:nowrap}.article-body th{white-space:nowrap}
/* Outline the merged awakening requirement across all three rows. */
.article-body table td.shared-requirement{border:1px solid #b8c0c8;vertical-align:middle}

/* Beauty columns carry information type; badges carry unit scope. */
.article-body .beauty-table th,.article-body .beauty-table td{background:#fff;color:#30343a}
.article-body .beauty-table td:nth-child(4){background:#fbf5e9}
.article-body .beauty-table td:nth-child(5){background:#edf4fa}
.article-body .beauty-table td:nth-child(6){background:#f4eff9}
.article-body .beauty-table th{background:#f3f4f5}
.article-body .beauty-table th:nth-child(4){background:#f0e3c8}
.article-body .beauty-table th:nth-child(5){background:#dce8f3}
.article-body .beauty-table th:nth-child(6){background:#e8dff1}
.beauty-effect{font-weight:500;white-space:nowrap}
.unit-badge{display:inline-block;margin-right:7px;padding:2px 6px;border-radius:3px;font-size:11px;font-weight:700;line-height:1.5;vertical-align:baseline}
.unit-infantry{color:#a32b24;background:#f6d5d0}
.unit-cavalry{color:#215794;background:#d5e4f8}
.unit-archer{color:#326821;background:#dbeccf}
.unit-all{color:#6d507e;background:#e8deed}
/* Consistent color across the whole beauty table; unit badges remain distinct. */
.article-body table.beauty-table th,.article-body table.beauty-table th:nth-child(4),.article-body table.beauty-table th:nth-child(5),.article-body table.beauty-table th:nth-child(6){background:#d9e2e9;color:#344653;border-bottom:1px solid #b8c6d1}
.article-body table.beauty-table td,.article-body table.beauty-table td:nth-child(4),.article-body table.beauty-table td:nth-child(5),.article-body table.beauty-table td:nth-child(6){background:#edf2f6;border-bottom:1px solid #d1dce5;color:#303b44}
.article-body table.beauty-table tbody tr:nth-child(even)>td{background:#e4ecf2}
.article-body table.beauty-table tbody tr:hover>td{background:#dce6ee}
.unit-infantry{color:#922b21;background:#f3c9c0}
.unit-cavalry{color:#194b8c;background:#c3daf6}
.unit-archer{color:#2d631a;background:#cfe6b9}
.unit-all{color:#67407e;background:#e0cce9}
/* Strong, independent unit colors take precedence over alternating row fills. */
.article-body table.beauty-table tbody tr>td.scope-infantry,.article-body table.beauty-table tbody tr:hover>td.scope-infantry{background:#edb0a3;color:#4d201b}
.article-body table.beauty-table tbody tr>td.scope-cavalry,.article-body table.beauty-table tbody tr:hover>td.scope-cavalry{background:#a8c9ed;color:#173757}
.article-body table.beauty-table tbody tr>td.scope-archer,.article-body table.beauty-table tbody tr:hover>td.scope-archer{background:#b9d992;color:#29431b}
.article-body table.beauty-table tbody tr>td.scope-all,.article-body table.beauty-table tbody tr:hover>td.scope-all{background:#d1b4e2;color:#452653}
.beauty-table .unit-badge{background:transparent;padding:0;margin-right:7px;color:inherit;font-size:12px;font-weight:800}
/* Balance neutral/effect fills and make all cell boundaries clear. */
.article-body table.beauty-table{border:1px solid #9eacb8}
.article-body table.beauty-table th,.article-body table.beauty-table td{border:1px solid #aab6c0}
.article-body table.beauty-table tbody tr>td,.article-body table.beauty-table tbody tr:nth-child(even)>td,.article-body table.beauty-table tbody tr:hover>td{background:#dee7ee}
.article-body table.beauty-table tbody tr>td.scope-infantry,.article-body table.beauty-table tbody tr:hover>td.scope-infantry{background:#f0cdc4;color:#4d201b}
.article-body table.beauty-table tbody tr>td.scope-cavalry,.article-body table.beauty-table tbody tr:hover>td.scope-cavalry{background:#c6dbf1;color:#173757}
.article-body table.beauty-table tbody tr>td.scope-archer,.article-body table.beauty-table tbody tr:hover>td.scope-archer{background:#d2e5b9;color:#29431b}
.article-body table.beauty-table tbody tr>td.scope-all,.article-body table.beauty-table tbody tr:hover>td.scope-all{background:#dfcdea;color:#452653}
/* Alternate neutral identity columns without changing unit-effect colors. */
.article-body table.beauty-table tbody tr:nth-child(odd)>td:nth-child(-n+3){background:#edf2f6}
.article-body table.beauty-table tbody tr:nth-child(even)>td:nth-child(-n+3){background:#d8e3ec}

.price-disclosure{display:inline-block;position:relative;margin-left:4px;vertical-align:middle}.price-disclosure summary{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid #85929d;border-radius:50%;font:700 10px/1 Arial;color:#586875;cursor:pointer;list-style:none}.price-disclosure summary::-webkit-details-marker{display:none}.price-disclosure summary:focus-visible{outline:2px solid #476e91;outline-offset:3px}.price-detail{display:block;position:absolute;top:22px;left:0;z-index:6;width:225px;padding:9px 11px;background:#fff;border:1px solid #bbc5ce;box-shadow:0 3px 10px #0002;color:#36434c;font-size:12px;line-height:1.6;white-space:normal}
.price-disclosure[open]{display:block;margin:5px 0}.price-disclosure .price-detail{position:static;width:min(225px,100%);margin-top:6px;box-shadow:none}

.price-disclosure[open]{display:inline-block;margin:0 0 0 4px}.price-disclosure .price-detail{display:inline;position:static;width:auto;padding:0;margin:0 0 0 5px;border:0;background:none;box-shadow:none;white-space:nowrap;font-size:12px;font-weight:400}.price-disclosure summary{vertical-align:middle}

.price-trigger{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;margin:0 0 0 4px;border:1px solid #85929d;border-radius:50%;background:transparent;color:#586875;font:700 10px/1 Arial;vertical-align:middle;cursor:pointer}.price-tooltip{position:fixed;z-index:1000;padding:4px 8px;border:1px solid #b5bec6;background:#fff;color:#34424d;font:12px/1.5 system-ui;white-space:nowrap;border-radius:3px;box-shadow:0 2px 6px #0001;pointer-events:none}.price-tooltip[hidden]{display:none}.price-trigger:focus-visible{outline:2px solid #476e91;outline-offset:2px}

.beauty-detail table th,.beauty-detail table td{text-align:center;border:1px solid #c2ccd4;font-variant-numeric:tabular-nums}.beauty-detail table td{background:#f5f8fa}.beauty-detail tbody tr:nth-child(even) td{background:#e8eff4}.beauty-detail h2{margin-top:28px}.beauty-table td:first-child a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* Detail styling drawn from the game's palace palette and original assets. */
.palace-detail{background:#f4efe4;border:1px solid #bba77d;padding:0;overflow:hidden}
.palace-banner{display:flex;align-items:center;gap:25px;padding:22px 30px;background:linear-gradient(90deg,#231b18aa,#251c19ee),url('/images/beauties/palace-bg.jpg') center 25%/cover;color:#f6ead0;border-bottom:3px double #b59a60;min-height:185px}
.palace-detail .palace-banner h1{border:0;color:#f4e3bb;font-family:serif;font-size:32px;margin:6px 0 16px}
.palace-portrait{width:128px;height:148px;object-fit:contain;align-self:end;filter:drop-shadow(0 3px 4px #0007)}
.palace-kicker{font-size:11px;color:#c5b18b;letter-spacing:2px}.palace-summary{display:flex;gap:20px;font-size:12px;color:#d5c7ab}.palace-summary b{color:#f6e5bf;margin-left:5px}
.palace-detail .article-body{padding:18px 25px 25px}.palace-tabs{display:flex;border-bottom:1px solid #bda87e;gap:8px;margin:20px 0}
.palace-tabs button{padding:9px 30px;background:#e6ddcb;border:1px solid #c9b58c;border-bottom:0;color:#76634b;cursor:pointer;font:600 15px serif}.palace-tabs button[aria-selected=true]{background:#693e35;color:#fae8c0;border-color:#693e35}.palace-tabs button:focus-visible{outline:2px solid #a67c39;outline-offset:2px}
.palace-detail table th{background:#dfd3bb;color:#5c4930;border-color:#c2af89}.palace-detail table td{background:#fbf8f0;border-color:#d4c6ac}.palace-detail tbody tr:nth-child(even) td{background:#eee6d7}.palace-detail .article-body h2{font-family:serif;border-color:#d4c3a1;color:#604c35;font-size:21px}.palace-detail [role=tabpanel][hidden]{display:none}
@media(max-width:650px){.palace-banner{gap:15px;padding:18px}.palace-portrait{width:92px;height:115px}.palace-detail .palace-banner h1{font-size:25px}.palace-summary{flex-direction:column;gap:3px}.palace-detail .article-body{padding:12px}.palace-tabs button{padding:9px 24px}}
/* Compact palace details to match the amount of information. */
.article.palace-detail{max-width:760px;margin:0 auto}
.palace-banner{min-height:120px;padding:12px 22px;gap:18px}
.palace-portrait{width:85px;height:98px}
.palace-detail .palace-banner h1{font-size:26px;margin:4px 0 10px}
.palace-kicker{font-size:10px;letter-spacing:1px}
.palace-summary{gap:16px;font-size:11px}
.palace-detail .article-body{padding:10px 18px 16px}
.palace-tabs{margin:12px 0;gap:5px}
.palace-tabs button{font-size:14px;padding:6px 22px}
.palace-detail .article-body h2{font-size:18px;margin:14px 0 8px;padding-bottom:4px}
.palace-detail table{margin:8px 0 12px;font-size:12px}
.palace-detail table th,.palace-detail table td{padding:6px 9px}
.palace-detail .article-body p{font-size:12px;line-height:1.6;margin:8px 0}
.palace-detail~.bottom{max-width:760px;margin:18px auto 0}
@media(max-width:650px){.palace-banner{padding:10px 14px;gap:12px}.palace-portrait{width:70px;height:81px}.palace-detail .palace-banner h1{font-size:23px}.palace-detail .article-body{padding:8px 10px 12px}.palace-detail table th,.palace-detail table td{padding:6px}}

/* Compact character reference, integrated with the wiki page. */
.article.palace-detail{max-width:780px;margin:0;background:#fff;border:0;overflow:visible}
.palace-banner{background:#f4f1e9;color:#3d3932;min-height:100px;padding:12px 18px;gap:17px;border:0;border-left:3px solid #aa8a52;border-bottom:1px solid #d9cdb8}
.palace-portrait{width:66px;height:76px;filter:none;align-self:center}
.palace-detail .palace-banner h1{font:700 25px/1.3 system-ui,sans-serif;color:#463d30;margin:4px 0 9px}
.palace-kicker{color:#93836a;letter-spacing:1px;font-size:10px}
.palace-summary{color:#817360;font-size:11px}.palace-summary b{color:#5d4b32}
.palace-detail .article-body{padding:10px 0 0}.palace-detail .article-body>p:first-child{margin:3px 0 12px;font-size:12px}
.palace-tabs{margin:8px 0 16px;border-bottom:1px solid #d9d4ca;gap:24px}
.palace-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:8px 2px;font:600 14px system-ui;color:#918979}
.palace-tabs button[aria-selected=true]{background:none;color:#784b3c;border-color:#784b3c}
.palace-detail .article-body h2{font:600 17px system-ui;margin:8px 0 13px;border:0;color:#4e493e}
.palace-detail [role=tabpanel] ul{list-style:none;padding:0;margin:0;border-top:1px solid #ded9ce}
.palace-detail [role=tabpanel] li{padding:11px 13px;margin:0;border-bottom:1px solid #e2ddd3;font-size:13px;line-height:1.6;background:#faf8f3;font-variant-numeric:tabular-nums}
.palace-detail [role=tabpanel] li:nth-child(even){background:#f1eee6}
.palace-detail [role=tabpanel] li strong{font-weight:600;color:#54422d}
.palace-detail~.bottom{max-width:780px;margin:22px 0 0}
@media(max-width:650px){.palace-banner{padding:10px 12px}.palace-detail [role=tabpanel] li{padding:10px;font-size:12px}.palace-portrait{width:58px;height:67px}.palace-detail .palace-banner h1{font-size:22px}}

/* Side-by-side character summary and shared progression layout. */
.article.palace-detail{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;max-width:960px;align-items:start}
.palace-detail .palace-banner{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:0;padding:20px 16px;background:#f4f1e9;border-left:2px solid #aa8a52;border-bottom:0;position:sticky;top:72px}
.palace-detail .palace-portrait{width:100px;height:115px;align-self:center}
.palace-detail .palace-banner h1{font-size:23px;margin:7px 0 10px}
.palace-bio{font-size:12px;line-height:1.8;color:#7a705f;margin:0 0 17px}
.palace-summary{display:flex;flex-direction:column;gap:6px}
.palace-detail .article-body{min-width:0;padding:0}
.palace-detail .palace-tabs{margin-top:10px}
.palace-detail [role=tabpanel] li.progress-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:12px 14px;align-items:center}
.progress-step{font-size:12px;color:#786344}.progress-effects{display:grid;gap:4px;font-size:12px;line-height:1.7}
.palace-detail .progress-effects strong{color:#3f3930}
@media(max-width:750px){.article.palace-detail{grid-template-columns:1fr;gap:16px}.palace-detail .palace-banner{position:static;flex-direction:row;gap:16px;padding:14px}.palace-detail .palace-portrait{width:70px;height:81px;align-self:flex-start}.palace-detail .palace-banner h1{font-size:22px}.palace-bio{margin-bottom:9px}.palace-summary{flex-direction:row;flex-wrap:wrap;gap:5px 14px}.palace-detail [role=tabpanel] li.progress-row{grid-template-columns:95px minmax(0,1fr);padding:11px 10px}}
/* Compact progression: two stages per row beside the character summary. */
.article.palace-detail{grid-template-columns:190px minmax(0,1fr);gap:20px;max-width:1120px}
.palace-detail [role=tabpanel] ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0}
.palace-detail [role=tabpanel] li.progress-row{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:10px 12px;border:1px solid #e0d8c8;background:#f7f4ed;margin:0}
.palace-detail [role=tabpanel] li.progress-row:nth-child(even){background:#f7f4ed}
.palace-detail .progress-step{font-size:12px;border-bottom:1px solid #e5dece;padding-bottom:4px}
.palace-detail .progress-effects{display:flex;flex-wrap:wrap;column-gap:14px;row-gap:2px;font-size:12px;line-height:1.7}
@media(max-width:750px){.article.palace-detail{grid-template-columns:1fr;gap:12px}.palace-detail [role=tabpanel] ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.palace-detail [role=tabpanel] li.progress-row{padding:8px}.palace-detail .progress-effects{font-size:11px;column-gap:8px}}
/* One compact horizontal row per progression stage. */
.palace-detail [role=tabpanel] ul{display:block;margin:0;border-top:1px solid #dcd5c7}
.palace-detail [role=tabpanel] li.progress-row{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:center;gap:18px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid #e0d8c8;background:#faf8f3}
.palace-detail [role=tabpanel] li.progress-row:nth-child(even){background:#f1eee6}
.palace-detail .progress-step{border:0;padding:0;font-size:12px;white-space:nowrap}
.palace-detail .progress-effects{display:flex;flex-wrap:wrap;gap:3px 20px;align-items:center;font-size:12px;line-height:1.7}
@media(max-width:650px){.palace-detail [role=tabpanel] li.progress-row{grid-template-columns:95px minmax(0,1fr);gap:10px;padding:9px 8px}.palace-detail .progress-effects{gap:2px 12px;font-size:11px}}

/* Equal-height summary and effect columns on desktop. */
@media(min-width:751px){.article.palace-detail{align-items:stretch}.palace-detail .palace-banner{position:static;align-self:stretch;height:auto}.palace-detail .article-body{align-self:stretch}}
/* Keep both ten-stage panels equal in height and prevent inline effects wrapping. */
.palace-detail [role=tabpanel] li.progress-row{min-height:43px}
.palace-detail .progress-effects{flex-wrap:nowrap}
.palace-detail .progress-effects>div{white-space:nowrap}
@media(max-width:600px){.palace-detail [role=tabpanel] li.progress-row{min-height:58px}.palace-detail .progress-effects{display:grid;grid-template-columns:1fr;gap:0}.palace-detail .progress-effects>div{white-space:normal}}

/* Keep the current star cost next to its star label. */
.palace-detail [role=tabpanel] li.progress-star-row{grid-template-columns:65px 145px minmax(0,1fr)}
.palace-detail .progress-jewels{font-size:12px;white-space:nowrap;color:#786f60}
@media(max-width:650px){.palace-detail [role=tabpanel] li.progress-star-row{grid-template-columns:45px 115px minmax(0,1fr);gap:8px}.palace-detail .progress-jewels{font-size:11px}}
@media(max-width:420px){.palace-detail [role=tabpanel] li.progress-star-row{grid-template-columns:40px minmax(0,1fr)}.palace-detail .progress-star-row .progress-effects{grid-column:1/-1}}

/* All 25 original game portraits share the same 144 by 166 format. */
.article.palace-detail{grid-template-columns:190px minmax(0,1fr);gap:20px}
.palace-detail .palace-banner{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 14px;background:#f4f1e9;border:0;border-left:2px solid #aa8a52;position:static;align-self:stretch}
.palace-detail .palace-portrait{display:block;width:144px;height:166px;min-width:144px;min-height:166px;flex:none;object-fit:contain;filter:none;align-self:center}
.palace-profile{width:100%;min-width:0}
.palace-detail .palace-banner h1{font:700 23px/1.4 system-ui,sans-serif;color:#463d30;margin:5px 0 13px;border:0}
.palace-detail .palace-summary{display:flex;flex-direction:column;gap:6px;color:#7a705f;font-size:12px}
.palace-detail .palace-summary b{color:#594c36}
.palace-detail .palace-bio{padding:0;margin:15px 0 0;color:#7a705f;font-size:12px;line-height:1.85}
@media(max-width:750px){.article.palace-detail{grid-template-columns:1fr;gap:16px}.palace-detail .palace-banner{flex-direction:row;align-items:flex-start;gap:16px;padding:14px}.palace-detail .palace-portrait{align-self:flex-start}.palace-detail .palace-banner h1{font-size:22px}}

/* Military rank: six stages per rank, with clear numeric columns. */
.military-rank-table th,.military-rank-table td{border:1px solid #c3c8cf;text-align:center;white-space:nowrap}
.military-rank-table th{background:#eee7dd;font-weight:700}
.military-rank-table td:first-child{text-align:left;font-weight:700}
.military-rank-table .rank-alternate{background:#f7f5f0}
.military-rank-table .rank-start td{border-top:2px solid #9f9384}

/* Eight-row rank overview with expandable per-stage data. */
.military-rank-table .rank-summary{cursor:pointer}
.military-rank-table .rank-summary:hover{background:#f6f2e9}
.rank-toggle{display:flex;align-items:center;gap:8px;padding:0;border:0;background:none;font-weight:700;color:inherit;cursor:pointer;white-space:nowrap}
.rank-toggle:focus-visible{outline:2px solid #956642;outline-offset:4px}
.rank-disclosure{width:12px;color:#956642}
.military-rank-table .rank-detail>td{padding:12px;background:#f5f3ef;color:#252525}
.military-rank-table .rank-stage-table{margin:0;font-size:12px;background:white}
.military-rank-table .rank-stage-table th{background:#e9e7e2}
.rank-detail[hidden]{display:none!important}

.rank-emblem{display:block;width:34px;height:34px;flex:none;object-fit:contain}
.rank-material-icon{display:inline-block;width:26px;height:26px;object-fit:contain;vertical-align:middle;margin-right:5px}
.military-rank-table .rank-summary>td{padding-top:6px;padding-bottom:6px}

/* Align rank icons, labels and values to the same vertical center. */
.military-rank-table th,.military-rank-table td{vertical-align:middle}
.military-rank-table .rank-toggle{align-items:center;min-height:34px;line-height:1.4;margin:0}
.military-rank-table .rank-emblem{align-self:center;margin:0}

.strategy-guide td,.strategy-guide th{vertical-align:middle}
.strategy-guide td img{display:inline-block;width:30px;height:30px;object-fit:contain;vertical-align:middle;margin-right:6px}
.strategy-guide table td:first-child{min-width:95px}
.strategy-guide .strategy-section table td:first-child{white-space:nowrap}
.strategy-section{border-bottom:1px solid #c8cbd0;margin:0}
.strategy-section>summary{padding:11px 4px;font-size:14px;font-weight:700;color:#654c36;cursor:pointer}
.strategy-section>summary:hover{background:#f7f5f0}
.strategy-section[open]>summary{border-bottom:1px solid #ded8cd}
.strategy-section table{margin-top:10px}
.strategy-section td{border-bottom:1px solid #d0d3d7}

.strategy-recommended{display:inline-block;vertical-align:middle;margin-left:5px;padding:1px 5px;border:1px solid #e2cf99;border-radius:3px;background:#faf0d4;color:#8a682c;font-size:10px;line-height:1.5;font-weight:500;white-space:nowrap}

.strategy-limit-info{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;padding:0;margin-left:5px;border:1px solid #ad9565;border-radius:50%;background:transparent;color:#876d3c;font:700 10px/1 sans-serif;vertical-align:middle;cursor:pointer}
.strategy-limit-info:focus-visible{outline:2px solid #ad9565;outline-offset:2px}
.strategy-limit-tip{position:fixed;inset:auto;margin:0;width:270px;max-width:calc(100vw - 24px);padding:10px 12px;border:1px solid #d8c79f;border-radius:3px;background:#fffbf1;color:#665338;box-shadow:0 3px 12px #0002;font-size:12px;line-height:1.8;z-index:10}
.strategy-limit-tip::backdrop{background:transparent}

.strategy-guide .strategy-limit-info{margin-left:0;margin-right:5px}

.strategy-guide .strategy-limit-info{margin-left:5px;margin-right:0}

/* Keep the original table layout and keep name labels on one line. */
.strategy-guide .strategy-section table td:has(>img){white-space:nowrap}
.strategy-guide .strategy-section table td:has(>img) .strategy-recommended{white-space:nowrap}

.rune-category{border-bottom:1px solid #c8cbd0}
.rune-category>summary{padding:11px 4px;font-size:14px;font-weight:700;color:#654c36;cursor:pointer}
.rune-category>summary:hover{background:#f7f5f0}
.rune-guide td,.rune-guide th{vertical-align:middle}
.rune-table td,.rune-table th{border:1px solid #c7cbd0}
.rune-table td{font-size:12px;line-height:1.8}
.rune-toggle{display:inline-flex;align-items:center;gap:7px;border:0;padding:0;background:none;color:inherit;font:inherit;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap;cursor:pointer}
.rune-toggle>img{width:32px;height:32px;object-fit:contain;flex:none}
.rune-arrow{color:#956642;font-size:11px}
.rune-toggle:focus-visible{outline:2px solid #956642;outline-offset:3px}
.rune-detail[hidden]{display:none!important}
.rune-detail>td{background:#f5f3ef;padding:12px}
.rune-level-table{background:white;margin:0!important}
.rune-level-table th,.rune-level-table td{text-align:center}
.rune-level-table th{background:#ebe7df}

.rune-table td:first-child>a{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-weight:700}
.rune-table td:first-child>a img{width:32px;height:32px;object-fit:contain;flex:none}

.soul-guide td,.soul-guide th{vertical-align:middle}
.soul-guide table{border:1px solid #c3c8cf}
.soul-guide td,.soul-guide th{border:1px solid #c3c8cf}
.soul-guide td img{width:30px;height:30px;object-fit:contain;vertical-align:middle;margin-right:6px}
.soul-summary>tbody>tr>td:not(:first-child){text-align:center}
.soul-toggle{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;font:inherit;font-weight:700;cursor:pointer;color:inherit;white-space:nowrap}
.soul-toggle>span{color:#956642;font-size:11px}
.soul-toggle:focus-visible{outline:2px solid #956642;outline-offset:3px}
.soul-detail[hidden]{display:none!important}
.soul-detail>td{background:#f5f3ef;padding:12px}
.soul-level-table{margin:0!important;background:white}
.soul-level-table th,.soul-level-table td{text-align:center;white-space:nowrap}
.soul-material-details>summary{padding:10px 3px;font-weight:700;color:#654c36;cursor:pointer;border-bottom:1px solid #c8cbd0}

.soul-level-gain{font-size:11px;color:#8b6541}

/* Group the nine soul numeric columns into three readable stages. */
.soul-guide .soul-growth-table{table-layout:auto;font-variant-numeric:tabular-nums}
.soul-growth-table .soul-group-head th{padding:10px 6px;font-size:13px;border-bottom:1px solid #b9b2a6}
.soul-growth-table thead tr:not(.soul-group-head) th{padding:7px 4px;font-size:12px}
.soul-growth-table .sort-button{white-space:nowrap}
.soul-growth-table .sort-cue{font-size:9px;margin-left:2px}
.soul-growth-table .soul-band-0{background:#faf8f3}
.soul-growth-table .soul-band-1{background:#f2f6f9}
.soul-growth-table .soul-band-2{background:#fbf3df;font-weight:700}
.soul-growth-table thead .soul-band-0{background:#ede7dc}
.soul-growth-table thead .soul-band-1{background:#e3ebf2}
.soul-growth-table thead .soul-band-2{background:#efe1bc}
.soul-guide .soul-growth-table .soul-band-start{border-left:2px solid #b5afa4}
.soul-guide .soul-growth-table td{padding:9px 7px;font-size:12px;white-space:nowrap}
.soul-guide .soul-growth-table td:first-child{text-align:left;min-width:110px;background:#fff}

.soul-detail-table{font-variant-numeric:tabular-nums}
.soul-detail-table td,.soul-detail-table th{border:1px solid #c4c9cf;text-align:center;vertical-align:middle;padding:7px 10px}
.soul-detail-table td:nth-child(5),.soul-detail-table th:nth-child(4){border-left:2px solid #a9a59c}
.soul-detail-table td:nth-child(n+5){background:#faf6eb}
.soul-detail-table thead tr:first-child th{background:#e7e9ec}
.soul-detail-table .soul-decade td{border-top:2px solid #aeb4bd}
.soul-detail-table .soul-milestone td{font-weight:700}

.soul-cost-table th,.soul-cost-table td{text-align:center;padding:8px 12px}
.soul-cost-table .soul-cost-needed{background:#fbefd4;color:#7e5922;font-weight:700}
.soul-cost-table tr[hidden]{display:none!important}
.soul-cost-table th img{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:5px}

.soul-cost-table .soul-cost-stage>td:first-child{text-align:left}
.soul-stage-toggle{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:#494136;font:inherit;font-weight:700;cursor:pointer}
.soul-stage-toggle>span{font-size:11px;color:#956642}
.soul-stage-toggle:focus-visible{outline:2px solid #956642;outline-offset:3px}
.soul-stage-note{font-size:11px;color:#87704a;margin:3px 0 0 19px}
.soul-stage-detail[hidden]{display:none!important}
.soul-stage-detail>td{padding:12px;background:#f5f3ef}
.soul-cost-levels{margin:0!important;background:#fff}
.soul-cost-stage>td{font-weight:700;font-variant-numeric:tabular-nums}

/* Shared reference tables: native disclosure and compact original game icons. */
.article-body details{margin:14px 0}
.article-body details>summary{cursor:pointer;font-weight:700;padding:9px 3px;border-bottom:1px solid #c5c9cf}
.article-body details[open]>summary{margin-bottom:8px}
.article-body td img[width="32"]{display:inline-block;width:32px;height:32px;object-fit:contain;vertical-align:middle;margin-right:6px}

.article-body td:has(>img[width="32"]){white-space:nowrap}

.article-body td img[width="20"]{display:inline-block;width:20px;height:20px;object-fit:contain;vertical-align:middle;margin-right:2px}

.glossary-term{display:inline;padding:0;border:0;border-bottom:1px dotted #8e7960;background:none;color:inherit;font:inherit;line-height:inherit;cursor:pointer}
.glossary-term:focus-visible{outline:2px solid #8e7960;outline-offset:3px}
.glossary-popover{position:fixed;inset:auto;margin:0;padding:9px 12px;max-width:min(280px,calc(100vw - 16px));border:1px solid #c8beb1;border-radius:3px;background:#fffdf8;color:#433c32;box-shadow:0 3px 12px #0002;font:13px/1.6 system-ui}

/* Soft colors for awakening stars and talent columns. */
.awakening-colors tbody tr:nth-child(1)>td:first-child,.talent-colors tr>:nth-child(2){background:#f0e7f6;color:#65417c}
.awakening-colors tbody tr:nth-child(2)>td:first-child,.talent-colors tr>:nth-child(3){background:#fff0dc;color:#87551d}
.awakening-colors tbody tr:nth-child(3)>td:first-child,.talent-colors tr>:nth-child(4){background:#fbe6e4;color:#913f39}
.awakening-colors tbody tr:nth-child(4)>td:first-child,.talent-colors tr>:nth-child(5){background:#faf0cd;color:#796016}
.awakening-colors tbody tr:nth-child(5)>td:first-child,.talent-colors tr>:nth-child(6){background:#f4e2b6;color:#71500e}
.awakening-colors tbody tr>td:first-child,.talent-colors thead th{font-weight:700}
.talent-colors td{border-color:#ccc6bd}

.awakening-colors tbody tr:nth-child(1)>td:first-child{background:#faf5e9;color:#806639}
.awakening-colors tbody tr:nth-child(2)>td:first-child{background:#f5ebd4;color:#795e2e}
.awakening-colors tbody tr:nth-child(3)>td:first-child{background:#efdfb8;color:#725426}
.awakening-colors tbody tr:nth-child(4)>td:first-child{background:#e8d09a;color:#68491f}
.awakening-colors tbody tr:nth-child(5)>td:first-child{background:#dfbf78;color:#5d3e17}

.talent-colors tr>:nth-child(2){background:#faf5e9;color:#806639}
.talent-colors tr>:nth-child(3){background:#f5ebd4;color:#795e2e}
.talent-colors tr>:nth-child(4){background:#efdfb8;color:#725426}
.talent-colors tr>:nth-child(5){background:#e8d09a;color:#68491f}
.talent-colors tr>:nth-child(6){background:#dfbf78;color:#5d3e17}

/* Fishing uses calm green, blue and gold reference colors. */
.fishing-guide .article-body>h2{padding:8px 11px;background:#e8f0eb;border-left:4px solid #739584;color:#355b49}
.fishing-guide .article-body>h2:nth-of-type(2n){background:#e8eff5;border-left-color:#7897ae;color:#3a5970}
.fishing-guide th{background:#dce9e3;color:#39564a}
.fishing-guide tbody tr:nth-child(even){background:#f0f5f2}
.fishing-guide td,.fishing-guide th{border-color:#bfcfc5}
.fishing-guide .fishing-probabilities tr>:nth-child(2){background:#e1efe6;color:#315e43}
.fishing-guide .fishing-probabilities tr>:nth-child(3){background:#e9edf0;color:#505b65}
.fishing-guide .fishing-probabilities tr>:nth-child(4){background:#f7edcf;color:#74591e}

.fish-collection-picker{display:flex;align-items:center;gap:8px;margin:12px 0;font-weight:700}.fish-collection-picker select{max-width:100%;padding:6px 10px;border:1px solid #a5beb0;background:#eef5f0;color:#355b49;font:inherit}

.fish-detail-tabs{display:flex;gap:4px;margin:12px 0;border-bottom:1px solid #b5c9bc}.fish-detail-tabs button{padding:7px 18px;border:1px solid #c0d0c6;border-bottom:0;background:#eff4f1;color:#466251;font:inherit;cursor:pointer}.fish-detail-tabs button[aria-selected="true"]{background:#d6e7db;color:#274d37;font-weight:700}.fish-detail-tabs button:focus-visible{outline:2px solid #6b917a;outline-offset:2px}

/* Emphasize what changes in specimen upgrades. */
.fishing-guide .specimen-upgrade-table td{font-variant-numeric:tabular-nums}
.fishing-guide .specimen-upgrade-table .specimen-stage-start>td{border-top:3px solid #839e8d}
.fishing-guide .specimen-upgrade-table .specimen-stage-start>td:first-child{background:#dce9df;color:#304f3b;font-weight:700}
.fishing-guide .specimen-upgrade-table .specimen-capacity-gain{background:#dcefdc;color:#245638}
.fishing-guide .specimen-upgrade-table .specimen-capacity-same{color:#737d76}
.specimen-gain{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:3px;background:#b9d8bd;color:#245238;font-size:11px;font-weight:700;white-space:nowrap}
.fishing-guide .specimen-upgrade-table .specimen-shell-cost{background:#f5e7bf;color:#79551e;font-weight:700}
.specimen-table-key{font-size:12px;color:#536858;margin:8px 0}

.fish-handbook-toggle{display:block;width:100%;padding:3px 0;border:0;background:none;color:#355b49;font:inherit;font-weight:700;text-align:left;cursor:pointer}.fish-handbook-toggle:focus-visible{outline:2px solid #729581;outline-offset:2px}.fish-handbook-detail[hidden]{display:none}.fishing-guide .fish-handbook-detail>td{padding:10px 14px 16px;background:#edf4ef}.fish-handbook-detail table{margin-top:0}

/* Stronger contrast for expanded collectible handbook data. */
.fishing-guide .fish-handbook-detail>td{background:#d9e7dd;color:#263b2e}
.fishing-guide .fish-handbook-detail table{color:#263b2e}
.fishing-guide .fish-handbook-detail th{background:#a9c7b4;color:#203d2a;border-color:#8aa894;font-weight:700}
.fishing-guide .fish-handbook-detail tbody tr{background:#f5f8f5}
.fishing-guide .fish-handbook-detail tbody tr:nth-child(even){background:#dfece2}
.fishing-guide .fish-handbook-detail tbody td{color:#263b2e;border-color:#a5bcae}
.fishing-guide .fish-handbook-detail tbody td:nth-child(2){font-weight:600;color:#254e35}

.fishing-guide td img[width="18"]{display:inline-block;width:18px;height:18px;object-fit:contain;vertical-align:middle;margin-right:5px}

.fishing-guide .fish-attribute-ranges{width:auto;max-width:100%;table-layout:auto;font-variant-numeric:tabular-nums}
.fishing-guide .fish-attribute-ranges th,.fishing-guide .fish-attribute-ranges td{padding:8px 16px;white-space:nowrap}
.fishing-guide .fish-attribute-ranges th:first-child,.fishing-guide .fish-attribute-ranges td:first-child{text-align:left}
.fishing-guide .fish-attribute-ranges th:not(:first-child),.fishing-guide .fish-attribute-ranges td:not(:first-child){text-align:right}

/* Compare sizes without stretching the individual attribute tables. */
.fish-size-grid{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;margin-top:14px}
.fish-size-column{flex:0 1 auto;min-width:0;max-width:100%}
.fish-size-column>h3{margin:0 0 10px;font-size:16px;color:#355b49}
.fish-size-column .fish-attribute-ranges{margin-top:0}
@media(max-width:700px){.fish-size-grid{flex-direction:column;gap:20px}.fish-size-column{width:auto;max-width:100%}}

/* Compact, aligned size comparisons with one shared attribute label. */
.fishing-guide .fish-size-unified{width:auto;table-layout:auto;font-variant-numeric:tabular-nums}
.fishing-guide .fish-size-unified th,.fishing-guide .fish-size-unified td{padding:8px 12px;white-space:nowrap}
.fishing-guide .fish-size-unified th{text-align:center}
.fishing-guide .fish-size-unified td{text-align:right}
.fishing-guide .fish-size-unified tr>:first-child:not(.fish-size-tone-0){text-align:left}
.fishing-guide .fish-size-unified .fish-size-tone-0{background:#e4eee6;color:#35523e}
.fishing-guide .fish-size-unified .fish-size-tone-1{background:#e2ebf2;color:#355269}
.fishing-guide .fish-size-unified .fish-size-tone-2{background:#f3e9cd;color:#6c5425}
.fishing-guide .fish-size-unified thead .fish-size-tone-0{background:#c0d5c5}
.fishing-guide .fish-size-unified thead .fish-size-tone-1{background:#bfd0df}
.fishing-guide .fish-size-unified thead .fish-size-tone-2{background:#e5d49e}
.fishing-guide .fish-size-unified td:nth-child(2),.fishing-guide .fish-size-unified td:nth-child(4),.fishing-guide .fish-size-unified td:nth-child(6){border-left:2px solid #afbbb2}
.fishing-guide .fish-size-unified .fish-size-unavailable{color:#8a908c;font-weight:400}

/* One natural-width table with fish-size tabs. */
.fish-size-grid.fish-size-tabbed{display:block;width:fit-content;max-width:100%;margin-top:12px}
.fish-size-tabbed>.fish-size-column{width:auto;max-width:100%}
.fish-size-tabbed>.fish-size-column[hidden]{display:none}
.fish-size-tabs{margin:0 0 12px;gap:3px}
.fish-size-tabs button{padding:7px 15px;white-space:nowrap}
.fish-size-tabs button:nth-child(1)[aria-selected="true"]{background:#c4d9cb;color:#2e513a}
.fish-size-tabs button:nth-child(2)[aria-selected="true"]{background:#c4d5e4;color:#35536d}
.fish-size-tabs button:nth-child(3)[aria-selected="true"]{background:#e7d8ac;color:#70571e}

/* Three compact fields next to each other, each retaining its size tabs. */
.fish-fields-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:22px;margin-top:14px}
.fishing-guide .fish-fields-grid>.fish-field-panel{flex:0 1 auto;min-width:0;max-width:100%;margin:0}
.fish-field-panel>summary{font-size:14px;white-space:nowrap}
.fish-field-panel .fish-size-tabs button{padding:7px 10px;font-size:12px}
.fishing-guide .fish-field-panel .fish-attribute-ranges th,.fishing-guide .fish-field-panel .fish-attribute-ranges td{padding:7px 9px}
@media(max-width:700px){.fish-fields-grid{flex-direction:column;gap:20px}.fish-fields-grid>.fish-field-panel{width:auto;max-width:100%}}

/* Synchronized field comparison: one size control, aligned data, compact future field. */
.fish-shared-comparison{margin-top:16px;max-width:1120px}
.fish-shared-size-tabs{width:fit-content;margin:0 0 16px}
.fish-shared-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px}
.fish-shared-field{min-width:0}
.fish-shared-field>h3{margin:0 0 10px;padding:9px 10px;background:#d7e6dc;color:#345640;font-size:14px;line-height:1.5}
.fish-shared-field:nth-child(2)>h3{background:#d6e3ee;color:#36546a}
.fish-shared-field:nth-child(3)>h3{background:#eee0b9;color:#705620}
.fishing-guide .fish-synced-table{width:100%;margin:0;table-layout:auto;font-size:12px;font-variant-numeric:tabular-nums}
.fishing-guide .fish-synced-table th,.fishing-guide .fish-synced-table td{padding:7px 8px;white-space:nowrap}
.fishing-guide .fish-synced-table th:not(:first-child),.fishing-guide .fish-synced-table td:not(:first-child){text-align:right}
.fishing-guide .fish-synced-table td:first-child{height:32px;box-sizing:border-box}
.fish-synced-table .fish-maximum{font-weight:700;color:#294c36}
.fish-synced-table .fish-no-value{color:#879087;font-weight:400}
.fish-future-field{padding:0;background:#f1f3f1;border:1px dashed #b7c2b9}
.fish-future-field>h3{margin:0;background:#e4e9e5;color:#69766c}
.fish-unopened{padding:12px;color:#718075;font-size:13px;margin:0}
.fish-comparison-note{font-size:12px;color:#586d5e;margin:10px 0}
.fish-mobile-fields{display:none}
@media(min-width:1450px){.fish-shared-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 .fish-shared-fields{display:block}.fish-shared-field:not(.is-selected){display:none}
 .fish-mobile-fields{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}
 .fish-mobile-fields button{padding:6px 8px;border:1px solid #b6c7ba;background:#f0f5f1;color:#4e6556;font:inherit;font-size:12px;cursor:pointer}
 .fish-mobile-fields button[aria-selected="true"]{background:#c7dccd;color:#2e5038;font-weight:700}
}

.fish-stat-recommended{font-size:10px;padding:0 4px;margin-left:4px;line-height:1.5}

.specimen-upgrade-table tbody tr[hidden]{display:none}
.fishing-guide .specimen-upgrade-table .specimen-stage-summary>td{background:#d8e7dc;color:#304c39;font-weight:700;border-top:2px solid #9bb4a4}
.fishing-guide .specimen-upgrade-table .specimen-stage-summary>.specimen-shell-cost{background:#f0dfae;color:#71511b}

.fish-gear-level-picker{display:flex;align-items:center;gap:8px;margin:12px 0;font-weight:700;color:#355b49}
.fish-gear-level-picker select{padding:6px 10px;border:1px solid #9cb4a5;background:#edf4ee;color:#355b49;font:inherit}
.fishing-guide .fish-gear-combined tfoot th,.fishing-guide .fish-gear-combined tfoot td{background:#e5eddf;color:#35543d;font-weight:700}

.fish-gear-stages tbody tr[hidden]{display:none}
.fishing-guide .fish-gear-stages .fish-gear-stage-summary>td{background:#d7e6dc;color:#30503a;font-weight:700;border-top:2px solid #9db7a6}
.fish-gear-effect-label{display:block;font-size:11px;line-height:1.5;font-weight:400;margin-top:4px;max-width:160px}
.fishing-guide .fish-gear-stages tfoot th,.fishing-guide .fish-gear-stages tfoot td{background:#eee4ca;color:#655020;line-height:1.6}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="1"]>td{background:#fafafa;color:#555c62}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="1"]>td{background:#f0f1f2;color:#555c62}
.fishing-guide .fish-gear-stages tr[data-gear-stage="1"] .fish-handbook-toggle{color:#555c62}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="2"]>td{background:#f0f6ee;color:#345b30}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="2"]>td{background:#d7e8d2;color:#345b30}
.fishing-guide .fish-gear-stages tr[data-gear-stage="2"] .fish-handbook-toggle{color:#345b30}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="3"]>td{background:#edf3fa;color:#345c80}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="3"]>td{background:#d5e5f4;color:#345c80}
.fishing-guide .fish-gear-stages tr[data-gear-stage="3"] .fish-handbook-toggle{color:#345c80}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="4"]>td{background:#f4eff9;color:#6b4882}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="4"]>td{background:#e5d9ef;color:#6b4882}
.fishing-guide .fish-gear-stages tr[data-gear-stage="4"] .fish-handbook-toggle{color:#6b4882}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="5"]>td{background:#fcf3e7;color:#8a5b22}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="5"]>td{background:#f5dfbe;color:#8a5b22}
.fishing-guide .fish-gear-stages tr[data-gear-stage="5"] .fish-handbook-toggle{color:#8a5b22}

.fishing-guide .fish-gear-stages tbody tr[data-gear-stage="6"]>td{background:#fbefee;color:#91433f}
.fishing-guide .fish-gear-stages tbody tr.fish-gear-stage-summary[data-gear-stage="6"]>td{background:#efcecd;color:#91433f}
.fishing-guide .fish-gear-stages tr[data-gear-stage="6"] .fish-handbook-toggle{color:#91433f}

/* Align gear header icons and labels on the same vertical center. */
.fishing-guide .fish-gear-stages thead th{vertical-align:middle;line-height:1.5}
.fishing-guide .fish-gear-stages thead th img{display:inline-block;width:26px;height:26px;object-fit:contain;vertical-align:middle;margin:0 5px 0 0}

.fishing-guide .specimen-upgrade-table tr.specimen-stage-summary[data-specimen-stage="1"]>td{background:#eceeef;color:#505a61}
.fishing-guide .specimen-stage-summary[data-specimen-stage="1"] .fish-handbook-toggle{color:#505a61}
.fishing-guide .specimen-upgrade-table tr.specimen-stage-summary[data-specimen-stage="2"]>td{background:#d5e7d3;color:#345c37}
.fishing-guide .specimen-stage-summary[data-specimen-stage="2"] .fish-handbook-toggle{color:#345c37}
.fishing-guide .specimen-upgrade-table tr.specimen-stage-summary[data-specimen-stage="3"]>td{background:#d5e5f2;color:#345a78}
.fishing-guide .specimen-stage-summary[data-specimen-stage="3"] .fish-handbook-toggle{color:#345a78}
.fishing-guide .specimen-upgrade-table tr.specimen-stage-summary[data-specimen-stage="4"]>td{background:#e5d9ee;color:#68487f}
.fishing-guide .specimen-stage-summary[data-specimen-stage="4"] .fish-handbook-toggle{color:#68487f}
.fishing-guide .specimen-upgrade-table tr.specimen-stage-summary>.specimen-shell-cost{background:#f0dfae;color:#71511b}

.fish-gear-name{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;border-bottom:1px dotted #789884;background:none;color:inherit;font:inherit;line-height:1.5;vertical-align:middle;cursor:help}
.fishing-guide .fish-gear-stages thead .fish-gear-name img{margin:0}
.fish-gear-name:focus-visible{outline:2px solid #688f75;outline-offset:3px}
.fish-gear-priority{vertical-align:middle;margin-left:5px;font-size:10px}
.fish-gear-tooltip{pointer-events:none}

.fish-gear-recommendation{margin:10px 0;color:#80612a;font-size:13px;font-weight:600}

/* Eight equal columns regardless of header icons or recommendation labels. */
.fishing-guide .fish-gear-stages{width:100%;min-width:960px;table-layout:fixed}
.fishing-guide .fish-gear-stages th,.fishing-guide .fish-gear-stages td{width:12.5%;box-sizing:border-box}
.fishing-guide .fish-gear-stages thead th{white-space:normal}

/* Equipment comparisons use warm ordinary skills and rose advanced skills. */
.equipment-guide h2{background:#f2e9d8;border-left:4px solid #a7874f;padding:10px 14px;color:#654b29}
.equipment-guide table th{background:#e8deca;color:#604b2f}
.equipment-guide table tbody tr:nth-child(even)>td{background:#f8f5ee}
.equipment-guide .equipment-advanced th{background:#e9ced0;color:#783d43}
.equipment-guide .equipment-advanced tbody tr:nth-child(even)>td{background:#faf0f0}
.equipment-skill-toggle{border:0;padding:0;background:none;color:#775b2a;font:inherit;font-weight:700;text-align:left;white-space:nowrap;cursor:pointer}
.equipment-advanced .equipment-skill-toggle{color:#8a434b}
.equipment-skill-toggle:focus-visible{outline:2px solid #aa8850;outline-offset:4px}
.equipment-guide tr.equipment-level-detail>td{padding:12px 18px;background:#f4efe5;color:#302b26}
.equipment-guide .equipment-level-detail table{margin:0;min-width:480px}
.equipment-guide .equipment-level-detail table td{color:#302b26}
.equipment-guide .equipment-level-detail .table-scroll{margin:0}
.equipment-guide table img{vertical-align:middle;object-fit:contain;margin-right:5px}

.equipment-guide .equipment-skills th,.equipment-guide .equipment-skills td{vertical-align:middle}
.equipment-guide .equipment-skill-toggle{display:inline-flex;align-items:center;text-align:left;gap:6px}
.equipment-guide .equipment-skill-toggle img{margin:0;vertical-align:middle}


.equipment-skill-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.equipment-skill-column{min-width:0}
.equipment-guide .equipment-skill-column h2{margin-top:20px}
.equipment-guide .equipment-skill-column table{min-width:0;width:100%}
.equipment-guide .equipment-skill-column th,.equipment-guide .equipment-skill-column td{padding:12px 10px}
.equipment-guide .equipment-skill-column .equipment-skill-toggle{white-space:normal}
.equipment-guide .equipment-skill-column .equipment-skill-toggle img{flex-shrink:0}
@media(max-width:1100px){.equipment-skill-columns{grid-template-columns:minmax(0,1fr)}}

.soul-guide .soul-hero-portraits{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;list-style:none;padding:0;margin:22px 0;max-width:1100px}
.soul-guide .soul-hero-portraits li{margin:0;padding:0}
.soul-guide .soul-hero-portraits a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;background:#f3ede1;border:1px solid #d8c8aa;border-radius:4px;font-weight:700;text-decoration:none}
.soul-guide .soul-hero-portraits a:hover{background:#eae0cc;border-color:#a98950}
.soul-guide .soul-hero-portraits img{width:80px;height:80px;object-fit:contain;margin:0}

/* Keep the eight portrait links compact and separate from the introduction. */
.soul-guide .soul-hero-portraits{grid-template-columns:repeat(4,minmax(0,1fr));max-width:760px;gap:12px;margin:20px 0 26px}
.soul-guide .soul-hero-portraits a{padding:12px 8px;font-size:14px;gap:6px}
@media(max-width:520px){.soul-guide .soul-hero-portraits{grid-template-columns:repeat(2,minmax(0,1fr))}}

.soul-guide .soul-hero-portraits{grid-template-columns:repeat(8,minmax(90px,1fr));max-width:100%;gap:10px;overflow-x:auto;padding-bottom:6px}
.soul-guide .soul-hero-portraits a{padding:10px 5px;font-size:13px;gap:6px;min-height:102px;box-sizing:border-box}
.soul-guide .soul-hero-portraits img{width:56px;height:56px}

.totem-cost-stage{margin:10px 0;border:1px solid var(--totem-line);border-radius:4px;overflow:hidden}
.totem-cost-stage>summary{padding:12px 16px;background:var(--totem-bg);color:var(--totem-ink);font-weight:700;cursor:pointer}
.totem-cost-stage>.table-scroll{margin:12px}
.totem-cost-stage table th{background:var(--totem-bg);color:var(--totem-ink)}
.totem-cost-stage[data-stage="1"]{--totem-bg:#eceeef;--totem-line:#c4cacf;--totem-ink:#46545e}
.totem-cost-stage[data-stage="2"]{--totem-bg:#dcebd7;--totem-line:#b2caa9;--totem-ink:#3c6335}
.totem-cost-stage[data-stage="3"]{--totem-bg:#d5e8e3;--totem-line:#a8c9be;--totem-ink:#316759}
.totem-cost-stage[data-stage="4"]{--totem-bg:#d7e7f4;--totem-line:#a8bfd5;--totem-ink:#365d7d}
.totem-cost-stage[data-stage="5"]{--totem-bg:#e1dff1;--totem-line:#bcb5d7;--totem-ink:#5c4d7e}
.totem-cost-stage[data-stage="6"]{--totem-bg:#ecdcf0;--totem-line:#cfb3d5;--totem-ink:#794b82}
.totem-cost-stage[data-stage="7"]{--totem-bg:#f1dfce;--totem-line:#d5b592;--totem-ink:#865c30}
.totem-cost-stage[data-stage="8"]{--totem-bg:#f3e4bc;--totem-line:#d4bc7d;--totem-ink:#7c6125}
.totem-cost-stage[data-stage="9"]{--totem-bg:#f1d5d3;--totem-line:#d3aaa7;--totem-ink:#8b4542}
.totem-cost-stage[data-stage="10"]{--totem-bg:#e8d8d1;--totem-line:#c5aaa0;--totem-ink:#775447}

/* Keep the two-column essence requirements compact. */
.totem-cost-stage{width:100%;max-width:520px;box-sizing:border-box}
.totem-cost-stage>summary{padding:10px 14px}
.totem-cost-stage>.table-scroll{margin:10px}
.article-body .totem-cost-stage table{width:100%;min-width:0;table-layout:fixed;margin:0}
.article-body .totem-cost-stage th,.article-body .totem-cost-stage td{width:50%;padding:9px 14px;box-sizing:border-box}

.article-body .totem-cost-overview{max-width:760px;margin:18px 0}
.article-body .totem-cost-overview>table{width:100%;min-width:0;table-layout:fixed}
.totem-cost-overview .totem-cost-summary>td{background:var(--totem-bg);color:var(--totem-ink);font-weight:700;border-top:1px solid var(--totem-line);padding:11px 16px}
.totem-cost-summary .soul-stage-toggle{color:inherit}
.article-body .totem-cost-detail>td{padding:10px 16px;background:#fafafa;color:#333}
.article-body .totem-cost-detail table{width:100%;min-width:0;margin:0;table-layout:fixed}
.article-body .totem-cost-detail th,.article-body .totem-cost-detail td{padding:8px 12px;color:#333}

.article-body .totem-cost-overview{width:100%;max-width:none}
.article-body .totem-cost-overview>table>thead th,.article-body .totem-cost-overview>table>tbody>tr.totem-cost-summary>td{width:33.333%;box-sizing:border-box}
.totem-cost-overview tfoot td{background:#eadbb8;color:#6d5028;font-weight:700;padding:12px 16px;border-top:2px solid #c4a66b}

.article-body .totem-cost-overview>table{min-width:960px}
.article-body .totem-cost-overview>table>thead th,.article-body .totem-cost-overview>table>tbody>tr.totem-cost-summary>td{width:14.2857%;vertical-align:middle}

.article-body .totem-cost-overview>table{min-width:1120px}
.article-body .totem-cost-overview>table>thead th,.article-body .totem-cost-overview>table>tbody>tr.totem-cost-summary>td{width:12%}
.article-body .totem-cost-overview>table>thead th:last-child,.article-body .totem-cost-overview>table>tbody>tr.totem-cost-summary>td:last-child{width:28%;white-space:nowrap}

.totem-cost-overview tfoot td:last-child{white-space:nowrap}

body[data-category] .article-body img[src*="view_hero_icon"]{vertical-align:middle;object-fit:contain;margin-right:5px}

.article-body .totem-quality-ranges th:nth-child(2){color:#947020}
.article-body .totem-quality-ranges th:nth-child(3){color:#a14945}

.article-body .totem-quality-ranges{table-layout:fixed;width:100%}
.article-body .totem-quality-ranges th:first-child{width:48%}
.article-body .totem-quality-ranges th:not(:first-child){width:26%}
.article-body .totem-quality-ranges th small{display:block;margin-top:3px;font-size:12px;font-weight:400;line-height:1.4;opacity:.85}
.article-body .totem-quality-ranges th:not(:first-child),.article-body .totem-quality-ranges td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.article-body .totem-quality-ranges th,.article-body .totem-quality-ranges td{vertical-align:middle;padding:11px 16px}
.article-body .totem-quality-ranges .strategy-recommended{margin-left:6px;vertical-align:middle}

.totem-guide>h2{padding:10px 14px;background:#e6ede7;color:#3d6251;border-left:4px solid #73977e}
.totem-spirit-group{margin:12px 0;border:1px solid var(--spirit-line);border-radius:4px;overflow:hidden}
.totem-spirit-group>summary{padding:12px 15px;background:var(--spirit-bg);color:var(--spirit-ink);font-weight:700;cursor:pointer}
.totem-spirit-group>.table-scroll{margin:12px}
.totem-spirit-group[data-quality="immortal"]{--spirit-bg:#f2e3bd;--spirit-line:#d5bb7f;--spirit-ink:#7a5b22}
.totem-spirit-group[data-quality="eternal"]{--spirit-bg:#efd9d7;--spirit-line:#d3aaa6;--spirit-ink:#8b4844}
.totem-spirit-group[data-quality="legendary"]{--spirit-bg:#f2e2d0;--spirit-line:#d5b491;--spirit-ink:#855c31}
.totem-spirit-group[data-quality="epic"]{--spirit-bg:#e8def0;--spirit-line:#c5afd5;--spirit-ink:#715087}
.article-body .totem-spirit-group th{background:var(--spirit-bg);color:var(--spirit-ink)}
.article-body .totem-spirit-group tbody tr:nth-child(even)>td{background:#f8f6f2}
.article-body .totem-quality-ranges th{background:#e4ece7}
.article-body .totem-quality-ranges tbody tr:nth-child(even)>td{background:#f4f7f4}

.totem-spirit-toggle{display:inline-flex;align-items:center;gap:6px;border:0;padding:0;background:none;font:inherit;color:var(--spirit-ink);font-weight:700;text-align:left;cursor:pointer}
.totem-spirit-toggle img{flex-shrink:0;vertical-align:middle}
.totem-spirit-toggle .strategy-recommended{white-space:nowrap}
.article-body .totem-spirit-levels>td{padding:12px 18px;color:#333;background:#f7f5f0}
.article-body .totem-spirit-levels .table-scroll{margin:0}
.article-body .totem-spirit-levels table td{color:#333}

/* Keep spirit names and badges together instead of stacking characters. */
.totem-spirit-toggle{white-space:nowrap;flex-wrap:nowrap}
.article-body .totem-spirit-group>.table-scroll>table{table-layout:auto}
.article-body .totem-spirit-group>.table-scroll>table>thead>tr>th:first-child,.article-body .totem-spirit-group>.table-scroll>table>tbody>tr:not(.totem-spirit-levels)>td:first-child{white-space:nowrap;min-width:210px;width:auto}

.spirit-star-rating{display:inline-block;font-size:16px;letter-spacing:2px;white-space:nowrap;vertical-align:middle;line-height:1.4}
.spirit-star-yellow{color:#c39220;text-shadow:0 1px 0 #f4e0a1}
.spirit-star-red{color:#be4842;text-shadow:0 1px 0 #efc7c3}

.article-body .totem-spirit-group table th,.article-body .totem-spirit-group table td{vertical-align:middle}
.article-body .totem-spirit-group>.table-scroll>table>thead>tr>th:not(:first-child),.article-body .totem-spirit-group>.table-scroll>table>tbody>tr:not(.totem-spirit-levels)>td:not(:first-child){white-space:nowrap}
.article-body .totem-spirit-levels table th,.article-body .totem-spirit-levels table td{white-space:nowrap}

/* Remove generic bonus labels while retaining the overview's horizontal rhythm. */
.article-body .spirit-overview-effects>thead{display:none}
.article-body .spirit-overview-effects>tbody>tr:not(.totem-spirit-levels)>td{padding-top:15px;padding-bottom:15px}


.article-body .spirit-overview-effects>tbody>tr:not(.totem-spirit-levels)>td{padding-top:9px;padding-bottom:9px;line-height:1.5}
.spirit-overview-effects .totem-spirit-toggle{line-height:1.5}

.article-body .military-book-comparison{width:100%;table-layout:fixed}
.article-body .military-book-comparison th,.article-body .military-book-comparison td{width:33.333%;box-sizing:border-box;vertical-align:middle}
.military-book-comparison .strategy-recommended{display:inline-block;white-space:nowrap;vertical-align:middle}
.military-book-comparison img{vertical-align:middle;object-fit:contain}

.article-body img[src$="medal_gold.png"],.article-body img[src$="medal_red.png"],.article-body img[src$="prop_42001.png"]{vertical-align:middle;object-fit:contain;margin-right:4px}

.article-body .book-skill-priority th{background:#e7ede6;color:#466049}
.article-body .book-skill-priority th:first-child,.article-body .book-skill-priority td:first-child{width:18%;text-align:center}
.article-body .book-skill-priority th:last-child,.article-body .book-skill-priority td:last-child{width:24%;text-align:center}
.article-body .book-skill-priority tbody tr:nth-child(-n+2)>td{background:#faf4e5}

.article-body.military-books-guide table{width:100%;table-layout:fixed}
.article-body.military-books-guide table th,.article-body.military-books-guide table td{width:calc(100% / var(--book-columns));box-sizing:border-box;vertical-align:middle}
.military-books-guide img{vertical-align:middle;object-fit:contain;margin-right:5px}

/* Book quality colors: warm gold for legendary, rose for eternal. */
.article-body.military-books-guide>h2{background:#f1e7d7;color:#705333;border-left:4px solid #b5915c;padding:10px 14px}
.article-body.military-books-guide table th{background:#eae3d9;color:#665442}
.article-body.military-books-guide .military-book-comparison th:nth-child(1){background:#f1dfb8;color:#85601e}
.article-body.military-books-guide .military-book-comparison th:nth-child(2){background:#ead0cf;color:#8a4543}
.article-body.military-books-guide .military-book-comparison th:nth-child(3){background:#e8e3dd;color:#625b53}
.article-body.military-books-guide table tbody tr:nth-child(even)>td{background:#f8f5ef}
.article-body.military-books-guide .book-skill-priority th{background:#e9e1d6;color:#69533e}
.article-body.military-books-guide .book-skill-priority tbody tr:nth-child(-n+2)>td{background:#f8edd7}

.book-selection-example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:24px;align-items:start;margin:18px 0}
.book-selection-example>.table-scroll{margin:0;min-width:0}
.book-selection-example figure{margin:0;min-width:0}
.article-body .book-selection-example figure img{display:block;width:100%;max-width:390px;height:auto;margin:0 auto;border:1px solid #d2c4ad;border-radius:4px}
@media(max-width:760px){.book-selection-example{grid-template-columns:minmax(0,1fr)}.article-body .book-selection-example figure img{max-width:340px}}

.book-selection-example{grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start}
.article-body .book-selection-example>.table-scroll{margin:0}
.article-body .book-selection-example table{margin:0}
.book-selection-example figure{height:var(--book-example-height,420px)}
.article-body .book-selection-example figure img{height:100%;width:auto;max-width:300px;object-fit:contain;margin:0;border:1px solid #b6a581;border-radius:3px;box-sizing:border-box}
.article-body.military-books-guide .book-selection-example table th{background:#d8c9a9;color:#654d2c;border-color:#bfb08f}
.article-body.military-books-guide .book-selection-example table td{background:#f0e8d6;border-color:#cfc2a5;color:#4f4636}
.article-body.military-books-guide .book-selection-example table tbody tr:nth-child(even)>td{background:#e6dbc3}
@media(max-width:760px){.book-selection-example{grid-template-columns:minmax(0,1fr)}.book-selection-example figure{height:auto}.article-body .book-selection-example figure img{height:auto;width:100%;max-width:280px;margin:0 auto}}

.article-body .book-selection-example .book-base-attributes td{padding-top:17px;padding-bottom:17px}
.book-base-attributes .book-base-options{display:flex;align-items:center;justify-content:space-around;gap:12px;min-height:56px}
.book-base-attributes .book-base-options>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}

.book-base-attributes .book-base-options{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;min-height:0}
.article-body .book-selection-example .book-base-attributes td{vertical-align:middle;padding-top:13px;padding-bottom:13px}

.book-usable{display:inline-block;padding:2px 6px;border:1px solid #b7b0a2;border-radius:3px;background:#ece8de;color:#756b58;font-size:11px;line-height:1.4;white-space:nowrap;vertical-align:middle}
.book-selection-example .strategy-recommended,.book-selection-example .book-usable{margin-left:5px}

/* Recommendation states share the same dimensions. */
.book-selection-example .strategy-recommended,.book-selection-example .book-usable{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:38px;height:23px;padding:2px 6px;font-size:11px;font-weight:600;line-height:1.4;border-width:1px;border-style:solid;border-radius:3px;white-space:nowrap;vertical-align:middle;margin-left:5px}

.book-selection-example figcaption{margin-top:8px;color:#83735e;font-size:12px;line-height:1.6;max-width:300px}

.book-selection-example .strategy-recommended,.book-selection-example .book-usable{display:inline-block;min-width:0;height:auto;padding:1px 5px;font-size:10px;line-height:1.5;font-weight:500;border:1px solid;border-radius:3px;margin-left:5px;vertical-align:middle}
.book-selection-example .strategy-recommended{border-color:#e2cf99}
.book-selection-example .book-usable{border-color:#b7b0a2}

.book-selection-example figure{position:relative}
.book-selection-example figcaption{margin:0 0 10px;padding:8px 10px;background:#eee1c7;border-left:3px solid #aa8447;color:#664b26;font-size:13px;font-weight:600;line-height:1.6;max-width:300px;box-sizing:border-box}

.book-selection-example figcaption{white-space:nowrap}

.article-body .book-selection-example .book-troop-options td{vertical-align:middle;padding-top:13px;padding-bottom:13px;line-height:2;white-space:nowrap}

.article-body .book-base-and-troops .book-base-attributes td,.article-body .book-base-and-troops .book-troop-options td{vertical-align:middle;padding-top:13px;padding-bottom:13px;line-height:2}

/* All book badges share the original compact recommendation dimensions. */
.article-body.military-books-guide .strategy-recommended,.article-body.military-books-guide .book-usable{display:inline-block;box-sizing:content-box;min-width:0;width:auto;height:auto;padding:1px 5px;margin-left:5px;font-size:10px;font-weight:500;line-height:1.5;border-width:1px;border-style:solid;border-radius:3px;white-space:nowrap;vertical-align:middle}
.article-body.military-books-guide .strategy-recommended{border-color:#e2cf99}
.article-body.military-books-guide .book-usable{border-color:#b7b0a2}
.military-books-guide .book-troop-options img{width:24px;height:24px;vertical-align:middle;object-fit:contain;margin-right:5px}

.book-troop-list,.book-base-attributes .book-base-options{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.book-troop-item,.book-base-attributes .book-base-options>span{display:flex;align-items:center;gap:9px;min-height:26px;line-height:1.5}
.military-books-guide .book-troop-item img,.military-books-guide .book-base-options>span>img{display:block;width:22px;height:22px;object-fit:contain;margin:0;flex-shrink:0}
.article-body.military-books-guide .book-troop-options td,.article-body.military-books-guide .book-base-attributes td{padding-top:16px;padding-bottom:16px;vertical-align:middle}

.book-selection-example.book-three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.article-body .book-three-columns>.table-scroll{min-width:0;margin:0}
.article-body.military-books-guide .book-three-columns table{min-width:0;width:100%;table-layout:fixed}
.article-body.military-books-guide .book-three-columns th,.article-body.military-books-guide .book-three-columns td{padding:10px 9px}
.book-three-columns figure{min-width:0}
.article-body .book-three-columns figure img{max-width:100%;margin:0 auto}
.book-three-columns figcaption{max-width:100%;font-size:12px}
@media(max-width:900px){.book-selection-example.book-three-columns{grid-template-columns:minmax(0,1fr)}.book-three-columns figure{height:auto}.article-body .book-three-columns figure img{width:100%;height:auto;max-width:280px}.book-three-columns figcaption{max-width:280px;margin-left:auto;margin-right:auto}}

/* Equal-sized guide columns; keep the screenshot proportional inside its panel. */
@media(min-width:901px){
 .book-selection-example.book-three-columns{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
 .article-body .book-three-columns>.table-scroll{height:100%;display:flex;align-items:stretch}
 .article-body.military-books-guide .book-three-columns>.table-scroll>table{height:100%;margin:0}
 .book-three-columns figure{height:auto;min-height:0;display:flex;flex-direction:column;margin:0;background:#efe6d2;border:1px solid #c7b99b;box-sizing:border-box;overflow:hidden}
 .book-three-columns figcaption{margin:0;padding:11px 10px;border-left:0;border-bottom:1px solid #c7b99b;border-radius:0;flex:0 0 auto;max-width:none}
 .article-body .book-three-columns figure img{display:block;flex:1 1 0;min-height:0;height:0;width:100%;max-width:none;object-fit:contain;object-position:center;margin:0;border:0;border-radius:0}
 .article-body.military-books-guide .book-three-columns table thead th{height:42px;box-sizing:border-box}
}

/* Compact the entire comparison rather than stretching sparse rows. */
@media(min-width:901px){
 .book-selection-example.book-three-columns{width:100%;max-width:1160px;margin:18px auto;gap:16px}
 .article-body.military-books-guide .book-three-columns th,.article-body.military-books-guide .book-three-columns td{padding:9px 10px}
 .book-three-columns .book-troop-list,.book-three-columns .book-base-options{gap:6px}
 .book-three-columns .book-troop-item,.book-three-columns .book-base-options>span{min-height:23px;gap:7px}
 .article-body.military-books-guide .book-three-columns .book-troop-options td,.article-body.military-books-guide .book-three-columns .book-base-attributes td{padding-top:10px;padding-bottom:10px;line-height:1.5}
 .book-three-columns table img[src*="general_"]{width:24px;height:24px}
 .article-body.military-books-guide .book-three-columns table thead th{height:38px}
}

/* Fixed badge boxes remove glyph-width differences between the two labels. */
.article-body.military-books-guide .strategy-recommended,.article-body.military-books-guide .book-usable{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;min-width:32px;height:19px;padding:0;font-family:inherit;font-size:10px;font-weight:500;line-height:15px;letter-spacing:0;border-width:1px;flex-shrink:0}
.article-body.military-books-guide .military-book-comparison .strategy-recommended{width:auto;min-width:32px;padding:0 5px}

.eternal-book-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:18px 0}
.eternal-book-selection>.table-scroll{min-width:0;margin:0}
.article-body.military-books-guide .eternal-book-selection th{background:#e6cecc;color:#804947}
.article-body.military-books-guide .eternal-book-selection tbody tr:nth-child(even)>td{background:#f5ece9}
.eternal-book-selection .book-troop-list{gap:10px}
.eternal-book-selection .book-troop-item{min-height:26px}
@media(max-width:900px){.eternal-book-selection{grid-template-columns:minmax(0,1fr)}}

.article-body.military-books-guide .book-horizontal-costs{min-width:1000px}
.article-body.military-books-guide .book-horizontal-costs th,.article-body.military-books-guide .book-horizontal-costs td{white-space:nowrap;text-align:center;padding:9px 6px}

.article-body.military-books-guide .eternal-book-selection.book-three-columns table th{background:#e4cdca;color:#77433f}
.article-body.military-books-guide .eternal-book-selection.book-three-columns table td{background:#f4e9e5;border-color:#d2bbb5}
.article-body.military-books-guide .eternal-book-selection.book-three-columns table tbody tr:nth-child(even)>td{background:#ecdcd6}
.eternal-book-selection.book-three-columns figure{background:#ecdcd6;border-color:#c7aaa2}
.eternal-book-selection.book-three-columns figcaption{background:#e4cdca;color:#77433f;border-color:#c7aaa2}
@media(min-width:901px){.eternal-book-selection.book-three-columns{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}}
@media(max-width:900px){.eternal-book-selection.book-three-columns{grid-template-columns:minmax(0,1fr)}}

.article-body.military-books-guide .book-horizontal-costs{table-layout:auto}
.article-body.military-books-guide .book-horizontal-costs th,.article-body.military-books-guide .book-horizontal-costs td{width:auto;min-width:58px}

.article-body.military-books-guide .book-horizontal-costs{width:max-content;min-width:100%;table-layout:auto}
.article-body.military-books-guide .book-horizontal-costs th,.article-body.military-books-guide .book-horizontal-costs td{width:auto;min-width:78px;padding:11px 14px;box-sizing:border-box;white-space:nowrap}
.book-cost-scroller{max-width:100%;overflow-x:auto;padding-bottom:7px;scrollbar-width:thin;scrollbar-color:#b9a786 #eee8dc}
.book-cost-scroller::-webkit-scrollbar{height:7px}
.book-cost-scroller::-webkit-scrollbar-track{background:#eee8dc;border-radius:5px}
.book-cost-scroller::-webkit-scrollbar-thumb{background:#b9a786;border-radius:5px}
.book-cost-scroller:focus-visible{outline:2px solid #b9a786;outline-offset:3px}

.treasure-guide>h2{background:#f0e5d1;color:#735732;border-left:4px solid #b18e53;padding:10px 14px}
.article-body.treasure-guide table{width:100%;table-layout:fixed}
.article-body.treasure-guide th,.article-body.treasure-guide td{width:calc(100% / var(--treasure-columns));vertical-align:middle;padding:11px 12px}
.article-body.treasure-guide th{background:#e7dac2;color:#6d5230}
.treasure-guide img{object-fit:contain;vertical-align:middle;margin-right:5px}
.treasure-guide tr[data-treasure-quality="7"]>td{background:#f4e7c8}
.treasure-guide tr[data-treasure-quality="6"]>td{background:#f0dad7}
.treasure-guide tr[data-treasure-quality="5"]>td{background:#f3e2ce}
.treasure-guide tr[data-treasure-quality="4"]>td{background:#e9dfef}
.treasure-guide tr[data-treasure-quality="3"]>td{background:#dfe9f1}
.treasure-level-toggle{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border:0;padding:0;background:none;color:#856235;font:inherit;font-weight:600;cursor:pointer}
.article-body .treasure-level-detail>td{background:#f8f5ee;color:#333;padding:12px 16px}
.treasure-level-detail .table-scroll{margin:0}

.article-body.treasure-guide .treasure-exclusive-table th{background:#dfcdad;color:#684c2a}
.treasure-exclusive-table .treasure-level-toggle{color:#76542c}
.article-body.treasure-guide .treasure-exclusive-table .treasure-level-detail>td{background:#faf6ef;color:#41382b}

/* The treasure artwork gets a backing; the row stays neutral. */
.treasure-exclusive-table .treasure-level-toggle>img{width:32px;height:32px;padding:4px;box-sizing:content-box;object-fit:contain;background:radial-gradient(circle at 45% 35%,#f0dfba,#c4a77b);border:1px solid #b99a6b;border-radius:5px;margin-right:6px}

.article-body.treasure-guide .treasure-grade-ranges{min-width:960px}
.treasure-grade-ranges th,.treasure-grade-ranges td{white-space:nowrap;font-variant-numeric:tabular-nums}
.treasure-grade-ranges .strategy-recommended{margin-left:5px}


.article-body.treasure-guide .treasure-grade-ranges .treasure-recommended-heading{background:#fff;color:inherit}
.treasure-grade-ranges .treasure-recommended-heading img{vertical-align:middle;margin-right:4px}

.article-body.treasure-guide .treasure-grade-transposed{table-layout:fixed;min-width:850px}
.article-body.treasure-guide .treasure-grade-transposed th,.article-body.treasure-guide .treasure-grade-transposed td{width:16.6667%;box-sizing:border-box;background:#fff;text-align:center;vertical-align:middle}
.article-body.treasure-guide .treasure-grade-transposed th:nth-child(2){background:#efd9ac;color:#795419}
.article-body.treasure-guide .treasure-grade-transposed th:nth-child(3){background:#e5d8eb;color:#705083}
.article-body.treasure-guide .treasure-grade-transposed th:nth-child(4){background:#d7e4ef;color:#3e6484}
.article-body.treasure-guide .treasure-grade-transposed th:nth-child(5){background:#deead8;color:#4e6c3e}
.article-body.treasure-guide .treasure-grade-transposed th:nth-child(6){background:#e9e9e7;color:#62625c}

.treasure-stat-aligned{display:inline-grid;grid-template-columns:18px 2em 42px;align-items:center;gap:8px;text-align:left;vertical-align:middle}
.treasure-stat-aligned>img{width:18px;height:18px;margin:0}
.treasure-stat-badge{display:flex;align-items:center}
.treasure-stat-badge .strategy-recommended{margin-left:0}

.treasure-grade-transposed td small{font-size:11px;color:#8c8274;line-height:1.6}

.appearance-guide>h2{padding:10px 14px;background:#ece1d0;border-left:4px solid #a98955;color:#735637}
.article-body.appearance-guide table{width:100%;table-layout:fixed}
.article-body.appearance-guide th,.article-body.appearance-guide td{width:calc(100% / var(--appearance-columns));padding:12px 14px;vertical-align:middle}
.article-body.appearance-guide th{background:#dfcfb4;color:#6c5030}
.article-body.appearance-guide tbody tr:nth-child(even)>td{background:#f7f1e7}
.appearance-guide img{vertical-align:middle;object-fit:contain;margin-right:6px}

.article-body.appearance-guide{max-width:1060px}
.article-body.appearance-guide>h2{background:#eee5d7;border-left-width:3px;padding:9px 13px}
.article-body.appearance-guide table td:first-child{font-weight:600}
.article-body.appearance-guide table th,.article-body.appearance-guide table td{padding:12px 14px;line-height:1.6}
.appearance-guide img{margin:0 6px 0 0}
.appearance-progression{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 18px;border-top:1px solid #d9cbb3;border-bottom:1px solid #d9cbb3;background:#faf7f0}
.appearance-step{display:flex;flex-direction:column;gap:7px;padding:16px 20px;border-right:1px solid #dfd5c3}
.appearance-step:last-child{border-right:0;background:#f0e5cd}
.appearance-step-label{font-size:13px;color:#756149}
.appearance-step strong{font-size:26px;color:#765528;font-variant-numeric:tabular-nums;line-height:1.2}
.appearance-step small{font-size:12px;color:#8c7c66}
@media(max-width:600px){.appearance-progression{grid-template-columns:minmax(0,1fr)}.appearance-step{border-right:0;border-bottom:1px solid #dfd5c3}.appearance-step:last-child{border-bottom:0}}

.article-body.appearance-guide .appearance-pairings{min-width:780px}
.article-body.appearance-guide .appearance-pairings th,.article-body.appearance-guide .appearance-pairings td{width:20%;white-space:nowrap;text-align:center;font-weight:500;padding:10px 8px}
.appearance-pairings img{display:block;margin:0 auto 7px;object-fit:contain}
.appearance-pairing-scroll{overflow-x:auto;scrollbar-width:thin}

/* Appearance page: light catalogue, clear figures, fewer competing frames. */
.article-body.appearance-guide{max-width:1120px;color:#3b352d}
.appearance-gallery{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:0;overflow-x:auto;margin:0 0 28px;padding:16px 0;border-top:1px solid #dfd5c4;border-bottom:1px solid #dfd5c4;scrollbar-width:thin}
.appearance-gallery-item{text-align:center;padding:0 12px;border-right:1px solid #e8e1d6}
.appearance-gallery-item:last-child{border-right:0}
.appearance-gallery-hero{font-size:14px;font-weight:650;white-space:nowrap}
.appearance-gallery-hero img{display:block;width:48px;height:48px;margin:0 auto 7px;object-fit:contain}
.appearance-gallery-weapon{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px;color:#857252;font-size:12px;white-space:nowrap}
.appearance-gallery-weapon img{width:24px;height:24px;margin:0;object-fit:contain}
.appearance-explanation{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:26px;align-items:start;margin-bottom:26px}
.appearance-benefits,.appearance-calculation{min-width:0}
.appearance-explanation h2,.appearance-explanation h3{margin:0 0 14px;padding:0 0 10px;border:0;border-bottom:2px solid #c3a66d;background:none;color:#6c5131;font-size:18px}
.article-body.appearance-guide .appearance-benefits .table-scroll{margin:0}
.article-body.appearance-guide .appearance-benefits table{min-width:0;margin:0}
.article-body.appearance-guide .appearance-benefits th{background:#f0e8da;font-size:12px;padding:9px 10px}
.article-body.appearance-guide .appearance-benefits td{padding:12px 10px;font-size:13px;background:#fff;border-color:#e2dbcf;line-height:1.7}
.appearance-benefits td img{width:18px;height:18px;margin-right:3px}
.appearance-calculation>p{font-size:13px;line-height:1.8;color:#786850;margin:0 0 12px}
.appearance-calculation .appearance-progression{display:block;margin:0 0 13px;border:0;background:none}
.appearance-calculation .appearance-step{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 0;border:0;border-bottom:1px solid #e4dccd;background:none}
.appearance-calculation .appearance-step:last-child{background:#f5eddb;padding:12px;border-bottom:0}
.appearance-calculation .appearance-step strong{grid-column:2;grid-row:1 / span 2;font-size:24px}
.appearance-calculation .appearance-step small{font-size:11px}
.appearance-guide>h2{padding:0 0 10px;background:none;border:0;border-bottom:1px solid #d8c9ae;font-size:18px}
.appearance-guide>ul{font-size:13px;line-height:1.9;padding-left:20px}
@media(max-width:800px){.appearance-explanation{grid-template-columns:minmax(0,1fr);gap:24px}.appearance-gallery{margin-bottom:22px}}

.appearance-explanation.appearance-aligned{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;margin-bottom:12px}
.appearance-aligned>section{display:flex;flex-direction:column;min-width:0}
.appearance-aligned>section>.table-scroll{flex:1;margin:0;display:flex}
.article-body.appearance-guide .appearance-aligned table{height:100%;width:100%;margin:0;min-width:0;table-layout:fixed}
.article-body.appearance-guide .appearance-aligned th{height:40px;box-sizing:border-box;background:#f0e8da;color:#6c5131;font-size:12px;padding:9px 10px}
.article-body.appearance-guide .appearance-aligned td{padding:13px 10px;vertical-align:middle;background:#fff;line-height:1.7;font-size:13px;border-color:#e2dbcf}
.article-body.appearance-guide .appearance-aligned tbody tr:nth-child(2)>td{background:#f8f3e9}
.appearance-calculation td .appearance-step-label{display:block;font-size:13px}
.appearance-calculation td small{display:block;font-size:11px;color:#8c7c66;margin-top:4px}
.appearance-calculation td strong{font-size:23px;color:#765528;font-variant-numeric:tabular-nums}
.appearance-guide .appearance-example-note{font-size:13px;color:#786850;margin:0 0 14px}
.appearance-guide .appearance-total-note{font-size:13px;color:#786850;margin:0 0 26px}
@media(max-width:800px){.appearance-explanation.appearance-aligned{grid-template-columns:minmax(0,1fr)}.appearance-aligned>section>.table-scroll{display:block}.article-body.appearance-guide .appearance-aligned table{height:auto}}

.tactics-guide>h2{padding:10px 14px;background:#eee5d6;border-left:3px solid #ad8952;color:#725536}
.article-body.tactics-guide th{background:#e6d8bf;color:#6a5130;vertical-align:middle}
.tactics-guide img{vertical-align:middle;object-fit:contain;margin-right:4px}
.article-body.tactics-guide .tactics-overview{width:100%;min-width:950px;table-layout:fixed}
.tactics-overview>thead th:nth-child(2){width:20%}
.tactics-volume-toggle{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.tactics-overview>tbody>tr[data-tactics-volume="1"]>td{background:#f1ede5}
.tactics-overview>tbody>tr[data-tactics-volume="2"]>td{background:#e7ecdb}
.tactics-overview>tbody>tr[data-tactics-volume="3"]>td{background:#dfe9ef}
.tactics-overview>tbody>tr[data-tactics-volume="4"]>td{background:#e8dff0}
.tactics-overview>tbody>tr[data-tactics-volume="5"]>td{background:#f2e3cb}
.tactics-overview>tbody>tr[data-tactics-volume="6"]>td{background:#efdad6}
.article-body .tactics-volume-detail>td{padding:12px 16px;color:#3b3429;background:#faf7f1}
.tactics-volume-detail .table-scroll{margin:10px 0}
.tactics-volume-detail table{width:100%;min-width:800px;table-layout:fixed}
.tactics-volume-detail td{color:#3b3429;line-height:1.9}

.tactics-volume-detail td small{display:inline-block;margin-top:6px;padding-top:4px;border-top:1px solid #e3dacb;font-size:11px;line-height:1.5;color:#8d7d65}

.article-body.tactics-guide table{width:100%;table-layout:fixed}
.article-body.tactics-guide table th,.article-body.tactics-guide table td{width:calc(100% / var(--tactics-columns));box-sizing:border-box;vertical-align:middle}
.article-body.tactics-guide .tactics-overview>thead th:nth-child(2){width:calc(100% / var(--tactics-columns))}
.rune-category[data-rune-quality="exclusive"]{--rune-tint:#e9dce9;--rune-ink:#754e77}
.rune-category[data-rune-quality="immortal"]{--rune-tint:#f1e1bb;--rune-ink:#826025}
.rune-category[data-rune-quality="eternal"]{--rune-tint:#ecd5d2;--rune-ink:#874740}
.rune-category[data-rune-quality="legendary"]{--rune-tint:#f0e0cc;--rune-ink:#896137}
.rune-category[data-rune-quality="epic"]{--rune-tint:#e6dcef;--rune-ink:#745189}
.rune-category[data-rune-quality]>summary{background:var(--rune-tint);color:var(--rune-ink);padding-left:12px;border-left:3px solid var(--rune-ink)}
.rune-category[data-rune-quality] .rune-table th{background:var(--rune-tint);color:var(--rune-ink)}
.rune-category[data-rune-quality] .rune-table tbody tr:nth-child(even)>td{background:#faf7f2}

/* Shared heading treatment across every guide. */
.article-body h2,.article-body>h2,.article-body section>h2,.article-body .appearance-explanation h2{background:#f0e7d8;color:#705436;border:0;border-left:3px solid #b4915c;border-bottom:1px solid #ded0b8;padding:10px 14px;font-size:20px;line-height:1.5;margin-top:28px;margin-bottom:16px}
.article-body h3,.article-body .appearance-explanation h3{background:transparent;color:#705436;border:0;border-bottom:1px solid #ded0b8;padding:0 0 8px;font-size:17px;line-height:1.5;margin-top:22px;margin-bottom:14px}
.article-body h4{color:#705436}
.rune-category[data-rune-quality="exclusive"]{--rune-tint:#f1e1bb;--rune-ink:#826025}

.article-body.artifact-guide table{width:100%;table-layout:fixed}
.article-body.artifact-guide th,.article-body.artifact-guide td{width:calc(100% / var(--artifact-columns));box-sizing:border-box;vertical-align:middle;padding:11px 13px;line-height:1.7}
.article-body.artifact-guide th{background:#e7dcc9;color:#6d5535}
.article-body.artifact-guide tbody tr:nth-child(even)>td{background:#f8f4ec}
.artifact-guide img{vertical-align:middle;object-fit:contain;margin-right:5px}
.artifact-guide img[src*="super_"]{width:30px;height:30px;padding:3px;background:#f0e6d1;border:1px solid #d8c5a2;border-radius:4px}
.article-body.artifact-guide td:first-child{white-space:nowrap}
.artifact-guide>details{margin:16px 0;border:1px solid #d8cbb5;border-radius:4px;overflow:hidden}
.artifact-guide>details>summary{padding:11px 14px;background:#f0e8d9;color:#735735;font-weight:600;cursor:pointer}
.artifact-guide>details>.table-scroll{margin:12px}
@media(max-width:760px){.article-body.artifact-guide table{min-width:700px}}

.artifact-effect-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px}
.artifact-effect-list>span{white-space:nowrap}
.article-body.artifact-guide .artifact-compact-comparison th,.article-body.artifact-guide .artifact-compact-comparison td{padding:12px 14px}
@media(max-width:1000px){.artifact-effect-list{grid-template-columns:minmax(0,1fr)}}

.artifact-mode-tabs{display:flex;gap:6px;border-bottom:2px solid #c4ac7f;margin:22px 0 0}
.artifact-mode-tabs button{padding:9px 24px;border:1px solid #d6c7ad;border-bottom:0;border-radius:4px 4px 0 0;background:#f5f0e6;color:#837052;font:inherit;cursor:pointer}
.artifact-mode-tabs button[aria-selected="true"]{background:#dcccaa;color:#654a25;font-weight:700}
.artifact-mode-panel[hidden]{display:none}
.artifact-mode-panel>.table-scroll{margin:14px 0}
.article-body.artifact-guide .artifact-mode-panel table{min-width:850px;table-layout:fixed;width:100%}
.article-body.artifact-guide .artifact-mode-panel th,.article-body.artifact-guide .artifact-mode-panel td{width:calc(100% / var(--artifact-columns));text-align:center;vertical-align:middle;white-space:nowrap}

.article-body.artifact-guide #artifact-panel-1 table{min-width:1200px}

.article-body.artifact-guide .artifact-strength-summary,.article-body.artifact-guide .artifact-refinement-summary{width:100%;table-layout:fixed}
.article-body.artifact-guide .artifact-strength-summary th,.article-body.artifact-guide .artifact-strength-summary td,.article-body.artifact-guide .artifact-refinement-summary th,.article-body.artifact-guide .artifact-refinement-summary td{text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}
.article-body.artifact-guide .artifact-strength-summary{min-width:660px}
.artifact-strength-summary td{line-height:2.1}
.artifact-strength-summary td strong{display:inline-block;margin-top:5px;font-size:17px;color:#76562c}
.article-body.artifact-guide .artifact-refinement-summary{min-width:1200px}
.artifact-name-aligned{display:inline-flex;align-items:center;gap:7px;text-align:left;min-width:135px;white-space:nowrap}
.artifact-name-aligned img{flex-shrink:0;margin:0}

/* A quieter artifact list with natural row heights. */
.article-body.artifact-guide .artifact-strength-summary{max-width:none;min-width:620px}
.article-body.artifact-guide .artifact-strength-summary td{line-height:1.6;padding:11px 14px}
.article-body.artifact-guide .artifact-strength-summary tbody tr:nth-child(even)>td{background:#f8f4ec}
.article-body.artifact-guide .artifact-strength-summary td:first-child{text-align:left}
.article-body.artifact-guide .artifact-refinement-summary td{padding:11px 10px;line-height:1.6}

.article-body.artifact-guide .artifact-refinement-summary{min-width:0;width:100%;max-width:880px;table-layout:fixed}
.article-body.artifact-guide .artifact-refinement-summary th,.article-body.artifact-guide .artifact-refinement-summary td{padding:10px 8px}
.artifact-refinement-summary .artifact-name-aligned{min-width:0;gap:5px}
@media(max-width:760px){.article-body.artifact-guide .artifact-refinement-summary{min-width:720px}}

.artifact-comparison-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch;margin:22px 0 26px}
.artifact-comparison-column{display:flex;flex-direction:column;min-width:0}
.article-body .artifact-comparison-column>h2{margin:0 0 14px}
.artifact-comparison-column>.table-scroll{display:flex;flex:1;min-width:0;margin:0;overflow-x:auto}
.article-body.artifact-guide .artifact-comparison-column table{width:100%;max-width:none;height:100%;margin:0;min-width:0;table-layout:fixed}
.article-body.artifact-guide .artifact-comparison-column th,.article-body.artifact-guide .artifact-comparison-column td{padding:10px 7px;vertical-align:middle}
.article-body.artifact-guide .artifact-comparison-column th{height:42px;box-sizing:border-box}
.artifact-comparison-column .artifact-name-aligned{min-width:0;white-space:normal;gap:4px}
.artifact-comparison-column .artifact-name-aligned img{width:24px;height:24px;flex-shrink:0}
.article-body.artifact-guide .artifact-comparison-column .artifact-refinement-summary td:first-child{white-space:normal}
@media(max-width:900px){.artifact-comparison-columns{grid-template-columns:minmax(0,1fr);gap:22px}.artifact-comparison-column>.table-scroll{display:block}.article-body.artifact-guide .artifact-comparison-column table{height:auto}.article-body.artifact-guide .artifact-comparison-column .artifact-refinement-summary{min-width:700px}}

@media(min-width:901px){.artifact-comparison-columns{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}}

/* All artifact rows use the same striping; the last artifact is not a total. */
.article-body.artifact-guide table tbody tr:nth-child(even)>td{background:#f8f4ec;font-weight:400;border-top:1px solid #c7cbd0}
.artifact-comparison-columns.artifact-three-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.article-body.artifact-guide .artifact-three-columns table th,.article-body.artifact-guide .artifact-three-columns table td{width:calc(100% / var(--artifact-columns));box-sizing:border-box;text-align:center}
.article-body.artifact-guide .artifact-three-columns .artifact-refinement-summary{min-width:580px}
.article-body.artifact-guide .artifact-three-columns .artifact-threshold-summary{min-width:500px}
.article-body.artifact-guide .artifact-three-columns td:first-child{white-space:normal}
.artifact-refinement-advice{font-size:13px;line-height:1.9;color:#766448;margin:8px 0 24px}
@media(max-width:900px){.artifact-comparison-columns.artifact-three-columns{grid-template-columns:minmax(0,1fr)}}

.article-body.artifact-guide .artifact-three-columns table th,.article-body.artifact-guide .artifact-three-columns table td{text-align:left}
.artifact-three-columns .artifact-name-aligned{text-align:left;justify-content:flex-start}

/* Artifact names and complete effects never wrap; overflow stays in each table. */
.article-body.artifact-guide .artifact-three-columns table th,.article-body.artifact-guide .artifact-three-columns table td{white-space:nowrap;text-align:left;font-weight:400}
.article-body.artifact-guide .artifact-three-columns table th{font-weight:600}
.article-body.artifact-guide .artifact-three-columns tbody tr>td{background:#fff;border-top:1px solid #c7cbd0}
.article-body.artifact-guide .artifact-three-columns tbody tr:nth-child(even)>td{background:#f8f4ec}
.artifact-three-columns .artifact-name-aligned{display:inline-flex;align-items:center;min-width:0;white-space:nowrap;gap:6px}
.article-body.artifact-guide .artifact-three-columns .artifact-strength-summary{min-width:430px}
.article-body.artifact-guide .artifact-three-columns .artifact-refinement-summary{min-width:900px}
.article-body.artifact-guide .artifact-three-columns .artifact-threshold-summary{min-width:720px}
.artifact-three-columns .table-scroll{overflow-x:auto;scrollbar-width:thin}

/* Artifact comparison has a single identity column and no desktop scrollers. */
.article-body.artifact-guide .artifact-unified-wrap{overflow:visible;width:100%;max-width:none;margin:16px 0}
.article-body.artifact-guide table.artifact-unified{width:100%;min-width:0;max-width:none;table-layout:fixed;margin:0}
.article-body.artifact-guide table.artifact-unified th,.article-body.artifact-guide table.artifact-unified td{width:auto;text-align:left;white-space:nowrap;vertical-align:middle;box-sizing:border-box;padding:10px 7px;font-size:12px;font-weight:400;line-height:1.6}
.article-body.artifact-guide table.artifact-unified th{font-weight:600;background:#e9deca;color:#705333}
.article-body.artifact-guide table.artifact-unified .artifact-group-head th:first-child{width:18%}
.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(2){width:13%}
.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(3){width:32%}
.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(4){width:37%}
.article-body.artifact-guide table.artifact-unified tbody tr>td{background:#fff;border-top:1px solid #d7d0c4;font-weight:400}
.article-body.artifact-guide table.artifact-unified tbody tr:nth-child(even)>td{background:#f8f4ec}
.artifact-unified-name{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.artifact-unified-name img{margin:0}
.artifact-unified img[src*="view_hero_icon"]{width:16px;height:16px;margin-right:3px}
@media(max-width:1100px){
 .article-body.artifact-guide table.artifact-unified,.artifact-unified tbody{display:block}
 .artifact-unified thead{display:none}
 .article-body.artifact-guide table.artifact-unified tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 16px;border:1px solid #d7cab2;border-radius:4px;overflow:hidden}
 .article-body.artifact-guide table.artifact-unified tbody td{display:flex;justify-content:space-between;align-items:center;gap:8px;white-space:nowrap;width:auto;padding:9px 12px;border:0}
 .article-body.artifact-guide table.artifact-unified tbody td:first-child{grid-column:1 / -1;display:block;background:#eee2cd;font-weight:600;padding:11px 12px}
 .artifact-unified tbody td:not(:first-child)::before{content:attr(data-label);font-size:11px;color:#8c7a5d}
 .article-body.artifact-guide table.artifact-unified tbody td:nth-child(2),.article-body.artifact-guide table.artifact-unified tbody td:nth-child(n+8){grid-column:1 / -1;border-top:1px solid #e2d8c7}
}

/* Ten equal data columns; grouped headers are sized by their column spans. */
@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:first-child,.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(2){width:10%}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(3){width:50%}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(4){width:30%}
 .article-body.artifact-guide table.artifact-unified tbody td{width:10%;padding-left:6px;padding-right:6px}
 .artifact-unified-name{gap:4px;font-size:11px}
 .artifact-unified-name img{width:22px;height:22px;padding:2px}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(2){background:#ead9b4}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(3),.article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(-n+5){background:#dce6ed;color:#486276}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(4),.article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(n+6){background:#e6ddec;color:#70547f}
 .article-body.artifact-guide table.artifact-unified tbody td:nth-child(2),.article-body.artifact-guide table.artifact-unified tbody td:nth-child(3),.article-body.artifact-guide table.artifact-unified tbody td:nth-child(8){border-left:2px solid #c1b29a}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(n+2){border-left:2px solid #c1b29a}
}

/* Allocate room for names and effects; numeric-only columns stay narrow. */
@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:first-child,.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(2),.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(3),.article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(4),.article-body.artifact-guide table.artifact-unified tbody td{width:auto}
 .article-body.artifact-guide table.artifact-unified td:first-child{padding-right:12px}
 .artifact-unified-name{font-size:12px;gap:6px}
 .artifact-unified-name img{width:22px;height:22px;padding:2px;flex-shrink:0}
}

@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-unified thead th{padding:7px 8px;line-height:1.4;height:34px}
 .article-body.artifact-guide table.artifact-unified tbody td{padding:8px;font-size:12px;line-height:1.5}
 .artifact-unified-name{gap:7px;font-size:12px}
 .artifact-unified-name img{width:24px;height:24px;padding:2px;border-radius:3px}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(2){background:#ecdfc2}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(3),.article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(-n+5){background:#e2eaf0;color:#4b6577}
 .article-body.artifact-guide table.artifact-unified .artifact-group-head th:nth-child(4),.article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(n+6){background:#ebe3f0;color:#715a7d}
 .article-body.artifact-guide table.artifact-unified tbody tr:nth-child(even)>td{background:#faf8f3}
}

@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-unified{border-collapse:collapse}
 .article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:first-child,
 .article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(6){border-left:2px solid #c1b29a}
 .article-body.artifact-guide table.artifact-unified thead tr:nth-child(2) th:nth-child(6){background:#ebe3f0}
}

.article-body.artifact-guide table.artifact-unified thead th{text-align:center}

@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-inline-effects .artifact-group-head th:nth-child(n+4){background:#ebe3f0;color:#715a7d}
 .article-body.artifact-guide table.artifact-inline-effects tbody td{font-size:11px;padding-left:5px;padding-right:5px}
 .artifact-inline-effects tbody td:nth-child(n+3):nth-child(-n+7) img{width:14px;height:14px;margin-right:2px}
}

/* Center complete icon-and-text groups without separating their contents. */
.artifact-aligned-effect{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.article-body.artifact-guide .artifact-aligned-effect img{margin:0;flex-shrink:0;vertical-align:middle}
@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-inline-effects tbody td{text-align:center;vertical-align:middle}
 .article-body.artifact-guide table.artifact-inline-effects tbody td:first-child{padding-left:5px;padding-right:5px}
 .artifact-inline-effects .artifact-unified-name{align-items:center;justify-content:center}
}

/* Only refinement attributes are centered; other data stays left aligned. */
@media(min-width:1101px){
 .article-body.artifact-guide table.artifact-inline-effects tbody td{text-align:left}
 .article-body.artifact-guide table.artifact-inline-effects tbody td:nth-child(n+3):nth-child(-n+7){text-align:center}
 .artifact-inline-effects .artifact-unified-name{justify-content:flex-start}
}

/* Compact lord equipment comparison, with shared part labels. */
.article-body.lord-equipment-guide table{width:100%;table-layout:fixed}
.article-body.lord-equipment-guide table th,.article-body.lord-equipment-guide table td{vertical-align:middle;padding:10px 12px}
.article-body.lord-equipment-guide table img{vertical-align:middle;margin-right:5px}
.article-body.lord-equipment-guide table:nth-of-type(1){margin:0}
.lord-equipment-guide .table-scroll:nth-of-type(n+2) thead th:nth-last-child(3){background:#eedbd8;color:#824b47}
.lord-equipment-guide .table-scroll:nth-of-type(n+2) thead th:nth-last-child(2){background:#efe1bf;color:#795d2b}
.lord-equipment-guide .table-scroll:nth-of-type(n+2) thead th:last-child{background:#e7deef;color:#725487}
@media(min-width:1000px){.article-body.lord-equipment-guide table td{white-space:nowrap}}
@media(max-width:600px){.article-body.lord-equipment-guide table th,.article-body.lord-equipment-guide table td{padding:8px 5px;font-size:12px}.article-body.lord-equipment-guide table{table-layout:auto}}

.lord-parts-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px;padding:10px 0;border-top:1px solid #ddd5c8;border-bottom:1px solid #ddd5c8}
.lord-part-item{display:flex;flex-direction:column;gap:3px;padding:0 12px;border-right:1px solid #e4ddd2;font-size:13px}
.lord-part-item:last-child{border-right:0}
.lord-part-item strong{display:flex;align-items:center;gap:6px;white-space:nowrap}
.lord-part-item strong img{width:22px;height:22px;object-fit:contain;margin:0}
.lord-part-item>span{color:#756650;font-size:12px;white-space:nowrap}
@media(max-width:700px){.lord-parts-compact{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}.lord-part-item:nth-child(2){border-right:0}}

.lord-level-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 14px;background:#f3eadb;border:1px solid #d6c5a8;margin:12px 0}
.lord-level-controls label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-weight:600;color:#705333}
.lord-level-controls input,.lord-level-controls select{font:inherit;padding:5px 7px;border:1px solid #bcab91;border-radius:3px;background:white;color:#333}
.lord-level-controls input{width:68px}
.lord-level-controls input:disabled{background:#eee;color:#999}
.article-body.lord-equipment-guide .lord-calculator table{table-layout:auto}
.article-body.lord-equipment-guide .lord-calculator td:first-child{width:40%}
.article-body.lord-equipment-guide .lord-calculator tbody tr:nth-child(-n+2) td{background:#f6f0e3}

.article-body.lord-equipment-guide .lord-calculator table th,.article-body.lord-equipment-guide .lord-calculator table td{padding:7px 10px;font-size:13px;line-height:1.5}
.article-body.lord-equipment-guide .lord-calculator table td:first-child{width:auto}
.article-body.lord-equipment-guide .lord-calculator .lord-material-row td{background:#f6ecd6;color:#795d2a}
.article-body.lord-equipment-guide .lord-calculator .lord-effect-row td{background:#f1f6f9;color:#344d60}
.article-body.lord-equipment-guide .lord-calculator .lord-effect-row:nth-child(even) td{background:#e8f0f5}
.article-body.lord-equipment-guide .lord-calculator td[rowspan]{width:26%;background:#e5edf2;font-weight:600}
.lord-stat-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.article-body.lord-equipment-guide .lord-calculator .lord-stat-label img{width:18px;height:18px;margin:0;flex-shrink:0}
@media(max-width:600px){.article-body.lord-equipment-guide .lord-calculator table td{white-space:normal;padding:6px;font-size:12px}.lord-stat-label{gap:3px}.article-body.lord-equipment-guide .lord-calculator .lord-stat-label img{width:15px;height:15px}}

.lord-material-total{display:block;margin-top:3px;font-weight:600;color:#795d2a}

.article-body.lord-equipment-guide .lord-calculator{max-width:940px}
.article-body.lord-equipment-guide .lord-calculator table{table-layout:fixed;width:100%}
.article-body.lord-equipment-guide .lord-calculator table th,.article-body.lord-equipment-guide .lord-calculator table td{white-space:normal;padding:7px 9px;width:auto}
.article-body.lord-equipment-guide .lord-calculator .lord-effects-heading th{background:#dfeaf1;color:#405b70}
.article-body.lord-equipment-guide .lord-calculator td[rowspan]{width:auto}
@media(max-width:600px){.article-body.lord-equipment-guide .lord-calculator table th,.article-body.lord-equipment-guide .lord-calculator table td{padding:6px 5px;font-size:12px}}

.article-body.relic-guide>details{margin:10px 0;border:1px solid #d8d2c8;border-radius:3px;overflow:hidden}
.article-body.relic-guide>details>summary{padding:9px 12px;font-size:15px;background:#eee7db;color:#725a3c}
.relic-source{display:inline-block;margin-left:16px;font-size:12px;font-weight:400;color:#70665a}
.article-body.relic-guide>details[data-relic-quality="eternal"]>summary{background:#eedcda;color:#844e49}
.article-body.relic-guide>details[data-relic-quality="legendary"]>summary{background:#efe2c3;color:#80602c}
.article-body.relic-guide>details[data-relic-quality="epic"]>summary{background:#e7ddee;color:#73558a}
.article-body.relic-guide>details[data-relic-quality="rare"]>summary{background:#dfeaf3;color:#4a6983}
.article-body.relic-guide .table-scroll{margin:0}
.article-body.relic-guide table{width:100%;table-layout:auto;margin:0}
.article-body.relic-guide table th,.article-body.relic-guide table td{padding:7px 10px;vertical-align:middle;font-size:13px;line-height:1.8}
.article-body.relic-guide table img{vertical-align:middle;margin-right:5px}
.article-body.relic-guide details[data-relic-quality] table th:first-child{width:44%}
.article-body.relic-guide details[data-relic-quality] table th:nth-last-child(-n+2){width:13%}
.article-body.relic-guide details[data-relic-quality] table td:not(:first-child){white-space:nowrap}
@media(max-width:600px){.relic-source{display:block;margin-left:18px}.article-body.relic-guide table th,.article-body.relic-guide table td{padding:6px;font-size:12px}}

.article-body.relic-guide details[data-relic-quality] > .table-scroll > table{table-layout:fixed}
.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > thead th{width:auto}
.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > thead th:first-child{width:23%}
.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > thead th:nth-child(2){width:16%}
.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > thead th:nth-child(3),.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > thead th:nth-child(4){width:9%}
.article-body.relic-guide details[data-relic-quality] > .table-scroll > table > tbody > tr > td:last-child{white-space:normal;font-size:12px}
.relic-level-toggle{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left;white-space:nowrap}
.relic-level-toggle>span{color:#927344}
.article-body.relic-guide .relic-level-toggle img{margin:0}
.article-body.relic-guide .relic-level-detail[hidden]{display:none}
.article-body.relic-guide .relic-level-detail>td{padding:10px;background:#f5f2ec}
.article-body.relic-guide .relic-level-detail .table-scroll{max-height:370px;overflow-y:auto;max-width:760px}
.article-body.relic-guide .relic-level-detail table{table-layout:fixed}
.article-body.relic-guide .relic-level-detail thead th{position:sticky;top:0;z-index:1;width:auto!important}
@media(max-width:700px){.article-body.relic-guide details[data-relic-quality] > .table-scroll > table{table-layout:auto}.relic-level-toggle{white-space:normal}}

/* Compare all six stages horizontally, without an inner scrolling table. */
.article-body.relic-guide .relic-level-detail .table-scroll{max-height:none;max-width:none;overflow:visible}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix{width:100%;table-layout:fixed;background:#fff}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix th,.article-body.relic-guide .relic-level-detail .relic-stage-matrix td{padding:8px 5px;text-align:center;white-space:nowrap;color:#344d60;font-size:12px;line-height:1.4}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix th{position:static;background:#dfe9ef}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix tbody td{background:#fff}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix tbody tr:nth-child(even) td{background:#edf3f6}
.relic-stage-matrix td strong{display:block;color:#263d4c;font-weight:600}
.relic-stage-matrix td small{display:block;margin-top:3px;font-size:11px;color:#698291}
.article-body.relic-guide .relic-level-detail .relic-stage-matrix td:first-child{font-weight:600;color:#795b35}
@media(max-width:600px){.article-body.relic-guide .relic-level-detail>td{padding:5px}.article-body.relic-guide .relic-level-detail .relic-stage-matrix th,.article-body.relic-guide .relic-level-detail .relic-stage-matrix td{font-size:10px;padding:7px 2px}.relic-stage-matrix td small{font-size:10px}}

.relic-stage-attribute{display:flex;align-items:center;gap:6px;padding:0 2px 8px;color:#344d60;font-size:13px}
.article-body.relic-guide .relic-stage-attribute img{width:18px;height:18px;margin:0}
.relic-stage-attribute>span{margin-left:6px;color:#698291;font-size:12px}

.relic-stage-matrix td .relic-step-materials{color:#88692d;font-size:10px;margin-top:5px;font-weight:400}
.article-body.relic-guide .relic-level-detail>td>p{margin:0 0 10px;padding:8px 10px;background:#efe7d8;color:#715631;font-size:12px;line-height:1.7}
.relic-stage-attribute{flex-wrap:wrap}

.relic-stage-matrix td .relic-step-materials{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px 7px}
.relic-step-materials>span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.article-body.relic-guide .relic-step-materials img{width:18px;height:18px;object-fit:contain;margin:0}

.article-body.castle-guide>details{margin:10px 0;border:1px solid #d6d0c7;border-radius:3px;overflow:hidden}
.article-body.castle-guide>details>summary{padding:9px 12px;font-size:14px;background:#eee7dc;color:#705638}
.article-body.castle-guide>details[data-castle-effect="attack"]>summary{background:#f1dfda;color:#844e42}
.article-body.castle-guide>details[data-castle-effect="defense"]>summary{background:#dfeaf2;color:#47677c}
.article-body.castle-guide>details[data-castle-effect="troops"]>summary{background:#eee3c9;color:#806634}
.article-body.castle-guide>details[data-castle-effect="armor"]>summary{background:#e7deed;color:#725785}
.article-body.castle-guide summary img{vertical-align:middle;margin:0 6px 0 3px}
.article-body.castle-guide .table-scroll{margin:0;overflow:visible}
.article-body.castle-guide table{width:100%;margin:0;min-width:0}
.article-body.castle-guide table th,.article-body.castle-guide table td{font-size:13px;padding:7px 10px;vertical-align:middle;line-height:1.6}
.article-body.castle-guide table td:first-child{white-space:nowrap}
.article-body.castle-guide table img{vertical-align:middle;margin-right:5px}
.article-body.castle-guide .castle-collection-detail table{max-width:650px}
@media(max-width:600px){.article-body.castle-guide table th,.article-body.castle-guide table td{font-size:12px;padding:6px 5px}.article-body.castle-guide table td:first-child{white-space:normal}}

.castle-star-toggle{background:none;border:0;padding:0;font:inherit;color:#745733;cursor:pointer;text-align:left;white-space:nowrap}
.article-body.castle-guide .castle-star-detail[hidden]{display:none}
.article-body.castle-guide .castle-star-detail>td{padding:10px;background:#f3ede2}
.article-body.castle-guide .castle-star-detail table{table-layout:fixed}
.article-body.castle-guide .castle-star-detail th{background:#e8dfcf}
.article-body.castle-guide .castle-star-detail td{background:#fff;white-space:normal;font-size:12px}
.article-body.castle-guide .castle-overview>thead th{background:#e8dfcf;color:#745733}
.article-body.castle-guide .castle-overview>thead th:first-child{width:23%}
.article-body.castle-guide .castle-overview>thead th:nth-child(2),.article-body.castle-guide .castle-overview>thead th:nth-child(3){width:26%}
@media(max-width:600px){.castle-star-toggle{white-space:normal}.article-body.castle-guide .castle-star-detail table{table-layout:auto}}

.article-body.castle-guide .castle-star-detail table{table-layout:auto}
.article-body.castle-guide .castle-star-detail table th,.article-body.castle-guide .castle-star-detail table td{white-space:nowrap;color:#344d60;font-size:12px;padding:8px 5px}
.article-body.castle-guide .castle-star-detail table td:first-child{color:#705638;font-weight:600}
.article-body.castle-guide .castle-upgrade-costs{max-width:1000px;table-layout:fixed}
.article-body.castle-guide .castle-upgrade-costs th{background:#e9dfcb;color:#735635}
.article-body.castle-guide .castle-upgrade-costs th:nth-child(2),.article-body.castle-guide .castle-upgrade-costs th:nth-child(3){background:#e8dff0;color:#725687}
.article-body.castle-guide .castle-upgrade-costs th:nth-child(4),.article-body.castle-guide .castle-upgrade-costs th:nth-child(5){background:#eee0be;color:#7c6031}
.article-body.castle-guide .castle-upgrade-costs td{white-space:nowrap}
@media(max-width:600px){.article-body.castle-guide .castle-star-detail table th,.article-body.castle-guide .castle-star-detail table td{font-size:10px;padding:6px 2px}}

.article-body.castle-guide .castle-upgrade-costs{width:100%;max-width:none;table-layout:fixed}
.article-body.castle-guide .castle-upgrade-costs th,.article-body.castle-guide .castle-upgrade-costs td{width:20%;vertical-align:middle}
.article-body.castle-guide .castle-star-detail table.castle-star-values{width:100%;table-layout:fixed;border-collapse:collapse}
.article-body.castle-guide .castle-star-detail table.castle-star-values th,.article-body.castle-guide .castle-star-detail table.castle-star-values td{width:auto!important;text-align:center;padding:9px 3px;vertical-align:middle;white-space:nowrap;box-sizing:border-box}
.article-body.castle-guide .castle-star-detail table.castle-star-values th:first-child,.article-body.castle-guide .castle-star-detail table.castle-star-values td:first-child{text-align:left;padding-left:7px}
.castle-stars{display:inline-flex;align-items:center;justify-content:center;gap:0;white-space:nowrap;font-size:11px;line-height:1.4;letter-spacing:0}
.castle-stars-yellow{color:#c88b16}
.castle-stars-red{color:#b9413c}
@media(max-width:600px){.castle-star-values .castle-stars{font-size:7px}.article-body.castle-guide .castle-star-detail table.castle-star-values th,.article-body.castle-guide .castle-star-detail table.castle-star-values td{font-size:9px;padding:7px 1px}}

.article-body.castle-guide .castle-overview>tbody>tr[data-castle-stripe="0"]>td{background:#f7f2e8}
.article-body.castle-guide .castle-overview>tbody>tr[data-castle-stripe="1"]>td{background:#edf3f7}
.article-body.castle-guide .castle-overview>tbody>tr>td.castle-enhanced-stat,.article-body.castle-guide .castle-star-detail td.castle-enhanced-stat{background:#e5eee8;color:#35674c;font-weight:600}
.article-body.castle-guide .castle-overview>tbody>tr>td.castle-start-stat{background:#f1e5d0;color:#926328;font-weight:600}
.castle-special-note{display:inline-block;vertical-align:middle;margin-left:7px;padding:1px 5px;border:1px solid #d6bd8c;background:#f4e8ce;color:#89612b;font-size:10px;line-height:1.6;white-space:nowrap;border-radius:3px}
.castle-special-note.castle-higher-note{background:#e3ece5;color:#41694e;border-color:#acc3b2}
.article-body.castle-guide .castle-star-detail table.castle-star-values tbody td{background:#f0f4f7}
.article-body.castle-guide .castle-star-detail table.castle-star-values tbody td:nth-child(even){background:#e8eff3}
.article-body.castle-guide .castle-star-detail table.castle-star-values tbody td.castle-enhanced-stat{background:#e3eee6;color:#35674c}

.article-body.castle-guide .castle-overview>thead th:first-child{width:36%}
.article-body.castle-guide .castle-overview>thead th:nth-child(2),.article-body.castle-guide .castle-overview>thead th:nth-child(3){width:32%}
.castle-goddess-tag{display:inline-block;vertical-align:middle;margin-left:7px;padding:1px 5px;border:1px solid #c9b5d2;border-radius:3px;background:#eee5f2;color:#775784;font-size:10px;line-height:1.6;text-decoration:none;white-space:nowrap}

.article-body.castle-guide .castle-overview>thead th:first-child{width:30%}
.article-body.castle-guide .castle-overview>thead th:nth-child(2),.article-body.castle-guide .castle-overview>thead th:nth-child(3){width:25%}
.article-body.castle-guide .castle-overview>thead th:nth-child(4){width:20%}

.article-body.castle-guide .castle-winter-icon{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-right:6px}

.castle-colour-gallery{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 12px}
.castle-colour-gallery figure{margin:0;padding:7px 12px;background:#faf8f3;border:1px solid #ded5c6;border-radius:3px;text-align:center}
.article-body.castle-guide .castle-colour-gallery img{display:block;width:100px;height:100px;object-fit:contain;margin:0}
.castle-colour-gallery figcaption{font-size:11px;margin-top:4px;color:#725d43}
.castle-colour-gallery figure[data-camp="1"]{border-bottom:3px solid #b8645b}
.castle-colour-gallery figure[data-camp="2"]{border-bottom:3px solid #6689ac}
.castle-colour-gallery figure[data-camp="3"]{border-bottom:3px solid #c0a052}
.castle-colour-gallery figure[data-camp="4"]{border-bottom:3px solid #999b9d}
@media(max-width:600px){.castle-colour-gallery{gap:6px}.castle-colour-gallery figure{padding:5px}.article-body.castle-guide .castle-colour-gallery img{width:65px;height:65px}}

.castle-animation-panel{margin:0 0 12px;max-width:820px}
.castle-animation-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.castle-animation-toolbar button{font:inherit;font-size:12px;padding:3px 10px;border:1px solid #cbbda5;border-radius:3px;background:#f8f4ed;color:#735c3d;cursor:pointer}
.castle-animation-toolbar button.selected{background:#e7d8bc;border-color:#b69b6b}
.castle-animation-toolbar .castle-animation-pause{margin-left:auto}
.castle-animation-views{display:flex;gap:10px}
.castle-animation-views figure{flex:1;min-width:0;margin:0;border:1px solid #d9cfbd;border-radius:3px;background:#faf8f2;text-align:center}
.castle-animation-views canvas{display:block;width:100%;height:230px}
.castle-animation-views figcaption{padding:5px;font-size:12px;color:#725a36;border-top:1px solid #e4dccd}
@media(max-width:600px){.castle-animation-views{gap:5px}.castle-animation-views canvas{height:150px}.castle-animation-toolbar button{padding:3px 7px}}

.castle-animation-panel{max-width:660px}
.castle-animation-toolbar{font-size:12px;font-weight:600;color:#725a36;margin-bottom:6px}
.castle-animation-views{gap:8px}
.castle-animation-views canvas{height:150px}
.castle-animation-views figcaption{font-size:11px;padding:4px}
@media(max-width:600px){.castle-animation-views{gap:4px}.castle-animation-views canvas{height:100px}}

.castle-animation-panel{max-width:1080px}
.castle-animation-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.castle-animation-colour{min-width:0;padding:6px;background:#faf8f2;border:1px solid #ded5c5;border-radius:3px}
.article-body.castle-guide .castle-animation-colour h4{margin:0 0 3px;text-align:center;font-size:11px;color:#796345}
.castle-animation-pair{display:flex;align-items:center;gap:2px}
.castle-animation-pair figure{flex:1;min-width:0;border:0;background:none}
.castle-animation-pair canvas{height:130px}
.castle-animation-arrow{flex:none;font-size:18px;color:#a58b5a}
@media(max-width:600px){.castle-animation-views{grid-template-columns:1fr;gap:7px}.castle-animation-pair canvas{height:125px}}

/* Castle previews fill the detail row; nested sections do not inherit article spacing. */
.article-body.castle-guide .castle-animation-panel{width:100%;max-width:none;margin:0 0 8px}
.article-body.castle-guide .castle-animation-colour{margin:0;min-width:0}
.article-body.castle-guide .castle-animation-views{width:100%;margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.article-body.castle-guide .castle-star-detail>.table-scroll{margin:0}
@media(max-width:600px){.article-body.castle-guide .castle-animation-views{grid-template-columns:1fr}}

.castle-animation-pair.castle-animation-single{justify-content:center}
.castle-animation-pair.castle-animation-single figure{flex:0 0 calc(50% - 10px);max-width:calc(50% - 10px)}
.castle-animation-extra .castle-animation-pair canvas{height:200px}
@media(max-width:600px){.castle-animation-extra .castle-animation-pair canvas{height:220px}}

/* Castle visual previews are hidden until their presentation is revisited. */
.article-body.castle-guide .castle-animation-panel,.article-body.castle-guide .castle-colour-gallery{display:none!important}

.article-body.castle-guide .castle-name-thumbnail{display:inline-block;width:30px;height:30px;object-fit:contain;vertical-align:middle;margin:0 6px 0 0}

.article-body.castle-guide .castle-collection-detail table.castle-collections-combined{max-width:none;width:100%;table-layout:fixed}
.article-body.castle-guide .castle-collections-combined th,.article-body.castle-guide .castle-collections-combined td{width:20%;vertical-align:middle}

.article-body.castle-guide table.castle-collections-combined{border-collapse:collapse}
.article-body.castle-guide table.castle-collections-combined th,.article-body.castle-guide table.castle-collections-combined td{border-right:1px solid #b8c0c8}

/* Pet / beast equipment: compact stat tables and static puzzle diagrams. */
.article-body.pet-guide table{width:100%;border-collapse:collapse;table-layout:auto}
.article-body.pet-guide th,.article-body.pet-guide td{padding:10px 14px;vertical-align:middle;border:1px solid #cbd0d4;white-space:nowrap}
.article-body.pet-guide th{background:#e9dfcc;color:#695332}
.article-body.pet-guide tbody tr:nth-child(even){background:#f7f4ee}
.article-body.pet-guide img{display:inline-block;object-fit:contain;vertical-align:middle;margin:0 6px 0 0}
.article-body.pet-guide img[width="20"]{width:20px;height:20px}
.article-body.pet-guide img[width="52"]{width:52px;height:52px}
.article-body.pet-guide>.table-scroll{margin:12px 0 22px}
.article-body.pet-guide .pet-fold{margin:8px 0 12px;border:1px solid #c6c9cb;border-radius:3px;overflow:hidden}
.article-body.pet-guide .pet-fold>summary{padding:11px 14px;background:#eee7d9;color:#695332;font-weight:700;cursor:pointer}
.article-body.pet-guide .pet-fold>p{margin:12px 14px}
.article-body.pet-guide .pet-fold>.table-scroll{margin:12px 14px}
.article-body.pet-guide .pet-red>summary{background:#efd5d1;color:#874740}
.article-body.pet-guide .pet-gold>summary{background:#eee0b3;color:#795c1e}
.article-body.pet-guide .pet-blue>summary{background:#d5e3ef;color:#3f6686}
.article-body.pet-guide .pet-red th{background:#efd5d1;color:#874740}
.article-body.pet-guide .pet-gold th{background:#eee0b3;color:#795c1e}
.article-body.pet-guide .pet-blue th{background:#d5e3ef;color:#3f6686}
.article-body.pet-guide .pet-suit-overview table{table-layout:fixed}
.article-body.pet-guide .pet-suit-overview th:first-child{width:28%}
.article-body.pet-guide .pet-suit-overview th:last-child{width:23%}
.article-body.pet-guide .pet-suit-row>td{background:#fff}
.article-body.pet-guide .pet-suit-row:nth-of-type(4n+3)>td{background:#f7f4ee}
.article-body.pet-guide .pet-set-toggle{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:none;color:#76572f;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}
.article-body.pet-guide .pet-set-toggle:before{content:'▸';font-size:12px;color:#8c724d}
.article-body.pet-guide .pet-set-toggle[aria-expanded="true"]:before{content:'▾'}
.article-body.pet-guide .pet-set-toggle:hover{color:#315f82}
.article-body.pet-guide .pet-set-toggle:focus-visible{outline:2px solid #8e7547;outline-offset:3px}
.article-body.pet-guide .pet-set-detail[hidden]{display:none}
.article-body.pet-guide .pet-set-detail>td{background:#f0f3f5;padding:12px 16px;white-space:normal}
.article-body.pet-guide .pet-set-detail p{margin:0 0 10px;color:#4c5961}
.article-body.pet-guide .pet-set-detail .table-scroll{margin:0}
.article-body.pet-guide .pet-set-detail th{background:#dbe5ec;color:#3c596c}
.article-body.pet-guide .pet-set-detail td{background:white}
.article-body.pet-guide .pet-extra-stat{display:inline-flex;align-items:center;white-space:nowrap}
@media(max-width:700px){
 .article-body.pet-guide th,.article-body.pet-guide td{padding:8px 10px}
 .article-body.pet-guide .pet-suit-overview table{min-width:550px}
 .article-body.pet-guide .pet-fold table{min-width:440px}
 .article-body.pet-guide img[width="52"]{width:38px;height:38px}
}

.article-body.pet-guide .pet-layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:14px 0 24px}
.article-body.pet-guide .pet-layout-card{min-width:0;margin:0;border:1px solid #d1c5ad;background:#faf8f2}
.article-body.pet-guide .pet-layout-card h4{margin:0;padding:11px 16px;background:#e9dfcc;color:#695332;font-size:16px}
.article-body.pet-guide .pet-layout-picture{padding:10px;text-align:center}
.article-body.pet-guide .pet-layout-board,.article-body.pet-guide .pet-layout-picture img{width:100%;max-width:436px;height:auto;display:block;margin:0 auto}
.article-body.pet-guide>.pet-layout-board{margin:12px 0}
.article-body.pet-guide .pet-layout-count{padding:9px 16px;border-top:1px solid #d9cfba;color:#6e542d}
.article-body.pet-guide .pet-layout-parts{padding:0 16px 13px;color:#5a554e;line-height:1.85;font-size:14px}
@media(max-width:700px){.article-body.pet-guide .pet-layout-grid{grid-template-columns:1fr}}

.article-body.pet-guide .pet-analysis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 16px}
.article-body.pet-guide .pet-analysis-grid section{margin:0;background:#faf8f2;border:1px solid #d1c5ad;min-width:0}
.article-body.pet-guide .pet-analysis-grid h4{margin:0;padding:10px 14px;color:#695332;background:#e9dfcc;font-size:16px}
.article-body.pet-guide .pet-analysis-grid section>div{padding:10px 14px;font-size:14px;line-height:1.8}
.article-body.pet-guide .pet-analysis-grid section>div:first-of-type{height:236px;display:flex;align-items:center;justify-content:center}
.article-body.pet-guide .pet-analysis-grid img{display:block;margin:0;max-width:100%;height:216px;width:auto;object-fit:contain}
@media(max-width:700px){.article-body.pet-guide .pet-analysis-grid{grid-template-columns:1fr}}

.article-body.pet-guide .pet-board-stage{position:relative;width:100%;max-width:436px;margin:0 auto;line-height:0}
.article-body.pet-guide .pet-board-stage img{width:100%;height:auto;max-width:none}
.article-body.pet-guide .pet-board-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.article-body.pet-guide .pet-board-tools{padding:10px 14px 0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.article-body.pet-guide .pet-board-tools button{font:inherit;font-size:13px;min-width:27px;padding:3px 8px;border:1px solid #c7bba2;border-radius:3px;color:#6d5937;background:#fff;cursor:pointer;line-height:1.5}
.article-body.pet-guide .pet-board-tools button[aria-pressed="true"]{background:#765c35;color:white;border-color:#765c35}
.article-body.pet-guide .pet-board-options{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.article-body.pet-guide .pet-board-options b{font-size:14px;margin-right:4px}
.article-body.pet-guide .pet-guard-options{color:#246a98}
.article-body.pet-guide .pet-trans-options{color:#9a6019}
.article-body.pet-guide .pet-guard-options button[aria-pressed="true"]{background:#246a98;border-color:#246a98}
.article-body.pet-guide .pet-trans-options button[aria-pressed="true"]{background:#9a6019;border-color:#9a6019}
.article-body.pet-guide .pet-board-note{margin:0;padding:0 15px 12px;min-height:72px;font-size:13px;line-height:1.8;color:#655a49}
.article-body.pet-guide .pet-board-tools button:focus-visible{outline:2px solid #246a98;outline-offset:2px}

/* Keep fish comparison headings aligned despite the general article h3 rules. */
.fishing-guide .article-body .fish-shared-field>h3{display:flex;align-items:center;min-height:44px;margin:0 0 12px;padding:9px 10px;border:0;border-bottom:1px solid #b8c9be;background:#d7e6dc;color:#345640;font-size:14px;line-height:1.5;white-space:nowrap}
.fishing-guide .article-body .fish-shared-field:nth-child(2)>h3{background:#d6e3ee;color:#36546a;border-color:#b3c6d5}
.fishing-guide .article-body .fish-shared-field:nth-child(3)>h3{background:#eee0b9;color:#705620;border-color:#d3c28f}
.fishing-guide .article-body .fish-future-field{padding:0;background:transparent;border:0}
.fishing-guide .article-body .fish-future-field>h3{background:#edf0ec;color:#69766c;border-color:#c6cec6}
.fishing-guide .article-body .fish-future-field>.fish-unopened{margin:0;padding:12px;border:1px dashed #b7c2b9;background:transparent}
.fishing-guide .article-body .fish-shared-field>.table-scroll{margin-top:0}

/* Keep complete item names and labels readable on narrow screens. */
@media(max-width:700px){
 .article-body.castle-guide .table-scroll{max-width:100%;overflow-x:auto}
 .article-body.castle-guide .castle-overview{min-width:680px}
 .article-body.castle-guide .castle-upgrade-costs{min-width:680px}
 .article-body.castle-guide table.castle-collections-combined{min-width:550px}
 .article-body.military-books-guide .military-book-comparison{min-width:660px}
 .article-body.treasure-guide .treasure-exclusive-table{min-width:760px}
 .article-body.lord-equipment-guide>.table-scroll>table{min-width:640px}
}

.article-body.hero-hall-guide img{display:inline-block;vertical-align:middle;object-fit:contain;width:20px;height:20px;margin-right:5px}
.article-body.hero-hall-guide table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.article-body.hero-hall-guide th,.article-body.hero-hall-guide td{padding:9px 12px;vertical-align:middle;border:1px solid #cbd0d4;white-space:nowrap}
.article-body.hero-hall-guide th{background:#e9dfcc;color:#695332}
.article-body.hero-hall-guide tbody tr:nth-child(even)>td{background:#f8f5ee}
.article-body.hero-hall-guide .hall-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:10px 0 20px}
.article-body.hero-hall-guide .hall-summary-column{min-width:0;margin:0}
.article-body.hero-hall-guide .hall-summary-column>h3{margin:0 0 12px;padding:9px 12px;background:#e8ddca;color:#695332;border-bottom:1px solid #cdbb9d;font-size:16px}
.article-body.hero-hall-guide .hall-summary-column:nth-child(2)>h3{background:#dce6ef;color:#3d617a;border-color:#bccdd9}
.article-body.hero-hall-guide .hall-summary-column:nth-child(2) th{background:#dce6ef;color:#3d617a}
.article-body.hero-hall-guide .hall-summary-column>.table-scroll{margin:0 0 12px}
.article-body.hero-hall-guide details{margin:9px 0 12px;border:1px solid #cec5b5;border-radius:3px;overflow:hidden}
.article-body.hero-hall-guide summary{padding:9px 12px;font-weight:700;background:#eee7db;color:#705638;cursor:pointer}
.article-body.hero-hall-guide details>.table-scroll{margin:10px}
.article-body.hero-hall-guide .hall-materials th{background:#f0e0ba;color:#78591f}
.article-body.hero-hall-guide .hall-levels th{background:#dce6ef;color:#3d617a}
@media(max-width:700px){
 .article-body.hero-hall-guide .hall-summary-grid{grid-template-columns:1fr}
 .article-body.hero-hall-guide .hall-materials{min-width:530px}
 .article-body.hero-hall-guide .hall-levels{min-width:560px}
}

.article-body.lord-equipment-guide .lord-calculator-results{max-width:100%;overflow-x:auto;margin:12px 0}
@media(max-width:700px){
 .article-body.castle-guide .castle-upgrade-costs{min-width:820px}
 .article-body.lord-equipment-guide .lord-calculator-results table{min-width:640px}
}

.article-body.hero-hall-guide .hall-level-materials{min-width:920px}
.article-body.hero-hall-guide .hall-level-materials th,.article-body.hero-hall-guide .hall-level-materials td{padding:9px 10px;font-size:13px}
.article-body.hero-hall-guide .hall-level-materials th:nth-child(n+2):nth-child(-n+4){background:#f0e0ba;color:#78591f}
.article-body.hero-hall-guide .hall-level-materials td:nth-child(n+2):nth-child(-n+4){background:#faf4e7;color:#78591f}
.article-body.hero-hall-guide .hall-level-materials th:nth-child(n+7){background:#e7dce9;color:#70517e}
.article-body.hero-hall-guide .hall-level-materials th:first-child{width:9%}

.article-body.hero-hall-guide>img[src*="mainBanner"],.article-body.hero-hall-guide>p>img[src*="mainBanner"]{display:block;width:100%;max-width:640px;height:126px;object-fit:cover;object-position:center;margin:15px 0 20px;border:1px solid #c8b493;border-radius:3px}
.article-body.hero-hall-guide .hall-rank-table{table-layout:fixed;min-width:0}
.article-body.hero-hall-guide .hall-rank-table th,.article-body.hero-hall-guide .hall-rank-table td{font-size:13px;padding:11px 9px;vertical-align:middle;white-space:nowrap}
.article-body.hero-hall-guide .hall-rank-table th:first-child{width:24%}
.article-body.hero-hall-guide .hall-rank-table th:nth-child(2),.article-body.hero-hall-guide .hall-rank-table th:nth-child(3){width:22%}
.article-body.hero-hall-guide .hall-rank-table th:nth-child(n+4){width:16%}
.article-body.hero-hall-guide .hall-rank-table .hall-rank-summary>td{background:#fff}
.article-body.hero-hall-guide .hall-rank-table .hall-rank-summary:nth-of-type(4n+3)>td{background:#f8f5ee}
.article-body.hero-hall-guide .hall-rank-toggle{border:0;padding:0;background:transparent;color:#76572f;display:inline-flex;align-items:center;gap:6px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.article-body.hero-hall-guide .hall-rank-toggle span{font-size:11px}
.article-body.hero-hall-guide .hall-rank-detail[hidden]{display:none}
.article-body.hero-hall-guide .hall-rank-table .hall-rank-detail>td{padding:10px;background:#f1eee7}
.article-body.hero-hall-guide .hall-rank-detail table{margin:0}
.article-body.hero-hall-guide .hall-rank-toggle:focus-visible{outline:2px solid #9a7a42;outline-offset:3px}
@media(max-width:700px){.article-body.hero-hall-guide .hall-rank-table{min-width:520px}}

.article-body.hero-hall-guide table.hall-unified-table{table-layout:fixed;width:100%;min-width:900px}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th{background:#e9dfcc;color:#695332}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th:first-child{width:13%}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th:nth-child(2){width:11%}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th:nth-child(3){width:24%;background:#efe1bd;color:#78591f}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th:nth-child(4){width:26%;background:#dce6ef;color:#3d617a}
.article-body.hero-hall-guide .hall-unified-table thead tr:first-child th:nth-child(5){width:26%;background:#e7dce9;color:#70517e}
.article-body.hero-hall-guide .hall-unified-table thead tr:nth-child(2) th{width:auto;background:#efe1bd;color:#78591f}
.article-body.hero-hall-guide .hall-unified-table thead tr:nth-child(2) th:nth-child(3),.article-body.hero-hall-guide .hall-unified-table thead tr:nth-child(2) th:nth-child(4){background:#dce6ef;color:#3d617a}
.article-body.hero-hall-guide .hall-unified-table thead tr:nth-child(2) th:nth-child(5),.article-body.hero-hall-guide .hall-unified-table thead tr:nth-child(2) th:nth-child(6){background:#e7dce9;color:#70517e}
.article-body.hero-hall-guide .hall-unified-table th,.article-body.hero-hall-guide .hall-unified-table td{padding:10px 12px}

.footer-ad{width:100%;max-width:728px;margin:18px auto 0;padding:8px 0 0;border-top:1px solid #e2e2de}
.footer-ad>small{display:block;margin-bottom:5px;text-align:center;font-size:10px;line-height:1.5;color:#999;font-weight:400}

.site-information{max-width:900px}
.site-information .article-body{margin-top:22px;line-height:1.9}
.site-information .article-body p{margin:12px 0}
.site-information .article-body a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.site-information .article-body li{margin:6px 0}
.site-draft-note{margin:16px 0;padding:10px 13px;border-left:3px solid #b6975d;background:#f5eedf;color:#78613e;font-size:12px;line-height:1.8}
.site-footer-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 12px;font-size:12px}
@media(max-width:700px){.site-information .article-body{line-height:1.85}.site-draft-note{padding:9px 11px}}

/* Mobile readability: retain desktop geometry and keep complete data labels together. */
.mobile-table-wrap{display:contents}
@media(max-width:800px){
 main,#content,.article,.article-body,.article-body section{min-width:0;max-width:100%}
 .article-body .table-scroll,.mobile-table-wrap,.lord-calculator-results{display:block;min-width:0;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .article-body table.mobile-readable-table:not(.artifact-unified){table-layout:auto!important;width:100%!important;max-width:none!important;height:auto!important}
 .article-body table.mobile-readable-table:not(.artifact-unified) th,
 .article-body table.mobile-readable-table:not(.artifact-unified) td{width:auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;vertical-align:middle}
 .article-body table.mobile-readable-table td.mobile-prose-cell:not(:first-child){white-space:normal!important;min-width:220px;max-width:320px;line-height:1.8}
 .article-body table.mobile-readable-table button,.article-body table.mobile-readable-table a,
 .article-body .strategy-recommended,.article-body .book-usable,.article-body .unit-badge{white-space:nowrap!important;flex-shrink:0}
 .article-body table img{flex-shrink:0;vertical-align:middle}
 .article-body table.mobile-readable-table p{margin:5px 0}
 .article-body .book-three-columns,.article-body .eternal-book-selection,.equipment-skill-columns,
 .hero-level-grid,.appearance-explanation.appearance-aligned,.artifact-three-columns,
 .article-body .hall-summary-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px}
 .article-body .book-three-columns>.table-scroll{display:block;height:auto}
 .article-body .book-three-columns table{height:auto!important}
 .book-three-columns figure{height:auto;min-height:0}
 .article-body .book-three-columns figure img{height:auto;max-width:280px;width:100%;flex:none}
 .article-body .book-three-columns figcaption{white-space:normal}
 .palace-detail [role=tabpanel] ul{display:block}
 .palace-detail [role=tabpanel] li.progress-row{grid-template-columns:95px minmax(0,1fr);gap:10px;height:auto;min-height:62px}
 .palace-detail .progress-step,.palace-detail .progress-jewels,.palace-detail .progress-effects>div{white-space:nowrap!important}
 .palace-detail .progress-effects{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:12px;min-width:0}
 .palace-detail [role=tabpanel] li.progress-star-row{grid-template-columns:minmax(0,1fr) auto}
 .palace-detail .progress-star-row .progress-effects{grid-column:1/-1}
 .palace-detail .palace-profile{min-width:0}
 .palace-summary>span{white-space:nowrap}
 .article-body.artifact-guide table.artifact-unified tbody tr{grid-template-columns:minmax(0,1fr);overflow:visible}
 .article-body.artifact-guide table.artifact-unified tbody td{grid-column:1/-1;width:auto!important;flex-wrap:wrap;justify-content:flex-start;gap:8px 14px}
 .artifact-unified tbody td::before{flex-basis:100%}
 .artifact-aligned-effect,.artifact-unified-name{white-space:nowrap;flex-shrink:0}
 .appearance-step-label{white-space:normal;word-break:keep-all}
 .lord-level-controls{gap:12px;padding:10px}
 .lord-level-controls label{flex-wrap:wrap;row-gap:5px}
 .crumb{line-height:1.9;word-break:keep-all;overflow-wrap:break-word}
 .tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 .tabs a,.tabs button{white-space:nowrap;flex-shrink:0}
 .article-body summary{height:auto;min-height:0;line-height:1.7}
}

@media(max-width:800px){
 .mobile-data-atom{white-space:nowrap!important;word-break:normal;overflow-wrap:normal}
 .article-body.artifact-guide table.artifact-unified tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 .article-body.artifact-guide table.artifact-unified tbody td:nth-child(n+3):nth-child(-n+7){grid-column:auto}
 .article-body.artifact-guide table.artifact-unified tbody td:nth-child(n+3):nth-child(-n+7)::before{display:none}
}

.hero-basic-name{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;vertical-align:middle}
.article-body .hero-basic-name img{display:block;width:18px;height:18px;object-fit:contain;flex-shrink:0;margin:0}

/* Shared attribute labels: game icon and complete text stay on one line. */
.shared-stat-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;vertical-align:middle;max-width:none;line-height:1.65}
.article-body .shared-stat-label img,.progress-effects .shared-stat-label img{display:block;object-fit:contain;width:18px;height:18px;margin:0;padding:0;border:0;background:none;flex-shrink:0}
@media(max-width:800px){.shared-stat-label{flex-shrink:0;word-break:normal;overflow-wrap:normal}.article-body .shared-stat-label+.shared-stat-label{margin-left:6px}}

.footer-ad-preview>div{display:flex;align-items:center;justify-content:center;min-height:50px;background:#f5f3ee;border:1px solid #e5dfd3;color:#948979;font-size:12px;letter-spacing:1px}
@media(min-width:800px){.footer-ad-preview>div{min-height:90px}}

.article-body img.shared-attribute-icon,.progress-effects img.shared-attribute-icon{width:18px!important;height:18px!important;object-fit:contain;vertical-align:middle;flex-shrink:0}
