/* Astral: retro RPG look with a modern layout (thin bordered panels, gold pixel headings,
   generous spacing), modelled on the Lovable prototype. Also restyles MyAAC's core
   TibiaCom-era markup (TableContainer, bgcolor tables) so built-in pages fit. */

:root {
	--bg: #121210;
	--panel: #1b1b16;
	--panel-2: #201f19;
	--inset: #141410;
	--border: #35342a;
	--border-strong: #4a4836;
	--text: #e8e4d6;
	--muted: #9d988a;
	--faint: #6f6b60;
	--gold: #e5b84f;
	--gold-dim: #8f7330;
	--accent-rgb: 229, 184, 79; /* --gold as r, g, b for rgba() */
	--gold-hover: #f6d68a;
	--gold-strong: #f2c964;
	--on-gold: #17130a; /* text on a --gold background */
	--gold-deep: #a5873a;
	--bar-fill: #8a7737;
	--bar-top: #c9ad52;
	--note-border: #6b5622;
	--note-text: #f1dca2;
	--bg-glow: #1f1e15;
	--green: #5fd068;
	--red: #e5574b;
	--radius: 4px;
	--pixel: 'Pixelify Sans', 'Courier New', monospace;
	--sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color-scheme: dark;
}

/* Accent try-outs. template.php sets <html data-accent="..."> (default below); while comparing,
   ?accent=gold|purple|blue on any page switches it and remembers the choice in this browser.
   Purple: gold becomes purple and the warm neutrals shift to a cool violet-grey. */
:root[data-accent="purple"] {
	--bg: #100e16;
	--panel: #17151f;
	--panel-2: #1c1926;
	--inset: #121019;
	--border: #2d2940;
	--border-strong: #433c5a;
	--text: #e7e3f0;
	--muted: #9b95ab;
	--faint: #6c667c;
	--gold: #b67cff;
	--gold-dim: #6b47a6;
	--accent-rgb: 182, 124, 255;
	--gold-hover: #d2adff;
	--gold-strong: #c597ff;
	--on-gold: #14081f;
	--gold-deep: #8350d0;
	--bar-fill: #5a3a8f;
	--bar-top: #9b6be0;
	--note-border: #4f3a78;
	--note-text: #e2d2ff;
	--bg-glow: #1c1630;
}

/* Blue accent (try-out): <html data-accent="blue">, with cool navy-grey neutrals. */
:root[data-accent="blue"] {
	--bg: #0e1118;
	--panel: #141821;
	--panel-2: #191e29;
	--inset: #10141b;
	--border: #283142;
	--border-strong: #3a4659;
	--text: #e3e8f0;
	--muted: #93a0b2;
	--faint: #66717f;
	--gold: #4fb3ff;
	--gold-dim: #2f6a9e;
	--accent-rgb: 79, 179, 255;
	--gold-hover: #9dd5ff;
	--gold-strong: #7cc6ff;
	--on-gold: #06121f;
	--gold-deep: #2f7fc4;
	--bar-fill: #24507a;
	--bar-top: #4f9ad8;
	--note-border: #2c4f73;
	--note-text: #cfe6ff;
	--bg-glow: #13203a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg) radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg-glow) 0%, transparent 70%) no-repeat;
	color: var(--text);
	font: 15px/1.55 var(--sans);
	min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 700; color: var(--gold); line-height: 1.25; letter-spacing: .03em; }
h2 { font-size: 1.05rem; text-transform: uppercase; }
h3 { font-size: .95rem; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold, .gold a { color: var(--gold); }
.up { color: var(--green); }
.on { color: var(--green); }
.off { color: var(--red); }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ panels */
.panel {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 8px 24px rgba(0, 0, 0, .25);
	padding: 16px 18px;
	margin-bottom: 16px;
	min-width: 0;
}
.panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.panel-title {
	display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
	margin: 0; font: 700 1rem/1.2 var(--pixel); color: var(--text); text-transform: uppercase; letter-spacing: .06em;
}
.panel-title .icon { color: var(--gold); }
.panel-title::after { content: ''; flex: 1; max-width: 260px; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.panel-meta { font-size: .85rem; color: var(--muted); white-space: nowrap; }
a.panel-meta { color: var(--gold); }
.more { display: block; text-align: right; margin-top: 12px; font-size: .9rem; }

/* ------------------------------------------------------------------ header */
.site-header { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid var(--border); font: 700 1.9rem/1 var(--pixel); color: var(--gold); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 0 18px rgba(var(--accent-rgb), .25); }
.brand:hover { color: var(--gold-hover); }
.brand-mark { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 2; }
/* Logo image: taller than the old text mark, so it overhangs the header padding a little instead of growing the bar. */
.brand-logo { display: block; height: 64px; width: auto; margin: -8px 0; filter: drop-shadow(0 0 10px rgba(120, 90, 255, .25)); transition: filter .15s; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 14px rgba(150, 120, 255, .45)); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav-group { position: relative; }
.nav-trigger, .nav-link {
	cursor: pointer; display: flex; align-items: center; gap: 7px; background: none; border: 0;
	padding: 8px 10px; border-radius: var(--radius); color: var(--text); font: 600 .95rem var(--sans); white-space: nowrap;
}
.nav-trigger .icon:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.nav-trigger:hover, .nav-link:hover, .nav-group:hover .nav-trigger, .nav-group.open .nav-trigger, .nav-group:focus-within .nav-trigger { background: rgba(var(--accent-rgb), .07); color: var(--gold); }
.nav-group:hover .nav-trigger .icon:last-child, .nav-group.open .nav-trigger .icon:last-child { transform: rotate(180deg); }
.nav-group::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge to the menu */
.dropdown {
	display: none;
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 60;
	background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .55); padding: 6px;
}
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.open .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 10px; border-radius: 3px; color: var(--text) !important; font-weight: 500; }
.dropdown a:hover { background: rgba(var(--accent-rgb), .1); color: var(--gold) !important; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.server-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); font-weight: 600; white-space: nowrap; }
.server-pill b { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons, tags, forms */
.btn, input[type=submit], input[type=button], button.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 9px 16px; border-radius: var(--radius); cursor: pointer;
	background: var(--gold); color: var(--on-gold) !important; border: 1px solid var(--gold);
	font: 700 .9rem/1.2 var(--sans);
}
.btn:hover, input[type=submit]:hover, input[type=button]:hover { background: var(--gold-strong); color: var(--on-gold) !important; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-outline { background: transparent; color: var(--gold) !important; border-color: var(--gold-dim); }
.btn-outline:hover { background: rgba(var(--accent-rgb), .1); color: var(--gold) !important; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); color: var(--gold) !important; }
.btn .icon { width: 16px; height: 16px; }
.link-muted { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 2px 7px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--inset); font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.tag-new { color: var(--gold); border-color: var(--gold-dim); }
.byline { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 5px; }
.byline .icon { width: 13px; height: 13px; }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--rarity); border-radius: 3px; color: var(--rarity); font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; background: rgba(0, 0, 0, .25); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input:not([type]), select, textarea {
	background: var(--inset); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius);
	padding: 9px 12px; font: inherit; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.form-grid { display: grid; gap: 14px; max-width: 440px; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; }
