/* ============================================================================
   战斗通行证 · BATTLE PASS — 战术档案 / 武器站 HUD
   配色：枪金属底 + 黄铜琥珀(免费/主色) + 熔岩橙(付费/精选) + 橄榄绿
   字体：Saira Condensed(展示) / Chakra Petch(界面) / Share Tech Mono(数据)
   ============================================================================ */

:root {
    --bg:          #0b0c0a;
    --bg-2:        #101109;
    --panel:       #16170f;
    --panel-2:     #1c1d13;
    --panel-hi:    #22241a;
    --line:        #34352a;
    --line-bright: #4c4d3c;
    --brass:       #d8a24a;
    --brass-hi:    #f3c873;
    --brass-dim:   #8b7440;
    --olive:       #838a5e;
    --molten:      #e2602a;
    --molten-hi:   #ff8047;
    --text:        #d8d4c5;
    --text-dim:    #918d79;
    --text-faint:  #605d4e;
    --green:       #93b65c;
    --red:         #c8503a;

    --f-display: 'Saira Condensed', 'Oswald', sans-serif;
    --f-ui:      'Chakra Petch', 'Oswald', sans-serif;
    --f-mono:    'Share Tech Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-ui);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        /* 顶部探照 */
        radial-gradient(120% 80% at 50% -20%, #1d1e12 0%, rgba(29,30,18,0) 55%),
        /* 等高线/地形（极淡军事制图氛围） */
        repeating-linear-gradient(58deg, rgba(131,138,94,.05) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(-58deg, rgba(131,138,94,.035) 0 1px, transparent 1px 64px),
        /* 底部暗角 */
        radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
}

/* 颗粒 + 扫描线叠层 */
.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: .05;
    background-image:
        repeating-linear-gradient(0deg, #000 0, #000 1px, transparent 1px, transparent 3px);
}
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9997; opacity: .35;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.22) 2px 3px);
    mix-blend-mode: multiply;
    animation: scan 9s linear infinite;
}
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 120px; } }

.view { min-height: 100vh; }
.hidden { display: none !important; }
.msg {
    margin-top: 12px; min-height: 18px; font-family: var(--f-mono); font-size: 12.5px;
    letter-spacing: .5px; color: var(--red);
}
.msg.ok { color: var(--green); }
.msg:not(:empty)::before { content: '› '; opacity: .7; }

/* ============================ 通用：黄铜按钮 ============================ */
.btn {
    position: relative; cursor: pointer; border: 1px solid var(--brass-dim);
    background: linear-gradient(180deg, #2c2718 0%, #1e1a11 100%);
    color: var(--brass-hi); font-family: var(--f-display); font-weight: 600;
    letter-spacing: 2.5px; padding: 11px 20px; text-transform: uppercase; font-size: 15px;
    transition: color .18s, border-color .18s, box-shadow .18s, transform .05s;
    overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(243,200,115,.28), transparent);
    transition: left .5s ease;
}
.btn:hover { color: #fff; border-color: var(--brass); box-shadow: 0 0 0 1px rgba(216,162,74,.25), 0 6px 22px rgba(0,0,0,.5); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(1px); }
.btn.primary { width: 100%; margin-top: 10px; }
.btn.small { padding: 8px 14px; font-size: 13px; letter-spacing: 1.5px; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--brass-dim); box-shadow: none; }

/* 输入框 */
input, .redeem input {
    width: 100%; padding: 11px 13px; background: #0a0b07; border: 1px solid var(--line);
    color: var(--text); font-family: var(--f-mono); font-size: 14px; letter-spacing: .5px; outline: none;
    transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: var(--text-faint); }
input:focus { border-color: var(--brass); box-shadow: 0 0 0 1px rgba(216,162,74,.2), inset 0 0 12px rgba(216,162,74,.06); }

