:root {
  color-scheme: dark;
  --bg: #0d100f;
  --bg-raised: #121614;
  --surface: #171c19;
  --surface-2: #1c231f;
  --surface-3: #242c27;
  --border: #2c352f;
  --border-strong: #3a463e;
  --text: #f3f0e6;
  --text-soft: #c7cbc5;
  --muted: #929c95;
  --gold: #d5ad5c;
  --gold-soft: #f0d59c;
  --gold-wash: rgba(213, 173, 92, .12);
  --green: #72c89c;
  --green-wash: rgba(114, 200, 156, .12);
  --red: #e17169;
  --red-wash: rgba(225, 113, 105, .1);
  --blue: #79a9d1;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --container: 1240px;
  --transition: 160ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.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; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-small { width: 16px; height: 16px; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); background: var(--gold); color: #17130b; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(13, 16, 15, .9); backdrop-filter: blur(18px); }
.header-inner { position: relative; min-height: 74px; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; color: #17130b; background: linear-gradient(145deg, var(--gold-soft), #b58232); clip-path: polygon(50% 0, 94% 18%, 87% 76%, 50% 100%, 13% 76%, 6% 18%); filter: drop-shadow(0 5px 12px rgba(213, 173, 92, .15)); }
.brand-mark span { font-size: 13px; font-weight: 900; letter-spacing: -.5px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.015em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; align-self: stretch; justify-self: center; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; display: grid; place-items: center; min-height: 40px; padding: 0 13px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; font-weight: 700; transition: color var(--transition), background var(--transition); }
.primary-nav a:hover, .primary-nav a:focus-visible { background: rgba(255,255,255,.035); color: var(--text); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a { background: var(--gold-wash); color: var(--gold-soft); }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after, .primary-nav .current-menu-ancestor > a::after { content: ""; position: absolute; inset: auto 12px -17px; height: 2px; background: var(--gold); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.realm-picker { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.realm-picker select, .compact-select select { appearance: none; border: 0; outline: 0; background: transparent; color: var(--text-soft); font-weight: 650; }
.realm-picker select { padding-right: 17px; font-size: 13px; }
.realm-picker .icon, .compact-select .icon { position: absolute; right: 10px; pointer-events: none; transform: rotate(90deg); color: var(--muted); }
.realm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.menu-toggle { display: none; }
.menu-close-icon { display: none; }

.lookup-section { position: relative; overflow: visible; border-bottom: 1px solid var(--border); background: radial-gradient(900px 360px at 50% -70px, rgba(213, 173, 92, .13), transparent 70%), linear-gradient(180deg, #121714 0%, var(--bg-raised) 100%); }
.lookup-section::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.lookup-inner { position: relative; padding: 50px 0 0; }
.lookup-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 25px; }
.eyebrow { margin-bottom: 9px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.lookup-heading-row h1 { max-width: 720px; margin-bottom: 10px; font-size: clamp(34px, 4vw, 52px); font-weight: 750; letter-spacing: -.045em; }
.lookup-heading-row > div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.sync-note { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; padding: 10px 0 8px; color: var(--green); }
.sync-note span { display: grid; }
.sync-note strong { color: var(--text-soft); font-size: 13px; }
.sync-note small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.search-shell { position: relative; z-index: 10; }
.global-search { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 12px; min-height: 64px; padding: 8px 8px 8px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #1a201d; box-shadow: var(--shadow); transition: border-color var(--transition), box-shadow var(--transition); }
.global-search:focus-within { border-color: rgba(213, 173, 92, .65); box-shadow: 0 0 0 3px var(--gold-wash), var(--shadow); }
.search-icon { color: var(--gold); }
.global-search input { min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.global-search input::placeholder { color: #7f8982; }
.global-search kbd { min-width: 26px; padding: 3px 7px; border: 1px solid var(--border); border-bottom-color: var(--border-strong); border-radius: 5px; background: var(--surface-2); color: var(--muted); font-family: inherit; font-size: 11px; text-align: center; }
.search-clear { display: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.search-clear.is-visible { display: grid; }
.search-clear:hover { background: var(--surface-3); color: var(--text); }
.search-submit { min-width: 108px; align-self: stretch; border: 0; border-radius: var(--radius-sm); background: var(--gold); color: #19140b; font-weight: 800; transition: background var(--transition), transform var(--transition); }
.search-submit:hover { background: var(--gold-soft); }
.search-submit:active { transform: translateY(1px); }
.search-results { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #181e1b; box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.search-results-header { padding: 12px 16px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-result { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 0; border-top: 1px solid rgba(255,255,255,.04); background: transparent; color: var(--text); text-align: left; }
.search-result:hover, .search-result:focus-visible { outline: 0; background: var(--surface-3); }
.result-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: var(--gold-wash); color: var(--gold-soft); font-size: 11px; font-weight: 850; }
.result-copy { display: grid; min-width: 0; }
.result-copy strong { font-size: 13px; }
.result-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.result-type { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-no-results { padding: 22px; color: var(--muted); font-size: 13px; text-align: center; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; border-right: 1px solid var(--border); border-left: 1px solid var(--border); }
.metric { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 16px 22px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); background: rgba(19, 24, 21, .58); }
.metric:last-child { border-right: 0; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; color: var(--gold); }
.metric > span:last-child { display: grid; }
.metric strong { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.metric small { color: var(--muted); font-size: 11px; }
.metric-status .metric-icon { color: var(--green); }

.content-section { padding: 43px 0 70px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.feed-panel, .side-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); }
.feed-panel { overflow: hidden; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; }
.section-heading .eyebrow, .side-card-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2, .side-card h2 { margin-bottom: 0; font-size: 23px; font-weight: 750; letter-spacing: -.035em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-soft); font-size: 12px; font-weight: 750; }
.text-link .icon { transition: transform var(--transition); }
.text-link:hover .icon { transform: translateX(3px); }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 24px; border-block: 1px solid var(--border); background: rgba(255,255,255,.015); }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip { min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; }
.filter-chip:hover { color: var(--text-soft); background: var(--surface); }
.filter-chip.is-active { border-color: rgba(213,173,92,.28); background: var(--gold-wash); color: var(--gold-soft); }
.compact-select { position: relative; flex: 0 0 auto; display: flex; align-items: center; min-height: 34px; padding: 0 27px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.compact-select select { font-size: 11px; }
.compact-select .icon { right: 7px; }
.feed-meta { display: flex; justify-content: space-between; gap: 16px; padding: 11px 24px; color: #7f8982; font-size: 10px; letter-spacing: .03em; }
.legend-dot { display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 9px; border-radius: 50%; }
.legend-kill { background: var(--green); }
.legend-death { background: var(--red); }

.kill-list { border-top: 1px solid var(--border); }
.kill-list[aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity var(--transition); }
.kill-row { position: relative; display: grid; grid-template-columns: minmax(150px, 1fr) 72px minmax(150px, 1fr) 112px; gap: 15px; align-items: center; min-height: 148px; padding: 18px 24px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.kill-row:hover { background: rgba(255,255,255,.026); }
.kill-row:focus-within { background: rgba(255,255,255,.026); outline: 1px solid rgba(213,173,92,.45); outline-offset: -1px; }
.kill-row-link { position: absolute; z-index: 1; inset: 0; }
.kill-row a:not(.kill-row-link) { position: relative; z-index: 2; }
.kill-row::before { content: ""; position: absolute; inset: 18px auto 18px 0; width: 2px; background: transparent; }
.kill-row:hover::before { background: var(--gold); }
.combatant { min-width: 0; }
.combatant-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.combatant-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.combatant.killer .combatant-label { color: var(--green); }
.combatant.victim .combatant-label { color: var(--red); }
.combatant-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 2px; }
.combatant-name a { overflow: hidden; font-size: 15px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.combatant-name a:hover { color: var(--gold-soft); }
.combatant-name small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.guild-link { display: block; overflow: hidden; margin-bottom: 10px; color: var(--blue); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.guild-link:hover { color: #a8cae6; }
.weapon-used { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; align-items: baseline; margin: 7px 0; min-width: 0; }
.weapon-used span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.weapon-used strong { overflow: hidden; color: var(--text-soft); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gear-strip { display: flex; gap: 4px; }
.gear-item { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #39433d; border-radius: 5px; background: linear-gradient(145deg, #2b342f, #202622); color: #bfc7c1; font-size: 8px; font-weight: 800; letter-spacing: -.02em; }
.gear-item.is-empty { border-style: dashed; color: #56605a; background: transparent; }
.gear-item img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.fight-mark { display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; }
.fight-mark-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--gold); }
.fight-mark time { font-size: 9px; white-space: nowrap; }
.fight-mark small { max-width: 70px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.kill-summary { justify-self: end; text-align: right; }
.fame-value { display: block; margin-bottom: 4px; color: var(--gold-soft); font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.fame-label { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.fight-size { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 4px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.fight-size .icon { width: 12px; height: 12px; }
.empty-state { padding: 60px 24px; text-align: center; }
.empty-state > .icon { width: 30px; height: 30px; color: var(--muted); }
.empty-state h3 { margin: 12px 0 5px; font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
.empty-state p { color: var(--muted); font-size: 13px; }
.button { min-height: 39px; padding: 0 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-soft); font-size: 12px; font-weight: 750; }
.button:hover { border-color: var(--border-strong); background: var(--surface-2); }
.button-load { width: calc(100% - 48px); margin: 18px 24px; background: transparent; }
.button-load:disabled { cursor: wait; opacity: .65; }
.noscript-note { padding: 20px 24px; color: var(--muted); }

.sidebar { display: grid; gap: 18px; }
.side-card { overflow: hidden; }
.side-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px; border-bottom: 1px solid var(--border); }
.side-card-heading h2 { font-size: 18px; }
.side-card-heading > a { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); }
.side-card-heading > a:hover { color: var(--gold); border-color: var(--border-strong); }
.side-card-heading > a .icon { width: 15px; height: 15px; }
.ranking-list { margin: 0; padding: 5px 0; list-style: none; counter-reset: ranking; }
.ranking-item { counter-increment: ranking; display: grid; grid-template-columns: 24px 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 20px; }
.ranking-item::before { content: counter(ranking, decimal-leading-zero); color: #68736c; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mini-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--avatar, var(--surface-3)); color: #f5f1e8; font-size: 10px; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ranking-copy { min-width: 0; display: grid; }
.ranking-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-score { text-align: right; }
.ranking-score strong { display: block; color: var(--gold-soft); font-size: 12px; }
.ranking-score small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.guild-list { padding: 5px 0; }
.guild-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 20px; }
.guild-crest { display: grid; place-items: center; width: 36px; height: 40px; color: var(--crest-color, var(--gold)); background: color-mix(in srgb, var(--crest-color, var(--gold)) 13%, transparent); clip-path: polygon(50% 0, 94% 17%, 86% 76%, 50% 100%, 14% 76%, 6% 17%); font-size: 10px; font-weight: 850; }
.guild-copy { min-width: 0; display: grid; }
.guild-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.guild-copy small { color: var(--muted); font-size: 9px; }
.trend { color: var(--green); font-size: 10px; font-weight: 750; }
.compact-card { padding: 18px; }
.status-row { display: flex; align-items: flex-start; gap: 12px; }
.status-mark { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--green-wash); color: var(--green); }
.status-mark .icon { width: 17px; }
.status-row h2 { margin: 1px 0 4px; font-size: 13px; font-weight: 780; }
.status-row p { margin: 0; color: var(--muted); font-size: 10px; }
.status-details { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.status-details > div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.status-details dt { color: var(--muted); }
.status-details dd { margin: 0; color: var(--text-soft); }

.site-footer { border-top: 1px solid var(--border); background: #0a0c0b; }
.footer-inner { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner strong { font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.footer-inner p { margin: 5px 0 0; color: #6f7872; font-size: 10px; }
.footer-inner nav ul { display: flex; gap: 22px; margin: 0; padding: 0; color: var(--muted); font-size: 11px; list-style: none; }
.footer-inner nav a:hover { color: var(--text); }

.content-section--standard { min-height: calc(100vh - 193px); padding-top: 56px; }
.content-narrow { max-width: 820px; }
.page-header { margin-bottom: 24px; }
.page-header h1, .entry-title { margin-bottom: 10px; font-size: clamp(30px, 5vw, 48px); font-weight: 750; letter-spacing: -.045em; }
.archive-description, .entry-content, .entry-content p { color: var(--text-soft); }
.entry-card { margin-bottom: 18px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); }
.entry-card .entry-title { font-size: 26px; }
.entry-card .entry-title a:hover { color: var(--gold-soft); }
.empty-page { padding-block: 90px; text-align: center; }
.empty-page h1 { margin-bottom: 12px; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.045em; }
.empty-page > p:not(.eyebrow) { margin-bottom: 24px; color: var(--muted); }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.page-numbers { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); }
.page-numbers.current, .page-numbers:hover { background: var(--gold-wash); color: var(--gold-soft); border-color: rgba(213,173,92,.3); }

body.admin-bar .site-header { top: 32px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1040px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .kill-row { grid-template-columns: minmax(130px, 1fr) 58px minmax(130px, 1fr) 94px; padding-inline: 18px; gap: 10px; }
  .header-inner { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); gap: 14px; }
  .primary-nav a { padding-inline: 9px; font-size: 12px; }
  .brand-copy small { display: none; }
}

@media (max-width: 840px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 66px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
  .primary-nav { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; display: none; align-items: stretch; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: #101412; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .primary-nav > ul { display: grid; gap: 3px; }
  .primary-nav a { justify-content: start; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); }
  .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--gold-wash); color: var(--gold-soft); }
  .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after, .primary-nav .current-menu-ancestor > a::after { display: none; }
  .lookup-inner { padding-top: 38px; }
  .lookup-heading-row { align-items: flex-start; }
  .sync-note { display: none; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compact-card { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand-copy strong { font-size: 14px; }
  .realm-picker { min-height: 38px; padding-inline: 9px; }
  .realm-picker select { width: 72px; }
  .lookup-inner { padding-top: 30px; }
  .lookup-heading-row h1 { font-size: 34px; }
  .lookup-heading-row > div > p:last-child { font-size: 13px; }
  .global-search { grid-template-columns: auto 1fr auto; min-height: 58px; padding-left: 15px; }
  .global-search kbd, .search-submit { display: none; }
  .search-clear { grid-column: 3; }
  .metric { min-height: 72px; padding: 13px; gap: 9px; }
  .metric-icon { width: 30px; height: 30px; }
  .metric strong { font-size: 15px; }
  .metric small { font-size: 9px; }
  .content-section { padding-top: 28px; }
  .section-heading { align-items: center; padding-inline: 16px; }
  .section-heading h2 { font-size: 21px; }
  .text-link { font-size: 0; }
  .text-link .icon { width: 20px; height: 20px; }
  .filter-bar { align-items: flex-start; padding-inline: 14px; overflow-x: auto; }
  .filter-chips { flex-wrap: nowrap; }
  .filter-chip { white-space: nowrap; }
  .compact-select { position: sticky; right: 0; background: var(--surface); }
  .feed-meta { padding-inline: 16px; }
  .feed-meta span:last-child { display: none; }
  .kill-row { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); min-height: 0; padding: 17px 16px; gap: 9px; }
  .kill-summary { grid-column: 1 / -1; justify-self: stretch; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.05); text-align: left; }
  .fame-value, .fame-label { display: inline; }
  .fame-label { margin-left: 4px; }
  .fight-size { margin-top: 0; }
  .fight-mark { align-self: start; padding-top: 21px; }
  .fight-mark-icon { width: 32px; height: 32px; }
  .fight-mark small { display: none; }
  .combatant-name { display: grid; gap: 1px; }
  .combatant-name a { font-size: 13px; }
  .guild-link { font-size: 9px; }
  .gear-strip { gap: 2px; }
  .gear-item { width: 22px; height: 22px; font-size: 7px; }
  .button-load { width: calc(100% - 32px); margin-inline: 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .compact-card { grid-column: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 28px; }
  .footer-inner nav ul { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 38px; }
  .brand-copy strong { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .realm-picker { gap: 6px; }
  .realm-picker select { width: 62px; font-size: 12px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
