/* ==========================================================================
   TibiaLegends website theme.
   Forest-slate frame, warm parchment content, gold and ruby accents, taken from the banner painting.
   Everything is driven by the tokens in :root. No external fonts, no framework.
   ========================================================================== */

/* -------- 1. Tokens ------------------------------------------------------ */
:root {
	--slate-950: #0c1210;
	--slate-900: #121b18;
	--slate-800: #1a2622;
	--slate-700: #26362f;
	--slate-600: #35473f;

	--parch-50: #fbf5e6;
	--parch-100: #f5e9cd;
	--parch-200: #ead8ae;
	--parch-300: #d9bf8a;
	--parch-500: #a98a55;

	--ink: #1f2a26;
	--ink-soft: #66543a;
	--text: #f1e7d0;
	--text-muted: #b9c2a8;

	--gold: #e0ae3c;
	--gold-soft: #f2d17e;
	--gold-dark: #8f6c1c;
	--ruby: #b23a2c;
	--ruby-dark: #7a1f18;
	--moss: #5f8f45;
	--moss-dark: #3f6a2d;
	--sky: #3d8f9c;
	--mint: #5fe0a0;

	--knight: #c0392b;
	--paladin: #e39a1e;
	--sorcerer: #7d54c8;
	--druid: #5f9a4a;

	--font-title: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-mono: Consolas, "SF Mono", Menlo, monospace;

	--radius: 8px;
	--radius-sm: 5px;
	--sidebar-w: 236px;
	--page-w: 1100px;
	--shadow: 0 10px 28px rgba(0, 0, 0, .45);
	--edge: 0 0 0 1px rgba(224, 174, 60, .55);
}

/* -------- 2. Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--slate-950);
	background-image:
		radial-gradient(ellipse 80% 38% at 50% -4%, rgba(224, 174, 60, .14), transparent 70%),
		radial-gradient(ellipse 80% 40% at 50% 108%, rgba(95, 143, 69, .14), transparent 70%);
	background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: #86291d; text-decoration: none; border-bottom: 1px solid rgba(134, 41, 29, .35); }
a:hover { color: var(--ruby); border-bottom-color: currentColor; }
hr { border: 0; height: 1px; background: var(--parch-300); margin: 1.4em 0; }
img, canvas, video, svg { max-width: 100%; }
::selection { background: rgba(224, 174, 60, .55); color: #0c1210; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* -------- 3. Page skeleton ------------------------------------------------ */
.page {
	max-width: var(--page-w);
	margin: 0 auto;
	padding: 24px 16px 44px;
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.page > *, .content > * { min-width: 0; }
.content { display: grid; gap: 22px; }

/* -------- 4. Masthead: the banner painting with the wordmark on it ------- */
.masthead {
	grid-column: 1 / -1;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--slate-900);
	box-shadow: var(--shadow), var(--edge);
}
.masthead .art-link { display: block; line-height: 0; border: 0; }
.masthead img { display: block; width: 100%; height: clamp(190px, 25vw, 270px); object-fit: cover; object-position: 50% 34%; }
.masthead::after { /* darkens the sky behind the wordmark; the castle on the right stays bright */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(9, 16, 14, .6) 0%, rgba(9, 16, 14, .3) 32%, rgba(9, 16, 14, 0) 55%),
		linear-gradient(180deg, rgba(9, 16, 14, .18), transparent 30%, transparent 70%, rgba(9, 16, 14, .25));
}
.masthead-tall img { height: auto; aspect-ratio: 16 / 7.4; object-position: 50% 100%; }
.masthead-tall::after { background: radial-gradient(ellipse 60% 75% at 0% 0%, rgba(9, 16, 14, .72), rgba(9, 16, 14, .32) 55%, transparent 80%), linear-gradient(180deg, transparent 75%, rgba(9, 16, 14, .3)); }