/* ============================ 登录 ============================ */
#login-view { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
    position: relative; width: 380px; padding: 46px 38px 40px;
    background:
        linear-gradient(180deg, rgba(216,162,74,.04), transparent 30%),
        var(--panel);
    border: 1px solid var(--line-bright);
    box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 0 60px rgba(0,0,0,.4);
    animation: cardIn .55s cubic-bezier(.2,.7,.2,1) both;
}
.login-card::before {
    content: 'CLASSIFIED // OPERATOR TERMINAL'; position: absolute; top: -1px; left: -1px; right: -1px;
    height: 24px; line-height: 24px; padding-left: 12px;
    font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: var(--bg);
    background: repeating-linear-gradient(45deg, var(--brass-dim) 0 8px, #15160e 8px 16px);
}
.login-card > * { position: relative; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--brass); z-index: 2; }
.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.brand {
    margin-top: 14px; font-family: var(--f-display); font-size: 46px; font-weight: 700;
    letter-spacing: 6px; line-height: .95; color: var(--brass);
    text-align: center; text-shadow: 0 0 26px rgba(216,162,74,.35);
}
.brand-sub {
    text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 3px;
    color: var(--text-dim); margin: 10px 0 30px;
}
.field { margin-bottom: 18px; }
.field label {
    display: block; font-family: var(--f-display); font-size: 13px; font-weight: 600;
    letter-spacing: 3px; color: var(--text-dim); margin-bottom: 7px; text-transform: uppercase;
}

/* ============================ 顶栏 HUD ============================ */
.topbar {
    display: flex; align-items: center; gap: 30px; padding: 16px 30px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border-bottom: 1px solid var(--line-bright);
    position: relative;
}
.topbar::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--brass-dim) 0 18px, transparent 18px 30px);
    opacity: .5;
}
.season-info { display: flex; flex-direction: column; min-width: 0; }
.season-name {
    font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--brass);
    letter-spacing: 2px; line-height: 1; text-shadow: 0 0 18px rgba(216,162,74,.25);
    white-space: nowrap;
}
.season-timer { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 1px; margin-top: 4px; }
.season-timer::before { content: '◷ '; color: var(--brass-dim); }

.level-block { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.level-badge {
    font-family: var(--f-display); font-size: 19px; font-weight: 700; color: #fff;
    white-space: nowrap; letter-spacing: 1px;
}
.level-badge span { color: var(--brass); font-size: 24px; }

.xp-bar {
    position: relative; flex: 1; max-width: 460px; height: 20px; background: #070805;
    border: 1px solid var(--line-bright);
    box-shadow: inset 0 0 10px rgba(0,0,0,.7);
    overflow: hidden;
}
/* 分段刻度 */
.xp-bar::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 33px, rgba(0,0,0,.55) 33px 34px);
}
.xp-fill {
    height: 100%; width: 0; transition: width .6s cubic-bezier(.2,.7,.2,1);
    background: linear-gradient(90deg, var(--brass-dim), var(--brass) 70%, var(--brass-hi));
    box-shadow: 0 0 14px rgba(216,162,74,.55);
    position: relative;
}
.xp-fill::after {
    content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5)); opacity: .7;
    animation: pulseEdge 1.8s ease-in-out infinite;
}
@keyframes pulseEdge { 0%,100% { opacity: .25; } 50% { opacity: .85; } }
.xp-text {
    position: absolute; inset: 0; text-align: center; line-height: 20px;
    font-family: var(--f-mono); font-size: 11px; color: #fff; letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,.9); z-index: 1;
}

.premium-flag {
    font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: 2px;
    padding: 5px 12px; border: 1px solid var(--line-bright); color: var(--text-dim);
    text-transform: uppercase; white-space: nowrap;
}
.premium-flag.on {
    color: #1a0e06; background: linear-gradient(180deg, var(--molten-hi), var(--molten));
    border-color: var(--molten-hi); font-weight: 700;
    box-shadow: 0 0 18px rgba(226,96,42,.5); animation: flagPulse 2.4s ease-in-out infinite;
}
@keyframes flagPulse { 0%,100% { box-shadow: 0 0 12px rgba(226,96,42,.4); } 50% { box-shadow: 0 0 22px rgba(255,128,71,.7); } }

