/* User profile page styles. Extracted from inline <style> in pages/users.php on 2026-05-10. */
.prof-wrap{
    --accent:var(--bmm-accent);
    --accent-deep:var(--bmm-accent-deep);
    --accent-soft:var(--bmm-accent-soft);
    --accent-wash:var(--bmm-accent-soft);
    --line:#e7e4ef;
    --line-soft:#f1eff5;
    --ink:#14121a;
    --ink-soft:#4a4757;
    --muted:#8a8797;
    --warn:#f3c06a;
    --warn-soft:#fff8e9;
    --warn-ink:#a05a00;
    --pos:#0e8a52;
    --neg:#c0392b;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
}
.prof-wrap *{ box-sizing:border-box; }

/* Corner-bracket framed panel (mirrors .art-hdr from articles) */
.prof-frame{
    position:relative;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    padding:18px 20px;
}
.prof-frame .crn{
    position:absolute; width:10px; height:10px;
    border:1px solid var(--accent); opacity:.75;
}
.prof-frame .crn.tl{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.prof-frame .crn.tr{ top:-1px; right:-1px; border-left:none; border-bottom:none; }
.prof-frame .crn.bl{ bottom:-1px; left:-1px; border-right:none; border-top:none; }
.prof-frame .crn.br{ bottom:-1px; right:-1px; border-left:none; border-top:none; }

/* Kicker (eyebrow label) */
.prof-kicker{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'Fraunces',serif;
    font-size:11px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--accent); font-weight:500;
}
.prof-kicker .dot{
    width:5px; height:5px; border-radius:50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bmm-accent) 15%, transparent);
}

/* Identity strip layout */
.prof-id{
    display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px 24px;
}
.prof-id .id-left{
    flex:1 1 320px; min-width:0;
    display:flex; align-items:center; gap:14px;
}
.prof-id .id-avatar{
    width:64px; height:64px; flex-shrink:0;
    border:1px solid var(--line); border-radius:2px;
    background: var(--line-soft);
    overflow:hidden;
    display:grid; place-items:center;
    color: var(--accent-deep); font-weight:500; font-size:18px;
    font-family:'Fraunces',serif;
}
.prof-id .id-avatar img{ width:100%; height:100%; object-fit:cover; }
.prof-id .id-text{ min-width:0; }

.prof-title{
    font-family:'Fraunces',serif;
    font-weight:500; font-size: clamp(20px, 2.4vw, 28px);
    line-height:1.1; letter-spacing:-0.01em;
    margin:4px 0 4px;
    color: var(--ink);
}
.prof-title em{ font-style:italic; font-weight:400; color: var(--accent); }

/* Inline metric typeset (no boxes) */
.prof-metric-row{
    display:flex; flex-wrap:wrap; gap:6px 28px;
    align-items:flex-end;
}
.prof-metric{
    display:flex; flex-direction:column; gap:2px;
    min-width:60px;
}
.prof-metric-num{
    font-family:'Fraunces',serif;
    font-style:italic; font-weight:400;
    font-size:28px; line-height:1;
    color: var(--ink);
    font-variant-numeric:tabular-nums;
}
.prof-metric-num.muted{ color: var(--muted); }
.prof-metric-label{
    font-size:10px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--muted); font-weight:500;
}

.prof-self-pill{
    position:absolute; top:-1px; right:14px;
    transform:translateY(-50%);
    background:#fff;
    padding:2px 8px;
    border:1px solid var(--accent);
    border-radius:2px;
    font-size:9.5px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--accent); font-weight:600;
}

