/* Zhao Yun's artwork is a skin layer over the existing live health/shield widgets. */
.zhaoyun-hud{--zy-jade:#8de7d8;--zy-gold:#e5c98a;--zy-frame:url('assets/skins/zhaoyun/ui/zhaoyun-hud-frame-v1.png')}
#hud .vitals.zhaoyun-hud{left:22px;top:100px;width:440px;height:147px;padding:0;background:none;border:0;box-shadow:none;filter:drop-shadow(0 3px 3px #061b25a6);isolation:isolate}
#hud .vitals.zhaoyun-hud:before{content:'';position:absolute;left:62px;top:0;width:378px;height:126px;background:var(--zy-frame) center/100% 100% no-repeat;image-rendering:auto;z-index:-1;pointer-events:none}
#hud .zhaoyun-hud .portrait-medallion{left:-5px;top:0;width:120px;height:128px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;z-index:3}
#hud .zhaoyun-hud #hudPortrait{left:0;top:0;width:120px;height:120px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 2px #03131ba6)}
#hud .zhaoyun-hud .vital-top{left:124px;right:55px;top:33px;height:22px;padding:0;margin:0;background:none;display:flex;align-items:center;color:#f2e4c0;font-size:14px;font-weight:700;letter-spacing:.16em;text-shadow:0 2px #031b26}
#hud .zhaoyun-hud .vital-top>span:first-child:after{content:' · 子龙';color:#b9d8d3;font-size:10px;letter-spacing:.1em;font-weight:400}
#hud .zhaoyun-hud .vital-top #healthText{left:-12px;right:-5px;top:31px;height:16px;line-height:16px;font-size:11px;letter-spacing:0;white-space:nowrap;z-index:5;color:#f5fff7;text-shadow:0 1px 2px #02161b,1px 0 #02161b,-1px 0 #02161b}
#hud .zhaoyun-hud .bar.hp{left:112.5px;right:50px;top:64px;height:16px;margin:0;background:none;border:0;box-shadow:none;overflow:hidden;border-radius:2px;z-index:1}
#hud .zhaoyun-hud .hp-track{inset:0;width:auto;height:100%;overflow:hidden;background:#071c24;clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px)}
#hud .zhaoyun-hud #healthBar,.fighter.zhaoyun-hud .track>.life{background:repeating-linear-gradient(115deg,#ffffff08 0 2px,transparent 2px 7px),linear-gradient(#c6fff0 0%,#74d9c2 18%,#309c97 52%,#1b6174 84%,#54b7ae 100%);box-shadow:inset 0 1px #effff8c9,inset 0 -1px #081f31;transition:width .2s linear;border:0}
#hud .zhaoyun-hud .absorb-segment,.fighter.zhaoyun-hud .track>.absorb-segment{background:repeating-linear-gradient(120deg,#c9efff 0 3px,#86c5ee 3px 7px)!important;box-shadow:inset 0 -2px #4175ac;border-top:1px solid #f4fbff!important}
#hud .zhaoyun-hud .nameplate-xp{left:113px;right:50px;top:87px;height:6px;background:#081b27;border:0;box-shadow:none;overflow:visible;z-index:2}
#hud .zhaoyun-hud #nameplateXp{background:linear-gradient(#fff1c7,#d5b46c 45%,#8e6b3c);box-shadow:inset 0 1px #fff8dc70}
#hud .zhaoyun-hud #nameplateXpText{top:-51px;bottom:auto;height:11px;left:auto;right:0;width:auto;line-height:11px;font-size:9px;color:#e2d7b5;text-shadow:0 1px #031822;white-space:nowrap}
#hud .zhaoyun-hud #nameplateXpText:before{content:"经验 ";color:#a8c9c0}
#hud .zhaoyun-hud .vital-bottom{left:118px;right:51px;top:108px;min-height:16px;margin:0;line-height:14px;align-items:center;font-size:10px;color:#d5e9df;gap:8px;white-space:nowrap}
#hud .zhaoyun-hud #levelText{color:#eed59a}
#hud .zhaoyun-hud #goldText{gap:5px}
#hud .zhaoyun-hud #goldText .gold-amount>img{width:12px;height:14px}
#hud .zhaoyun-low-health:before{filter:drop-shadow(0 0 3px #ed8763)}
#hud .zhaoyun-low-health #healthBar,.fighter.zhaoyun-low-health .track>.life{background:linear-gradient(#ffd3ae,#df806a 30%,#9f444e 80%,#e29279);box-shadow:inset 0 1px #ffe6c9}
/* Arena card dimensions remain compatible with the existing status/cast rows. */
body.in-duel .fighter.zhaoyun-hud{background:none;isolation:isolate;filter:drop-shadow(0 3px 3px #041722a6)}
.fighter.zhaoyun-hud:before{content:'';position:absolute;left:14%;top:2.5%;width:86%;height:86%;background:var(--zy-frame) center/100% 100% no-repeat;z-index:-1;pointer-events:none}
.fighter.zhaoyun-hud>img{left:-1%;top:1%;width:25%;height:75%;object-fit:contain;border:0;border-radius:0;image-rendering:auto;z-index:3;filter:drop-shadow(0 2px 2px #03131ba6)}
.fighter.zhaoyun-hud h3{left:28%;top:25%;width:55%;font-size:clamp(10px,1.15vw,15px);line-height:1.3;color:#f3e4bd;letter-spacing:.03em;text-shadow:0 2px #021c27;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fighter.zhaoyun-hud .track{left:25.45%;top:46.35%;width:63.15%;height:11%;background:#071b24;border-radius:2px;clip-path:polygon(3px 0,calc(100% - 3px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,0 calc(100% - 3px),0 3px)}
.fighter.zhaoyun-hud .health-text{left:25.5%;top:46%;width:63%;height:11.5%;display:flex;align-items:center;justify-content:center;line-height:1;font-size:clamp(8px,1vw,12px);color:#f5fff7;text-shadow:0 1px 2px #02161b,1px 0 #02161b,-1px 0 #02161b}
.fighter.zhaoyun-hud .duel-defense{left:27%;top:76%;width:60%;font-size:clamp(8px,.85vw,11px);line-height:1.4;color:#c4e4df;text-shadow:0 1px 2px #021b26}
.fighter.zhaoyun-hud .fighter-identity{left:25%;top:90%;width:65%;padding:2px 4px;font-size:10px;line-height:1.4;background:linear-gradient(90deg,transparent,#092732d9 12% 88%,transparent)}
.fighter.zhaoyun-hud .fighter-identity small{font-size:10px;color:#e3cc95}
.fighter.zhaoyun-hud .duel-cast{left:26%;top:116%;width:62%;border-color:#c3ad78;background:#09232d}
.fighter.zhaoyun-hud .status-row{left:26%;top:133%;width:65%}
.fighter.zhaoyun-low-health:before{filter:drop-shadow(0 0 3px #ed8763)}
.player-medallion.zhaoyun-hud{background:none;border-color:transparent;box-shadow:none;border-radius:0}
.player-medallion.zhaoyun-hud img{object-fit:contain;image-rendering:auto;filter:drop-shadow(0 2px 3px #03141b99);transform:scale(1.2)}
.seat.zhaoyun-hud{border-color:#c9bb8a;background:linear-gradient(115deg,#23404a,#112c3b);box-shadow:inset 2px 0 #badfd2}
.seat.zhaoyun-hud>img{object-fit:contain;image-rendering:auto;border-radius:0;filter:drop-shadow(0 2px 2px #03141b99)}
@media(max-width:1050px),(max-height:600px){#hud .vitals.zhaoyun-hud{transform:scale(.82);transform-origin:left top;left:12px;top:90px}}
@media(max-width:800px){body.in-duel .fighter.zhaoyun-hud{width:43%}.fighter.zhaoyun-hud .fighter-identity{top:91%;font-size:8px;line-height:1.3}.fighter.zhaoyun-hud .fighter-identity small{font-size:8px}.fighter.zhaoyun-hud .duel-cast{top:125%;height:12px}.fighter.zhaoyun-hud .duel-cast span{font-size:8px;line-height:10px}.fighter.zhaoyun-hud .status-row{top:145%}}
@media(max-width:650px){#hud .vitals.zhaoyun-hud{transform:scale(.7);left:8px;top:86px}.fighter.zhaoyun-hud h3{font-size:8px}.fighter.zhaoyun-hud .health-text{font-size:7px}.fighter.zhaoyun-hud .duel-defense{font-size:7px}}
