/* The players module: the index, profiles, leaderboards, the House and the badges page. Tokens, stat rows (.stat-row), dl.facts and .cards-hug come from
   site.css; tables from components.css. Nothing here restyles those: it only sets what is particular to a player. */

/* ---- the index ---- */
.pl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); margin: 0 0 var(--sp-3); }
.pl-filter .ln { font-size: 15px; }
.pl-filter input { width: min(100%, 360px); height: 44px; font: 400 16px/1.2 var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--pill); padding: 0 var(--sp-4); }
.pl-filter input::placeholder { color: var(--text-3); opacity: 1; }
.pl-filter input:hover { border-color: var(--control-border-hover); }
.pl-filter input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.pl-gallery .c-gcard[hidden] { display: none; }
.pl-gallery .c-gcard-art { height: auto; aspect-ratio: 3 / 4; padding-top: var(--sp-2); }
.pl-gallery .c-gcard-art > .pl-poster { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.pl-initial { display: grid; place-items: center; width: 100%; height: 100%; font: 800 72px/1 var(--display); color: var(--text-3); }
.pl-gallery .c-pills { flex-direction: column; align-items: flex-start; gap: 6px; }
.pl-worn { display: inline-block; line-height: 1.4; }
.pl-index .c-sec > h2 { margin-top: var(--sp-7); }
.pl-index .c-table { margin-top: var(--sp-2); }
.pl-index .c-t tbody th a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; }
.pl-face { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 4px; background: var(--surface-2); flex: none; }
.pl-no { min-width: 2ch; color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-rank { color: var(--text-2); }
.pl-index tr[hidden] { display: none; }
@media (max-width: 480px) {
  /* the page is in the order of the Level board: keep Player and Level on screen, drop Badge and Joined */
  .pl-index .c-t :is(th, td):nth-child(n+3) { display: none; }
}

/* ---- a profile: a hero (skin, name, level and rank, the XP bar, the badges they own, one meta line), six stat tiles, the boards,
   then five tabs (Overview, Trades, Bounties, Pets, Collection). Each tab is a panel in the HTML; the tab links are :target links, so a deep link
   (#trades) opens its tab with no script. With no script every panel shows, in order. ---- */
.pf-hero { display: flex; gap: var(--sp-5); align-items: center; margin: var(--sp-2) 0 var(--sp-3); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.pf-hero > * { min-width: 0; }
.pf-face { width: 128px; height: 128px; image-rendering: pixelated; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.pf-id { flex: 1 1 0; min-width: 0; max-width: 100%; }
.pf-id h1 { margin: 0; overflow-wrap: anywhere; }
.pf-sub { margin: var(--sp-2) 0 0; font-size: 18px; color: var(--text); }
.pf-meta { margin: var(--sp-2) 0 0; color: var(--text-3); font-size: 14px; max-width: none; }
.pf-chars { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: var(--sp-3) 0 0; font-size: 14px; color: var(--text-3); }
.pf-chars a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 0 var(--sp-4); text-decoration: none; }
.pf-chars a:hover { border-color: var(--ember); }
.pf-char { margin: var(--sp-5) 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 var(--sp-4); }
.pf-char > summary { cursor: pointer; font: 600 17px var(--sans); min-height: 48px; display: flex; align-items: center; }
.pf-char[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); }
.pf-more { margin: var(--sp-2) 0 0; font-size: 14px; }
.pf-more > summary { cursor: pointer; color: var(--ember-soft); min-height: 44px; display: flex; align-items: center; }
.pf-list { margin: var(--sp-2) 0 0; padding-left: 18px; color: var(--text); }
.pf-list li { margin: 2px 0; }
.pf-none { margin: var(--sp-2) 0 0; color: var(--text-3); font-size: 14px; max-width: none; }
.pl-none { margin: var(--sp-1) 0 0; }

/* the hero's XP into the level: a slim flame bar with its words above */
.pf-prog { margin-top: var(--sp-4); width: min(100%, 460px); }
.pf-prog-t { margin: 0 0 var(--sp-2); font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-xp { height: 8px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.pf-xp > span { display: block; height: 100%; border-radius: var(--pill); background: var(--flame); transform-origin: left center; animation: pf-fill .9s var(--ease) both; }
@keyframes pf-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* the badges they own, one row, each drawn as the game draws it; the worn one first, a little larger, labelled Wearing */
.pf-badges { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; gap: var(--sp-2) var(--sp-4); max-width: 100%; }
.pf-badges li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; max-width: 100%; }
.pf-badges a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.pf-wearing { font: 500 12px/1.2 var(--sans); color: var(--text-3); }

/* a meter: its numbers on one line above the bar, right-aligned and unbroken (also used on the badges page) */
.pf-meter-n { display: block; text-align: right; white-space: nowrap; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pf-meter { display: block; height: 6px; margin-top: 4px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.pf-meter > span { display: block; height: 100%; border-radius: var(--pill); background: var(--flame); }

/* X of Y: a thin bar with the words beside it */
.pf-of { display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 100%; }
.pf-bar { display: inline-block; width: 96px; max-width: 40vw; height: 6px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; flex: none; }
.pf-bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--flame); }
.pf-of-n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the one grammar: a label left in text-3, its value right, tabular */
.pf-facts { margin: var(--sp-2) 0 0; }
.pf-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); padding: 8px 0; border-top: 1px solid var(--border); }
.pf-row:first-child { border-top: 0; }
.pf-row dt { color: var(--text-3); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.pf-row dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.pf-row dd a { display: inline-block; padding: 6px 0; }
.pf-facts--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-6); }
.pf-facts--2 .pf-row:nth-child(2) { border-top: 0; }

