/* ---- Section B: chest layout, health bars, target marker, debuff placement ---- */
/* Chests: title and line of text sit on the centre of the screen; the hero preview and armor go below */
.modal .loot-note { text-align: center; max-width: 640px; margin: 0 auto 0; }
.loot-wrap.loot-below { margin-top: 26px; }
.loot-wrap.loot-below > .loot-grid { flex: 0 1 auto; }

/* Health bars a little bigger, text still inside */
.hpbar { width: 230px; height: 26px; }
.hptext { font-size: 14px; }
.block-badge { width: 38px; height: 40px; font-size: 15px; }
.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; }
}

/* Selected enemy: red ring and red highlight instead of gold */
.pack .mini.target .mini-ring { background: radial-gradient(ellipse, rgba(200,40,30,.55), transparent 70%) !important; box-shadow: 0 0 0 3px rgba(214,48,36,.95) !important; }
.pack .mini.target .sprite canvas { filter: drop-shadow(0 0 2px #d63024) drop-shadow(0 0 8px rgba(214,48,36,.75)) !important; }
.pack .mini.target .mini-plate { border-color: #d63024 !important; box-shadow: 3px 3px 0 rgba(23,17,12,.55), 0 0 0 3px #d63024 !important; }
.pack .mini.target .mini-plate::before { color: #d63024 !important; }
.pack .mini:hover:not(:disabled):not(.target) .mini-plate { border-color: rgba(214,48,36,.7) !important; }
.pack .mini:hover:not(:disabled):not(.target) .sprite canvas { filter: drop-shadow(0 0 4px rgba(214,48,36,.6)) !important; }

/* Bleed and Poison: a narrow column at the bottom centre of the body (not the weapon) */
.sprite.sx-bleed .sx-bleed { left: calc(var(--sx-cx, 50%) - 8%) !important; width: 16% !important; top: auto !important; bottom: 0 !important; height: 52% !important; }
.sprite.sx-poison .sx-poison { left: calc(var(--sx-cx, 50%) - 12%) !important; width: 24% !important; top: auto !important; bottom: 0 !important; height: 60% !important; }
.sprite.sx-burn .sx-burn { left: calc(var(--sx-cx, 50%) - 36%) !important; right: auto !important; width: 72% !important; }
@media (max-width: 480px) { .stage .hpbar { width: 138px; } .hptext { font-size: 12.5px; } }

/* armor that counts toward something (every 3rd card, every 3rd turn): how far along it is */
.gear-count { position: absolute; right: -7px; bottom: -6px; min-width: 22px; padding: 1px 4px; border-radius: 8px; pointer-events: none;
  font: 700 10.5px/1.2 var(--font-ui, sans-serif); color: #f3e3bd; background: #2a1f16; border: 1px solid var(--gold, #c9a052); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gear-count.ready { color: #2a1f16; background: var(--gold-2, #ecd39a); }
/* 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(28, 20, 14, .94); color: var(--gold-2, #ecd39a); border: 1px solid var(--gold, #c9a052); box-shadow: 0 4px 14px rgba(0,0,0,.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, #c9a052); }

/* 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-rings i { position: fixed; border-radius: 12px; box-shadow: 0 0 0 2px var(--gold, #c9a052), 0 0 22px rgba(236,211,154,.45); pointer-events: none; }
.combat-tut .ct-box { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 14px 16px 12px; border-radius: 12px; background: #241a12; color: #f1e2c0;
  border: 1px solid var(--gold, #c9a052); box-shadow: 0 10px 30px rgba(0,0,0,.6); 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, #ecd39a); 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; color: #a8977a; letter-spacing: .08em; }
.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; }
