/* Forever PvP Leaderboards: shared styles. Classic WoW interface look, always dark. */

:root {
  color-scheme: dark;

  /* surfaces */
  --night: #0b0d12;
  --earth: #1a120b;
  --panel: rgba(18, 13, 8, 0.93);
  --panel-2: rgba(15, 18, 24, 0.92);
  --well: rgba(6, 5, 4, 0.55);
  --strip-top: #2a1d10;
  --strip-bot: #140d06;

  /* gold */
  --gold: #f2c14e;
  --gold-hi: #ffe9a6;
  --gold-lo: #c8901e;
  --gold-dim: #b8954a;
  --bronze-line: #6b4a1a;
  --line: rgba(201, 161, 74, 0.16);
  --line-strong: rgba(201, 161, 74, 0.35);

  /* text */
  --text: #e8dcc0;
  --text-muted: #a89878;
  --focus-glow: 0 0 0 2px #1a1208, 0 0 0 3px #ffd76a, 0 0 12px 3px rgba(255, 200, 80, 0.55);

  /* status */
  --win: #3ee05a;
  --loss: #ff4a3d;
  --warn: #ffb02e;
  --tip-bg: rgba(12, 18, 32, 0.95);
  --tip-border: #8fa3c0;
  --hover-row: rgba(58, 110, 165, 0.22);

  /* red buttons */
  --btn-top: #8b0f0f;
  --btn-bot: #4a0606;

  /* class colors (classic) */
  --c-warrior: #c69b6d;
  --c-paladin: #f48cba;
  --c-hunter: #aad372;
  --c-rogue: #fff468;
  --c-priest: #ffffff;
  --c-shaman: #2a8ff0; /* #0070DD, lifted for 4.5:1 on the panels and on hovered rows */
  --c-mage: #3fc7eb;
  --c-warlock: #8788ee;
  --c-druid: #ff7c0a;

  /* tiers = item quality colors */
  --t-gc: #ff8000;        /* legendary */
  --t-bm: #b048f5;        /* epic #a335ee, lifted for AA */
  --t-duelist: #1a82ec;   /* rare #0070dd, lifted for AA */
  --t-challenger: #1eff00;/* uncommon */
  --t-contender: #ffffff; /* common */
  --t-initiate: #9d9d9d;  /* poor */
  --t-placement: #9d9d9d;

  --font: "Spectral", "EB Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-display: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-logo: "Cinzel Decorative", "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .6 11.4 6 6 11.4.6 6Z' fill='%23f2c14e' stroke='%23382307' stroke-width='1.1'/%3E%3Cpath d='M6 3.4 8.6 6 6 8.6 3.4 6Z' fill='%23fff3c4' opacity='.75'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  position: relative;
  background: transparent;
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* night sky + stone, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1px 1px at 27% 8%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, rgba(255, 240, 210, .45), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 78% 26%, rgba(255, 255, 255, .35), transparent 60%),
    radial-gradient(1.5px 1.5px at 89% 9%, rgba(220, 230, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 6% 34%, rgba(255, 255, 255, .3), transparent 60%),
    radial-gradient(1px 1px at 55% 36%, rgba(255, 255, 255, .25), transparent 60%),
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(70, 100, 160, .16), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 115%, rgba(90, 45, 10, .45), transparent 65%),
    linear-gradient(180deg, #0b0d12 0%, #0e1017 38%, #15100b 75%, #1a120b 100%);
}
/* vignette */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0, 0, 0, .65) 100%);
}

main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px 16px 48px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: .02em; }
h1, .gold-text {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  background: linear-gradient(180deg, var(--gold-hi) 15%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 10px rgba(0, 0, 0, .6));
}
h2 { font-size: 1.25rem; color: var(--gold); text-shadow: 0 2px 2px #000; }
h3 { font-size: 1.05rem; color: var(--gold); text-shadow: 0 1px 2px #000; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-color: rgba(242, 193, 78, .45); }
a:hover { color: var(--gold-hi); text-decoration-color: currentColor; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-glow); border-radius: 3px; }
main:focus-visible { box-shadow: none; }
strong { color: #f3e7c8; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100; padding: 6px 14px;
  background: linear-gradient(var(--btn-top), var(--btn-bot)); color: var(--gold); border: 1px solid var(--gold);
}
.skip-link:focus { left: 8px; }

/* =========================================================
   Frames (WoW interface windows)
   ========================================================= */
.frame, .card {
  position: relative; min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 220, 150, .035), transparent 120px),
    var(--panel);
  border: 2px solid var(--bronze-line);
  border-radius: 3px;
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(242, 193, 78, .8),
    inset 0 0 0 1px rgba(0, 0, 0, .85),
    inset 0 0 0 2px rgba(242, 193, 78, .14),
    inset 0 0 28px rgba(0, 0, 0, .55),
    0 8px 22px rgba(0, 0, 0, .55);
}
/* four gold diamond corner ornaments */
.frame::before, .card::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 2;
  background:
    var(--diamond) left top / 13px 13px no-repeat,
    var(--diamond) right top / 13px 13px no-repeat,
    var(--diamond) left bottom / 13px 13px no-repeat,
    var(--diamond) right bottom / 13px 13px no-repeat;
}
.card + .card { margin-top: 22px; }

