/* SVG 勋章来自已确认的修复版；样式只改变勋章和等级文字，不改人才卡外框。 */
.tv-medal{--medal-metal:#8ec8d2;--medal-lite:#d0f7fa;--medal-deep:#244e67;--medal-size:58px;position:relative;display:inline-grid;place-items:center;flex:none;width:var(--medal-size);height:calc(var(--medal-size)*1.08);isolation:isolate;vertical-align:middle;filter:drop-shadow(0 4px 7px rgba(0,7,25,.26))}
.tv-medal:before{content:"";position:absolute;inset:8% 5% 11%;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--medal-metal) 42%,transparent),transparent 71%);filter:blur(10px);z-index:-1}.tv-medal svg{display:block;width:100%;height:100%;overflow:visible}
.tv-medal__ribbons{fill:var(--medal-deep);stroke:var(--medal-metal);stroke-width:2.2;stroke-linejoin:round}.tv-medal__shell{fill:var(--medal-deep);stroke:var(--medal-metal);stroke-width:2.7;stroke-linejoin:round}.tv-medal__facet{fill:none;stroke:var(--medal-metal);stroke-width:1.15;opacity:.7}.tv-medal__core{fill:#0e263e;stroke:var(--medal-lite);stroke-width:1.8}.tv-medal__track{fill:none;stroke:var(--medal-metal);stroke-width:1.25;stroke-dasharray:2 7;stroke-linecap:round;opacity:.9}.tv-medal__glyph{fill:none;stroke:var(--medal-lite);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.tv-medal__dot,.tv-medal__rim-point{fill:var(--medal-lite)}.tv-medal__rim,.tv-medal__rim-secondary{fill:none;stroke-linecap:round;stroke-linejoin:round}.tv-medal__rim{stroke:var(--medal-metal);stroke-width:3}.tv-medal__rim-secondary{stroke:var(--medal-lite);stroke-width:1.8;opacity:.92}
.tv-medal--spark{--medal-metal:#9dbbcb;--medal-lite:#ecf8ff;--medal-deep:#375166}.tv-medal--forge{--medal-metal:#46c6cf;--medal-lite:#bffdf7;--medal-deep:#155b69}.tv-medal--vector{--medal-metal:#a4a3f3;--medal-lite:#ece7ff;--medal-deep:#43447f}.tv-medal--nova{--medal-metal:#f0b0c6;--medal-lite:#ffe7f1;--medal-deep:#7e4b68;filter:drop-shadow(0 4px 7px rgba(0,7,25,.26)) drop-shadow(0 0 10px rgba(240,176,198,.28))}.tv-medal--apex{--medal-metal:#e9c56f;--medal-lite:#fff3c9;--medal-deep:#775d31;filter:drop-shadow(0 4px 7px rgba(0,7,25,.26)) drop-shadow(0 0 11px rgba(233,197,111,.24))}
.tv-medal--spark .tv-medal__rim{stroke-width:2.35}.tv-medal--spark .tv-medal__rim-secondary{opacity:.55}.tv-medal--forge .tv-medal__rim{stroke-width:3.1}.tv-medal--forge .tv-medal__rim-secondary{stroke-width:1.7}.tv-medal--forge .tv-medal__track{stroke-dasharray:4 5}.tv-medal--vector .tv-medal__rim{stroke-width:3.15}.tv-medal--vector .tv-medal__rim-secondary{stroke-width:2;opacity:.98}.tv-medal--vector .tv-medal__track{stroke-dasharray:1.5 4.5}.tv-medal--nova .tv-medal__facet{stroke:#ffd2e2;opacity:.95}.tv-medal--nova .tv-medal__track{stroke:#ffd8e7;stroke-dasharray:3 4}.tv-medal--nova .tv-medal__rim{stroke:#ffc4d8;stroke-width:3.2;filter:drop-shadow(0 0 3px rgba(255,180,211,.65));opacity:1}.tv-medal--nova .tv-medal__rim-secondary{stroke:#fff0f6;stroke-width:1.95}.tv-medal--nova .tv-medal__rim-point{fill:#fff2f7;stroke:#f3a8c4;filter:drop-shadow(0 0 2px #f6a6c3)}.tv-medal--apex .tv-medal__facet{stroke:#ffe39d;opacity:.96}.tv-medal--apex .tv-medal__track{stroke:#ffe8ab;stroke-dasharray:6 4}.tv-medal--apex .tv-medal__rim{stroke:#ffdf92;stroke-width:3.35;filter:drop-shadow(0 0 3px #dbab43);opacity:1}.tv-medal--apex .tv-medal__rim-secondary{stroke:#fff5cf;stroke-width:2.05}.tv-medal--apex .tv-medal__rim-point{fill:#fff8d5;stroke:#dfb85f}
.tv-medal--spark .tv-medal__core{fill:#102b42}.tv-medal--forge .tv-medal__core{fill:#0e353d}.tv-medal--vector .tv-medal__core{fill:#1b234f}.tv-medal--nova .tv-medal__core{fill:#442a45;stroke:#ffe7f1;stroke-width:2}.tv-medal--apex .tv-medal__core{fill:#342d20;stroke:#fff3c9;stroke-width:2.15}.tv-medal--spark .tv-medal__shell{stroke-width:2.3}.tv-medal--forge .tv-medal__shell{stroke:#71eff0;stroke-width:3.5}.tv-medal--vector .tv-medal__shell{stroke:#b8b8ff;stroke-width:3.3}.tv-medal--nova .tv-medal__shell{stroke:#ffd9e8;stroke-width:3.3;filter:drop-shadow(0 0 3px rgba(255,180,211,.68))}.tv-medal--apex .tv-medal__shell{stroke:#ffe3a0;stroke-width:3.6;filter:drop-shadow(0 0 3px rgba(255,208,102,.7))}
.tv-medal--micro{--medal-size:26px}.tv-medal--small{--medal-size:41px}.tv-medal--medium{--medal-size:78px}.tv-medal--large{--medal-size:142px}.tv-medal--showcase{--medal-size:96px}.tv-medal--micro .tv-medal__track,.tv-medal--small .tv-medal__track,.tv-medal--micro .tv-medal__rim-secondary,.tv-medal--micro .tv-medal__rim-point{display:none}.tv-medal--micro .tv-medal__rim,.tv-medal--micro .tv-medal__shell{stroke-width:3.3}
.tv-tier-label{display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:11px;font-weight:800;letter-spacing:.065em;color:var(--tier-fg,var(--gold))}.tv-tier-spark{--tier-fg:#9cb9c8;--rank-rgb:157,187,203;--rank-bright:#ecf8ff}.tv-tier-forge{--tier-fg:#43c3cc;--rank-rgb:70,198,207;--rank-bright:#bffdf7}.tv-tier-vector{--tier-fg:#abaaf4;--rank-rgb:171,170,244;--rank-bright:#ece7ff}.tv-tier-nova{--tier-fg:#eca6c0;--rank-rgb:240,176,198;--rank-bright:#ffe7f1}.tv-tier-apex{--tier-fg:#e8c56f;--rank-rgb:233,197,111;--rank-bright:#fff3c9}
.talent-front-tier{position:absolute;top:13px;left:13px;display:flex;align-items:center;gap:5px;padding:3px 10px 3px 3px;border:1px solid rgba(206,241,245,.4);border-radius:32px;background:rgba(6,28,49,.82);backdrop-filter:blur(10px);z-index:4}.talent-front-tier .tv-medal{--medal-size:27px}.talent-front-tier .tv-tier-name{color:var(--rank-bright);font-size:10px;font-weight:800;letter-spacing:.07em}.talent-front .talent-demo-tag{top:55px}
.talent-back .rank-emblem{width:146px;height:150px;margin:14px auto 5px;border:0!important;background:none!important;box-shadow:none!important}.talent-back .rank-emblem:before,.talent-back .rank-emblem:after{display:none!important}.talent-back .rank-emblem>.tv-medal{--medal-size:135px}.talent-back .rank-title{font-size:21px;letter-spacing:.1em}.talent-back .rank-title:before,.talent-back .rank-title:after{font-size:8px}.hero-fan-caption small{display:flex;align-items:center;gap:4px}.hero-fan-caption .tv-medal{--medal-size:26px}.hero-fan-back .fan-back-emblem{display:grid;place-items:center;border:0!important;background:none!important;box-shadow:none!important;min-height:106px}.hero-fan-back .fan-back-emblem .tv-medal{--medal-size:95px}.hero-fan-back .fan-back-emblem:after{display:none!important}.hero-fan-back>strong{font-size:17px;letter-spacing:.11em}
.fan-rank-forge .hero-fan-foil{border-color:#668f8a}.fan-rank-vector .hero-fan-foil{border:2px double #b7c8bb;box-shadow:inset 0 0 0 3px rgba(139,205,187,.18)}.fan-rank-nova .hero-fan-foil{border:2px solid #cdb583;box-shadow:inset 0 0 0 3px rgba(205,181,131,.28),0 0 0 3px rgba(205,181,131,.11)}
.talent-card.rank-forge .talent-face{border-color:#668f8a}.talent-card.rank-vector .talent-face{border-color:#a5b7ae;box-shadow:inset 0 0 0 3px rgba(139,205,187,.13)}.talent-card.rank-nova .talent-face{border-color:#cdb583;box-shadow:inset 0 0 0 3px rgba(205,181,131,.14),0 0 0 2px rgba(205,181,131,.12)}
.recommended-person-head .tv-tier-label,.compare-item .tv-tier-label,.leaderboard-person .tv-tier-label{display:flex;margin-top:5px;font-size:10px}.recommended-person-head .tv-medal,.compare-item .tv-medal,.leaderboard-person .tv-medal{--medal-size:26px}.candidate-profile-head .tv-tier-label{margin-top:5px;display:inline-flex;font-size:12px}.candidate-profile-head .tv-tier-label .tv-medal{--medal-size:39px}.match-result-person .tv-tier-label{margin-top:4px}.match-result-person .tv-medal{--medal-size:32px}
.talent-page .identity-rank-mark.tv-unassessed{display:grid;place-items:center;width:auto!important;min-width:88px;padding:8px 12px;height:auto!important;min-height:42px!important;border:1px dashed rgba(139,205,187,.45)!important;border-radius:999px!important;background:rgba(11,24,39,.35)!important;color:var(--muted)!important;font-size:10px!important;letter-spacing:.08em}.tv-unassessed-note{font-size:10px;color:var(--muted)}

/* 首页只增加一个预览入口，五级勋章仍复用同一套 SVG 数据。 */
.tier-preview-button{display:inline-flex;align-items:center;gap:8px;min-height:38px;margin-top:15px;padding:0 14px;border:1px solid rgba(125,214,203,.36);border-radius:7px;background:rgba(125,214,203,.06);color:#82d9cf;font-size:11px;font-weight:800;letter-spacing:.03em}.tier-preview-button:hover{border-color:#82d9cf;background:rgba(125,214,203,.12)}.tier-preview-button span{color:#e1c47d}.tier-preview-button b{font-size:13px}.tier-preview-dialog{width:min(940px,calc(100% - 32px));max-height:min(82vh,720px);padding:0;border:1px solid rgba(125,214,203,.28);border-radius:16px;background:#0e1c2e;color:#eef4f6;box-shadow:0 30px 90px rgba(0,0,0,.58);overflow:auto}.tier-preview-dialog::backdrop{background:rgba(3,9,19,.78);backdrop-filter:blur(5px)}.tier-preview-shell{padding:24px}.tier-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid rgba(125,214,203,.16)}.tier-preview-head small{color:#7dd6cb;font-size:9px;letter-spacing:.13em}.tier-preview-head h2{margin:7px 0 5px;font-size:25px}.tier-preview-head p{margin:0;color:#9fb0bc;font-size:11px}.tier-preview-head>button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid rgba(125,214,203,.26);border-radius:50%;background:rgba(125,214,203,.05);color:#d8e8eb;font-size:22px}.tier-preview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:20px}.tier-preview-item{display:flex;min-width:0;min-height:210px;flex-direction:column;align-items:center;justify-content:center;padding:15px 8px;border:1px solid rgba(var(--rank-rgb),.3);border-radius:12px;background:radial-gradient(circle at 50% 35%,rgba(var(--rank-rgb),.12),rgba(9,24,40,.62) 68%);text-align:center}.tier-preview-item .tv-medal{margin-bottom:6px}.tier-preview-item strong{color:var(--rank-bright);font-size:15px;letter-spacing:.1em}.tier-preview-item>span:last-child{margin-top:5px;color:#91a5b3;font-size:10px}.tier-preview-note{margin:15px 0 0;color:#718694;font-size:9px;text-align:center}
@media(max-width:760px){.tier-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tier-preview-item{min-height:185px}.tier-preview-item:last-child{grid-column:1/-1}.tier-preview-shell{padding:18px}.tier-preview-head h2{font-size:21px}}
@media(max-width:430px){.tier-preview-dialog{width:calc(100% - 20px)}.tier-preview-grid{gap:8px}.tier-preview-item{min-height:160px;padding:10px 5px}.tier-preview-item .tv-medal{--medal-size:76px}.tier-preview-head p{max-width:240px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.tv-medal svg{animation:none!important}}
