/* ---------- the small profile card (next to what you clicked) ---------- */
#pp-card.pp-mini .pc-sec[data-s="links"], #pp-card.pp-mini .pc-sec[data-s="since"], #pp-card.pp-mini .pc-sec[data-s="fsince"], #pp-card.pp-mini .pc-sec[data-s="mutual"],
#pp-card.pp-mini .pc-sec[data-s="note"], #pp-card.pp-mini .pc-sec[data-s="fav"], #pp-card.pp-mini .pc-sec[data-s="games"] { display: none; }
#pp-card.pp-mini .pc-sec[data-s="about"] > div:not(.pc-h) { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#pp-card.pp-mini .pc-avatar, #pp-card.pp-mini .pc-name { cursor: pointer; }
#pp-card.pp-mini .pc-name:hover { text-decoration: underline; }
#member-action-dialog .profile-pop.pp-mini { overflow: visible; max-height: none; }
.pp-mut { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.pp-gamestrip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); }
.pp-gamestrip b { font-size: 12.5px; color: var(--bright); }
.pp-gs { display: inline-flex; align-items: center; gap: 4px; }
.pp-gs .gicon { border-radius: 6px; width: 28px; height: 28px; }
.pp-more { font-style: normal; font-size: 11px; font-weight: 700; color: var(--bright); background: rgba(0, 0, 0, .45); border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; }
/* ---------- the full profile page: the page behind is dimmed (the dialog's own dim), never blurred ---------- */
#pf-dialog { align-items: center; justify-content: center; }
.pf-shell { position: relative; width: min(1320px, calc(100vw - 32px)); height: min(900px, calc(100vh - 32px)); border-radius: 16px; overflow: hidden; color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
  background: linear-gradient(115deg, color-mix(in srgb, var(--pf1) 42%, #0b0b0f) 0%, color-mix(in srgb, var(--pf2) 26%, #0b0b0f) 52%, #0b0b0f 100%); border: 1px solid color-mix(in srgb, var(--pf1) 45%, #222); }
.pf-shell.has-img { background-image: linear-gradient(rgba(10, 10, 14, .78), rgba(10, 10, 14, .9)), var(--pf-img); background-size: cover; background-position: center top; }
html.desk-tb .pf-shell { height: min(900px, calc(100vh - 32px - var(--desk-bot, 0px) - 32px)); }
.pf-x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pf-x:hover { background: rgba(0, 0, 0, .7); } .pf-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-body { display: grid; height: 100%; }
.pf-body.other { grid-template-columns: 390px minmax(0, 1fr); }
.pf-body.me { grid-template-columns: 340px 380px minmax(0, 1fr); }
.pf-body > * { min-width: 0; overflow: auto; padding: 22px; }
.pf-body > .pf-card { padding: 22px 12px 22px 22px; }
.pf-card .profile-pop { position: static; width: auto; max-width: none; max-height: none; overflow: visible; border: 0; box-shadow: none; background: transparent; border-radius: 0; animation: none; }
.pf-card .pc-shell { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); }
.pf-card .pc-close { display: none; }
.pf-card .pc-banner { height: 120px; }
.pf-ed h3 { margin: 0 0 12px; font-size: 15px; color: var(--bright); }
.pf-eb { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(0, 0, 0, .28); color: var(--text); cursor: pointer; font: inherit; font-size: 13.5px; }
.pf-eb:hover { border-color: var(--accent); color: var(--bright); } .pf-eb .ic { width: 16px; height: 16px; flex: none; }
.pf-edall { width: 100%; margin-top: 8px; }
.pf-tabs { display: flex; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .12); margin: 6px 0 18px; padding-inline-end: 44px; }
.pf-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pf-tabs button[aria-selected="true"] { color: var(--bright); border-bottom-color: var(--accent); } .pf-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-w { background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.pf-wh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; } .pf-wh b { font-size: 15px; color: var(--bright); } .pf-wh span { color: var(--muted); font-size: 12.5px; }
.pf-fav { display: flex; gap: 16px; align-items: center; } .pf-fav b { display: block; font-size: 16px; color: var(--bright); } .pf-fav i { display: block; color: var(--muted); margin-top: 4px; }
.pf-cov-lg { width: 96px; height: 128px; border-radius: 8px; }
.pf-covs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.pf-cov { display: block; min-width: 0; } .pf-cov .gicon { width: 100%; aspect-ratio: 3 / 4; height: auto; border-radius: 8px; display: block; font-size: 22px; }
.pf-cov .gicon:not(.has) { display: grid; }
.pf-cov em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-act { display: flex; gap: 14px; align-items: center; } .pf-act b { display: block; color: var(--bright); font-size: 15px; } .pf-act span { color: var(--muted); font-size: 13px; }
.pf-act .gicon { width: 56px; height: 56px; border-radius: 10px; } .pf-note { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .4); font-size: 24px; }
.pf-list { display: grid; gap: 8px; } .pf-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); } .pf-row b { color: var(--bright); font-size: 14px; }
.pf-si { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pf-empty { padding: 28px 12px; color: var(--muted); text-align: center; }
@media (max-width: 960px) { .pf-body.me { grid-template-columns: 220px 340px minmax(0, 1fr); } .pf-body.other { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 760px) { .pf-shell { width: 100vw; height: 100%; border-radius: 0; } .pf-body, .pf-body.other, .pf-body.me { display: block; overflow: auto; } .pf-body > * { overflow: visible; } }
/* the small card is a pop-out, not a modal: the page behind it is not dimmed (only the full page dims it) */
@media (min-width: 701px) { #member-action-dialog::backdrop { background: transparent; } }
/* the small card shows only the simple things; the full page does not repeat the games the Board already shows */
#pp-card.pp-mini .pc-sec:not([data-s]):not(.pc-timeout) { display: none; }
.pf-card .pc-sec[data-s="fav"], .pf-card .pc-sec[data-s="games"] { display: none; }
/* my page: the real customization panel on the left, the live preview in the middle */
.pf-ed #perk-editor > :not(.dp-main) { display: none; }
.pf-ed #perk-editor .dp-main { margin: 0; }
.pf-ident { display: grid; gap: 10px; margin-bottom: 14px; } .pf-ident label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); } .pf-ident .system-input { font-weight: 400; color: var(--text); }
.pf-livecol { display: flex; flex-direction: column; gap: 12px; padding: 22px 12px 22px 22px; }
.pf-live .profile-card, .pf-live .pc-shell { border-radius: 14px; }
.pf-live .pc-shell { border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.pf-savebar { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 960px) { .pf-body.me { grid-template-columns: 290px 340px minmax(0, 1fr); } .pf2-body.pf2-me { grid-template-columns: 290px 300px minmax(0, 1fr); } }
/* theme-proof: a profile is always a dark, colour-tinted panel, so its text and tints never depend on the theme being light or dark (clear glass, classic, light...) */
.pf-shell:not(.pf2), .pf2.pf-themed, .pc-shell.pc-themed { --text: #ececf3; --bright: #ffffff; --muted: #b4b4c4; --border: rgba(255, 255, 255, .13); --border-focus: rgba(255, 255, 255, .24); --bg-0: #08080b; --bg-1: #111116; --bg-2: #1a1a21; --bg-3: #24242c; --red: #f0625b; --green: #3fb27f; }
.pc-shell.pc-themed { color: var(--text); background: linear-gradient(180deg, color-mix(in srgb, var(--pc1) 58%, #0c0c11) 0%, color-mix(in srgb, var(--pc2) 40%, #0c0c11) 100%); }
.pc-shell.pc-themed .pc-avatar { border-color: color-mix(in srgb, var(--pc1) 50%, #0c0c11); background: color-mix(in srgb, var(--pc1) 50%, #0c0c11); }
.pc-shell.pc-themed .pc-name, .pc-shell.pc-themed .pc-sub, .pc-shell.pc-themed .pc-sec { color: var(--text); }
.pc-shell.pc-themed .btn { color: var(--bright); border-color: rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); }
.pc-shell.pc-themed .btn-success { background: color-mix(in srgb, var(--pc1) 70%, #000); border-color: transparent; }
.pf-shell:not(.pf2) .system-input, .pf-shell:not(.pf2) input, .pf-shell:not(.pf2) textarea { background: #08080b; color: var(--text); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
/* the small card: round icon buttons on the banner, username and badges on one line, no close cross (a click outside closes) */
#pp-card.pp-mini .pc-close { display: none; }
.pp-acts { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 8px; z-index: 2; }
.pp-ab { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pp-ab:hover { background: rgba(0, 0, 0, .78); } .pp-ab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; } .pp-ab .ic { width: 17px; height: 17px; }
.pp-ident { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; } .pp-ident .pc-sub { margin: 0; } .pp-ident .pc-badges { margin: 0; }
#pp-card.pp-mini[data-self="0"] .pc-foot .btn { display: none; }
.pf-actions { display: flex; gap: 8px; margin-top: 12px; } .pf-actions .pf-msg { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .pf-actions .btn { padding: 9px 14px; } .pf-actions .ic { width: 16px; height: 16px; }
.pf-card .pc-foot input { display: none; } .pf-card .pc-foot .btn[data-act="pp-friend"], .pf-card .pc-foot .btn[data-act="pp-more"] { display: none; }
/* my Board: editable widgets */
.pf-hint { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.pf-f { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); } .pf-f input, .pf-f textarea { font-weight: 400; padding: 9px 10px; width: 100%; resize: vertical; }
.pf-w .pf-covs { margin-top: 12px; }
@media (max-height: 780px) { .pf-ed .dp-sq { height: 78px; } .pf-ed .dp-main h5 { margin: 12px 0 6px; } }
/* Theme-proof surfaces: glass/light themes paint white gradients on inputs and panels; the profile pages are always dark. */
#pf-dialog .pf-shell .dp-main, #pf-dialog .pf-shell #perk-editor { background: rgba(255, 255, 255, .045) !important; background-image: none !important; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: none !important; }
.pf-shell .dp-main h5 { color: #fff !important; }
#pf-dialog .pf-shell .system-input, #pf-dialog .pf-shell input, #pf-dialog .pf-shell textarea, #pf-dialog .pf-shell .pc-foot textarea { background: #08080b !important; background-image: none !important; color: #ececf3 !important; border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: none !important; }
#pf-dialog .pf-shell input::placeholder, #pf-dialog .pf-shell textarea::placeholder { color: #8d8da0 !important; }
.pf-ed .pf-w textarea[id="pfx-games"] { min-height: 64px; height: 64px; }
#pf-dialog .pf-ed .pf-covs, #pf-dialog .pf-body.me .pf-covs { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
/* game picker: chosen tiles, search box with results, recent games */
#pf-dialog .gp-sel { margin-bottom: 10px; } .gp-empty { color: var(--muted); font-size: 13px; padding: 4px 0 6px; }
.gp-sel .pf-cov { position: relative; } .gp-sel .pf-cov.is-fav .gicon { outline: 2px solid var(--accent); outline-offset: -2px; }
.gp-b { position: absolute; top: 4px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 8, 11, .78); color: #fff; cursor: pointer; opacity: 0; transition: opacity .12s; }
.gp-b svg, .gp-b .ic { width: 13px; height: 13px; } .gp-x { inset-inline-end: 4px; } .gp-star { inset-inline-start: 4px; }
.gp-sel .pf-cov:hover .gp-b, .gp-b:focus-visible, .gp-sel .pf-cov.is-fav .gp-star { opacity: 1; } .gp-star:hover, .gp-x:hover { background: var(--accent); }
.gp-sel .pf-cov.is-fav .gp-star { color: var(--accent); } .gp-sel .pf-cov.is-fav .gp-star svg { fill: currentColor; }
@media (hover: none) { .gp-b { opacity: 1; } }
.gp-q { position: relative; } .gp-q .system-input { width: 100%; padding-inline-start: 34px; } .gp-qi { position: absolute; top: 50%; inset-inline-start: 10px; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; z-index: 1; } .gp-qi svg { width: 16px; height: 16px; }
.gp-res { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; background: #0c0c11; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 4px; }
.gp-r { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #ececf3; font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.gp-r:hover, .gp-r:focus-visible { background: rgba(255, 255, 255, .09); outline: none; } .gp-r b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gp-r svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.gp-th { width: 30px; height: 40px; flex: none; } .gp-th .gicon { width: 30px; height: 40px; border-radius: 5px; font-size: 12px; display: block; } .gp-th .gicon:not(.has) { display: grid; }
.gp-none { padding: 12px; color: var(--muted); font-size: 13px; }
.gp-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; } .gp-seen:empty { display: none; } .gp-sl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-inline-end: 2px; }
.gp-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: transparent; color: #ececf3; font: inherit; font-size: 12px; cursor: pointer; } .gp-chip:hover { border-color: var(--accent); } .gp-chip svg { width: 12px; height: 12px; }

/* ===================== Profile redesign (Dec 2026): one calm page instead of the small card made bigger =====================
   The panel uses the theme's own colours (so all themes, light ones too, look native); only the banner carries the person's colour,
   with the fine blueprint lines over it. A person who chose profile colours (Theme) still gets the whole panel tinted (.pf-themed). */
.pf2-band, #pp-card .pc-banner { position: relative; }
.pf2-band::after, #pp-card:not(.pf-card #pp-card) .pc-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  --l1: color-mix(in srgb, #fff 9%, transparent); --l2: color-mix(in srgb, #fff 4%, transparent);
  background-image: radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(0, 0, 0, .32)), linear-gradient(var(--l1) 1px, transparent 1px), linear-gradient(90deg, var(--l1) 1px, transparent 1px), linear-gradient(var(--l2) 1px, transparent 1px), linear-gradient(90deg, var(--l2) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px, 16px 16px, 16px 16px; }
#pp-card .pc-banner > :not(.pp-acts) { position: relative; z-index: 1; }
#pp-card .pp-acts { z-index: 2; }

/* ---- the full page ---- */
.pf-shell.pf2 { width: min(1040px, calc(100vw - 32px)); height: min(720px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--border); color: var(--text); }
html.desk-tb .pf-shell.pf2 { height: min(720px, calc(100vh - 32px - var(--desk-bot, 0px) - 32px)); }
.pf2.pf-themed { background: linear-gradient(180deg, color-mix(in srgb, var(--pf1) 34%, #0c0c11), color-mix(in srgb, var(--pf2) 22%, #0c0c11)); }
.pf2.has-img { background-image: none; }
.pf2-band { flex: none; height: 120px; background-color: var(--pf1); background-image: linear-gradient(160deg, var(--pf1), var(--pf2)); }
.pf2.has-img .pf2-band { background-image: var(--pf-img); background-size: cover; background-position: center; }
.pf2-band .pf-x { width: 32px; height: 32px; border: 0; top: 12px; inset-inline-end: 12px; }
.pf2-band .pf-x .ic { width: 16px; height: 16px; }
.pf2-band .pf2-more { inset-inline-end: auto; inset-inline-start: 12px; }
.pf2-head { flex: none; display: flex; align-items: flex-start; gap: 20px; padding: 14px 32px 0; }
.pf2-av { flex: none; margin-top: -78px; position: relative; z-index: 2; }
.pf2-av .pc-avatar { margin: 0; width: max-content; border-color: var(--bg-1); background: var(--bg-1); position: relative; }
.pf2-av .pc-avatar > .user-avatar, .pf2-av .pc-avatar .av-deco-wrap > .user-avatar { width: 120px !important; height: 120px !important; font-size: 40px !important; }
.pf2.pf-themed .pf2-av .pc-avatar { background: color-mix(in srgb, var(--pf1) 34%, #0c0c11); border-color: color-mix(in srgb, var(--pf1) 34%, #0c0c11); }
.pf2-av .sdot { width: 26px !important; height: 26px !important; border-width: 5px !important; }
.pf2-id { flex: 1; min-width: 0; }
.pf2-name .pc-name { margin: 0; font-size: 24px; font-weight: 800; color: var(--bright); display: flex; align-items: center; gap: 8px; line-height: 1.25; flex-wrap: wrap; }
.pf2-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf2-sub .pc-sub { margin: 0; color: var(--muted); font-size: 14px; }
.pf2-sub .pc-badges { margin: 0; }
.pf2-mut { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.pf2-mut .ic { width: 14px; height: 14px; flex: none; }
.pf2-acts { flex: none; display: flex; gap: 8px; padding-top: 4px; }
.pf2-acts .btn { height: 36px; min-height: 36px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.pf2-acts .btn .ic { width: 16px; height: 16px; flex: none; }
#pf-dialog .pf2-acts .btn.pf2-sq, [data-theme] #pf-dialog .pf2-acts .btn.pf2-sq { width: 36px; padding: 0; background: var(--bg-3); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
#pf-dialog .pf2-acts .btn.pf2-sq:hover { color: var(--bright); border-color: var(--accent); }
.pf2-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); margin-top: 18px; border-top: 1px solid var(--border); }
.pf2-about { min-width: 0; overflow: auto; padding: 20px 24px; padding-inline-start: 32px; border-inline-end: 1px solid var(--border); scrollbar-width: thin; }
.pf2-main { min-width: 0; overflow: auto; padding: 16px 32px 20px; scrollbar-width: thin; }
.pf2 .pf-tabs { margin: 0 0 18px; padding: 0; gap: 24px; border-bottom-color: var(--border); }
.pf2 .pf-tabs button { padding: 4px 0 10px; font-weight: 600; }

/* PS7: my page, new look — editor | live preview (the same plain-lines facts other
   people see) | board. The preview column reuses .pf2-about, so it scrolls and is
   restyled exactly like the other-person view. */
.pf2-body.pf2-me { grid-template-columns: 340px 300px minmax(0, 1fr); }
.pf2-body.pf2-me > .pf-ed { min-width: 0; overflow: auto; padding: 22px; border-inline-end: 1px solid var(--border); }
.pf2-self .pf-savebar { margin-top: 12px; }

/* the card below the header: only the facts, as plain lines (no boxes) */
.pf2-about #pp-card .pc-banner, .pf2-about #pp-card .pc-top, .pf2-about #pp-card .pc-name, .pf2-about #pp-card .pc-sub, .pf2-about #pp-card .pc-badges, .pf2-about #pp-card .pp-ident,
.pf2-about #pp-card .pp-mut, .pf2-about #pp-card .pp-gamestrip, .pf2-about #pp-card .pp-now, .pf2-about #pp-card .pp-open, .pf2-about #pp-card .pc-foot, .pf2-about #pp-card .pp-acts,
.pf2-about #pp-card .pc-sec[data-s="mutual"], .pf2-about #pp-card .pc-sec[data-s="fav"], .pf2-about #pp-card .pc-sec[data-s="games"], .pf2-about #pp-card .pc-fx, .pf2-about #pp-card [class^="frame-orn"] { display: none !important; }
.pf2-about .pc-shell { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible; }
.pf2-about .pc-body { padding: 0 !important; display: flex; flex-wrap: wrap; column-gap: 12px; }
.pf2-about .pc-body > * { flex: 1 1 100%; min-width: 0; }
.pf2-about .pc-sec[data-s="about"] { order: 1; } .pf2-about .pc-sec[data-s="since"], .pf2-about .pc-sec[data-s="fsince"] { order: 2; flex: 1 1 40%; }
/* PS7: the own page's live preview shows the same plain-lines facts (the header already
   carries the banner, picture and name), so the card's own banner/picture/name, the
   favourite/games sections (they live on the Board tab) and the effect/frame ornaments
   are hidden there, exactly as in the other-person view above. */
.pf2-self .pf-live .pc-banner, .pf2-self .pf-live .pc-top, .pf2-self .pf-live .pc-name, .pf2-self .pf-live .pc-sub, .pf2-self .pf-live .pc-badges, .pf2-self .pf-live .pc-sec[data-s="fav"], .pf2-self .pf-live .pc-sec[data-s="games"], .pf2-self .pf-live .pc-fx, .pf2-self .pf-live [class^="frame-orn"] { display: none !important; }
.pf2-about .pc-sec[data-s="roles"] { order: 3; } .pf2-about .pc-sec[data-s="links"] { order: 4; } .pf2-about .pc-sec[data-s="note"] { order: 5; }
.pf2-about .pc-sec:not([data-s]) { order: 6; } .pf2-about .pc-live, .pf2-about .pc-sec.pc-timeout { order: 0; }
.pf2-about #pp-card { background: transparent; border: 0; border-radius: 0; box-shadow: none !important; width: auto; max-width: none; overflow: visible; }
.pf2-about .pc-sec[data-s="since"] > div:not(.pc-h), .pf2-about .pc-sec[data-s="fsince"] > div:not(.pc-h) { font-size: 13px; }
#pp-card.pp-mini .pp-mut { margin-bottom: 10px; }
#pf-dialog .pf2-about .pc-sec, #member-action-dialog #pp-card.pp-mini .pc-sec, [data-theme] #member-action-dialog #pp-card.pp-mini .pc-sec { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 0; padding: 12px 0; box-shadow: none; }
#pf-dialog .pf2-about .pc-sec[data-s="about"] { border-top: 0; padding-top: 0; }
.pf2-about .pc-sec[data-s="since"], .pf2-about .pc-sec[data-s="fsince"] { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: start; font-size: 13px; }
.pf2-about .pc-sec[data-s="since"] > .ic, .pf2-about .pc-sec[data-s="fsince"] > .ic { width: 16px; height: 16px; color: var(--muted); grid-row: span 2; margin-top: 1px; }
.pf2-about .pc-sec[data-s="since"] .pc-h, .pf2-about .pc-sec[data-s="fsince"] .pc-h { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; margin: 0; }
.pf2-about .pc-h, #pp-card.pp-mini .pc-h { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.pf2-about .pc-sec > div:not(.pc-h) { font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
#pf-dialog .pf2-about textarea#pp-note { min-height: 36px !important; height: 36px; resize: vertical; border: 1px dashed var(--border) !important; background: transparent !important; color: var(--text); font-size: 13px; border-radius: 8px; }
.pf2-about .pc-roles { display: flex; flex-wrap: wrap; gap: 6px; }

/* board: what they play now, the favourite, the games */
.pf-now { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 18px; }
.pf-now .gicon { border-radius: 8px; flex: none; }
.pf-now b { display: block; color: var(--bright); font-size: 14px; } .pf-now span { font-size: 12px; color: var(--muted); }
.pf-now > i { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--green, #23a55a); display: flex; align-items: center; gap: 6px; }
.pf-now > i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pf2-fav { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.pf2-fav .gicon { width: 66px; height: 88px; border-radius: 10px; flex: none; font-size: 14px; }
.pf2-fav span { display: block; font-size: 12px; color: var(--muted); } .pf2-fav b { display: block; font-size: 18px; color: var(--bright); }
.pf2 .pf-wh { margin-bottom: 10px; } .pf2 .pf-wh b { font-size: 14px; }
.pf2-covs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
.pf2-covs .pf-cov { max-width: 110px; }
.pf2 .pf-w { background: var(--bg-2); border-color: var(--border); }
.pf2 .pf-row { background: var(--bg-2); }
.pf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; color: var(--muted); text-align: center; font-size: 14px; }
.pf-empty .ic { width: 28px; height: 28px; opacity: .7; }

/* ---- the small card: plain lines, what they play, their games, a link to the full page ---- */
#pp-card.pp-mini .pc-sec.pp-noroles { display: none; }
#pp-card.pp-mini .pc-sec > div:not(.pc-h) { font-size: 14px; line-height: 1.5; }
.pp-now { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.pp-now .gicon { border-radius: 8px; flex: none; }
.pp-now b { display: block; font-size: 14px; color: var(--bright); } .pp-now span { font-size: 12px; color: var(--muted); }
#pp-card .pp-gamestrip { margin: 0; padding: 12px 0; border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--border); }
#pp-card .pp-gamestrip b { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
#pp-card .pp-gs .gicon { width: 26px; height: 26px; }
#pp-card .pp-more { background: transparent; color: var(--muted); width: auto; padding: 0 2px; }
#pp-card.pp-mini .pc-foot { margin-top: 4px; }
.pp-open { display: block; width: 100%; margin: 10px 0 0; padding: 6px; border: 0; background: none; color: var(--accent-hi, var(--accent)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.pp-open:hover { text-decoration: underline; } .pp-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#pp-card:not(.pp-mini) .pp-open { display: none; }

/* ---- phone: the page fills the screen; the facts are the first tab ---- */
@media (max-width: 760px) {
  .pf-shell.pf2 { width: 100vw; height: 100%; border: 0; border-radius: 0; overflow: auto; display: block; }
  .pf2-band { height: 140px; }
  .pf2-head { flex-wrap: wrap; padding: 0 16px; gap: 0; }
  .pf2-av { margin-top: -54px; width: 100%; }
  .pf2-av .pc-avatar > .user-avatar, .pf2-av .pc-avatar .av-deco-wrap > .user-avatar { width: 96px !important; height: 96px !important; font-size: 32px !important; }
  .pf2-id { margin-top: 8px; flex-basis: 100%; }
  .pf2-acts { width: 100%; padding-top: 14px; } .pf2-acts .pf2-msg { flex: 1; }
  .pf2-body { display: flex; flex-direction: column; border-top: 0; margin-top: 4px; }
  .pf2-main { order: 0; } .pf2-about { order: 1; }
  .pf2-main { padding: 14px 16px 0; overflow: visible; }
  .pf2-about { display: none; border: 0; padding: 0 16px 24px; overflow: visible; }
  .pf2-body.on-i .pf2-about { display: block; }
  .pf2-body.on-i .pf-pane { display: none; }
  .pf2 .pf-tabs { gap: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pf2 .pf-tabs button { white-space: nowrap; }
  .pf2-covs { grid-template-columns: repeat(3, 1fr); }
  /* PS7: my page on a phone stacks editor, then the live preview, then the board —
     the preview is always shown, not gated behind a tab. */
  .pf2-body.pf2-me .pf-ed { order: 0; overflow: visible; border: 0; padding: 14px 16px 0; }
  .pf2-body.pf2-me .pf2-about { order: 1; display: block; }
  .pf2-body.pf2-me .pf2-main { order: 2; }
}
@media (prefers-reduced-motion: reduce) { #pf-dialog .pf2 { animation: none !important; } }

/* ---- Dec 2026 fixes: Arabic headings must not be letter-spaced (it breaks the joined letters), and the top of the page carries the person's colours ---- */
html[dir="rtl"] .pf-shell .pc-h, html[dir="rtl"] #pp-card .pc-h, html[dir="rtl"] #pp-card .pp-gamestrip b, html[dir="rtl"] .pf-shell .gp-sl, html[dir="rtl"] .pf-shell .pf-tabs button, :lang(ar) .pf-shell .pc-h, :lang(ar) #pp-card .pc-h { letter-spacing: 0 !important; text-transform: none; }
.pf2 { --pf-top: color-mix(in srgb, var(--pf1) 26%, var(--bg-1)); }
.pf2-head { background: var(--pf-top); padding-bottom: 18px; margin-bottom: -18px; }
.pf2 .pf2-av .pc-avatar { border-color: var(--pf-top); background: var(--pf-top); }
.pf2.pf-themed .pf2-head { background: transparent; }
.pf2-body { margin-top: 18px; }
