/* Find a player (/players). Foundation components live in bf.css; this file lays out the page. Prefix: pf- */
[data-page="players"] .bf-main { padding-top: 0; }
.pf-body { padding-top: var(--s-6); }

/* ---- hero with the big search */
.pf-hero { position: relative; z-index: 5; isolation: isolate; padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 4.4vw, 56px); border-bottom: 1px solid var(--line-2); }
.pf-hero__art { position: absolute; inset: 0; z-index: -2; background: #0a131d url("/assets/bar-fight-brawl-v3-1440.webp") center 38% / cover no-repeat; filter: saturate(.9) contrast(1.02); }
.pf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6,10,16,.97) 0%, rgba(6,10,16,.9) 46%, rgba(6,10,16,.66) 78%, rgba(6,10,16,.78) 100%),
  linear-gradient(180deg, rgba(6,10,16,.3) 0%, rgba(6,10,16,0) 40%, rgba(6,10,16,.5) 80%, var(--bg) 100%); }
.pf-hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 340px; height: 2px; background: linear-gradient(90deg, var(--cyan) 0 240px, rgba(60,198,244,0)); box-shadow: 0 0 18px rgba(60,198,244,.7); }
.pf-hero__in { position: relative; }
.pf-title { max-width: 16em; font: 700 clamp(2.2rem, 1rem + 3.4vw, 3.8rem)/1.04 var(--display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.pf-title em { font-style: normal; color: var(--cyan-hi); text-shadow: 0 0 36px rgba(60,198,244,.45); }
.pf-lead { max-width: 56ch; margin-top: var(--s-3); font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.pf-box { margin-top: clamp(20px, 2.6vw, 30px); }
.pf-try { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.pf-try > span { margin-right: 6px; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pf-try button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 1px dashed rgba(60,198,244,.5); margin-inline: 2px; background: none; color: var(--cyan-hi); font: 500 14px/1 var(--body); }
.pf-try button:hover { color: #fff; border-bottom-color: #fff; background: rgba(60,198,244,.1); }
.pf-status { min-height: 24px; margin-bottom: var(--s-4); font-size: 15px; color: var(--muted); }
.pf-status b { color: var(--text-2); font-weight: 600; }

/* ---- results */
.pf-results .bf-sh { margin-bottom: var(--s-4); }
.pf-q { color: var(--cyan-hi); overflow-wrap: anywhere; }
.pf-list { display: flex; flex-direction: column; gap: 10px; }
.pf-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1.2fr) auto; align-items: center; gap: var(--s-4); padding: 12px 16px 12px 14px; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.pf-card:hover, .pf-card.is-active { border-color: var(--cyan-lo); transform: translateY(-1px); }
.pf-card.is-me { box-shadow: inset 3px 0 0 var(--cyan); }
.pf-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--os-0); color: #04101a; font: 700 21px/1 var(--display); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.pf-av[data-band="1"] { background: var(--os-1); } .pf-av[data-band="2"] { background: var(--os-2); } .pf-av[data-band="3"] { background: var(--os-3); box-shadow: 0 0 18px rgba(143,227,251,.4); }
.pf-av--lg { width: 64px; height: 64px; font-size: 30px; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.pf-card__main { min-width: 0; }
.pf-card__name { display: inline-block; max-width: 100%; font: 700 20px/1.2 var(--display); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pf-card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pf-card__name:hover { color: #fff; }
.pf-card__name mark, .pf-card__sub mark { background: none; color: var(--cyan-hi); text-decoration: underline; text-decoration-color: rgba(60,198,244,.55); text-underline-offset: 3px; }
.pf-ctag { color: var(--muted); font-weight: 600; }
.pf-card__sub { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card__sub b { color: var(--text-2); font-weight: 600; }
.pf-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.pf-card__facts b { font: 600 14px var(--mono); color: var(--text-2); }
.pf-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pf-card__cmp { position: relative; z-index: 2; }
.pf-compare { display: flex; align-items: center; gap: var(--s-4); margin-bottom: 10px; padding: 14px 18px; background: linear-gradient(90deg, var(--cyan-tint), var(--panel)); border: 1px solid var(--cyan-lo); color: var(--text); text-decoration: none; }
.pf-compare:hover { border-color: var(--cyan); color: #fff; }
.pf-compare__ico { display: grid; place-items: center; width: 44px; height: 44px; background: var(--cyan); color: var(--on-cyan); flex: none; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.pf-compare__ico svg { width: 24px; height: 24px; }
.pf-compare b { display: block; font: 700 18px/1.2 var(--display); }
.pf-compare small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pf-more { margin-top: var(--s-3); font-size: 14px; color: var(--muted); }
.pf-empty { margin-top: var(--s-2); }
.pf-empty .bf-row { justify-content: center; }

/* ---- home state */
.pf-home { gap: var(--s-6); }
.pf-home[hidden] { display: none; }
.pf-home__main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.pf-home__main > .bf-section { margin-top: 0; }
.pf-rail { display: flex; flex-direction: column; gap: var(--s-5); }
.pf-recent .bf-row { gap: 8px; }
.pf-recent__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.pf-recent__h .bf-eyebrow { margin: 0; }
.pf-recent__clear { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 500 13px var(--body); text-decoration: underline; text-underline-offset: 3px; }
.pf-recent__clear:hover { color: var(--cyan-hi); }
.pf-recent__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-recent__none { padding: var(--s-4) var(--s-5); background: var(--panel); border: 1px dashed var(--line-3); color: var(--muted); font-size: 15px; }
.pf-recent__none .pf-recent__chips { margin-top: 10px; }
.pf-you { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.pf-you__t { min-width: 0; flex: 1; }
.pf-you__t b { display: block; font: 700 22px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-you__t small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pf-you__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-act__more { display: none; margin-top: var(--s-3); }
a.pf-actc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "av n os" "av g g"; align-items: center; gap: 4px 12px; padding: 12px 14px; }
.pf-actc .pf-av { grid-area: av; }
.pf-actc__n { grid-area: n; min-width: 0; }
.pf-actc__n b { display: block; font: 700 17px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-actc__n small { display: block; font-size: 12px; color: var(--muted); }
.pf-actc .bf-os { grid-area: os; }
.pf-actc__g { grid-area: g; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pf-actc__g b { font: 700 15px var(--mono); color: var(--text-2); }
.pf-actc__g .bf-bar { height: 4px; }

/* ---- rail */
.pf-me { padding: var(--s-5); }
.pf-me .bf-eyebrow { margin-bottom: 6px; }
.pf-me h2 { font: 700 22px/1.2 var(--display); }
.pf-me__lead { margin-top: var(--s-2); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pf-steps { display: flex; flex-direction: column; gap: 10px; margin: var(--s-4) 0; counter-reset: step; }
.pf-steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pf-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; background: var(--amber-tint); border: 1px solid #8a6a2a; color: var(--amber-hi); font: 700 14px/1 var(--display); }
.pf-steps b { color: var(--text); font-weight: 600; }
.pf-gets { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--bg-2); border: 1px solid var(--line); }
.pf-gets h3 { margin-bottom: 6px; font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pf-gets li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.pf-gets li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--cyan); flex: none; }
.pf-me__priv { margin-top: var(--s-3); font-size: 13px; color: var(--muted); }
.pf-me__on { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0 var(--s-4); }
.pf-me__on b { font: 700 18px/1.2 var(--display); }
.pf-me__on small { display: block; font-size: 13px; color: var(--muted); }
.pf-noname__list { margin-top: var(--s-2); }
.pf-noname__list a { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.pf-noname__list li:last-child a { border-bottom: 0; }
.pf-noname__list a:hover { background: rgba(60,198,244,.07); color: inherit; }
.pf-noname__list b { display: block; font: 600 15px/1.25 var(--body); }
.pf-noname__list small { display: block; font-size: 13px; color: var(--muted); }
.pf-noname__ico { display: grid; place-items: center; width: 32px; height: 32px; background: var(--cyan-tint); border: 1px solid var(--cyan-lo); color: var(--cyan-hi); font: 700 15px/1 var(--display); }
.pf-about { margin-top: var(--s-7); padding: var(--s-3) var(--s-4); background: var(--panel); border: 1px solid var(--line-2); max-width: 760px; }
.pf-about summary { cursor: pointer; display: flex; align-items: center; min-height: 36px; font: 600 13px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.pf-about ul { margin-top: 8px; padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 1100px) {
  .pf-act { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-card { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "av main cmp" ". facts facts"; row-gap: 6px; }
  .pf-card .pf-av { grid-area: av; } .pf-card__main { grid-area: main; } .pf-card__facts-wrap { grid-area: facts; } .pf-card__cmp { grid-area: cmp; }
}
@media (max-width: 760px) {
  .pf-hero { padding: 24px 0 26px; }
  .pf-hero__art { background-image: url("/assets/bar-fight-brawl-v3-768.webp"); background-position: 62% 0; background-size: auto 100%; }
  .pf-hero::before { background: linear-gradient(180deg, rgba(6,10,16,.78) 0%, rgba(6,10,16,.9) 60%, var(--bg) 100%); }
  .pf-title { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .pf-lead { font-size: 16px; }
  .pf-try button { padding-inline: 8px; }
  .pf-body { padding-top: var(--s-5); }
  .pf-card { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "av main" "facts facts" "cmp cmp"; gap: 8px 12px; padding: 12px; }
  .pf-card .pf-av { grid-area: av; }
  .pf-card__main { grid-area: main; }
  .pf-card__facts-wrap { grid-area: facts; }
  .pf-card__cmp { grid-area: cmp; justify-self: start; min-height: 36px; padding-inline: 0; }
  .pf-card { grid-template-areas: "av main" "facts facts" "cmp cmp"; }
  .pf-act.is-collapsed li:nth-child(n+7) { display: none; }
  .pf-card__name { font-size: 18px; }
  .pf-act { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pf-act__more { display: inline-flex; }
  .pf-act__more[hidden] { display: none; }
  .pf-you { flex-direction: column; align-items: flex-start; padding: var(--s-4); }
  .pf-me { padding: var(--s-4); }
  .pf-home, .pf-home__main { gap: var(--s-5); }
  .pf-compare { padding: 12px; }
  .pf-about { margin-top: var(--s-6); }
}

/* production additions: the list of busiest players when it cannot be loaded, and the "searching" line */
.pf-act__none { grid-column: 1 / -1; }
