:root {
--bg: #e6ddca; --panel: #f7f2e7; --line: #d3c6ab; --text: #1c1813; --muted: #7a6d58;
--accent: #b0342c; --on-accent: #fff8ee; --tile: #16120e;
--weapon: #c9681b; --vitality: #4a8a22; --spirit: #7f45c9;
--f-disp: Georgia, "Times New Roman", serif; --f-ui: "Segoe UI", Arial, sans-serif;
color-scheme: light;
}
:root[data-theme="dark"] {
--bg: #080b0c; --panel: #11181b; --line: #22303a; --text: #dfe9e6; --muted: #81938f;
--accent: #4fdcb8; --on-accent: #03140f; --tile: #050708;
--weapon: #f39b45; --vitality: #86cd55; --spirit: #b98af5; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--f-ui); }
a { color: var(--accent); }
img { max-width: 100%; }
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--tile); }
.brand { color: #efe6d4; font: 700 18px var(--f-disp); letter-spacing: .08em; text-decoration: none; }
.brand span { color: var(--accent); }
.top nav { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.top nav a { color: #efe6d4; text-decoration: none; font-size: 14px; }
.top nav a.cta, .btn { background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: 3px; text-decoration: none; font-weight: 600; display: inline-block; }
main { max-width: 1000px; margin: 0 auto; padding: 8px 16px 32px; }
.crumbs { font-size: 13px; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-disp); line-height: 1.2; }
h1 { font-size: 32px; margin: 0 0 6px; }
h2 { font-size: 22px; margin: 30px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 17px; margin: 0 0 4px; }
h3 small { font: 12px var(--f-ui); color: var(--muted); margin-left: 6px; }
.lead { color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 13px; }
.hero-head, .item-head { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.hero-head img { width: 160px; height: auto; flex: none; background: var(--tile); }
.item-head { justify-content: space-between; }
.ih-text { flex: 1; min-width: 0; }
.ih-text .facts { margin: 10px 0; }
.icard { flex: none; max-width: 100%; font-size: 13.5px; line-height: 1.4; font-family: var(--f-body, var(--f-ui)); }
.icard .card { max-width: 100%; }
.icard .muted { color: rgba(255,255,255,.55); }
.s-weapon { --slot: var(--weapon); } .s-vitality { --slot: var(--vitality); } .s-spirit { --slot: var(--spirit); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); padding: 8px 10px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; }
.ability { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px; margin-bottom: 10px; }
.ability > img { width: 56px; height: 56px; flex: none; background: var(--tile); padding: 6px; border-radius: 50%; }
.ability p { margin: 4px 0; }
.tiers { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 14px; }
.tiers b { color: var(--accent); margin-right: 4px; }
.props { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.props li { background: var(--panel); border: 1px solid var(--line); padding: 3px 8px; font-size: 14px; }
.props .v { font-weight: 700; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ilist, .hgrid, .igrid, .plain { list-style: none; padding: 0; margin: 0; }
.ilist li { margin-bottom: 6px; }
.ilink, .hlink { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; flex-wrap: wrap; }
.ilink img { width: 28px; height: 28px; background: var(--tile); padding: 3px; border-left: 3px solid var(--slot, var(--line)); }
.hlink img { width: 32px; height: 32px; object-fit: cover; background: var(--tile); }
.ilink em, .hlink em { font-style: normal; color: var(--muted); font-size: 13px; width: 100%; padding-left: 40px; margin-top: -6px; }
.ilink:hover span, .hlink:hover span { color: var(--accent); text-decoration: underline; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hgrid li, .igrid li { background: var(--panel); border: 1px solid var(--line); padding: 8px; }
.hgrid.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hgrid.small em { display: none; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.plain li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.top nav a.pn { border: 1px solid #efe6d4; padding: 5px 11px; border-radius: 3px; font-weight: 600; }
.psearch input { width: min(460px, 100%); padding: 8px 10px; font: inherit; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.patch { background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.patch > summary { cursor: pointer; padding: 10px 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-family: var(--f-disp); font-size: 17px; }
.patch > summary time { font: 13px var(--f-ui); color: var(--muted); margin-left: auto; }
.patch[open] > summary { border-bottom: 1px solid var(--line); }
.pbody { padding: 4px 16px 12px; overflow-wrap: anywhere; }
.pbody ul { margin: 6px 0 10px; padding-left: 20px; }
.pbody li { margin: 2px 0; }
.pbody p { margin: 8px 0; }
.pbody h4 { font: 700 16px var(--f-disp); margin: 16px 0 4px; }
.pbody img { display: block; margin: 8px 0; height: auto; }
.pbody hr { border: 0; border-top: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); padding: 16px; text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
.hero-head, .item-head { flex-direction: column; }
.item-head { align-items: stretch; }
.icard { width: 100%; }
.hero-head img { width: 120px; }
h1 { font-size: 26px; }
}
.top nav a.donate { border: 1px solid var(--accent); color: var(--accent); padding: 5px 11px; border-radius: 3px; font-weight: 600; }
.top nav a.donate:hover { background: var(--accent); color: var(--on-accent); }
