/* 光環參考AIMRAN neon-ring；只保留靜態光暈，不採用旋轉loader。 */
body.card-skin .battle.actor-layout-v13.compact-combat-v14.fan-battle-v15.resource-hud-v16{grid-template-rows:44px minmax(240px,1fr) 324px 120px}
.resource-hud-v16 .bottom-bar{height:120px;padding:4px 16px;display:grid;grid-template-columns:120px minmax(0,1fr) 112px;align-items:center;gap:16px;isolation:isolate}
.resource-hud-v16 .bottom-bar .energy-panel{grid-column:1;grid-row:1;margin:0;justify-self:start;order:initial}
.resource-hud-v16 .bottom-bar .energy-orb{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;width:104px;height:104px;border:0;border-radius:50%;padding:0;background:radial-gradient(circle,#0c1f32 35%,#123c48 61%,#ecb86c 64%,#132c3c 68%);box-shadow:0 0 14px #e9af4324;isolation:isolate}
.resource-hud-v16 .energy-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 3px #e8ae4c66) drop-shadow(0 0 8px #58d9e22b)}
.resource-hud-v16 .bottom-bar .energy-orb .energy-reading{position:relative;z-index:1;display:flex;align-items:baseline;justify-content:center;gap:1px;line-height:1;white-space:nowrap;margin:0;padding:0}
.resource-hud-v16 .bottom-bar .energy-orb #energy{font-size:38px;line-height:1;font-weight:800;letter-spacing:-1px;color:#fff6dd;text-shadow:0 2px 6px #000}
.resource-hud-v16 .bottom-bar .energy-orb .energy-reading>span{font-size:14px;color:#e7d9b9;line-height:1}
.resource-hud-v16 .bottom-bar .energy-orb .energy-label{position:relative;z-index:1;display:block;font-size:10px;line-height:1.5;color:#e3d7b8;margin-top:2px}
.resource-hud-v16 .energy-orb[data-level=empty]::after,.resource-hud-v16 .energy-orb[data-level=low]::after{content:'';position:absolute;inset:8px;border:2px dashed #e4a36b;border-radius:50%;pointer-events:none}
.resource-hud-v16 .bottom-bar .energy-orb[data-level=empty] .energy-label,.resource-hud-v16 .bottom-bar .energy-orb[data-level=low] .energy-label{color:#ffc58e;font-weight:750}
.resource-hud-v16 .bottom-bar .zones{grid-column:2;grid-row:1;display:flex;justify-content:center;align-items:center;gap:22px;width:auto;margin:0}
.resource-hud-v16 .bottom-bar .zones .pile-control{position:relative;display:grid;grid-template-columns:42px 28px;grid-template-rows:46px 20px;align-items:center;justify-content:center;column-gap:5px;width:108px;min-width:0;height:88px;padding:9px 8px;border:1px solid #567c8a;background:linear-gradient(145deg,#153749,#0d2535);border-radius:12px;box-shadow:0 4px 10px #0003;overflow:visible;cursor:pointer}
.resource-hud-v16 .pile-control[data-zone=drawPile]{color:#a5e1e2}.resource-hud-v16 .pile-control[data-zone=discardPile]{color:#e2c793}.resource-hud-v16 .pile-control[data-zone=exhaustPile]{color:#d7b3e7}
.resource-hud-v16 .bottom-bar .zones .pile-picture{grid-row:1;grid-column:1;width:40px;height:40px;overflow:visible;pointer-events:none}
.resource-hud-v16 .bottom-bar .zones .pile-count{grid-row:1;grid-column:2;font-size:25px;font-weight:800;line-height:1;color:#fff6e3;margin:0;font-variant-numeric:tabular-nums}
.resource-hud-v16 .bottom-bar .zones .pile-name{grid-row:2;grid-column:1/-1;font-size:12px;line-height:1.3;color:#e4edf1;white-space:nowrap;margin:0}
.resource-hud-v16 .bottom-bar .zones .pile-control:hover{background:linear-gradient(145deg,#20495b,#143244);border-color:#a2cdd6}
.resource-hud-v16 .bottom-bar .zones .pile-control:focus-visible{outline:3px solid #f1cd87;outline-offset:1px}
.resource-hud-v16 #end-turn{grid-column:3;grid-row:1;width:112px;height:64px;min-height:44px!important;order:initial;align-self:center}
.resource-hud-v16 #end-turn>span:first-child{font-size:14px}
@media(max-width:999px){
 body.card-skin .battle.actor-layout-v13.compact-combat-v14.fan-battle-v15.resource-hud-v16{grid-template-rows:40px minmax(210px,1fr) minmax(302px,1.4fr) 88px}
 .resource-hud-v16 .bottom-bar{height:88px;padding:0 5px;grid-template-columns:76px minmax(0,1fr);grid-template-rows:44px 44px;gap:0 5px}
 .resource-hud-v16 .bottom-bar .energy-panel{grid-column:1;grid-row:1/3;justify-self:center}
 .resource-hud-v16 .bottom-bar .energy-orb{width:70px;height:70px}
 .resource-hud-v16 .bottom-bar .energy-orb #energy{font-size:28px;letter-spacing:-1px}
 .resource-hud-v16 .bottom-bar .energy-orb .energy-reading>span{font-size:11px}
 .resource-hud-v16 .bottom-bar .energy-orb .energy-label{font-size:8px;line-height:1.2;margin-top:1px}
 .resource-hud-v16 .energy-orb[data-level=empty]::after,.resource-hud-v16 .energy-orb[data-level=low]::after{inset:5px;border-width:1px}
 .resource-hud-v16 .bottom-bar .zones{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-self:stretch}
 .resource-hud-v16 .bottom-bar .zones .pile-control{width:100%;height:44px;padding:1px 2px;grid-template-columns:26px minmax(0,auto);grid-template-rows:25px 14px;column-gap:1px;min-height:44px!important;border-radius:7px}
 .resource-hud-v16 .bottom-bar .zones .pile-picture{width:24px;height:24px}
 .resource-hud-v16 .bottom-bar .zones .pile-count{font-size:19px}
 .resource-hud-v16 .bottom-bar .zones .pile-name{font-size:10px;line-height:1.2}
 .resource-hud-v16 #end-turn{grid-column:2;grid-row:2;width:100%;height:40px;min-height:40px!important;align-self:center}
 .resource-hud-v16 #end-turn>span:first-child{font-size:12px}
 .resource-hud-v16 .combatant,.resource-hud-v16 .arena:has(.duel-intent) .combatant.enemy{height:calc(100% - 34px)}
 .resource-hud-v16 .compact-intent-icon{top:-34px}
}
@media(prefers-reduced-motion:reduce){.resource-hud-v16 .energy-orb,.resource-hud-v16 .pile-picture,.resource-hud-v16 .pile-picture *{animation:none!important;transition:none!important}}