.brand-block { position: absolute; z-index: 2; left: 32px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 18px; max-width: 60%; }
.masthead-tall .brand-block { top: 30px; bottom: auto; transform: none; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 520px; }
.emblem { width: 62px; height: 62px; flex: none; color: var(--gold-soft); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.masthead-tall .emblem { display: none; }
.brand {
	display: block; border: 0;
	font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
	color: #fff4d2; text-shadow: 0 2px 0 rgba(20, 12, 4, .7), 0 0 22px rgba(0, 0, 0, .55);
}
.brand:hover { color: #fff; }
.masthead-tall .brand { font-size: 3.3rem; }
.tagline { margin-top: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #ecdcb0; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.lead { max-width: 44ch; margin: 0; font-size: 1.08rem; color: #f6ecd4; text-shadow: 0 1px 6px rgba(0, 0, 0, .75); }
.masthead .btn-row { margin-top: 2px; }

.art-status {
	position: absolute; top: 14px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px; font-size: .82rem; line-height: 1.3; color: #fff;
	background: rgba(9, 16, 14, .66); backdrop-filter: blur(3px); box-shadow: inset 0 0 0 1px rgba(242, 209, 126, .4);
}
.art-status .muted-on-stone { color: #d9cfae; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px var(--mint); flex: none; }
.online-dot.off { background: var(--ruby); box-shadow: 0 0 7px var(--ruby); }

/* -------- 5. Sidebar ------------------------------------------------------ */
.sidebar { display: grid; gap: 14px; }
.search { display: flex; gap: 6px; }
.search input { flex: 1; min-width: 0; padding: 9px 11px; font: inherit; color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid var(--slate-600); border-radius: var(--radius-sm); }
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--gold); }
.search button { display: grid; place-items: center; width: 40px; border: 0; border-radius: var(--radius-sm); cursor: pointer; color: #2a1c05; background: var(--gold); }
.search button:hover { background: var(--gold-soft); }
.search svg { width: 17px; height: 17px; }

.nav-group { background: var(--slate-800); border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--slate-600); overflow: hidden; }
.nav-group h2 {
	margin: 0; padding: 9px 14px; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
	color: var(--gold-soft); background: var(--slate-900); border-bottom: 1px solid rgba(224, 174, 60, .45);
}
.nav-group ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 1px; }
.nav-group li a, .nav-group li button.linklike {
	display: block; width: 100%; padding: 8px 12px; text-align: left; font-size: .94rem; color: var(--text); border: 0; border-radius: var(--radius-sm);
	background: none; font-family: inherit; cursor: pointer;
}
.nav-group li a:hover, .nav-group li button.linklike:hover { background: rgba(224, 174, 60, .14); color: #fff; }
.nav-group li a[aria-current="page"] { background: var(--ruby); color: #fff; font-weight: 600; }

.side-note { padding: 12px 14px 14px; font-size: .86rem; color: var(--text); }
.side-status { display: flex; align-items: center; gap: 8px; }
.side-status strong { color: var(--gold-soft); }
.side-status span:last-child { margin-left: auto; color: var(--text-muted); font-size: .8rem; }
.side-sub { margin: 12px 0 6px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .84rem; }
.stage-list li { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 4px; }
.stage-list li:nth-child(odd) { background: rgba(255, 255, 255, .05); }
.stage-list b { color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* -------- 6. Boxes -------------------------------------------------------- */
.box {
	background: linear-gradient(180deg, var(--parch-50), var(--parch-100));
	border-radius: var(--radius);
	box-shadow: var(--shadow), 0 0 0 1px var(--parch-500);
	overflow: hidden;
}
.box > header { padding: 11px 20px; background: var(--slate-800); border-bottom: 2px solid var(--gold); }
.box > header h1, .box > header h2 {
	display: block; margin: 0; font-size: .98rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
}
.box > .body { padding: 20px 22px 18px; }
.box > .body > h2, .box > .body > h3 { margin-top: 1.5em; }
.box > .body > h2:first-child, .box > .body > h3:first-child { margin-top: 0; }
.box > footer { padding: 10px 22px; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--parch-300); background: rgba(80, 50, 10, .05); }
.box.green > header { background: #1f5a3c; }
.box.red > header { background: #6e1d17; }
.box.blue > header { background: #22497f; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* -------- 7. News and tags ------------------------------------------------ */
.news { list-style: none; margin: 0; padding: 0; }
.news > li { position: relative; padding: 0 0 22px 20px; border-left: 2px solid var(--parch-300); }
.news > li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--parch-100); }
.news > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.news li ul { margin: 0 0 .4em; padding-left: 1.15em; }
.news li li { margin-bottom: .45em; }
.older { margin-top: 18px; border-top: 1px solid var(--parch-300); padding-top: 14px; }
.older > summary { cursor: pointer; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ruby-dark); margin-bottom: 16px; }
.older[open] > summary { margin-bottom: 20px; }
.news .meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.news .meta time { font-variant-numeric: tabular-nums; font-weight: 600; }
.news h3 { margin: 4px 0 6px; font-size: 1.15rem; color: var(--ruby-dark); }
.news p { margin: 0 0 .7em; }
.news p:last-child { margin-bottom: 0; }
.tag { display: inline-block; padding: 2px 9px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--sky); border-radius: 3px; }
.tag.gold { background: var(--ruby); }
.tag.green { background: var(--moss); }

/* -------- 8. Buttons ------------------------------------------------------ */
.btn {
	display: inline-block; padding: 10px 24px;
	font: 700 .86rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-align: center; text-decoration: none;
	color: #fff; background: var(--ruby); border: 0; border-radius: var(--radius-sm);
	box-shadow: 0 0 0 1px var(--ruby-dark), inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 8px rgba(0, 0, 0, .35);
	cursor: pointer; transition: background-color .15s, transform .1s;
}
.btn:hover { color: #fff; background: #c4483a; border: 0; }
.btn:active { transform: translateY(1px); }
.btn.secondary { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 3px 8px rgba(0, 0, 0, .25); }
.btn.secondary:hover { background: rgba(255, 255, 255, .22); }
.box .btn.secondary { color: #fff; background: var(--moss-dark); box-shadow: 0 0 0 1px #2c4b20, inset 0 1px 0 rgba(255, 255, 255, .2); }
.box .btn.secondary:hover { background: var(--moss); }
.btn.block { display: block; width: 100%; }
.btn.disabled { cursor: not-allowed; filter: grayscale(.85) brightness(.85); opacity: .7; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* -------- 9. Forms -------------------------------------------------------- */
.form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 4px; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field .hint { font-size: .8rem; color: var(--ink-soft); }
.field .error { font-size: .82rem; color: var(--ruby); font-weight: 700; }
input[type="text"], input[type="password"], input[type="email"], select {
	width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--parch-50);
	border: 1px solid var(--parch-500); border-radius: var(--radius-sm); box-shadow: inset 0 1px 3px rgba(60, 40, 10, .15);
	transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: var(--gold-dark); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 174, 60, .4); }
select {
	color-scheme: light; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366543a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
select option { color: #1f2a26; background: #fbf5e6; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.check input { accent-color: var(--ruby); }
.notice { margin: 0 0 16px; padding: 12px 16px; border-left: 5px solid var(--gold); background: rgba(224, 174, 60, .18); border-radius: var(--radius-sm); font-size: .9rem; }
.notice.error { border-left-color: var(--ruby); background: rgba(178, 58, 44, .13); }
.notice.ok { border-left-color: var(--moss); background: rgba(95, 143, 69, .16); }
form.inline { display: inline; margin: 0; }
form.inline-form { margin: 0; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
a.danger-link { color: var(--ruby); font-weight: 700; font-size: .85rem; }

/* -------- 10. Tables ------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; border-radius: var(--radius-sm); overflow: hidden; }
table.data caption { text-align: left; padding-bottom: 8px; font-family: var(--font-title); font-weight: 700; color: var(--ruby-dark); }
table.data th { padding: 9px 14px; text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); background: var(--slate-800); border-bottom: 2px solid var(--gold); }
table.data td { padding: 9px 14px; border-bottom: 1px solid var(--parch-300); }
table.data tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .4); }
table.data tbody tr:hover { background: rgba(224, 174, 60, .22); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.data .rank { width: 3.2em; color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
table.data tbody tr:nth-child(1) .rank { color: #8a5d00; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 5px 14px; font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--parch-200); border: 1px solid var(--parch-500); border-radius: var(--radius-sm); }
.tabs a:hover { background: var(--parch-50); }
.tabs a[aria-current="true"] { background: var(--slate-800); color: var(--gold-soft); border-color: var(--gold-dark); }

/* -------- 11. Helpers ----------------------------------------------------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; font: 700 1rem var(--font-title); color: #2a1c05; background: var(--gold); border-radius: 50%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.kv dd { margin: 0; font-weight: 600; }
.server-addr { display: inline-block; margin: 4px 0; padding: 3px 10px; border-radius: 5px; background: var(--slate-800); color: var(--gold-soft); font-family: var(--font-mono); font-size: 1rem; font-weight: 700; user-select: all; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { padding: 8px 12px; border-left: 3px solid var(--ruby); background: rgba(178, 58, 44, .08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.feed time { display: block; font-size: .74rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { text-align: center; padding: 14px 8px 12px; border-radius: var(--radius); background: var(--slate-800); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--slate-600); }
.stat strong { display: block; font-family: var(--font-title); font-size: 1.9rem; line-height: 1.1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.stat span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.site-footer { grid-column: 1 / -1; text-align: center; padding: 6px 0 0; font-size: .8rem; color: var(--text-muted); }
.site-footer a { color: var(--gold-soft); border-bottom-color: rgba(242, 209, 126, .35); }

/* -------- 12. Section headings on the dark page ---------------------------- */
.paths, .spellbox { display: grid; gap: 14px; }
.paths-title { margin: 0; font-size: 1.35rem; color: #fff1cf; letter-spacing: .04em; }
.paths-title::after { content: ""; display: block; width: 54px; height: 3px; margin-top: 8px; background: var(--gold); border-radius: 2px; }
.sb-intro { margin: -6px 0 0; color: var(--text-muted); }

/* -------- 13. Vocation guide ---------------------------------------------- */
.path-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.path-tab {
	--c: var(--gold); display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; cursor: pointer; text-align: center; font: inherit; color: var(--ink);
	border: 0; border-radius: var(--radius); background: linear-gradient(180deg, var(--parch-50), var(--parch-200));
	box-shadow: 0 0 0 1px var(--parch-500), 0 4px 12px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s;
}
.path-tab.knight { --c: var(--knight); } .path-tab.paladin { --c: var(--paladin); } .path-tab.sorcerer { --c: var(--sorcerer); } .path-tab.druid { --c: var(--druid); }
.path-tab .icon { position: relative; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), var(--c) 65%); box-shadow: 0 0 0 2px var(--c), 0 2px 8px rgba(0, 0, 0, .35); }
.path-tab .icon img { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; max-width: none; image-rendering: pixelated; --dy: 0px; transform: translate(-50%, calc(-50% + var(--dy))); }
/* the pictures have the figure in the lower part of the frame: nudge each one to the middle of the ring */
.path-tab.knight .icon img { --dy: -18px; } .path-tab.paladin .icon img { --dy: -24px; }
.path-tab.sorcerer .icon img { --dy: -10px; } .path-tab.druid .icon img { --dy: -17px; }
.path-tab strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--c); }
.path-tab em { font-style: normal; font-size: .8rem; color: var(--ink-soft); }
.path-tab small { margin-top: 3px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.path-tab:hover { transform: translateY(-2px); }
.path-tab[aria-selected="true"] { box-shadow: 0 0 0 2px var(--c), 0 6px 16px rgba(0, 0, 0, .45); }

.path-panel {
	--c: var(--gold); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 26px; padding: 22px 24px; border-radius: var(--radius); color: var(--text);
	background: radial-gradient(ellipse 60% 90% at 0 0, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), var(--slate-800);
	box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--c) 70%, #000);
}
.path-panel[hidden] { display: none; }
.path-panel.knight { --c: var(--knight); } .path-panel.paladin { --c: var(--paladin); } .path-panel.sorcerer { --c: var(--sorcerer); } .path-panel.druid { --c: var(--druid); }
.path-panel h3 { margin: 0 0 8px; font-size: 1.6rem; color: #fff1cf; }
.path-panel h3 small { font-size: .8rem; font-weight: 400; color: var(--text-muted); }
.path-panel p { color: #e8dcbe; }
.path-panel .kit { font-size: .88rem; color: var(--text-muted); }
.path-panel .kit strong { color: var(--gold-soft); }
.path-panel .champ { margin: 16px 0 14px; padding: 8px 12px; border-left: 3px solid var(--c); background: rgba(255, 255, 255, .05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; }
.path-panel .champ a { color: var(--gold-soft); border-bottom-color: rgba(242, 209, 126, .35); }
.path-panel h4 { margin: 18px 0 8px; font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.pp-art { margin: 0; display: grid; place-items: center; align-self: stretch; border-radius: var(--radius); background: radial-gradient(ellipse 70% 62% at 50% 56%, color-mix(in srgb, var(--c) 36%, transparent), transparent 72%); }
.pp-art img { display: block; max-height: 330px; width: auto; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.spells { list-style: none; margin: 0; padding: 4px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.spells li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.spells li:last-child { border-bottom: 0; }
.spells .sp-name { color: #fff1cf; font-weight: 600; }
.spells code { padding: 2px 9px; border-radius: 4px; background: rgba(0, 0, 0, .35); color: var(--gold-soft); font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }

/* equipment window: every cell the same size, like the real client */
.gear { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.gear h4 { margin: 0 0 4px; }
.gear-intro { margin: 0 0 14px; font-size: .9rem; color: var(--text-muted); }
.gear-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gear-list li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; text-align: center; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gear-list img { image-rendering: pixelated; width: 64px; height: 64px; }
.gear-list li span:last-child { font-size: .8rem; line-height: 1.2; color: #fff1cf; }
.gear-doll { display: grid; grid-template-columns: repeat(3, minmax(0, 132px)); grid-auto-rows: 132px; grid-template-areas: "amulet helmet pack" "shield armor weapon" "ring legs ammo"; justify-content: center; gap: 10px; }
.gear-doll .slot-helmet { grid-area: helmet; } .gear-doll .slot-armor { grid-area: armor; } .gear-doll .slot-legs { grid-area: legs; }
.gear-doll .slot-shield { grid-area: shield; } .gear-doll .slot-weapon { grid-area: weapon; } .gear-doll .slot-pack { grid-area: pack; }
.gear-doll .slot-amulet { grid-area: amulet; } .gear-doll .slot-ring { grid-area: ring; } .gear-doll .slot-ammo { grid-area: ammo; }
.gear-doll .slot-pack { background: rgba(224, 174, 60, .12); gap: 2px; }
.gear-doll .pack-art { display: block; line-height: 0; }
.gear-doll .pack-svg { width: 52px; height: 52px; image-rendering: pixelated; }
.gear-doll .multi { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 0 2px; }
.gear-doll .multi img { width: 34px; height: 34px; }
.gear-doll .multi span { flex-basis: 100%; margin-top: 6px; }
.gear-doll .pack-items { display: flex; justify-content: center; }
.gear-doll .pack-items img { width: 38px; max-width: 45%; height: auto; }

/* -------- 14. Spell showcase ------------------------------------------------ */
.el-energy { --c: #6fd0ff; } .el-fire { --c: #ff8a2e; } .el-ice { --c: #8fe6ff; }
.el-earth { --c: #6fcf5a; } .el-death { --c: #b06cff; } .el-holy { --c: #ffd75a; } .el-physical { --c: #d7dde6; }
.spell-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.spell-card {
	margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); color: var(--text); background: var(--slate-800);
	box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--c) 65%, #000);
}
.spell-stage {
	position: relative; display: grid; place-items: center; height: 240px; border-bottom: 2px solid var(--c);
	background: radial-gradient(ellipse 55% 60% at 50% 55%, color-mix(in srgb, var(--c) 28%, transparent), transparent 72%), var(--slate-900);
}
.spell-el { position: absolute; left: 14px; top: 12px; padding: 2px 11px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #0d1512; background: var(--c); }
.spell-view { width: 176px; height: 176px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #0a0f0d; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, #000), 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); }
.spell-view img { width: 176px; height: 176px; image-rendering: pixelated; display: block; }
.spell-card figcaption { display: grid; gap: 6px; padding: 16px 20px 20px; }
.spell-words { justify-self: start; padding: 2px 10px; border-radius: 4px; background: rgba(0, 0, 0, .4); color: var(--c); font-family: var(--font-mono); font-size: .95rem; font-weight: 700; }
.spell-card strong { font-family: var(--font-title); font-size: 1.35rem; line-height: 1.15; color: #fff1cf; }
.spell-card figcaption p { margin: 0; font-size: .93rem; color: #e8dcbe; }
.spell-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spell-chips li { padding: 3px 10px; border-radius: 999px; font-size: .76rem; color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.spell-chips b { margin-right: 3px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }

/* vocation stats and pros/cons inside a panel */
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 78px 1fr 30px; align-items: center; gap: 10px; font-size: .78rem; color: var(--text-muted); }
.bar i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: var(--c); }
.bar b { text-align: right; color: #fff1cf; font-variant-numeric: tabular-nums; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: #e8dcbe; }
.proscons li { position: relative; padding-left: 20px; }
.proscons li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.proscons .pros li::before { content: "+"; color: #8fd06a; }
.proscons .cons li::before { content: "–"; color: #e0806f; }

/* spell list */
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--c, var(--slate-600)); white-space: nowrap; }
.chip.knight { --c: var(--knight); } .chip.paladin { --c: var(--paladin); color: #2a1c05; } .chip.sorcerer { --c: var(--sorcerer); } .chip.druid { --c: var(--druid); }
table.data td code { padding: 1px 7px; border-radius: 4px; background: var(--slate-800); color: var(--gold-soft); font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
table.data td .muted { font-size: .84rem; }
table.data tr[hidden] { display: none; }
.spell-table td:last-child { white-space: nowrap; min-width: 170px; }
.filter { padding: 5px 14px; font: 600 .82rem var(--font-body); color: var(--ink); background: var(--parch-200); border: 1px solid var(--parch-500); border-radius: var(--radius-sm); cursor: pointer; }
.filter:hover { background: var(--parch-50); }
.filter[aria-pressed="true"] { background: var(--slate-800); color: var(--gold-soft); border-color: var(--gold-dark); }

/* -------- 15. Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
	.proscons { grid-template-columns: 1fr; }
	.page { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 34px; gap: 16px; }
	.content { gap: 16px; }
	.nav-group ul { display: flex; flex-wrap: wrap; }
	.nav-group .stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; }
	.grid-2, .spell-cards { grid-template-columns: 1fr; }
	.path-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.path-panel { grid-template-columns: 1fr; padding: 18px; }
	.pp-art { min-height: 220px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav-group.server-info { display: none; }
	/* home banner on a phone: picture on top, wordmark and buttons on a dark panel below it */
	.masthead-tall::after { display: none; }
	.masthead-tall img { aspect-ratio: 16 / 10; object-position: 50% 100%; }
	.masthead-tall .brand-block { position: static; max-width: none; padding: 18px 18px 20px; background: var(--slate-900); border-top: 2px solid var(--gold); }
	.masthead-tall .brand { font-size: 2rem; }
}
@media (max-width: 560px) {
	.masthead img { height: 180px; object-position: 62% 30%; }
	.brand-block { left: 16px; gap: 10px; max-width: 78%; }
	.emblem { width: 40px; height: 40px; }
	.brand { font-size: 1.35rem; letter-spacing: .08em; }
	.tagline { margin-top: 4px; font-size: .62rem; letter-spacing: .2em; }
	.art-status { top: 8px; right: 8px; padding: 4px 10px; font-size: .74rem; }
	.masthead-tall .brand { font-size: 1.6rem; }
	.lead { font-size: .95rem; }
	.box > header h1, .box > header h2 { font-size: .92rem; letter-spacing: .1em; }
	.box > .body { padding: 16px 16px 14px; }
	.spell-stage { height: 210px; }
	.spell-view, .spell-view img { width: 150px; height: 150px; }
	.gear-doll { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 116px; }
	.gear-list img { width: 48px; height: 48px; }
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
	.btn, .nav-group li a, .tabs a { transition: background-color .15s, color .15s, transform .1s; }
}

/* -------- 21. Tibia-style sidebar menu -------------------------------------- */
/* Framed panels with a bronze title band, and every link sits next to an item sprite in an inventory-style slot. */
.nav-group {
	position: relative; border-radius: 3px; overflow: hidden;
	background:
		radial-gradient(circle at 8px calc(100% - 8px), var(--gold-soft) 0 1.6px, var(--gold-dark) 2px 3.4px, transparent 3.8px),
		radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), var(--gold-soft) 0 1.6px, var(--gold-dark) 2px 3.4px, transparent 3.8px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, rgba(0, 0, 0, .06) 2px 5px),
		linear-gradient(180deg, #1f2c27, #16211d);
	box-shadow: 0 0 0 1px #070b0a, 0 0 0 2px var(--gold-dark), 0 0 0 3px #070b0a, inset 0 0 0 1px rgba(242, 209, 126, .14), inset 0 0 30px rgba(0, 0, 0, .4), var(--shadow);
}
.nav-group h2 {
	display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 10px 12px 9px;
	font-family: var(--font-title); font-size: .86rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-align: center;
	color: var(--gold-soft); text-shadow: 0 1px 0 #000, 0 0 10px rgba(224, 174, 60, .35);
	background: linear-gradient(180deg, #4a3413 0%, #2c1f0c 55%, #1d1408 100%);
	border-bottom: 2px solid var(--gold-dark);
	box-shadow: inset 0 1px 0 rgba(242, 209, 126, .4), inset 0 -1px 0 rgba(0, 0, 0, .6);
}
.nav-group h2::before, .nav-group h2::after {
	content: ""; flex: 1 1 0; height: 7px; min-width: 10px;
	background:
		linear-gradient(var(--gold-dark), var(--gold-dark)) center / 100% 1px no-repeat,
		radial-gradient(circle at var(--end, 100%) 50%, var(--gold-soft) 0 2.2px, transparent 2.8px);
}
.nav-group h2::before { --end: 100%; background-position: center, right center; }
.nav-group h2::after { --end: 0%; background-position: center, left center; }
.nav-group ul { padding: 8px; gap: 5px; }
.nav-group li a, .nav-group li button.linklike {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 12px 6px 14px; text-align: left;
	font-family: var(--font-title); font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; color: #eadfc4;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .75); border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer;
}
/* a small gold diamond in front of every link */
.nav-group li a::before, .nav-group li button.linklike::before {
	content: ""; flex: 0 0 7px; height: 7px; transform: rotate(45deg); background: var(--gold-dark); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.nav-group li a::after, .nav-group li button.linklike::after {
	content: ""; margin-left: auto; width: 0; height: 0; opacity: 0; transform: translateX(-6px);
	border-left: 7px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.nav-group li a:hover, .nav-group li button.linklike:hover, .nav-group li a:focus-visible {
	color: #fff3cf; border-color: rgba(224, 174, 60, .5); outline: none;
	background: linear-gradient(90deg, rgba(224, 174, 60, .24), rgba(224, 174, 60, .04));
}
.nav-group li a:hover::before, .nav-group li button.linklike:hover::before, .nav-group li a:focus-visible::before { background: var(--gold-soft); box-shadow: 0 0 8px rgba(224, 174, 60, .8); }
.nav-group li a:hover::after, .nav-group li button.linklike:hover::after, .nav-group li a:focus-visible::after, .nav-group li a[aria-current="page"]::after { opacity: 1; transform: none; }
.nav-group li a[aria-current="page"] {
	color: #fff; border-color: var(--gold); font-weight: 700;
	background: linear-gradient(180deg, #9a3327, #5c1912);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 4px rgba(0, 0, 0, .4), 0 0 12px rgba(178, 58, 44, .5);
}
.nav-group li a[aria-current="page"]::before { background: var(--gold-soft); }
.nav-group li form.inline { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
	.nav-group li a, .nav-group li button.linklike { transition: background .15s, color .15s, border-color .15s, transform .12s; }
	.nav-group li a::after, .nav-group li button.linklike::after { transition: opacity .15s, transform .15s; }
	.nav-group li a:hover, .nav-group li button.linklike:hover { transform: translateX(3px); }
}
@media (max-width: 860px) {
	.nav-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav-group li a, .nav-group li button.linklike { font-size: .94rem; }
}

/* -------- 22. Monster pictures in the death lists ------------------------------ */
.mob { flex: 0 0 auto; display: inline-grid; place-items: center; width: 48px; height: 48px; }
.mob img { max-width: 48px; max-height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.feed li.has-mob { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed li.has-mob > div { min-width: 0; }
.mob-unknown { font: 700 1.6rem var(--font-title); color: var(--parch-500); opacity: .6; }
.mob-inline .mob-unknown { font-size: 1.1rem; }
.mob-inline { display: inline-flex; align-items: center; gap: 6px; }
.mob-inline .mob { width: 32px; height: 32px; }
.mob-inline .mob img { max-width: 32px; max-height: 32px; }
