.pm-coin-source { display: none !important; }
.pm-coin-technique-content {
  --pm-coin-number-size: 1.25em;
  --pm-coin-column-gap: 6px;
  padding: 0 10px 10px;
  font-family: HYSinMyeongJo, serif;
  font-size: 18px;
  line-height: 1.3;
  color: #c8c8c8;
  text-align: left;
  white-space: normal;
}
.pm-coin-count { display: flex; justify-content: center; gap: 5px; margin: 1px 0 15px; }
/* Explicit sizes keep the existing choice-image rules off these inline icons. */
.pm-coin-technique-content img.pm-coin-token,
.pm-coin-technique-content img.pm-coin-number {
  display: inline-block !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  filter: none !important;
}
.pm-coin-technique-content img.pm-coin-token { width: 28px !important; height: 28px !important; }
.pm-coin-technique-content img.pm-coin-number { width: var(--pm-coin-number-size) !important; height: var(--pm-coin-number-size) !important; margin-top: .025em !important; transform: none; }
.pm-coin-hit { display: grid; grid-template-columns: var(--pm-coin-number-size) minmax(0,1fr); gap: var(--pm-coin-column-gap); align-items: start; margin: 8px 0; }
.pm-coin-damage { color: #eee; }
.pm-coin-technique-content .pm-coin-formula,
.pm-coin-technique-content .pm-coin-formula * {
  color: #858585 !important;
  font-size: 12px;
  font-weight: 400 !important;
  text-shadow: none !important;
}
.pm-coin-formula { margin-left: 3px; overflow-wrap: anywhere; }
.pm-coin-technique-content .pm-coin-effect { margin: 0 0 0 calc(var(--pm-coin-number-size) + var(--pm-coin-column-gap)) !important; padding: 0 !important; font-size: inherit; }
.pm-coin-technique-content strong { font-weight: 700; }
.pm-character-technique-description.pm-coin-technique-content { padding: 0; }

/* Shared technique typography. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > h3 {
  font-size: 36px !important;
  text-shadow: none;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-cost-display,
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-cost-display * {
  font-size: 18px !important;
}

/* Shared technique description sizes. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > :is(p:not(.pm-coin-source), .pm-coin-technique-content) {
  font-size: 17px !important;
  line-height: 1.3;
  color: #c8c8c8 !important;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-formula,
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-formula * {
  font-size: 12px;
}

/* Keep the hit, effects and formula on one shared text column. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-technique-content {
  --pm-coin-number-size: 1.25em;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-hit {
  grid-template-columns: var(--pm-coin-number-size) minmax(0, 1fr);
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-number {
  width: var(--pm-coin-number-size) !important;
  height: var(--pm-coin-number-size) !important;
  margin-top: .025em !important;
  transform: none;
}

/* Rumor coin attacks: emphasize damage, with its calculation on the following line. */
.pm-coin-hit--stacked .pm-coin-damage {
  color: #d9b56a;
  font-weight: 700;
}
.pm-coin-hit--stacked .pm-coin-formula {
  display: block;
  margin-left: 0;
  line-height: 1.4;
}

/* Shared technique header: left title, amount above COST, and roomier spacing. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100:has(.pm-focus-cost) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding-top: 8px;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > h3 {
  grid-column: 1;
  grid-row: 1;
  padding-left: 10px !important;
  font-size: var(--pm-compact-title-size, 28px) !important;
  line-height: 1.2;
  text-align: left !important;
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > .row:has(.pm-focus-cost) {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0 !important;
  padding-right: 10px;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > .row:has(.pm-focus-cost)::after {
  display: none !important;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-focus-cost {
  flex-direction: column-reverse;
  gap: 1px;
  min-width: 44px;
  font-size: 0 !important;
  line-height: 0;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-focus-cost::before {
  content: "COST";
  color: #a9a397;
  font: 11px/1.2 HYSinMyeongJo, serif;
  text-shadow: none;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-focus-cost::after {
  content: attr(data-pm-compact-cost);
  color: #d9b56a;
  font: 500 18px/1.1 HYSinMyeongJo, serif;
  text-shadow: none;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > :is(p:not(.pm-coin-source), .pm-coin-technique-content) {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 15px;
  padding-top: 12px !important;
}
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > :is(p:not(.pm-coin-source), .pm-coin-technique-content)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(209,187,159,.85) 24%, rgba(209,187,159,.85) 76%, transparent);
}

/* Keep follow-up effects at the damage text size, with the formula last. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-effect {
  font-size: inherit !important;
  line-height: inherit;
}
.pm-coin-technique-content .pm-coin-formula--after-effects {
  display: block;
  margin: 0 0 0 calc(var(--pm-coin-number-size) + var(--pm-coin-column-gap));
  line-height: 1.4;
}

/* Keep the damage sentence and its follow-up effect together. */
.pm-coin-hits:has(+ .pm-coin-effect) > .pm-coin-hit:last-child {
  margin-bottom: 0;
}
.pm-coin-technique-content .pm-coin-hits + .pm-coin-effect {
  margin-top: 0 !important;
}

body.pm-layout-ready :is(.pm-compact-choice, .pm-character-technique-card) .pm-coin-technique-content .pm-coin-effect {
  margin-block: 0 !important;
  padding: 0 !important;
  line-height: inherit;
}

body.pm-layout-ready .pm-technique-column .pm-compact-choice .pm-coin-technique-content .pm-coin-effect:has(+ .pm-coin-formula--after-effects) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Wrapped technique text uses the same tight rhythm as consecutive effect lines. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > p:not(.m-0),
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .d-column > .text-center > .m-0 > p,
body.pm-layout-ready .pm-character-technique-description {
  line-height: 1.3;
}

/* Technique descriptions share the Bite card text size. Formula rules stay unchanged. */
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .w-100 > :is(p:not(.pm-coin-source), .pm-coin-technique-content),
body.pm-layout-ready .pm-technique-column .pm-compact-choice > .d-column > .d-column > .text-center > .m-0 > p,
body.pm-layout-ready .pm-character-technique-description {
  font-size: 16px !important;
}

/* Keep each numbered hit, follow-up effect and formula in the same text column. */
.pm-coin-technique-content .pm-coin-followup { display: block; line-height: inherit; }
.pm-coin-technique-content .pm-coin-paragraph { margin: 0 !important; padding: 0 !important; font-size: inherit !important; line-height: inherit; }

/* Secondary base damage stays quieter than the conditional result. */
.pm-coin-hit--stacked .pm-coin-base-damage { color: #999; font-size: .875em; font-weight: 400; }
