/* Leader ability buttons (hero power), emote button, sticky actions in the card sheet. */
.hero-powers { position: absolute; display: grid; gap: 6px; z-index: 64; }
.power { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px 6px 6px; border-radius: 24px;
  font-family: var(--font-card); font-size: 16px; color: #d9c9a5; text-align: left;
  background: linear-gradient(rgba(30, 16, 6, .9), rgba(16, 8, 3, .95)); border: 2px solid #6b4b25; box-shadow: 0 6px 14px rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .2s, filter .2s; filter: saturate(.6) brightness(.85); }
.power .pw-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #5a3a22, #1a0e06); border: 1.5px solid #8a6328; }
.power .pw-ico .ico { width: 18px; height: 18px; }
.power .pw-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.power .pw-name.pw-name-wrap { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.05; }
.power .pw-cost { font-family: var(--font-ui); font-size: 14px; color: #ffe08a; white-space: nowrap; }
.power.ready { filter: none; color: #fff4d6; border-color: #59b6ff; box-shadow: 0 0 0 1px #0d2740, 0 0 18px rgba(89, 182, 255, .75), 0 6px 14px rgba(0, 0, 0, .6); animation: powerglow 1.2s ease-in-out infinite alternate; }
.power.ready .pw-ico { background: radial-gradient(circle at 35% 30%, #cfeaff, #3c8fd9 55%, #0d3a66); border-color: #bfe4ff; }
.power.ready:hover { transform: translateY(-2px) scale(1.03); }
@keyframes powerglow { from { box-shadow: 0 0 0 1px #0d2740, 0 0 10px rgba(89, 182, 255, .5), 0 6px 14px rgba(0, 0, 0, .6); } to { box-shadow: 0 0 0 1px #0d2740, 0 0 24px rgba(89, 182, 255, 1), 0 6px 14px rgba(0, 0, 0, .6); } }
#stage.port .power { font-size: 22px; padding: 8px 12px 8px 8px; }
#stage.port .power .pw-ico { width: 40px; height: 40px; }
#stage.port .power .pw-ico .ico { width: 24px; height: 24px; }
#stage.port .power .pw-cost { font-size: 19px; }
.emote-btn { position: absolute; z-index: 64; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer;
  background: radial-gradient(circle at 40% 30%, #4a2f18, #1a0e06); border: 2px solid #c8a058; box-shadow: 0 4px 10px #000; }
.emote-btn:hover { filter: brightness(1.3); }
#stage.port .emote-btn { width: 60px; height: 60px; font-size: 30px; }

/* Card sheet: action buttons always visible at the bottom. */
.sheet-acts { position: sticky; bottom: -18px; padding: 12px 0 4px; margin-top: 14px; z-index: 2;
  background: linear-gradient(transparent, rgba(16, 9, 3, .97) 24%); }
@media (max-width: 760px) {
  .sheet-img img { width: auto; max-width: min(64vw, 260px); max-height: 40vh; margin: 0 auto; }
  .sheet-info { font-size: 16px; }
  .ci-name { font-size: 24px; }
  .ci-text { font-size: 16px; }
  .sheet-acts { bottom: -14px; }
  .sheet-acts .btn { font-size: 18px; padding: 14px 16px; }
}