.user-block { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--text-dim); }
#bp-username::before { content: '◈ '; color: var(--olive); }

/* ============================ 内容布局 ============================ */
.content {
    display: flex; gap: 24px; padding: 26px 30px 40px; align-items: flex-start;
    animation: fadeUp .5s .05s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rail-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rail-labels {
    display: flex; gap: 24px; padding: 0 4px 10px; align-items: center;
    border-bottom: 1px solid var(--line);
}
.rail-label {
    font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: 3px;
    color: var(--text-dim); text-transform: uppercase; position: relative; padding-left: 16px;
}
.rail-label::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; background: var(--brass);
}
.rail-label.premium { color: var(--molten-hi); }
.rail-label.premium::before { background: var(--molten); box-shadow: 0 0 8px var(--molten); }

.rail-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 16px 4px 20px; scroll-behavior: smooth;
}
.rail-scroll::-webkit-scrollbar { height: 11px; }
.rail-scroll::-webkit-scrollbar-track { background: #0a0b07; }
.rail-scroll::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid #0a0b07; }
.rail-scroll::-webkit-scrollbar-thumb:hover { background: var(--brass-dim); }

.lvl-col {
    flex: 0 0 124px; display: flex; flex-direction: column; gap: 10px;
    animation: colIn .5s both;
}
@keyframes colIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* 入场错峰（前 18 列） */
.lvl-col:nth-child(1){animation-delay:.02s}.lvl-col:nth-child(2){animation-delay:.06s}
.lvl-col:nth-child(3){animation-delay:.10s}.lvl-col:nth-child(4){animation-delay:.14s}
.lvl-col:nth-child(5){animation-delay:.18s}.lvl-col:nth-child(6){animation-delay:.22s}
.lvl-col:nth-child(7){animation-delay:.26s}.lvl-col:nth-child(8){animation-delay:.30s}
.lvl-col:nth-child(9){animation-delay:.34s}.lvl-col:nth-child(10){animation-delay:.38s}
.lvl-col:nth-child(11){animation-delay:.42s}.lvl-col:nth-child(12){animation-delay:.46s}
.lvl-col:nth-child(n+13){animation-delay:.5s}

.lvl-head {
    text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 20px;
    letter-spacing: 1px; color: var(--text-faint); padding: 2px 0 6px;
    border-bottom: 1px solid var(--line); position: relative;
}
.lvl-col.reached .lvl-head { color: var(--brass); }
.lvl-col.reached .lvl-head::after {
    content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 40%; height: 2px; background: var(--brass); box-shadow: 0 0 8px var(--brass);
}

.cell {
    position: relative; min-height: 100px; padding: 12px 9px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px;
    transition: transform .14s, border-color .14s, box-shadow .14s;
}
.cell::before {
    content: ''; position: absolute; top: 5px; left: 5px; width: 10px; height: 10px;
    border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright);
    opacity: .6; transition: opacity .14s;
}
.cell:hover { transform: translateY(-3px); border-color: var(--brass-dim); box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.cell:hover::before { opacity: 1; border-color: var(--brass); }

.cell.premium { border-color: #4a3422; background: linear-gradient(180deg, #221710, var(--panel)); }
.cell.premium:hover { border-color: var(--molten); box-shadow: 0 10px 26px rgba(226,96,42,.18); }
.cell.featured {
    box-shadow: inset 0 0 0 1px var(--brass), 0 0 22px rgba(216,162,74,.3);
}
.cell.premium.featured { box-shadow: inset 0 0 0 1px var(--molten), 0 0 22px rgba(226,96,42,.35); }

/* 物品图标（脚本可注入 <img class="rw-icon"> 或 .rw-icon 容器；无图标时不影响布局） */
.cell .rw-icon {
    width: 46px; height: 46px; object-fit: contain; image-rendering: auto;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
    background:
        linear-gradient(135deg, rgba(216,162,74,.08), transparent 60%),
        #0d0e08;
    border: 1px solid var(--line); padding: 2px;
}
.cell.premium .rw-icon { background: linear-gradient(135deg, rgba(226,96,42,.12), transparent 60%), #0d0e08; }
.cell.featured .rw-icon { border-color: var(--brass); }
.cell.premium.featured .rw-icon { border-color: var(--molten); }
.cell .rw-icon.loading { opacity: .35; }

.cell .rw-name { font-family: var(--f-mono); font-size: 11px; color: var(--text); line-height: 1.35; }
.cell .rw-count { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--brass); letter-spacing: .5px; }
.cell.premium .rw-count { color: var(--molten-hi); }

.cell .claim {
    margin-top: 6px; font-family: var(--f-display); font-weight: 600; font-size: 12px;
    padding: 5px 12px; cursor: pointer; border: 1px solid var(--brass-dim);
    background: transparent; color: var(--brass); letter-spacing: 2px; text-transform: uppercase;
    transition: .15s;
}
.cell .claim:hover { background: var(--brass); color: #14130f; box-shadow: 0 0 14px rgba(216,162,74,.5); }
.cell.premium .claim { border-color: var(--molten); color: var(--molten-hi); }
.cell.premium .claim:hover { background: var(--molten); color: #1a0e06; box-shadow: 0 0 14px rgba(226,96,42,.6); }

.cell.locked { opacity: .38; filter: grayscale(.4); }
.cell.claimed::after {
    content: '✓ 已领取'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(8,9,6,.86); color: var(--green); font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px;
    backdrop-filter: blur(1px);
}
.cell.premium.locktrack::before {
    content: '🔒'; position: absolute; top: 6px; right: 8px; left: auto; width: auto; height: auto;
    border: 0; font-size: 13px; opacity: .7;
}
.cell.empty { opacity: .22; }
.cell.empty .rw-name { font-size: 18px; }

/* ============================ 侧栏面板 ============================ */
.side { flex: 0 0 348px; display: flex; flex-direction: column; gap: 20px; }
.panel {
    position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-bright);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
/* 面板四角反射标记 */
.panel::before, .panel::after {
    content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--brass-dim); border-left: 2px solid var(--brass-dim); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--brass-dim); border-right: 2px solid var(--brass-dim); }

.panel-head {
    display: flex; align-items: center; justify-content: space-between; padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(45deg, rgba(216,162,74,.05) 0 6px, transparent 6px 12px);
}
.panel-head h2 {
    font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 3px;
    color: var(--brass); text-transform: uppercase;
}
.panel-head h2::before { content: '// '; color: var(--brass-dim); }
.rerolls { font-family: var(--f-mono); font-size: 11px; color: var(--text-dim); letter-spacing: .5px; }

.task-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; max-height: 62vh; overflow-y: auto; }
.task-list::-webkit-scrollbar { width: 8px; }
.task-list::-webkit-scrollbar-thumb { background: var(--line-bright); }

.task {
    position: relative; border: 1px solid var(--line); padding: 11px 13px 11px 16px;
    background: #131409; transition: border-color .15s, transform .1s;
    animation: taskIn .4s both;
}
.task::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brass-dim);
}
.task:hover { border-color: var(--brass-dim); }
.task:hover::before { background: var(--brass); box-shadow: 0 0 10px var(--brass); }
@keyframes taskIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.task:nth-child(1){animation-delay:.04s}.task:nth-child(2){animation-delay:.10s}
.task:nth-child(3){animation-delay:.16s}.task:nth-child(4){animation-delay:.22s}
.task:nth-child(5){animation-delay:.28s}.task:nth-child(n+6){animation-delay:.32s}