/* the page's sections, and the tabs */
.pf-sec { margin: var(--sp-6) 0 0; }
.pf-h { margin: 0 0 var(--sp-2); font: 600 18px/1.3 var(--sans); color: var(--text); }
.pf-sub-h { margin: var(--sp-4) 0 var(--sp-2); font: 500 14px/1.3 var(--sans); color: var(--text-2); }
.pf-journal { margin-top: var(--sp-5); }
.pf-panel { scroll-margin-top: var(--sp-4); }
.pf-tabs ul { list-style: none; margin: var(--sp-5) 0 0; padding: 0 0 var(--sp-2); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pf-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); color: var(--text-2); border: 1px solid var(--border-strong); border-radius: var(--pill); text-decoration: none; white-space: nowrap; }
.pf-tab:hover { color: var(--text); border-color: var(--ember); text-decoration: none; }
/* which panel shows is players.js's (data-active on the tabset, read from the address on load); without the script every panel shows, in order */

/* the boards a player stands on: pills, best first; the first place has a gold dot */
.pf-boards-wrap { margin: var(--sp-4) 0 0; }
.pf-boards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pf-boards li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 14px; }
.pf-boards b { color: var(--text); font-variant-numeric: tabular-nums; }
.pf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F5B841; }

/* records: three quiet cards */
.pf-recs { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.pf-rec { margin: 0; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.pf-rec-k { margin: 0 0 var(--sp-2); font-size: 14px; color: var(--text-3); }
.pf-rec-v { margin: 0; font: 600 17px/1.3 var(--sans); color: var(--text); overflow-wrap: anywhere; }
.pf-rec-s { margin: 4px 0 0; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* level by date */
.pf-curve { margin: var(--sp-3) 0 0; }
.pf-curve svg { display: block; width: 100%; height: auto; max-width: 640px; }
.pf-curve .pf-axis { stroke: var(--border-strong); stroke-width: 1; }
.pf-curve .pf-line { stroke: var(--ember); stroke-width: 2; stroke-linejoin: round; }
.pf-curve circle { fill: var(--ember); }
.pf-curve .pf-tick { fill: var(--text-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }

/* currently on */
.pf-cur { margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.pf-cur-t { font: 600 16px/1.3 var(--sans); color: var(--text); }
.pf-cur-s { margin: 0 0 var(--sp-2); font-size: 14px; color: var(--text-3); }

/* the givers table */
.pf-table-wrap { overflow-x: auto; max-width: 100%; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-table th, .pf-table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--border); text-align: left; vertical-align: middle; }
.pf-table td:nth-child(2), .pf-table td:nth-child(3) { white-space: nowrap; }
.pf-table thead th { border-top: 0; color: var(--text-3); font-weight: 500; }
.pf-table th[scope="row"] { font-weight: 400; }
.pf-who { display: inline-flex; align-items: center; gap: var(--sp-2); }
.pf-face-s { display: inline-block; width: 28px; height: 28px; image-rendering: pixelated; border-radius: 4px; background: var(--surface-2); flex: none; }

/* the timeline of first finds */
.pf-tl { list-style: none; margin: 0; padding: 0; }
.pf-tl li { display: flex; gap: var(--sp-4); align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.pf-tl li:first-child { border-top: 0; }
.pf-tl-d { flex: none; min-width: 8.5em; color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.pf-tl-n { min-width: 0; overflow-wrap: anywhere; color: var(--text); }

/* art tiles: the first letter, when the art is off or none is drawn */
.pf-tile { display: grid; place-items: center; width: 100%; height: 100%; min-height: 96px; font: 800 44px/1 var(--display); color: var(--text-3); background: var(--surface-2); }

/* the hero with a 3D model: the stage on the left (a poster, then the model), the name beside it */
.pf-hero--3d { gap: 36px; padding: 10px 36px 10px 12px; overflow: hidden; }
.pf-hero--3d .pf-stage { --sk-w: 240px; }

/* the cards: a game card's lines as label and value, never as asterisks and arrows */
.pf-card .wc-sec > h4 { text-transform: uppercase; margin-bottom: 0; }
.pf-card .wc-sec > dl.facts:first-child { margin-top: 0; }
.pf-card dl.facts { grid-template-columns: fit-content(46%) minmax(0, 1fr); column-gap: 0; margin: 0; }
.pf-card dl.facts dt { padding: 8px var(--sp-3) 8px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-card dl.facts dd { padding: 8px 0; font-weight: 400; line-height: 1.5; }
.pf-card dl.facts > div:first-child > * { border-top: 0; }
.pf-card dl.facts dd .note { font-size: 13px; }
.pf-card dl.facts a, .pf-plain a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.pf-card dl.facts dt.pf-solo { grid-column: 1 / -1; font-size: 15px; color: var(--text); padding-right: 0; }
.pf-card dl.facts dt.pf-solo + dd { display: none; }
.pf-plain { list-style: none; margin: 0; padding: 0; }
.pf-plain li { padding: 6px 0; border-top: 1px solid var(--border); color: var(--text-2); max-width: none; }
.pf-plain:first-child li:first-child { border-top: 0; }
@media (max-width: 559px) {
  /* a journal card is narrow even on a phone: keep the label left of its value (the global rule would stack them) */
  .pf-card dl.facts { grid-template-columns: fit-content(46%) minmax(0, 1fr); }
  .pf-card dl.facts dt { border-bottom: 0; padding: 8px var(--sp-3) 8px 0; }
  .pf-card dl.facts dd { border-top: 1px solid var(--border); padding: 8px 0; }
  .pf-card dl.facts > div:first-child > * { border-top: 0; }
}

/* ---- the boards, the House and the badges ---- */
.lb-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.lb-list li { display: flex; gap: var(--sp-2); align-items: baseline; padding: 3px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lb-list li:last-child { border-bottom: 0; }
.lb-list .lb-rk { width: 1.8em; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.lb-list .lb-val { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.lb-count { margin: 2px 0 0; color: var(--text-3); font-size: 13px; }
.lb-list .lb-rk.m1, .lb-list .lb-rk.m2, .lb-list .lb-rk.m3 { color: #1a120d; font-weight: 700; border-radius: var(--pill); width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center; align-self: center; }
.lb-list .lb-rk.m1 { background: #e6b422; }
.lb-list .lb-rk.m2 { background: #c3c8d0; }
.lb-list .lb-rk.m3 { background: #cd7f32; }
.lb-more { margin-top: var(--sp-2); font-size: 14px; }
.lb-more > summary { cursor: pointer; color: var(--ember-soft); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 760px), (pointer: coarse) {
  /* a thumb needs 44 px: each row is that tall and the link fills it, so a tap between two names picks the one it is on */
  .lb-list li { align-items: center; min-height: 44px; padding: 0; }
  .lb-list li > a { display: inline-flex; align-items: center; min-height: 44px; }
  .lb-list .lb-rk.m1, .lb-list .lb-rk.m2, .lb-list .lb-rk.m3 { line-height: 1.7em; }
}

/* four boards in a row of the grid go two by two, never three and a lone fourth */
@media (min-width: 700px) { .lb-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* places 1 to 3: a gold, silver or bronze rim (AA tints on the dark ground), always with the place in words and a pill beside it */
.pl-top { --rim: var(--chits); }
.pl-top--1 { --rim: #F5B841; }
.pl-top--2 { --rim: #C9CED6; }
.pl-top--3 { --rim: #D08B52; }
.pl-gallery .pl-top .c-pills li:first-child .c-pill { color: var(--rim); background: none; font-weight: 700; }
/* The players stand on the page (28 Nov 2026): no card and no rim, a floor line under each skin, the name and two quiet lines. The first three
   wear their place in gold, silver and bronze. */
.pl-gallery .c-gcard, .pl-gallery .c-gcard:hover { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; overflow: visible; }
.pl-gallery .c-gcard-art { padding-top: 0; background: radial-gradient(60% 46% at 50% 92%, rgba(255,255,255,.07), transparent 70%); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; }
.pl-gallery .c-gcard:hover .c-gcard-art { border-color: var(--border-strong); }
.pl-gallery .pl-top .c-pills li:first-child .c-pill { gap: 0; }
.pl-gallery .c-gcard-art > .pl-poster { transition: transform var(--t-mid) var(--ease); }
.pl-gallery .c-gcard:hover .pl-poster { transform: translateY(-4px); }
.pl-gallery .c-gcard-body { padding: var(--sp-3) 0 var(--sp-2); gap: 2px; }
.pl-gallery .c-gcard-body > .c-pills { flex-direction: row; margin-top: 0; padding-top: 0; }
.pl-gallery .c-gallery { --gap: 20px; row-gap: var(--sp-6); }
@media (prefers-reduced-motion: reduce) { .pl-gallery .c-gcard-art > .pl-poster { transition: none; } .pl-gallery .c-gcard:hover .pl-poster { transform: none; } }
/* Leaderboards (28 Nov 2026): a board is a list on the ground under its name, not a boxed card. Its name and its count share one line over a
   rule, a player's name is plain text that underlines on hover (a wall of orange names said nothing), and places 1 to 3 wear a medal alone. */
.lb-grid { gap: var(--sp-6) var(--sp-7); margin-top: var(--sp-5); }
.lbcard, .lbcard:hover { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.lbcard .wc-head { display: block; margin: 0; padding: 0 0 var(--sp-2); border-bottom: 1px solid var(--border-strong); }
.lbcard .wc-head > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.lbcard .wc-name { font-size: 18px; }
.lbcard .lb-count { margin: 0; flex: none; }
.lbcard .lb-list { margin-top: 0; }
.lbcard .lb-list li { padding: 7px 0; }
.lbcard .lb-list li a { color: var(--text); text-decoration: none; }
.lbcard .lb-list li a:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.lbcard .lb-list .vl { color: var(--text-2); }
.lbcard .lb-list li:nth-child(n+4) .lb-rk { padding-right: 5px; }
.lbcard .lb-more { margin-top: 0; border-top: 1px solid var(--border); }
.lbcard .lb-more > summary { color: var(--text-2); font-size: 13px; }
.lbcard .lb-more > summary:hover { color: var(--text); }
.lbcard .lb-more[open] > summary { border-bottom: 1px solid var(--border); }
.lb-you { margin: 0 0 var(--sp-4); max-width: 68ch; font-size: 15px; color: var(--text-3); }
.lb-you strong { color: var(--text-2); font-weight: 600; }
.lb-you code { font-size: .9em; }

/* a badge gallery card: the badge drawn large on its own tile, its plain name under it */
.pf-art { margin: 0 0 var(--sp-3); }
.pf-badge-art { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: var(--sp-2) 0; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.pf-badge-art .badge { white-space: normal; }
/* The badges page (28 Nov 2026): a badge is a row on the ground. The badge as the game draws it, what it takes, and who holds it. */
.bd-list { container-type: inline-size; margin-top: var(--sp-4); border-top: 1px solid var(--border-strong); }
.bd-cols { display: none; }
.bd-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.bd-row:target { background: linear-gradient(90deg, rgba(255,106,31,.08), transparent 70%); }
.bd-row .pf-badge-art { justify-content: flex-start; min-height: 0; padding: 0; }
.bd-what > * { max-width: none; }
.bd-name { margin: 0; font: 800 17px/1.3 var(--display); letter-spacing: 0; color: var(--text); }
.bd-earn { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.bd-tgt { color: var(--text-3); white-space: nowrap; }
.bd-tgt::before { content: "\00B7"; margin: 0 6px 0 2px; }
.bd-how { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.bd-held .pf-meter-n { text-align: left; }
.bd-none { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.bd-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 6px 0 -6px -2px; }
.bd-face-a { display: inline-flex; padding: 6px 2px; }
.bd-face { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 4px; background: var(--surface-2); }
.bd-more { padding-left: var(--sp-2); color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
@container (min-width: 720px) {
  .bd-cols, .bd-row { display: grid; grid-template-columns: 176px minmax(0, 1fr) 264px; column-gap: var(--sp-5); align-items: start; }
  .bd-list > .bd-cols { margin: 0; padding: 10px 0; max-width: none; border-bottom: 1px solid var(--border); font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
  .bd-cols > :last-child { text-align: right; }
  .bd-row .pf-badge-art { padding-top: 1px; }
  .bd-held .pf-meter-n { text-align: right; }
  .bd-faces { justify-content: flex-end; }
  .bd-faces > :last-child { padding-right: 0; }
  .bd-none { text-align: right; }
}
.pf-card dl.facts dd a { padding: 10px 0; margin: -10px 0; }

/* the Players tabs sit under the title (the shell prints them first; flex order moves them) */
.main:has(> .subnav) { display: flex; flex-direction: column; }
.main:has(> .subnav) > * { order: 5; }
.main:has(> .subnav) > h1 { order: 1; margin-bottom: var(--sp-2); }
.main:has(> .subnav) > .subnav { order: 2; gap: var(--sp-1); margin: 0 0 var(--sp-4); border-bottom: 1px solid var(--border); }
.main:has(> .subnav) > .lead { order: 3; }
.main > .subnav a { display: inline-flex; align-items: center; min-height: 44px; border: 0; border-radius: 0; padding: 0 14px; margin-bottom: -1px; color: var(--text-2); border-bottom: 2px solid transparent; }
.main > .subnav a:hover { color: var(--text); text-decoration: none; }
.main > .subnav a[aria-current="page"] { color: var(--text); background: none; border-bottom-color: var(--ember); }

/* ---- phones ---- */
@media (max-width: 480px) {
  .pl-gallery .c-gcard-t { font-size: 15px; letter-spacing: 0; }
}

/* ---- phones: the tabs scroll as one pill row; sections stack; the hero and badges wrap; nothing overflows ---- */
@media (max-width: 760px) {
  .pf-hero { flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4); }
  .pf-id { width: 100%; flex: none; }
  .pf-prog { width: 100%; }
  .pf-face { width: 72px; height: 72px; }
  .pf-hero--3d { align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-4) var(--sp-5); text-align: center; }
  .pf-hero--3d .pf-stage { --sk-w: min(100%, 220px); }
  .pf-hero--3d .pf-badges { justify-content: center; }
  .pf-hero--3d .pf-prog { margin-left: auto; margin-right: auto; }
  .pf-recs { grid-template-columns: minmax(0, 1fr); }
  .pf-facts--2 { grid-template-columns: minmax(0, 1fr); }
  .pf-facts--2 .pf-row:nth-child(2) { border-top: 1px solid var(--border); }
  .pf-tabs ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--sp-4)); margin-right: calc(-1 * var(--sp-4)); padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .pf-tabs ul::-webkit-scrollbar { display: none; }
  .pf-tab { flex: none; }
  .pf-bar { width: 72px; }
}
@media (max-width: 559px) {
  .pf-pets { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pf-xp > span { animation: none; } }

/* The Trades tab of a profile (pages/players/tabs/trades.py): one section per trade. Tokens (--text-3, --trade-*, --xp, --chits, --surface-2, --border,
   --pill, --sp-*) come from site.css; the galleries and their cards from components.css. Only what is particular to a trade is set here. */

.tr-tab { display: grid; gap: var(--sp-7); }
.tr { --tr: var(--text-3); margin: 0; }
.tr--mining { --tr: var(--trade-mining); }
.tr--fishing { --tr: var(--trade-fishing); }
.tr--gathering { --tr: var(--trade-gathering); }
.tr--farming { --tr: var(--trade-farming); }

/* the head: the trade's name, then its Level and rank on the board */
.tr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
  padding-bottom: var(--sp-2); border-bottom: 2px solid var(--tr); }
.tr-head > h3 { margin: 0; }
.tr-lvl { margin: 0; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-rank { margin-left: var(--sp-3); color: var(--text-3); }

/* the XP bar: the text above it, right-aligned, then a thin bar in the trade's colour */
.tr-xp { margin: var(--sp-3) 0 0; }
.tr-xp-n { margin: 0 0 4px; text-align: right; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-xp-bar { height: 6px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.tr-xp-bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--tr); }

/* the stat list: two columns from 560 px, one below; the label on the left in grey, the value on the right in tabular numbers */
.tr-stats { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--sp-6); margin: var(--sp-3) 0 0; }
.tr-stat { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tr-stat > dt { color: var(--text-3); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tr-stat > dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.5; overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .tr-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* the owned things: a small heading over each gallery */
.tr-group { margin-top: var(--sp-5); }
.tr-group > h4 { margin: 0 0 var(--sp-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tr-group .c-gallery { gap: var(--sp-3); }

/* a trade with nothing yet, one grey line */
.tr-none { margin: var(--sp-3) 0 0; color: var(--text-3); }

/* the fish table, folded under its summary */
.tr-more { margin-top: var(--sp-4); }
.tr-more > summary { cursor: pointer; color: var(--text-2); }
.tr-more > summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---- the profile's layout (19 Oct cleanup): who they are on the left, what they have done on the right ----
   From 1100 px the hero, the six numbers and the boards stand in a 340 px column beside the tabs; below that they stack, as before. Every section of
   every tab is one card on the surface, so the tabs read as one set of panels rather than loose text on the ground. */
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); margin-top: var(--sp-2); }
.pf-side, .pf-main { min-width: 0; }
.pf-side > .updated { margin: var(--sp-2) 0 0; }
.pf-journal { margin-top: 0; }
.pf-tabs ul { margin-top: 0; }
@media (min-width: 1100px) {
  .pf-layout { grid-template-columns: 340px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
  .pf-side .pf-hero { flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); margin: 0; padding: var(--sp-3) var(--sp-5) var(--sp-5); }
  .pf-side .pf-hero--3d .pf-stage { --sk-w: 220px; }
  .pf-side .pf-id { width: 100%; flex: none; }
  .pf-side .pf-id h1 { font-size: 40px; }
  .pf-side .pf-prog { width: 100%; }
  .pf-side .pf-badges { justify-content: center; }
  .pf-side .stat-row, .pf-side .stat-row:has(> :nth-child(n):last-child) { --k: 2; --pad: 16px; margin-top: var(--sp-4); margin-bottom: 0; }
  .pf-side .stat-row .stat-tile .stat-n { font-size: 22px; }
  .pf-side .pf-boards-wrap { margin-top: var(--sp-3); }
  .pf-side .pf-boards li { font-size: 13px; padding: 3px 12px; }
}

/* badges in the hero: all one size, the one they wear first with a small label over it */
.pf-badges { gap: var(--sp-1) var(--sp-3); }
.pf-badges li { justify-content: flex-end; }
.pf-wearing { font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ember-soft); }

/* the tabs: a segmented bar, the chosen one filled */
.pf-tabs ul { gap: var(--sp-1); padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); display: inline-flex; max-width: 100%; }
.pf-tabs { margin: 0 0 var(--sp-4); scroll-margin-top: calc(var(--header) + var(--sp-4)); }
/* the Overview's cards stand one under another in the narrower right column */
.pf-main .ov { grid-template-columns: minmax(0, 1fr); }
.pf-tab { border: 0; min-height: 40px; padding: 0 var(--sp-4); }
.js .pf-tabset .pf-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.js .pf-tabset[data-active] .pf-tab[aria-selected="false"] { background: none; box-shadow: none; color: var(--text-2); }
.js .pf-tabset[data-active] > .pf-panel { display: none; }
.js .pf-tabset[data-active="overview"] > .pf-panel--overview,
.js .pf-tabset[data-active="trades"] > .pf-panel--trades,
.js .pf-tabset[data-active="bounties"] > .pf-panel--bounties,
.js .pf-tabset[data-active="pets"] > .pf-panel--pets,
.js .pf-tabset[data-active="collection"] > .pf-panel--collection { display: block; }

/* every section of a tab is a card */
.pf-panel { display: block; }
.pf-panel > .pf-sec, .tr-tab > .tr { margin: 0 0 var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pf-panel > .pf-sec .pf-h { font: 600 15px/1.3 var(--sans); margin-bottom: var(--sp-2); }
.tr-tab { gap: 0; }
.tr-head > h3 { font-size: 20px; }

/* the givers table: names as names, not small capitals; the badge to earn drawn muted */
.pf-table tbody th, .pf-table tbody th a { text-transform: none; letter-spacing: 0; font: 500 15px/1.3 var(--sans); color: var(--text); }
.pf-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pf-goal { opacity: .85; }

/* a trade's things: small cards, many to a row. Mines keep their pit poster at 4:3; picks, rods, ponds and gear are a row of icon and name */
.tr-group .c-gallery { --c-m: 3 !important; --c-l: 4 !important; --gap: 12px; margin: var(--sp-2) 0 0; }
.tr-group .c-gcard-body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.tr-group .c-gcard-t { font-size: 15px; }
.tr-group .c-gcard-s { font-size: 13px; }
.tr-group .c-gcard:not(.c-gcard--poster) { flex-direction: row; align-items: center; }
.tr-group .c-gcard:not(.c-gcard--poster) .c-gcard-art { flex: none; width: 64px; height: 64px; box-shadow: none; background: var(--surface-2); border-radius: var(--radius-sm); margin: var(--sp-2) 0 var(--sp-2) var(--sp-3); }
.tr-group .c-gcard:not(.c-gcard--poster) .ic { --s: 40px !important; }
.tr-group .c-gcard:not(.c-gcard--poster) .c-gcard-body { padding: var(--sp-2) var(--sp-3); }
.tr-group .c-gallery > .c-gcard:last-child:nth-child(odd) { flex-grow: 1; margin-inline: 0; }

/* pets with one coat: the egg, centred in the head's square */
.pt-egg { display: grid; place-items: center; background: var(--surface-2); border-radius: var(--radius-sm); }
.pt-egg .ic { --s: 48px !important; }
.pt-grid { gap: var(--sp-3); }

/* the logbook's fold of firsts */
.pf-more { margin-top: var(--sp-2); }
.pf-more > summary { font-weight: 500; }
.pf-more .pf-sub-h:first-child { margin-top: var(--sp-2); }

@media (max-width: 760px) {
  .pf-tabs ul { display: flex; border-radius: var(--radius); }
  .pf-panel > .pf-sec, .tr-tab > .tr { padding: var(--sp-4); }
  .tr-group .c-gallery { --c-m: 2 !important; --c-l: 2 !important; }
}

/* ---- second pass (19 Oct): the Trades tab, the pets' pictures and the leaderboards card ---- */

/* a trade: an accent stripe, its name and level, its place on the board as a pill on the right */
.tr-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding: 0 0 var(--sp-3); border-bottom: 1px solid var(--border); }
.tr-head::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--tr); }
.tr-head > h3 { margin: 0; font-size: 20px; }
.tr-lvl { margin: 0; color: var(--text); font-weight: 600; }
.tr-rank { margin-left: auto; font: 600 13px/1.4 var(--sans); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 3px 12px; font-variant-numeric: tabular-nums; }
.tr-xp-n { text-align: left; color: var(--text-3); }

/* its numbers: small tiles, the number on top, the label under it */
.tr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: var(--sp-2); margin: var(--sp-4) 0 0; }
.tr-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; background: var(--surface-2); border-radius: var(--radius-sm); min-width: 0; }
.tr-stat > dd { order: 0; margin: 0; text-align: left; font: 700 19px/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tr-stat > dt { order: 1; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.tr-stat .pf-of { gap: 6px; }
.tr-stat .pf-bar { width: 40px; }
.tr-stat .pf-of-n { font: 700 19px/1.2 var(--display); }

/* the things it owns: one even grid of rows, a small square picture, the name and one quiet line */
.tr-group { margin-top: var(--sp-5); }
.tr-items { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--sp-2); }
.tr-item { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; min-height: 64px; padding: var(--sp-2); background: var(--surface-2); border-radius: var(--radius-sm); }
.tr-thumb { flex: none; width: 56px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, .28); }
.tr-thumb picture, .tr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tr-thumb .ic { --s: 36px !important; }
.tr-it { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-it-t { font: 600 14px/1.3 var(--sans); color: var(--text); overflow-wrap: anywhere; }
.tr-it-t a { color: inherit; text-decoration: none; }
.tr-it-t a:hover { color: var(--ember-soft); text-decoration: underline; }
.tr-it-s { font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.tr-more { margin-top: var(--sp-4); }

/* pets: every pet by its egg in the same square tile; the coat's own picture sits beside its name in the Coat row */
.pt-head.pt-egg { width: 64px; height: 64px; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border); }
.pt-egg .ic { --s: 44px !important; }
.pt-coat-v { display: inline-flex; align-items: center; gap: 6px; }
.pt-coat { width: 20px; height: 20px; image-rendering: pixelated; border-radius: 3px; }

/* the leaderboards card under the sidebar: one row a place, best first */
.pf-boards-wrap { margin: var(--sp-3) 0 0; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pf-boards-h { margin: 0 0 var(--sp-3); font: 600 15px/1.3 var(--sans); color: var(--text); }
.pf-places { list-style: none; margin: 0; padding: 0; }
.pf-place { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.pf-place:first-child { border-top: 0; padding-top: 0; }
.pf-medal { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 700 13px/1 var(--sans); color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); font-variant-numeric: tabular-nums; }
.pf-medal--1 { background: #F5B841; color: #1A120D; box-shadow: none; }
.pf-medal--2 { background: #C9CED6; color: #1A120D; box-shadow: none; }
.pf-medal--3 { background: #D08B52; color: #1A120D; box-shadow: none; }
.pf-place-b { padding-top: 3px; line-height: 1.5; min-width: 0; }
.pf-boards-all { margin: var(--sp-3) 0 0; font-size: 14px; }
.tr-head { justify-content: flex-start; }
.tr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 559px) { .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- third pass (19 Oct): Minecraft-sized XP bars, the worn badge only, rectangular tabs ---- */

/* XP bars at the game's proportions (its bar is 182 by 5 GUI pixels with notches along it): at most 364 by 10 here, notched into
   ten segments, in the flame (or the trade's colour) rather than the game's green */
.pf-xp, .tr-xp-bar { position: relative; width: 100%; max-width: 364px; height: 10px; border-radius: 2px; background: #1a120d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 1px var(--border-strong); overflow: hidden; }
.pf-xp > span, .tr-xp-bar > span { border-radius: 0; }
.pf-xp::after, .tr-xp-bar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), rgba(0, 0, 0, .55) calc(10% - 2px), rgba(0, 0, 0, .55) 10%); }
.pf-prog { width: 100%; max-width: 364px; }
.pf-side .pf-prog { margin-left: auto; margin-right: auto; }
.pf-side .pf-xp { margin: 0 auto; }
.tr-xp { max-width: 364px; }

/* the worn badge alone under the name, a little larger, with its label */
.pf-badges { margin-top: var(--sp-3); justify-content: center; }
.pf-badges li.pf-worn { align-items: center; }
.pf-badges li.pf-worn a { font-size: 1.15em; }

/* the tabs: one row of equal rectangular buttons; the chosen one lifted, with an ember bar along its foot */
.pf-tabs ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.pf-tab { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; padding: 0 var(--sp-3);
  border: 0; border-radius: 6px; font: 600 15px/1 var(--sans); letter-spacing: .01em; color: var(--text-2); background: none;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.pf-tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); border-color: transparent; }
.js .pf-tabset .pf-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2);
  box-shadow: inset 0 -3px 0 var(--ember), inset 0 0 0 1px var(--border-strong), 0 2px 8px rgba(0, 0, 0, .35); }
.js .pf-tabset[data-active] .pf-tab[aria-selected="false"] { box-shadow: none; }
.pf-tab:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
@media (max-width: 760px) {
  .pf-tabs ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-radius: 10px; margin: 0; }
  .pf-tab { padding: 0 var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) { .pf-tab { transition: none; } }
.pf-xp { height: 14px; }
.tr-xp-bar { height: 12px; }

/* the Trades tab's overview: one tile a trade, a link to its section */
.tr-overview { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--sp-2); }
.tr-ov.tr--mining { --tr: var(--trade-mining); } .tr-ov.tr--fishing { --tr: var(--trade-fishing); } .tr-ov.tr--gathering { --tr: var(--trade-gathering); } .tr-ov.tr--farming { --tr: var(--trade-farming); }
.tr-ov a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--tr); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.tr-ov a:hover { background: var(--surface-2); text-decoration: none; }
.tr-ov-n { font: 600 16px/1.2 var(--display); letter-spacing: .015em; }
.tr-ov-l { font: 700 20px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.tr-ov-r { font-size: 12.5px; color: var(--text-3); }
.tr-ov-bar { display: block; height: 6px; margin-top: 6px; border-radius: 2px; background: #1a120d; overflow: hidden; }
.tr-ov-bar > span { display: block; height: 100%; background: var(--tr); }
.tr-tab > .tr { scroll-margin-top: calc(var(--header) + var(--sp-4)); }
/* a pet's Hunger and Love: a short bar with the percent after it, as the game's pet card has them */
.pt-care { display: inline-block; width: 72px; height: 6px; border-radius: 2px; background: #1a120d; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.pt-care > span { display: block; height: 100%; }
.pt-care--hunger > span { background: #F5B841; }
.pt-care--love > span { background: #F07CF5; }
.pt-care-n { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ---- the polish pass (28 Nov 2026) ---- */
/* the play calendar: one square a day, a column a week. It had no rule of its own, so the squares were empty spans and the card showed its
   note and nothing else. */
.pl-cal { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; grid-auto-flow: column; gap: 4px; margin: var(--sp-3) 0 var(--sp-2);
  max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
.pl-cal-d { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.pl-cal-d.on { background: var(--ember); box-shadow: none; }
/* the cards under the Overview's blocks keep the blocks' gap */
.pf-panel > .ov + .pf-sec { margin-top: var(--sp-4); }
/* the five tabs fit a phone: they share the row, each as wide as its word needs; only under 350 px does the row scroll */
@media (max-width: 760px) {
  .pf-tabs ul { display: flex; gap: 2px; }
  .pf-tab { flex: 1 0 auto; width: auto; padding: 0 var(--sp-3); }
}
@media (max-width: 480px) {
  .pf-tab { padding: 0 6px; font-size: 13px; letter-spacing: 0; }
}
/* the jump links on /leaderboards, and the fold on /house */
.lb-jump { margin: var(--sp-4) 0 0; }
.hs-more { margin-top: var(--sp-3); }
.hs-more > summary { font-size: 15px; }
.hs-more[open] > summary { margin-bottom: var(--sp-2); }

/* ---- the bold pass (28 Nov 2026): a profile's sections stand on the ground. The player's card on the left is the one card of the page; a
   section of a tab is a heading over a rule, and a figure is a number over its label with no tile behind it. ---- */
.pf-panel > .pf-sec, .tr-tab > .tr, .pf-main .ov-block { margin: 0; padding: var(--sp-4) 0 var(--sp-6); background: none; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; }
.pf-panel > .pf-sec .pf-h, .pf-main .ov-block h3 { margin: 0 0 var(--sp-3); font: 600 20px/1.3 var(--display); letter-spacing: .015em; }
.pf-main .ov { gap: 0 var(--sp-6); }
.pf-boards-wrap { margin-top: var(--sp-5); padding: var(--sp-4) 0 0; background: none; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; }
.pf-boards-h { font: 600 20px/1.3 var(--display); letter-spacing: .015em; }
.tr-stats { gap: 0 var(--sp-5); }
.tr-stat { padding: 10px 0; background: none; border-radius: 0; border-top: 1px solid var(--border); }
.tr-head { border-bottom: 0; padding-bottom: 0; }
.pf-chars { gap: 0 var(--sp-3); }
.pf-chars a { min-height: 44px; padding: 0; border: 0; border-radius: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.pf-chars a:hover { text-decoration-color: var(--ember); }
@media (min-width: 1100px) {
  .pf-main .ov { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pf-main .ov > .ov-block:not(.ov-chart, .ov-on--cards, .ov-discord):last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* a long count beside its bar ("552 of 1,000 clean sweeps") drops under the bar on a phone, where it pushed the page 8 px sideways */
.pf-row .pf-of { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
/* the four trades at a glance: one ruled strip, each trade under a rule of its own colour, where four outlined boxes stood */
.tr-overview { gap: 0; margin: 0 0 var(--sp-5); border-bottom: 1px solid var(--border-strong); }
.tr-ov a, .tr-ov a:hover { background: none; border: 0; border-radius: 0; }
.tr-ov a { padding: var(--sp-3) var(--sp-4) var(--sp-4); border-left: 1px solid var(--border); box-shadow: inset 0 2px 0 var(--tr); }
.tr-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tr-ov:first-child a { padding-left: 0; border-left: 0; }
@media (max-width: 699px) {
  .tr-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-ov:nth-child(odd) a { padding-left: 0; border-left: 0; }
}
.tr-ov a:hover .tr-ov-n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* what a player owns: a thing is its picture and its name on the ground, a hairline under the row */
.tr-items { gap: 0 var(--sp-4); }
.tr-item { min-height: 60px; padding: 6px 0; background: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.tr-thumb { background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 10px; }
