/* web/css/player_profile.css - Rensmash Player Profile Modal styling */
/* Strictly <= 200 lines, <= 100 chars per line. */

.profile-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(22, 21, 20, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}

.profile-dialog {
  max-width: 480px; width: 100%; max-height: 85vh;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 1.25rem; margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: profilePopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes profilePopIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.profile-header-bar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem;
}

.btn-close-profile {
  min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 1.25rem; cursor: pointer;
  color: var(--sumi-faded); padding: 0.2rem 0.5rem; border-radius: 4px;
  transition: all 0.15s ease;
}
.btn-close-profile:hover { color: var(--hanko-red); background: var(--hanko-dim); }
.btn-close-profile:active { transform: scale(0.92); }

.profile-hero {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem;
}

.profile-avatar {
  width: 52px; height: 52px; border-radius: 8px;
  border: 2px solid var(--brush-border); object-fit: contain; background: #fff;
  flex-shrink: 0;
}

.profile-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem; background: var(--hanko-dim); color: var(--hanko-red);
}

.profile-meta {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}

.profile-tag-line {
  display: flex; align-items: center; gap: 8px;
}

.profile-username {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800;
  color: var(--sumi-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.profile-startgg-tag {
  font-size: 0.72rem; color: var(--sumi-faded); font-weight: 600;
}

.profile-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 0.85rem; padding: 0.65rem 0;
  border-top: 1px dashed var(--brush-border); border-bottom: 1px dashed var(--brush-border);
}

.profile-stat-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.profile-stat-box.highlight .stat-num {
  color: var(--hanko-red); font-size: 1.15rem;
}

.profile-chars-section {
  display: flex; flex-direction: column; min-height: 0; flex: 1;
}

.profile-section-title {
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
  color: var(--sumi-faded); margin-bottom: 0.45rem;
}

.profile-chars-list {
  overflow-y: auto; display: flex; flex-direction: column; gap: 6px; max-height: 220px;
}

.profile-char-row {
  display: flex; align-items: center; gap: 8px; padding: 0.4rem 0.55rem;
  background: #fff; border-radius: 6px; border: 1px solid var(--brush-border);
}

.profile-char-rank {
  width: 30px; font-weight: 900; font-size: 0.82rem; color: var(--accent-gold);
}

.profile-char-thumb {
  width: 28px; height: 28px; border-radius: 4px; object-fit: contain; flex-shrink: 0;
}

.profile-char-info {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
}

.profile-char-name {
  font-weight: 800; font-size: 0.82rem; color: var(--sumi-ink);
}

.profile-char-rec {
  font-size: 0.66rem; color: var(--sumi-faded);
}

.profile-char-elo {
  text-align: right; display: flex; flex-direction: column; align-items: flex-end;
}
.profile-char-elo strong { font-weight: 900; font-size: 0.88rem; color: var(--sumi-ink); }
.profile-char-elo small { font-size: 0.58rem; color: var(--sumi-faded); font-weight: 700; }

.profile-empty-msg {
  padding: 1.5rem; text-align: center; color: var(--sumi-faded); font-size: 0.82rem;
}

.profile-loading {
  padding: 2rem; text-align: center; color: var(--sumi-faded); font-weight: 700;
}
