/* Artwork only: names, values, categories and actions stay in the UI. */
#game-root .kungfu-item-art {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e9e4d5;
  border-radius: 4px;
}
#game-root .kungfu-item-art > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain !important;
}
#game-root .kungfu-card__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#game-root .kungfu-card__heading > span { flex-shrink: 0; }
#game-root .sect-kungfu-row--illustrated {
  grid-template-columns: 34px 28px minmax(0, 1fr) 96px;
  gap: 4px;
}
#game-root .sect-kungfu-row--illustrated > .kungfu-item-art {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
#game-root .sect-kungfu-row--illustrated .sect-kungfu-row__name {
  padding: 0 2px;
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
#game-root .sect-kungfu-row--illustrated .sect-kungfu-row__type { font-size: 11px; }
#game-root .kungfu-item-art--detail {
  display: flex;
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  margin: 0 auto 8px;
}
#game-root .kungfu-choice,
#game-root .companion-choice { gap: 8px; }
#game-root .kungfu-choice > span:last-child,
#game-root .companion-choice > span:last-child { flex: 1; min-width: 0; }
@media (max-width: 400px) {
  #game-root .sect-kungfu-row--illustrated {
    grid-template-columns: 30px 24px minmax(0, 1fr) 82px;
    gap: 3px;
  }
  #game-root .sect-kungfu-row--illustrated > .kungfu-item-art {
    width: 30px;
    height: 30px;
  }
  #game-root .sect-kungfu-row--illustrated .sect-kungfu-row__name { font-size: 13px; }
}