/* Generic stat tag (square, hairline) */
.prof-tag{
    display:inline-flex; align-items:center; gap:6px;
    font-size:10px; letter-spacing:.2em; text-transform:uppercase;
    color: var(--ink-soft); font-weight:500;
    padding:3px 8px;
    border:1px solid var(--line); border-radius:2px;
    background:#fff;
}
.prof-tag.accent{ color: var(--accent); border-color: var(--accent); }
.prof-tag.pos{ color: var(--pos); border-color: rgba(14,138,82,.4); }
.prof-tag.pos::before{ content:""; width:5px; height:5px; border-radius:50%; background: var(--pos); }
.prof-tag.neg{ color: var(--neg); border-color: rgba(192,57,43,.4); }
.prof-tag.neg::before{ content:""; width:5px; height:5px; border-radius:50%; background: var(--neg); }
.prof-tag.warn{ color: var(--warn-ink); border-color: var(--warn); background: var(--warn-soft); }

/* Card row (used by other-games list, activity feed, engaged grid hover) */
.prof-row{
    position:relative;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    padding:14px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-row:hover{
    border-color: var(--accent);
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--bmm-accent) 2%, transparent);
}

/* CTA arrow link */
.prof-more{
    font-family:'Fraunces',serif;
    color: var(--accent); font-weight:500; font-size:13px;
    text-decoration:none;
    display:inline-flex; align-items:center; gap:6px;
    border-bottom:1px solid transparent;
    transition: border-color .2s ease;
}
.prof-more::after{ content:"→"; transition: transform .2s ease; }
.prof-more:hover{ border-bottom-color: var(--accent); }
.prof-more:hover::after{ transform: translateX(3px); }

/* Vote-health warning ribbon */
.prof-warn{
    position:relative;
    background: var(--warn-soft);
    border:1px solid var(--warn);
    border-radius:2px;
    padding:14px 18px;
    color: var(--warn-ink);
    font-family:'Fraunces',serif;
    font-size:14px; line-height:1.5;
}
.prof-warn .crn{
    position:absolute; width:10px; height:10px;
    border:1px solid var(--warn); opacity:.85;
}
.prof-warn .crn.tl{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.prof-warn .crn.tr{ top:-1px; right:-1px; border-left:none; border-bottom:none; }
.prof-warn .crn.bl{ bottom:-1px; left:-1px; border-right:none; border-top:none; }
.prof-warn .crn.br{ bottom:-1px; right:-1px; border-left:none; border-top:none; }
.prof-warn-head{
    font-family:'Fraunces',serif;
    font-size:10.5px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--warn-ink); font-weight:600;
    display:inline-flex; align-items:center; gap:8px;
    margin-bottom:6px;
}
.prof-warn-head .icon{
    width:14px; height:14px; display:inline-grid; place-items:center;
    border:1px solid var(--warn); border-radius:50%;
    font-size:10px; line-height:1; font-weight:700;
}
.prof-warn-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.prof-warn-list li{ font-size:13.5px; }
.prof-warn-list em{ font-style:italic; color: var(--ink); }
.prof-warn-list a{ color: var(--accent); text-decoration:none; border-bottom:1px solid var(--line); }
.prof-warn-list a:hover{ border-bottom-color: var(--accent); }

/* Section spacing helper for non-frame sections */
.prof-section-head{
    display:flex; align-items:baseline; justify-content:space-between;
    flex-wrap:wrap; gap:8px;
    margin-bottom:12px;
    padding-bottom:8px;
    border-bottom:1px solid var(--line-soft);
}
.prof-section-head h2{
    font-family:'Fraunces',serif;
    font-weight:500; font-size: clamp(18px, 2vw, 22px);
    letter-spacing:-0.01em; line-height:1.15;
    margin:0; color: var(--ink);
}
.prof-section-head h2 em{ font-style:italic; font-weight:400; color: var(--accent); }
.prof-section-head .count{ font-size:11px; color: var(--muted); letter-spacing:.1em; }

/* Italic Fraunces pull-quote (about blurb) */
.prof-quote{
    font-family:'Fraunces',serif; font-style:italic;
    font-size:16px; line-height:1.55;
    color: var(--ink-soft);
    border-top:1px solid var(--line-soft);
    border-bottom:1px solid var(--line-soft);
    padding:14px 18px;
    margin:0;
}

/* Empty state line */
.prof-empty{
    background:#fff; border:1px dashed var(--line);
    padding:22px; text-align:center;
    font-family:'Fraunces',serif; font-size:14px;
    color: var(--ink-soft); border-radius:2px;
}
.prof-empty em{ font-style:italic; color: var(--accent); }

