/* Knightfall member profile presentation, November 2026.
   Respects per-member --profile-accent, existing photos and game features. */
.profile-shell{width:min(1120px,calc(100% - 2rem));max-width:1120px}
.profile-quick-links[hidden]{display:none!important}
.profile-shell .profile-quick-links{
  display:flex;gap:.55rem;align-items:center;max-width:100%;
  margin:0 0 1rem;padding:.6rem;
  border:1px solid rgba(178,91,104,.28);border-radius:15px;
  background:linear-gradient(120deg,#171124,#101020);
  box-shadow:0 10px 28px #0005;
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
}
.profile-shell .profile-quick-links a{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;min-height:44px;padding:.6rem .85rem;
  border:1px solid rgba(178,91,104,.27);border-radius:11px;
  background:#1a152a;color:#eee0f5;text-decoration:none;
  font-size:.79rem;font-weight:800;white-space:nowrap;
}
.profile-shell .profile-quick-links a:hover,
.profile-shell .profile-quick-links a:focus-visible{
  color:#c7a77c;border-color:#c7a77c;background:#211a33;
}
/* Recover per-member theme backgrounds from earlier generic !important card rules. */
body #profile.card{
  background:
    radial-gradient(circle at 12% 0%,var(--pf-spot,rgba(178,91,104,.16)),transparent 38%),
    radial-gradient(circle at 95% 68%,var(--pf-spot-alt,rgba(121,255,231,.08)),transparent 48%),
    linear-gradient(157deg,var(--pf-surface,#171323),var(--pf-surface-deep,#0d0f1b) 81%)!important;
}
#profile{
  --profile-glint:#c7a77c;
  --profile-ink:#0c0d19;
  position:relative;overflow-x:clip;
}
#profile::before{
  content:"";position:absolute;inset:0 0 auto;height:2px;z-index:2;
  background:linear-gradient(90deg,var(--profile-accent,#b25b68) 5%,#c7a77c 68%,#c7a77c 94%,transparent);
  pointer-events:none;opacity:.7;
}
#profile .profile-top{
  position:relative;display:flex;align-items:center;
  gap:clamp(.75rem,2.2vw,1.6rem);min-width:0;margin-bottom:1rem;
}
#profile .profile-heading{flex:1 1 250px;min-width:0}
#profile .profile-heading h1{
  margin:.18rem 0 .3rem;line-height:1.02;
  font-size:clamp(2rem,5vw,4rem);letter-spacing:-.055em;
  overflow-wrap:anywhere;text-wrap:balance;
}
#profile .profile-heading .eyebrow{letter-spacing:.16em}
#profile .profile-heading .handle{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.45rem}
#profile .profile-title-badge{margin:0}
#profile .presence{
  display:inline-flex;align-items:center;min-height:28px;
  padding:.22rem .55rem;border:1px solid #50405f;border-radius:999px;
  background:#191427;color:#bbaeca;font-size:.72rem;font-weight:800;
}
#profile .presence.online{
  color:#c7a77c;border-color:#6d9450;background:#1d2b18;
}
#profile .profile-tagline{font-size:clamp(1rem,1.7vw,1.23rem);font-weight:750;line-height:1.42}
#profile .profile-status-message{max-width:65ch;line-height:1.5}
#profile>.profile-actions-wrap{
  display:flex;align-items:center;gap:.6rem;
  margin:.35rem 0 1.25rem;padding:0;
}
#profile>.profile-actions-wrap .profile-actions{
  display:flex;gap:.55rem;flex:1 1 420px;flex-wrap:wrap;min-width:0;
}
#profile>.profile-actions-wrap :is(a,button){
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:.62rem .95rem;border-radius:11px;
  text-align:center;font-weight:800;max-width:100%;
}
#profile>.profile-actions-wrap .profile-share{
  flex:0 0 auto;border-color:rgba(255,227,107,.52);
  background:linear-gradient(145deg,#241e25,#151321);
  color:#c7a77c;
}
#profile .profile-share-status{flex-basis:100%;min-width:0;color:#c7a77c;font-size:.78rem}
#profile .profile-share-status:empty{display:none}
#profile .profile-stats{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.65rem;margin:1rem 0;
}
#profile .profile-stats>div{
  position:relative;min-width:0;
  background:linear-gradient(145deg,#1e1730,#101021)!important;
  border:1px solid color-mix(in srgb,var(--profile-accent,#b25b68) 28%,#38314a)!important;
  border-radius:14px;box-shadow:inset 0 1px #ffffff0d;
  padding:1rem .7rem!important;
}
#profile .profile-stats>div:nth-child(3)::after{
  content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;
  background:linear-gradient(90deg,var(--profile-accent,#b25b68),#c7a77c);
  opacity:.8;pointer-events:none;
}
#profile .profile-stats b{font-size:clamp(1.2rem,2.4vw,1.7rem);font-variant-numeric:tabular-nums}
#profile .profile-stats span{line-height:1.35}
#profile #profile-wallet{
  border-radius:18px;
  background:radial-gradient(ellipse at 98% 0%,rgba(255,227,107,.06),transparent 42%),
    linear-gradient(130deg,#1b142a,#0e101e)!important;
  border-color:color-mix(in srgb,var(--profile-accent,#b25b68) 38%,#352641)!important;
}
#profile .wallet-main{min-width:0}
#profile .wallet-balance{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#profile .profile-about{
  display:grid;gap:.85rem;margin:1.2rem 0;padding:clamp(1rem,2.3vw,1.5rem);
  border:1px solid color-mix(in srgb,var(--profile-accent,#b25b68) 34%,#3d3050);
  border-radius:17px;
  background:radial-gradient(ellipse at 97% 5%,rgba(255,227,107,.035),transparent 46%),
    linear-gradient(145deg,var(--pf-surface,#1a1427),var(--pf-surface-deep,#0d0f1b));
  box-shadow:0 12px 28px #0004,inset 0 1px #ffffff09;
  scroll-margin-top:6rem;
}
#profile .profile-about-heading{display:grid;gap:.2rem}
#profile .profile-about-heading .eyebrow{color:#c7a77c!important;margin:0;font-size:.67rem}
#profile .profile-about-heading h2{
  color:var(--pf-heading,#f9f3ff);font-size:clamp(1.3rem,3vw,1.75rem);
  letter-spacing:-.04em;margin:0;
}
#profile .profile-about .bio{margin:0;max-width:72ch;line-height:1.8;color:#eee4f7}
#profile .profile-about-empty{margin:0;color:#c7bdd3;line-height:1.65}
#profile .profile-about dl{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));
  gap:.55rem;margin:.15rem 0 0;
}
#profile .profile-about dl>div{
  min-width:0;padding:.8rem .9rem;
  border:1px solid rgba(178,91,104,.17);border-radius:11px;
  background:#0e0f1bbd;
}
#profile .profile-about dt{color:#bcaacb;font-size:.67rem;letter-spacing:.11em}
#profile .profile-about dd{overflow-wrap:anywhere;line-height:1.55;font-size:.86rem}
#profile .profile-about dd a{color:#c7a77c;text-underline-offset:.2em}
#profile .profile-activity-deck{gap:.8rem;scroll-margin-top:6rem}
#profile .profile-activity-toolbar{
  display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:.8rem;
  grid-column:1/-1;padding:.1rem .1rem .65rem;
  border-bottom:1px solid rgba(178,91,104,.25);
}
#profile .profile-activity-toolbar .eyebrow{margin:0;color:#c7a77c!important;font-size:.67rem}
#profile .profile-activity-toolbar h2{margin:.22rem 0 0;font-size:clamp(1.25rem,3vw,1.65rem)}
#profile .profile-activity-filters{
  display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;
  border:1px solid #4f365e;border-radius:12px;padding:.3rem;background:#100e1e;
}
#profile .profile-activity-filters button{
  min-height:40px;min-width:70px;padding:.5rem .8rem;
  border:1px solid transparent;border-radius:9px;background:transparent;
  color:#d6c6e5;font-family:inherit;font-weight:800;font-size:.78rem;line-height:1.2;cursor:pointer;
}
#profile .profile-activity-filters button[aria-pressed="true"]{
  color:#080a12;background:#c7a77c;border-color:#c7a77c;
  box-shadow:0 0 15px rgba(199,167,124,.17);
}
#profile .profile-activity-filters button:hover:not([aria-pressed="true"]){border-color:#b25b68;color:#fff}
#profile .profile-activity-filters button:focus-visible{outline:2px solid #c7a77c;outline-offset:3px}
#profile .profile-activity-deck[data-view="threads"]>section:nth-of-type(2),
#profile .profile-activity-deck[data-view="replies"]>section:nth-of-type(1){display:none}
#profile .profile-activity-deck:not([data-view="all"])>section{grid-column:1/-1}
#profile .profile-jump a[aria-current="location"]{
  color:#080a12!important;border-color:#c7a77c!important;background:#c7a77c!important;
  box-shadow:0 0 0 1px rgba(255,227,107,.26);
}
#profile .profile-jump{scroll-margin-top:6rem}
@media(max-width:800px){
 #profile .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 #profile .profile-activity-toolbar{align-items:stretch}
}
@media(max-width:620px){
 .profile-shell{width:100%;padding:1rem .625rem 3rem}
 .profile-shell .profile-quick-links{border-radius:12px;margin-bottom:.7rem}
 #profile .profile-top{align-items:center;gap:.65rem}
 #profile .profile-heading{flex-basis:180px}
 #profile .profile-heading h1{font-size:clamp(1.65rem,8vw,2.8rem)}
 #profile>.profile-actions-wrap{align-items:stretch}
 #profile>.profile-actions-wrap .profile-actions{
   flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem
 }
 #profile>.profile-actions-wrap .profile-actions>*{min-width:0}
 #profile>.profile-actions-wrap .profile-share{flex:1 1 100%}
 #profile .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
 #profile .profile-stats>div{padding:.85rem!important}
 #profile .profile-about{padding:1rem;border-radius:13px}
 #profile .profile-about dl{grid-template-columns:minmax(0,1fr)}
 #profile .profile-activity-filters{width:100%}
 #profile .profile-activity-filters button{flex:1 1 0;min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .profile-shell .profile-quick-links a,
 #profile .profile-activity-filters button{transition:none!important;animation:none!important}
}
