/* Character profile (armory) and guild page. */
.profile { display: flex; flex-direction: column; gap: 16px; }

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(600px 160px at 0% 0%, rgba(143, 123, 255, 0.12), transparent 70%),
        rgba(0, 0, 0, 0.3);
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.avatar .guild-mark { border: none; background: transparent; }

.profile-name {
    margin: 0;
    text-align: left;
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.profile-class { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-tags:empty { display: none; }

.profile-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}
.profile-facts dt {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}
.profile-facts dd { margin: 2px 0 0; font-size: 0.92rem; }

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 16px;
}

.profile-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    min-width: 0;
}

.profile-card .armory-equip { min-height: 0; }

.big-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.big-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.big-stat b {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.big-stat span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    text-align: center;
}
.big-stat.accent b { color: var(--accent-hi); }
.big-stat.ml b { color: var(--ml); }

.stat-lines { display: flex; flex-direction: column; }
.stat-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
.stat-line:last-child { border-bottom: none; }
.stat-line span { color: var(--muted); }
.stat-line b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.stat-line.sep { margin-top: 8px; border-top: 1px solid var(--line-strong); }

.event-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.event-stat {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.event-stat-name { font-weight: 600; color: #fff; margin-bottom: 6px; }
.event-stat-values { display: flex; gap: 12px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.event-stat-values b { color: var(--accent-hi); font-size: 0.95rem; }

/* guild page */
.guild-hero .avatar { background: rgba(0, 0, 0, 0.55); }
.guild-links { display: flex; flex-wrap: wrap; gap: 10px; }
.member-pos { font-size: 0.8rem; }
.member-pos.master { color: #fcd34d; font-weight: 600; }

@media (max-width: 760px) {
    .profile-hero { grid-template-columns: auto 1fr; }
    .profile-facts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px; min-width: 0; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .avatar { width: 60px; height: 60px; font-size: 1.05rem; }
    .profile-name { font-size: 1.35rem; }
    .big-stat b { font-size: 1.25rem; }
}

/* Class portrait (VEYLMU art) in place of the letter badge. */
.avatar.avatar-portrait {
    object-fit: cover;
    padding: 0;
    background: #0b0a10;
    box-shadow: 0 0 0 1px var(--line), 0 0 24px rgba(143, 123, 255, 0.25);
}
