
/* ---- Section B: chest layout, health bars, target marker, debuff placement ---- */

/* Health bars a little bigger, text still inside */
.hpbar { width: 230px; height: 26px; }
.pack .mini-top { width: max(100%, 118px); }
.pack .mini-plate { max-width: 166px; padding: 4px 7px 5px; }
.pack .mini-plate b { font-size: 13.5px; }
.pack .mini-hp { height: 19px; }
.pack .mini-hp span { font-size: 13px; line-height: 19px; }
@media (max-width: 860px) { .hpbar { width: 150px; } }
@media (max-width: 680px) {
  .pack .mini-top { width: max(100%, 58px); }
  .pack .mini-plate b { font-size: 9.5px; }
  .pack .mini-hp { height: 14px; } .pack .mini-hp span { font-size: 10.5px; line-height: 14px; }
}
@media (max-width: 480px) { .stage .hpbar { width: 138px; } .hptext { font-size: 12.5px; } }
/* Max hand: a small note above the Draw pile */
.handfull-tip { position: fixed; z-index: 60; transform: translate(-50%, -100%) translateY(6px); pointer-events: none; opacity: 0;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-weight: 700; font-size: 14px;
  background: rgba(13,18,39,.94); color: var(--gold-2, var(--gilt-light)); border: 1px solid var(--gold, var(--gilt)); box-shadow: 0 4px 14px var(--shade-45);
  transition: opacity .25s ease, transform .25s ease; }
.handfull-tip.show { opacity: 1; transform: translate(-50%, -100%); }
.handfull-tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gold, var(--gilt)); }

/* First fight ever: a spotlight on each part of the screen and a tip beside it */
.combat-tut { position: fixed; inset: 0; z-index: 99990; }
.combat-tut .ct-dim { position: fixed; inset: 0; pointer-events: none; }
.combat-tut .ct-box { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 14px 16px 12px; border-radius: 12px; background: #111731; color: #ece0c5;
  border: 1px solid var(--gold, var(--gilt)); box-shadow: 0 10px 30px var(--shade-60); transition: left .3s ease, top .3s ease; }
.combat-tut .ct-box b { display: block; font-family: var(--font-display, serif); font-size: 19px; color: var(--gold-2, var(--gilt-light)); margin-bottom: 4px; }
.combat-tut .ct-box p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.combat-tut .ct-n {
  float: right; font-size: 11px; letter-spacing: .08em; color: var(--mist) !important;
}
.combat-tut .ct-go { display: flex; justify-content: space-between; gap: 10px; }
/* the Settings cog in the top bar: bigger, easier to find */
.top-actions [data-act="openSettings"] { font-size: 22px; padding-left: 10px; padding-right: 10px; }
.top-actions [data-act="openSettings"] img.wi { width: 26px; height: 26px; }

/* a fight just won: the hand fades and locks while the last blow plays, instead of vanishing */
#hand.hand-locked { pointer-events: none; opacity: .55; transition: opacity .35s ease; }