.form-grid input { width: 100%; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.search-row { display: flex; gap: 10px; }
.search-row input[name] { flex: 1; }

/* ------------------------------------------------------------------ ticker */
.ticker { padding-bottom: 12px; }
.ticker .panel-head { margin-bottom: 10px; }
.ticker-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-items { display: inline-flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-copy { display: inline-flex; gap: 34px; padding-right: 34px; min-width: var(--track, 100vw); }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-item::before { content: '■'; color: var(--gold); font-size: .6em; margin-right: 8px; vertical-align: middle; }
.ticker-empty { margin: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items { animation: none; } }
.rarity { color: var(--rarity, var(--text)); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .8em; }

/* ------------------------------------------------------------------ home */
.main { min-height: 50vh; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.grid-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-main > .panel, .news-more .panel { margin-bottom: 0; }
.grid-main, .news-more { margin-bottom: 16px; }
.news-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-summary { display: flex; flex-direction: column; min-width: 0; }
.news-summary-image { display: block; flex: none; height: 110px; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--gold-dim); border-radius: 8px; }
.news-summary-image:hover, .news-summary-image:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.news-summary-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.news-summary h3 { margin: 6px 0; font: 700 1.1rem/1.3 var(--sans); letter-spacing: 0; }
.news-summary h3 a { color: var(--text); }
.news-summary h3 a:hover { color: var(--gold); }
.news-summary p { flex: 1; margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .news-more { grid-template-columns: minmax(0, 1fr); } }
.featured { background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04) 45%, transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.featured-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.detail { margin: -6px 0 18px; color: var(--muted); font-size: .92rem; }
.headline { margin: 0 0 14px; font-size: 1.85rem; line-height: 1.3; text-transform: uppercase; }
.headline a { color: var(--gold); }
.lead { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changes li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.change-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; flex-shrink: 0; margin-top: 1px; background: var(--gold); color: var(--on-gold); }
.change-icon .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.change-removed .change-icon { background: #c4552d; }
.change-fixed .change-icon { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }
.change-removed, .change-fixed { color: var(--muted); }
.change-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.change-date { color: var(--muted); font-size: .76rem; opacity: .8; }
.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.news-card { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); color: var(--text); transition: border-color .15s; }
.news-card:hover { border-color: var(--gold-dim); color: var(--text); }
.news-card h3 { margin: 0 0 6px; font: 700 1.05rem/1.3 var(--sans); color: var(--text); letter-spacing: 0; }
.news-card p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.news-card .byline { margin-top: auto; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

.widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.widget { display: flex; flex-direction: column; }
.widget.center { text-align: center; }
.widget.center > :not(.panel-head) { align-self: center; }
.big-number { font: 700 3.4rem/1 var(--pixel); color: var(--text); margin: 4px 0 8px; }
.widget p { margin: 2px 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 50px; margin-top: auto; padding-top: 12px; }
.bars span { flex: 1; background: var(--bar-fill); border-top: 2px solid var(--bar-top); min-height: 4px; }
.avatar { width: 72px; height: 72px; display: grid; place-items: center; margin: 6px 0 10px; font: 700 2.2rem/1 var(--pixel); color: var(--text); background: var(--inset); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.avatar.gold { color: var(--gold); border-color: var(--gold-dim); }
.player-name { font: 700 1.35rem/1.2 var(--pixel); text-transform: uppercase; margin-bottom: 4px; }
.player-name a { color: var(--text); }
.player-name.gold a { color: var(--gold); }
.chart { width: 100%; height: 110px; display: block; }
.chart .grid { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .grid.dashed { stroke-dasharray: 3 4; stroke: var(--border); }
.chart .area { fill: rgba(var(--accent-rgb), .08); }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart circle { fill: var(--gold); }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin: 6px 0; }

.ranking, .drops { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
.ranking .rank { width: 24px; text-align: center; font: 700 .95rem var(--pixel); color: var(--muted); }
.ranking .rank-1 { color: var(--gold); }
.ranking .rank-2 { color: #cfd3da; }
.ranking .rank-3 { color: #c8834a; }
.ranking .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ranking .who a { color: var(--text); font-weight: 600; }
.ranking .who small { color: var(--muted); }
.ranking .lvl { color: var(--gold); font-weight: 700; white-space: nowrap; }
.drops li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-left: 3px solid var(--rarity); border-radius: var(--radius); background: var(--inset); }
.drops img { width: 32px; height: 32px; image-rendering: pixelated; flex-shrink: 0; }
.drops small { display: block; color: var(--muted); }
.rarity-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.rarity-side { display: flex; flex-direction: column; }
.rarity-side p { margin: 0 0 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
.rarity-side .more { margin-top: auto; padding-top: 12px; }

/* ------------------------------------------------------------------ tables */
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border-strong); }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:hover { background: rgba(var(--accent-rgb), .03); }
table.data.boxed { border: 1px solid var(--border); background: var(--inset); }
table.data.boxed thead { background: rgba(255, 255, 255, .02); }
table.data.compact td, table.data.compact th { padding: 7px 8px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------ character page */
.page:has(.page-sections) { background: none; border: 0; box-shadow: none; padding: 0; }
.page:has(.page-sections) > .panel-head { display: none; }
.char-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
/* Character information and Equipment share a row height; the grid sits centred in its panel. */
.char-grid > .panel { display: flex; flex-direction: column; }
.char-grid > .equip-panel .equipment { flex: 1; align-content: center; }
.char-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 16px; align-items: start; }
.char-info { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 16px; }
.info-rows { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 0; }
.info-rows dt, .info-rows dd { padding: 7px 0; border-bottom: 1px solid var(--border); margin: 0; }
.info-rows dt { color: var(--muted); }
.char-name { font: 700 1.05rem var(--pixel); color: var(--gold); text-transform: uppercase; }
.outfit-box { display: grid; place-items: center; height: 140px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
.outfit-box img { image-rendering: pixelated; }
.equipment {
	display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; justify-content: center;
	grid-template-areas: "amulet head backpack" "weapon armor shield" "ring legs ammo" ". boots .";
}
.equipment .slot { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); }
.equipment .slot span { font-size: .68rem; color: var(--faint); text-align: center; }
.equipment img { image-rendering: pixelated; }
.skill { margin-bottom: 10px; }
.skill-row { display: flex; justify-content: space-between; font-size: .92rem; }
.skill-row b { font-variant-numeric: tabular-nums; }
.skill-bar { height: 5px; background: var(--inset); border-radius: 2px; overflow: hidden; margin-top: 3px; }
.skill-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.status-online { color: var(--green); font-weight: 600; }

/* rarity items (plugins/astral-rarity-items) */
.item-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .item-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .item-cards { grid-template-columns: minmax(0, 1fr); } }
/* Skills span the page: the bars sit in columns. */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
.item-cards-title { margin: 18px 0 10px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.item-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-top: 2px solid var(--rarity); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--rarity) 8%, var(--inset)), var(--inset) 60px); }
.item-card-head { display: flex; gap: 10px; align-items: center; }
.item-card-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--rarity) 55%, var(--border)); border-radius: var(--radius); background: var(--panel); }
.item-card-icon img { image-rendering: pixelated; }
.item-card .item-name { font-weight: 700; color: var(--rarity); }
.item-card-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.item-card .mods { font-size: .88rem; line-height: 1.5; }
.item-card .mods b { color: var(--green); font-weight: 600; }