.prof-featured{
    position:relative;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    overflow:hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-featured:hover{
    border-color: var(--accent);
    box-shadow: 0 14px 32px -20px color-mix(in srgb, var(--bmm-accent) 25%, transparent);
}
.prof-featured.is-premium{
    border-color: color-mix(in srgb, var(--bmm-accent) 45%, transparent);
    border-left:3px solid var(--accent);
    background: linear-gradient(180deg, var(--accent-wash) 0%, #fff 320px) no-repeat #fff;
}
.prof-featured.is-premium::before{
    content:""; position:absolute;
    top:-1px; left:-3px; width:8px; height:8px;
    border:1px solid var(--accent);
    border-right:none; border-bottom:none;
    z-index:3;
}
.prof-featured.is-premium::after{
    content:""; position:absolute;
    bottom:-1px; right:-1px; width:8px; height:8px;
    border:1px solid var(--accent);
    border-left:none; border-top:none; opacity:.6;
    z-index:3;
}
.prof-featured .feat-img{
    display:block; width:100%;
    aspect-ratio: 16 / 7;
    background: var(--line-soft);
    overflow:hidden;
    border-bottom:1px solid var(--line);
}
.prof-featured .feat-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.prof-featured:hover .feat-img img{ transform:scale(1.03); }
.prof-featured .feat-body{ padding:18px 20px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.prof-featured .feat-meta{
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    font-size:11px; color: var(--muted); letter-spacing:.1em;
}
.prof-featured h3.feat-title{
    font-family:'Fraunces',serif;
    font-weight:500; font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing:-0.01em; line-height:1.15;
    margin:0; color: var(--ink);
}
.prof-featured h3.feat-title a{ color:inherit; text-decoration:none; }
.prof-featured h3.feat-title a:hover{ color: var(--accent); }
.prof-featured h3.feat-title em{ font-style:italic; font-weight:400; color: var(--accent); }
.prof-featured .feat-stats{
    display:flex; flex-wrap:wrap; gap:6px 14px;
    align-items:center;
    font-size:12px; color: var(--ink-soft);
    padding-top:6px; border-top:1px solid var(--line-soft);
}
.prof-featured .feat-balance{
    flex:1 1 200px; min-width:160px;
    display:flex; flex-direction:column; gap:4px;
}
.prof-featured .feat-balance-bar{
    position:relative; height:4px; background: var(--line-soft); border-radius:2px; overflow:hidden;
}
.prof-featured .feat-balance-bar > span{
    position:absolute; left:0; top:0; bottom:0;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
.prof-featured .feat-balance-row{
    display:flex; justify-content:space-between;
    font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
    color: var(--muted);
}
.prof-featured .feat-cta{
    display:flex; flex-wrap:wrap; gap:14px;
    margin-top:auto; padding-top:6px;
}
.prof-featured .feat-rank{
    position:absolute; top:14px; right:14px;
    background: rgba(255,255,255,.93);
    border:1px solid var(--line);
    border-radius:2px;
    padding:8px 14px;
    display:flex; flex-direction:column; align-items:center;
    gap:2px; z-index:2;
}
.prof-featured .feat-rank .num{
    font-family:'Fraunces',serif; font-style:italic;
    font-size:24px; line-height:1; color: var(--ink);
    font-variant-numeric:tabular-nums;
}
.prof-featured .feat-rank .lbl{
    font-size:9.5px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--muted); font-weight:500;
}
.prof-featured.is-premium .feat-rank{ border-color: color-mix(in srgb, var(--bmm-accent) 45%, transparent); }
.prof-featured.is-premium .feat-rank .num{ color: var(--accent-deep); }

@media (max-width:720px){
    .prof-featured .feat-img{ aspect-ratio: 16 / 8; }
    .prof-featured.is-premium{ background: var(--accent-wash); }
    .prof-featured .feat-body{ padding:14px; }
    .prof-featured .feat-rank{ top:8px; right:8px; padding:6px 10px; }
    .prof-featured .feat-rank .num{ font-size:18px; }
}

.prof-otherlist{ display:flex; flex-direction:column; gap:10px; }
.prof-otherlist .other{
    display:grid;
    grid-template-columns: 96px 1fr auto;
    gap:14px;
    align-items:center;
    padding:12px 16px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-otherlist .other:hover{
    border-color: var(--accent);
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--bmm-accent) 2%, transparent);
}
.prof-otherlist .other .thumb{
    width:96px; height:72px; border:1px solid var(--line); border-radius:2px;
    overflow:hidden; background: var(--line-soft);
}
.prof-otherlist .other .thumb img{ width:100%; height:100%; object-fit:cover; }
.prof-otherlist .other .body{ min-width:0; }
.prof-otherlist .other .body a.t{
    font-family:'Fraunces',serif;
    font-size:16px; font-weight:500; color: var(--ink); text-decoration:none;
    display:inline-block; margin-bottom:4px;
}
.prof-otherlist .other .body a.t:hover{ color: var(--accent); }
.prof-otherlist .other .body .stats{
    font-size:11px; color: var(--muted); letter-spacing:.05em;
    display:flex; flex-wrap:wrap; gap:4px 12px;
}
.prof-otherlist .other .right{
    display:flex; flex-direction:column; align-items:flex-end; gap:4px;
}

@media (max-width:720px){
    .prof-otherlist .other{ grid-template-columns: 72px 1fr; }
    .prof-otherlist .other .thumb{ width:72px; height:54px; }
    .prof-otherlist .other .right{ grid-column: 1 / -1; flex-direction:row; }
}

.prof-voice{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px;
}
.prof-voice .col{ min-width:0; display:flex; flex-direction:column; gap:8px; }
.prof-voice .v-row{
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    padding:12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-voice .v-row:hover{
    border-color: var(--accent);
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--bmm-accent) 2%, transparent);
}
.prof-voice .v-row .v-meta{
    display:flex; align-items:center; gap:8px; flex-wrap:wrap;
    font-size:11px; color: var(--muted); letter-spacing:.05em;
    margin-bottom:6px;
}
.prof-voice .v-row .v-meta a.t{
    font-family:'Fraunces',serif; font-style:italic;
    font-size:14px; color: var(--ink); text-decoration:none;
    border-bottom:1px solid var(--line);
}
.prof-voice .v-row .v-meta a.t:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.prof-voice .v-row p.body{
    font-family: inherit;
    font-size:13.5px; line-height:1.5;
    margin:0; color: var(--ink-soft);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

@media (max-width:720px){
    .prof-voice{ grid-template-columns: 1fr; }
}

.prof-badges{ display:flex; flex-direction:column; gap:14px; }
.prof-badges .group{ display:flex; flex-direction:column; gap:6px; }
.prof-badges .group-title{
    font-family:'Fraunces',serif;
    font-size:13px; font-style:italic;
    color: var(--ink); margin:0;
    display:flex; align-items:center; gap:8px;
}
.prof-badges .group-title::before{
    content:""; width:5px; height:5px; border-radius:50%;
    background: var(--accent); opacity:.75;
}
.prof-badges .row{
    display:flex; gap:10px; flex-wrap:wrap;
}
.prof-badges .badge{
    display:flex; align-items:center; gap:10px;
    padding:8px 12px;
    background:#fff;
    border:1px solid var(--line); border-radius:2px;
    transition: border-color .2s ease;
}
.prof-badges .badge:hover{ border-color: var(--accent); }
.prof-badges .badge .img{
    width:40px; height:40px; flex-shrink:0;
    border:1px solid var(--line); border-radius:2px;
    overflow:hidden; background: var(--line-soft);
    display:grid; place-items:center;
    font-size:9px; color: var(--muted); letter-spacing:.05em;
}
.prof-badges .badge .img img{ width:100%; height:100%; object-fit:cover; }
.prof-badges .badge .info .name{
    font-family:'Fraunces',serif;
    font-size:13px; color: var(--ink);
}
.prof-badges .badge .info .when{
    font-size:10px; letter-spacing:.1em; color: var(--muted);
}

@media (max-width:720px){
    .prof-badges .row{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
    .prof-badges .badge{ flex-shrink:0; }
}

.prof-feed{ display:flex; flex-direction:column; gap:10px; }
.prof-feed .feed-row{
    position:relative;
    display:grid;
    grid-template-columns: 64px 64px 1fr;
    gap:14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    padding:14px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-feed .feed-row:hover{
    border-color: var(--accent);
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--bmm-accent) 2%, transparent);
}
.prof-feed .rail{
    border-right:1px solid var(--line-soft);
    padding-right:12px;
    display:flex; flex-direction:column;
    align-items:flex-start;
}
.prof-feed .rail .day{
    font-family:'Fraunces',serif; font-style:italic; font-weight:400;
    font-size:28px; line-height:1; color: var(--ink);
    font-variant-numeric:tabular-nums;
}
.prof-feed .rail .mon{
    font-size:9.5px; letter-spacing:.22em; text-transform:uppercase;
    color: var(--muted); margin-top:4px;
}
.prof-feed .rail .yr{
    font-size:10px; color: var(--muted); margin-top:2px;
}
.prof-feed .thumb{
    width:64px; height:64px;
    border:1px solid var(--line); border-radius:2px;
    overflow:hidden; background: var(--line-soft);
    display:grid; place-items:center;
    font-size:9px; color: var(--muted); letter-spacing:.05em;
}
.prof-feed .thumb img{ width:100%; height:100%; object-fit:cover; }
.prof-feed .body{ min-width:0; display:flex; flex-direction:column; gap:4px; }
.prof-feed .body .meta{
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    font-size:11px; color: var(--muted); letter-spacing:.05em;
}
.prof-feed .body .meta a.t{
    font-family:'Fraunces',serif; font-style:italic;
    font-size:15px; color: var(--ink); text-decoration:none;
    border-bottom:1px solid var(--line);
}
.prof-feed .body .meta a.t:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.prof-feed .body p.excerpt{
    font-size:13.5px; line-height:1.5;
    margin:0; color: var(--ink-soft);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

@media (max-width:720px){
    .prof-feed .feed-row{ grid-template-columns: 56px 1fr; padding:12px 14px; }
    .prof-feed .rail{ display:none; }
    .prof-feed .thumb{ width:56px; height:56px; }
}

.prof-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:14px;
}
.prof-grid .tile{
    display:flex; flex-direction:column; gap:6px;
    text-decoration:none;
}
.prof-grid .tile .img{
    width:100%; aspect-ratio:1/1;
    border:1px solid var(--line); border-radius:2px;
    overflow:hidden; background: var(--line-soft);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.prof-grid .tile:hover .img{
    border-color: var(--accent);
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--bmm-accent) 2%, transparent);
}
.prof-grid .tile .img img{ width:100%; height:100%; object-fit:cover; }
.prof-grid .tile .name{
    font-family:'Fraunces',serif; font-style:italic;
    font-size:13px; color: var(--ink);
    line-height:1.25;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.prof-grid .tile:hover .name{ color: var(--accent); }
.prof-grid .tile .when{
    font-size:10px; letter-spacing:.1em; color: var(--muted);
}

@media (max-width:720px){
    .prof-grid{ grid-template-columns: repeat(2, 1fr); gap:10px; }
}

/* Mobile breakpoint (matches articles page) */
@media (max-width:720px){
    .prof-frame{ padding:14px; }
    .prof-id{ gap:10px 14px; }
    .prof-id .id-left{ flex-basis:100%; }
    .prof-id .id-avatar{ width:48px; height:48px; }
    .prof-title{ font-size:20px; }
    .prof-metric-row{ width:100%; gap:6px 18px; }
    .prof-metric-num{ font-size:22px; }
    .prof-row{ padding:12px 14px; }
}