/* title bar */
.frame-title, .card > h2:first-child {
  margin: -16px -16px 16px; padding: 9px 18px 8px;
  text-align: center; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 1px 0 #000, 0 0 8px rgba(0, 0, 0, .9);
  background: linear-gradient(180deg, #24180c 0%, #0f0a05 100%);
  border-bottom: 1px solid var(--bronze-line);
  box-shadow: 0 1px 0 rgba(242, 193, 78, .22), inset 0 1px 0 rgba(255, 220, 150, .08);
  position: relative;
}
.frame-title::before, .frame-title::after,
.card > h2:first-child::before, .card > h2:first-child::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 2px;
  background: var(--gold); transform: rotate(45deg); vertical-align: middle;
  box-shadow: 0 0 0 1px #2a1a06;
}
.frame-title .muted, .card > h2 .muted { text-transform: none; letter-spacing: 0; }

/* inset "well" inside a frame (tables, lists) */
.well {
  background: var(--well); border: 1px solid #3a2a12;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .7);
}

/* =========================================================
   Header / nav / banner / footer
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #1b130b 0%, #0d0906 100%);
  border-bottom: 2px solid var(--bronze-line);
  box-shadow: 0 1px 0 rgba(242, 193, 78, .7), 0 6px 18px rgba(0, 0, 0, .6);
}
.site-header .inner {
  max-width: 1320px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand svg, .brand-logo { flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.brand-logo { width: 40px; height: 40px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.35rem;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #000);
}
.brand small { font-family: var(--font-display); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.brand:hover .brand-name { filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 6px rgba(255, 200, 80, .45)); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }

/* WoW red UI button (shared by nav, .btn, segmented toggles) */
.site-nav a, .btn, .seg button {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  color: var(--gold); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 6px 16px;
  background: linear-gradient(180deg, #a51818 0%, var(--btn-top) 40%, var(--btn-bot) 100%);
  border: 1px solid #c9a14a; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 190, 140, .3), inset 0 -2px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .7);
  text-shadow: 0 1px 1px #000;
  transition: box-shadow .12s, filter .12s;
}
.site-nav a:hover, .btn:hover:not(:disabled), .seg button:hover {
  color: var(--gold-hi); filter: brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 190, 140, .35), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 0 10px rgba(255, 170, 60, .45);
}
.site-nav a:active, .btn:active:not(:disabled), .seg button:active {
  background: linear-gradient(180deg, #3a0404, #5e0a0a);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7);
  filter: none;
}
.site-nav a:focus-visible, .btn:focus-visible, .seg button:focus-visible { box-shadow: var(--focus-glow); }
.site-nav a[aria-current="page"], .seg button[aria-pressed="true"] {
  color: #fff4cf;
  background: linear-gradient(180deg, #d22a2a 0%, #a01313 45%, #5e0808 100%);
  border-color: #ffe08a;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 150, .55), inset 0 1px 0 rgba(255, 220, 180, .45), 0 0 10px rgba(255, 200, 80, .5);
}
.btn:disabled { cursor: default; filter: grayscale(.85) brightness(.6); }

.sample-banner {
  position: relative; text-align: center; font-size: .9rem; padding: 7px 16px;
  color: #ffd26b; text-shadow: 0 1px 1px #000;
  background: linear-gradient(90deg, transparent, rgba(120, 70, 10, .35) 20%, rgba(120, 70, 10, .35) 80%, transparent), #0e0a06;
  border-bottom: 1px solid var(--bronze-line);
}
.sample-banner strong {
  font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  color: #ff9a2e; margin-right: 2px;
}
.sample-banner strong::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 0;
  background: #ff9a2e; transform: rotate(45deg); vertical-align: middle;
}

.site-footer {
  color: var(--text-muted); font-size: .85rem;
  background: linear-gradient(180deg, #120c07, #080604);
  border-top: 2px solid var(--bronze-line);
  box-shadow: 0 -1px 0 rgba(242, 193, 78, .5);
}
.site-footer .inner {
  max-width: 1320px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* =========================================================
   Hero (ladder page)
   ========================================================= */
.hero { position: relative; text-align: center; padding: 18px 0 8px; margin-bottom: 26px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -10px; width: min(760px, 100%); height: 280px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242, 170, 60, .16), rgba(242, 170, 60, .05) 45%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-emblem { display: block; margin: 0 auto 4px; width: 84px; height: 84px; border-radius: 12px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .85)) drop-shadow(0 0 14px rgba(242, 180, 70, .35)); }
.hero .logo {
  font-family: var(--font-logo); font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); margin: 0; letter-spacing: .03em; line-height: 1.05;
}
.hero .logo .logo-line { display: block; } /* "Forever PvP" over "Leaderboards" at every width */
.tagline {
  font-family: var(--font-display); color: var(--text); letter-spacing: .08em; font-size: clamp(.85rem, .78rem + .4vw, 1.05rem);
  margin: 6px 0 14px; text-shadow: 0 1px 2px #000;
}
.ribbon {
  display: inline-block; position: relative; margin: 0 0 10px;
  padding: 7px 44px 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  color: var(--gold-hi); text-shadow: 0 1px 1px #000;
  background: linear-gradient(180deg, #b21a1a 0%, #7a0c0c 50%, #4a0606 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
  box-shadow: inset 0 2px 0 -1px #f2c14e, inset 0 -2px 0 -1px #f2c14e, inset 0 4px 0 -2px rgba(0, 0, 0, .5);
}
.ribbon::before, .ribbon::after { content: "\25C6"; color: var(--gold); font-size: .6rem; vertical-align: 2px; margin: 0 10px; }
.hero-sub { color: var(--text-muted); margin: 0 0 16px; font-size: .95rem; }
.hero-sub strong { color: var(--text); }

.plaques { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0; }
.plaque {
  position: relative; min-width: 140px; padding: 10px 18px 8px;
  display: flex; flex-direction: column-reverse; align-items: center;
  background: linear-gradient(180deg, #221810, #110c07);
  border: 1px solid var(--bronze-line); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(242, 193, 78, .6), inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 1px 0 1px rgba(255, 220, 150, .1), 0 4px 10px rgba(0, 0, 0, .5);
}
.plaque::before, .plaque::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 1px #2a1a06;
}
.plaque::before { left: -5px; }
.plaque::after { right: -5px; }
.plaque dt { font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.plaque dd {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; font-variant-numeric: tabular-nums;
  color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 10px rgba(242, 180, 70, .3);
}

/* =========================================================
   Layout
   ========================================================= */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.page-head p { margin: 0; }
.page-head h1 { margin-bottom: 4px; }
.layout-ladder { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .layout-ladder { grid-template-columns: minmax(0, 1fr); } }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Controls
   ========================================================= */
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dim);
}
select, input[type="search"], input[type="text"] {
  font: inherit; font-size: .95rem; color: var(--text);
  background-color: #0b0907; border: 1px solid var(--bronze-line); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), inset 0 2px 5px rgba(0, 0, 0, .8), 0 0 0 1px rgba(242, 193, 78, .25);
  padding: 6px 10px; min-height: 36px; max-width: 100%;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2c14e' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px 8px;
}
select option { background: #120d08; color: var(--text); }
select:hover, input:hover { border-color: #9a7230; }
select:focus-visible, input:focus-visible { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .8), var(--focus-glow); }
input::placeholder { color: #7d7058; font-style: italic; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.seg button { padding: 5px 12px; font-size: .78rem; }
.seg button[aria-pressed="false"] {
  color: #d4ad55;
  background: linear-gradient(180deg, #5c0d0d 0%, #3e0606 50%, #260303 100%);
  border-color: #8a6a2c;
}
.seg .faction svg { width: 14px; height: 16px; }

/* search combobox */
.search { position: relative; flex: 1 1 200px; }
.search input { width: 100%; }
.suggest {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--tip-bg); border: 1px solid var(--tip-border); border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .7); max-height: 300px; overflow-y: auto;
}
.suggest li { padding: 7px 10px; border-radius: 2px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: rgba(58, 110, 165, .35); box-shadow: inset 0 0 0 1px rgba(143, 180, 230, .35); }
.suggest .cls-tag { margin-left: auto; font-size: .78rem; color: var(--text-muted); }

/* =========================================================
   Tables
   ========================================================= */
.table-wrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--well); border: 1px solid #3a2a12;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .7);
  scrollbar-color: #6b4a1a #0b0907;
}
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
th, td { padding: 8px 8px; text-align: left; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 1px 1px #000;
  background: linear-gradient(180deg, var(--strip-top) 0%, var(--strip-bot) 100%);
  border-bottom: 1px solid var(--bronze-line);
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, .1), inset 0 -1px 0 rgba(242, 193, 78, .3);
  padding-top: 9px; padding-bottom: 8px;
}
tbody tr:nth-child(even) > td { background-color: rgba(255, 228, 170, .028); }
tbody tr:hover > td { background-color: var(--hover-row); }
tbody tr:hover > td:first-child { box-shadow: inset 2px 0 0 rgba(160, 200, 255, .75); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
th button.sort {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-transform: inherit; letter-spacing: inherit; text-shadow: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
th.r button.sort { flex-direction: row; }
th button.sort:hover { color: var(--gold-hi); }
th[aria-sort] button.sort { color: var(--gold-hi); }
th button.sort .arrow { font-size: .75em; opacity: .4; }
th[aria-sort] button.sort .arrow { opacity: 1; }
.rank { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); width: 3.5ch; }
.rating { font-weight: 700; color: #f3e7c8; }
.wl .w, .streak-pos { color: var(--win); }
.wl .l, .streak-neg { color: var(--loss); }
.wl { color: var(--text-muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pager .info { color: var(--text-muted); font-size: .9rem; font-style: italic; }
.pager .btns { display: flex; gap: 8px; }

/* medals for rank 1-3 */
.medal {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; line-height: 1;
  color: #2b1c02; text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .7);
  vertical-align: middle;
}
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff8d0 0%, #f6cb55 38%, #b37a12 85%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .8), 0 0 8px rgba(255, 200, 70, .55); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #cdd3dc 40%, #707884 90%); color: #1d2228; }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffe0bd 0%, #d08840 40%, #7a4316 90%); color: #2a1404; }

/* =========================================================
   Class / faction / tier / verification
   ========================================================= */
.player-link { font-weight: 600; text-decoration: none; }
.player-link:hover { text-decoration: underline; text-decoration-color: currentColor; }
.cls-WARRIOR { color: var(--c-warrior); }
.cls-PALADIN { color: var(--c-paladin); }
.cls-HUNTER  { color: var(--c-hunter); }
.cls-ROGUE   { color: var(--c-rogue); }
.cls-PRIEST  { color: var(--c-priest); }
.cls-SHAMAN  { color: var(--c-shaman); }
.cls-MAGE    { color: var(--c-mage); }
.cls-WARLOCK { color: var(--c-warlock); }
.cls-DRUID   { color: var(--c-druid); }

.faction { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; vertical-align: middle; }
.faction svg { flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.faction.Horde { color: #ff6a5a; }
.faction.Alliance { color: #86aaf5; }
.faction.unknown { color: var(--text-muted); }

.tier { font-weight: 600; text-shadow: 0 1px 1px #000; }
.tier-grand-champion { color: var(--t-gc); }
.tier-blademaster { color: var(--t-bm); }
.tier-duelist { color: var(--t-duelist); }
.tier-challenger { color: var(--t-challenger); }
.tier-contender { color: var(--t-contender); }
.tier-initiate { color: var(--t-initiate); font-weight: 500; }
.tier-placement { color: var(--t-placement); font-style: italic; font-weight: 400; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 3px; font-size: .78rem; font-weight: 600;
  border: 1px solid currentColor; line-height: 1.6; white-space: nowrap; cursor: help;
  background: rgba(0, 0, 0, .35); font-family: var(--font);
}
td .badge:has(.visually-hidden) { padding: 0; width: 22px; height: 22px; justify-content: center; border-radius: 50%; }
.v-verified { color: var(--win); }
.v-partial { color: var(--warn); }
.v-conflict { color: var(--loss); }
.flag-warn { color: var(--warn); cursor: help; font-weight: 700; margin-left: 5px; text-shadow: 0 0 6px rgba(255, 170, 40, .5); }
.banned-tag { color: var(--loss); }
tr.is-banned .player-link { text-decoration: line-through; opacity: .75; }

.status { font-weight: 600; }
.status-signup { color: #5aa8ff; }
.status-running { color: var(--win); }
.status-done { color: var(--gold); }
.status-cancelled { color: var(--text-muted); }

/* WoW item tooltip */
.wow-tip {
  position: fixed; z-index: 1000; max-width: 280px; pointer-events: none;
  padding: 7px 10px 8px; font-size: .86rem; line-height: 1.4; color: var(--text);
  background: var(--tip-bg); border: 1px solid var(--tip-border); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .7);
}
.wow-tip strong { display: block; font-size: .95rem; color: #fff; margin-bottom: 1px; }
.wow-tip span { display: block; color: #ffd100; }
.wow-tip strong.v-verified { color: var(--win); }
.wow-tip strong.v-partial, .wow-tip strong.flag-warn { color: var(--warn); }
.wow-tip strong.v-conflict, .wow-tip strong.banned-tag { color: var(--loss); }
[data-tip] { cursor: help; }

/* =========================================================
   Sidebar: quest log feed + tier legend
   ========================================================= */
.questlog {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(190, 150, 80, .1), transparent 70%),
    linear-gradient(180deg, rgba(58, 42, 22, .55), rgba(30, 21, 11, .7)),
    var(--panel);
}
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; padding-bottom: 2px; }
.feed li:first-child { padding-top: 0; }
.feed li::before {
  content: ""; position: absolute; left: 3px; top: calc(9px + .55em); width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); transform: rotate(45deg);
  box-shadow: 0 0 0 1px #2a1a06, 0 0 6px rgba(242, 193, 78, .4);
}
.feed li:first-child::before { top: .55em; }
.feed li.t-champion::before { background: linear-gradient(135deg, #ffd29a, #ff8000); }
.feed a { color: var(--text); text-decoration: none; }
.feed a:hover { color: var(--gold-hi); text-decoration: underline; }
.feed time { display: block; font-size: .8rem; color: var(--text-muted); font-style: italic; }

.tier-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tier-legend li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tier-legend li:last-child { border-bottom: 0; }
.tier-legend li > span:last-child { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* =========================================================
   Empty / loading
   ========================================================= */
.empty {
  text-align: center; padding: 34px 16px; color: var(--text-muted);
  border: 1px dashed rgba(201, 161, 74, .35); background: rgba(0, 0, 0, .3);
}
.empty strong { display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; margin-bottom: 4px; }
.empty > span, .empty > div { display: block; }
.loading { color: var(--text-muted); padding: 24px 0; font-style: italic; text-align: center; }

/* =========================================================
   Player page: character sheet
   ========================================================= */
.player-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; padding: 20px 22px; }
.player-head .crest { flex: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .8)) drop-shadow(0 0 10px rgba(0, 0, 0, .5)); }
.player-head .who { min-width: 0; flex: 1; }
.player-head .title {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 1px 1px #000; margin-bottom: 2px;
}
.player-head h1 {
  margin: 0; overflow-wrap: anywhere; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
  background: none; -webkit-text-fill-color: currentColor; filter: none;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, .9);
}
.player-head h1:not([class*="cls-"]) { color: var(--text); }
.player-sub { font-size: 1.05rem; margin: 4px 0 6px; }
.player-sub .lvl { color: var(--gold); font-weight: 600; }
.player-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-muted); align-items: center; font-size: .92rem; }
.player-meta .sep { color: var(--bronze-line); }
.player-flags { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

.bracket-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 26px; margin-bottom: 26px; }
.bcard h3 {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -16px -16px 14px; padding: 8px 16px;
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, #24180c 0%, #0f0a05 100%);
  border-bottom: 1px solid var(--bronze-line); box-shadow: 0 1px 0 rgba(242, 193, 78, .22);
}
.bcard h3 .badge { text-transform: none; letter-spacing: 0; }
.bcard .big {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 14px rgba(242, 180, 70, .35);
}
.bcard .row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bcard .row .tier { font-family: var(--font-display); font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.kv div { background: var(--well); border: 1px solid #3a2a12; padding: 6px 10px; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6); }
.kv dt { font-family: var(--font-display); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dim); }
.kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.season-head h2 { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.season-head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 3px 2px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 1px #2a1a06; }
.card > .section-head:first-child {
  margin: -16px -16px 16px; padding: 7px 14px;
  background: linear-gradient(180deg, #24180c 0%, #0f0a05 100%);
  border-bottom: 1px solid var(--bronze-line); box-shadow: 0 1px 0 rgba(242, 193, 78, .22);
}
.card > .section-head:first-child h2 { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.card > .section-head:first-child .field { flex-direction: row; align-items: center; gap: 8px; }
.chart-card { margin-bottom: 26px; }

.chart-wrap { width: 100%; background: radial-gradient(ellipse at 50% 100%, rgba(242, 180, 70, .06), transparent 70%), rgba(5, 6, 9, .5); border: 1px solid #2c2214; box-shadow: inset 0 1px 6px rgba(0, 0, 0, .7); }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart .grid line { stroke: rgba(201, 161, 74, .12); stroke-width: 1; }
.chart .grid text, .chart .axis text { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.chart .base { stroke: rgba(232, 220, 192, .45); stroke-dasharray: 4 5; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(242, 193, 78, .55)); }
.chart .area { fill: url(#chartFill); }
.chart .pt { stroke: #1a1208; stroke-width: 1.5; }
.chart .pt.w { fill: #49e765; filter: drop-shadow(0 0 3px rgba(73, 231, 101, .8)); }
.chart .pt.l { fill: #ff4a3d; filter: drop-shadow(0 0 3px rgba(255, 74, 61, .8)); }
.chart .pt:hover { r: 6; }
.chart-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--text-muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.chart-legend .lw::before { background: var(--win); box-shadow: 0 0 5px var(--win); }
.chart-legend .ll::before { background: var(--loss); box-shadow: 0 0 5px var(--loss); }
.chart-legend .lb::before { border-radius: 0; width: 16px; height: 0; border-top: 1px dashed rgba(232, 220, 192, .6); }

/* combat text */
.res-w, .res-l { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-shadow: 0 1px 0 #000, 0 0 1px #000; }
.res-w { text-shadow: 0 1px 0 #000, 0 0 5px rgba(62, 224, 90, .35); }
.res-l { text-shadow: 0 1px 0 #000, 0 0 5px rgba(255, 74, 61, .35); }
.res-w { color: #3ee05a; }
.res-l { color: #ff4a3d; }
.kv .res-w, .kv .res-l { font-family: var(--font); letter-spacing: 0; text-shadow: none; }
.delta-pos { color: var(--win); font-weight: 600; }
.delta-neg { color: var(--loss); font-weight: 600; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.list-plain li:last-child { border-bottom: 0; }

/* =========================================================
   Tournaments
   ========================================================= */
.tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.tcard { padding: 0; scroll-margin-top: 90px; }
.tlist .card + .card { margin-top: 0; }
.tcard > button.thead {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; padding: 14px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  background: linear-gradient(180deg, rgba(60, 40, 18, .35), transparent);
}
.tcard > button.thead:hover { background: linear-gradient(180deg, rgba(90, 60, 22, .45), rgba(40, 26, 10, .2)); }
.tcard > button.thead:focus-visible { box-shadow: inset 0 0 0 2px #ffd76a, inset 0 0 14px rgba(255, 200, 80, .4); }
.tcard .tname { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); font-weight: 700; text-shadow: 0 2px 2px #000; }
.tcard .tmeta { color: var(--text-muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 1 / -1; align-items: center; }
.tcard .chev {
  display: grid; place-items: center; width: 28px; height: 28px; font-size: .8rem; color: var(--gold);
  background: linear-gradient(180deg, #a51818, #4a0606); border: 1px solid #c9a14a; border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 190, 140, .3), 0 1px 2px #000; transition: transform .15s;
}
.tcard [aria-expanded="true"] .chev { transform: rotate(180deg); }
.tbody { border-top: 1px solid var(--bronze-line); box-shadow: inset 0 1px 0 rgba(242, 193, 78, .2); padding: 18px; }
.champion-line { margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; color: var(--gold); }
.champion-line .crown { color: var(--t-gc); text-shadow: 0 0 8px rgba(255, 128, 0, .7); }
.champion-line a { color: var(--t-gc) !important; }

.bracket {
  position: relative; display: flex; overflow-x: auto; padding: 6px 4px 14px; -webkit-overflow-scrolling: touch; scrollbar-color: #6b4a1a #0b0907;
  --gap: 44px; gap: var(--gap);
}
.round { display: flex; flex-direction: column; min-width: 190px; flex: 0 0 190px; }
.round h4 {
  margin: 0 0 10px; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dim);
  padding-bottom: 5px; border-bottom: 1px solid var(--line-strong);
}
.round .matches { display: flex; flex-direction: column; flex: 1; }
.mcell { position: relative; flex: 1; display: flex; align-items: center; padding: 6px 0; }
.mcell > .match { width: 100%; }
/* connectors */
.mcell.up::after, .mcell.down::after {
  content: ""; position: absolute; right: calc(var(--gap) / -2); width: calc(var(--gap) / 2);
  border-right: 2px solid #9a7230;
}
.mcell.up::after { top: 50%; bottom: 0; border-top: 2px solid #9a7230; border-top-right-radius: 4px; }
.mcell.down::after { top: 0; bottom: 50%; border-bottom: 2px solid #9a7230; border-bottom-right-radius: 4px; }
.mcell.from::before {
  content: ""; position: absolute; left: calc(var(--gap) / -2); width: calc(var(--gap) / 2); top: 50%; margin-top: -1px;
  border-top: 2px solid #9a7230;
}
.mcell.to-champ::after {
  content: ""; position: absolute; right: calc(var(--gap) / -2); width: calc(var(--gap) / 2); top: 50%; margin-top: -1px;
  border-top: 2px solid #c9a14a;
}
.round.champ .mcell.from::before { border-top-color: #c9a14a; }

.match {
  position: relative;
  background: linear-gradient(180deg, #1c140b, #0e0a06);
  border: 1px solid var(--bronze-line); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(242, 193, 78, .35), inset 0 0 0 1px rgba(0, 0, 0, .8), 0 3px 8px rgba(0, 0, 0, .55);
}
.match .slot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; font-size: .92rem; min-height: 32px; }
.match .slot + .slot { border-top: 1px solid var(--line-strong); }
.match .slot.win { background: linear-gradient(90deg, rgba(242, 193, 78, .16), rgba(242, 193, 78, .03)); font-weight: 700; }
.match .slot.win::after { content: "\2714"; color: var(--win); font-size: .8rem; text-shadow: 0 0 5px rgba(62, 224, 90, .6); }
.match .slot.lose { opacity: .55; }
.match .slot.lose a { text-decoration: line-through; text-decoration-color: rgba(255, 74, 61, .6); }
.match .slot.tbd, .match .slot.bye { color: var(--text-muted); font-style: italic; }
.match a, .roster a { color: var(--text); text-decoration: none; }
.match a:hover, .roster a:hover { color: var(--gold-hi); text-decoration: underline; }

.round.champ { min-width: 200px; flex-basis: 200px; }
.round.champ h4 { color: var(--t-gc); border-bottom-color: rgba(255, 128, 0, .5); }
.champ-plate {
  width: 100%; text-align: center; padding: 30px 12px 14px; position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 170, 50, .25), transparent 70%), linear-gradient(180deg, #2a1a08, #120b04);
  border: 1px solid #ffb34a; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 18px rgba(255, 150, 30, .45), 0 0 40px rgba(255, 128, 0, .18), inset 0 0 16px rgba(255, 170, 60, .2);
}
.champ-plate .crown {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 40px; height: 30px;
  filter: drop-shadow(0 0 6px rgba(255, 190, 70, .8)) drop-shadow(0 2px 1px #000);
}
.champ-plate a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--t-gc); text-decoration: none; text-shadow: 0 1px 0 #000, 0 0 10px rgba(255, 128, 0, .6); }
.champ-plate a:hover { text-decoration: underline; }
.champ-plate small { display: block; margin-top: 2px; font-family: var(--font-display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dim); }

.roster { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.roster li { background: var(--well); border: 1px solid var(--bronze-line); border-radius: 3px; padding: 3px 12px; font-size: .92rem; box-shadow: 0 0 0 1px rgba(242, 193, 78, .2); }

/* =========================================================
   About
   ========================================================= */
.prose { max-width: 820px; margin: 0 auto; padding: 26px 30px 30px; }
.prose > h1 { text-align: center; margin-bottom: .6em; }
.prose h2 {
  margin: 1.8em 0 .6em; font-size: 1.3rem; color: #f6cf62; text-shadow: 0 2px 2px #000;
  padding-bottom: 6px; position: relative;
}
.prose h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 193, 78, .7), rgba(242, 193, 78, .15) 70%, transparent);
}
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: ""; position: absolute; left: -1.05em; top: .6em; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 1px #2a1a06;
}
.prose ol li::marker { color: var(--gold); font-family: var(--font-display); font-weight: 700; }
.prose li { margin-bottom: .4em; }
.prose code, kbd {
  font-family: var(--mono); background: #0b0907; border: 1px solid var(--bronze-line); border-radius: 3px;
  padding: 0 5px; font-size: .85em; color: #f3e7c8; overflow-wrap: anywhere;
}
.callout {
  position: relative; padding: 14px 18px; margin: 0 0 1.2em;
  background: linear-gradient(180deg, rgba(90, 66, 34, .35), rgba(50, 36, 18, .3));
  border: 1px solid var(--bronze-line); border-left: 3px solid var(--gold);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .35);
}
.callout > :last-child { margin-bottom: 0; }
.tier-table { max-width: 420px; }
.tier-table td:first-child { font-weight: 600; }
.prose .table-wrap { max-width: 440px; }

/* =========================================================
   Small screens
   ========================================================= */
@media (max-width: 700px) {
  main { padding: 18px 12px 36px; }
  .site-header { position: static; }
  .site-header .inner { padding: 8px 12px 10px; justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .brand-name { font-size: 1.05rem; } /* the full name on one line at phone width */
  .site-nav { margin: 0; width: 100%; }
  /* five links: two even rows of three and two */
  .site-nav ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .site-nav li { grid-column: span 2; }
  .site-nav li:nth-child(n+4) { grid-column: span 3; }
  .site-nav a { width: 100%; padding: 6px 2px; font-size: .7rem; letter-spacing: .02em; }
  .frame, .card { padding: 12px; }
  .card.tcard { padding: 0; }
  .tcard > button.thead { padding: 12px 14px; }
  .frame-title, .card > h2:first-child, .card > .section-head:first-child { margin: -12px -12px 14px; }
  .bcard h3 { margin: -12px -12px 12px; }
  .controls { gap: 10px 12px; }
  .controls .field { flex: 1 1 140px; }
  .controls .field.seg-field { flex: 1 1 100%; }
  .controls select { width: 100%; }
  th, td { padding: 7px 8px; }
  .plaques { gap: 16px; }
  .plaque { min-width: 0; flex: 1 1 90px; padding: 8px 6px 6px; }
  .plaque dd { font-size: 1.25rem; }
  .plaque dt { font-size: .6rem; letter-spacing: .1em; }
  .player-head { padding: 16px 14px; gap: 12px; align-items: flex-start; }
  .player-head .crest { width: 48px; height: 53px; }
  .prose { padding: 18px 16px 22px; }
  .tbody { padding: 14px 12px; }
  .pager { justify-content: center; text-align: center; }
  .ribbon { padding: 6px 34px 7px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* World PvP page */
.board-blurb { margin: 0 0 14px; max-width: 70ch; }
.page-head .plaques { flex-wrap: nowrap; justify-content: flex-end; }
.page-head .plaque { flex: 0 1 150px; min-width: 120px; }

/* Battlegrounds */
.bg-maps { margin-top: 12px; }
.seg button .small { font-size: .9em; opacity: .85; }
main > .frame + .frame, main > .frame + .grid-2, .pvp-row { margin-top: 26px; }
.plaque dd .plaque-text { display: block; font-size: .95rem; line-height: 1.2; padding: 3px 0; text-align: center; overflow-wrap: anywhere; max-width: 16ch; }
abbr[title] { text-decoration: none; cursor: help; }
.zone-list { list-style: none; margin: 0; padding: 0; counter-reset: zone; }
.zone-list li { display: grid; grid-template-columns: 2ch minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.zone-list li:last-child { border-bottom: 0; }
.zone-list li::before { counter-increment: zone; content: counter(zone); font-family: var(--font-display); font-weight: 700; color: var(--text-muted); text-align: right; }
.zone-list .zname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-list .zbar { grid-column: 2 / -1; height: 5px; background: var(--well); border: 1px solid #3a2a12; }
.zone-list .zbar span { display: block; height: 100%; background: linear-gradient(90deg, #7a1010, #d22a2a); }
.zone-list .zkills { font-variant-numeric: tabular-nums; font-weight: 700; color: #f3e7c8; }
.bg-map-objs { font-size: .85rem; color: var(--text-muted); white-space: normal; min-width: 14ch; }
.bg-map-objs b { color: var(--text); font-weight: 600; }
.sub-h { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.card > h2 + .sub-h { margin-top: 0; }
@media (max-width: 700px) {
  .page-head .plaques { justify-content: center; flex-wrap: wrap; width: 100%; }
  .page-head .plaque { min-width: 0; flex: 1 1 calc(50% - 16px); }
}

/* Shared ranks (1, 1, 3): an "=" mark before the number */
.tied { display: inline-flex; align-items: center; gap: 1px; cursor: help; }
.tie-mark { color: var(--text-muted); font-weight: 400; margin-right: 1px; }
.off-ladder { margin: 8px 0 0; }
.off-ladder li { justify-content: center; gap: 6px; }

/* Board pickers: on narrow screens a long row of buttons becomes a select */
.seg-select { display: none; }
@media (max-width: 600px) {
  .seg-field .seg.seg-wide { display: none; }
  .seg-field .seg-select { display: block; width: 100%; }
}

/* Profiles without duels this season: PvP cards first */
.pvp-row.pvp-first { margin-top: 0; }
.duel-none { margin-top: 26px; }