/* ------------------------------------------------------------------ MyAAC core markup */
.content { overflow-wrap: anywhere; }
.content table { border-collapse: collapse; max-width: 100%; }
.content td, .content th { padding: 7px 10px; }
.content [bgcolor], .content tr[style*="background"] { background: transparent !important; }
.content table[cellspacing="1"] { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); margin-bottom: 14px; }
.content table[cellspacing="1"] > tbody > tr:first-child[bgcolor], .content table[cellspacing="1"] > thead > tr { background: rgba(255, 255, 255, .025) !important; }
.content table[cellspacing="1"] td { border-bottom: 1px solid var(--border); }
.TableContainer { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; background: var(--inset); }
.TableContainer > table, .TableContainer table.Table1, .TableContainer table.Table2, .TableContainer table.Table3, .TableContainer table.Table5 { width: 100%; }
.CaptionContainer { border-bottom: 1px solid var(--border); padding: 10px 14px; background: rgba(255, 255, 255, .02); }
.CaptionContainer span[class^="Caption"] { display: none !important; }
.CaptionContainer .Text { font: 700 .85rem var(--pixel); color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.InnerTableContainer { padding: 10px 14px; }
.InnerTableContainer > table { width: 100%; }
.LabelV, .LabelV150, .LabelV200, .LabelH { font-weight: 600; color: var(--muted); white-space: nowrap; }
.TableContentContainer, .TableShadowContainer, .TableShadowContainerRightTop, .TableBottomShadow, .TableBottomLeftShadow, .TableBottomRightShadow { background: none !important; }
.red { color: var(--red); }
.SmallBox, .Messages, .MessageContainer { border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); padding: 12px; }
.BigButton { background: none !important; width: auto !important; height: auto !important; }
.BigButton .BigButtonOver, .ButtonText { display: none !important; }
.error, .warning, .success, .note { border-radius: var(--radius); padding: 10px 14px; margin: 8px 0 14px; border: 1px solid; }
.error { border-color: #6e2a22; background: rgba(229, 87, 75, .1); color: #ffb3aa; }
.warning, .note { border-color: var(--note-border); background: rgba(var(--accent-rgb), .08); color: var(--note-text); }
.success { border-color: #2c5e26; background: rgba(95, 208, 104, .1); color: #b6efb0; }
.news-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.news-item:last-of-type { border-bottom: 0; }
.news-item h3 { margin: 0 0 4px; font-size: 1.25rem; text-transform: uppercase; }
.news-meta { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }

.site-footer { color: var(--faint); font-size: .85rem; text-align: center; padding: 18px 0 30px; }
.site-footer a { color: var(--muted); }
.template-switch { margin-top: 8px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
	.brand { font-size: 1.5rem; }
	.brand-logo { height: 54px; margin: -6px 0; }
	.widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.site-header { flex-wrap: wrap; }
	.brand { border-right: 0; padding-right: 0; }
	.nav-toggle { display: inline-flex; margin-left: auto; background: transparent; color: var(--gold); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 7px 12px; font: 700 .9rem var(--sans); }
	.site-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; }
	.nav-open .site-nav { display: flex; }
	.dropdown { position: static; box-shadow: none; margin: 4px 0 8px 26px; }
	.header-actions { order: 2; }
	.grid-main, .grid-halves, .char-grid, .char-grid-2, .rarity-panel { grid-template-columns: minmax(0, 1fr); }
	.featured-body { grid-template-columns: minmax(0, 1fr); }
	.headline { font-size: 1.4rem; }
}
@media (max-width: 560px) {
	.widgets { grid-template-columns: minmax(0, 1fr); }
	.char-info { grid-template-columns: minmax(0, 1fr); }
	.panel { padding: 14px; }
	.brand { font-size: 1.3rem; }
	.brand-logo { height: 44px; margin: -4px 0; }
}

/* ------------------------------------------------------------------ filters & highscores */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filter-row:last-of-type { margin-bottom: 16px; }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); color: var(--text); font-weight: 500; font-size: .92rem; }
.pill:hover { border-color: var(--gold-dim); color: var(--gold); }
.pill.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.pager { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rank-cell { font: 700 .95rem var(--pixel); color: var(--muted); }
.rank-cell.rank-1, .rank-cell.rank-2, .rank-cell.rank-3 { color: var(--gold); }
.rank-cell .icon { width: 18px; height: 18px; color: var(--gold); }
a.player { color: var(--text); font-weight: 700; }
a.player:hover { color: var(--gold); }
td .dot { display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ one table style everywhere
   MyAAC's built-in tables (bgcolor rows, "white" header cells, TableContainer) get the same
   look as table.data.boxed: bordered inset box, small uppercase header, ruled rows. */
table.data.boxed, .content table[cellspacing="1"], .TableContainer { border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
table.data.boxed thead th, .content table[cellspacing="1"] tr:first-child > td.white,
.content table[cellspacing="1"] tr:first-child > td .white, .content td.white {
	background: rgba(255, 255, 255, .025); font: 700 .72rem var(--sans) !important; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) !important;
	padding: 10px 12px; border-bottom: 1px solid var(--border-strong);
}
.content td.white b, .content td.white a { color: var(--muted) !important; font-weight: 700; }
.content table[cellspacing="1"] td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.content table[cellspacing="1"] tr:last-child td { border-bottom: 0; }
.content table[cellspacing="1"] tbody tr:hover, table.data tbody tr:hover { background: rgba(var(--accent-rgb), .03); }
table.data.boxed td { padding: 10px 12px; }
table.data.boxed tbody tr:last-child td { border-bottom: 0; }
.content table[cellspacing="1"] a { color: var(--text); font-weight: 600; }
.content table[cellspacing="1"] a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ account, online, admin */
.account-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.account-hero .headline { margin-bottom: 8px; font-size: 1.5rem; }
.account-hero .tags { margin: 0; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
.stat-tile b { font: 700 1.15rem var(--pixel); }
th a.sort { color: var(--muted); }
th a.sort.active, th a.sort:hover { color: var(--gold); }
.online-name a { color: var(--text); font-weight: 700; }
.online-name a:hover { color: var(--gold); }
.online-name img { vertical-align: middle; margin-left: 4px; }
.admin-new { margin-left: 8px; }

.server-pill.nav-trigger { padding: 8px 12px; border: 1px solid var(--border-strong); background: var(--inset); }
.status-group .dropdown { left: auto; right: 0; min-width: 220px; padding: 12px 14px; }
.status-card .kv { gap: 8px 16px; font-size: .9rem; margin-bottom: 10px; }
.status-card a { display: inline; padding: 0; color: var(--gold) !important; font-size: .88rem; }
.status-card a:hover { background: none; }

/* ------------------------------------------------------------------ item power */
.power-table td, .power-table th { white-space: nowrap; }
.power-table td:first-child { white-space: normal; min-width: 240px; }
.power-table .sample-row th { font-weight: 500; text-transform: none; letter-spacing: 0; vertical-align: bottom; white-space: normal; word-break: normal; overflow-wrap: normal; max-width: 110px; font-size: .74rem; }
.power-table .sample-row img { image-rendering: pixelated; }
.power-table tr.unavailable td { opacity: .35; }

/* ------------------------------------------------------------------ discord, downloads */
.nav-link.nav-discord { color: #aab3ff; padding: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); }
.discord-logo { width: 20px; height: 20px; fill: currentColor; display: block; }
.nav-link.nav-discord:hover { background: #5865f2; border-color: #5865f2; color: #fff; }
.download-hero { padding: 6px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.download-hero .headline { font-size: 1.6rem; }
.download-hero .actions .btn { padding: 12px 22px; font-size: 1rem; }
ol.steps, ul.steps { padding-left: 1.3rem; display: grid; gap: 10px; }
.steps code, .content code { background: var(--inset); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; font-size: .88em; }

/* ------------------------------------------------------------------ boosted widget */
.boosted-art { display: grid; place-items: center; width: 72px; height: 72px; margin: 2px 0 8px; background: var(--inset); border: 1px solid var(--gold-dim); border-radius: var(--radius); }
.boosted-art img { image-rendering: pixelated; }
.boosted-boss { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px !important; }
.boosted-boss img { image-rendering: pixelated; margin: -6px 0; }

/* ------------------------------------------------------------------ changelog page */
.changelog-day { margin: 18px 0 8px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.changelog-day:first-child { margin-top: 0; }
.changelog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.changelog-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); }
.changelog-text { flex: 1; }
.changelog-list .tag { flex-shrink: 0; color: var(--muted); }
.change-badge { flex-shrink: 0; width: 76px; text-align: center; padding: 2px 0; border-radius: 3px; font: 700 .7rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .05em; border: 1px solid; }
.change-badge.change-added { color: #7fdc86; border-color: #2f6a33; background: rgba(95, 208, 104, .08); }
.change-badge.change-changed { color: var(--gold); border-color: var(--gold-dim); background: rgba(var(--accent-rgb), .08); }
.change-badge.change-fixed { color: #7fbfff; border-color: #2c5578; background: rgba(77, 184, 255, .08); }
.change-badge.change-removed { color: #ff8e84; border-color: #6e2a22; background: rgba(229, 87, 75, .08); }
.changelog-admin { flex-shrink: 0; }
@media (max-width: 560px) { .changelog-list li { flex-wrap: wrap; } .changelog-text { flex-basis: 100%; order: 3; } }

/* ------------------------------------------------------------------ create character */
.create-character h3 { margin: 20px 0 10px; font-size: .95rem; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.name-check { display: flex; align-items: center; gap: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input, .vocation-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); cursor: pointer; }
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.choice input:focus-visible + span, .vocation-card input:focus-visible + .vocation-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.vocation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vocation-card { position: relative; display: block; cursor: pointer; }
.vocation-body { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 12px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--inset); transition: border-color .15s; }
.vocation-body img { image-rendering: pixelated; }
.vocation-body b { font: 700 .95rem var(--pixel); text-transform: uppercase; }
.vocation-card:hover .vocation-body { border-color: var(--gold-dim); }
.vocation-card input:checked + .vocation-body { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(var(--accent-rgb), .15); }
.vocation-card input:checked + .vocation-body b { color: var(--gold); }

/* ------------------------------------------------------------------ news images (framed, bottom-right) */
.news-image { margin: 0; align-self: end; justify-self: end; width: 100%; max-width: 340px; }
.news-image a { display: block; padding: 6px; border: 1px solid var(--gold-dim); border-radius: 12px; background: linear-gradient(180deg, var(--panel-2), var(--inset)); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .07), 0 10px 26px rgba(0, 0, 0, .45); cursor: zoom-in; transition: border-color .15s, box-shadow .15s, transform .15s; }
.news-image a:hover, .news-image a:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18), 0 0 24px rgba(var(--accent-rgb), .22), 0 12px 28px rgba(0, 0, 0, .5); transform: translateY(-2px); outline: none; }
.news-image img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 8px; }
.news-image-stack { display: flex; flex-direction: column; gap: 12px; }
.news-item.with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 340px); gap: 22px; }
.featured-body.with-art { grid-template-columns: minmax(0, 1fr) minmax(180px, 320px); align-items: stretch; }
@media (max-width: 700px) { .news-item.with-image, .featured-body.with-art { grid-template-columns: minmax(0, 1fr); } .news-image { justify-self: center; } }
/* click-to-enlarge pop-over (template.php) */
.lightbox { padding: 0; border: 1px solid var(--gold-dim); border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08), 0 24px 60px rgba(0, 0, 0, .7); max-width: min(94vw, 1200px); max-height: 92vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 5, 3, .82); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: min(94vw, 1200px); max-height: 92vh; object-fit: contain; cursor: zoom-out; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-dim); background: rgba(13, 14, 10, .85); color: var(--gold); font: 700 20px/1 var(--sans); cursor: pointer; }
.lightbox-close:hover { border-color: var(--gold); }