.task .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.task .t-title { font-family: var(--f-ui); font-weight: 600; font-size: 15px; color: var(--text); }
.task .t-scope {
    font-family: var(--f-mono); font-size: 9.5px; padding: 2px 7px; border: 1px solid var(--line-bright);
    color: var(--olive); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.task .t-desc { font-size: 12.5px; color: var(--text-dim); margin: 6px 0 9px; line-height: 1.45; }
.task .t-prog { position: relative; height: 13px; background: #070805; border: 1px solid var(--line); overflow: hidden; }
.task .t-prog .pf {
    height: 100%; width: 0; background: linear-gradient(90deg, #5e7a3a, var(--green));
    box-shadow: 0 0 8px rgba(147,182,92,.5); transition: width .5s ease;
}
.task .t-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; gap: 8px; }
.task .t-xp { font-family: var(--f-mono); font-size: 11px; color: var(--brass); letter-spacing: .5px; }
.task.done { opacity: .6; }
.task.done::before { background: var(--green); }
.task.done .pf { background: linear-gradient(90deg, var(--brass-dim), var(--brass)); }
.t-reroll {
    font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; cursor: pointer;
    color: var(--text-dim); border: 1px solid var(--line-bright); background: transparent; padding: 4px 10px;
    text-transform: uppercase; transition: .15s;
}
.t-reroll:hover { color: var(--brass); border-color: var(--brass-dim); }

.redeem { display: flex; gap: 9px; padding: 14px 16px 6px; }
.redeem input { flex: 1; text-align: center; letter-spacing: 2px; }
.redeem .btn { white-space: nowrap; }

/* ============================ toast ============================ */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(24px);
    background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--brass-dim);
    color: var(--text); padding: 13px 26px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .5px;
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 10000;
    box-shadow: 0 16px 50px rgba(0,0,0,.6);
}
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--green); } .toast.ok::before { background: var(--green); }
.toast.err { border-color: var(--red); } .toast.err::before { background: var(--red); }

