/* 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); }

/* 🌙 Night summary (Profile.nightHtml) */
.ng-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ng-stats span { padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: center; font-size: 12px; color: #c9c2e4; }
.ng-stats b { display: block; font-size: 20px; color: #f3f0fa; margin-bottom: 2px; }
.ng-champ { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(252, 211, 77, 0.22), rgba(244, 114, 182, 0.16)); border: 1px solid rgba(252, 211, 77, 0.45); }
.ng-champ .ng-crown { font-size: 34px; filter: drop-shadow(0 4px 12px rgba(252, 211, 77, 0.5)); }
.ng-champ b { display: block; font-size: 18px; }
.ng-champ small { display: block; color: #e9e3ff; font-size: 12px; }
.ng-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.ng-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--c); }
.ng-list .ng-em { font-size: 22px; }
.ng-list .ng-t { flex: 1; min-width: 0; }
.ng-list .ng-t b { display: block; font-size: 14px; }
.ng-list .ng-t small { display: block; color: #c9c2e4; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-list time { color: #a7a0c4; font-size: 12px; font-variant-numeric: tabular-nums; }
.ng-over { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 14, 0.82); }
.ng-over .ng-box { width: min(460px, 100%); max-height: 92vh; overflow: auto; padding: 18px; border-radius: 22px; background: #1a1527; border: 1px solid rgba(255, 255, 255, 0.14); color: #f3f0fa; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.ng-over h2 { margin: 0 0 12px; }
.ng-over .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
