/* Profile form + leaderboard: used on the hub and the party page (which has the same
   form pieces in party.css; these match them). Colors come from the page's own tokens. */
.pf-card { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.pf-card h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.pf-card .field { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0d0b16; color: var(--ink); font-size: 16px; font-family: inherit; margin-bottom: 10px; }
.pf-card .field:focus { outline: none; border-color: #a78bfa; }
.pf-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 16px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-hi); color: var(--ink); font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; text-decoration: none; }
.pf-card .btn-primary { background: linear-gradient(135deg, #fcd34d, #f472b6); border-color: transparent; color: #2a0f22; }
.pf-card .btn-block { width: 100%; }
.pf-card .btn-small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.pf-card .error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.45); color: #fecaca; padding: 12px; border-radius: 12px; margin-bottom: 12px; }
.pf-card .note { color: var(--ink-soft); font-size: 13px; }
.pf-card .avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 12px; }
.pf-card .avatar-opt { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #0d0b16; font-size: 22px; cursor: pointer; padding: 0; }
.pf-card .avatar-opt.on { border-color: #f5b942; background: rgba(245, 185, 66, 0.15); transform: scale(1.06); }
@media (max-width: 380px) { .pf-card .avatar-grid { grid-template-columns: repeat(6, 1fr); } }

.me-row { display: flex; align-items: center; gap: 12px; }
.me-row .av { font-size: 38px; line-height: 1; }
.me-row .grow { flex: 1; min-width: 0; }
.me-row b { display: block; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row small { color: var(--ink-soft); }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #0d0b16; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 9px; padding: 9px; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--card-hi); color: var(--ink); }

.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; }
.board li.me { border-color: rgba(245, 185, 66, 0.5); }
.board .rk { width: 26px; text-align: center; font-weight: 800; color: var(--ink-soft); }
.board .av { font-size: 24px; }
.board .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.board .pt { font-size: 20px; color: #f5b942; }
.board .pt::after { content: " puan"; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