/* ============================ 响应式 ============================ */
@media (max-width: 920px) {
    .content { flex-direction: column; }
    .side { flex: 1 1 auto; width: 100%; }
    .topbar { flex-wrap: wrap; gap: 16px; }
    .level-block { order: 3; flex-basis: 100%; }
    .xp-bar { max-width: none; }
    .brand { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 奖励类型角标：商人购买权 / 藏身处配方 */
.cell .rw-badge {
    margin-top: 4px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .04em;
    padding: 1px 6px; border: 1px solid var(--line-bright); color: var(--text-dim);
    text-transform: uppercase; line-height: 1.5;
}
.cell .rw-badge.purchaseright { color: var(--molten); border-color: rgba(226,96,42,.5); }
.cell .rw-badge.recipe { color: var(--olive); border-color: rgba(140,150,90,.5); }

/* ===== 称号系统（玩家「我的称号」页 + 共享预览） ===== */
.content.single { display: block; max-width: 1000px; margin: 0 auto; }
.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.title-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
    padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.title-card.equipped { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass-dim) inset; }
.title-card .title-name { font-family: var(--f-ui); font-size: 13px; color: var(--text-dim); }
.title-empty { color: var(--text-dim); font-family: var(--f-ui); padding: 24px; text-align: center; }
/* 称号预览（玩家页与管理页共用） */
.title-preview {
    min-height: 40px; display: flex; align-items: center; justify-content: center;
    padding: 6px 12px; background: #0d0e09; border: 1px dashed var(--line); border-radius: 4px;
}
.title-preview.small { min-height: 30px; padding: 3px 8px; justify-content: flex-start; }
.title-text { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.title-preview.small .title-text { font-size: 15px; }
.title-img { display: block; image-rendering: auto; max-width: 128px; height: 32px; }
