/* Hearth attack row (Addendum 12E): the ONE attack row (ui/attack-row.js). Root tokens for sizes, theme tokens for
   colours (--ink, --gold, --page: Dark and Light each set them), so it reads on black leather and on parchment.
   The label is plain text: no tap colour, no pointer, no pressed look. Only the buttons press. */
.atr {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-2) 0; border-bottom: var(--sp-hair) solid rgb(from var(--ink) r g b / 0.09);
  -webkit-tap-highlight-color: transparent; color: var(--ink);
}
.atr:last-child { border-bottom: 0; }
.atr-lbl, .atr-lbl *, .atr-plain, .atr-plain * {
  cursor: default; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
}
.atr-lbl { flex: 1 1 9em; min-width: 0; display: flex; align-items: center; gap: var(--sp-2); }
.atr-ic { flex: none; color: var(--gold); display: inline-flex; }
.atr-ic svg, .atr-ic .i { width: var(--icon-md); height: var(--icon-md); }
.atr-tx { min-width: 0; display: flex; flex-direction: column; }
.atr-nl { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; }
.atr-nm { font: 700 var(--fs-lg) / var(--lh-tight) var(--serif, Georgia, serif); color: var(--ink); overflow-wrap: anywhere; }
.atr-mt { font: 500 var(--fs-sm) / var(--lh-body) var(--sans, system-ui, sans-serif); color: rgb(from var(--ink) r g b / 0.68); }
.atr-ds { font: 400 var(--fs-sm) / var(--lh-body) var(--sans, system-ui, sans-serif); color: rgb(from var(--ink) r g b / 0.78); margin-top: var(--sp-half); }
.atr-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-left: auto; justify-content: flex-end; }

/* the to-hit and damage buttons: the only things on the row that press */
.atr-b {
  min-width: var(--tap-visual); min-height: var(--tap-visual); padding: 0 var(--sp-3);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  border-radius: var(--rad-2); border: var(--sp-hair) solid rgb(from var(--gold) r g b / 0.6);
  background: rgb(from var(--gold) r g b / 0.1); color: var(--ink);
  font: 700 var(--fs-lg) / 1 var(--serif, Georgia, serif); white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: rgb(from var(--gold) r g b / 0.2); touch-action: manipulation;
  transition: transform .08s, filter .08s, background-color .12s;
}
.atr-b.atr-hit { background: var(--gold); border-color: var(--gold); color: var(--page); }
.atr-b:active { transform: translateY(var(--sp-hair)); filter: brightness(0.9); }
.atr-b:focus-visible, .atr-info:focus-visible, .atr-xb:focus-visible { outline: var(--sp-half) solid var(--gold); outline-offset: var(--sp-half); }
.atr-b[disabled], .atr-b[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.atr-b .i, .atr-b svg { width: var(--icon-sm); height: var(--icon-sm); }

/* the explicit info control (the player card's info sheet, a weapon's detail): a small ringed "i" right after the name;
   the root rules (12B) give it the full touch area around it */
.atr-plain .atr-info, .atr-lbl .atr-info { cursor: pointer; }
.atr-info {
  flex: none; width: var(--tap-visual); height: var(--tap-visual); padding: 0; border: 0; background: none; position: relative;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gold);
  -webkit-tap-highlight-color: rgb(from var(--gold) r g b / 0.2);
}
.atr-info span {
  width: var(--icon-sm); height: var(--icon-sm); border-radius: var(--rad-pill); border: var(--sp-half) solid currentColor;
  display: inline-flex; align-items: center; justify-content: center; font: 700 var(--fs-sm) / 1 var(--serif, Georgia, serif); font-style: italic;
}
.atr-info:active span { filter: brightness(0.85); }

/* extras under the row (Wild Shape Adv / Dis / Crit, C2 recharge and legendary Use): one chip style */
.atr-x { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.atr-x:empty { display: none; }
.atr-xb {
  min-height: var(--tap-visual); padding: 0 var(--sp-3); border-radius: var(--rad-pill);
  border: var(--sp-hair) solid rgb(from var(--gold) r g b / 0.5); background: rgb(from var(--gold) r g b / 0.08);
  color: var(--ink); font: 700 var(--fs-sm) / 1 var(--sans, system-ui, sans-serif); cursor: pointer;
  -webkit-tap-highlight-color: rgb(from var(--gold) r g b / 0.2); touch-action: manipulation;
}
.atr-xb:active { filter: brightness(0.9); }
.atr-xb.on, .atr-xb[aria-pressed="true"] { background: var(--gold); color: var(--page); border-color: var(--gold); }
.atr-xb[disabled] { opacity: 0.45; cursor: not-allowed; }
