/* TriCity Tycoon - Player Files, phase 1 (round-2 design, Anton 2026-11-28 09:02 ET "okay with this style").
   Calm: flat navy panels with one hairline, brass only on the active underline, the cash bar and the primary button; two
   text greys; one type scale (10.5 / 12 / 13.5 / 16 / 22); plain 16 px line icons; manila filing tabs for players.
   No rounded corners, no glows, no purple outside tokens and the game's own board colours. Everything is scoped to
   .pf-sheet and prefixed pf- so nothing here touches the game's own .btn / .card / .stat styles. */
html.pf-open, html.pf-open body { overflow: hidden; }
.pf-sheet {
  --bg: #0f1531; --panel: #151c3d; --panel2: #1a2247; --line: rgba(255, 255, 255, .07); --line2: rgba(212, 176, 98, .32);
  --ink: #efe7d2; --ink2: #b3bbd6; --ink3: #8e98ba; --brass: #d4b062; --brass-ink: #e2c47e;
  --manila: #e5d6ae; --kraft: #b19b70; --m-ink: #33270f; --m-ink2: #5c4b2a; --in: #86cf9f; --out: #eb9a90;
  --disp: Fredoka, Nunito, sans-serif; --body: Nunito, sans-serif;
  position: fixed; inset: 0; z-index: 4800; display: flex; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased;
}
.pf-sheet *, .pf-sheet *::before, .pf-sheet *::after { box-sizing: border-box; border-radius: 0; }
.pf-sheet.phone { background: var(--bg); }
.pf-sheet.desk { background: rgba(5, 8, 24, .72); align-items: center; justify-content: center; }
.pf-sheet button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; min-width: 0; }
.pf-sheet button:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: -2px; }
.pf-in { position: relative; display: flex; flex-direction: column; min-height: 0; width: 100%; background: var(--bg); }
.pf-sheet.phone .pf-in { height: 100%; max-width: 640px; margin: 0 auto; padding: 0 12px env(safe-area-inset-bottom); }
.pf-sheet.desk .pf-in { width: min(1360px, calc(100vw - 40px)); height: min(860px, calc(100vh - 40px)); padding: 0 24px 20px; box-shadow: 0 0 0 1px var(--line2), 0 20px 60px rgba(0, 0, 0, .5); }

