/* v12.65: the hero-power name stays under the button and never runs into
   the Heart, the name plate, the quest banner or anything else.
   God's Grace (empty-hand extra draw) is badged on the deck pile, not on the
   hero name plate. */
.hz .power .pl{
  left:0; right:0; top:66px; transform:none;
  width:100%; max-width:100%;
  white-space:normal; text-align:center; line-height:1.15;
  letter-spacing:.04em; font-size:7.5px;
  overflow-wrap:anywhere; word-break:break-word;
  pointer-events:none; z-index:2;
  box-sizing:border-box; padding:0 1px;
}
#hz1 .power .pl{top:66px}
/* keep the label hidden in the compact/phone hero row (icon + cost remain;
   the name is in the tooltip and aria-label) so it cannot cover the Heart */
html.adapt .hz .power .pl, html.compact-land .hz .power .pl{display:none}

/* grace lives on the deck: a small gold pill on the top of the card-back pile,
   clear of the .dn count at the bottom and of the hero name plate */
.deck .grace{
  position:absolute; left:4px; right:4px; top:6px; bottom:auto;
  transform:none; z-index:3; margin:0; padding:2px 4px 1px; border-radius:6px;
  white-space:normal; text-align:center; pointer-events:auto;
  background:linear-gradient(180deg,#fff8dc,#e4c36a);
  color:#2a1604; font:700 8px/1.15 "Cinzel","Times New Roman",serif; font-style:normal;
  letter-spacing:.06em; text-transform:uppercase;
  box-shadow:0 0 0 1px #000,0 0 8px rgba(255,214,120,.85);
}
/* compact / adapt decks sit in the left gutter and are shorter than the
   hanging .dn count, so the pill leaves the pile: above the player's deck
   (away from the hand) and below the rival's count (away from the HUD). */
html.adapt #deck0 .grace, html.compact-land #deck0 .grace{
  left:0; right:0; top:auto; bottom:calc(100% + 3px);
  transform:none;
  width:auto; max-width:none;
  padding:2px 3px; font-size:6.5px; letter-spacing:.04em; border-radius:6px;
  white-space:normal; line-height:1.15;
}
html.adapt #deck1 .grace, html.compact-land #deck1 .grace{
  left:0; right:0; top:calc(100% + 16px); bottom:auto;
  transform:none;
  width:auto; max-width:none;
  padding:2px 3px; font-size:6.5px; letter-spacing:.04em; border-radius:6px;
  white-space:normal; line-height:1.15;
}
