/**
 * playercard.css —— 玩家资料卡（点玩家名字/头像，贴着触发元素弹出的那张小卡）
 *
 * 卡片本体和样式都收在这一个文件里，谁要用就 <link> 进来 + 引 playercard.js，
 * 不用每页再抄一遍标签和样式（以前只有首页有，规则页、公告页都点不出东西）。
 */

.player-card-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2000;
    display: none;
    /* 关键：不拦截鼠标事件，否则它盖在在线列表上，第二次点名字会被它吃掉 */
    pointer-events: none;
}
.player-card {
    position: fixed;
    left: 0; top: 0;           /* 实际位置由 JS 按触发元素算 */
    pointer-events: auto;
    width: 380px;
    max-width: calc(100vw - 16px);
    background: #161b22;
    border: 1px solid #2b3442;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 48px rgba(0,0,0,0.65);
    animation: pcIn 0.14s ease-out;
}
@keyframes pcIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
}
.pc-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px 20px;
}
.pc-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #232b36;
    color: #8899aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.pc-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-headinfo { min-width: 0; }
.pc-name { font-size: 1.5rem; font-weight: 700; color: #e6edf3; line-height: 1.25; cursor: pointer; transition: opacity 0.15s; }
.pc-name:hover { opacity: 0.7; }
.pc-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #4ade80;
    background: rgba(74,222,128,0.12);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 1rem;
    padding: 0.14rem 0.7rem;
    margin-top: 8px;
}
/* .pc-role.owner / .pc-role.vip 的配色统一在 role.css 里 ——
   原来这里写的是「紫金渐变 + 金色发光」，跟公告页的紫色胶囊对不上。
   顺带删掉了 .pc-role.admin：role.js 的 roleOf() 从来不会产出 admin 这个类，是死代码。 */
.pc-meta { color: #8b949e; font-size: 0.88rem; margin-top: 9px; font-family: 'Inter', monospace; }
.pc-meta span { color: #c9d1d9; font-weight: 600; }
/* 底下原来还有「加入天数 / 在线状态」两格，服主说不要，已去掉 */
.pc-sign {
    padding: 0 24px 20px;
    font-size: 0.88rem;
    color: #8b949e;
    line-height: 1.5;
    word-break: break-word;
}