.pf-topbar { display: flex; align-items: center; gap: 12px; height: 56px; flex: none; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.pf-kick { font: 800 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.pf-ttl { font: 600 22px/1 var(--disp); color: var(--ink); white-space: nowrap; }
.pf-tblk { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pf-sp { flex: 1; }
.pf-round { font: 800 10.5px/1 var(--body); letter-spacing: .12em; color: var(--ink3); white-space: nowrap; }

/* buttons: flat, one hairline, chamfer only on the primary */
.pf-sheet .pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px; font: 500 13.5px/1 var(--disp); color: var(--ink); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line2); }
.pf-sheet .pf-btn.on { background: rgba(212, 176, 98, .16); color: var(--brass-ink); }
.pf-sheet .pf-btn.pri { background: var(--brass); color: #2a1e08; box-shadow: none; font-weight: 600; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.pf-sheet .pf-btn.pri.dim { background: #8f7a4a; color: #1e1606; }
.pf-sheet .pf-btn.lg { min-height: 48px; font-size: 16px; }
.pf-sheet .pf-btn.icon { width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; }
.pf-sheet .pf-btn.icon svg { width: 14px; height: 14px; }
.pf-lock { width: 11px; height: 11px; flex: none; }

/* player tabs: plain manila file-folder tabs; the token is the identifier; the open one joins the folder (the file header) */
.pf-ntabs { display: flex; align-items: flex-end; gap: 3px; height: 46px; flex: none; padding: 0 4px; min-width: 0; }
.pf-sheet .pf-ntab { position: relative; flex: 0 1 64px; min-width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 2px;
  background: var(--kraft); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%); }
.pf-sheet .pf-ntab.on { background: var(--manila); height: 46px; }
.pf-ntab img { width: 26px; height: 26px; object-fit: contain; pointer-events: none; }
.pf-ntab .pf-lb { font: 800 9.5px/1 var(--body); letter-spacing: .08em; color: var(--m-ink); white-space: nowrap; }
.pf-ntab.out img { filter: grayscale(1); opacity: .5; }

/* file header = the folder front */
.pf-fhead { flex: none; background: var(--manila); color: var(--m-ink); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px 14px; }
.pf-fhead .tk { width: 48px; height: 48px; object-fit: contain; }
.pf-fhead .tk.out { filter: grayscale(1); opacity: .6; }
.pf-who { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pf-who h2 { margin: 0; font: 600 22px/1 var(--disp); color: var(--m-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-who .meta { display: flex; align-items: center; gap: 6px; font: 700 12px/1.25 var(--body); color: var(--m-ink2); }   /* pfux-1128: wraps to a second line rather than being cut ("Now in Goldspire" at 360) */
.pf-who .meta img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.pf-stats { grid-column: 1 / -1; display: flex; gap: 22px; padding-top: 8px; border-top: 1px solid rgba(51, 39, 15, .14); min-width: 0; }
.pf-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-stat .k { display: flex; align-items: center; gap: 4px; font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--m-ink2); white-space: nowrap; }
.pf-stat .v { font: 600 18px/1 var(--disp); color: var(--m-ink); white-space: nowrap; }
.pf-fhead .pf-stat .v.cash { color: #1a5c33; } .pf-fhead .pf-stat .v.debt { color: #8a2a1e; }
.pf-stat .v.priv { display: flex; align-items: center; gap: 5px; font-size: 15px; color: var(--m-ink2); }
.pf-gap { height: 6px; flex: none; }

/* section tabs: plain text, brass underline */
.pf-stabs { display: flex; gap: 2px; flex: none; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.pf-stabs::-webkit-scrollbar { display: none; }
.pf-sheet .pf-stab { flex: 0 0 auto; height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 5px; font: 500 13.5px/1 var(--disp); color: var(--ink2); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.pf-sheet .pf-stab.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); }
.pf-stab .n { font: 700 11px/1 var(--body); color: var(--ink3); }
.pf-sheet.phone .pf-stab { padding: 0 6px; }

.pf-body { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: rgba(212, 176, 98, .3) transparent; }
.pf-empty { font: 700 13px/1.4 var(--body); color: var(--ink3); padding: 18px 2px; }
.pf-empty.sm { padding: 6px 0; font-size: 12px; }
.pf-note { font: 700 12px/1.35 var(--body); color: var(--ink3); margin-top: 8px; }

/* pfux-1128: the calm My File (Overview / Payments / My stuff). Notched plates (radius 0), big friendly numbers, words over
   jargon; spending in a soft warm tone (--out), never alarm red. Bars grow once on open (off under reduced motion). */
.pf-sheet { --out: #e9b083; --tile: #151c3d; --hello: #1a2247; }
.pf-sheet .vin { color: var(--in); } .pf-sheet .vout { color: var(--out); }
.pf-sheet.phone .pf-stabs.n3, .pf-sheet.phone .pf-stabs.n2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pf-sheet.phone .pf-stabs.n3 .pf-stab, .pf-sheet.phone .pf-stabs.n2 .pf-stab { justify-content: center; font-size: 15px; height: 46px; }
.pf-hello { flex: none; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--hello); padding: 14px 14px 14px 12px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); box-shadow: inset 3px 0 0 var(--brass); }
.pf-hello.soft { box-shadow: inset 3px 0 0 var(--out); }
.pf-hello .ic svg { width: 24px; height: 24px; display: block; margin-top: 1px; }
.pf-hello p { margin: 0; font: 500 16.5px/1.38 var(--disp); color: var(--ink); }
.pf-hello p b { font-weight: 600; white-space: nowrap; }
.pf-bix { flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; padding: 10px 12px; background: rgba(233, 176, 131, .1);
  box-shadow: inset 0 0 0 1px rgba(233, 176, 131, .35); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.pf-bix img { width: 40px; height: 40px; object-fit: contain; }
.pf-bix p { margin: 0; font: 700 13px/1.35 var(--body); color: var(--ink); } .pf-bix p b { color: var(--brass-ink); font-weight: 800; }
.pf-tiles { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pf-tile { min-width: 0; min-height: 84px; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 9px; background: var(--tile);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.pf-tile small { font: 800 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.pf-tile b { font: 600 22px/1 var(--disp); color: var(--ink); white-space: nowrap; }
.pf-tile.nm b { font-size: 15px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.pf-tile em { margin-top: auto; font: 700 11.5px/1.2 var(--body); font-style: normal; color: var(--ink3); }
.pf-worth { flex: none; margin: 10px 2px 0; font: 700 13px/1.35 var(--body); color: var(--ink2); } .pf-worth b { color: var(--ink); font: 600 14px/1 var(--disp); }
.pf-money { flex: none; margin-top: 12px; padding: 14px; background: var(--panel); }
.pf-mside + .pf-mside { margin-top: 16px; }
.pf-mh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pf-mh b { font: 600 16px/1 var(--disp); color: var(--ink); } .pf-mh span { font: 600 16px/1 var(--disp); white-space: nowrap; }
.pf-bar { height: 12px; background: rgba(255, 255, 255, .06); } .pf-bar i { display: block; height: 100%; transform-origin: left center; }
.pf-bar i.grow { animation: pfGrow .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pfGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pf-bar i.grow { animation: none; } }
.pf-why { list-style: none; margin: 6px 0 0; padding: 0; }
.pf-why li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font: 700 13.5px/1.2 var(--body); color: var(--ink2); }
.pf-why li:last-child { border-bottom: 0; }
.pf-why li span { min-width: 0; } .pf-why li b { flex: none; font: 600 14px/1 var(--disp); color: var(--ink); }
.pf-why li.more { color: var(--ink3); } .pf-why li.more b { color: var(--ink2); }
.pf-span { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 -8px; font: 700 12.5px/1 var(--body); color: var(--ink3); }
/* hotfix-1129 (bug hunt #6): borrowed money on its own line under the bars, never inside Money in. Same calm panel, soft warm tone. */
.pf-loan { flex: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 4px; margin-top: 8px; padding: 10px 14px; background: var(--panel); font: 700 13px/1.3 var(--body); color: var(--ink2); }
.pf-loan .pf-ico { grid-row: span 2; align-self: start; }
.pf-loan .k { grid-column: 2; } .pf-loan b { grid-column: 3; color: var(--out); font: 600 14px/1 var(--disp); text-align: right; }
.pf-loan em { grid-column: 2 / -1; font: 600 12px/1.3 var(--body); font-style: normal; color: var(--ink3); }
.pf-sheet .pf-btn.link { box-shadow: none; padding: 0 2px; color: var(--brass-ink); font-size: 14px; text-decoration: underline; text-decoration-color: rgba(226, 196, 126, .5); text-underline-offset: 4px; }
.pf-sheet .pf-btn.wide { flex: none; width: 100%; margin-top: 10px; background: rgba(212, 176, 98, .1); color: var(--brass-ink); font-size: 15px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.pf-sech { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 20px 0 4px; }
.pf-sech.first { margin-top: 2px; margin-bottom: 10px; }
.pf-sech b { font: 600 16px/1 var(--disp); color: var(--ink); }
.pf-sech small { font: 700 12px/1 var(--body); color: var(--ink3); white-space: nowrap; }
/* payments: one plain sentence a row */
.pf-plist { flex: none; display: flex; flex-direction: column; }
.pf-prow { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pf-ico { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.pf-ico svg { width: 16px; height: 16px; }
.pf-psay { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-psay .a { font: 600 14.5px/1.32 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.pf-psay .a b { font-weight: 800; white-space: nowrap; }
.pf-st-n { white-space: nowrap; font-weight: 700; }
.pf-psay .bal { font: 700 11.5px/1.2 var(--body); color: var(--ink3); }
.pf-rdiv { display: flex; align-items: center; gap: 8px; height: 32px; flex: none; font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.pf-rdiv::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pf-phead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; font: 700 12.5px/1.2 var(--body); color: var(--ink3); }
.pf-sheet .pf-phead .pf-btn { min-width: 92px; }
.pf-phead .dot { width: 7px; height: 7px; background: var(--brass-ink); transform: rotate(45deg); }
.pf-fpanel { flex: none; margin: 6px 0 4px; padding: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.pf-fpanel .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-sheet .pf-fpanel .pf-btn { font-size: 13.5px; }
.pf-sheet .pf-fpanel .pf-btn.tog { justify-content: flex-start; box-shadow: none; padding: 0 2px; color: var(--ink2); white-space: normal; text-align: left; line-height: 1.25; }
.pf-fpanel .box { width: 18px; height: 18px; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink3); }
.pf-fpanel .box.on { background: var(--brass); box-shadow: inset 0 0 0 1.5px var(--brass), inset 0 0 0 4px var(--panel); }
.pf-note.c { text-align: center; margin: 12px 0 4px; }
/* desktop: the two money sides sit side by side */
.pf-sheet.desk .pf-money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
.pf-sheet.desk .pf-mside + .pf-mside { margin-top: 0; }
.pf-sheet.desk .pf-span { grid-column: 1 / -1; }
.pf-sheet.desk .pf-stabs.n3 .pf-stab, .pf-sheet.desk .pf-stabs.n2 .pf-stab { padding: 0 16px; font-size: 15px; }
.pf-sheet.desk .pf-hello p { font-size: 18px; }

/* holdings */
.pf-hsum, .pf-factrow { display: flex; gap: 22px; flex: none; padding: 2px 2px 12px; }
/* narrow phones (360): four stats must fit the row without being cut (MORTGAGED at 360 px) */
.pf-sheet.phone :is(.pf-hsum, .pf-factrow) { gap: 10px; justify-content: space-between; }
.pf-sheet.phone :is(.pf-hsum, .pf-factrow) .pf-stat .k { letter-spacing: .06em; }
:is(.pf-hsum, .pf-factrow) .pf-stat .k { color: var(--ink3); } :is(.pf-hsum, .pf-factrow) .pf-stat .v { color: var(--ink); } :is(.pf-hsum, .pf-factrow) .pf-stat .v.debt { color: var(--out); }
.pf-port { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; font: 700 12px/1.2 var(--body); flex: none; background: var(--panel); padding: 2px 12px; }
.pf-port.flat { background: none; padding: 0; margin-top: 10px; }
.pf-port > span { padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); }
.pf-port > span.h { padding-left: 0; }
.pf-port > span:nth-last-child(-n+3) { border-bottom: 0; }
.pf-port .h { font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding-top: 10px; }
.pf-port .r { color: var(--ink2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-port .r b { color: var(--ink); font: 600 13.5px/1 var(--disp); }
.pf-port .r b.debt { color: var(--out); }
.pf-city { flex: none; margin-top: 14px; }
.pf-cityh { display: flex; align-items: baseline; gap: 8px; height: 26px; padding-left: 9px; box-shadow: inset 3px 0 0 var(--cc); font: 600 13.5px/26px var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.pf-cityh small { font: 700 11px/1 var(--body); letter-spacing: .02em; text-transform: none; color: var(--ink3); }
.pf-setrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.pf-setn { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-setn .nm { font: 500 12px/1.1 var(--disp); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-setn .q { font: 700 11px/1 var(--body); color: var(--ink3); }
.pf-deeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; min-width: 0; }
.pf-deed { position: relative; min-width: 0; min-height: 38px; padding: 8px 5px 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; overflow: hidden; background-color: #e9dfc6; box-shadow: inset 0 4px 0 var(--gc); }
.pf-deed .dn { font: 800 10px/1.1 var(--body); color: #1d2747; overflow-wrap: anywhere; }   /* long names (Industrial Terminal) wrap to a second line instead of being cut */
.pf-deed .lv { display: flex; gap: 2px; align-items: center; height: 10px; }
.pf-deed .lv i { width: 6px; height: 6px; background: #2e6b49; }
.pf-deed .lv i.top { width: 8px; height: 8px; background: #a8322c; }
.pf-deed .lv em { font: 800 8.5px/1 var(--body); color: #4e4330; font-style: normal; letter-spacing: .06em; }
.pf-deed.m { background-color: #ddd3bb; }
.pf-deed.m .lv em { color: #8a2a1e; }
.pf-deed.miss { background-color: #1a2142; box-shadow: inset 0 0 0 1px var(--line); }
.pf-deed.miss .dn { color: var(--ink2); }
.pf-deed.miss .lv em { color: var(--ink3); }

/* other player */
.pf-pubnote { display: flex; align-items: center; gap: 6px; font: 700 12px/1.3 var(--body); color: var(--ink3); flex: none; margin-bottom: 10px; }
.pf-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.pf-sec-h b { font: 600 14px/1 var(--disp); color: var(--ink); }
.pf-sec-h small { font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.pf-dfile { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.pf-dlab { display: flex; flex-direction: column; gap: 3px; font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.pf-dlab b { font: 600 14px/1 var(--disp); letter-spacing: 0; color: var(--brass-ink); }
.pf-dtext { font: 700 12px/1.35 var(--body); color: var(--ink2); min-width: 0; overflow-wrap: anywhere; }
.pf-dtext b { color: var(--ink); font-weight: 800; }
.pf-st { margin-left: 6px; font: 800 10.5px/1 var(--body); letter-spacing: .1em; }
.pf-st.open { color: var(--brass-ink); } .pf-st.signed { color: var(--in); }
.pf-actbar { flex: none; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 0 8px; }
.pf-actbar.desk { grid-template-columns: 260px 1fr; align-items: center; padding: 14px 0 0; }
.pf-actnote { flex: none; text-align: center; font: 700 11px/1.2 var(--body); color: var(--ink3); padding-bottom: 12px; }
.pf-actbar.desk .pf-actnote { text-align: left; padding: 0; }
.pf-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; flex: none; }
.pf-2col > .pf-city { margin-top: 14px; }

/* cards & feats */
.pf-cards { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.pf-hcard { width: 72px; display: flex; flex-direction: column; gap: 5px; }
.pf-hcard img { width: 72px; height: 100px; object-fit: cover; background: var(--panel2); }
.pf-rail .pf-hcard { width: 58px; } .pf-rail .pf-hcard img { width: 58px; height: 81px; }
.pf-hcard b { font: 500 11px/1.15 var(--disp); color: var(--ink); }
.pf-hcard small { font: 800 10px/1.1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.pf-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.pf-feat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pf-feat .art { width: 40px; height: 40px; display: grid; place-items: center; color: var(--brass-ink); }
.pf-feat .art svg, .pf-feat .art .pf-sym { width: 40px; height: 40px; display: block; }
.pf-feat b { font: 500 11.5px/1.1 var(--disp); color: var(--ink); }
.pf-feat small { font: 800 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }

/* desktop */
.pf-dtop { display: flex; align-items: flex-end; gap: 28px; height: 74px; flex: none; }
.pf-dtop .pf-tblk { padding-bottom: 14px; width: 150px; flex: none; }
.pf-dtop .right { display: flex; align-items: center; gap: 14px; margin-left: auto; padding-bottom: 12px; }
.pf-dtop .pf-ntabs { flex: 0 1 auto; padding: 0; height: 52px; }
.pf-sheet.desk .pf-ntab { flex: 0 0 76px; height: 50px; }
.pf-sheet.desk .pf-ntab.on { height: 52px; }
.pf-sheet.desk .pf-ntab img { width: 30px; height: 30px; }
.pf-sheet.desk .pf-fhead { grid-template-columns: 56px auto minmax(0, 1fr); padding: 14px 20px; gap: 18px; }
.pf-sheet.desk .pf-fhead .tk { width: 56px; height: 56px; }
.pf-sheet.desk .pf-who h2 { font-size: 24px; }
.pf-sheet.desk .pf-stats { grid-column: auto; justify-self: end; border-top: 0; padding-top: 0; gap: 34px; }
.pf-sheet.desk .pf-stat .v { font-size: 20px; }
.pf-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; flex: 1 1 auto; min-height: 0; padding-top: 16px; }
.pf-dgrid.other { grid-template-columns: minmax(0, 1fr); }
.pf-dcol { display: flex; flex-direction: column; min-height: 0; }
.pf-rail { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.pf-card { background: var(--panel); padding: 12px 14px; flex: none; }
.pf-minisets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-minisets .bars { display: grid; gap: 3px; height: 22px; align-items: end; }
.pf-minisets .bars i { display: block; }
.pf-minisets .cn { font: 600 12px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding-left: 7px; box-shadow: inset 3px 0 0 var(--cc); height: 14px; line-height: 14px; margin-bottom: 7px; }
.pf-minisets .s { font: 700 11px/1 var(--body); color: var(--ink3); margin-top: 6px; white-space: nowrap; }
.pf-rail .pf-dfile { grid-template-columns: 70px minmax(0, 1fr); padding: 7px 0; }
.pf-rail .pf-feats { grid-template-columns: repeat(4, 1fr); }

/* the Players panel's entry points: a Player Files button beside the heading, and each player's token */
/* playerfiles2-1128 (on the calm turn panel): the heading stays the panel's own direct-child h3 (its locked style); the button sits
   in the panel's top-right corner as a calm notched plate - radius 0, brass hairline, 44 px tall, ink >= 4.5:1 on the panel */
#game #playersPanel { position: relative; }
#game #playersPanel > .players-files-btn { position: absolute; top: 6px; right: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 0; cursor: pointer;
  font: 600 13.5px/1 var(--font-display, Fredoka), sans-serif; letter-spacing: .02em; color: var(--cl-brass-ink, #e2c47e); background: rgba(212, 176, 98, .1);
  box-shadow: inset 0 0 0 1px var(--cl-line2, rgba(212, 176, 98, .3)); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
#game #playersPanel > .players-files-btn:hover { background: rgba(212, 176, 98, .18); }
#game #playersPanel > .players-files-btn:focus-visible { outline: 2px solid #8fe6ff; outline-offset: 2px; }
#game #playersPanel > .players-files-btn.hidden { display: none; }
#game #playersPanel > h3 { min-height: 44px; display: flex; align-items: center; margin-top: -6px; }
#players .mini-piece[data-pf] { cursor: pointer; }

/* playerfiles2-1128: set-colour chips (theme.css .prop-chip: --setc face, --setrim edge, radius 0) sized for the file */
#pfSheet .prop-chip.pf-chip { width: 9px; height: 12px; margin: 0 5px 0 1px; vertical-align: -1px; }
#pfSheet .pf-deed .prop-chip.pf-dchip { width: 7px; height: 9px; margin: 0 4px 0 0; vertical-align: 0; }
#pfSheet .pf-deed.miss { box-shadow: inset 0 4px 0 color-mix(in srgb, var(--gc) 55%, transparent), inset 0 0 0 1px var(--line); }   /* a missing set member keeps its colour, quieter */