/* ------------------------------------------------------------------ feature pages (randomstats, breaches) */
.feature-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 8px 0 24px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.feature-hero .headline { font-size: 1.7rem; margin: 6px 0 10px; text-transform: none; }
.feature-hero .lead { max-width: 62ch; }
.eyebrow { display: inline-block; font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 3px 10px; background: rgba(var(--accent-rgb), .06); }
.fact-row, .rarity-ladder { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.fact { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--inset); color: var(--muted); font-size: .88rem; }
.fact b { color: var(--text); margin-right: 3px; }
.rarity-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rarity) 55%, transparent); background: color-mix(in srgb, var(--rarity) 10%, transparent); color: var(--rarity); font-weight: 600; font-size: .86rem; }
.rarity-chip b { color: var(--text); font-weight: 600; margin-left: 4px; }
.feature-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.feature-art { margin: 0; }
.portal-art { width: 200px; height: 200px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(178, 102, 255, .28), rgba(178, 102, 255, .06) 55%, transparent 70%); }
.portal-art img { width: 128px; height: 128px; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(178, 102, 255, .6)); animation: portal-pulse 3.2s ease-in-out infinite; }
@keyframes portal-pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(178, 102, 255, .85)); } }
@media (prefers-reduced-motion: reduce) { .portal-art img { animation: none; } }
.tooltip-art { width: 300px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--rarity) 45%, var(--border-strong)); border-radius: 12px; background: linear-gradient(180deg, var(--panel-2), var(--inset)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .03), 0 0 28px color-mix(in srgb, var(--rarity) 18%, transparent), 0 14px 30px rgba(0, 0, 0, .45); font-size: .88rem; }
.tooltip-art .rarity { color: var(--rarity); }
.tooltip-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tooltip-head img { width: 32px; height: 32px; image-rendering: pixelated; }
.tooltip-line { color: var(--muted); padding: 2px 0; }
.tooltip-line b { color: var(--text); }
.tooltip-math { margin: 8px 0 4px; padding-top: 8px; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: .82rem; }
.tooltip-math b { color: var(--gold); }
.feature-title { margin: 28px 0 14px; display: flex; align-items: center; gap: 12px; }
.feature-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card, .step-cards li, .tier-card, .currency-card, .rarity-feature { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.feature-card h3, .step-cards h3, .tier-card h3, .currency-card h3 { margin: 8px 0 6px; text-transform: none; }
.feature-card p, .step-cards p, .tier-card p, .currency-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.feature-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--gold-dim); background: rgba(var(--accent-rgb), .08); color: var(--gold); }
.feature-icon .icon { width: 18px; height: 18px; }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 700 .95rem var(--pixel); }
.tier-cards, .rarity-cards-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rarity-cards-feature { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .rarity-cards-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rarity-cards-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rarity-feature { border-top: 3px solid var(--rarity); }
.rarity-feature h3 { margin: 0 0 8px; text-transform: none; }
.tier-card { --glow: transparent; --tier: var(--text); border-top: 3px solid var(--tier); }
.tier-riftborn { --glow: rgba(178, 102, 255, .55); --tier: #b266ff; }
.tier-abyssal { --glow: rgba(255, 51, 68, .55); --tier: #ff3344; }
.tier-name { padding: 10px 0 4px; text-align: center; }
.glow-name { display: inline-block; padding: 3px 14px; font: 700 .95rem var(--sans); color: #e6e6e6; text-shadow: 0 1px 0 #000, 0 0 2px #000; border-radius: 999px; background: radial-gradient(ellipse at center, var(--glow), transparent 72%); }
.tier-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.rarity-feature .tier-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 6px; }
/* Stat boxes sit along the bottom of every card, however long its text is. */
.tier-card { display: flex; flex-direction: column; }
.currency-card > div:last-child { display: flex; flex-direction: column; min-height: 100%; }
.tier-card > .tier-stats, .currency-card .tier-stats { margin-top: auto; padding-top: 12px; }
.tier-stats div { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.currency-card .material-stats { grid-template-columns: auto; width: fit-content; margin-left: auto; text-align: right; white-space: nowrap; }
.orb-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.orb-strip .more { margin: 0 0 0 auto; }
.currency-cards.material-cards, .step-cards.material-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
table.data th.num { text-align: right; }
.currency-cards + .table-scroll { margin-top: 14px; }
@media (max-width: 900px) { .currency-cards.material-cards, .step-cards.material-steps { grid-template-columns: minmax(0, 1fr); } }
.material-art { display: grid; place-items: center; width: 440px; max-width: 100%; aspect-ratio: 8 / 5; background: radial-gradient(ellipse closest-side, rgb(24, 26, 33) 55%, rgba(24, 26, 33, .6) 76%, transparent); }
.material-art img { display: block; width: 76%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 7px rgba(178, 102, 255, .45)); }
/* Sockets & Gems hero: the four gems in a row at 2x, not stretched like the orb art. */
.material-art.gem-art { display: flex; justify-content: center; align-items: center; gap: 18px; }
.material-art.gem-art img { width: 64px; height: 64px; }
.tier-stats div { padding: 6px 8px; border-radius: 6px; background: var(--inset); border: 1px solid var(--border); }
.tier-stats dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.tier-stats dd { margin: 2px 0 0; font-weight: 700; color: var(--text); }
.currency-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.currency-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.currency-art { margin: 0; width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--gold-dim); border-radius: 12px; background: radial-gradient(circle, rgba(var(--accent-rgb), .14), var(--inset) 70%); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .06); }
.currency-art img { width: 64px; height: 64px; image-rendering: pixelated; }
details.modifier-group { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 10px; }
details.modifier-group > summary { cursor: pointer; padding: 12px 16px; font: 700 .95rem var(--pixel); color: var(--gold); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.modifier-group > summary::-webkit-details-marker { display: none; }
details.modifier-group > summary::before { content: '▸'; margin-right: 4px; transition: transform .15s; }
details.modifier-group[open] > summary::before { transform: rotate(90deg); }
details.modifier-group > summary > :first-child { margin-left: auto; }
details.modifier-group .table-scroll { padding: 0 12px 12px; }
@media (max-width: 760px) { .feature-hero { grid-template-columns: minmax(0, 1fr); } .feature-art { justify-self: center; } .tooltip-art { width: 100%; max-width: 340px; } .currency-cards { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ library: monsters & spells */
.monster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.monster-card { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; text-align: center; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.monster-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); color: var(--text); }
.monster-card img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.monster-name { font-weight: 600; line-height: 1.2; }
.monster-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.monster-hero .headline { margin: 0 0 6px; font-size: 1.6rem; text-transform: none; }
.monster-portrait { margin: 0; width: 112px; height: 112px; display: grid; place-items: center; border: 1px solid var(--gold-dim); border-radius: 14px; background: radial-gradient(circle, rgba(var(--accent-rgb), .12), var(--inset) 70%); }
.monster-portrait img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.monster-stats { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-width: 560px; }
.tag-boss { color: #ff8e84; border-color: #6e2a22; }
/* Buy Coins page */
.coin-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.coin-package { position: relative; cursor: pointer; }
.coin-package input { position: absolute; opacity: 0; pointer-events: none; }
.coin-package-body { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 16px 12px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); text-align: center; transition: border-color .15s; }
.coin-package:hover .coin-package-body { border-color: var(--gold-dim); }
.coin-package input:checked + .coin-package-body { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.coin-package input:focus-visible + .coin-package-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.coin-amount { font: 700 1.6rem var(--pixel); color: var(--gold); }
.coin-label { color: var(--muted); font-size: .85rem; }
.coin-price { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.coin-checkout { max-width: 420px; }
.paypal-message { min-height: 1.4em; margin: 10px 0 0; }
.paypal-message.success { color: #7bd88f; }
.paypal-message.error { color: #ff8e84; }
/* Custom Spells page */
.spell-card { display: flex; flex-direction: column; }
.spell-card .tags { margin-bottom: 0; }
.spell-card p.spell-words { margin: 0 0 8px; }
.spell-card p.spell-words code { color: var(--gold); font-size: .95rem; }
.spell-card p.spell-stats { margin-top: auto; padding-top: 10px; color: var(--muted); }
.spell-ultimate { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .12); }
.element-row { display: flex; flex-wrap: wrap; gap: 8px; }
.element { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--inset); font-size: .88rem; }
.element b { margin-left: 4px; }
.element.strong b, .element.immune b { color: var(--green); }
.element.weak b { color: #ff8e84; }
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.loot-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--inset); }
.loot-item img, .loot-blank { width: 32px; height: 32px; image-rendering: pixelated; }
.loot-name { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.loot-chance { font-weight: 700; color: var(--gold); font-size: .88rem; }
.inline-item { vertical-align: middle; margin: -6px 6px -6px 0; image-rendering: pixelated; }
@media (max-width: 560px) { .monster-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .monster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
/* feature grids fill the row on wide screens, then fold */
@media (max-width: 1000px) { .feature-cards, .tier-cards, .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-cards, .tier-cards, .step-cards, .currency-cards { grid-template-columns: minmax(0, 1fr); } }
/* checkbox + text on one line (login "Remember me", create account terms) */
.form-grid label.check-row, label.check-row { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); cursor: pointer; }
label.check-row input[type=checkbox] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--gold); }

/* ------------------------------------------------------------------ account forms (create account) */
.form-card { padding: 18px 20px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.form-card-title { margin: 0 0 14px; }
.form-card h3 { margin: 18px 0 10px; text-transform: none; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.input-check { display: flex; align-items: center; gap: 8px; }
.input-check input, .input-check select { flex: 1; min-width: 0; }
.input-check img { flex: none; }
.field-error { color: #ff8e84; font-size: .85rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
label.has-error input, label.has-error select { border-color: #6e2a22; }
.create-account .form-actions { margin-top: 14px; }
@media (max-width: 640px) { .form-grid.two { grid-template-columns: minmax(0, 1fr); } }
.newcomer-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--gold-dim); border-radius: 10px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(var(--accent-rgb), .16), transparent 70%), var(--inset); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .05); }
.newcomer-banner b { color: var(--gold); font-size: 1.02rem; }
.newcomer-banner p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.newcomer-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 700 1.4rem var(--pixel); box-shadow: 0 0 22px rgba(var(--accent-rgb), .45); }

/* character page: vitals and rarity-glowing equipment slots (colour = the item's rarity) */
.vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.vital { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--inset); border-left: 3px solid var(--vital, var(--gold)); }
.vital span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.vital b { font-size: 1.05rem; }
.vital-hp { --vital: #e5574b; }
.vital-mp { --vital: #4d8dff; }
.vital-cap { --vital: var(--gold); }
.equipment .slot.rarity-slot { border-color: var(--rarity); box-shadow: inset 0 0 12px color-mix(in srgb, var(--rarity) 45%, transparent), 0 0 10px color-mix(in srgb, var(--rarity) 55%, transparent); }
.equipment .slot.rarity-godly { animation: godly-slot 1.6s ease-in-out infinite; }
@keyframes godly-slot { 50% { box-shadow: inset 0 0 16px color-mix(in srgb, var(--rarity) 65%, transparent), 0 0 18px color-mix(in srgb, var(--rarity) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { .equipment .slot.rarity-godly { animation: none; } }

/* Sockets (character page): dots along the bottom of a slot like the client; gems on the item cards.
   Gem colours match client/mods/astral_sockets: ruby, sapphire, emerald, topaz. */
.equipment .slot { position: relative; }
.socket-dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.socket-dots i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; border: 1px solid #0008; }
.socket-dots i.gem-empty { background: transparent; border-color: var(--faint); }
.socket-dots i.gem-54285 { background: #ff6a6a; }
.socket-dots i.gem-54286 { background: #6ab8ff; }
.socket-dots i.gem-54287 { background: #5fe07a; }
.socket-dots i.gem-54288 { background: #ffd84a; }
.socket-gems { list-style: none; margin: 4px 0 0; padding: 4px 0 0; border-top: 1px dashed var(--border-strong); display: grid; gap: 2px; }
.socket-gems li { display: flex; align-items: center; gap: 6px; }
.socket-gems img { image-rendering: pixelated; }
.socket-gems i.gem-empty { width: 8px; height: 8px; margin: 0 5px; border-radius: 50%; display: inline-block; border: 1px solid var(--faint); }


/* today's world buff, right of the global drops heading */
.ticker .panel-head { flex-wrap: wrap; gap: 8px 14px; }
.world-buff-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(var(--accent-rgb), .08); font-size: .85rem; white-space: nowrap; }
.world-buff-chip b { color: var(--gold); }
.world-buff-chip .icon { width: 14px; height: 14px; color: var(--gold); }

/* home page: the featured post in full (first paragraph as the lead) */
.featured-text { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.featured-text > p:first-child { color: var(--text); font-size: 1.05rem; }
.featured-text p { margin: 0 0 10px; }
.featured-text ul { margin: 0 0 10px; padding-left: 1.2rem; display: grid; gap: 6px; }
.featured-text b, .featured-text strong { color: var(--text); }

/* home page: Latest news and What's new share one fixed height, and the two older posts below are
   half as tall. Long text fades out and the link to the article stays visible underneath. */
@media (min-width: 901px) {
	.grid-main > .panel { height: 660px; display: flex; flex-direction: column; overflow: hidden; }
	.news-summary { height: 330px; overflow: hidden; }
	.news-summary p { min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
	.grid-main .featured-body { flex: 1; min-height: 0; align-items: stretch; }
	.grid-main .featured-body > div:first-child { display: flex; flex-direction: column; min-height: 0; }
	.grid-main .featured-text { flex: 1; min-height: 0; overflow: hidden; margin-bottom: 12px;
		-webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
	.grid-main .changes { flex: 1; min-height: 0; overflow: hidden; align-content: start;
		-webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
	.grid-main .news-image img { max-height: 220px; }
}

/* Elite Monsters page */
.elite-art { display: grid; justify-items: center; align-content: center; gap: 4px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 180, 255, .32), rgba(90, 180, 255, .07) 58%, transparent 72%); }
.elite-art img { width: 144px; height: 144px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 16px rgba(110, 195, 255, .7)); }
.elite-art .elite-name { --glow: rgba(255, 196, 60, .55); }
.affix-table .affix-name { color: var(--affix); }
.elite-name { --glow: rgba(255, 196, 60, .6); }
.affix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.affix-card { padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--affix); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.affix-card h3 { margin: 0 0 6px; color: var(--affix); text-transform: none; }
.affix-card p { margin: 0; font-size: .9rem; }
.affix-general { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.affix-general .tier-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .affix-grid, .affix-general { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .affix-grid, .affix-general { grid-template-columns: minmax(0, 1fr); } }
.tier-grid th, .tier-grid td { white-space: nowrap; }
/* Random Item Stats: the effect sits under the modifier's name and wraps, so every tier column fits. */
.modifier-group .tier-grid td:first-child { white-space: normal; min-width: 200px; max-width: 300px; }
.modifier-group .modifier-effect { margin-top: 2px; font-weight: 400; line-height: 1.35; }
.tier-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tier-item { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--border); border-top: 3px solid var(--rarity); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.tier-item header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier-item header img { width: 32px; height: 32px; image-rendering: pixelated; }
.tier-item .item-name { color: var(--rarity); }
.tier-item ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tier-item li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: .92rem; }
.tier-item li b { color: var(--green); font-weight: 600; }
.tier-item > p { margin: auto 0 0; }
.tier-tag { text-align: center; padding: 1px 0; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--muted); font: 700 .72rem var(--sans); }
.tier-tag.top { color: var(--gold); border-color: var(--gold-dim); }
.tier-tag.unique { color: #d9a6ff; border-color: #7b4bb0; }
/* Tier badges in a sample tooltip (Random Item Stats hero). */
.tooltip-line:has(.tier-tag) { display: flex; align-items: baseline; gap: 8px; }
.tooltip-line .tier-tag { flex: 0 0 auto; min-width: 28px; padding: 1px 4px; line-height: 1.2; }
@media (max-width: 720px) { .tier-items { grid-template-columns: minmax(0, 1fr); } }
.tier-ladder { margin-bottom: 18px; }
.tier-ladder header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tier-ladder header img { width: 32px; height: 32px; image-rendering: pixelated; }
.tier-perfect { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tier-perfect .tier-item { padding: 10px; }
.tier-perfect .tier-item ul { margin: 8px 0 0; }
.tier-perfect .tier-item li { font-size: .84rem; }
@media (max-width: 1100px) { .tier-perfect { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tier-perfect { grid-template-columns: minmax(0, 1fr); } }

/* Server Info page (system/pages/ots-info.php) */
.coin-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; border-color: var(--gold-dim); }
.coin-panel img { image-rendering: pixelated; }
.coin-panel h3 { margin-top: 0; }
.coin-notes { margin: 10px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.coin-panel .actions { margin: 12px 0 0; }
.info-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .info-columns { grid-template-columns: minmax(0, 1fr); } .coin-panel { grid-template-columns: minmax(0, 1fr); } }

/* Map Feature posts (news type MAP_FEATURE): the map image runs the full width, the transparent
   banner sits over it (centred, never cropped), and the title and description follow underneath.
   The banner ignores the pointer so a click still opens the full-size map image. */
.map-feature-art { position: relative; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--gold-dim); border-radius: 12px; background: var(--inset); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .07), 0 12px 30px rgba(0, 0, 0, .5); }
.map-feature-art > a { display: block; cursor: zoom-in; }
.map-feature-image { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: center; transition: transform .4s ease; }
.map-feature-art:hover .map-feature-image { transform: scale(1.02); }
.map-feature-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 62%, rgba(0, 0, 0, .55)); }
.map-feature-banner { position: absolute; left: 0; right: 0; bottom: 14%; z-index: 1; display: grid; justify-items: center; gap: 2px; padding: 14px 24px 16px; text-align: center; pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(8, 6, 4, .62) 18%, rgba(8, 6, 4, .62) 82%, transparent);
	border-top: 1px solid rgba(var(--accent-rgb), .55); border-bottom: 1px solid rgba(var(--accent-rgb), .55); backdrop-filter: blur(2px); }
.map-feature-headline { color: var(--gold); font: 700 clamp(1.3rem, 3.4vw, 2.3rem)/1.15 var(--pixel); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 22px rgba(var(--accent-rgb), .35); }
.map-feature-tagline { color: #f3ead8; font: 600 clamp(.72rem, 1.5vw, .95rem)/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.news-summary-map .map-feature-banner { bottom: 10%; padding: 6px 12px 8px; }
.news-summary-map .map-feature-headline { font-size: 1.05rem; }
.news-summary-map .map-feature-tagline { font-size: .62rem; letter-spacing: .16em; }
.map-feature-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: 700 .72rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.map-feature-text h3 { margin: 0 0 4px; }
.news-item.map-feature { display: block; }
.map-feature-home .map-feature-text .headline { margin-bottom: 8px; }
.news-summary-map .map-feature-art { height: 150px; margin-bottom: 12px; border-radius: 8px; box-shadow: none; }
.news-summary-map .map-feature-image { height: 100%; aspect-ratio: auto; }
.news-summary-map .map-feature-tag { top: 8px; left: 8px; font-size: .65rem; }
@media (min-width: 901px) {
	.grid-main .map-feature-home { flex: 1; min-height: 0; display: flex; flex-direction: column; }
	.grid-main .map-feature-home .map-feature-art { flex: none; }
	.grid-main .map-feature-home .map-feature-image { max-height: 360px; }
	.grid-main .map-feature-home .map-feature-text { display: flex; flex-direction: column; flex: 1; min-height: 0; }
}

/* Bounty Board page */
.bounty-art { display: grid; justify-items: center; align-content: center; gap: 6px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 200, 122, .28), rgba(232, 200, 122, .06) 58%, transparent 72%); }
.bounty-art img { width: 128px; height: 128px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 14px rgba(232, 200, 122, .55)); }
.bounty-art figcaption { color: var(--muted); font-size: .85rem; }
.bounty-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bounty-kind { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--border); border-left: 3px solid var(--kind); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.bounty-kind h3 { margin: 0 0 6px; color: var(--kind); text-transform: none; }
.bounty-kind p { margin: 0; color: var(--muted); font-size: .92rem; }
.bounty-kind .bounty-reward { margin-top: 8px; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.bounty-kind .bounty-reward .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.bounty-kind-art, .unique-art { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--inset); }
.bounty-kind-art img, .unique-art img { max-width: 64px; max-height: 64px; image-rendering: pixelated; }
.unique-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.unique-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.unique-card.unique-alive { border-color: rgba(34, 232, 200, .55); box-shadow: 0 0 0 1px rgba(34, 232, 200, .15), 0 0 18px rgba(34, 232, 200, .12); }
.unique-alive .unique-art { border-color: rgba(34, 232, 200, .5); background: radial-gradient(circle, rgba(34, 232, 200, .18), var(--inset) 70%); }
.unique-name { --glow: rgba(34, 232, 200, .45); padding: 2px 10px; margin-left: -10px; }
.unique-meta { margin: 4px 0; color: var(--muted); font-size: .88rem; }
.unique-tier { display: inline-block; padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: 5px; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.unique-tier.tier-lesser { color: #9fd36a; border-color: #4f7a33; }
.unique-tier.tier-greater { color: #4db8ff; border-color: #2a6690; }
.unique-tier.tier-dread { color: #ff6a6a; border-color: #8f3434; }
.unique-status { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.unique-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.unique-alive .unique-status { color: #22e8c8; }
.unique-alive .unique-status .dot { background: #22e8c8; box-shadow: 0 0 8px #22e8c8; }
.unique-ready .unique-status .dot { background: var(--gold); }
.unique-kills { margin-top: 4px; }
.feature-subtitle { margin: 22px 0 10px; text-transform: none; }
.feature-cards + .muted.small { margin-top: 12px; }
@media (max-width: 1000px) { .unique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .bounty-kinds, .unique-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hunting-ground mastery: character profile panel and the Hunting Grounds page */
.ground-list { display: grid; gap: 8px; }
.ground-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--rank); border-radius: 8px; background: var(--inset); }
.ground-row.is-warden { border-color: var(--gold-dim); border-left-color: var(--gold); box-shadow: 0 0 14px rgba(240, 196, 64, .12); }
.ground-name { font-weight: 700; color: var(--text); }
.ground-rank b { color: var(--rank); font-size: .9rem; }
.ground-bar { height: 7px; margin: 5px 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ground-bar span { display: block; height: 100%; background: var(--rank); border-radius: 4px; }
.warden-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--gold-dim); color: var(--gold); background: rgba(240, 196, 64, .1); font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.rank-pill { display: inline-block; padding: 1px 8px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--rank) 55%, transparent); color: var(--rank); font: 700 .74rem var(--sans); white-space: nowrap; }
.ground-search { display: flex; gap: 8px; margin: 0 0 14px; }
.ground-search input { flex: 1; }
.warden-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.warden-card { padding: 12px 14px; border: 1px solid var(--gold-dim); border-radius: 10px; background: linear-gradient(180deg, rgba(240, 196, 64, .07), var(--panel)); }
.warden-card h3 { margin: 0 0 4px; font-size: .98rem; text-transform: none; }
.warden-card .who { color: var(--gold); font-weight: 700; }
@media (max-width: 900px) { .warden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ground-row { grid-template-columns: minmax(0, 1fr); } .warden-grid { grid-template-columns: minmax(0, 1fr); } }
.warden-timeline { margin: 0 0 8px; padding-left: 1.3rem; display: grid; gap: 8px; }
.warden-timeline li { padding-left: 4px; color: var(--muted); }
.warden-timeline b { color: var(--gold); }
#wardens + .lead { max-width: 80ch; }
