/* Navoria Wiki – own design in the Navoria identity (deep teal + gold compass), light and dark theme. */
:root {
	--bg: #f4efe4; --bg2: #ece4d3; --surface: #fffdf8; --surface2: #f6f0e3; --raise: #ffffff;
	--ink: #2b2219; --ink2: #4a3d2e; --muted: #7a6c5a; --line: #e3d7c1; --line2: #d4c4a6;
	--brand: #0e4a45; --brand2: #156760; --link: #0b6b61; --link-h: #07443e;
	--gold: #b9862a; --gold2: #d9a640; --gold-ink: #7d560f; --gold-soft: #f6e6bf;
	--good: #2f8a3a; --bad: #b8402f; --warn: #b7791f;
	--slot: linear-gradient(145deg, #3b4a47 0%, #253230 100%); --slot-line: #11191a;
	--shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 18px -8px rgba(60, 40, 10, .18);
	--shadow-h: 0 2px 4px rgba(60, 40, 10, .08), 0 14px 28px -10px rgba(60, 40, 10, .28);
	--r: 12px; --r-s: 8px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: "Cinzel", Georgia, "Times New Roman", serif;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b1514; --bg2: #0f1d1b; --surface: #12201e; --surface2: #172926; --raise: #1a2e2b;
		--ink: #ebe4d4; --ink2: #cfc6b3; --muted: #93a7a1; --line: #223935; --line2: #2d4a45;
		--brand: #0c3d39; --brand2: #13574f; --link: #74d3c4; --link-h: #a6eadf;
		--gold: #e2b452; --gold2: #f0c96d; --gold-ink: #f0c96d; --gold-soft: #2d2715;
		--good: #5cc26a; --bad: #ef7a64; --warn: #e3a94a;
		--slot: linear-gradient(145deg, #2a3a37 0%, #142120 100%); --slot-line: #050a0a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .6);
		--shadow-h: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 30px -12px rgba(0, 0, 0, .75);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0b1514; --bg2: #0f1d1b; --surface: #12201e; --surface2: #172926; --raise: #1a2e2b;
	--ink: #ebe4d4; --ink2: #cfc6b3; --muted: #93a7a1; --line: #223935; --line2: #2d4a45;
	--brand: #0c3d39; --brand2: #13574f; --link: #74d3c4; --link-h: #a6eadf;
	--gold: #e2b452; --gold2: #f0c96d; --gold-ink: #f0c96d; --gold-soft: #2d2715;
	--good: #5cc26a; --bad: #ef7a64; --warn: #e3a94a;
	--slot: linear-gradient(145deg, #2a3a37 0%, #142120 100%); --slot-line: #050a0a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .6);
	--shadow-h: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 30px -12px rgba(0, 0, 0, .75);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--gold); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.spr { image-rendering: pixelated; vertical-align: middle; object-fit: contain; }
.spr.x2 { width: 64px; height: 64px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, #0f3835 0%, #0a2624 100%); color: #e9e1cd; box-shadow: 0 1px 0 #c79a3c55, 0 8px 24px -12px rgba(0, 0, 0, .6); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: #f3e3b5; flex: none; }
.brand:hover { text-decoration: none; color: #fff2c8; }
.logo-star { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(240, 190, 80, .45)); }
.brand-t { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.brand-t b { font-size: 21px; letter-spacing: .06em; background: linear-gradient(180deg, #fff1c4, #e0a93a 60%, #b07a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-t i { font-style: normal; font-size: 13px; letter-spacing: .2em; color: #9fd8cf; text-transform: uppercase; }
.ibtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ffffff1f; background: #ffffff0d; color: #e9e1cd; cursor: pointer; flex: none; padding: 0; }
.ibtn:hover { background: #ffffff1f; }
.theme .ico:last-child { display: none; }
:root[data-theme="dark"] .theme .ico:first-child { display: none; }
:root[data-theme="dark"] .theme .ico:last-child { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .ico:first-child { display: none; } :root:not([data-theme="light"]) .theme .ico:last-child { display: block; } }
.main-link { display: inline-flex; align-items: center; gap: 6px; color: #f0d58f; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid #e0b04a55; flex: none; }
.main-link .ico { width: 15px; height: 15px; }
.main-link:hover { background: #e0b04a1f; text-decoration: none; color: #ffe7a8; }
.burger, .qs-open { display: none; }

/* search box (header + hero) */
.qs { position: relative; display: flex; align-items: center; flex: 1; max-width: 560px; margin: 0 auto; }
.qs > .ico { position: absolute; left: 12px; color: #9fb8b2; pointer-events: none; }
.qs input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid #ffffff26; background: #06191799; color: #f4ecd8; padding: 0 44px 0 40px; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.qs input::placeholder { color: #9fb2ad; }
.qs input:focus { border-color: #e0b04a; background: #031110; }
.qs kbd { position: absolute; right: 12px; font: 12px var(--font); color: #9fb2ad; border: 1px solid #ffffff30; border-radius: 5px; padding: 0 6px; }
.qs input:focus ~ kbd { display: none; }
.sg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--raise); color: var(--ink); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); overflow: hidden; display: none; z-index: 60; text-align: left; }
.sg.on { display: block; }
.sg a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; color: var(--ink); border-top: 1px solid var(--line); }
.sg a:first-child { border-top: 0; }
.sg a:hover, .sg a.act { background: var(--surface2); text-decoration: none; }
.sg .sg-img { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 8px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-line); overflow: hidden; }
.sg .sg-img img { width: 32px; height: 32px; }
.sg .sg-t { flex: 1; min-width: 0; line-height: 1.25; }
.sg .sg-t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .sg-t b mark { background: none; color: var(--gold-ink); }
.sg .sg-t small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .sg-ty { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; flex: none; }
.sg .sg-all { justify-content: center; color: var(--link); font-weight: 600; font-size: 14px; padding: 10px; }
.sg .sg-none { padding: 12px; color: var(--muted); }

/* nav */
.nav { border-top: 1px solid #ffffff12; }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 10px; display: flex; align-items: center; gap: 2px; }
.nav a, .more summary { color: #d5e4df; padding: 9px 12px; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav a .ico { width: 16px; height: 16px; }
.nav a:hover, .more summary:hover { color: #fff; text-decoration: none; background: #ffffff0a; }
.nav a.on { color: #f3d27e; border-bottom-color: #e0b04a; }
.more { position: relative; margin-left: auto; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.more-m { position: absolute; right: 0; top: 100%; min-width: 190px; background: #0d2c29; border: 1px solid #ffffff1a; border-radius: 10px; padding: 6px; box-shadow: 0 16px 30px -10px #000a; display: grid; }
.more-m a { border: 0; border-radius: 6px; }
.nav-mob { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; min-height: 60vh; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.crumbs b { color: var(--ink2); font-weight: 600; }
.crumbs span { opacity: .6; }
.page-h { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.page-h h1 { margin: 0; font: 700 30px/1.15 var(--display); letter-spacing: .02em; }
.page-h .kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink); font-weight: 700; margin-bottom: 2px; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.page-h .ph-img { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 14px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-line), 0 0 0 3px var(--surface), 0 0 0 4px var(--line2); flex: none; }
.page-h .ph-img img { width: 64px; height: 64px; }
.page-h .ph-img img.small { width: 32px; height: 32px; transform: scale(1.75); }

.ent { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.ent-body { min-width: 0; grid-column: 1; grid-row: 1; }
.ibox { grid-column: 2; grid-row: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 120px; }
.ibox-h { background: linear-gradient(180deg, var(--brand2), var(--brand)); color: #f5e6bd; padding: 10px 14px; font: 700 17px/1.2 var(--display); letter-spacing: .03em; text-align: center; }
.ibox-img { display: grid; place-items: center; padding: 18px 0; background: radial-gradient(circle at 50% 55%, #e9c46a33, transparent 60%), var(--surface2); border-bottom: 1px solid var(--line); min-height: 150px; }
.ibox-img img { width: 128px; height: 128px; }
.ibox-img img.small { width: 64px; height: 64px; }
.ibox-img .ib-pair { display: flex; gap: 8px; }
.ibox-img .ib-pair img { width: 96px; height: 96px; }
.ib-rows { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: 14px; }
.ib-rows dt, .ib-rows dd { padding: 7px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.ib-rows dt { color: var(--muted); font-weight: 600; font-size: 13px; padding-right: 6px; }
.ib-rows dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ib-rows dt:last-of-type, .ib-rows dd:last-of-type { border-bottom: 0; }
.ibox-f { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface2); }

.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin: 0 0 16px; }
.sec > h2 { margin: -2px 0 12px; font: 700 19px/1.25 var(--display); letter-spacing: .02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.sec > h2 small { font: 13px var(--font); color: var(--muted); letter-spacing: 0; }
.sec > h2::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg) translateY(-2px); background: linear-gradient(135deg, var(--gold2), var(--gold)); border-radius: 2px; flex: none; align-self: center; }
.sec p:first-child { margin-top: 0; }
.sec p:last-child { margin-bottom: 0; }
.lead { font-size: 16px; color: var(--ink2); margin: 0 0 16px; }

/* chips, badges, buttons */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line2); color: var(--ink2); font-size: 13px; font-weight: 600; }
a.chip:hover { border-color: var(--gold); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #f5e6bd; }
.chip img { width: 24px; height: 24px; margin: -4px 0 -4px -6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line2); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.badge.prem { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.badge.draft { background: #f3d9d2; border-color: #c96b52; color: #8c3a22; }
:root[data-theme="dark"] .badge.draft { background: #3a1f18; color: #f2a58f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.draft { background: #3a1f18; color: #f2a58f; } }
.badge.good { color: var(--good); border-color: currentColor; background: transparent; }
.badge.bad { color: var(--bad); border-color: currentColor; background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); color: var(--ink); font-weight: 700; font-size: 14px; }
.btn:hover { text-decoration: none; border-color: var(--gold); color: var(--ink); }
.btn.gold { background: linear-gradient(180deg, #f3cd6f, #d29a2d); border-color: #a8761d; color: #2a1c05; }
.btn.gold:hover { filter: brightness(1.06); }
.btn .ico { width: 16px; height: 16px; }

/* links with sprite */
.ln { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; vertical-align: middle; }
.ln img { width: 32px; height: 32px; margin: -6px 0; }
.ln img.cr { width: 32px; height: 32px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .c { text-align: center; }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[data-sort]::after { content: "↕"; opacity: .35; margin-left: 4px; font-size: 11px; }
.tbl th.asc::after { content: "↑"; opacity: 1; color: var(--gold-ink); }
.tbl th.desc::after { content: "↓"; opacity: 1; color: var(--gold-ink); }
.tbl td.img { width: 44px; padding-right: 0; }
.tbl td.img img { width: 32px; height: 32px; display: block; }
.tbl td.img img.cr { width: 48px; height: 48px; margin: -8px 0; }
.tbl .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.tbl a.nm { font-weight: 600; }
.tbl tr.hide { display: none; }

/* chance bar */
.chance { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.chance .bar { width: 70px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; flex: none; }
.chance .bar i { display: block; height: 100%; border-radius: 4px; }
.r-common i, .dot.r-common { background: #5f9a43; }
.r-uncommon i, .dot.r-uncommon { background: #2f86bd; }
.r-semirare i, .dot.r-semirare { background: #8c56c4; }
.r-rare i, .dot.r-rare { background: #d49b22; }
.r-veryrare i, .dot.r-veryrare { background: #cf3e2c; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* element bars */
.els { display: grid; gap: 6px; }
.el-row { display: grid; grid-template-columns: 24px 92px 1fr 64px; align-items: center; gap: 8px; font-size: 14px; }
.el-row .spr { width: 24px; height: 24px; }
.el-row .eldot, .eldot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin: 4px; box-shadow: inset 0 0 0 2px #0003; }
.el-track { position: relative; height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.el-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.el-track::after { content: ""; position: absolute; left: 66.6%; top: -2px; bottom: -2px; width: 2px; background: var(--ink2); opacity: .35; }
.el-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.el-v.imm { color: var(--muted); }
.el-v.weak { color: var(--good); }
.el-v.strong { color: var(--bad); }
.el-row.zero { opacity: .65; }

/* stat facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; box-shadow: var(--shadow); }
.fact small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fact b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fact b small { display: inline; font-size: 13px; text-transform: none; letter-spacing: 0; }

/* cards / tiles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--gold); color: var(--ink); }
.card-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-line), inset 0 2px 6px #0006; overflow: hidden; }
.card-ic img { width: 44px; height: 44px; }
.card-ic img.cr { width: 52px; height: 52px; }
.card-ic img.x2 { width: 44px; height: 44px; }
.card-t { min-width: 0; line-height: 1.3; }
.card-t b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.card-t small { display: block; color: var(--muted); font-size: 12.5px; }
.cards.sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cards.sm .card { padding: 6px 10px; gap: 10px; }
.cards.sm .card-ic { width: 42px; height: 42px; }
.cards.sm .card-ic img { width: 32px; height: 32px; }
.cards.sm .card-ic img.cr { width: 42px; height: 42px; }

/* ---------- home ---------- */
.hero { position: relative; margin: -18px calc(50% - 50vw) 22px; padding: 46px 16px 34px; text-align: center; color: #efe4c7; z-index: 5; background: radial-gradient(ellipse at 50% 0%, #1d5b55 0%, #0c2c29 55%, #071816 100%); border-bottom: 1px solid #c79a3c55; }
.hero-sky { position: absolute; inset: 0; opacity: .7; background-image:
	radial-gradient(1px 1px at 12% 22%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #fff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 30%, #ffe9b0 50%, transparent 51%),
	radial-gradient(1px 1px at 86% 72%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 56% 14%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 82%, #ffe9b0aa 50%, transparent 51%),
	radial-gradient(1px 1px at 40% 40%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 93% 12%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 64% 86%, #fff6 50%, transparent 51%),
	radial-gradient(600px 220px at 50% 115%, #e0a93a33, transparent 70%); }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; }
.hero-star { width: 74px; height: 74px; filter: drop-shadow(0 0 18px rgba(240, 190, 80, .55)); animation: star 9s ease-in-out infinite; }
@keyframes star { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(8deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-star { animation: none; } .card { transition: none; } }
.hero h1 { margin: 6px 0 6px; font: 700 46px/1.05 var(--display); letter-spacing: .06em; background: linear-gradient(180deg, #fff3c9 10%, #e6b047 60%, #a8731a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 18px rgba(230, 170, 60, .15); }
.hero h1 span { font-size: .62em; letter-spacing: .22em; -webkit-text-fill-color: #a7e0d6; }
.hero-sub { margin: 0 auto 20px; color: #bcd3cd; font-size: 16px; max-width: 560px; }
.qs-big { max-width: 640px; }
.qs-big input { height: 56px; font-size: 17px; padding: 0 120px 0 50px; background: #fffdf8; color: #2b2219; border: 2px solid #e0b04a; box-shadow: 0 10px 40px -10px #000c, 0 0 0 6px #e0b04a1f; }
.qs-big input::placeholder { color: #8b7d68; }
.qs-big input:focus { background: #fff; border-color: #f3cd6f; }
.qs-big > .ico { left: 18px; width: 22px; height: 22px; color: #8b6a2a; }
.qs-go { position: absolute; right: 7px; height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #f3cd6f, #d29a2d); color: #2a1c05; font: 700 15px var(--font); cursor: pointer; }
.qs-go:hover { filter: brightness(1.07); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 13px; }
.hero-chips span { color: #93b3ac; margin-right: 2px; align-self: center; }
.hero-chips a { color: #f1dca3; border: 1px solid #e0b04a55; border-radius: 999px; padding: 3px 11px; background: #ffffff08; }
.hero-chips a:hover { background: #e0b04a22; text-decoration: none; }
.hero-stats { margin-top: 18px; color: #9fbdb6; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; align-items: center; }
.hero-stats b { color: #f3d27e; margin-right: 4px; font-variant-numeric: tabular-nums; }
.hero-stats i { width: 4px; height: 4px; background: #e0b04a88; border-radius: 50%; margin: 0 12px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.h-orn { display: flex; align-items: center; gap: 12px; font: 700 18px/1.2 var(--display); letter-spacing: .05em; margin: 0 0 12px; color: var(--ink); }
.h-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .6; }
.h-orn::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }
.tiles-sec { margin: 0 0 22px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin: 0 0 16px; }
.lvpicks { display: grid; gap: 6px; }
.lvpick { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); }
.lvpick:hover { border-color: var(--gold); text-decoration: none; color: var(--ink); }
.lvpick .lv { font: 700 16px var(--display); color: var(--gold-ink); }
.lvpick .lv-m { display: flex; gap: 0; height: 32px; overflow: hidden; }
.lvpick .lv-m img { width: 32px; height: 32px; }
.lvpick .lv-n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.feat-card { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.feat-card:hover { text-decoration: none; color: var(--ink); }
.feat-card:hover b { color: var(--link); }
.feat-img { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 14px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-line), inset 0 2px 8px #0008; flex: none; }
.feat-card b { display: block; font: 700 18px var(--display); }
.feat-card small { color: var(--muted); }
.feat-loot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.feat-loot a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--slot); box-shadow: inset 0 0 0 1px var(--slot-line); }

/* ---------- list pages ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filters input[type=search], .filters input[type=number], .filters select { height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 0 12px; }
.filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.filters input[type=number] { width: 90px; }
.filters label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.count { font-size: 13px; color: var(--muted); margin-left: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

/* loot tiles in lists */
.lootrow { display: flex; flex-wrap: wrap; gap: 2px; }
.lootrow img { width: 32px; height: 32px; }

/* mini map */
.mm { position: relative; height: var(--h, 260px); border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line2); background: #0a1514; }
.mm-map { position: absolute; inset: 0; background: #0a1514; }
.mm-open { position: absolute; right: 8px; bottom: 8px; z-index: 500; background: #0d2c29e6; color: #f3d27e; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid #e0b04a66; }
.mm-open:hover { text-decoration: none; color: #fff; }
.mm-fl { position: absolute; left: 8px; top: 8px; z-index: 500; display: flex; gap: 4px; flex-wrap: wrap; max-width: 70%; }
.mm-fl button { background: #0d2c29e6; color: #d5e4df; border: 1px solid #ffffff2a; border-radius: 6px; font: 600 12px var(--font); padding: 3px 8px; cursor: pointer; }
.mm-fl button.on { background: #e0b04a; color: #1c1404; border-color: #e0b04a; }
.mm .leaflet-container { background: #0a1514; }
.mm-pin { background: #e0b04a; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #0008, 0 0 12px #e0b04a; }

/* prose (quest guides) */
.prose { font-size: 15.5px; }
.prose h3 { font: 700 16px var(--display); margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--gold); background: var(--surface2); border-radius: 0 8px 8px 0; color: var(--ink2); }
.note { padding: 10px 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold); color: var(--ink); font-size: 14px; margin: 0 0 16px; }

/* outfits / mounts gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: center; box-shadow: var(--shadow); scroll-margin-top: 130px; }
.gal-i:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow-h); }
.gal-img { height: 104px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #e9c46a2e, transparent 65%), var(--surface2); margin-bottom: 8px; }
.gal-img img { width: 96px; height: 96px; }
.gal-i b { display: block; font-weight: 700; }
.gal-i small { color: var(--muted); font-size: 12.5px; }
.gal.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal.wide .gal-img img { width: 64px; height: 64px; }

/* search results */
.res-group { margin: 0 0 18px; }
.res-group h2 { font: 700 17px var(--display); margin: 0 0 8px; }

/* not found */
.nf { text-align: center; padding: 60px 10px; }
.nf h1 { font: 700 34px var(--display); margin: 0 0 8px; }

/* footer */
.foot { background: #0a2321; color: #bcd0ca; border-top: 1px solid #c79a3c55; margin-top: 30px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 26px 16px 30px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot-brand { display: flex; gap: 12px; max-width: 360px; align-items: flex-start; }
.foot-brand b { color: #f3d27e; font-family: var(--display); font-size: 17px; }
.foot-brand small { display: block; color: #91aaa3; font-size: 13px; margin-top: 2px; }
.logo-star.sm { width: 34px; height: 34px; flex: none; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 36px; }
.foot-cols div { display: grid; gap: 4px; align-content: start; font-size: 14px; }
.foot-cols b { color: #e9e1cd; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.foot-cols a { color: #a9d9d0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.home-grid { grid-template-columns: 1fr; }
	.ent { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 860px) {
	.top-in { padding: 6px 10px; gap: 8px; }
	.burger, .qs-open { display: inline-grid; }
	.main-link { display: none; }
	.top .qs { display: none; position: absolute; left: 8px; right: 8px; top: 56px; max-width: none; }
	.top.qs-on .qs { display: flex; }
	.top.qs-on .qs input { background: #031110; height: 44px; }
	.brand { margin-right: auto; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #0b2826; border-top: 1px solid #ffffff14; box-shadow: 0 20px 30px -10px #000b; max-height: calc(100vh - 60px); overflow: auto; }
	.nav.open { display: block; }
	.nav-in { flex-direction: column; align-items: stretch; padding: 8px; }
	.nav a { padding: 12px; border-bottom: 1px solid #ffffff0d; border-left: 3px solid transparent; }
	.nav a.on { border-bottom-color: #ffffff0d; border-left-color: #e0b04a; }
	.more { display: none; }
	.nav-mob { display: grid; grid-template-columns: 1fr 1fr; }
	.ent { grid-template-columns: 1fr; }
	.ibox { grid-column: 1; grid-row: 1; position: static; }
	.ent-body { grid-row: 2; }
	.ibox-img { min-height: 0; padding: 12px 0; }
	.ibox-img img { width: 96px; height: 96px; }
	.hero h1 { font-size: 36px; }
	.qs-big input { padding-right: 16px; height: 52px; font-size: 16px; }
	.qs-go { display: none; }
	.hero-chips { gap: 5px; }
}
@media (max-width: 560px) {
	body { font-size: 14.5px; }
	.wrap { padding: 14px 12px 30px; }
	.hero { margin: -14px calc(50% - 50vw) 18px; padding: 30px 14px 24px; }
	.hero h1 { font-size: 31px; }
	.hero-star { width: 56px; height: 56px; }
	.hero-sub { font-size: 14.5px; }
	.hero-stats i { margin: 0 8px; }
	.brand-t b { font-size: 18px; }
	.page-h h1 { font-size: 24px; }
	.page-h .ph-img { width: 58px; height: 58px; }
	.page-h .ph-img img { width: 52px; height: 52px; }
	.sec { padding: 14px 14px; border-radius: 10px; }
	.tbl-wrap { margin: 0 -14px; padding: 0 14px; }
	.tbl td, .tbl th { padding: 6px 6px; }
	.tbl .hide-s { display: none; }
	.tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tiles .card { padding: 8px; gap: 8px; }
	.tiles .card-ic { width: 44px; height: 44px; }
	.tiles .card-ic img { width: 36px; height: 36px; }
	.tiles .card-ic img.cr { width: 44px; height: 44px; }
	.tiles .card-t b { font-size: 14px; }
	.cards.sm { grid-template-columns: 1fr 1fr; }
	.el-row { grid-template-columns: 22px 78px 1fr 52px; gap: 6px; font-size: 13px; }
	.facts { grid-template-columns: 1fr 1fr; }
	.gal { grid-template-columns: 1fr 1fr; }
	.gal.wide { grid-template-columns: 1fr; }
	.foot-cols { gap: 22px; }
	.lvpick { grid-template-columns: 62px 1fr auto; }
}

/* zoomed creature images (w_cimg) */
.ci { --s: 64px; display: inline-block; position: relative; overflow: hidden; vertical-align: middle; flex: none; width: var(--s); height: var(--s); }
span.ci.ci > img.spr { position: absolute; max-width: none; margin: 0; transform: none; width: calc(var(--s) * var(--w, 1)); height: calc(var(--s) * var(--w, 1)); left: calc(var(--s) * var(--x, 0)); top: calc(var(--s) * var(--y, 0)); }
.card-ic .ci, .feat-img .ci, .ph-img .ci, .ibox-img .ci { display: block; }
.ln .ci { margin: -6px 0; }
.h3 { font: 700 15px var(--font); margin: 18px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.sec > .h3:first-child, .sec > h2 + .h3 { margin-top: 0; }
.h3 small { font-weight: 400; font-size: 13px; }
/* quest list */
.qlist { display: grid; gap: 8px; }
.qcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, transform .15s; }
.qcard:hover { border-color: var(--gold); text-decoration: none; color: var(--ink); transform: translateY(-1px); }
.qcard.hide { display: none; }
.qc-lv { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.qc-lv small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.qc-lv b { font: 700 22px var(--display); color: var(--gold-ink); }
.qc-t b { font-size: 16px; }
.qc-t small { display: block; color: var(--muted); font-size: 13px; }
.qc-r { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.qc-r img { width: 32px; height: 32px; }
.qc-r em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
@media (max-width: 560px) { .qcard { grid-template-columns: 52px minmax(0, 1fr); } .qc-r { grid-column: 2; justify-content: flex-start; } }
.addons { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.addons span { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); }
.gal-i.hide { display: none; }
.maplink { font-size: 12px; font-weight: 600; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 560px) {
	.chance .bar { display: none; }
	.ib-rows dt, .ib-rows dd { padding-top: 5px; padding-bottom: 5px; }
	.home-side { display: contents; }
	.home-grid > .home-main { order: 2; }
	.home-side > .panel:first-child { order: 1; }
	.home-side > .panel { order: 3; }
}
.noimg { display: inline-block; vertical-align: middle; }
